1 2007-09-08 Jim Meyering <jim@meyering.net>
3 Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
4 * lib/fpending.h: Rename from __fpending.h.
5 * lib/fpending.c: Rename from __fpending.c.
6 Include "fpending.h", not "__fpending.h".
7 * lib/__fpending.h, lib/__fpending.c: Remove files.
8 * modules/fpending (Files): Reflect new file names.
9 * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
11 2007-09-08 Bruno Haible <bruno@clisp.org>
13 * m4/inttypes-h.m4: Remove stub file.
15 2007-09-07 Simon Josefsson <simon@josefsson.org>
17 * doc/headers/stdint.texi: Discuss #include_next issue.
19 2007-09-06 Paul Eggert <eggert@cs.ucla.edu>
21 * build-aux/bootstrap: Remove obsolete comment about wget --help.
23 2007-09-06 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
25 * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
28 2007-09-03 Jim Meyering <jim@meyering.net>
30 New module: git-version-gen.
31 * modules/git-version-gen: New file.
33 Import changes from coreutils for bootstrap script.
35 * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
37 bootstrap: uses rsync to download the .po files
38 * build-aux/bootstrap (po_download_command_format): New global.
39 (download_po_files): Use rsync.
40 (update_po_files): Don't remove .po files after download,
41 so future rsync runs can take advantage of the copies.
43 * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
45 Solve the unnecessary-.po-file-regeneration problem once and for all.
46 * build-aux/bootstrap (download_po_files): New function, renamed from
47 get_translations. Now, downloads, but doesn't update LINGUAS.
48 (update_po_files): New function.
50 bootstrap: Ignore more.
51 * build-aux/bootstrap (symlink_to_dir): Add a directory name like
52 uniwidth to e.g., lib/.gitignore.
53 (slurp): Handle the sys_stat_.h -> sys mapping, too.
55 * build-aux/bootstrap: New setting: vc_ignore.
56 (insert_sorted_if_absent): Create $file if absent.
57 Adapt to new, possibly empty, list: $vc_ignore.
59 bootstrap: generate more ignorable names
60 * build-aux/bootstrap (slurp): When generating ignorable names,
61 also map .sin to .sed, .gperf to .c, and .y to .c.
63 2007-09-03 Jim Meyering <jim@meyering.net>
65 * build-aux/git-version-gen: New file, from coreutils. For details, see
66 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
68 2007-09-02 Bruno Haible <bruno@clisp.org>
70 Fix mis-recognition of 'mcs' on QNX 6.
71 * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
72 output contains the string "Mono".
73 * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
74 Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
76 2007-09-01 Bruno Haible <bruno@clisp.org>
78 Fix collision between uniwidth/* and linebreak modules.
79 * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
80 u32_width): Remove declarations.
81 * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
82 (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
83 streq3, streq2, streq1, streq0): Remove functions.
84 (STREQ): Remove macro.
85 (is_cjk_encoding): Remove function.
86 (nonspacing_table_data, nonspacing_table_ind): Remove constants.
87 (uc_width, u8_width, u16_width, u32_width): Remove functions.
88 * modules/linebreak (Depends-on): Add streq, uniwidth/width.
89 * NEWS: Document the change.
91 2007-09-01 Bruno Haible <bruno@clisp.org>
93 * lib/streq.h: Add double-inclusion guard.
95 2007-09-01 Karl Berry <karl@gnu.org>
97 * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
99 2007-08-28 Jim Meyering <jim@meyering.net>
101 Rename mreadlink_with_size to areadlink_with_size.
102 * NEWS: Document the change.
103 * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
104 * lib/areadlink-with-size.c (areadlink_with_size): ...this.
105 * lib/mreadlink.h: Rename this to...
106 * lib/areadlink.h: ...this.
107 * modules/mreadlink-with-size: Rename this to...
108 * modules/areadlink-with-size: ...this.
109 * lib/canonicalize.c: Reflect the renaming.
110 * modules/canonicalize: Likewise.
112 2007-08-26 Bruno Haible <bruno@clisp.org>
114 * gnulib-tool (func_import): When deciding which files to remove,
115 consider also dangling symbolic links.
116 Reported by Eric Blake.
118 2007-08-26 Bruno Haible <bruno@clisp.org>
120 * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
122 2007-08-23 Simon Josefsson <simon@josefsson.org>
124 * lib/readline.c: Don't include getline.h, the prototype is now
127 2007-08-23 Jim Meyering <jim@meyering.net>
130 * lib/getdelim.c (getdelim): Don't bother to save/restore errno
131 around the funlockfile call, since funlockfile never sets errno.
132 Don't set errno upon failed realloc.
134 2007-08-22 Eric Blake <ebb9@byu.net>
137 * lib/getdelim.c (getdelim): Revert regression that required *n to
138 be 0 when *lineptr is NULL. Preserve errno across funlockfile.
139 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
140 getdelim, rather than whether implementation is missing.
141 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
142 * lib/stdio_.h (getline): Also declare if replacement is
144 * doc/functions/getdelim.texi: New file.
145 * doc/functions/getline.texi: Likewise.
146 * doc/gnulib.texi (Function Substitutes): Add new files.
147 Reported by Bruno Haible.
149 2007-08-22 Ludovic Courtès <ludo@gnu.org>
151 * users.txt: Add Guile.
153 2007-08-22 Eric Blake <ebb9@byu.net>
155 * tests/test-getdelim.c (main): Use remove, not unlink.
156 * tests/test-getline.c (main): Likewise.
158 Move getline and getdelim into stdio.h, per POSIX 200x.
159 * modules/getline (Files): Remove getline.h.
160 (Depends-on): Add stdio.
161 (configure.ac): Add module indicator.
162 * modules/getdelim (Files): Remove getdelim.h.
163 (Depends-on): Add stdio.
164 (configure.ac): Add module indicator.
165 * modules/stdio (Makefile.am): Work with new indicators.
166 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
167 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
168 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
169 * lib/getdelim.h: Delete.
170 * lib/getline.h: Delete.
171 * lib/stdio_.h (getdelim, getline): Declare.
172 * modules/getdelim-tests: New module.
173 * modules/getline-tests: Likewise.
174 * tests/test-getdelim.c: New file.
175 * tests/test-getline.c: Likewise.
176 * NEWS: Document the change.
177 * lib/getline.c: Update choice of header.
178 * lib/csharpcomp.c: Likewise.
179 * lib/getpass.c: Likewise.
180 * lib/javacomp.c: Likewise.
181 * lib/javaversion.c: Likewise.
182 * lib/yesno.c: Likewise.
183 * lib/getdelim.c: Likewise.
184 (getdelim): Set errno on failure, and avoid memory leak.
186 2007-08-19 Bruno Haible <bruno@clisp.org>
188 * modules/closein (Depends-on): Add freadahead.
189 * lib/closein.c: Include freadahead.h.
190 (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
193 2007-08-19 Bruno Haible <bruno@clisp.org>
195 * modules/freadahead-tests: New file.
196 * tests/test-freadahead.sh: New file.
197 * tests/test-freadahead.c: New file.
199 * modules/freadahead: New file.
200 * lib/freadahead.h: New file.
201 * lib/freadahead.c: New file.
202 * MODULES.html.sh (File stream based Input/Output): Add freadahead,
203 fbufmode, fpurge, freadable, fwritable.
205 2007-08-19 Eric Blake <ebb9@byu.net>
207 Test yesno in combination with closein.
208 * lib/yesno.c (yesno): Document use of stdin.
209 * modules/yesno-tests (Files): New module.
210 * tests/test-yesno.c (main): New file.
211 * tests/test-yesno.sh: Likewise.
213 2007-08-19 Bruno Haible <bruno@clisp.org>
215 * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
216 * lib/fseeko.c (rpl_fseeko): Likewise.
217 * lib/fseterr.c (fseterr): Likewise.
219 2007-08-19 Bruno Haible <bruno@clisp.org>
221 * tests/test-lseek.c (main): Disable a test for BeOS.
222 * doc/functions/lseek.texi: Document the BeOS bug.
224 2007-08-19 Bruno Haible <bruno@clisp.org>
225 Eric Blake <ebb9@byu.net>
227 * lib/lseek.c: Include <sys/stat.h>.
228 (rpl_lseek): Add workaround code also for Unix platforms.
230 * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
231 * doc/functions/lseek.texi: Document BeOS definiency.
233 2007-08-18 Bruno Haible <bruno@clisp.org>
235 * modules/fstrcmp-tests: New file.
236 * tests/test-fstrcmp.c: New file.
238 2007-08-18 Bruno Haible <bruno@clisp.org>
240 * modules/fstrcmp: New file, from GNU gettext with modifications.
241 * lib/fstrcmp.h: New file, from GNU gettext.
242 * lib/fstrcmp.c: New file, from GNU gettext.
243 * MODULES.html.sh (String handling): Add fstrcmp.
245 2007-08-18 Bruno Haible <bruno@clisp.org>
247 * lib/diffseq.h (struct context): Change type of 'heuristic' field to
249 (diag, compareseq): Remove const from the ctxt argument.
250 (USE_HEURISTIC): Undefine at the end.
252 2007-08-18 Jim Meyering <jim@meyering.net>
254 New file: lib/idcache.h
255 * NEWS: Mention the addition.
256 * modules/idcache (Files): Add lib/idcache.h
257 * lib/idcache.c: Include "idcache.h".
258 Don't include <sys/types.h>.
260 Move file-scoped "static" declarations to the top.
261 * lib/idcache.h: New file. Include <sys/types.h> here, instead.
263 2007-08-17 Bruno Haible <bruno@clisp.org>
264 and Paul Eggert <eggert@cs.ucla.edu>
266 * MODULES.html.sh: Add diffseq.
267 * modules/diffseq: New file.
268 * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
269 extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
271 2007-08-15 Paul Eggert <eggert@cs.ucla.edu>
273 Import changes from coreutils for bootstrap script.
275 2007-07-21 Paul Eggert <eggert@cs.ucla.edu>
277 * build-aux/bootstrap (slurp): Work even in environments where
278 "ls" defaults to "ls -A". Put in a FIXME, though, since the
279 current code does not slurp files whose names start with ".", and
280 this looks like it might be a troublesome area.
282 2007-07-11 Jim Meyering <jim@meyering.net>
284 If there's a GPL vN copyright comment, require that N == 3.
286 2007-07-08 Jim Meyering <jim@meyering.net>
288 Run the coreutils-specific code only if tests/Makefile.am.in exists.
289 * build-aux/bootstrap (mam_template): Move definition out of loop.
291 Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
293 * build-aux/bootstrap (symlink_to_dir): Rename function from
294 symlink_to_gnulib. Add a directory parameter. Update all
296 (cp_mark_as_generated): Also check for -- and link to -- files in
299 2007-07-08 Jim Meyering <jim@meyering.net>
301 Adapt to deeper hierarchy in gnulib.
302 * build-aux/bootstrap (symlink_to_dir): If the destination
303 directory doesn't exist, create it. This is required at least for
304 "lib/uniwidth/cjk.h".
306 2007-05-15 Jim Meyering <jim@meyering.net>
308 * build-aux/bootstrap: Now that generated Makefile.am files
309 are no longer under version control, they must be created at
312 2007-08-14 Ben Pfaff <blp@gnu.org>
314 * lib/count-one-bits.h: Add comments. From Bruno Haible.
316 2007-08-14 Paul Eggert <eggert@cs.ucla.edu>
318 * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
319 given the changes below.
320 (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'. Work
321 even on hosts that have padding bits beyond the supported 64.
323 2007-08-10 Paul Eggert <eggert@cs.ucla.edu>
325 * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
326 * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
327 xstrtol.c. Include getopt.h, since xstrtol_fatal's signature
329 (xstrtol_error): Remove.
330 (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
331 but with a different signature.
332 (ATTRIBUTE_NORETURN, __attribute__): New macros.
333 * lib/xstrtol-error.c: Include exitfail.h.
334 (xstrtol_fatal): New function, with a different signature from the
335 old xstrtol_error, so that the caller need not worry about passing
336 in an exit status, or about storage management of the option argument.
337 (xstrtol_error): Now a static function. Redo signature to
338 implement xstrtol_fatal. Output the correct number of hyphens in
339 front of the option so that the caller need not worry about
342 (_): Remove; not used now.
343 * modules/xstrtol: Depend on getopt.
344 * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
345 of old STRTOL_FATAL_ERROR macro.
346 * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
348 * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
349 * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
351 2007-08-08 Eric Blake <ebb9@byu.net>
353 * lib/xstrtol-error.c: Add missing include.
355 Move xstrtol messages into gnulib domain, when --pobase is used.
356 * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
357 * lib/xstrtol-error.c (xstrtol_error): ...into new file.
358 * modules/xstrtol (Files): Distribute new file.
359 * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
360 * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
361 * tests/test-xstrtol.c: ...into new file.
362 * tests/test-xstrtoul.c: Also test xstrtoul.
363 * tests/test-xstrtoimax.c: Also test xstrtoimax.
364 * tests/test-xstrtoumax.c: Also test xstrtoumax.
365 * tests/test-xstrtol.sh: Drive the tests.
366 * tests/test-xstrtoimax.sh: Likewise.
367 * tests/test-xstrtoumax.sh: Likewise.
368 * modules/xstrtol-tests: New module.
369 * modules/xstrtoimax-tests: Likewise.
370 * modules/xstrtoumax-tests: Likewise.
372 2007-08-08 Jim Meyering <jim@meyering.net>
374 New function: mfile_name_concat.
375 * lib/filenamecat.c (mfile_name_concat): New function, just like
376 file_name_concat, but return NULL upon failure rather than exiting
378 * lib/filenamecat.h: Declare it.
380 2007-08-07 Bruno Haible <bruno@clisp.org>
382 * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
383 instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
385 Reported by Eric Blake.
387 2007-08-07 Simon Josefsson <simon@josefsson.org>
389 * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
390 * modules/crypto/arcfour (License): Likewise.
391 * modules/crypto/des-tests (License): Likewise.
392 * modules/crypto/gc-arctwo-tests (License): Likewise.
393 * modules/crypto/gc-des-tests (License): Likewise.
394 * modules/crypto/gc-hmac-md5-tests (License): Likewise.
395 * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
396 * modules/crypto/gc-md2-tests (License): Likewise.
397 * modules/crypto/gc-md4-tests (License): Likewise.
398 * modules/crypto/gc-md5-tests (License): Likewise.
399 * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
400 * modules/crypto/gc-rijndael-tests (License): Likewise.
401 * modules/crypto/gc-sha1-tests (License): Likewise.
402 * modules/crypto/gc-tests (License): Likewise.
403 * modules/crypto/hmac-md5 (License): Likewise.
404 * modules/crypto/hmac-sha1 (License): Likewise.
405 * modules/crypto/md2-tests (License): Likewise.
406 * modules/crypto/md4-tests (License): Likewise.
407 * modules/crypto/md5 (License): Likewise.
408 * modules/crypto/rijndael (License): Likewise.
409 * modules/crypto/sha1 (License): Likewise.
410 * modules/memxor (License): Likewise.
412 2007-08-06 Paul Eggert <eggert@cs.ucla.edu>
413 and Bruno Haible <bruno@clisp.org>
415 * NEWS: Describe interface changes to human, xstrtol.
416 * lib/human.h: Include <xstrtol.h>.
417 (human_options): Return enum strtol_error, not int. Remove
418 bool arg; take int * instead.
419 * lib/human.c: Don't include "gettext.h".
420 (_): Remove; no longer used.
421 Don't include <xstrtol.h>, since human.h does it.
422 (human_options): Adjust to abovementioned interface changes.
423 Do not report error to stderr; that's now the caller's
425 * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
427 * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
428 Str, Argument_type_string. All uses changed. Put " argument"
429 in diagnostics to make them clearer. Change wording of suffix
431 (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
432 Argument_type_string.
433 (STRTOL_FATAL_WARN): Remove; no longer used.
434 * modules/human (Depends-on): Remove gettext-h.
436 2007-08-06 Simon Josefsson <simon@josefsson.org>
438 * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
440 2007-07-31 Bruno Haible <bruno@clisp.org>
442 * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
443 are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
444 Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
446 2007-07-31 Bruno Haible <bruno@clisp.org>
448 * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
449 Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
451 2007-07-30 Bruno Haible <bruno@clisp.org>
453 * modules/base64 (License): Use the synonymous term "LGPLv2+".
454 * modules/c-ctype (License): Likewise.
455 * modules/c-strcase (License): Likewise.
456 * modules/check-version (License): Likewise.
457 * modules/iconv (License): Likewise.
458 * modules/iconv_open (License): Likewise.
459 * modules/read-file (License): Likewise.
460 * modules/striconv (License): Likewise.
461 * modules/strverscmp (License): Likewise.
462 * modules/vasprintf (License): Likewise.
463 * modules/crypto/des (License): Likewise.
464 * modules/crypto/gc (License): Likewise.
465 * modules/crypto/gc-arcfour (License): Likewise.
466 * modules/crypto/gc-arctwo (License): Likewise.
467 * modules/crypto/gc-des (License): Likewise.
468 * modules/crypto/gc-hmac-md5 (License): Likewise.
469 * modules/crypto/gc-hmac-sha1 (License): Likewise.
470 * modules/crypto/gc-md2 (License): Likewise.
471 * modules/crypto/gc-md4 (License): Likewise.
472 * modules/crypto/gc-md5 (License): Likewise.
473 * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
474 * modules/crypto/gc-random (License): Likewise.
475 * modules/crypto/gc-rijndael (License): Likewise.
476 * modules/crypto/gc-sha1 (License): Likewise.
477 * modules/crypto/md2 (License): Likewise.
478 * modules/crypto/md4 (License): Likewise.
480 2007-07-30 Jim Meyering <jim@meyering.net>
482 * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
483 set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
484 it has valid stat data. This bug would cause du not to count the
485 sizes of inaccessible directories.
486 Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
487 in <http://bugzilla.redhat.com/250077>.
489 2007-07-25 Peter O'Gorman <peter@pogma.com>
490 Bruno Haible <bruno@clisp.org>
492 * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
493 really works. Needed because AIX 4.3 "xlc -E" doesn't understand
494 #include_next, gives a diagnostic about it, but reports no error in
496 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
498 2007-07-24 Ben Pfaff <blp@gnu.org>
500 Improve name: "count-one-bits" is better than "popcount".
501 * MODULES.html.sh: Update name.
502 * lib/popcount.h: Renamed lib/count-one-bits.h.
503 (popcount): Renamed count_one_bits.
504 (popcountl): Renamed count_one_bits_l.
505 (popcountll): Renamed count_one_bits_ll.
506 * m4/popcount.m4: Renamed m4/count-one-bits.m4.
507 * modules/popcount: Renamed module/count-one-bits.
508 * modules/popcount-tests: Renamed module/count-one-bits-tests.
509 * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
511 2007-07-23 Ben Pfaff <blp@gnu.org>
513 * lib/popcount.h (popcount32): Reduce size of constants, to allow
514 better code generation, and add U to large constants to avoid
515 warnings, in non-GCC case.
516 Suggested by Bruno Haible.
518 2007-07-23 Ben Pfaff <blp@gnu.org>
520 * lib/popcount.h: Use verify_true instead of if...abort.
521 * modules/popcount: Depend on verify module.
522 Suggested by Jim Meyering.
524 2007-07-23 Bruno Haible <bruno@clisp.org>
526 * gnulib-tool (func_import): Create a .cvsignore file also when the
527 directory is not yet in CVS but the toplevel directory is. When
528 creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
529 Reported by Karl Berry.
531 2007-07-22 Ben Pfaff <blp@gnu.org>
533 * lib/popcount.h: Use faster, branchless algorithm for non-GCC
535 Suggested by Eric Blake.
537 2007-07-22 Ben Pfaff <blp@gnu.org>
539 New module: popcount.
540 * MODULES.html.sh: Add popcount.
541 * modules/popcount: New file.
542 * modules/popcount-tests: New file.
543 * tests/test-popcount.c: New file.
544 * lib/popcount.h: New file.
545 * m4/popcount.m4: New file.
547 2007-07-22 Paul Eggert <eggert@cs.ucla.edu>
549 * build-aux/announce-gen: Update to GPLv3.
551 * build-aux/config.guess: Update from config.
553 2007-07-21 Bruno Haible <bruno@clisp.org>
555 * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
556 * lib/verror.c (_) [ENABLE_NLS]: Likewise.
558 2007-07-20 Jim Meyering <jim@meyering.net>
560 * check-module: Diagnose a self-dependency.
562 2007-07-19 Bruno Haible <bruno@clisp.org>
564 * gnulib-tool (func_import): Don't abort if pobase or po_domain is
566 Reported by Eric Blake.
568 2007-07-18 Bruno Haible <bruno@clisp.org>
570 * gnulib-tool: New options --po-base, --po-domain.
571 (func_usage): Document them.
572 (pobase, po_domain): New variables.
573 (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
575 (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
576 (func_import): Consider pobase and po_domain. Create a po/ directory.
577 (func_create_testdir): Set pobase and po_domain to empty.
578 * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
579 * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
581 2007-07-18 Bruno Haible <bruno@clisp.org>
583 * gnulib-tool (func_get_automake_snippet): Synthesize also an
584 EXTRA_DIST augmentation for files in build-aux/.
586 2007-07-16 Bruno Haible <bruno@clisp.org>
588 * modules/lseek (License): Use the synonymous term "LGPLv2+".
589 * modules/getdelim (License): Likewise.
591 2007-07-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
593 * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
594 * modules/d-type (License): Likewise.
595 * modules/extensions (License): Likewise.
596 * modules/fnmatch (License): Likewise.
597 * modules/fseeko (License): Likewise.
598 * modules/getaddrinfo (License): Likewise.
599 * modules/getline (License): Likewise.
600 * modules/getlogin_r (License): Likewise.
601 * modules/getpass (License): Likewise.
602 * modules/gettimeofday (License): Likewise.
603 * modules/glob (License): Likewise.
604 * modules/inet_ntop (License): Likewise.
605 * modules/malloc (License): Likewise.
606 * modules/malloca (License): Likewise.
607 * modules/memmem (License): Likewise.
608 * modules/mempcpy (License): Likewise.
609 * modules/memset (License): Likewise.
610 * modules/minmax (License): Likewise.
611 * modules/mktime (License): Likewise.
612 * modules/netinet_in (License): Likewise.
613 * modules/pathmax (License): Likewise.
614 * modules/poll (License): Likewise.
615 * modules/regex (License): Likewise.
616 * modules/snprintf (License): Likewise.
617 * modules/stdbool (License): Likewise.
618 * modules/stdint (License): Likewise.
619 * modules/stdio (License): Likewise.
620 * modules/strcase (License): Likewise.
621 * modules/strcasestr (License): Likewise.
622 * modules/strdup (License): Likewise.
623 * modules/string (License): Likewise.
624 * modules/strndup (License): Likewise.
625 * modules/strnlen (License): Likewise.
626 * modules/strpbrk (License): Likewise.
627 * modules/strptime (License): Likewise.
628 * modules/strsep (License): Likewise.
629 * modules/sys_select (License): Likewise.
630 * modules/sys_socket (License): Likewise.
631 * modules/sys_stat (License): Likewise.
632 * modules/sys_time (License): Likewise.
633 * modules/time (License): Likewise.
634 * modules/time_r (License): Likewise.
635 * modules/timegm (License): Likewise.
636 * modules/unistd (License): Likewise.
637 * modules/vsnprintf (License): Likewise.
638 * modules/wctype (License): Likewise.
640 2007-07-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
642 * modules/argz (License): LGPLv2+.
644 2007-07-15 Karl Berry <karl@gnu.org>
646 * doc/gnulib.texi: revise node structure per new fdl.texi.
648 2007-07-14 Bruno Haible <bruno@clisp.org>
650 * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
652 * lib/uniname/uninames.h: Regenerated.
654 2007-07-14 Karl Berry <karl@gnu.org>
656 * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
657 omitting sectioning and index commands.
659 2007-07-13 Bruno Haible <bruno@clisp.org>
661 New gnulib-tool option --more-symlinks.
662 * gnulib-tool (func_usage): Document --more-symlinks.
663 (do_copyrights): New variable.
664 Recognize option --more-symlinks.
665 (func_import): Don't add a copyright notice transform to
666 sed_transform_lib_file if do_copyrights is empty.
668 2007-07-13 Bruno Haible <bruno@clisp.org>
670 * lib/vasnprintf.c (decimal_point_char): Define also if
671 (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
672 && !NEED_PRINTF_DIRECTIVE_A.
673 Reported by Clemens Koller <clemens.koller@anagramm.de> via
674 Gary V. Vaughan <gary@gnu.org>.
676 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
678 * lib/inttypes_.h: Undo previous change, since it was fixed
679 in a different way in the 2007-07-02 fix to m4/inttypes.m4.
681 2007-07-13 Bruno Haible <bruno@clisp.org>
683 * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
684 misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
686 2007-07-13 Jim Meyering <jim@meyering.net>
688 df: Don't fail for Tru64's "file-on-file mount".
689 * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
690 so we fall through and use statfs instead. Details here:
691 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
692 Reported by Albert Chin.
694 2007-07-13 Bruno Haible <bruno@clisp.org>
696 * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
697 * modules/configmake (License): Likewise.
698 * modules/gettext (License): Likewise.
699 * modules/gettext-h (License): Likewise.
700 * modules/include_next (License): Likewise.
701 * modules/link-warning (License): Likewise.
702 * modules/localcharset (License): Likewise.
703 * modules/localename (License): Likewise.
704 * modules/lock (License): Likewise.
705 * modules/relocatable-lib-lgpl (License): Likewise.
706 * modules/size_max (License): Likewise.
707 * modules/vasnprintf (License): Likewise.
708 * modules/wchar (License): Likewise.
709 * modules/xsize (License): Likewise.
711 2007-07-13 Bruno Haible <bruno@clisp.org>
713 * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
714 (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
716 2007-07-12 Bruno Haible <bruno@clisp.org>
718 * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
719 in the modules files.
721 2007-07-11 Karl Berry <karl@gnu.org>
723 * MODULES.html.sh (func_module): use
724 sed -e '\|^'"${includefile}"'$|d'
725 instead of /.../d, to avoid errors on $includefile's containing /.
727 2007-07-10 Sergey Poznyakoff <gray@gnu.org.ua>
729 * gnulib-tool (func_import): Avoid duplication of --avoid
731 (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
732 names to `_' in variable names.
734 2007-07-10 Eric Blake <ebb9@byu.net>
736 * lib/version-etc.c (version_etc_va): Default to GPLv3+.
737 * NEWS: Document this change.
739 2007-07-08 Bruno Haible <bruno@clisp.org>
741 Update to Unicode 5.0.
742 * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
743 U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
744 U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
745 U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
746 U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
747 U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
748 U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
749 U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
750 U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
751 U+10A3F, U+1D242..U+1D244.
752 (nonspacing_table_ind): Update.
753 (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
754 U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
756 2007-07-08 Bruno Haible <bruno@clisp.org>
758 Update to Unicode 5.0.
759 * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
760 code transform. Extend the name index field of unicode_name_to_code and
761 unicode_code_to_name from 16 to 24 bits.
762 * lib/uniname/uniname.c (unicode_character_name,
763 unicode_name_character): Add the range 0x12xxx to the code transform.
764 * lib/uniname/uninames.h: Regenerated.
765 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
767 2007-07-07 Bruno Haible <bruno@clisp.org>
769 * modules/wcwidth-tests: New file.
770 * tests/test-wcwidth.c: New file.
772 Work around MacOS X wcwidth() bug.
773 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
774 * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
775 (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
776 original wcwidth in non-UTF-8 locales.
777 * modules/wcwidth (Depends-on): Add localcharset, streq,
779 * doc/functions/wcwidth.texi: Update.
781 2007-07-07 Bruno Haible <bruno@clisp.org>
783 * lib/wchar_.h: Include the GL_LINK_WARNING macro.
784 (wcwidth): New declaration.
785 * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
787 (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
788 here. Prepare for creating <wchar.h> unconditionally.
789 * modules/wchar (Depends-on): Add link-warning.
790 (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
791 REPLACE_WCWIDTH, and GL_LINK_WARNING.
792 * lib/wcwidth.h: Remove file.
793 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
794 HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
795 * modules/wcwidth (Files): Remove lib/wcwidth.h.
796 (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
797 (Include): Replace wcwidth.h with <wchar.h>.
798 * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
799 * lib/mbchar.h: Don't include wcwidth.h.
800 * lib/mbswidth.c: Likewise.
801 * NEWS: Mention the change.
803 2007-07-07 Bruno Haible <bruno@clisp.org>
805 * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
806 * lib/wcwidth.h: Don't include wctype.h. Replace inline function
807 definition with an external declaration.
808 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
809 defined as a function. Remove AC_C_INLINE requirement.
810 * modules/wcwidth (Files): Add lib/wcwidth.c.
811 (Makefile.am): Remove redundant statement.
813 2007-07-07 Bruno Haible <bruno@clisp.org>
815 * MODULES.html.sh (Unicode string functions): Add the new modules.
817 * tests/uniwidth/test-u32-strwidth.c: New file.
818 * modules/uniwidth/u32-strwidth-tests: New file.
820 * lib/uniwidth/u32-strwidth.c: New file.
821 * modules/uniwidth/u32-strwidth: New file.
823 * tests/uniwidth/test-u16-strwidth.c: New file.
824 * modules/uniwidth/u16-strwidth-tests: New file.
826 * lib/uniwidth/u16-strwidth.c: New file.
827 * modules/uniwidth/u16-strwidth: New file.
829 * tests/uniwidth/test-u8-strwidth.c: New file.
830 * modules/uniwidth/u8-strwidth-tests: New file.
832 * lib/uniwidth/u8-strwidth.c: New file.
833 * modules/uniwidth/u8-strwidth: New file.
835 * tests/uniwidth/test-u32-width.c: New file.
836 * modules/uniwidth/u32-width-tests: New file.
838 * lib/uniwidth/u32-width.c: New file.
839 * modules/uniwidth/u32-width: New file.
841 * tests/uniwidth/test-u16-width.c: New file.
842 * modules/uniwidth/u16-width-tests: New file.
844 * lib/uniwidth/u16-width.c: New file.
845 * modules/uniwidth/u16-width: New file.
847 * tests/uniwidth/test-u8-width.c: New file.
848 * modules/uniwidth/u8-width-tests: New file.
850 * lib/uniwidth/u8-width.c: New file.
851 * modules/uniwidth/u8-width: New file.
853 * tests/uniwidth/test-uc_width.c: New file.
854 * modules/uniwidth/width-tests: New file.
856 * lib/uniwidth/width.c: New file, from GNU libiconv.
857 * lib/uniwidth/cjk.h: New file, from GNU libiconv.
858 * modules/uniwidth/width: New file.
860 * lib/uniwidth.h: New file, from GNU libiconv.
861 * modules/uniwidth/base: New file.
863 2007-07-07 Bruno Haible <bruno@clisp.org>
865 * lib/uniname.h: New file, from GNU gettext.
866 * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
867 * lib/uniname/uninames.h: New file, from GNU gettext.
868 * lib/uniname/uniname.c: New file, from GNU gettext.
869 * tests/uniname/test-uninames.sh: New file.
870 * tests/uniname/test-uninames.c: New file, from GNU gettext.
871 * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
872 * modules/uniname/base: New file.
873 * modules/uniname/uniname: New file.
874 * modules/uniname/uniname-tests: New file.
875 * MODULES.html.sh (Unicode string functions): Add the new modules.
877 2007-07-06 Bruno Haible <bruno@clisp.org>
879 * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
881 2007-07-06 Bruno Haible <bruno@clisp.org>
883 * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
884 a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
885 includes <cygwin/sys_time.h> which includes <sys/select.h> which
886 include <sys/time.h>.
887 Reported by Eric Blake.
889 2007-07-06 Eric Blake <ebb9@byu.net>
891 Fix testing canonicalize on cygwin.
892 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
893 Revert patch from 2007-06-19.
894 * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
895 canonicalize module is also in use.
896 * tests/test-canonicalize.c: New file.
897 * tests/test-canonicalize.sh: Likewise.
898 * modules/canonicalize-tests: Likewise.
900 2007-07-06 Jim Meyering <jim@meyering.net>
902 * lib/getugroups.c (getugroups): Detect getgrent failure.
903 Adjust comment to reflect reality: this function may return -1.
905 2007-07-05 Sergey Poznyakoff <gray@gnu.org.ua>
907 * build-aux/bootstrap (TP_URL,get_translations): Update to use
910 (gnulib_mk): New variable.
912 2007-07-05 Jim Meyering <jim@meyering.net>
914 Don't let endgrent clobber errno, no matter how improbable.
915 * lib/getugroups.c (getugroups): Save and restore errno around
918 Close the group DB even when failing with 2^31 or more members.
919 * lib/getugroups.c (getugroups): Don't return without calling endgrent.
921 2007-07-04 Jim Meyering <jim@meyering.net>
923 * lib/getugroups.h: New file.
924 * lib/getugroups.c: Include "getugroups.h".
925 Remove uses of "register" keyword.
926 Move local variable, "cp", down into scope where used.
927 Give "username" parameter the "const" attribute.
928 * modules/getugroups (Files): Add lib/getugroups.h
930 2007-07-04 Karl Berry <karl@gnu.org>
932 * MODULES.html.sh (func_all_modules): Complete rename of
933 gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
935 2007-07-02 Bruno Haible <bruno@clisp.org>
937 * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
938 mode, when inttypes.h comes from gnulib.
939 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
941 2007-07-02 Simon Josefsson <simon@josefsson.org>
943 * NEWS: Mention lgpl module name change.
945 * modules/lgpl-2.1: Renamed from lgpl.
947 * NEWS: Mention gpl module name change.
949 * modules/gpl-3.0: New file, based on gpl-2.0.
951 * modules/gpl-2.0: Renamed from gpl.
953 * modules/gpl: Fix filename, doc/gpl.texi is now found at
956 2007-07-02 Paul Eggert <eggert@cs.ucla.edu>
958 * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
959 #define __STDC_LIMIT_MACROS temporarily while including
960 <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
961 Problem reported by Joel E. Denny in
962 <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
964 2007-07-01 Bruno Haible <bruno@clisp.org>
966 * lib/unistdio.h: New file.
967 * lib/unistdio/u-asnprintf.h: New file.
968 * lib/unistdio/u-asprintf.h: New file.
969 * lib/unistdio/u-printf-args.c: New file.
970 * lib/unistdio/u-printf-args.h: New file.
971 * lib/unistdio/u-printf-parse.h: New file.
972 * lib/unistdio/u-snprintf.h: New file.
973 * lib/unistdio/u-sprintf.h: New file.
974 * lib/unistdio/u-vasprintf.h: New file.
975 * lib/unistdio/u-vsnprintf.h: New file.
976 * lib/unistdio/u-vsprintf.h: New file.
977 * lib/unistdio/ulc-asnprintf.c: New file.
978 * lib/unistdio/ulc-asprintf.c: New file.
979 * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
980 * lib/unistdio/ulc-printf-parse.c: New file.
981 * lib/unistdio/ulc-snprintf.c: New file.
982 * lib/unistdio/ulc-sprintf.c: New file.
983 * lib/unistdio/ulc-vasnprintf.c: New file.
984 * lib/unistdio/ulc-vasprintf.c: New file.
985 * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
986 * lib/unistdio/ulc-vsnprintf.c: New file.
987 * lib/unistdio/ulc-vsprintf.c: New file.
988 * lib/unistdio/u8-asnprintf.c: New file.
989 * lib/unistdio/u8-asprintf.c: New file.
990 * lib/unistdio/u8-printf-parse.c: New file.
991 * lib/unistdio/u8-snprintf.c: New file.
992 * lib/unistdio/u8-sprintf.c: New file.
993 * lib/unistdio/u8-vasnprintf.c: New file.
994 * lib/unistdio/u8-vasprintf.c: New file.
995 * lib/unistdio/u8-vsnprintf.c: New file.
996 * lib/unistdio/u8-vsprintf.c: New file.
997 * lib/unistdio/u8-u8-asnprintf.c: New file.
998 * lib/unistdio/u8-u8-asprintf.c: New file.
999 * lib/unistdio/u8-u8-snprintf.c: New file.
1000 * lib/unistdio/u8-u8-sprintf.c: New file.
1001 * lib/unistdio/u8-u8-vasnprintf.c: New file.
1002 * lib/unistdio/u8-u8-vasprintf.c: New file.
1003 * lib/unistdio/u8-u8-vsnprintf.c: New file.
1004 * lib/unistdio/u8-u8-vsprintf.c: New file.
1005 * lib/unistdio/u16-asnprintf.c: New file.
1006 * lib/unistdio/u16-asprintf.c: New file.
1007 * lib/unistdio/u16-printf-parse.c: New file.
1008 * lib/unistdio/u16-snprintf.c: New file.
1009 * lib/unistdio/u16-sprintf.c: New file.
1010 * lib/unistdio/u16-vasnprintf.c: New file.
1011 * lib/unistdio/u16-vasprintf.c: New file.
1012 * lib/unistdio/u16-vsnprintf.c: New file.
1013 * lib/unistdio/u16-vsprintf.c: New file.
1014 * lib/unistdio/u16-u16-asnprintf.c: New file.
1015 * lib/unistdio/u16-u16-asprintf.c: New file.
1016 * lib/unistdio/u16-u16-snprintf.c: New file.
1017 * lib/unistdio/u16-u16-sprintf.c: New file.
1018 * lib/unistdio/u16-u16-vasnprintf.c: New file.
1019 * lib/unistdio/u16-u16-vasprintf.c: New file.
1020 * lib/unistdio/u16-u16-vsnprintf.c: New file.
1021 * lib/unistdio/u16-u16-vsprintf.c: New file.
1022 * lib/unistdio/u32-asnprintf.c: New file.
1023 * lib/unistdio/u32-asprintf.c: New file.
1024 * lib/unistdio/u32-printf-parse.c: New file.
1025 * lib/unistdio/u32-snprintf.c: New file.
1026 * lib/unistdio/u32-sprintf.c: New file.
1027 * lib/unistdio/u32-vasnprintf.c: New file.
1028 * lib/unistdio/u32-vasprintf.c: New file.
1029 * lib/unistdio/u32-vsnprintf.c: New file.
1030 * lib/unistdio/u32-vsprintf.c: New file.
1031 * lib/unistdio/u32-u32-asnprintf.c: New file.
1032 * lib/unistdio/u32-u32-asprintf.c: New file.
1033 * lib/unistdio/u32-u32-snprintf.c: New file.
1034 * lib/unistdio/u32-u32-sprintf.c: New file.
1035 * lib/unistdio/u32-u32-vasnprintf.c: New file.
1036 * lib/unistdio/u32-u32-vasprintf.c: New file.
1037 * lib/unistdio/u32-u32-vsnprintf.c: New file.
1038 * lib/unistdio/u32-u32-vsprintf.c: New file.
1039 * tests/unistdio/test-ulc-asnprintf1.c: New file.
1040 * tests/unistdio/test-ulc-asnprintf1.h: New file.
1041 * tests/unistdio/test-ulc-printf1.h: New file.
1042 * tests/unistdio/test-ulc-vasnprintf1.c: New file.
1043 * tests/unistdio/test-ulc-vasnprintf2.c: New file.
1044 * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
1045 * tests/unistdio/test-ulc-vasnprintf3.c: New file.
1046 * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
1047 * tests/unistdio/test-ulc-vasprintf1.c: New file.
1048 * tests/unistdio/test-ulc-vsnprintf1.c: New file.
1049 * tests/unistdio/test-ulc-vsprintf1.c: New file.
1050 * tests/unistdio/test-u8-asnprintf1.c: New file.
1051 * tests/unistdio/test-u8-asnprintf1.h: New file.
1052 * tests/unistdio/test-u8-printf1.h: New file.
1053 * tests/unistdio/test-u8-vasnprintf1.c: New file.
1054 * tests/unistdio/test-u8-vasnprintf2.c: New file.
1055 * tests/unistdio/test-u8-vasnprintf2.sh: New file.
1056 * tests/unistdio/test-u8-vasnprintf3.c: New file.
1057 * tests/unistdio/test-u8-vasnprintf3.sh: New file.
1058 * tests/unistdio/test-u8-vasprintf1.c: New file.
1059 * tests/unistdio/test-u8-vsnprintf1.c: New file.
1060 * tests/unistdio/test-u8-vsprintf1.c: New file.
1061 * tests/unistdio/test-u16-asnprintf1.c: New file.
1062 * tests/unistdio/test-u16-asnprintf1.h: New file.
1063 * tests/unistdio/test-u16-printf1.h: New file.
1064 * tests/unistdio/test-u16-vasnprintf1.c: New file.
1065 * tests/unistdio/test-u16-vasnprintf2.c: New file.
1066 * tests/unistdio/test-u16-vasnprintf2.sh: New file.
1067 * tests/unistdio/test-u16-vasnprintf3.c: New file.
1068 * tests/unistdio/test-u16-vasnprintf3.sh: New file.
1069 * tests/unistdio/test-u16-vasprintf1.c: New file.
1070 * tests/unistdio/test-u16-vsnprintf1.c: New file.
1071 * tests/unistdio/test-u16-vsprintf1.c: New file.
1072 * tests/unistdio/test-u32-asnprintf1.c: New file.
1073 * tests/unistdio/test-u32-asnprintf1.h: New file.
1074 * tests/unistdio/test-u32-printf1.h: New file.
1075 * tests/unistdio/test-u32-vasnprintf1.c: New file.
1076 * tests/unistdio/test-u32-vasnprintf2.c: New file.
1077 * tests/unistdio/test-u32-vasnprintf2.sh: New file.
1078 * tests/unistdio/test-u32-vasnprintf3.c: New file.
1079 * tests/unistdio/test-u32-vasnprintf3.sh: New file.
1080 * tests/unistdio/test-u32-vasprintf1.c: New file.
1081 * tests/unistdio/test-u32-vsnprintf1.c: New file.
1082 * tests/unistdio/test-u32-vsprintf1.c: New file.
1083 * modules/unistdio/base: New file.
1084 * modules/unistdio/u-printf-args: New file.
1085 * modules/unistdio/ulc-asnprintf: New file.
1086 * modules/unistdio/ulc-asprintf: New file.
1087 * modules/unistdio/ulc-fprintf: New file.
1088 * modules/unistdio/ulc-printf-parse: New file.
1089 * modules/unistdio/ulc-snprintf: New file.
1090 * modules/unistdio/ulc-sprintf: New file.
1091 * modules/unistdio/ulc-vasnprintf: New file.
1092 * modules/unistdio/ulc-vasprintf: New file.
1093 * modules/unistdio/ulc-vfprintf: New file.
1094 * modules/unistdio/ulc-vsnprintf: New file.
1095 * modules/unistdio/ulc-vsprintf: New file.
1096 * modules/unistdio/u8-asnprintf: New file.
1097 * modules/unistdio/u8-asprintf: New file.
1098 * modules/unistdio/u8-printf-parse: New file.
1099 * modules/unistdio/u8-snprintf: New file.
1100 * modules/unistdio/u8-sprintf: New file.
1101 * modules/unistdio/u8-vasnprintf: New file.
1102 * modules/unistdio/u8-vasprintf: New file.
1103 * modules/unistdio/u8-vsnprintf: New file.
1104 * modules/unistdio/u8-vsprintf: New file.
1105 * modules/unistdio/u8-u8-asnprintf: New file.
1106 * modules/unistdio/u8-u8-asprintf: New file.
1107 * modules/unistdio/u8-u8-snprintf: New file.
1108 * modules/unistdio/u8-u8-sprintf: New file.
1109 * modules/unistdio/u8-u8-vasnprintf: New file.
1110 * modules/unistdio/u8-u8-vasprintf: New file.
1111 * modules/unistdio/u8-u8-vsnprintf: New file.
1112 * modules/unistdio/u8-u8-vsprintf: New file.
1113 * modules/unistdio/u16-asnprintf: New file.
1114 * modules/unistdio/u16-asprintf: New file.
1115 * modules/unistdio/u16-printf-parse: New file.
1116 * modules/unistdio/u16-snprintf: New file.
1117 * modules/unistdio/u16-sprintf: New file.
1118 * modules/unistdio/u16-vasnprintf: New file.
1119 * modules/unistdio/u16-vasprintf: New file.
1120 * modules/unistdio/u16-vsnprintf: New file.
1121 * modules/unistdio/u16-vsprintf: New file.
1122 * modules/unistdio/u16-u16-asnprintf: New file.
1123 * modules/unistdio/u16-u16-asprintf: New file.
1124 * modules/unistdio/u16-u16-snprintf: New file.
1125 * modules/unistdio/u16-u16-sprintf: New file.
1126 * modules/unistdio/u16-u16-vasnprintf: New file.
1127 * modules/unistdio/u16-u16-vasprintf: New file.
1128 * modules/unistdio/u16-u16-vsnprintf: New file.
1129 * modules/unistdio/u16-u16-vsprintf: New file.
1130 * modules/unistdio/u32-asnprintf: New file.
1131 * modules/unistdio/u32-asprintf: New file.
1132 * modules/unistdio/u32-printf-parse: New file.
1133 * modules/unistdio/u32-snprintf: New file.
1134 * modules/unistdio/u32-sprintf: New file.
1135 * modules/unistdio/u32-vasnprintf: New file.
1136 * modules/unistdio/u32-vasprintf: New file.
1137 * modules/unistdio/u32-vsnprintf: New file.
1138 * modules/unistdio/u32-vsprintf: New file.
1139 * modules/unistdio/u32-u32-asnprintf: New file.
1140 * modules/unistdio/u32-u32-asprintf: New file.
1141 * modules/unistdio/u32-u32-snprintf: New file.
1142 * modules/unistdio/u32-u32-sprintf: New file.
1143 * modules/unistdio/u32-u32-vasnprintf: New file.
1144 * modules/unistdio/u32-u32-vasprintf: New file.
1145 * modules/unistdio/u32-u32-vsnprintf: New file.
1146 * modules/unistdio/u32-u32-vsprintf: New file.
1147 * modules/unistdio/ulc-asnprintf-tests: New file.
1148 * modules/unistdio/ulc-vasnprintf-tests: New file.
1149 * modules/unistdio/ulc-vasprintf-tests: New file.
1150 * modules/unistdio/ulc-vsnprintf-tests: New file.
1151 * modules/unistdio/ulc-vsprintf-tests: New file.
1152 * modules/unistdio/u8-asnprintf-tests: New file.
1153 * modules/unistdio/u8-vasnprintf-tests: New file.
1154 * modules/unistdio/u8-vasprintf-tests: New file.
1155 * modules/unistdio/u8-vsnprintf-tests: New file.
1156 * modules/unistdio/u8-vsprintf-tests: New file.
1157 * modules/unistdio/u16-asnprintf-tests: New file.
1158 * modules/unistdio/u16-vasnprintf-tests: New file.
1159 * modules/unistdio/u16-vasprintf-tests: New file.
1160 * modules/unistdio/u16-vsnprintf-tests: New file.
1161 * modules/unistdio/u16-vsprintf-tests: New file.
1162 * modules/unistdio/u32-asnprintf-tests: New file.
1163 * modules/unistdio/u32-vasnprintf-tests: New file.
1164 * modules/unistdio/u32-vasprintf-tests: New file.
1165 * modules/unistdio/u32-vsnprintf-tests: New file.
1166 * modules/unistdio/u32-vsprintf-tests: New file.
1167 * MODULES.html.sh (Unicode string functions): Add the new modules.
1169 2007-07-01 Bruno Haible <bruno@clisp.org>
1171 * lib/sprintf.c (sprintf): Limit the available length estimation,
1172 to avoid address wraparound.
1173 * lib/vsprintf.c (vsprintf): Likewise.
1174 * modules/sprintf-posix (Dependencies): Add stdint.
1175 * modules/vsprintf-posix (Dependencies): Likewise.
1177 2007-07-01 Bruno Haible <bruno@clisp.org>
1179 * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
1180 Windows PATH as well. Conservative double-quoting. Comments.
1182 2007-07-01 Bruno Haible <bruno@clisp.org>
1183 Eric Blake <ebb9@byu.net>
1184 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1186 * gnulib-tool (self_abspathname): Fix algorithm to cope with
1187 empty components in $PATH, denoting '.'.
1189 2007-07-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1191 * gnulib-tool: Fix indentation.
1192 (func_create_megatestdir): Likewise.
1193 Report by Bruno Haible.
1195 2007-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1198 * build-aux/gnupload: Fix shell portability issues with for loops.
1199 Report by Karl Berry.
1201 2007-06-29 Simon Josefsson <simon@josefsson.org>
1203 * build-aux/maint.mk (POURL): Use translationproject.org.
1205 2007-06-27 Simon Josefsson <simon@josefsson.org>
1206 Bruno Haible <bruno@clisp.org>
1208 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
1209 before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
1210 explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
1211 (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
1212 HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
1214 2007-06-27 Bruno Haible <bruno@clisp.org>
1216 * build-aux/config.rpath: Upgrade to libtool-1.5.24.
1217 * build-aux/config.libpath: Upgrade to libtool-1.5.24.
1219 2007-06-26 Karl Berry <karl@gnu.org>
1221 * MODULES.html.sh: remove xreadlink-with-size.
1223 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
1225 * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
1226 method that I hope also handles the double-include problem noted
1228 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
1230 2007-06-23 Bruno Haible <bruno@clisp.org>
1232 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
1233 Don't let the 'mostlyclean' target fail if the last subdirectory could
1235 Reported by Karl Berry.
1237 2007-06-23 Bruno Haible <bruno@clisp.org>
1239 * gnulib-tool (echo): Add a speedier workaround for ksh.
1240 * tests/test-echo.sh: Likewise.
1242 2007-06-23 Bruno Haible <bruno@clisp.org>
1244 * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
1245 * tests/test-echo.sh: Likewise.
1247 2007-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1249 * gnulib-tool (IFS): Initialize early, so we don't set it to
1251 (self_abspathname): Rewrite algorithm to set it, reindent.
1252 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
1253 (func_create_megatestdir): Merge some sed scripts.
1255 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
1257 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
1258 exposed by Sun Studio 11 cc on Solaris 8.
1260 2007-06-22 Bruno Haible <bruno@clisp.org>
1262 * gnulib-tool (echo): Ensure the echo primitive does not interpret
1264 * tests/test-echo.sh: New file.
1266 2007-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1268 * gnulib-tool (func_add_or_update, func_create_testdir): Do not
1269 simplify `sed_replace_build_aux' scripts, they are portable but
1270 echoing them with `echo' is not.
1271 Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
1273 2007-06-21 Karl Berry <karl@gnu.org>
1275 * config/srclist.txt: guess we can't handle the licenses via
1276 srclist at the moment.
1278 2007-06-21 Paul Eggert <eggert@cs.ucla.edu>
1280 * MODULES.html.sh: Add include_next.
1281 * modules/include_next: New file.
1283 2007-06-20 Paul Eggert <eggert@cs.ucla.edu>
1285 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
1287 (gl_CHECK_NEXT_HEADERS): New macro.
1288 * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
1289 the obsolescent gl_ABSOLUTE_HEADER.
1290 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
1291 * m4/float_h.m4 (gl_FLOAT_H): Likewise.
1292 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
1293 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
1294 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
1295 * m4/math_h.m4 (gl_MATH_H): Likewise.
1296 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
1297 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
1298 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
1299 * m4/stdint.m4 (gl_STDINT_H): Likewise.
1300 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
1301 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
1302 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
1303 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1304 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
1305 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
1306 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
1307 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
1308 * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
1309 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1310 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
1311 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
1312 * m4/inttypes.m4 (gl_INTTYPES_H): Define
1313 _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
1314 builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
1315 * m4/stdint.m4 (gl_STDINT_H): Likewise, for
1316 _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
1317 * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
1318 rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
1319 * lib/float_.h: Likewise.
1320 * lib/inttypes_.h: Likewise.
1321 * lib/math_.h: Likewise.
1322 * lib/search_.h: Likewise.
1323 * lib/signal_.h: Likewise.
1324 * lib/stdint_.h: Likewise.
1325 * lib/stdio_.h: Likewise.
1326 * lib/stdlib_.h: Likewise.
1327 * lib/string_.h: Likewise.
1328 * lib/sys_stat_.h: Likewise.
1329 * lib/sys_time_.h: Likewise.
1330 * lib/time_.h: Likewise.
1331 * lib/unistd_.h: Likewise.
1332 * lib/wchar_.h: Likewise.
1333 * lib/wctype_.h: Likewise.
1334 * lib/dirent_.h: Likewise.
1335 * lib/iconv_.h: Likewise.
1336 * lib/locale_.h: Likewise.
1337 * lib/netinet_in_.h: Likewise.
1338 * lib/sys_select_.h: Likewise.
1339 * lib/sys_socket_.h: Likewise.
1340 * lib/sysexits_.h: Likewise.
1341 * modules/fcntl (Depends-on): Depend on include_next, not
1343 (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
1344 HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
1345 * modules/fchdir: Likewise.
1346 * modules/float: Likewise.
1347 * modules/iconv_open: Likewise.
1348 * modules/inttypes: Likewise.
1349 * modules/locale: Likewise.
1350 * modules/math: Likewise.
1351 * modules/netinet_in: Likewise.
1352 * modules/search: Likewise.
1353 * modules/signal: Likewise.
1354 * modules/stdint: Likewise.
1355 * modules/stdio: Likewise.
1356 * modules/stdlib: Likewise.
1357 * modules/string: Likewise.
1358 * modules/sys_select: Likewise.
1359 * modules/sys_socket: Likewise.
1360 * modules/sys_stat: Likewise.
1361 * modules/sys_time: Likewise.
1362 * modules/sysexits: Likewise.
1363 * modules/time: Likewise.
1364 * modules/unistd: Likewise.
1365 * modules/wchar: Likewise.
1366 * modules/wctype: Likewise.
1367 * modules/sys_stat: Change maintainer to "all".
1368 * modules/unistd: Likewise.
1370 2007-06-20 Karl Berry <karl@gnu.org>
1372 * config/srclist.txt: track www changes in license files.
1374 2007-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
1376 * build-aux/bootstrap: Remove stray dot.
1377 Make sure build_aux settings are honored when linking
1380 2007-06-19 Eric Blake <ebb9@byu.net>
1382 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
1383 Allow compilation on cygwin.
1385 2007-06-19 Jim Meyering <jim@meyering.net>
1387 xreadlink-with-size: Remove module. No longer used.
1388 Ex-callers now use xreadlink or mreadlink-with-size.
1389 * modules/xreadlink-with-size: Remove module.
1390 * lib/xreadlink-with-size.c: Remove file.
1391 * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
1392 (xreadlink): Remove inaccurate comment. The one in xreadlink.c,
1393 just before the function definition *is* accurate.
1395 Eliminate one way canonicalize_filename_mode could exit.
1396 * lib/canonicalize.c (canonicalize_filename_mode):
1397 Use mreadlink_with_size, not xreadlink_with_size.
1399 2007-06-18 Paul Eggert <eggert@cs.ucla.edu>
1401 Detect porting problems to FreeBSD/arm, which has time_t wider than
1402 long int. Original problem reported for GNU diff by Xin Li in
1403 <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
1404 * modules/getdate (Depends-on): Add intprops, verify.
1405 * lib/getdate.y: Include intprops.h, verify.h. Verify that time_t
1406 is an integer type no wider than long int.
1408 2007-06-18 Jim Meyering <jim@meyering.net>
1410 New module: mreadlink-with-size.
1411 * MODULES.html.sh: Add mreadlink-with-size.
1412 * modules/mreadlink-with-size: New module
1413 * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
1414 not xreadlink-with-size.
1415 * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
1417 2007-06-16 Bruno Haible <bruno@clisp.org>
1419 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
1420 * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
1421 Reported by Gary V. Vaughan <gary@gnu.org>.
1423 2007-06-15 Paul Eggert <eggert@cs.ucla.edu>
1425 Revamp lchown so that it lives in unistd.h where it belongs.
1426 * lib/lchown.h: Remove.
1427 * lib/dirchownmod.c: Don't include lib/lchown.h.
1428 * lib/fchownat.c: Likewise.
1429 * lib/openat.c: Likewise.
1430 * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
1431 does not follow symlinks.
1432 (EOPNOTSUPP): Define if not defined.
1433 * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
1436 * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
1437 Do not check for lchown decl.
1439 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
1441 * modules/chown: Make it clear it follows symlinks.
1442 * modules/lchown: Make it clear it doesn't follow symlinks.
1443 (Files): Remove lib/lchown.h
1444 (Depends-on): Add unistd.
1445 (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
1446 (Include): Include <unistd.h>, not "lchown.h".
1447 * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
1450 2007-06-15 Jim Meyering <jim@meyering.net>
1452 Change license (GPL to LGPL) of fsusage and dependents.
1453 * modules/fsusage (License): Change to LGPL.
1454 * modules/full-read (License): Likewise.
1455 * modules/full-write (License): Likewise.
1456 * modules/safe-read (License): Likewise.
1457 * modules/safe-write (License): Likewise.
1459 2007-06-14 Ben Pfaff <blp@gnu.org>
1461 Missing part of allocsa -> malloca transition.
1462 * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
1465 2007-06-12 Bruno Haible <bruno@clisp.org>
1467 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
1468 to ia64, x86_64, i386.
1469 Reported by Eric Blake.
1471 2007-06-12 Bruno Haible <bruno@clisp.org>
1473 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
1474 cross-compiling to x86_64.
1476 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
1478 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
1479 glitch reported by Ralf Wildenhues in
1480 <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
1482 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
1485 2007-06-11 Bruno Haible <bruno@clisp.org>
1487 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
1489 Reported by Eric Blake.
1491 2007-06-10 Bruno Haible <bruno@clisp.org>
1493 Prepare vasnprintf code for use with Unicode strings.
1494 * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
1495 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
1497 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
1498 a_u32_string variants.
1499 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
1500 * lib/printf-args.c: Don't include config.h and the specification
1501 header if PRINTF_FETCHARGS is already defined.
1502 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
1503 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
1504 TYPE_U16_STRING, TYPE_U32_STRING.
1505 * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
1506 u16_directive, u16_directives, u32_directive, u32_directives): New
1508 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
1510 * lib/printf-parse.c: Don't include config.h and the specification
1511 header if PRINTF_PARSE is already defined. Eliminate the set of
1512 parameters for WIDE_CHAR_VERSION; the user of this file must provide
1513 them now. Include c-ctype.h.
1514 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
1515 directive and CHAR_T_ONLY_ASCII.
1516 * lib/vasnprintf.c: Don't include config.h and the specification header
1517 if VASNPRINTF is already defined.
1518 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
1519 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
1520 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
1521 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
1522 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
1523 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
1525 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
1526 pad_ourselves also in this case, with the 'c' and 's' directives, and
1527 with a different notion of "width".
1528 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
1530 2007-06-10 Bruno Haible <bruno@clisp.org>
1532 * modules/unistr/u32-mbsnlen: New file.
1533 * lib/unistr/u32-mbsnlen.c: New file.
1535 * modules/unistr/u16-mbsnlen: New file.
1536 * lib/unistr/u16-mbsnlen.c: New file.
1538 * modules/unistr/u8-mbsnlen: New file.
1539 * lib/unistr/u8-mbsnlen.c: New file.
1541 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
1544 2007-06-10 Bruno Haible <bruno@clisp.org>
1546 * lib/string_.h (mbsnlen): New declaration.
1547 * lib/mbsnlen.c: New file.
1548 * m4/mbsnlen.m4: New file.
1549 * modules/mbsnlen: New file.
1550 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
1551 * modules/string (string.h): Substitute GNULIB_MBSNLEN.
1552 * MODULES.html.sh (Internationalization functions): Add mbsnlen.
1554 2007-06-10 Bruno Haible <bruno@clisp.org>
1556 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
1558 2007-06-10 Bruno Haible <bruno@clisp.org>
1560 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
1561 * lib/mbuiter.h: Likewise.
1563 2007-06-10 Bruno Haible <bruno@clisp.org>
1565 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
1568 2007-06-10 Karl Berry <karl@gnu.org>
1570 * config/srclist.txt: remove gettext entries, Bruno prefers
1571 to update individually.
1573 2007-06-10 Bruno Haible <bruno@clisp.org>
1575 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
1576 'maxlen'. Ensure only length + width bytes are allocated, not
1579 2007-06-09 Bruno Haible <bruno@clisp.org>
1581 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
1582 (CHAR_T): Remove macro.
1583 (VASNPRINTF): Update.
1585 2007-06-09 Bruno Haible <bruno@clisp.org>
1587 * MODULES.html.sh (Unicode string functions): Add the new modules.
1589 * modules/uniconv/u32-conv-to-enc: New file.
1590 * lib/uniconv/u32-conv-to-enc.c: New file.
1591 * modules/uniconv/u32-conv-to-enc-tests: New file.
1592 * tests/uniconv/test-u32-conv-to-enc.c: New file.
1594 * modules/uniconv/u16-conv-to-enc: New file.
1595 * lib/uniconv/u16-conv-to-enc.c: New file.
1596 * lib/uniconv/u-conv-to-enc.h: New file.
1597 * modules/uniconv/u16-conv-to-enc-tests: New file.
1598 * tests/uniconv/test-u16-conv-to-enc.c: New file.
1600 * modules/uniconv/u8-conv-to-enc: New file.
1601 * lib/uniconv/u8-conv-to-enc.c: New file.
1602 * modules/uniconv/u8-conv-to-enc-tests: New file.
1603 * tests/uniconv/test-u8-conv-to-enc.c: New file.
1605 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
1606 u32_conv_to_encoding): New declarations.
1608 2007-06-09 Bruno Haible <bruno@clisp.org>
1610 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
1612 2007-06-09 Bruno Haible <bruno@clisp.org>
1614 Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
1615 * modules/malloca: Renamed from modules/allocsa, updated.
1616 * lib/malloca.h: Renamed from lib/allocsa.h, updated.
1617 * lib/malloca.c: Renamed from lib/allocsa.c, updated.
1618 * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
1619 * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
1620 * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
1621 * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
1622 * modules/xmalloca: Renamed from modules/xallocsa, updated.
1623 * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
1624 * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
1625 * modules/c-strcasestr (Depends-on): Update.
1626 * lib/c-strcasestr.c: Update.
1627 * modules/c-strstr (Depends-on): Update.
1628 * lib/c-strstr.c: Update.
1629 * modules/canonicalize-lgpl (Depends-on): Update.
1630 * lib/canonicalize-lgpl.c: Update.
1631 * modules/clean-temp (Depends-on): Update.
1632 * lib/clean-temp.c: Update.
1633 * modules/csharpcomp (Depends-on): Update.
1634 * lib/csharpcomp.c: Update.
1635 * modules/csharpexec (Depends-on): Update.
1636 * lib/csharpexec.c: Update.
1637 * modules/javacomp (Depends-on): Update.
1638 * lib/javacomp.c: Update.
1639 * modules/javaexec (Depends-on): Update.
1640 * lib/javaexec.c: Update.
1641 * modules/mbscasestr (Depends-on): Update.
1642 * lib/mbscasestr.c: Update.
1643 * modules/mbsstr (Depends-on): Update.
1644 * lib/mbsstr.c: Update.
1645 * modules/setenv (Depends-on): Update.
1646 * lib/setenv.c: Update.
1647 * modules/strcasestr (Depends-on): Update.
1648 * lib/strcasestr.c: Update.
1649 * modules/striconveha (Depends-on): Update.
1650 * lib/striconveha.c: Update.
1651 * modules/relocatable-prog-wrapper (Files): Update.
1652 * lib/relocwrapper.c: Update.
1653 * build-aux/install-reloc: Update.
1654 * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
1656 2007-06-08 Bruno Haible <bruno@clisp.org>
1659 * lib/fbufmode.c (fbufmode): Add special code for uClibc.
1660 * lib/fpurge.c (fpurge): Likewise.
1661 * lib/freading.c (freading): Likewise.
1662 * lib/fseeko.c (rpl_fseeko): Likewise.
1663 * lib/fseterr.c (fseterr): Likewise.
1664 * lib/fwriting.c (fwriting): Likewise.
1665 * tests/test-fflush.c (main): Avoid a failure on uClibc.
1667 2007-06-08 Bruno Haible <bruno@clisp.org>
1669 * m4/intlmacosx.m4: New file, extracted from gettext.m4.
1670 * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
1671 * modules/gettext (Files): Add m4/intlmacosx.m4.
1673 2007-06-07 Bruno Haible <bruno@clisp.org>
1675 * modules/localename-tests: New file.
1676 * tests/test-localename.c: New file.
1678 New module 'localename'.
1679 * lib/localename.h: New file.
1680 * lib/localename.c: New file, from GNU gettext.
1681 * m4/localename.m4: New file.
1682 * modules/localename: New file.
1684 2007-06-07 Bruno Haible <bruno@clisp.org>
1686 Work around the lack of <wchar.h> on some builds of uClibc.
1687 * doc/headers/wchar.texi: Update.
1688 * lib/wchar_.h: Include <wchar.h> only if it exists.
1689 * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
1690 * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
1691 (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
1693 * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
1694 * modules/mbfile (Depends-on): Add wchar.
1695 * modules/mbiter (Depends-on): Likewise.
1696 * modules/mbuiter (Depends-on): Likewise.
1697 Reported by Simon Josefsson.
1699 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
1701 Work around problem reported by Steven M. Schweda in
1702 <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
1703 Tru64 5.1B with the Compaq compiler environment installed declares
1704 an 'isblank' function but does not define it in the C library.
1705 * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
1706 * lib/regex_internal.h (isblank): Likewise.
1707 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
1708 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
1710 2007-06-05 Bruno Haible <bruno@clisp.org>
1712 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
1714 * modules/printf-safe: New file.
1715 * modules/fprintf-posix (Depends-on): Add printf-safe.
1716 * modules/printf-posix (Depends-on): Likewise.
1717 * modules/snprintf-posix (Depends-on): Likewise.
1718 * modules/sprintf-posix (Depends-on): Likewise.
1719 * modules/vasnprintf-posix (Depends-on): Likewise.
1720 * modules/vasprintf-posix (Depends-on): Likewise.
1721 * modules/vfprintf-posix (Depends-on): Likewise.
1722 * modules/vprintf-posix (Depends-on): Likewise.
1723 * modules/vsnprintf-posix (Depends-on): Likewise.
1724 * modules/vsprintf-posix (Depends-on): Likewise.
1725 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
1726 AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
1727 non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
1728 "no" on i386, x86_64, ia64.
1729 * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
1730 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
1731 on i386, x86_64, ia64.
1732 * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
1733 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
1734 on i386, x86_64, ia64.
1735 * tests/test-vasnprintf-posix.c: Include float.h.
1736 (LDBL80_WORDS): New macro.
1737 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
1738 on i386, x86_64, ia64.
1739 * tests/test-vasprintf-posix.c: Include float.h.
1740 (LDBL80_WORDS): New macro.
1741 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
1742 on i386, x86_64, ia64.
1743 * tests/test-snprintf-posix.c: Include float.h.
1744 * tests/test-sprintf-posix.c: Likewise.
1745 * tests/test-vsnprintf-posix.c: Likewise.
1746 * tests/test-vsprintf-posix.c: Likewise.
1748 2007-06-05 Bruno Haible <bruno@clisp.org>
1750 Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
1751 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
1752 non-IEEE numbers on i386, x86_64, ia64.
1753 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
1754 * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
1755 * tests/test-isnanl.h: Include float.h.
1756 (main): Check also non-IEEE numbers on i386, x86_64, ia64.
1758 2007-06-05 Bruno Haible <bruno@clisp.org>
1760 * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
1761 also the %a / %A. Handle the %a / %A code before this extra handling.
1763 2007-06-05 Bruno Haible <bruno@clisp.org>
1765 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
1766 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
1768 2007-06-05 Bruno Haible <bruno@clisp.org>
1770 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
1771 typo in variable name.
1773 2007-06-05 Eric Blake <ebb9@byu.net>
1775 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
1776 Reported by Simon Josefsson.
1778 2007-06-04 Bruno Haible <bruno@clisp.org>
1780 Avoid test failures on some PowerPC platforms.
1781 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
1782 Define differently for PowerPC.
1783 * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
1784 Reported by Gary V. Vaughan <gary@gnu.org>.
1786 2007-06-02 Bruno Haible <bruno@clisp.org>
1788 Fix test-stdint failure on FreeBSD/ia64.
1789 * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
1790 PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
1791 WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
1792 * doc/headers/stdint.texi: Update.
1794 2007-06-01 Bruno Haible <bruno@clisp.org>
1796 * tests/test-binary-io.c (main): Pass a third argument to open().
1797 Reported by Gary V. Vaughan <gary@gnu.org>.
1799 2007-06-01 Bruno Haible <bruno@clisp.org>
1801 * doc/functions/frexpl.texi: Update for mingw.
1803 2007-06-01 Bruno Haible <bruno@clisp.org>
1805 * tests/test-lseek.c (main): Disable test of errno for invalid third
1807 * doc/functions/lseek.texi: Update.
1808 Reported by Gary V. Vaughan <gary@gnu.org>.
1810 2007-05-28 Bruno Haible <bruno@clisp.org>
1812 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
1814 2007-05-31 Eric Blake <ebb9@byu.net>
1816 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
1819 2007-05-30 Eric Blake <ebb9@byu.net>
1820 and Bruno Haible <bruno@clisp.org>
1822 Work around mingw test failures exposed by m4-1.4.9b.
1823 * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
1824 * tests/test-unistd.c: Disable uid_t and git_t tests for the
1827 2007-05-30 Bruno Haible <bruno@clisp.org>
1829 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
1830 assuming that they are closed. Needed on HP-UX 11.
1832 2007-05-29 Bruno Haible <bruno@clisp.org>
1834 Fix a problem with #include_next.
1835 * lib/dirent_.h: Split the double-inclusion guard.
1836 * lib/fcntl_.h: Likewise.
1837 * lib/float_.h: Likewise.
1838 * lib/iconv_.h: Likewise.
1839 * lib/inttypes_.h: Likewise.
1840 * lib/locale_.h: Likewise.
1841 * lib/math_.h: Likewise.
1842 * lib/netinet_in_.h: Likewise.
1843 * lib/search_.h: Likewise.
1844 * lib/signal_.h: Likewise.
1845 * lib/stdint_.h: Likewise.
1846 * lib/stdio_.h: Likewise.
1847 * lib/stdlib_.h: Likewise.
1848 * lib/string_.h: Likewise.
1849 * lib/sys_select_.h: Likewise.
1850 * lib/sys_socket_.h: Likewise.
1851 * lib/sys_stat_.h: Likewise.
1852 * lib/sys_time_.h: Likewise.
1853 * lib/sysexits_.h: Likewise.
1854 * lib/time_.h: Likewise.
1855 * lib/unistd_.h: Likewise.
1856 * lib/wchar_.h: Likewise.
1857 * lib/wctype_.h: Likewise.
1859 2007-05-29 Bruno Haible <bruno@clisp.org>
1861 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
1864 2007-05-29 Bruno Haible <bruno@clisp.org>
1866 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
1868 Reported by Eric Blake.
1870 2007-05-29 Bruno Haible <bruno@clisp.org>
1872 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
1875 2007-05-29 Eric Blake <ebb9@byu.net>
1876 Bruno Haible <bruno@clisp.org>
1878 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
1881 2007-05-28 Eric Blake <ebb9@byu.net>
1883 * modules/closein-tests (test_closein_LDADD): Support test on
1884 cygwin with libtool.
1886 2007-05-28 Bruno Haible <bruno@clisp.org>
1888 * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
1889 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
1890 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
1891 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
1892 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
1893 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
1894 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
1895 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
1896 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
1898 2007-05-28 Eric Blake <ebb9@byu.net>
1900 Unconditionally include <config.h> in unit tests.
1901 * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
1902 * tests/test-allocsa.c, tests/test-arcfour.c,
1903 tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
1904 tests/test-array_list.c, tests/test-array_oset.c,
1905 tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
1906 test-avltreehash_list.c, test-base64.c, test-binary-io.c,
1907 test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
1908 test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
1909 test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
1910 test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
1911 test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
1912 test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
1913 test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
1914 test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
1915 test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
1916 test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
1917 test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
1918 test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
1919 test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
1920 test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
1921 test-md5.c, test-memmem.c, test-printf-posix.c,
1922 test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
1923 test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
1924 test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
1925 test-strcasestr.c, test-striconv.c, test-striconveh.c,
1926 test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
1927 test-vasnprintf-posix2.c, test-vasnprintf.c,
1928 test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
1929 test-vfprintf-posix.c, test-vprintf-posix.c,
1930 test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
1931 test-xvasprintf.c: Likewise.
1933 2007-05-28 Bruno Haible <bruno@clisp.org>
1935 * gnulib-tool (func_import): Remember the --with-tests command-line
1936 option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
1937 Reported by Eric Blake.
1939 2007-05-28 Bruno Haible <bruno@clisp.org>
1941 * modules/ftell-tests: New file.
1942 * tests/test-ftell.c: New file, based on tests/test-ftello.c.
1943 * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
1945 * lib/ftell.c: New file.
1946 * modules/ftell: New file.
1947 * m4/ftell.m4: New file.
1948 * doc/functions/ftell.texi: Update.
1949 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
1951 * lib/stdio_.h (rpl_ftell): New declaration.
1952 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
1955 2007-05-28 Eric Blake <ebb9@byu.net>
1957 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
1959 2007-05-28 Bruno Haible <bruno@clisp.org>
1961 * modules/fseek-tests: New file.
1962 * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
1963 * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
1965 * lib/fseek.c: New file.
1966 * modules/fseek: New file.
1967 * m4/fseek.m4: New file.
1968 * doc/functions/fseek.texi: Update.
1969 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
1971 * lib/stdio_.h (rpl_fseek): New declaration.
1972 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
1975 2007-05-28 Bruno Haible <bruno@clisp.org>
1977 * lib/stdio_.h (fflush): More comments.
1979 2007-05-28 Bruno Haible <bruno@clisp.org>
1981 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
1984 2007-05-28 Eric Blake <ebb9@byu.net>
1986 Improve lseek module.
1987 * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
1988 * lib/unistd_.h (lseek): Scale back link warning message.
1989 * tests/test-lseek.c: Beef up test.
1990 * tests/test-lseek.sh: Exercise more facets of lseek.
1991 Reported by Bruno Haible.
1993 2007-05-28 Bruno Haible <bruno@clisp.org>
1995 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
1998 2007-05-27 Bruno Haible <bruno@clisp.org>
2000 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
2002 2007-05-27 Bruno Haible <bruno@clisp.org>
2004 * modules/openmp: New file.
2005 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
2008 2007-05-26 Bruno Haible <bruno@clisp.org>
2010 * modules/chdir-long (Depends-on): Add fchdir.
2011 * modules/chdir-safer (Depends-on): Likewise.
2012 * modules/fts (Depends-on): Likewise.
2013 * modules/fts-lgpl (Depends-on): Likewise.
2014 * modules/openat (Depends-on): Likewise.
2015 * modules/savewd (Depends-on): Likewise.
2017 2007-05-24 Eric Blake <ebb9@byu.net>
2020 * modules/lseek: New module.
2021 * m4/lseek.m4: New file.
2022 * lib/lseek.c: New file.
2023 * modules/lseek-tests: New file.
2024 * tests/test-lseek.c: New file.
2025 * tests/test-lseek.sh: New file.
2026 * MODULES.html.sh: Document lseek module.
2027 * modules/fflush (Depends-on): Add lseek, fseeko.
2028 * modules/fseeko (Depends-on): Likewise.
2029 * modules/ftello (Depends-on): Likewise.
2030 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
2032 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
2034 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
2035 * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
2036 * lib/ftello.c (rpl_ftello): Likewise.
2037 * tests/test-fseeko.c (main): Test this.
2038 * tests/test-fseeko.sh: Likewise.
2039 * tests/test-ftello.c (main): Likewise.
2040 * tests/test-ftello.sh: Likewise.
2041 * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
2042 implies replacing fseek.
2043 * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
2045 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
2046 * modules/unistd (Makefile.am): Likewise.
2047 * lib/unistd_.h (lseek): Declare a replacement.
2048 * doc/functions/lseek.texi (lseek): Document this fix.
2049 * doc/functions/fseek.texi (fseek): Likewise.
2050 * doc/functions/ftell.texi (ftell): Likewise.
2052 2007-05-24 Bruno Haible <bruno@clisp.org>
2054 * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
2055 in the printed representation of a NaN.
2056 * tests/test-vasprintf-posix.c (test_function): Likewise.
2057 * tests/test-snprintf-posix.h (test_function): Likewise.
2058 * tests/test-sprintf-posix.h (test_function): Likewise.
2059 Reported by Eric Blake.
2061 2007-05-23 Eric Blake <ebb9@byu.net>
2063 Fix fseeko/ftello on cygwin 1.5.24.
2064 * doc/functions/fseeko.texi (fseeko): Document the fix.
2065 * doc/functions/ftello.texi (ftello): Document the fix.
2066 * doc/functions/stdin.texi (stdin): Document the cygwin bug.
2067 * doc/functions/stdout.text (stdout): New file.
2068 * doc/functions/stderr.text (stderr): New file.
2069 * doc/gnulib.texi (Function Substitutes): Use new files.
2070 * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
2072 * tests/test-ftello.c (main): Likewise for ftello.
2073 * tests/test-fseeko.sh: New file.
2074 * tests/test-ftello.sh: New file.
2075 * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
2076 with seekable stdin.
2077 * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
2078 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
2079 (gl_REPLACE_FSEEKO): New macro.
2080 * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
2081 * modules/fseeko (Files): Distribute fseeko.c.
2082 * modules/ftello (Files): Distribute ftello.c.
2083 * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
2085 * lib/ftello.c (rpl_ftello): New file.
2086 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
2088 (gl_STDIN_LARGE_OFFSET): New macro.
2089 * modules/stdio (Makefile.am): Perform the replacement.
2090 * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
2092 2007-05-23 Bruno Haible <bruno@clisp.org>
2094 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
2095 GNULIB_POSIXCHECK is defined.
2097 2007-05-21 Bruno Haible <bruno@clisp.org>
2099 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
2100 Check also the output for NaN arguments. When cross-compiling, guess
2102 * lib/vasnprintf.c: Update comments.
2103 * tests/test-vasnprintf-posix.c (strisnan): New function.
2104 (test_function): Use it.
2105 * tests/test-vasprintf-posix.c (strisnan): New function.
2106 (test_function): Use it.
2107 * tests/test-snprintf-posix.h (strisnan): New function.
2108 (test_function): Use it.
2109 * tests/test-sprintf-posix.h (strisnan): New function.
2110 (test_function): Use it.
2111 Reported by Eric Blake.
2113 2007-05-20 Bruno Haible <bruno@clisp.org>
2115 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
2116 numbers that fails on BeOS.
2117 * doc/functions/frexpl.texi: Update.
2119 2007-05-20 Jim Meyering <jim@meyering.net>
2121 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
2122 forced upon us by glibc-2.6.
2124 2007-05-20 Bruno Haible <bruno@clisp.org>
2126 Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
2127 * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
2128 (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
2129 * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
2130 NEED_PRINTF_INFINITE.
2131 (is_infinitel): New function.
2132 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
2133 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
2134 gl_PREREQ_VASNPRINTF_INFINITE.
2135 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
2136 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
2137 gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
2138 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
2139 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
2140 gl_PREREQ_VASNPRINTF_INFINITE.
2141 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
2142 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2143 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2144 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2145 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2146 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2147 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2148 * doc/functions/fprintf.texi: Update.
2149 * doc/functions/printf.texi: Update.
2150 * doc/functions/snprintf.texi: Update.
2151 * doc/functions/sprintf.texi: Update.
2152 * doc/functions/vfprintf.texi: Update.
2153 * doc/functions/vprintf.texi: Update.
2154 * doc/functions/vsnprintf.texi: Update.
2155 * doc/functions/vsprintf.texi: Update.
2157 2007-05-20 Bruno Haible <bruno@clisp.org>
2159 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
2160 was not found in libc.
2161 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
2163 2007-05-20 Bruno Haible <bruno@clisp.org>
2165 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
2166 printed as "-nan" instead of "nan".
2167 * tests/test-vasprintf-posix.c (test_function): Likewise.
2168 * tests/test-snprintf-posix.h (test_function): Likewise.
2169 * tests/test-sprintf-posix.h (test_function): Likewise.
2170 Needed for HP-UX 11.
2172 2007-05-20 Jim Meyering <jim@meyering.net>
2174 Fix buggy test for the fchownat-deref bug.
2175 * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
2176 symlink required for the run-test. Without it, this test would
2177 always declare that fchownat doesn't work, and client code would
2178 unnecessarily use the replacement function with fixed libc.
2179 (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
2180 Reported by Greg Schafer.
2182 2007-05-19 Bruno Haible <bruno@clisp.org>
2184 * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
2185 (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
2186 * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
2187 Needed for IRIX 6.5 and Solaris 2.5.1.
2189 2007-05-19 Bruno Haible <bruno@clisp.org>
2191 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
2192 (test_function): Skip tests involving -0.0 on platforms where
2194 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
2195 (test_function): Skip tests involving -0.0 on platforms where
2197 * tests/test-snprintf-posix.h (have_minus_zero): New function.
2198 (test_function): Skip tests involving -0.0 on platforms where
2200 * tests/test-sprintf-posix.h (have_minus_zero): New function.
2201 (test_function): Skip tests involving -0.0 on platforms where
2203 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
2205 * tests/test-printf-posix.h (test_function): Likewise.
2206 * tests/test-printf-posix.output: Remove all -0.0 related results.
2207 Needed for IRIX 6.5.
2209 2007-05-19 Bruno Haible <bruno@clisp.org>
2211 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
2212 printed as "nan0x7fffffff" instead of "nan".
2213 * tests/test-vasprintf-posix.c (test_function): Likewise.
2214 * tests/test-snprintf-posix.h (test_function): Likewise.
2215 * tests/test-sprintf-posix.h (test_function): Likewise.
2216 * tests/test-fprintf-posix.h (NaN): Remove macro.
2217 (test_function): Remove all NaN related tests.
2218 * tests/test-printf-posix.h (NaN): Remove macro.
2219 (test_function): Remove all NaN related tests.
2220 * tests/test-printf-posix.output: Remove all NaN related results.
2221 Needed for IRIX 6.5.
2223 2007-05-19 Bruno Haible <bruno@clisp.org>
2225 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
2226 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
2228 2007-05-19 Bruno Haible <bruno@clisp.org>
2230 * lib/float_.h: New file.
2231 * m4/float_h.m4: New file.
2232 * modules/float: New file.
2233 * modules/isnanl (Dependencies): Add float.
2234 * modules/isnanl-nolibm (Dependencies): Likewise.
2235 * modules/mathl (Dependencies): Likewise.
2236 * modules/printf-frexpl (Dependencies): Likewise.
2237 * modules/signbit (Dependencies): Likewise.
2238 * modules/vasnprintf (Dependencies): Likewise.
2239 * doc/headers/float.texi: Update.
2241 2007-05-19 Jim Meyering <jim@meyering.net>
2243 * lib/utimens.c (gl_futimens): Rename from futimens,
2244 now that glibc-2.6 declares futimens.
2245 * lib/utimens.h: Likewise.
2247 2007-05-19 Bruno Haible <bruno@clisp.org>
2249 Avoid test failures on mingw.
2250 * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
2251 * tests/test-printf-posix.sh: Likewise.
2252 * tests/test-vfprintf-posix.sh: Likewise.
2253 * tests/test-vprintf-posix.sh: Likewise.
2255 2007-05-19 Bruno Haible <bruno@clisp.org>
2257 Fix *printf result for NaN, Inf, -0.0 on mingw.
2258 * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
2259 * lib/vasnprintf.c: Include math.h and isnan.h.
2260 (is_infinite_or_zero): New function.
2261 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
2262 values in the %f, %F, %e, %E, %g, %G directives.
2263 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
2264 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
2265 gl_PRINTF_INFINITE and test its result. Invoke
2266 gl_PREREQ_VASNPRINTF_INFINITE.
2267 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
2268 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2269 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2270 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2271 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2272 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2273 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2274 * doc/functions/fprintf.texi: Update.
2275 * doc/functions/printf.texi: Update.
2276 * doc/functions/snprintf.texi: Update.
2277 * doc/functions/sprintf.texi: Update.
2278 * doc/functions/vfprintf.texi: Update.
2279 * doc/functions/vprintf.texi: Update.
2280 * doc/functions/vsnprintf.texi: Update.
2281 * doc/functions/vsprintf.texi: Update.
2283 2007-05-19 Bruno Haible <bruno@clisp.org>
2285 * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
2286 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
2287 Instead of multiplying with 10^k, set extra_zeroes to k.
2288 (scale10_round_long_double): Remove function.
2290 2007-05-18 Bruno Haible <bruno@clisp.org>
2292 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
2293 introduced on 2007-05-06.
2295 2007-05-18 Bruno Haible <bruno@clisp.org>
2297 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
2299 * tests/test-vasprintf-posix.c (test_function): Likewise.
2300 * tests/test-snprintf-posix.h (test_function): Likewise.
2301 * tests/test-sprintf-posix.h (test_function): Likewise.
2303 2007-05-18 Bruno Haible <bruno@clisp.org>
2305 * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
2306 (strmatch): New function.
2307 (test_function): Test the %f directive on numbers of various exponents.
2308 * tests/test-vasprintf-posix.c (SIZEOF): New macro.
2309 (strmatch): New function.
2310 (test_function): Test the %f directive on numbers of various exponents.
2311 * tests/test-snprintf-posix.h (strmatch): New function.
2312 (test_function): Test the %f directive on numbers of various exponents.
2313 * tests/test-sprintf-posix.h (strmatch): New function.
2314 (test_function): Test the %f directive on numbers of various exponents.
2315 * tests/test-snprintf-posix.c (SIZEOF): New macro.
2316 * tests/test-sprintf-posix.c (SIZEOF): New macro.
2317 * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
2318 * tests/test-vsprintf-posix.c (SIZEOF): New macro.
2320 2007-05-18 Bruno Haible <bruno@clisp.org>
2322 Add support for 'long double' number output.
2323 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
2324 * lib/vasnprintf.c: Include math.h and float+.h.
2325 (mp_limb_t): New type.
2326 (GMP_LIMB_BITS): New macro.
2327 (mp_twolimb_t): New type.
2328 (GMP_TWOLIMB_BITS): New macro.
2330 (multiply, divide, convert_to_decimal, decode_long_double,
2331 scale10_round_long_double, scale10_round_decimal_long_double,
2332 floorlog10l): New functions.
2333 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
2334 for the %f, %F, %e, %E, %g, %G directives.
2335 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
2336 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
2337 gl_PRINTF_LONG_DOUBLE and test its result. Invoke
2338 gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
2339 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
2340 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2341 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2342 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2343 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2344 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2345 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2346 * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
2347 * modules/snprintf-posix (Depends-on): Likewise.
2348 * modules/sprintf-posix (Depends-on): Likewise.
2349 * modules/vasnprintf-posix (Depends-on): Likewise.
2350 * modules/vasprintf-posix (Depends-on): Likewise.
2351 * modules/vfprintf-posix (Depends-on): Likewise.
2352 * modules/vsnprintf-posix (Depends-on): Likewise.
2353 * modules/vsprintf-posix (Depends-on): Likewise.
2354 * modules/vasnprintf (Files): Add lib/float+.h.
2355 * doc/functions/fprintf.texi: Update.
2356 * doc/functions/printf.texi: Update.
2357 * doc/functions/snprintf.texi: Update.
2358 * doc/functions/sprintf.texi: Update.
2359 * doc/functions/vfprintf.texi: Update.
2360 * doc/functions/vprintf.texi: Update.
2361 * doc/functions/vsnprintf.texi: Update.
2362 * doc/functions/vsprintf.texi: Update.
2364 2007-05-18 Bruno Haible <bruno@clisp.org>
2366 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
2368 2007-05-18 Bruno Haible <bruno@clisp.org>
2370 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
2371 for printing 64-bit integers. Needed for mingw.
2373 2007-05-18 Bruno Haible <bruno@clisp.org>
2375 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
2376 gl_FUNC_FREXPL_WORKS.
2377 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
2379 2007-05-18 Bruno Haible <bruno@clisp.org>
2381 * modules/frexpl-nolibm-tests: New file.
2383 * modules/frexpl-nolibm: New file.
2384 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
2386 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
2388 * lib/dirent_.h: Prefer #include_next <foo.h> to #include
2389 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
2390 GCC 4.2, which otherwise issues a lot of warnings.
2391 * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
2392 * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
2394 * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
2395 * modules/iconv_open (iconv.h): Likewise.
2396 * modules/locale (locale.h): Likewise.
2397 * modules/netinet_in (netinet/in.h): Likewise.
2398 * modules/sys_select (sys_select.h): Likewise.
2399 * modules/sys_socket (sys/socket.h): Likewise.
2400 * modules/sys_stat (sys/stat.h): Likewise.
2401 * modules/sysexits (sysexits.h): Likewise.
2402 * modules/unistd (unistd.h): Likewise.
2404 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2406 * modules/closein-tests (Makefile.am): Distribute
2409 2007-05-17 Bruno Haible <bruno@clisp.org>
2411 * tests/test-printf-posix.output: Renamed from
2412 tests/test-fprintf-posix.out.
2413 * modules/fprintf-posix-tests: Update.
2414 * modules/printf-posix-tests: Update.
2415 * modules/vfprintf-posix-tests: Update.
2416 * modules/vprintf-posix-tests: Update.
2417 * tests/test-fprintf-posix.sh: Update.
2418 * tests/test-printf-posix.sh: Update.
2419 * tests/test-vfprintf-posix.sh: Update.
2420 * tests/test-vprintf-posix.sh: Update.
2421 Reported by Ralf Wildenhues.
2423 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
2425 * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
2426 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
2427 GCC 4.2, which otherwise issues a lot of warnings.
2428 * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
2429 * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
2430 * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
2431 * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
2432 it should no longer be needed.
2433 * lib/string_.h: Likewise.
2434 * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
2435 * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
2436 * modules/inttypes (inttypes.h): Likewise.
2437 * modules/math (math.h): Likewise.
2438 * modules/search (search.h): Likewise.
2439 * modules/signal (signal.h): Likewise.
2440 * modules/stdint (stdint.h): Likewise.
2441 * modules/stdio (stdio.h): Likewise.
2442 * modules/stdlib (stdlib.h): Likewise.
2443 * modules/string (string.h): Likewise.
2444 * modules/sys_time (sys/time.h): Likewise.
2445 * modules/time (time.h): Likewise.
2446 * modules/wchar (wchar.h): Likewise.
2447 * modules/wctype (wtype.h): Likewise.
2449 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
2451 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
2453 2007-05-13 Bruno Haible <bruno@clisp.org>
2455 * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
2456 * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
2457 * strsep.m4 (gl_FUNC_STRSEP): Likewise.
2458 * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
2459 (gl_PREREQ_STRTOK_R): Don't require it here.
2461 2007-05-13 Bruno Haible <bruno@clisp.org>
2463 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
2464 when used in C++ mode.
2466 2007-05-12 Bruno Haible <bruno@clisp.org>
2468 * lib/linebuffer.h: Tweak doc.
2469 * lib/linebuffer.c: Likewise.
2471 2007-05-12 James Youngman <jay@gnu.org>
2473 * lib/linebuffer.c (readlinebuffer_delim): New function,
2474 like readlinebuffer, but use a caller-specified delimiter.
2475 (readlinebuffer): Just call readlinebuffer_delim with '\n'
2477 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
2479 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
2481 * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
2482 * modules/openat (Files): Remove openat-die.c.
2483 (Depends-on): Add openat-die.
2484 * modules/openat-die: New module.
2486 2007-05-06 Bruno Haible <bruno@clisp.org>
2488 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
2489 Update with info about Cygwin.
2490 * doc/functions/fprintf.texi: Update.
2491 * doc/functions/printf.texi: Update.
2492 * doc/functions/snprintf.texi: Update.
2493 * doc/functions/sprintf.texi: Update.
2494 * doc/functions/vfprintf.texi: Update.
2495 * doc/functions/vprintf.texi: Update.
2496 * doc/functions/vsnprintf.texi: Update.
2497 * doc/functions/vsprintf.texi: Update.
2498 Reported by Eric Blake.
2500 2007-05-06 Bruno Haible <bruno@clisp.org>
2502 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
2503 padding ourselves for the floating-point directives.
2504 * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
2505 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
2506 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
2507 gl_PRINTF_FLAG_ZERO and test its result. Invoke
2508 gl_PREREQ_VASNPRINTF_FLAG_ZERO.
2509 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2510 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
2511 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2512 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2513 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2514 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2515 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2516 * tests/test-snprintf-posix.h (test_function): Also check the width
2517 and some flags in the %f directive.
2518 * tests/test-sprintf-posix.h (test_function): Likewise.
2519 * tests/test-vasnprintf-posix.c (test_function): Likewise.
2520 * tests/test-vasprintf-posix.c (test_function): Likewise.
2521 * doc/functions/fprintf.texi: Update.
2522 * doc/functions/printf.texi: Update.
2523 * doc/functions/snprintf.texi: Update.
2524 * doc/functions/sprintf.texi: Update.
2525 * doc/functions/vfprintf.texi: Update.
2526 * doc/functions/vprintf.texi: Update.
2527 * doc/functions/vsnprintf.texi: Update.
2528 * doc/functions/vsprintf.texi: Update.
2530 2007-05-06 Bruno Haible <bruno@clisp.org>
2532 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
2533 pass the ' flag character to sprintf or snprintf.
2534 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
2535 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
2536 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
2537 gl_PRINTF_FLAG_GROUPING and test its result. Invoke
2538 gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
2539 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2540 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
2541 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2542 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2543 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2544 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2545 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2546 * tests/test-snprintf-posix.h (test_function): Also check the grouping
2548 * tests/test-sprintf-posix.h (test_function): Likewise.
2549 * tests/test-vasnprintf-posix.c (test_function): Likewise.
2550 * tests/test-vasprintf-posix.c (test_function): Likewise.
2551 * doc/functions/fprintf.texi: Update.
2552 * doc/functions/printf.texi: Update.
2553 * doc/functions/snprintf.texi: Update.
2554 * doc/functions/sprintf.texi: Update.
2555 * doc/functions/vfprintf.texi: Update.
2556 * doc/functions/vprintf.texi: Update.
2557 * doc/functions/vsnprintf.texi: Update.
2558 * doc/functions/vsprintf.texi: Update.
2560 2007-05-01 Bruno Haible <bruno@clisp.org>
2562 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
2564 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
2566 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
2567 comment for D_INO_IN_DIRENT. Problem reported by James Youngman.
2569 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
2571 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
2572 readdir returns garbage in d_ino. Problem reported by Kaz Sasayama in
2573 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
2575 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
2577 * lib/argp-help.c (struct hol_entry): New member `ord'.
2578 (HOL_ENTRY_PTRCMP): Use ord for comparison
2579 (hol_sort): Initialize ord.
2581 2007-05-01 Bruno Haible <bruno@clisp.org>
2583 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
2584 Reported by Eric Blake.
2585 * doc/gnulib.texi (Function Substitutes): Update.
2587 2007-05-01 Bruno Haible <bruno@clisp.org>
2589 * doc/functions.texi: Remove file, now redundant through
2590 doc/functions/*.texi.
2592 2007-05-01 Bruno Haible <bruno@clisp.org>
2594 * modules/argp (Depends-on): Add sleep.
2596 2007-05-01 Bruno Haible <bruno@clisp.org>
2598 * modules/sleep-tests: New file.
2599 * tests/test-sleep.c: New file.
2601 * modules/sleep: New file.
2602 * lib/sleep.c: New file.
2603 * m4/sleep.m4: New file.
2604 * lib/unistd_.h (sleep): New declaration.
2605 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
2607 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
2608 * doc/functions/sleep.texi: Document the sleep module.
2610 2007-05-01 Bruno Haible <bruno@clisp.org>
2612 * lib/sigprocmask.h: Remove file.
2613 * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
2614 * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
2615 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
2616 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
2617 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
2618 gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
2619 (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
2620 HAVE_SIGSET_T as a shell variable.
2621 * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
2622 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
2623 * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
2624 (Depends-on): Add signal. Remove verify.
2625 (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
2626 (Include): Mention <signal.h> instead of sigprocmask.h.
2627 * NEWS: Mention the change.
2628 * lib/fatal-signal.c: Don't include sigprocmask.h.
2630 2007-05-01 Bruno Haible <bruno@clisp.org>
2632 * modules/signal: New file.
2633 * lib/signal_.h: New file.
2634 * m4/signal_h.m4: New file.
2636 2007-05-01 Bruno Haible <bruno@clisp.org>
2638 * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
2639 * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
2640 * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
2641 HAVE_WCTYPE_CTMP_BUG into wctype.h.
2643 2007-05-01 Bruno Haible <bruno@clisp.org>
2645 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
2647 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
2648 HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
2649 * modules/sys_stat (Makefile.am): Substitute their values into
2652 2007-05-01 Bruno Haible <bruno@clisp.org>
2654 * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
2655 * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
2656 * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
2658 2007-05-01 Bruno Haible <bruno@clisp.org>
2660 * doc/header/assert.texi: Undo last change: don't mention the gnulib
2661 'assert' module here.
2663 2007-05-01 Bruno Haible <bruno@clisp.org>
2665 * doc/functions/*.texi: New files.
2666 * doc/functions/google-ranking.txt: New file.
2667 * doc/gnulib.texi (Function Substitutes): New chapter.
2668 (ctime, inet_ntoa): Remove sections.
2669 * doc/ctime.texi: Remove file.
2670 * doc/inet_ntoa.texi: Remove file.
2671 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
2673 (%.info): New rule, specifying a --reference-limit.
2675 2007-05-01 Bruno Haible <bruno@clisp.org>
2677 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
2679 2007-05-01 Bruno Haible <bruno@clisp.org>
2681 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
2682 the portability of 'mkdir' to mingw systems.
2684 2007-05-01 Bruno Haible <bruno@clisp.org>
2686 * doc/headers/google-ranking.txt: New file.
2688 2007-04-30 Eric Blake <ebb9@byu.net>
2690 Prefer fseeko to fseek.
2691 * modules/getpass (Depends-on): Add fseeko.
2692 * lib/getpass.c (getpass): Use fseeko, not fseek.
2694 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
2696 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
2697 assumes the sorting is stable, while most qsort implementations
2698 are not. Use argument addresses to ensure they never compare as
2701 * tests/test-argp-2.sh (usage-indent test): Fix output
2702 (func_compare): Restore diff options
2703 * tests/test-argp.c: Restore #include "progname.h"
2705 2007-04-29 Bruno Haible <bruno@clisp.org>
2707 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
2708 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
2709 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
2710 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2711 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
2712 (configure.ac): Define CHECK_SNPRINTF_POSIX.
2713 (TESTS, check_PROGRAMS): Add test-snprintf.
2714 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
2715 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
2716 (TESTS, check_PROGRAMS): Add test-vsnprintf.
2717 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
2718 assertions that fail on HP-UX, OSF/1, or IRIX.
2719 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
2721 2007-04-29 Bruno Haible <bruno@clisp.org>
2723 * MODULES.html.sh (posix_functions): Remove 'contents'.
2725 2007-04-29 Karl Berry <karl@gnu.org>
2727 * config/srclist.txt (gendocs_template_min): new entry.
2729 2007-04-29 Bruno Haible <bruno@clisp.org>
2731 Work around fpurge bug on BSD systems.
2732 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
2733 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
2734 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
2735 fpurge to rpl_fpurge if the system already has this function.
2736 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
2737 the case where the system already has this function. Correct invariants
2739 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
2742 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
2744 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
2745 proposed by Sven Verdoolaege.
2747 * tests/test-argp.c: Fix option ordering. Test deeply clustered
2749 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
2750 (usage and help tests): Update
2752 2007-04-29 Bruno Haible <bruno@clisp.org>
2754 * tests/test-fflush.c (main): Use a file of size 17, not 10.
2755 Print more information in case of failure. Disable a test on BeOS.
2757 2007-04-29 Bruno Haible <bruno@clisp.org>
2759 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
2760 This helps debugging on systems on which no gdb is available.
2762 2007-04-29 Bruno Haible <bruno@clisp.org>
2764 * lib/freading.h: Improve comments.
2765 * lib/fwriting.h: Likewise.
2766 * tests/test-freading.c (main): Don't check freading immediately after
2767 repositioning. Needed for glibc.
2769 2007-04-29 Bruno Haible <bruno@clisp.org>
2771 * lib/freading.c (freading): Trivial simplification.
2773 2007-04-28 Bruno Haible <bruno@clisp.org>
2775 * tests/test-fwriting.c (main): Also test the interaction between
2776 fflush and fwriting.
2777 * modules/fwriting-tests (Depends-on): Add fflush.
2779 * tests/test-freading.c (main): Also test the interaction between
2780 fflush and freading.
2781 * modules/freading-tests (Depends-on): Add fflush.
2783 2007-04-28 Bruno Haible <bruno@clisp.org>
2785 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
2787 Suggested by Eric Blake.
2789 2007-04-28 Jim Meyering <jim@meyering.net>
2791 Avoid false-negative in gl_STDINT_H's C99 conformance test.
2792 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
2793 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
2795 2007-04-27 Eric Blake <ebb9@byu.net>
2797 * doc/headers/assert.texi (assert.h): Document assert module use.
2799 2007-04-27 Bruno Haible <bruno@clisp.org>
2801 * doc/headers/*.texi: New files.
2802 * doc/gnulib.texi (Header File Substitutes): New chapter.
2803 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
2805 (standards.info ,standards.html, standards.dvi): Update dependencies.
2806 (mostlyclean, clean): New targets.
2808 2007-04-27 Bruno Haible <bruno@clisp.org>
2810 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
2811 * modules/sysexits (Files, Makefile.am): Update.
2813 * lib/sys_socket_.h: Renamed from lib/socket_.h.
2814 * modules/sys_socket (Files, Makefile.am): Update.
2816 * lib/sys_stat_.h: Renamed from lib/stat_.h.
2817 * modules/sys_stat (Files, Makefile.am): Update.
2819 2007-04-27 Eric Blake <ebb9@byu.net>
2821 * lib/freading.h: Improve comments.
2822 * lib/fwriting.h: Likewise.
2823 * lib/fflush.c: Likewise.
2825 Fix closein for mingw.
2826 * modules/closein-tests: Add tests for closein.
2827 * tests/test-closein.c: New file.
2828 * tests/test-closein.sh: Likewise.
2829 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
2830 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
2832 2007-04-27 Bruno Haible <bruno@clisp.org>
2834 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
2836 * lib/math_.h [__DECC]: Likewise.
2837 * lib/stdio_.h [__DECC]: Likewise.
2838 * lib/stdlib_.h [__DECC]: Likewise.
2839 * lib/string_.h [__DECC]: Likewise.
2840 * lib/time_.h [__DECC]: Likewise.
2841 * lib/wchar_.h [__DECC]: Likewise.
2842 * lib/wctype_.h [__DECC]: Likewise.
2844 2007-04-27 Bruno Haible <bruno@clisp.org>
2846 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
2848 2007-04-27 Bruno Haible <bruno@clisp.org>
2850 * lib/fflush.c: Add comments.
2851 * modules/fpurge-tests (Depends-on): Add fflush.
2852 * modules/freadable-tests (Depends-on): Likewise.
2853 * modules/fwritable-tests (Depends-on): Likewise.
2855 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
2857 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
2858 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
2859 Report by Bruno Haible <bruno@clisp.org>.
2861 2007-04-26 Eric Blake <ebb9@byu.net>
2863 Fix fflush on mingw.
2864 * modules/fflush (Depends-on): Add freading.
2865 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
2868 2007-04-26 Eric Blake <ebb9@byu.net>
2869 and Bruno Haible <bruno@clisp.org>
2871 Implement freading and fwriting.
2872 * lib/freading.c: New file.
2873 * lib/freading.h: Likewise.
2874 * m4/freading.m4: Likewise.
2875 * modules/freading: Likewise.
2876 * modules/freading-tests: Likewise.
2877 * tests/test-freading.c: Likewise.
2878 * lib/fwriting.c: New file.
2879 * lib/fwriting.h: Likewise.
2880 * m4/fwriting.m4: Likewise.
2881 * modules/fwriting: Likewise.
2882 * modules/fwriting-tests: Likewise.
2883 * tests/test-fwriting.c: Likewise.
2884 * MODULES.html.sh (File stream based Input/Output): Mention them.
2886 2007-04-26 Bruno Haible <bruno@clisp.org>
2888 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
2889 'long' when we assume it.
2890 Suggested by Eric Blake.
2892 2007-04-26 Bruno Haible <bruno@clisp.org>
2894 Ensure fseeko, ftello are declared on glibc systems.
2895 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
2896 * modules/fseeko (configure.ac-early): Likewise.
2897 * modules/ftello (configure.ac-early): Likewise.
2898 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
2899 AC_FUNC_FSEEKO for this.
2900 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
2901 (gl_CHECK_FSEEKO): Remove macro.
2903 2007-04-26 Bruno Haible <bruno@clisp.org>
2905 * tests/test-fflush.c (main): Also check the ftell result after
2906 fflush and fseek/fseeko.
2907 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
2908 file descriptor position cache in the stream.
2909 * lib/fseeko.c (rpl_fseeko): Likewise.
2911 2007-04-26 Bruno Haible <bruno@clisp.org>
2913 * modules/fflush-tests (Depends-on): Add fseeko.
2915 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
2916 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2918 * lib/argz_.h: ensure error_t definition is obtained in same
2919 mechanism system argz.h would have.
2920 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
2921 argz facilities are known bad. Err on the side of caution if
2924 2007-04-25 Eric Blake <ebb9@byu.net>
2926 * lib/fpurge.c (includes): Use stdlib.h for free.
2927 * tests/test-fflush.c (main): Also test fflush-fseeko.
2929 2007-04-25 Bruno Haible <bruno@clisp.org>
2931 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
2932 * lib/fseeko.c: New file.
2933 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
2934 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
2935 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
2937 (gl_FUNC_FSEEKO): Invoke it.
2938 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
2939 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
2940 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
2942 2007-04-25 Bruno Haible <bruno@clisp.org>
2944 * modules/fflush (Depends-on): Add ftello.
2946 2007-04-25 Bruno Haible <bruno@clisp.org>
2948 * modules/ftello-tests: New file.
2949 * tests/test-ftello.c: New file.
2951 * modules/ftello: New file.
2952 * m4/ftello.m4: New file.
2953 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
2955 * lib/stdio_.h (ftello): New declaration.
2956 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
2959 2007-04-25 Bruno Haible <bruno@clisp.org>
2961 * modules/fseeko-tests: New file.
2962 * tests/test-fseeko.c: New file.
2964 * modules/fseeko: New file.
2965 * m4/fseeko.m4: New file.
2966 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
2968 * lib/stdio_.h (fseeko): New declaration.
2969 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
2972 2007-04-25 Bruno Haible <bruno@clisp.org>
2974 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
2976 2007-04-25 Bruno Haible <bruno@clisp.org>
2978 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
2979 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
2980 * tests/test-unistd.c: Likewise.
2981 * tests/test-fcntl.c: Likewise.
2983 2007-04-23 Eric Blake <ebb9@byu.net>
2985 * lib/fflush.c: Fix missing include.
2986 Reported by Bruno Haible.
2988 2007-04-23 Bruno Haible <bruno@clisp.org>
2990 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
2991 Reported by Eric Blake.
2993 2007-04-23 Bruno Haible <bruno@clisp.org>
2995 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
2997 2007-04-23 Bruno Haible <bruno@clisp.org>
2999 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
3001 2007-04-23 Bruno Haible <bruno@clisp.org>
3003 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
3006 2007-04-16 Eric Blake <ebb9@byu.net>
3008 Make fflush rely on fpurge.
3009 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
3010 open coding all variants.
3011 * modules/fflush (Depends-on): Add fpurge and unistd.
3012 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
3013 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
3015 Fix --with-tests compilation on cygwin.
3016 * modules/argmatch-tests (Makefile.am): List gnulib library first
3018 * modules/argp-tests (Makefile.am): Likewise.
3019 * modules/array-list-tests (Makefile.am): Likewise.
3020 * modules/array-oset-tests (Makefile.am): Likewise.
3021 * modules/avltree-list-tests (Makefile.am): Likewise.
3022 * modules/avltree-oset-tests (Makefile.am): Likewise.
3023 * modules/avltreehash-list-tests (Makefile.am): Likewise.
3024 * modules/carray-list-tests (Makefile.am): Likewise.
3025 * modules/dirname-tests (Makefile.am): Likewise.
3026 * modules/frexp-tests (Makefile.am): Likewise.
3027 * modules/isnanl-tests (Makefile.am): Likewise.
3028 * modules/linked-list-tests (Makefile.am): Likewise.
3029 * modules/linkedhash-list-tests (Makefile.am): Likewise.
3030 * modules/lock-tests (Makefile.am): Likewise.
3031 * modules/rbtree-list-tests (Makefile.am): Likewise.
3032 * modules/rbtree-oset-tests (Makefile.am): Likewise.
3033 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
3034 * modules/tls-tests (Makefile.am): Likewise.
3035 * modules/tsearch-tests (Makefile.am): Likewise.
3036 * modules/xvasprintf-tests (Makefile.am): Likewise.
3038 Fix fpurge for cygwin.
3039 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
3041 * modules/fpurge-tests (Depends-on): Clean up trash.
3043 2007-04-16 Simon Josefsson <simon@josefsson.org>
3045 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
3047 * m4/autobuild.m4: Re-indent.
3049 2007-04-13 Bruno Haible <bruno@clisp.org>
3051 * modules/fpurge-tests: New file.
3052 * tests/test-fpurge.c: New file.
3054 * modules/fpurge: New file.
3055 * lib/fpurge.h: New file.
3056 * lib/fpurge.c: New file.
3057 * m4/fpurge.m4: New file.
3059 2007-04-13 Bruno Haible <bruno@clisp.org>
3061 * modules/fbufmode-tests: New file.
3062 * tests/test-fbufmode.c: New file.
3064 * modules/fbufmode: New file.
3065 * lib/fbufmode.h: New file.
3066 * lib/fbufmode.c: New file.
3067 * m4/fbufmode.m4: New file.
3069 2007-04-13 Bruno Haible <bruno@clisp.org>
3071 * modules/fwritable-tests: New file.
3072 * tests/test-fwritable.c: New file.
3074 * modules/fwritable: New file.
3075 * lib/fwritable.h: New file.
3076 * lib/fwritable.c: New file.
3077 * m4/fwritable.m4: New file.
3079 2007-04-13 Bruno Haible <bruno@clisp.org>
3081 * modules/freadable-tests: New file.
3082 * tests/test-freadable.c: New file.
3084 * modules/freadable: New file.
3085 * lib/freadable.h: New file.
3086 * lib/freadable.c: New file.
3087 * m4/freadable.m4: New file.
3089 2007-04-13 Bruno Haible <bruno@clisp.org>
3091 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
3094 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
3096 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
3097 gzip bootstrap.conf to avoid dragging in i18n machinery.
3098 (gnulib_tool_option): Use it.
3100 2007-04-13 Bruno Haible <bruno@clisp.org>
3102 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
3104 * tests/test-vasprintf-posix.c (test_function): Likewise.
3105 * tests/test-snprintf-posix.h (test_function): Likewise.
3106 * tests/test-sprintf-posix.h (test_function): Likewise.
3107 * tests/test-fprintf-posix.h (test_function): Likewise.
3108 * tests/test-printf-posix.h (test_function): Likewise.
3109 * tests/test-fprintf-posix.out: Likewise.
3111 2007-04-13 Bruno Haible <bruno@clisp.org>
3113 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
3114 * modules/tls-tests (configure.ac): Likewise.
3115 Reported by Arto C. Nirkko <anirkko@insel.ch>.
3117 2007-04-13 Bruno Haible <bruno@clisp.org>
3119 * lib/tls.c (glthread_tls_get): Fix return type.
3120 Patch by Arto C. Nirkko <anirkko@insel.ch>.
3122 2007-04-12 Eric Blake <ebb9@byu.net>
3124 * modules/gettime (Depends-on): Remove gettime.
3125 Reported by Dmitry V. Levin.
3127 2007-04-12 Bruno Haible <bruno@clisp.org>
3129 * modules/fflush (Include): Mention <stdio.h>.
3130 * modules/strtoimax (Include): Mention <inttypes.h>.
3131 * modules/strtoumax (Include): Likewise.
3133 2007-04-12 Eric Blake <ebb9@byu.net>
3135 * .cvsignore: New file.
3136 * .gitignore: Likewise.
3138 2007-04-12 Bruno Haible <bruno@clisp.org>
3140 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
3141 not before, since $(LDADD) often contains libgnu.a.
3142 * modules/striconv-tests (test_striconv_LDADD): Likewise.
3143 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
3144 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
3147 2007-04-12 Eric Blake <ebb9@byu.net>
3149 Work around glibc's failure to flush stdin on fclose.
3150 * lib/closein.c (close_stdin): Flush stdin before closing.
3152 Work around glibc's failure to reset seekable stdin on exit.
3153 * modules/closein: New module.
3154 * lib/closein.c: New file.
3155 * lib/closein.h: Likewise.
3156 * m4/closein.m4: Likewise.
3157 * MODULES.html.sh (File stream based Input/Output): Document it.
3159 2007-04-12 Simon Josefsson <simon@josefsson.org>
3161 * gnulib-tool: Rename generated 'autobuild' script to
3162 'do-autobuild' in --create-megatestdir output.
3164 * doc/gnulib.texi (Build robot for gnulib): Fix.
3166 2007-04-12 Simon Josefsson <simon@josefsson.org>
3168 * modules/sysexits (Depends-on): Add absolute-header.
3170 2007-04-12 Eric Blake <ebb9@byu.net>
3172 No need to preserve errno on success.
3173 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
3174 Reported by Bruno Haible.
3176 2007-04-12 Simon Josefsson <simon@josefsson.org>
3178 * MODULES.html.sh (Support for maintaining and releasing
3179 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
3181 2007-04-12 Simon Josefsson <simon@josefsson.org>
3183 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
3185 2007-04-12 Simon Josefsson <simon@josefsson.org>
3187 * modules/autobuild: New module.
3189 * m4/autobuild.m4: New file.
3191 2007-04-11 Bruno Haible <bruno@clisp.org>
3193 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
3194 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
3195 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
3196 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
3197 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
3198 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3199 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3200 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
3201 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3202 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3203 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
3204 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3205 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3206 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
3207 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3208 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3209 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
3210 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3211 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3212 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
3213 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3214 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3215 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
3216 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3217 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3218 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
3219 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3220 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3221 Reported by Eric Blake.
3223 2007-04-11 Bruno Haible <bruno@clisp.org>
3225 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
3227 2007-04-10 Bruno Haible <bruno@clisp.org>
3229 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
3230 for NaN and Infinity. Needed on FreeBSD 6.1.
3231 * tests/test-vasnprintf-posix.c (test_function): Undo last change
3232 regarding results for "%010a" of Infinity and NaN.
3233 * tests/test-vasprintf-posix.c (test_function): Likewise.
3234 * tests/test-snprintf-posix.h (test_function): Likewise.
3235 * tests/test-sprintf-posix.h (test_function): Likewise.
3236 * tests/test-fprintf-posix.h (test_function): Likewise.
3237 * tests/test-printf-posix.h (test_function): Likewise.
3238 * tests/test-fprintf-posix.out: Likewise.
3240 2007-04-10 Bruno Haible <bruno@clisp.org>
3242 * modules/locale-tests: New file.
3243 * tests/test-locale.c: New file.
3245 * modules/locale: New file.
3246 * lib/locale_.h: New file.
3247 * m4/locale_h.m4: New file.
3249 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
3250 Bruno Haible <bruno@clisp.org>
3252 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
3253 be determined, test for availability of the copysignf, copysign,
3254 copysignl functions.
3255 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
3256 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
3257 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
3259 2007-04-09 Eric Blake <ebb9@byu.net>
3261 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
3262 * modules/stdio (Makefile.am): Support fflush.
3263 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
3264 * modules/fflush: New file.
3265 * lib/fflush.c: Likewise.
3266 * m4/fflush.m4: Likewise.
3267 * modules/fflush-tests: New test.
3268 * tests/test-fflush.c: Likewise.
3269 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
3271 2007-04-06 Bruno Haible <bruno@clisp.org>
3273 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
3274 (VASNPRINTF): Use signbit for faster determination whether to print a
3276 * modules/vasnprintf (Files): Remove lib/float+.h.
3277 * modules/fprintf-posix (Depends-on): Add signbit.
3278 * modules/snprintf-posix (Depends-on): Likewise.
3279 * modules/sprintf-posix (Depends-on): Likewise.
3280 * modules/vasnprintf-posix (Depends-on): Likewise.
3281 * modules/vasprintf-posix (Depends-on): Likewise.
3282 * modules/vfprintf-posix (Depends-on): Likewise.
3283 * modules/vsnprintf-posix (Depends-on): Likewise.
3284 * modules/vsprintf-posix (Depends-on): Likewise.
3286 2007-04-06 Bruno Haible <bruno@clisp.org>
3288 * tests/test-frexp.c (main): Test also the sign bit of zero results.
3289 * tests/test-frexpl.c (main): Likewise.
3290 * tests/test-ldexpl.c (main): Likewise.
3291 * modules/frexp-tests (Depends-on): Add signbit.
3292 * modules/frexpl-tests (Depdends-on): Likewise.
3293 * modules/ldexpl-tests (Depdends-on): Likewise.
3295 2007-04-06 Bruno Haible <bruno@clisp.org>
3297 * modules/signbit-tests: New file.
3298 * tests/test-signbit.c: New file.
3300 * modules/signbit: New file.
3301 * lib/signbitf.c: New file.
3302 * lib/signbitd.c: New file.
3303 * lib/signbitl.c: New file.
3304 * m4/signbit.m4: New file.
3305 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
3306 (signbit): New macro.
3307 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
3309 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
3310 REPLACE_FREXPL into math.h.
3312 2007-04-06 Bruno Haible <bruno@clisp.org>
3314 * modules/isnanf-nolibm-tests: New file.
3315 * tests/test-isnanf.c: New file.
3317 * modules/isnanf-nolibm: New file.
3318 * lib/isnanf.h: New file.
3319 * lib/isnanf.c: New file.
3320 * lib/isnan.c: Consider the USE_FLOAT macro.
3321 * m4/isnanf.m4: New file.
3323 2007-04-06 Bruno Haible <bruno@clisp.org>
3325 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
3326 (Link): New section.
3328 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
3330 2007-04-06 Bruno Haible <bruno@clisp.org>
3332 Assume the 'long double' type.
3333 * m4/longdouble.m4: Remove file.
3334 * config/srclist.txt: Don't mention longdouble.m4.
3335 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
3336 * lib/float+.h: Likewise.
3337 * lib/frexp.c: Likewise.
3338 * lib/printf-args.h: Likewise.
3339 * lib/printf-args.c: Likewise.
3340 * lib/printf-frexp.c: Likewise.
3341 * lib/printf-parse.c: Likewise.
3342 * lib/vasnprintf.c: Likewise.
3343 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
3344 * m4/intl.m4: Likewise.
3345 * m4/isnanl.m4: Likewise.
3346 * m4/printf.m4: Likewise.
3347 * m4/printf-frexpl.m4: Likewise.
3348 * m4/vasnprintf.m4: Likewise.
3349 * modules/allocsa (Files): Remove m4/longdouble.m4.
3350 * modules/gettext (Files): Likewise.
3351 * modules/relocatable-prog-wrapper (Files): Likewise.
3352 * modules/vasnprintf (Files): Likewise.
3353 * modules/isnanl (Files): Likewise.
3354 (Include): Simplify.
3355 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
3356 (Include): Simplify.
3357 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
3358 (Include): Simplify.
3359 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
3360 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
3361 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
3362 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
3363 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
3364 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
3365 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
3366 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
3367 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
3368 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
3369 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
3370 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
3371 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
3372 * tests/test-isnanl.c: Likewise.
3373 * tests/test-snprintf-posix.h: Likewise.
3374 * tests/test-sprintf-posix.h: Likewise.
3375 * tests/test-vasnprintf-posix.c: Likewise.
3376 * tests/test-vasnprintf-posix2.c: Likewise.
3377 * tests/test-vasprintf-posix.c: Likewise.
3379 2007-04-06 Bruno Haible <bruno@clisp.org>
3381 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
3382 * lib/math_.h [__DECC]: Include the overridden include file through
3383 #include_next, outside the double-inclusion guard.
3384 * lib/stdio_.h [__DECC]: Likewise.
3385 * lib/stdlib_.h [__DECC]: Likewise.
3386 * lib/string_.h [__DECC]: Likewise.
3387 * lib/time_.h [__DECC]: Likewise.
3388 * lib/wchar_.h [__DECC]: Likewise.
3389 * lib/wctype_.h [__DECC]: Likewise.
3390 * lib/inttypes_.h [__DECC]: Likewise.
3391 Reported by Albert Chin <china@thewrittenword.com> in
3392 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
3394 2007-04-04 Eric Blake <ebb9@byu.net>
3396 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
3399 2007-04-04 Bruno Haible <bruno@clisp.org>
3401 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
3402 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
3404 2007-04-04 Bruno Haible <bruno@clisp.org>
3406 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
3407 results for "%010a" of Infinity and NaN.
3408 * tests/test-vasprintf-posix.c (test_function): Likewise.
3409 * tests/test-snprintf-posix.h (test_function): Likewise.
3410 * tests/test-sprintf-posix.h (test_function): Likewise.
3411 * tests/test-fprintf-posix.h (test_function): Remove these tests.
3412 * tests/test-printf-posix.h (test_function): Likewise.
3413 * tests/test-fprintf-posix.out: Update.
3414 Needed for FreeBSD 6.1.
3416 2007-04-04 Bruno Haible <bruno@clisp.org>
3418 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
3419 directly used by the gnulib modules nor by gnulib-tool.
3421 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
3423 * DEPENDENCIES: Give overall description of version dependency
3424 desirability. Use more-typical names for apps.
3425 Add shell, coreutils, diffutils, grep, tar, gzip.
3427 2007-04-04 Simon Josefsson <simon@josefsson.org>
3429 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
3431 2007-04-04 Karl Berry <karl@gnu.org>
3433 * MODULES.html.sh (func_module): missing '.
3435 2007-04-03 Bruno Haible <bruno@clisp.org>
3437 * modules/argmatch-tests (Makefile.am): New variable
3438 test_argmatch_LDADD.
3439 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
3440 * modules/array-list-tests (Makefile.am): New variable
3441 test_array_list_LDADD.
3442 * modules/array-oset-tests (Makefile.am): New variable
3443 test_array_oset_LDADD.
3444 * modules/avltree-list-tests (Makefile.am): New variable
3445 test_avltree_list_LDADD.
3446 * modules/avltree-oset-tests (Makefile.am): New variable
3447 test_avltree_oset_LDADD.
3448 * modules/avltreehash-list-tests (Makefile.am): New variable
3449 test_avltreehash_list_LDADD.
3450 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
3451 test_canonicalize_lgpl_LDADD.
3452 * modules/carray-list-tests (Makefile.am): New variable
3453 test_carray_list_LDADD.
3454 * modules/dirname-tests (Makefile.am): New variable
3456 * modules/linked-list-tests (Makefile.am): New variable
3457 test_linked_list_LDADD.
3458 * modules/linkedhash-list-tests (Makefile.am): New variable
3459 test_linkedhash_list_LDADD.
3460 * modules/rbtree-list-tests (Makefile.am): New variable
3461 test_rbtree_list_LDADD.
3462 * modules/rbtree-oset-tests (Makefile.am): New variable
3463 test_rbtree_oset_LDADD.
3464 * modules/rbtreehash-list-tests (Makefile.am): New variable
3465 test_rbtreehash_list_LDADD.
3466 * modules/xvasprintf-tests (Makefile.am): New variable
3467 test_xvasprintf_LDADD.
3468 Reported by Eric Blake.
3470 2007-04-03 Eric Blake <ebb9@byu.net>
3472 * DEPENDENCIES: Weaken m4 requirements.
3474 2007-04-03 Bruno Haible <bruno@clisp.org>
3476 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
3477 * modules/isnanl-tests (configure.ac): Likewise.
3479 2007-04-03 Ben Pfaff <blp@gnu.org>
3481 * modules/iconv_open: Add $(srcdir)/ to source directory
3482 references in Makefile fragments that call gperf, to fix VPATH
3485 2007-04-03 Bruno Haible <bruno@clisp.org>
3487 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
3488 * lib/ldexpl.c: Undo last change.
3490 2007-04-03 Bruno Haible <bruno@clisp.org>
3492 * modules/printf-frexpl (Depends-on): Undo last change.
3493 (Files): Add m4/ldexpl.m4.
3495 2007-04-03 Bruno Haible <bruno@clisp.org>
3497 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
3498 * modules/isnanl (Link): New section.
3500 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
3501 * modules/frexp (Link): New section.
3503 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
3504 * modules/frexpl (Link): New section.
3506 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
3507 * modules/ldexpl (Link): New section.
3509 2007-04-03 Bruno Haible <bruno@clisp.org>
3511 * modules/TEMPLATE-EXTENDED: New file.
3512 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
3514 2007-04-03 Bruno Haible <bruno@clisp.org>
3516 * DEPENDENCIES: New file.
3517 Suggested by Simon Josefsson.
3519 2007-04-03 Bruno Haible <bruno@clisp.org>
3521 * doc/gnulib.texi: Escape @.
3523 2007-04-03 James Youngman <jay@gnu.org>
3524 and Paul Eggert <eggert@cs.ucla.edu>
3526 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
3527 birthtime on all systems that have birthtime, not just those which
3528 use st_birthtimensec rather than st_birthtim. Putting zero in
3529 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
3530 that the birth time is not available for files on an NFS mount.
3532 2007-04-03 Simon Josefsson <simon@josefsson.org>
3534 * modules/memxor: Move back from crypto/, suggested by Bruno.
3535 * modules/crypto/hmac-sha1: Fix memxor dependency.
3537 * modules/crypto/gc: Moved from ../.
3539 2007-04-02 Eric Blake <ebb9@byu.net>
3541 * lib/ldexpl.c (includes): Avoid libm.
3543 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
3545 2007-04-02 Bruno Haible <bruno@clisp.org>
3547 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
3550 2007-04-02 Bruno Haible <bruno@clisp.org>
3552 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
3553 x86 or x86_64 platforms running MacOS X.
3554 Reported by Ryan Schmidt <@ryandesign.com>.
3556 2007-04-02 Bruno Haible <bruno@clisp.org>
3558 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
3561 2007-04-01 Simon Josefsson <simon@josefsson.org>
3563 * modules/crypto/arcfour: Moved from ../.
3564 * modules/crypto/arcfour-tests: Moved from ../.
3565 * modules/crypto/arctwo: Moved from ../.
3566 * modules/crypto/arctwo-tests: Moved from ../.
3567 * modules/crypto/des: Moved from ../.
3568 * modules/crypto/des-tests: Moved from ../.
3569 * modules/crypto/gc-arcfour: Moved from ../.
3570 * modules/crypto/gc-arcfour-tests: Moved from ../.
3571 * modules/crypto/gc-arctwo: Moved from ../.
3572 * modules/crypto/gc-arctwo-tests: Moved from ../.
3573 * modules/crypto/gc-des: Moved from ../.
3574 * modules/crypto/gc-des-tests: Moved from ../.
3575 * modules/crypto/gc-hmac-md5: Moved from ../.
3576 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
3577 * modules/crypto/gc-hmac-sha1: Moved from ../.
3578 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
3579 * modules/crypto/gc-md2: Moved from ../.
3580 * modules/crypto/gc-md2-tests: Moved from ../.
3581 * modules/crypto/gc-md4: Moved from ../.
3582 * modules/crypto/gc-md4-tests: Moved from ../.
3583 * modules/crypto/gc-md5: Moved from ../.
3584 * modules/crypto/gc-md5-tests: Moved from ../.
3585 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
3586 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
3587 * modules/crypto/gc-random: Moved from ../.
3588 * modules/crypto/gc-rijndael: Moved from ../.
3589 * modules/crypto/gc-rijndael-tests: Moved from ../.
3590 * modules/crypto/gc-sha1: Moved from ../.
3591 * modules/crypto/gc-sha1-tests: Moved from ../.
3592 * modules/crypto/gc-tests: Moved from ../.
3593 * modules/crypto/hmac-md5: Moved from ../.
3594 * modules/crypto/hmac-md5-tests: Moved from ../.
3595 * modules/crypto/hmac-sha1: Moved from ../.
3596 * modules/crypto/hmac-sha1-tests: Moved from ../.
3597 * modules/crypto/md2: Moved from ../.
3598 * modules/crypto/md2-tests: Moved from ../.
3599 * modules/crypto/md4: Moved from ../.
3600 * modules/crypto/md4-tests: Moved from ../.
3601 * modules/crypto/md5: Moved from ../.
3602 * modules/crypto/md5-tests: Moved from ../.
3603 * modules/crypto/memxor: Moved from ../.
3604 * modules/crypto/rijndael: Moved from ../.
3605 * modules/crypto/rijndael-tests: Moved from ../.
3606 * modules/crypto/sha1: Moved from ../.
3608 2007-03-30 James Youngman <jay@gnu.org>
3610 * tests/test-stat-time.c (prepare_test): use chmod() rather than
3611 rename() to change the ctime of a file (because ctime is unaffected
3612 by rename on jfs2 on AIX 5.1).
3613 (main): Start by doing cleanup, in case a previous run failed leaving
3616 2007-03-31 Bruno Haible <bruno@clisp.org>
3618 Support old proprietary implementations of iconv.
3619 * modules/iconv_open: New file.
3620 * lib/iconv_.h: New file.
3621 * m4/iconv_h.m4: New file.
3622 * lib/iconv_open.c: New file.
3623 * lib/iconv_open-aix.gperf: New file.
3624 * lib/iconv_open-hpux.gperf: New file.
3625 * lib/iconv_open-irix.gperf: New file.
3626 * lib/iconv_open-osf.gperf: New file.
3627 * m4/iconv_open.m4: New file.
3628 * modules/linebreak (Depends-on): Add iconv_open.
3629 * modules/striconv (Depends-on): Likewise.
3630 * modules/striconveh (Depends-on): Likewise.
3631 * modules/unicodeio (Depends-on): Likewise.
3632 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
3634 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
3635 conversion if cd is (iconv_t)(-1).
3636 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
3639 2007-03-31 Bruno Haible <bruno@clisp.org>
3641 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
3642 work on Solaris either. Protect also second use of "autodetect_jp".
3644 2007-03-31 Bruno Haible <bruno@clisp.org>
3646 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
3647 the function is not present.
3649 2007-03-31 Bruno Haible <bruno@clisp.org>
3651 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
3652 the function is not present.
3654 2007-03-31 Bruno Haible <bruno@clisp.org>
3656 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
3657 a bug in HP-UX iconv_open().
3659 2007-03-31 Bruno Haible <bruno@clisp.org>
3661 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
3662 (Mathematics <math.h>): New section, add fpieee.
3663 (Input/output <stdio.h>): Add fseterr.
3664 (Mathematics <math.h>): New section, add printf-frexp.
3665 (Container data structures): Add sublist.
3666 (Core language properties): Add fpucw, inline.
3667 (Functions for greatest-width integer types <inttypes.h>): Add
3668 imaxabs, imaxdiv, inttypes.
3669 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
3670 isnanl-nolibm, ldexp.
3671 (Mathematics <math.h>): New section, add printf-frexpl.
3672 (Support for systems lacking POSIX:2001): Add fprintf-posix,
3673 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
3674 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
3675 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
3676 (Unicode string functions): Add unistr/u*-mbtoucr.
3677 (Java): Add javacomp-script, javaexec-script.
3678 (C#): Add csharpcomp-script, csharpexec-script.
3679 (Support for building libraries and executables): Add havelib,
3681 (Support for maintaining and releasing projects): Renamed from
3682 'Support for maintaining and release projects'. Add announce-gen.
3684 2007-03-31 Bruno Haible <bruno@clisp.org>
3686 * README: Talk primarily about git.
3687 (git and CVS): Renamed from CVS.
3688 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
3689 gnulib is available through git.
3690 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
3692 2007-03-30 Bruno Haible <bruno@clisp.org>
3694 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
3695 * lib/poll_.h: Likewise.
3696 * lib/stat_.h: Likewise.
3697 * lib/sys_time_.h: Likewise.
3698 * lib/sysexit_.h: Likewise.
3699 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
3700 * lib/stdbool_.h: Likewise.
3701 * lib/byteswap_.h: Add double-inclusion guard.
3703 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
3705 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
3707 2007-03-30 Karl Berry <karl@gnu.org>
3709 * config/srclist-update: double space after USA in the license
3710 substitution, since that's how it's usually (?) written.
3712 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
3714 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
3715 reported by Bruno Haible.
3717 2007-03-29 Bruno Haible <bruno@clisp.org>
3719 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
3720 a bug in AIX iconv().
3722 2007-03-29 Bruno Haible <bruno@clisp.org>
3724 * modules/ldexpl-tests: New file.
3725 * tests/test-ldexpl.c: New file.
3727 2007-03-29 Bruno Haible <bruno@clisp.org>
3729 * lib/ldexpl.c: Include fpucw.h.
3730 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
3732 * modules/ldexpl (Depends-on): Add fpucw.
3734 2007-03-29 Bruno Haible <bruno@clisp.org>
3736 * modules/ldexpl: New file.
3737 * m4/ldexpl.m4: New file.
3738 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
3740 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
3742 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
3744 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
3745 gl_FUNC_LDEXPL_WORKS.
3746 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
3747 * modules/mathl (Files): Remove lib/ldexpl.c.
3748 (Depends-on): Add ldexpl.
3750 2007-03-29 Bruno Haible <bruno@clisp.org>
3752 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
3754 2007-03-29 Bruno Haible <bruno@clisp.org>
3756 * tests/test-striconveh.c (main): Don't assume that a direct conversion
3757 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
3758 and possibly also HP-UX.
3759 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
3760 work on AIX, IRIX, HP-UX, OSF/1.
3761 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
3762 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
3763 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
3764 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
3765 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
3766 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
3768 2007-03-29 Bruno Haible <bruno@clisp.org>
3770 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
3772 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
3774 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
3775 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
3777 2007-03-29 Eric Blake <ebb9@byu.net>
3779 * lib/acl-internal.h: Remove redundant include.
3780 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
3781 Cygwin when a file is locked.
3783 2007-03-29 Bruno Haible <bruno@clisp.org>
3785 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
3787 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
3789 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
3791 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
3792 try to remove a parent directory if the child couldn't be removed
3793 (except for the first rmdir, which could fail because the child
3794 doesn't exist). Problem reported by Jeff Blaine in
3795 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
3797 2007-03-28 Bruno Haible <bruno@clisp.org>
3799 * lib/striconveh.c (utf8conv_carefully): New function.
3800 (mem_cd_iconveh_internal): Invoke it.
3802 2007-03-28 Bruno Haible <bruno@clisp.org>
3804 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
3805 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
3807 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
3808 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
3811 2007-03-28 Bruno Haible <bruno@clisp.org>
3813 * modules/unistr/u8-mbtoucr: New file.
3814 * lib/unistr/u8-mbtoucr.c: New file.
3815 * modules/unistr/u16-mbtoucr: New file.
3816 * lib/unistr/u16-mbtoucr.c: New file.
3817 * modules/unistr/u16-mbtoucr: New file.
3818 * lib/unistr/u16-mbtoucr.c: New file.
3819 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
3821 2007-03-27 Simon Josefsson <simon@josefsson.org>
3822 Bruno Haible <bruno@clisp.org>
3824 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
3825 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
3826 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
3828 * m4/stdio_h.m4: Add stubs for vasprintf too.
3830 * modules/stdio: Support vasprintf in sed command.
3832 * modules/vasprintf: Depend on stdio for prototypes. Remove
3833 vasprintf.h. Add stdio module indicator.
3835 * lib/stdio_.h: Declare asprintf and vasprintf, based on
3838 * lib/vasprintf.h: File removed.
3840 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
3841 * lib/vasprintf.c: Ditto.
3842 * lib/xvasprintf.c: Ditto.
3843 * tests/test-vasprintf-posix.c: Ditto.
3844 * tests/test-vasprintf.c: Ditto.
3846 2007-03-27 Bruno Haible <bruno@clisp.org>
3848 Make vasnprintf multithread-safe.
3849 * lib/vasnprintf.c (decimal_point_char): New function.
3850 (VASNPRINTF): Use it.
3851 Suggested by Simon Josefsson.
3853 2007-03-27 Eric Blake <ebb9@byu.net>
3855 Support sub-second birthtime on cygwin.
3856 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
3857 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
3858 (get_stat_birthtime): Also work with st_birthtim.
3860 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
3862 * lib/stat-time.h (USE_BIRTHTIME): Remove.
3863 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
3864 (get_stat_birthtime_ns): Do not try to use "spare" fields.
3865 (get_stat_birthtime_ns): Simplify compile-time tests.
3866 (get_stat_birthtime): Change the API to look like
3867 get_stat_mtime etc., except return a negative tv_nsec on error.
3868 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
3869 Don't check for "spare" fields.
3870 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
3871 or for struct stat.st_birthtime, as these tests aren't used.
3872 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
3874 2007-03-27 Bruno Haible <bruno@clisp.org>
3876 * lib/stat-time.h: Include <sys/stat.h>.
3878 2007-03-27 James Youngman <jay@gnu.org>
3880 * lib/stat-time.h (get_stat_birthtime): New function for
3881 retrieving st_birthtime as provided by UFS2 (hence *BSD).
3882 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
3884 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
3885 * modules/stat-time-test: New file.
3886 * tests/test-stat-time.c: New test, devised by Bruno Haible.
3888 2007-03-26 Bruno Haible <bruno@clisp.org>
3890 Better support of signalling NaNs.
3891 * lib/atanl.c: Include isnanl.h.
3892 (atanl): Perform test for NaN at the beginning of the function and
3893 through a call to isnanl.
3894 * lib/cosl.c: Include isnanl.h.
3895 (cosl): Perform test for NaN at the beginning of the function and
3896 through a call to isnanl.
3897 * lib/ldexpl.c: Include isnanl.h.
3898 (ldexpl): Perform test for NaN through a call to isnanl.
3899 * lib/logl.c: Include isnanl.h.
3900 (logl): Perform test for NaN at the beginning of the function and
3901 through a call to isnanl.
3902 * lib/sinl.c: Include isnanl.h.
3903 (sinl): Perform test for NaN at the beginning of the function and
3904 through a call to isnanl.
3905 * lib/sqrtl.c: Include isnanl.h.
3906 (sqrtl): Perform test for NaN at the beginning of the function and
3907 through a call to isnanl.
3908 * lib/tanl.c: Include isnanl.h.
3909 (tanl): Perform test for NaN at the beginning of the function and
3910 through a call to isnanl.
3911 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
3912 * modules/mathl (Depends-on): Add isnanl.
3914 2007-03-26 Eric Blake <ebb9@byu.net>
3916 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
3917 regression in logic sense of previous patch.
3919 2007-03-26 Bruno Haible <bruno@clisp.org>
3921 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
3922 unportable shell command "if ! ...".
3923 Reported by Ralf Wildenhues.
3925 2007-03-25 Bruno Haible <bruno@clisp.org>
3927 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
3928 <sysexits.h> file, and only add EX_CONFIG.
3929 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
3930 absolute file name and whether it is sufficient. Substitute also
3931 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
3932 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
3933 ABSOLUTE_SYSEXITS_H into sysexits.h.
3935 2007-03-25 Bruno Haible <bruno@clisp.org>
3937 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
3940 2007-03-25 Bruno Haible <bruno@clisp.org>
3942 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
3943 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
3945 2007-03-25 Bruno Haible <bruno@clisp.org>
3947 * lib/vasnprintf.c: Include langinfo.h.
3948 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
3950 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
3951 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
3952 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
3953 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
3954 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
3955 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
3956 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
3957 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
3958 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
3959 Reported by Simon Josefsson.
3961 2007-03-25 Bruno Haible <bruno@clisp.org>
3963 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
3964 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
3965 * modules/vasnprintf (Depends-on): Add stdint.
3967 2007-03-25 Bruno Haible <bruno@clisp.org>
3969 * modules/fpieee: New file.
3970 * m4/fpieee.m4: New file.
3971 * modules/isnan-nolibm (Depends-on): Add fpieee.
3972 * modules/isnanl-nolibm (Depends-on): Add fpieee.
3973 * modules/isnanl (Depends-on): Add fpieee.
3975 2007-03-25 Bruno Haible <bruno@clisp.org>
3977 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
3979 2007-03-25 Bruno Haible <bruno@clisp.org>
3981 Avoid test failures on IRIX 6.5.
3982 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
3984 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
3988 2007-03-25 Bruno Haible <bruno@clisp.org>
3990 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
3991 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
3992 exists but doesn't work.
3993 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
3994 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
3995 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
3996 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
3998 2007-03-25 Bruno Haible <bruno@clisp.org>
4000 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
4001 returns inf. Needed on IRIX 6.5.
4003 2007-03-25 Bruno Haible <bruno@clisp.org>
4005 * tests/test-frexpl.c: Include isnanl-nolibm.h.
4006 (main): Use isnanl instead of x != x idiom.
4007 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
4009 * tests/test-frexp.c: Include isnan.h.
4010 (main): Use isnan instead of x != x idiom.
4011 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
4013 2007-03-25 Bruno Haible <bruno@clisp.org>
4015 * tests/test-frexp.c (NaN): New function/macro.
4016 (main): Use it instead of 0.0 / 0.0.
4017 * tests/test-isnan.c (NaN): New function/macro.
4018 (main): Use it instead of 0.0 / 0.0.
4019 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
4020 (test_function): Use it instead of 0.0 / 0.0.
4021 * tests/test-vasprintf-posix.c (NaN): New function/macro.
4022 (test_function): Use it instead of 0.0 / 0.0.
4023 * tests/test-snprintf-posix.h (NaN): New function/macro.
4024 (test_function): Use it instead of 0.0 / 0.0.
4025 * tests/test-sprintf-posix.h (NaN): New function/macro.
4026 (test_function): Use it instead of 0.0 / 0.0.
4027 * tests/test-fprintf-posix.h (NaN): New function/macro.
4028 (test_function): Use it instead of 0.0 / 0.0.
4029 * tests/test-printf-posix.h (NaN): New function/macro.
4030 (test_function): Use it instead of 0.0 / 0.0.
4032 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
4034 2007-03-25 Bruno Haible <bruno@clisp.org>
4036 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
4038 2007-03-25 Bruno Haible <bruno@clisp.org>
4040 * lib/regexec.c (merge_state_with_log): Make static.
4042 2007-03-25 Bruno Haible <bruno@clisp.org>
4044 * lib/trigl.c (kernel_rem_pio2): Make static.
4046 2007-03-25 Bruno Haible <bruno@clisp.org>
4048 * lib/sincosl.c (sincosl_table): Make static.
4050 2007-03-25 Bruno Haible <bruno@clisp.org>
4052 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
4053 if the compiler does not support C99.
4055 2007-03-25 Bruno Haible <bruno@clisp.org>
4057 * modules/time (Makefile.am): Ensure all rule action lines start with a
4060 2007-03-24 Bruno Haible <bruno@clisp.org>
4062 * modules/tsearch-tests: New file.
4063 * tests/test-tsearch.sh: New file.
4064 * tests/test-tsearch.c: New file, mostly copied from glibc.
4066 * modules/search-tests: New file.
4067 * tests/test-search.c: New file.
4069 * modules/search: New file.
4070 * lib/search_.h: New file, incorporating lib/tsearch.h.
4071 * m4/search_h.m4: New file.
4072 * lib/tsearch.h: Remove file.
4073 * lib/tsearch.c: Include search.h instead of tsearch.h.
4074 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
4076 * modules/tsearch (Files): Remove lib/tsearch.h.
4077 (Depends-on): Add search.
4078 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
4079 (Include): Change tsearch.h into search.h.
4081 2007-03-24 Bruno Haible <bruno@clisp.org>
4083 * modules/fpucw: New file.
4084 * lib/fpucw.h: New file.
4085 * lib/frexp.c: Include fpucw.h.
4086 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
4088 * lib/printf-frexp.c: Include fpucw.h.
4089 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
4091 * lib/vasnprintf.c: Include fpucw.h.
4092 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
4093 'long double' calculations.
4094 * tests/test-frexpl.c: Include fpucw.h.
4095 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
4096 * tests/test-printf-frexpl.c: Include fpucw.h.
4097 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
4098 * modules/frexpl (Depends-on): Add fpucw.
4099 * modules/printf-frexpl (Depends-on): Likewise.
4100 * modules/fprintf-posix (Depends-on): Likewise.
4101 * modules/snprintf-posix (Depends-on): Likewise.
4102 * modules/sprintf-posix (Depends-on): Likewise.
4103 * modules/vasnprintf-posix (Depends-on): Likewise.
4104 * modules/vasprintf-posix (Depends-on): Likewise.
4105 * modules/vfprintf-posix (Depends-on): Likewise.
4106 * modules/vsnprintf-posix (Depends-on): Likewise.
4107 * modules/vsprintf-posix (Depends-on): Likewise.
4108 * modules/frexpl-tests (Depends-on): Likewise.
4109 * modules/printf-frexpl-tests (Depends-on): Likewise.
4111 2007-03-24 Bruno Haible <bruno@clisp.org>
4113 * lib/float+.h: New file.
4114 * lib/isnan.c: Include float+.h.
4116 (FUNC): Compare only SIZE bytes of the value.
4117 * lib/vasnprintf.c: Include float+.h.
4118 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
4119 SIZEOF_LDBL or SIZEOF_DBL bytes.
4120 * modules/isnan-nolibm (Files): Add lib/float+.h.
4121 * modules/isnanl-nolibm (Files): Add lib/float+.h.
4122 * modules/isnanl (Files): Add lib/float+.h.
4123 * modules/vasnprintf (Files): Add lib/float+.h.
4125 2007-03-24 Bruno Haible <bruno@clisp.org>
4127 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
4128 include isnanl-nolibm.h.
4130 2007-03-24 Bruno Haible <bruno@clisp.org>
4132 * tests/test-read-file.c (main): Don't produce spurious output for
4133 expected situations. Make the test fail if it encountered unexpected
4136 2007-03-24 Bruno Haible <bruno@clisp.org>
4138 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
4139 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
4141 2007-03-24 Bruno Haible <bruno@clisp.org>
4143 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
4145 2007-03-24 Bruno Haible <bruno@clisp.org>
4147 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
4148 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
4150 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
4151 * modules/utf8-ucs4: Turn into a symbolic link to module
4154 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
4156 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
4157 unistr/u8-mbtouc-unsafe.
4159 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
4160 * modules/utf16-ucs4: Turn into a symbolic link to module
4163 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
4165 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
4166 unistr/u16-mbtouc-unsafe.
4168 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
4169 * modules/ucs4-utf8: Turn into a symbolic link to module
4172 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
4173 * modules/ucs4-utf16: Turn into a symbolic link to module
4176 2007-03-24 Bruno Haible <bruno@clisp.org>
4178 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
4179 Enable the function only if HAVE_INLINE.
4180 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
4181 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
4182 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
4183 Enable the function only if HAVE_INLINE.
4184 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
4185 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
4186 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
4187 Enable the function only if HAVE_INLINE.
4188 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
4189 Enable the function only if HAVE_INLINE.
4190 * modules/utf8-ucs4: Update.
4191 * modules/utf8-ucs4-unsafe: Update.
4192 * modules/utf16-ucs4: Update.
4193 * modules/utf16-ucs4-unsafe: Update.
4194 * modules/ucs4-utf8: Update.
4195 * modules/ucs4-utf16: Update.
4197 2007-03-24 Bruno Haible <bruno@clisp.org>
4199 * lib/utf8-ucs4.h: Remove file.
4200 * lib/utf8-ucs4-unsafe.h: Remove file.
4201 * lib/utf16-ucs4.h: Remove file.
4202 * lib/utf16-ucs4-unsafe.h: Remove file.
4203 * lib/ucs4-utf8.h: Remove file.
4204 * lib/ucs4-utf16.h: Remove file.
4205 * lib/unistr.h: Include their previous contents.
4206 * m4/utf-ucs4.m4: Remove file.
4207 * m4/ucs4-utf.m4: Remove file.
4208 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
4209 (Depends-on): Add unistr/base.
4210 (configure.ac): Remove gl_UTF_UCS4.
4211 (Makefile.am): Update.
4212 (Include): Change to unistr.h.
4213 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
4214 (Depends-on): Add unistr/base.
4215 (configure.ac): Remove gl_UTF_UCS4.
4216 (Makefile.am): Update.
4217 (Include): Change to unistr.h.
4218 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
4219 (Depends-on): Add unistr/base.
4220 (configure.ac): Remove gl_UTF_UCS4.
4221 (Makefile.am): Update.
4222 (Include): Change to unistr.h.
4223 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
4224 (Depends-on): Add unistr/base.
4225 (configure.ac): Remove gl_UTF_UCS4.
4226 (Makefile.am): Update.
4227 (Include): Change to unistr.h.
4228 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
4229 (Depends-on): Add unistr/base.
4230 (configure.ac): Remove gl_UCS4_UTF.
4231 (Makefile.am): Update.
4232 (Include): Change to unistr.h.
4233 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
4234 (Depends-on): Add unistr/base.
4235 (configure.ac): Remove gl_UCS4_UTF.
4236 (Makefile.am): Update.
4237 (Include): Change to unistr.h.
4238 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
4239 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
4241 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
4242 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
4243 utf16-ucs4-unsafe.h.
4244 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
4245 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
4246 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
4247 * lib/unistr/u8-strchr.c: Likewise.
4248 * lib/unistr/u8-strrchr.c: Likewise.
4249 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
4250 * lib/unistr/u16-strchr.c: Likewise.
4251 * lib/unistr/u16-strrchr.c: Likewise.
4252 * lib/striconveh.c: Update.
4253 * lib/linebreak.c: Update.
4255 2007-03-24 Bruno Haible <bruno@clisp.org>
4257 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
4258 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
4260 2007-03-22 Bruno Haible <bruno@clisp.org>
4262 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
4264 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
4266 * MODULES.html.sh (File system functions): New module write-any-file.
4267 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
4268 * m4/write-any-file.m4: New files.
4270 2007-03-23 Eric Blake <ebb9@byu.net>
4272 * gnulib-tool: Rearrange space-tab sequences, since some editors
4275 2007-03-23 Eric Blake <ebb9@byu.net>
4277 * lib/version-etc.c (version_etc_va): Update license wording to
4278 be more concise. Recommended by Richard Stallman.
4280 2007-03-22 Bruno Haible <bruno@clisp.org>
4282 * lib/poll.c (MSG_PEEK): New fallback definition.
4284 2007-03-22 Bruno Haible <bruno@clisp.org>
4286 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
4287 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
4289 Fixes a compilation error on BeOS.
4291 2007-03-22 Bruno Haible <bruno@clisp.org>
4293 * modules/frexpl-tests: New file.
4294 * tests/test-frexpl.c: New file.
4296 * modules/frexpl: New file.
4297 * m4/frexpl.m4: New file.
4298 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
4299 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
4300 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
4301 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
4302 (Depends-on): Add frexpl. Remove isnanl-nolibm.
4303 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
4305 2007-03-22 Bruno Haible <bruno@clisp.org>
4307 * lib/frexpl.c: Share code with lib/frexp.c.
4308 * modules/mathl (Files): Add lib/frexp.c.
4309 (Depends-on): Add isnanl-nolibm.
4311 2007-03-22 Bruno Haible <bruno@clisp.org>
4313 * modules/printf-frexp (Files): Add m4/frexp.m4.
4314 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
4315 only if the found frexp function actually works.
4317 2007-03-22 Bruno Haible <bruno@clisp.org>
4319 * lib/frexp.c: Remove older implementation that uses divisions.
4321 2007-03-21 Bruno Haible <bruno@clisp.org>
4323 * modules/frexp-tests: New file.
4324 * tests/test-frexp.c: New file.
4326 * modules/frexp: New file.
4327 * lib/frexp.c: New file.
4328 * m4/frexp.m4: New file.
4329 * lib/math_.h (frexp): New declaration.
4330 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
4332 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
4334 2007-03-21 Bruno Haible <bruno@clisp.org>
4336 * modules/isnanl-tests: New file.
4337 * tests/test-isnanl.c: New file.
4339 * modules/isnanl: New file.
4340 * lib/isnanl.h: New file.
4341 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
4342 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
4343 gl_FUNC_ISNANL_WORKS.
4344 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
4347 2007-03-21 Bruno Haible <bruno@clisp.org>
4349 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
4352 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
4353 * lib/vasnprintf.c: Update.
4354 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
4355 tests/test-isnanl.h, remove tests/test-isnanl.c.
4356 (Makefile.am): Update.
4357 * tests/test-isnanl-nolibm.c: New file.
4358 * tests/test-isnanl.h: New file.
4359 * tests/test-isnanl.c: Remove file.
4361 2007-03-21 Jim Meyering <jim@meyering.net>
4363 When trying to open ".", treat ESTALE like EACCES.
4364 * lib/savewd.c (savewd_save): Resort to forking not just upon
4365 failure with EACCES, but also when errno is ESTALE.
4367 2007-03-20 Bruno Haible <bruno@clisp.org>
4369 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
4370 Needed on AIX 5.1. Reported by Matthew Woehlke.
4372 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
4374 Suggestions by Bruno Haible:
4375 * lib/acl-internal.h: Include "gettext.h" rather than rolling
4377 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
4378 * modules/acl (Depends-on): Add gettext.
4380 2007-03-19 Bruno Haible <bruno@clisp.org>
4382 * modules/iconvme: Remove file.
4383 * lib/iconvme.h: Remove file.
4384 * lib/iconvme.c: Remove file.
4385 * m4/iconvme.m4: Remove file.
4387 2007-03-19 Bruno Haible <bruno@clisp.org>
4389 * doc/relocatable-maint.texi: Break long shell script line.
4390 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
4392 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
4394 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
4395 handle file_has_acl.
4396 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
4397 * lib/acl.c: Move header inclusions and related macro defns into
4399 (S_ISLNK): Remove defn, since that's now done for us.
4400 (file_has_acl): Move to lib/file-has-acl.c.
4401 Call acl_trivial if available. This is the crucial part of the fix.
4402 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
4403 shared within the library. Rewrite a bit, partly to make it compatible
4404 with the GNU coding style.
4405 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
4406 Remove unnecessary double-quotes.
4407 Don't test for acl_to_text; the build will catch that.
4408 Replace acl_entries if it doesn't exist and it is needed.
4409 Check for -lsec and acl_trivial (as used on Solaris 10).
4410 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
4412 (Depends-on): Add sys_stat, for S_ISLNK.
4414 2007-03-19 Ben Pfaff <blp@gnu.org>
4416 * doc/gnulib.texi: Fix typos.
4417 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
4419 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
4421 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
4422 If size is zero here, buf must be zero.
4424 2007-03-19 Simon Josefsson <simon@josefsson.org>
4426 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
4429 2007-03-18 Bruno Haible <bruno@clisp.org>
4431 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
4432 Suggested by Eric Blake.
4434 2007-03-18 Ben Pfaff <blp@gnu.org>
4436 * doc/relocatable.texi: Recommend using as prefix a directory
4437 that does not exist and will never be created. Based on
4438 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
4441 2007-03-17 Bruno Haible <bruno@clisp.org>
4443 * lib/fchownat.c: Include lchown.h.
4445 2007-03-17 Bruno Haible <bruno@clisp.org>
4447 Fix endless loop when the given allocated size was > INT_MAX.
4448 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
4449 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
4450 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
4451 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
4452 * lib/sprintf.c (sprintf): Likewise.
4454 2007-03-17 Bruno Haible <bruno@clisp.org>
4456 * tests/test-argp-2.sh (func_compare): Output a context diff.
4458 2007-03-17 Bruno Haible <bruno@clisp.org>
4460 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
4461 locale's decimal-point character.
4463 2007-03-17 Bruno Haible <bruno@clisp.org>
4465 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
4466 before comparing it. Needed because on some platforms (e.g. x86) a
4467 'long double' occupies less bytes than sizeof (long double).
4469 2007-03-17 Bruno Haible <bruno@clisp.org>
4471 * tests/test-crc.c (main): Make printf statements 64-bit clean.
4472 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
4473 * tests/test-getaddrinfo.c (simple): Likewise.
4474 * tests/test-read-file.c (main): Likewise.
4476 2007-03-17 Bruno Haible <bruno@clisp.org>
4478 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
4480 2007-03-17 Bruno Haible <bruno@clisp.org>
4482 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
4485 2007-03-17 Bruno Haible <bruno@clisp.org>
4487 * tests/test-c-strcasecmp.c: Include c-strcase.h.
4488 * tests/test-c-strncasecmp.c: Likewise.
4490 2007-03-17 Bruno Haible <bruno@clisp.org>
4492 * modules/stdlib (Depends-on): Add unistd.
4493 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
4494 Needed for MacOS X 10.3.
4496 2007-03-17 Bruno Haible <bruno@clisp.org>
4498 * lib/unistr/u-strdup.h: Include <stdlib.h>.
4500 2007-03-17 Bruno Haible <bruno@clisp.org>
4502 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
4504 2007-03-17 Bruno Haible <bruno@clisp.org>
4506 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
4507 to reflect files copied from gnulib (with or without modifications).
4508 Suggested by Jim Meyering.
4510 2007-03-17 Eric Blake <ebb9@byu.net>
4512 * NEWS: Document stdlib change from 2007-02-18.
4514 2007-03-17 Jim Meyering <jim@meyering.net>
4516 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
4517 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
4518 someone uses a name containing shell meta-characters.
4519 Reported by Alfred M. Szmidt.
4521 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
4523 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
4525 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
4526 and copy gettext configuration files only if configure.ac contains
4527 a use of AM_GNU_GETTEXT_VERSION.
4529 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
4531 * build-aux/bootstrap (gnulib_name): New variable.
4532 (gnulib_tool_options): Use it.
4534 2007-03-13 Simon Josefsson <simon@josefsson.org>
4536 * tests/test-des.c: Use new namespace.
4538 2007-03-15 Bruno Haible <bruno@clisp.org>
4540 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
4541 Reported by James Youngman <jay@gnu.org>.
4543 2007-03-15 Bruno Haible <bruno@clisp.org>
4545 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
4546 declared prototype. Needed with cc on OSF/1 5.1.
4548 2007-03-15 Bruno Haible <bruno@clisp.org>
4550 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
4551 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
4552 (struct gl_list_implementation): Add dispose_fn argument to the
4553 'create_empty', 'create' methods.
4554 (struct gl_list_impl_base): Add field 'dispose_fn'.
4555 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
4557 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
4558 dispose_fn argument.
4559 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
4560 dispose_fn on the dropped values.
4561 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
4562 dispose_fn argument.
4563 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
4565 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
4566 (gl_tree_remove_node): Call dispose_fn on the dropped value.
4567 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
4568 (gl_tree_remove_node): Call dispose_fn on the dropped value.
4569 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
4571 (gl_tree_list_free): Call dispose_fn on the dropped values.
4572 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
4574 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
4575 Add dispose_fn argument.
4576 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
4577 Call dispose_fn on the dropped values.
4578 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
4579 Add dispose_fn argument.
4580 (gl_sublist_create): Initialize the 'dispose_fn' field.
4581 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
4582 * tests/test-array_list.c (main): Update.
4583 * tests/test-carray_list.c (main): Update.
4584 * tests/test-avltree_list.c (main): Update.
4585 * tests/test-rbtree_list.c (main): Update.
4586 * tests/test-avltreehash_list.c (main): Update.
4587 * tests/test-rbtreehash_list.c (main): Update.
4588 * tests/test-linked_list.c (main): Update.
4589 * tests/test-linkedhash_list.c (main): Update.
4590 * tests/test-array_oset.c (main): Update.
4592 2007-03-15 Bruno Haible <bruno@clisp.org>
4594 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
4595 (gl_oset_create_empty): Add dispose_fn argument.
4596 (struct gl_oset_implementation): Add dispose_fn argument to
4597 'create_empty' method.
4598 (struct gl_oset_impl_base): Add dispose_fn field.
4599 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
4600 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
4601 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
4603 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
4604 (gl_tree_oset_free): Call dispose_fn on the dropped values.
4605 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
4607 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
4609 * tests/test-array_oset.c (main): Update.
4610 * tests/test-avltree_oset.c (main): Update.
4611 * tests/test-rbtree_oset.c (main): Update.
4612 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
4614 2007-03-13 Bruno Haible <bruno@clisp.org>
4616 * tests/test-stdbool.c (i): Update after last patch.
4618 2007-03-12 Bruno Haible <bruno@clisp.org>
4620 * lib/quotearg.c: Include <wctype.h> early, before the definition of
4621 the iswprint macro. Needed on Solaris 2.5.1.
4623 2007-03-12 Bruno Haible <bruno@clisp.org>
4625 * tests/test-printf-frexp.c (main): Declare x as volatile.
4627 2007-03-12 Simon Josefsson <simon@josefsson.org>
4629 * doc/gnulib.texi (Build robot for gnulib): New section.
4631 2007-03-12 Jim Meyering <jim@meyering.net>
4633 * build-aux/bootstrap: New file.
4634 * build-aux/bootstrap.conf: New file, from coreutils.
4636 2007-03-11 Bruno Haible <bruno@clisp.org>
4638 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
4640 2007-03-12 Simon Josefsson <simon@josefsson.org>
4642 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
4643 avoid collisions with 'des_setkey'. Reported by Bruno Haible
4644 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
4646 2007-03-11 Bruno Haible <bruno@clisp.org>
4648 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
4649 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
4651 2007-03-11 Bruno Haible <bruno@clisp.org>
4653 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
4654 formula. Needed for SunPRO C 5.0.
4656 2007-03-11 Bruno Haible <bruno@clisp.org>
4658 * modules/long-options (Depends-on): Add getopt.
4660 2007-03-11 Bruno Haible <bruno@clisp.org>
4662 * modules/modechange (Depends-on): Add stdbool.
4664 2007-03-11 Bruno Haible <bruno@clisp.org>
4666 * modules/i-ring (Depends-on): Add stdbool.
4668 2007-03-11 Bruno Haible <bruno@clisp.org>
4670 * modules/gc-des (Depends-on): Add stdbool.
4672 2007-03-11 Bruno Haible <bruno@clisp.org>
4674 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
4676 2007-03-11 Bruno Haible <bruno@clisp.org>
4678 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
4680 2007-03-11 Bruno Haible <bruno@clisp.org>
4682 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
4684 2007-03-11 Bruno Haible <bruno@clisp.org>
4686 * lib/vasnprintf.c (sprintf): Undefine.
4688 2007-03-11 Bruno Haible <bruno@clisp.org>
4690 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
4691 initializers in SunPRO C and Compaq C compilers.
4693 2007-03-11 Bruno Haible <bruno@clisp.org>
4695 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
4696 decrementing code ANSI C compliant.
4698 2007-03-11 Bruno Haible <bruno@clisp.org>
4700 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
4701 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
4703 2007-03-11 Bruno Haible <bruno@clisp.org>
4705 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
4706 <stdbool.h> substitute doesn't pass.
4708 2007-03-11 Bruno Haible <bruno@clisp.org>
4710 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
4712 2007-03-11 Bruno Haible <bruno@clisp.org>
4714 * gnulib-tool (func_create_megatestdir): Create also an autobuild
4715 script, for submission to autobuild.josefsson.org.
4717 2007-03-10 Bruno Haible <bruno@clisp.org>
4719 * modules/canonicalize-lgpl-tests: New file.
4720 * tests/test-canonicalize-lgpl.sh: New file.
4721 * tests/test-canonicalize-lgpl.c: New file.
4723 * modules/c-strcase-tests: New file.
4724 * tests/test-c-strcase.sh: New file.
4725 * tests/test-c-strcasecmp.c: New file.
4726 * tests/test-c-strncasecmp.c: New file.
4728 * modules/atexit-tests: New file.
4729 * tests/test-atexit.sh: New file.
4730 * tests/test-atexit.c: New file.
4732 2007-03-10 Bruno Haible <bruno@clisp.org>
4734 * tests/test-binary-io.sh: Use temporary filenames that are not so
4735 likely to clash with those of other tests (in a parallel make).
4736 * tests/test-binary-io.c: Likewise.
4738 2007-03-10 Bruno Haible <bruno@clisp.org>
4740 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
4741 fallback; use #error instead.
4742 Suggested by Simon Josefsson.
4744 2007-03-10 Bruno Haible <bruno@clisp.org>
4746 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
4747 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
4750 2007-03-10 Bruno Haible <bruno@clisp.org>
4752 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
4754 2007-03-10 Bruno Haible <bruno@clisp.org>
4756 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
4758 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
4759 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
4760 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
4762 2007-03-10 Bruno Haible <bruno@clisp.org>
4764 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
4766 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
4769 2007-03-09 Eric Blake <ebb9@byu.net>
4770 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
4772 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
4773 types are not being provided by gnulib.
4774 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
4775 types are supported.
4777 2007-03-10 Bruno Haible <bruno@clisp.org>
4779 * lib/stdio_.h (__attribute__): New macro.
4780 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
4781 vsprintf): Specify __attribute__ __format__ for GCC.
4782 Suggested by Eric Blake.
4784 2007-03-09 Bruno Haible <bruno@clisp.org>
4786 * modules/printf-posix-tests: New file.
4787 * tests/test-printf-posix.sh: New file.
4788 * tests/test-printf-posix.c: New file.
4790 * modules/printf-posix: New file.
4791 * lib/printf.c: New file.
4792 * m4/printf-posix-rpl.m4: New file.
4793 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
4795 * lib/stdio_.h (printf): New declaration.
4796 (format, __format__, ____printf____, ____scanf____, ____strftime____,
4797 ____strfmon____): New macros.
4798 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
4801 2007-03-09 Bruno Haible <bruno@clisp.org>
4803 * tests/test-vasnprintf-posix2.sh: New file.
4804 * tests/test-vasnprintf-posix2.c: New file.
4805 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
4806 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
4807 (Makefile.am): Activate test-vasnprintf-posix2.sh.
4809 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
4810 a locale dependent decimal point, rather than always '.'.
4812 2007-03-09 Eric Blake <ebb9@byu.net>
4814 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
4815 spite of platforms like Tandem/NSK that define it to -1.
4817 2007-03-08 Bruno Haible <bruno@clisp.org>
4819 * modules/vprintf-posix-tests: New file.
4820 * tests/test-vprintf-posix.sh: New file.
4821 * tests/test-vprintf-posix.c: New file.
4822 * tests/test-printf-posix.h: New file.
4824 * modules/vprintf-posix: New file.
4825 * lib/vprintf.c: New file.
4826 * m4/vprintf-posix.m4: New file.
4827 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
4829 * lib/stdio_.h (vprintf): New declaration.
4830 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
4833 2007-03-08 Bruno Haible <bruno@clisp.org>
4835 * modules/fprintf-posix-tests: New file.
4836 * tests/test-fprintf-posix.sh: New file.
4837 * tests/test-fprintf-posix.c: New file.
4839 * modules/fprintf-posix: New file.
4840 * lib/fprintf.c: New file.
4841 * m4/fprintf-posix.m4: New file.
4842 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
4844 * lib/stdio_.h (fprintf): New declaration.
4845 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
4848 2007-03-08 Bruno Haible <bruno@clisp.org>
4850 * modules/vfprintf-posix-tests: New file.
4851 * tests/test-vfprintf-posix.sh: New file.
4852 * tests/test-vfprintf-posix.c: New file.
4853 * tests/test-fprintf-posix.h: New file.
4854 * tests/test-fprintf-posix.out: New file.
4856 * modules/vfprintf-posix: New file.
4857 * lib/vfprintf.c: New file.
4858 * m4/vfprintf-posix.m4: New file.
4859 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
4861 * lib/stdio_.h (vfprintf): New declaration.
4862 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
4865 2007-03-08 Bruno Haible <bruno@clisp.org>
4867 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
4869 2007-03-08 Bruno Haible <bruno@clisp.org>
4871 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
4872 instead of 'expr' invocations.
4873 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
4874 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
4875 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
4876 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
4877 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
4878 Suggested by Paul Eggert.
4880 2007-03-08 Bruno Haible <bruno@clisp.org>
4882 * modules/fseterr-tests: New file.
4883 * tests/test-fseterr.c: New file.
4885 * modules/fseterr: New file.
4886 * lib/fseterr.h: New file.
4887 * lib/fseterr.c: New file.
4889 2007-03-08 Bruno Haible <bruno@clisp.org>
4891 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
4892 * lib/getopt_.h: Likewise.
4893 * lib/mbswidth.h: Likewise.
4894 * lib/setenv.h: Likewise.
4895 * lib/vasnprintf.h: Likewise.
4896 * lib/vasprintf.h: Likewise.
4897 * lib/verror.h: Likewise.
4898 * lib/xsetenv.h: Likewise.
4899 * lib/xvasprintf.h: Likewise.
4901 2007-03-08 Jim Meyering <jim@meyering.net>
4903 * users.txt: Add parted.
4905 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
4907 2007-03-07 Bruno Haible <bruno@clisp.org>
4909 * m4/printf.m4: Make the shell script snippets copy&pastable.
4911 2007-03-02 Bruno Haible <bruno@clisp.org>
4913 * lib/netinet_in_.h: New file.
4914 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
4915 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
4916 * modules/netinet_in (Files): Add lib/netinet_in_.h.
4917 (Depends-on): Add absolute-header.
4918 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
4921 2007-03-03 Bruno Haible <bruno@clisp.org>
4923 * lib/sys_select_.h: New file.
4924 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
4925 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
4926 * modules/sys_select (Files): Add lib/sys_select_.h.
4927 (Depends-on): Add absolute-header.
4928 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
4931 2007-03-02 Bruno Haible <bruno@clisp.org>
4933 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
4934 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
4936 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
4937 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
4938 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
4939 * modules/sys_socket (Depends-on): Add absolute-header.
4940 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
4941 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
4942 (Include): Remove requirement of inclusion of <sys/types.h>.
4944 2007-03-02 Bruno Haible <bruno@clisp.org>
4946 * lib/byteswap_.h (bswap_32): Fix formula.
4948 2007-03-06 Bruno Haible <bruno@clisp.org>
4950 * modules/sprintf-posix-tests: New file.
4951 * tests/test-sprintf-posix.c: New file.
4953 * modules/sprintf-posix: New file.
4954 * lib/sprintf.c: New file.
4955 * m4/sprintf-posix.m4: New file.
4956 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
4958 * lib/stdio_.h (sprintf): New declaration.
4959 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
4962 2007-03-06 Bruno Haible <bruno@clisp.org>
4964 * modules/vsprintf-posix-tests: New file.
4965 * tests/test-vsprintf-posix.c: New file.
4966 * tests/test-sprintf-posix.h: New file.
4968 * modules/vsprintf-posix: New file.
4969 * lib/vsprintf.c: New file.
4970 * m4/vsprintf-posix.m4: New file.
4971 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
4973 * lib/stdio_.h (vsprintf): New declaration.
4974 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
4977 2007-03-06 Bruno Haible <bruno@clisp.org>
4979 * modules/vsnprintf (Depend-on): Remove minmax.
4981 2007-03-06 Bruno Haible <bruno@clisp.org>
4983 * modules/snprintf-posix-tests: New file.
4984 * tests/test-snprintf-posix.c: New file.
4986 * modules/snprintf-posix: New file.
4987 * m4/snprintf-posix.m4: New file.
4988 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
4990 (gl_FUNC_SNPRINTF): Invoke it.
4991 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
4992 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
4994 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
4996 2007-03-06 Bruno Haible <bruno@clisp.org>
4998 * modules/vsnprintf-posix-tests: New file.
4999 * tests/test-vsnprintf-posix.c: New file.
5000 * tests/test-snprintf-posix.h: New file.
5002 * modules/vsnprintf-posix: New file.
5003 * m4/vsnprintf-posix.m4: New file.
5004 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
5006 (gl_FUNC_VSNPRINTF): Invoke it.
5007 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
5008 * lib/stdio_.h (vsnprintf): Define as a replacement if
5009 REPLACE_VSNPRINTF is set.
5010 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
5012 2007-03-06 Bruno Haible <bruno@clisp.org>
5014 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
5015 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
5017 2007-03-06 Bruno Haible <bruno@clisp.org>
5019 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
5020 (asinl): Declare also if HAVE_DECL_ASINL is set.
5021 (atanl): Declare also if HAVE_DECL_ATANL is set.
5022 (ceill): Declare also if HAVE_DECL_CEILL is set.
5023 (cosl): Declare also if HAVE_DECL_COSL is set.
5024 (expl): Declare also if HAVE_DECL_EXPL is set.
5025 (floorl): Declare also if HAVE_DECL_FLOORL is set.
5026 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
5027 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
5028 (logl): Declare also if HAVE_DECL_LOGL is set.
5029 (sinl): Declare also if HAVE_DECL_SINL is set.
5030 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
5031 (tanl): Declare also if HAVE_DECL_TANL is set.
5032 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
5033 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
5034 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
5035 declaration of frexpl, ldexpl.
5036 * modules/printf-frexpl (Depends-on): Add math.
5037 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
5039 2007-03-05 Bruno Haible <bruno@clisp.org>
5041 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
5042 frexpl and ldexpl are declared.
5043 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
5045 2007-03-05 Bruno Haible <bruno@clisp.org>
5047 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
5048 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
5050 2007-03-05 Bruno Haible <bruno@clisp.org>
5052 * lib/stdio_.h: Include <stddef.h>.
5054 2007-03-05 Bruno Haible <bruno@clisp.org>
5056 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
5058 2007-03-05 Bruno Haible <bruno@clisp.org>
5060 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
5061 NetBSD 4, from Ralf Wildenhues.
5063 2007-03-04 Bruno Haible <bruno@clisp.org>
5065 * lib/vasprintf.h: Update #if logic for the case when the functions
5066 exist but are overridden.
5068 2007-03-04 Bruno Haible <bruno@clisp.org>
5070 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
5071 implementations: glibc-2.4 and MacOS X 10.3.
5072 * tests/test-vasnprintf-posix.c (test_function): Test also the case
5073 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
5074 * tests/test-vasprintf-posix.c (test_function): Likewise.
5076 2007-03-04 Bruno Haible <bruno@clisp.org>
5078 * modules/vasprintf-posix-tests: New file.
5079 * tests/test-vasprintf-posix.c: New file.
5081 * modules/vasprintf-posix: New file.
5082 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
5084 * m4/vasprintf-posix.m4: New file.
5085 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
5087 (gl_FUNC_VASPRINTF): Invoke it.
5088 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
5090 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
5092 2007-03-04 Bruno Haible <bruno@clisp.org>
5094 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
5095 REPLACE_GETTIMEOFDAY.
5096 * modules/sys_time (Makefile.am): Likewise.
5097 * m4/sys_time_h.m4: Likewise.
5098 * m4/gettimeofday.m4: Likewise.
5100 2007-03-04 Bruno Haible <bruno@clisp.org>
5102 * modules/vasnprintf-posix-tests: New file.
5103 * tests/test-vasnprintf-posix.c: New file.
5105 * modules/vasnprintf-posix: New file.
5106 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
5108 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
5109 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
5110 REPLACE_VASNPRINTF is defined.
5111 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
5113 (gl_FUNC_VASNPRINTF): Invoke it.
5114 * m4/vasnprintf-posix.m4: New file.
5115 * m4/printf.m4: New file.
5117 2007-03-04 Bruno Haible <bruno@clisp.org>
5119 Compile progreloc.c only if --enable-relocatable is specified.
5120 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
5121 if --enable-relocatable was specified.
5122 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
5125 2007-03-04 Jim Meyering <jim@meyering.net>
5127 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
5128 Use it consistently, rather than enumerating errno constants.
5130 2007-03-04 Bruno Haible <bruno@clisp.org>
5132 * modules/xvasprintf-tests: New file.
5133 * tests/test-xvasprintf.c: New file.
5135 * modules/vasprintf-tests: New file.
5136 * tests/test-vasprintf.c: New file.
5138 * modules/vasnprintf-tests: New file.
5139 * tests/test-vasnprintf.c: New file.
5141 * modules/vsnprintf-tests: New file.
5142 * tests/test-vsnprintf.c: New file.
5144 * modules/snprintf-tests: New file.
5145 * tests/test-snprintf.c: New file.
5147 2007-03-04 Bruno Haible <bruno@clisp.org>
5149 Compile relocatable.c only if --enable-relocatable is specified.
5150 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
5151 gl_RELOCATABLE_LIBRARY.
5152 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
5153 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
5154 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
5155 gl_RELOCATABLE_LIBRARY.
5156 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
5157 (Makefile.am): Remove lib_SOURCES.
5158 * modules/relocatable-lib-lgpl (configure.ac): Invoke
5159 gl_RELOCATABLE_LIBRARY.
5160 (Makefile.am): Remove lib_SOURCES.
5161 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
5163 * modules/relocatable-prog-wrapper (configure.ac): Invoke
5164 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
5166 2007-03-04 Bruno Haible <bruno@clisp.org>
5168 * modules/argmatch-tests: New file.
5169 * tests/test-argmatch.c: New file.
5171 * tests/test-allocsa.c (main): Halve the number of loop runs.
5173 * modules/alloca-opt-tests: New file.
5174 * tests/test-alloca-opt.c: New file.
5176 2007-03-04 Jim Meyering <jim@meyering.net>
5178 Work around difference between Linux ACLs and Solaris 10 ZFS.
5179 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
5182 2007-03-03 Bruno Haible <bruno@clisp.org>
5184 * modules/relocatable-prog (Depends-on): Add back progreloc's
5185 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
5187 2007-03-03 Bruno Haible <bruno@clisp.org>
5189 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
5190 * modules/relocatable-lib: New file.
5192 2007-03-03 Bruno Haible <bruno@clisp.org>
5194 * modules/relocatable-prog: Renamed from modules/relocatable.
5195 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
5197 2007-03-03 Bruno Haible <bruno@clisp.org>
5199 * modules/relocatable-script (Files): Add doc/relocatable.texi,
5200 m4/relocatable-lib.m4.
5201 (Depends-on): Remove 'relocatable'.
5202 (configure.ac): Add gl_RELOCATABLE_NOP.
5204 2007-03-03 Bruno Haible <bruno@clisp.org>
5206 * modules/relocatable-prog-wrapper: New file.
5207 * modules/relocatable (Depends-on): Add it. Remove all other
5208 dependencies except progname.
5209 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
5211 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
5212 (gl_FUNC_STRERROR): Nop.
5213 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
5215 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
5216 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
5218 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
5219 (gl_FUNC_READLINK): Update.
5221 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
5223 2007-03-03 Bruno Haible <bruno@clisp.org>
5225 * lib/xreadlink.c: Include <unistd.h> unconditionally.
5226 * modules/xreadlink (Depends-on): Add unistd.
5227 * modules/xreadlink-with-size (Depends-on): Likewise.
5229 2007-03-03 Bruno Haible <bruno@clisp.org>
5231 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
5232 extracted from gt_FUNC_SETENV.
5233 (gt_FUNC_SETENV): Remove macro.
5234 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
5235 remove gt_FUNC_SETENV.
5237 2007-03-03 Bruno Haible <bruno@clisp.org>
5239 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
5240 ENABLE_RELOCATABLE here.
5241 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
5243 2007-03-03 Bruno Haible <bruno@clisp.org>
5245 * modules/rbtreehash-list-tests (Depends-on): Add progname.
5246 * tests/test-rbtreehash_list.c: Include progname.h.
5247 (main): Call set_program_name.
5249 * modules/rbtree-oset-tests (Depends-on): Add progname.
5250 * tests/test-rbtree_oset.c: Include progname.h.
5251 (main): Call set_program_name.
5253 * modules/rbtree-list-tests (Depends-on): Add progname.
5254 * tests/test-rbtree_list.c: Include progname.h.
5255 (main): Call set_program_name.
5257 * modules/linked-list-tests (Depends-on): Add progname.
5258 * tests/test-linked_list.c: Include progname.h.
5259 (main): Call set_program_name.
5261 2007-03-03 Bruno Haible <bruno@clisp.org>
5263 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
5264 All uses of __restrict changed to _Restrict_.
5265 * lib/glob_.h (__restrict): Remove macro.
5267 2007-03-02 Bruno Haible <bruno@clisp.org>
5269 * modules/gettext (configure.ac): Require gettext infrastructure
5270 from version 0.16.1.
5272 2007-03-02 Bruno Haible <bruno@clisp.org>
5274 * modules/linkedhash-list-tests (Depends-on): Add progname.
5275 * tests/test-linkedhash_list.c: Include progname.h.
5276 (main): Call set_program_name.
5278 * modules/carray-list-tests (Depends-on): Add progname.
5279 * tests/test-carray_list.c: Include progname.h.
5280 (main): Call set_program_name.
5282 * modules/avltreehash-list-tests (Depends-on): Add progname.
5283 * tests/test-avltreehash_list.c: Include progname.h.
5284 (main): Call set_program_name.
5286 * modules/avltree-oset-tests (Depends-on): Add progname.
5287 * tests/test-avltree_oset.c: Include progname.h.
5288 (main): Call set_program_name.
5290 * modules/avltree-list-tests (Depends-on): Add progname.
5291 * tests/test-avltree_list.c: Include progname.h.
5292 (main): Call set_program_name.
5294 * modules/array-oset-tests (Depends-on): Add progname.
5295 * tests/test-array_oset.c: Include progname.h.
5296 (main): Call set_program_name.
5298 * modules/array-list-tests (Depends-on): Add progname.
5299 * tests/test-array_list.c: Include progname.h.
5300 (main): Call set_program_name.
5302 * modules/argp-tests (Depends-on): Add progname.
5303 * tests/test-argp.c: Include argp.h first. Include progname.h.
5304 (main): Call set_program_name.
5306 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
5308 * doc/gnulib-tool.texi (Initial import): Reword description of
5309 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
5310 limited effect even if defined after the first system include.
5312 2007-03-01 Bruno Haible <bruno@clisp.org>
5314 * build-aux/config.libpath: Update to libtool-1.5.22.
5315 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5317 2007-03-01 Bruno Haible <bruno@clisp.org>
5319 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
5321 Reported by Ralf Wildenhues.
5323 2007-03-01 Bruno Haible <bruno@clisp.org>
5325 * build-aux/install-reloc: Remove object files left over by some
5327 Reported by Ralf Wildenhues.
5329 2007-03-01 Bruno Haible <bruno@clisp.org>
5331 * build-aux/install-reloc: Break long lines.
5333 2007-03-01 Bruno Haible <bruno@clisp.org>
5335 * doc/relocatable.texi: Document that it may not work on OpenBSD.
5336 Reported by Ralf Wildenhues.
5338 2007-03-01 Bruno Haible <bruno@clisp.org>
5340 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
5341 include ordering constraints.
5343 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
5345 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
5346 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
5347 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
5349 * lib/time_.h: Fix misspelling.
5350 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
5351 Require gl_HEADER_TIME_H_DEFAULTS.
5352 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
5353 * m4/time_r.m4 (gl_TIME_R): Likewise.
5354 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
5356 2007-03-01 Bruno Haible <bruno@clisp.org>
5358 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
5359 * m4/utimens.m4 (gl_UTIMENS): Likewise.
5361 2007-03-01 Jim Meyering <jim@meyering.net>
5363 * modules/xreadlink (Maintainer): Add my name.
5364 * modules/xreadlink-with-size (Depends-on): Alphabetize.
5366 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
5367 Bruno Haible <bruno@clisp.org>
5369 * build-aux/install-reloc: Compile also c-ctype.c.
5370 * build-aux/relocatable.sh.in: New file.
5371 * doc/relocatable.texi: New file.
5372 * doc/relocatable-maint.texi: New file.
5373 * doc/gnulib.texi: Include relocatable-maint.texi.
5374 * lib/progreloc.c: Include unistd.h unconditionally.
5375 * lib/relocwrapper.c: Include unistd.h unconditionally.
5377 (add_dotbin): Use c_tolower.
5378 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
5379 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
5380 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
5381 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
5382 to m4/relocatable-lib.m4.
5383 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
5384 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
5385 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
5386 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
5387 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
5388 * modules/relocatable: New file.
5389 * modules/relocatable-lib: New file.
5390 * modules/relocatable-script: New file.
5392 2007-02-28 Bruno Haible <bruno@clisp.org>
5394 Import --enable-relocatable infrastructure.
5395 * build-aux/config.libpath: New file, from GNU gettext.
5396 * build-aux/install-reloc: New file, from GNU gettext.
5397 * build-aux/reloc-ldflags: New file, from GNU gettext.
5398 * lib/relocatable.h: New file, from GNU gettext.
5399 * lib/relocatable.c: New file, from GNU gettext.
5400 * lib/relocwrapper.c: New file, from GNU gettext.
5401 * m4/relocatable.m4: New file, from GNU gettext.
5403 2007-02-28 Bruno Haible <bruno@clisp.org>
5405 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
5407 * modules/xreadlink: New file, from GNU gettext with modifications.
5408 * lib/xreadlink.c: New file, from GNU gettext.
5409 * lib/xreadlink.h: Add comments.
5410 (xreadlink): New declaration.
5412 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
5413 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
5414 lib/xreadlink-with-size.c.
5415 (configure.ac): Remove gl_XREADLINK invocation.
5416 (Makefile.am): Augment lib_SOURCES.
5417 * m4/xreadlink.m4: Remove file.
5418 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
5419 (xreadlink_with_size): Renamed from xreadink.
5420 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
5421 * modules/canonicalize (Depends-on): Replace xreadlink with
5422 xreadlink-with-size.
5423 * lib/canonicalize.c (canonicalize_filename_mode): Update.
5425 2007-02-25 Jim Meyering <jim@meyering.net>
5427 * build-aux/announce-gen: When complaining about excess arguments,
5430 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
5432 * README: Document signed integer overflow situation more
5435 2007-02-25 Bruno Haible <bruno@clisp.org>
5437 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
5438 'a' or 'A' conversion.
5440 2007-02-25 Bruno Haible <bruno@clisp.org>
5442 * modules/filename: Renamed from modules/pathname.
5443 (Files): Replace lib/pathname.h with lib/filename.h. Replace
5444 lib/concatpath.c with lib/concat-filename.c.
5445 (Makefile.am): Update.
5446 (Include): Replace pathname.h with filename.h.
5447 * lib/filename.h: Renamed from lib/pathname.h.
5448 (concatenated_filename): Renamed from concatenated_pathname.
5449 * lib/concat-filename.c: Renamed from lib/concatpath.c.
5450 (concatenated_filename): Renamed from concatenated_pathname.
5451 * lib/findprog.c: Include filename.h instead of pathname.h.
5452 (find_in_path): Update.
5453 * lib/javacomp.c: Include filename.h instead of pathname.h.
5454 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
5455 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
5456 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
5457 is_oldgcj_14_13_usable, is_javac_usable): Update.
5458 * lib/javaexec.c: Include filename.h instead of pathname.h.
5459 (execute_java_class): Update.
5460 * modules/findprog: Update.
5461 * modules/javacomp: Update.
5462 * modules/javaexec: Update.
5463 * MODULES.html.sh (File system functions): Add 'filename', remove
5466 2007-02-25 Bruno Haible <bruno@clisp.org>
5468 * modules/printf-frexpl-tests: New file.
5469 * tests/test-printf-frexpl.c: New file.
5471 * modules/printf-frexpl: New file.
5472 * lib/printf-frexpl.h: New file.
5473 * lib/printf-frexpl.c: New file.
5474 * m4/printf-frexpl.m4: New file.
5476 2007-02-25 Bruno Haible <bruno@clisp.org>
5478 * modules/printf-frexp-tests: New file.
5479 * tests/test-printf-frexp.c: New file.
5481 * modules/printf-frexp: New file.
5482 * lib/printf-frexp.h: New file.
5483 * lib/printf-frexp.c: New file.
5484 * m4/printf-frexp.m4: New file.
5486 2007-02-25 Bruno Haible <bruno@clisp.org>
5488 Assume automake >= 1.10 for the tests.
5489 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
5490 * modules/arctwo-tests: Likewise.
5491 * modules/argp-tests: Likewise.
5492 * modules/avltree-list-tests: Likewise.
5493 * modules/avltree-oset-tests: Likewise.
5494 * modules/avltreehash-list-tests: Likewise.
5495 * modules/carray-list-tests: Likewise.
5496 * modules/crc-tests: Likewise.
5497 * modules/des-tests: Likewise.
5498 * modules/gc-arcfour-tests: Likewise.
5499 * modules/gc-arctwo-tests: Likewise.
5500 * modules/gc-des-tests: Likewise.
5501 * modules/gc-hmac-md5-tests: Likewise.
5502 * modules/gc-hmac-sha1-tests: Likewise.
5503 * modules/gc-md2-tests: Likewise.
5504 * modules/gc-md4-tests: Likewise.
5505 * modules/gc-md5-tests: Likewise.
5506 * modules/gc-pbkdf2-sha1-tests: Likewise.
5507 * modules/gc-rijndael-tests: Likewise.
5508 * modules/gc-sha1-tests: Likewise.
5509 * modules/gc-tests: Likewise.
5510 * modules/getaddrinfo-tests: Likewise.
5511 * modules/hmac-md5-tests: Likewise.
5512 * modules/hmac-sha1-tests: Likewise.
5513 * modules/linked-list-tests: Likewise.
5514 * modules/linkedhash-list-tests: Likewise.
5515 * modules/lock-tests: Likewise.
5516 * modules/md2-tests: Likewise.
5517 * modules/md4-tests: Likewise.
5518 * modules/md5-tests: Likewise.
5519 * modules/rbtree-list-tests: Likewise.
5520 * modules/rbtree-oset-tests: Likewise.
5521 * modules/rbtreehash-list-tests: Likewise.
5522 * modules/read-file-tests: Likewise.
5523 * modules/rijndael-tests: Likewise.
5524 * modules/stdint-tests: Likewise.
5525 * modules/tls-tests: Likewise.
5527 2007-02-24 Bruno Haible <bruno@clisp.org>
5529 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
5530 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
5531 function; instead check whether isnan with a double argument links.
5532 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
5533 function; instead check whether isnan with a 'long double' argument
5535 Reported by Eric Blake <ebb9@byu.net>.
5537 2007-02-24 Bruno Haible <bruno@clisp.org>
5539 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
5541 * lib/isnanl.c: Remove all code. Just include isnan.c.
5542 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
5544 2007-02-25 Jim Meyering <jim@meyering.net>
5546 Avoid conflicting types for 'unsetenv' on FreeBSD.
5547 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
5548 conflicting with FreeBSD's (5.0 and 6.1) function declaration
5551 2007-02-24 Bruno Haible <bruno@clisp.org>
5553 * modules/isnanl-nolibm-tests: New file.
5554 * tests/test-isnanl.c: New file.
5556 * modules/isnanl-nolibm: New file.
5557 * lib/isnanl.h: New file.
5558 * lib/isnanl.c: New file.
5559 * m4/isnanl.m4: New file.
5561 2007-02-24 Bruno Haible <bruno@clisp.org>
5563 * modules/isnan-nolibm-tests: New file.
5564 * tests/test-isnan.c: New file.
5566 * modules/isnan-nolibm: New file.
5567 * lib/isnan.h: New file.
5568 * lib/isnan.c: New file.
5569 * m4/isnan.m4: New file.
5571 2007-02-24 Bruno Haible <bruno@clisp.org>
5573 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
5574 assume that an exponent fits in 20 bits.
5576 2007-02-24 Jim Meyering <jim@meyering.net>
5578 * m4/regex.m4: Update the description of the configure-time option,
5579 --without-included-regex, to state accurately what the defaults are,
5580 and perhaps to give people an idea why using this option is risky.
5582 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
5584 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
5585 loops on small arguments. This attempts to avoid the problem
5586 Bruno Haible reported for AIX 4.3.2 in
5587 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
5589 2007-02-23 Bruno Haible <bruno@clisp.org>
5591 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
5592 Needed for help2man.
5594 2007-02-23 Karl Berry <karl@gnu.org>
5596 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
5597 exists, foo.h should be cvs-ignored, not committed.
5599 2007-02-23 Eric Blake <ebb9@byu.net>
5601 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
5602 * lib/stat-time.h (includes): Likewise.
5603 * lib/utimecmp.c (includes): Likewise.
5604 * lib/utimens.h (includes): Likewise.
5605 * lib/getdate.y (includes): Also include "timespec.h" for use
5606 internal to the module.
5607 * modules/utimens (Depends-on): Revert yesterday's patch.
5608 * modules/nanosleep (Depends-on): Add missing dependency.
5610 2007-02-22 Bruno Haible <bruno@clisp.org>
5612 * lib/glob.c: Don't include getlogin_r.h.
5614 2007-02-22 Jim Meyering <jim@meyering.net>
5616 * modules/utimens (Depends-on): Add timespec, required for
5617 utimens.h's inclusion of timespec.h.
5619 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
5621 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
5622 long unreadable paths in GNU/Linux. Problem reported by Andreas
5624 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
5625 I'll try to think of a better way to fix the Solaris problem.
5627 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
5628 like glibc; on Solaris 10, it fails with errno == EINVAL.
5629 POSIX says the behavior is unspecified if the first argument is NULL,
5630 so play it safe and never pass NULL to the system getcwd.
5632 2007-02-21 Jim Meyering <jim@meyering.net>
5634 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
5635 of gettimeofday. It would conflict with the one now always
5636 provided via sys_time_.h. Reported by Matthew Woehlke, as
5637 an IRIX 6.5 build failure.
5639 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
5641 Minor fixups to port to Solaris 10 with Sun C 5.8.
5642 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
5643 * modules/getcwd (Depends-on): Add dirfd.
5644 * lib/putenv.c (putenv): #undef it.
5645 (rpl_putenv): New decl.
5646 (malloc, free): Include <stdlib.h> rather than prototyping separately.
5648 2007-02-20 Bruno Haible <bruno@clisp.org>
5650 * modules/stdio-tests: New file.
5651 * tests/test-stdio.c: New file.
5653 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
5654 (Depends-on): Add stdio.
5655 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
5656 (Include): Use <stdio.h> instead of vsnprintf.h.
5657 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
5658 HAVE_DECL_VSNPRINTF.
5659 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
5661 * modules/snprintf (Files): Remove lib/snprintf.h.
5662 (Depends-on): Add stdio.
5663 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
5664 (Include): Use <stdio.h> instead of snprintf.h.
5665 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
5667 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
5668 * lib/getaddrinfo.c: Likewise.
5670 * modules/stdio: New file.
5671 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
5672 * lib/snprintf.h: Remove file.
5673 * lib/vsnprintf.h: Remove file.
5674 * lib/.cppi-disable: Remove snprintf.h.
5675 * m4/stdio_h.m4: New file.
5676 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
5678 2007-02-20 Jim Meyering <jim@meyering.net>
5680 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
5681 used by e.g., mingw. From Bruno Haible.
5683 2007-02-19 Bruno Haible <bruno@clisp.org>
5685 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
5687 Reported by Ben Pfaff <blp@cs.stanford.edu>.
5689 2007-02-19 Bruno Haible <bruno@clisp.org>
5691 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
5694 2007-02-19 Bruno Haible <bruno@clisp.org>
5696 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
5698 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
5700 2007-02-19 Jim Meyering <jim@meyering.net>
5702 Don't use FD after a successful "fdopendir (fd)".
5703 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
5704 Reset it by calling dirfd on the just-obtained DIR*.
5706 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
5707 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
5709 2007-02-18 Bruno Haible <bruno@clisp.org>
5711 * lib/readlink.c: Include <unistd.h>.
5712 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
5714 * modules/readlink (Depends-on): Add unistd.
5715 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5716 (Include): Add <unistd.h>.
5718 * lib/getlogin_r.h: Remove file.
5719 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
5720 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
5721 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
5722 HAVE_DECL_GETLOGIN_R.
5723 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
5724 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5725 (Include): Use <unistd.h> instead of getlogin_r.h.
5727 * lib/getcwd.h: Remove file.
5728 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
5729 * lib/xgetcwd.c: Likewise.
5730 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
5731 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
5732 * modules/getcwd (Files): Remove lib/getcwd.h.
5733 (Depends-on): Add unistd.
5734 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5735 (Include): Use <unistd.h> instad of getcwd.h.
5737 * lib/ftruncate.c: Include <unistd.h> first.
5738 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
5740 * modules/ftruncate (Depends-on): Add unistd.
5741 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5743 * lib/fchdir.c: Include <unistd.h> first.
5744 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
5745 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
5746 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
5747 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5748 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
5750 * lib/dup2.c: Include <unistd.h> first.
5751 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
5753 * modules/dup2 (Depends-on): Add unistd.
5754 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5756 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
5757 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
5758 REPLACE_CHOWN. Don't define chown as a macro here.
5759 * modules/chown (Depends-on): Add unistd.
5760 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5762 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
5763 Add definition for GL_LINK_WARNING.
5764 (chown, dup2): New declarations.
5765 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
5767 (ftruncate): New declaration.
5768 (getcwd): New declaration, taken from old getcwd.h.
5769 (getlogin_r): New declaration, taken from old getlogin_r.h.
5770 (readlink): New declaration.
5771 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
5772 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
5773 (gl_PREREQ_UNISTD): Remove macro.
5774 (gl_UNISTD_MODULE_INDICATOR): New macro.
5775 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
5776 many new variables. Don't set UNISTD_H.
5777 * modules/unistd (Description): Change.
5778 (Depends-on): Add link-warning.
5779 (configure.ac): Update.
5780 (Makefile.am): Create unistd.h always. Substitute many new variables
5783 2007-02-18 Bruno Haible <bruno@clisp.org>
5785 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
5786 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
5788 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
5789 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
5790 * lib/getsubopt.h: Remove file.
5791 * modules/getsubopt (Files): Remove lib/getsubopt.h.
5792 (Depends-on): Add stdlib.
5793 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5794 (Includes): Use <stdlib.h> instead of getsubopt.h.
5795 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
5797 * lib/getsubopt.c: Don't include getsubopt.h.
5799 2007-02-18 Bruno Haible <bruno@clisp.org>
5801 * modules/fchdir (Depends-on): Add dup2.
5803 2007-02-18 Bruno Haible <bruno@clisp.org>
5805 * lib/stdlib_.h: Handle glibc's special invocation convention
5808 2007-02-18 Bruno Haible <bruno@clisp.org>
5810 * modules/stdlib-tests: New file.
5811 * tests/test-stdlib.c: New file.
5813 * modules/mkstemp (Files): Remove lib/mkstemp.h.
5814 (Depends-on): Add stdlib.
5815 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5816 (Includes): Use <stdlib.h> instead of mkstemp.h.
5817 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
5818 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
5819 * lib/mkstemp.c: Don't include mkstemp.h.
5820 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
5821 * lib/stdlib--.h: Don't include mkstemp.h.
5823 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
5824 (Depends-on): Add stdlib.
5825 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5826 (Includes): Use <stdlib.h> instead of mkdtemp.h.
5827 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
5829 * lib/mkdtemp.c: Don't include mkdtemp.h.
5830 * lib/clean-temp.c: Don't include mkdtemp.h.
5832 * modules/exit (Files): Remove lib/exit.h.
5833 (Depends-on): Add stdlib.
5834 (Makefile.am): Remove lib_SOURCES.
5835 (Include): Use <stdlib.h> instead of exit.h.
5836 * lib/argmatch.c: Don't include exit.h.
5837 * lib/execute.c: Likewise.
5838 * lib/pagealign_alloc.c: Likewise.
5839 * lib/pipe.c: Likewise.
5840 * lib/wait-process.c: Likewise.
5841 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
5842 * lib/exitfail.c: Likewise.
5843 * lib/savewd.c: Likewise.
5844 * lib/xsetenv.c: Likewise.
5846 * modules/stdlib: New file.
5847 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
5848 and extra comments about mkstemp().
5849 * lib/exit.h: Remove file.
5850 * lib/mkdtemp.h: Remove file.
5851 * lib/mkstemp.h: Remove file.
5852 * m4/stdlib_h.m4: New file.
5853 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
5855 2007-02-18 Bruno Haible <bruno@clisp.org>
5857 * modules/math-tests: New file.
5858 * tests/test-math.c: New file.
5860 * modules/math: New file.
5861 * modules/mathl (Files): Remove lib/mathl.h.
5862 (Depends-on): Add math.
5863 (Makefile.am): Don't mention mathl.h.
5864 (Include): Use <math.h> instead of mathl.h.
5865 * lib/math_.h: New file.
5866 * lib/mathl.h: Remove file.
5867 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
5869 * lib/asinl.c: Likewise.
5870 * lib/atanl.c: Likewise.
5871 * lib/ceill.c: Likewise.
5872 * lib/cosl.c: Likewise.
5873 * lib/expl.c: Likewise.
5874 * lib/floorl.c: Likewise.
5875 * lib/frexpl.c: Likewise.
5876 * lib/ldexpl.c: Likewise.
5877 * lib/logl.c: Likewise.
5878 * lib/sincosl.c: Likewise.
5879 * lib/sinl.c: Likewise.
5880 * lib/sqrtl.c: Likewise.
5881 * lib/tanl.c: Likewise.
5882 * lib/trigl.c: Likewise.
5883 * m4/math_h.m4: New file.
5884 * MODULES.html.sh (Mathematics): Add math.
5886 2007-02-17 Bruno Haible <bruno@clisp.org>
5888 * modules/wctype-tests: New file.
5889 * tests/test-wctype.c: New file.
5891 * modules/wchar-tests: New file.
5892 * tests/test-wchar.c: New file.
5894 * modules/unistd-tests: New file.
5895 * tests/test-unistd.c: New file.
5897 * modules/time-tests: New file.
5898 * tests/test-time.c: New file.
5900 * modules/sysexits-tests: New file.
5901 * tests/test-sysexits.c: New file.
5903 * modules/sys_time-tests: New file.
5904 * tests/test-sys_time.c: New file.
5906 * modules/sys_stat-tests: New file.
5907 * tests/test-sys_stat.c: New file.
5909 * modules/sys_socket-tests: New file.
5910 * tests/test-sys_socket.c: New file.
5912 * modules/sys_select-tests: New file.
5913 * tests/test-sys_select.c: New file.
5915 * modules/string-tests: New file.
5916 * tests/test-string.c: New file.
5918 * modules/stdbool-tests: New file.
5919 * tests/test-stdbool.c: New file.
5921 * modules/netinet_in-tests: New file.
5922 * tests/test-netinet_in.c: New file.
5924 * modules/inttypes-tests: New file.
5925 * tests/test-inttypes.c: New file.
5927 * modules/fcntl-tests: New file.
5928 * tests/test-fcntl.c: New file.
5930 * modules/byteswap-tests: New file.
5931 * tests/test-byteswap.c: New file.
5933 * modules/arpa_inet-tests: New file.
5934 * tests/test-arpa_inet.c: New file.
5936 2007-02-17 Bruno Haible <bruno@clisp.org>
5938 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
5939 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
5940 if the corresponding module is not enabled. Emit link warnings if
5941 the function is used nevertheless.
5942 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
5943 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
5944 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
5945 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
5946 * modules/inttypes (Depends-on): Add link-warning.
5947 (Makefile.am): Copy the contents of build-aux/link-warning.h into
5948 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
5949 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
5950 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
5951 * modules/imaxdiv (configure.ac): Likewise.
5952 * modules/strtoimax (configure.ac): Likewise.
5953 * modules/strtoumax (configure.ac): Likewise.
5955 2007-02-17 Bruno Haible <bruno@clisp.org>
5957 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
5958 gl_STRING_MODULE_INDICATOR_DEFAULTS.
5959 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
5960 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
5962 2007-02-17 Bruno Haible <bruno@clisp.org>
5964 * modules/link-warning: New file.
5965 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
5966 * lib/string_.h (GL_LINK_WARNING): Remove definition.
5967 * modules/string (Depends-on): Add link-warning.
5968 (Makefile.am): Copy the contents of build-aux/link-warning.h into
5970 * MODULES.html.sh (Support for building libraries and executables): Add
5973 2007-02-17 Bruno Haible <bruno@clisp.org>
5975 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
5976 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
5977 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
5980 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
5981 Bruno Haible <bruno@clisp.org>
5983 * modules/tmpfile: New file.
5984 * lib/tmpfile.c: New file.
5985 * m4/tmpfile.m4: New file.
5986 * MODULES.html.sh (func_all_modules): New section "Input/output".
5988 2007-02-15 Bruno Haible <bruno@clisp.org>
5990 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
5991 (supports_delete_on_close): New function.
5992 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
5994 2007-02-14 Bruno Haible <bruno@clisp.org>
5996 * modules/mbspcasecmp-tests: New file.
5997 * tests/test-mbspcasecmp.sh: New file.
5998 * tests/test-mbspcasecmp.c: New file.
6000 New module mbspcasecmp.
6001 * modules/mbspcasecmp: New file.
6002 * lib/mbspcasecmp.c: New file.
6003 * lib/string_.h (strncasecmp): Change warning message.
6004 (mbspcasecmp): New declaration.
6005 * m4/mbspcasecmp.m4: New file.
6006 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6008 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
6009 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
6011 2007-02-14 Bruno Haible <bruno@clisp.org>
6013 * modules/mbsncasecmp-tests: New file.
6014 * tests/test-mbsncasecmp.sh: New file.
6015 * tests/test-mbsncasecmp.c: New file.
6017 New module mbsncasecmp.
6018 * modules/mbsncasecmp: New file.
6019 * lib/mbsncasecmp.c: New file.
6020 * lib/string_.h (mbsncasecmp): New declaration.
6021 * m4/mbsncasecmp.m4: New file.
6022 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6024 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
6025 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
6027 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
6029 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
6030 Verify that it doesn't overlap with our flags.
6031 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
6032 do not have the desired effect in multibyte locales; instead, use
6034 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
6035 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
6036 we don't require GNU fnmatch ourselves (if our users require it, they
6037 should do so explicitly).
6039 Fix regex code so it doesn't rely on strcasecmp.
6040 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
6041 Otherwise, include gnulib's langinfo.h.
6042 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
6043 undesirable behavior in non-C locales. Instead, rely on localecharset.
6044 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
6045 * modules/regex (FILES): Remove m4/codeset.m4.
6046 (Depends-on): Add localcharset. Remove strcase.
6048 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6050 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
6051 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
6053 2007-02-13 Bruno Haible <bruno@clisp.org>
6055 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
6056 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6058 2007-02-12 Bruno Haible <bruno@clisp.org>
6060 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
6061 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
6062 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
6063 time warning rather than a link error.
6065 2007-02-12 Bruno Haible <bruno@clisp.org>
6067 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
6068 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
6069 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6071 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
6073 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
6076 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
6078 New module 'time', so that apps can include <time.h> as per
6079 POSIX and GNU instead of separate include files like time_r.h
6080 and timegm.h. This implementation tries out a simpler approach
6081 for replacing decls in standard include files (as compared to
6082 the string module), somewhat as an experiment.
6084 * config/srclist.txt: Comment out mktime.c for now.
6085 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
6086 since it doesn't apply any more. Use generic wording instead.
6087 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
6089 * lib/time_.h, m4/time_h.m4, modules/time: New files.
6090 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
6091 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
6092 Don't include <sys/types.h>; no longer needed since we assume C89.
6093 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
6094 * lib/strftime.c: Likewise.
6095 * lib/time_r.c: Likewise.
6096 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
6097 * lib/nanosleep.c: Include <time.h> first, to check interface.
6098 * lib/strptime.c: Likewise.
6099 * lib/time_r.c: Likewise.
6100 * lib/timegm.c: Likewise.
6101 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
6103 * lib/timegm.c: Don't include timegm.h; no longer needed.
6104 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
6105 time.h now handles any problems in that area.
6106 (struct timespec, nanosleep): Remove; time.h now arranges for these.
6107 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
6108 that time.h defines struct timespec.
6109 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
6110 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
6112 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
6113 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
6114 needed. Set REPLACE_LOCALTIME.
6115 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
6116 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
6117 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
6118 nanosleep; time_h.m4 now does that. Don't require
6119 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
6120 module handles this now.
6121 * modules/getdate (Depends-on): Remove timespec. Add time.
6122 * modules/nanosleep (Depends-on): Likewise.
6123 * modules/stat-time (Depends-on): Likewise.
6124 * modules/nanosleep (Include): Include time.h, not timespec.h.
6125 * modules/strptime (Files): Remove lib/strptime.h.
6126 (Depends-on): Add extensions, time.
6127 (Include): Include time.h, not strptime.h.
6128 * modules/time_r (Files): Remove lib/time_r.h.
6129 (Depends-on): Add time.
6130 (Include): Include time.h, not time_r.h.
6131 * modules/timegm: Likewise.
6132 * modules/timespec (Description): Now does timespec-related decls
6133 of our own, instead of struct timespec itself.
6134 (Depends-on): Add time; remove extensions.
6135 (Maintainer): Add self.
6136 * modules/utimecmp (Depends-on): Add time; remove timespec.
6137 * modules/utimens (Depends-on): Likewise.
6138 * modules/xnanosleep (Depends-on): Likewise.
6140 2007-02-11 Bruno Haible <bruno@clisp.org>
6142 * lib/c-strstr.c: Include allocsa.h.
6143 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
6144 * lib/c-strcasestr.c: Include allocsa.h.
6145 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
6146 * lib/strcasestr.c: Include allocsa.h.
6147 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
6148 * lib/mbsstr.c: Include allocsa.h.
6149 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
6150 allocsa/freesa instead of malloc/free.
6151 * lib/mbscasestr.c: Include allocsa.h.
6152 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
6153 allocsa/freesa instead of malloc/free.
6154 * modules/c-strstr (Depends-on): Add allocsa.
6155 * modules/c-strcasestr (Depends-on): Likewise.
6156 * modules/strcasestr (Depends-on): Likewise.
6157 * modules/mbsstr (Depends-on): Likewise.
6158 * modules/mbscasestr (Depends-on): Likewise.
6160 2007-02-11 Bruno Haible <bruno@clisp.org>
6162 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
6164 * modules/mbsspn-tests: New file.
6165 * tests/test-mbsspn.sh: New file.
6166 * tests/test-mbsspn.c: New file.
6168 2007-02-11 Bruno Haible <bruno@clisp.org>
6170 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
6172 * modules/mbspbrk-tests: New file.
6173 * tests/test-mbspbrk.sh: New file.
6174 * tests/test-mbspbrk.c: New file.
6176 2007-02-11 Bruno Haible <bruno@clisp.org>
6178 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
6181 * modules/mbscspn-tests: New file.
6182 * tests/test-mbscspn.sh: New file.
6183 * tests/test-mbscspn.c: New file.
6185 2007-02-11 Bruno Haible <bruno@clisp.org>
6187 * modules/mbscasecmp-tests: New file.
6188 * tests/test-mbscasecmp.sh: New file.
6189 * tests/test-mbscasecmp.c: New file.
6191 2007-02-11 Bruno Haible <bruno@clisp.org>
6193 Ensure O(n) worst-case complexity of mbscasestr.
6194 * lib/mbscasestr.c: Include stdbool.h.
6195 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
6197 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
6198 the bookkeeping indicates that it's worth it.
6199 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
6201 * modules/mbscasestr-tests: New file.
6202 * tests/test-mbscasestr1.c: New file.
6203 * tests/test-mbscasestr2.sh: New file.
6204 * tests/test-mbscasestr2.c: New file.
6205 * tests/test-mbscasestr3.sh: New file.
6206 * tests/test-mbscasestr3.c: New file.
6207 * tests/test-mbscasestr4.sh: New file.
6208 * tests/test-mbscasestr4.c: New file.
6209 * m4/locale-tr.m4: New file.
6211 2007-02-11 Bruno Haible <bruno@clisp.org>
6213 Ensure O(n) worst-case complexity of mbsstr.
6214 * lib/mbsstr.c: Include stdbool.h.
6215 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
6217 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
6218 bookkeeping indicates that it's worth it.
6219 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
6221 * modules/mbsstr-tests: New file.
6222 * tests/test-mbsstr1.c: New file.
6223 * tests/test-mbsstr2.sh: New file.
6224 * tests/test-mbsstr2.c: New file.
6225 * tests/test-mbsstr3.sh: New file.
6226 * tests/test-mbsstr3.c: New file.
6227 * m4/locale-fr.m4: New file.
6229 2007-02-11 Bruno Haible <bruno@clisp.org>
6231 * lib/mbsrchr.c (mbsrchr): Fix bug.
6233 * modules/mbsrchr-tests: New file.
6234 * tests/test-mbsrchr.sh: New file.
6235 * tests/test-mbsrchr.c: New file.
6237 2007-02-11 Bruno Haible <bruno@clisp.org>
6239 * lib/mbschr.c (mbschr): Fix bug.
6241 * modules/mbschr-tests: New file.
6242 * tests/test-mbschr.sh: New file.
6243 * tests/test-mbschr.c: New file.
6244 * m4/locale-zh.m4: New file.
6246 2007-02-11 Bruno Haible <bruno@clisp.org>
6248 Support for copying multibyte string iterators.
6249 * lib/mbiter.h: Include <string.h>.
6250 (mbiter_multi_copy): New function.
6251 (mbi_copy): New macro.
6252 * lib/mbuiter.h: Include <string.h>.
6253 (mbuiter_multi_copy): New function.
6254 (mbui_copy): New macro.
6256 2007-02-11 Bruno Haible <bruno@clisp.org>
6259 * modules/mbslen: New file.
6260 * lib/mbslen.c: New file.
6261 * lib/string_.h (mbslen): New declaration.
6262 * m4/mbslen.m4: New file.
6263 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6265 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
6266 * MODULES.html.sh (Internationalization functions): Add mbslen.
6268 2007-02-11 Bruno Haible <bruno@clisp.org>
6270 Ensure O(n) worst-case complexity of strcasestr substitute.
6271 * lib/strcasestr.c: Include stdbool.h.
6272 (knuth_morris_pratt): New function.
6273 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
6274 bookkeeping indicates that it's worth it.
6275 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
6277 * modules/strcasestr-tests: New file.
6278 * tests/test-strcasestr.c: New file.
6280 2007-02-11 Bruno Haible <bruno@clisp.org>
6282 Ensure O(n) worst-case complexity of c_strcasestr.
6283 * lib/c-strcasestr.c: Include stdbool.h, string.h.
6284 (knuth_morris_pratt): New function.
6285 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
6286 the bookkeeping indicates that it's worth it.
6287 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
6289 * modules/c-strcasestr-tests: New file.
6290 * tests/test-c-strcasestr.c: New file.
6292 2007-02-11 Bruno Haible <bruno@clisp.org>
6294 Ensure O(n) worst-case complexity of c_strstr.
6295 * lib/c-strstr.c: Include stdbool.h, string.h.
6296 (knuth_morris_pratt): New function.
6297 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
6298 bookkeeping indicates that it's worth it.
6299 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
6301 * lib/c-strstr.c: Complete rewrite for maintainability.
6303 * modules/c-strstr-tests: New file.
6304 * tests/test-c-strstr.c: New file.
6306 2007-02-11 Bruno Haible <bruno@clisp.org>
6308 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
6309 5.2.1 and earlier, whereby \055 was treated just like the range
6311 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
6313 2007-02-08 Bruno Haible <bruno@clisp.org>
6315 * modules/regex (Depends-on): Add stdbool.
6316 Reported by Dalibor Topic <robilad@kaffe.org>.
6318 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
6320 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
6321 Prefer returning from main to exiting from it.
6322 Remove unnecessary parens after sizeof.
6324 2007-02-05 Bruno Haible <bruno@clisp.org>
6327 * modules/mbssep: New file.
6328 * lib/mbssep.c: New file.
6329 * lib/string_.h (strsep): Add a conditional link warning.
6330 (mbssep): New declaration.
6331 * m4/mbssep.m4: New file.
6332 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6334 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
6335 * MODULES.html.sh (Internationalization functions): Add mbssep.
6337 2007-02-05 Bruno Haible <bruno@clisp.org>
6339 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
6340 Optimize search in case of 1 delimiter.
6342 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
6344 * lib/acl.h: Include sys/types.h before sys/acl.h.
6346 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
6348 Merge upstream fix for glibc bugzilla #3957:
6350 2007-02-05 Jakub Jelinek <jakub@redhat.com>
6352 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
6353 bit for RE_HAT_LISTS_NOT_NEWLINE.
6354 (build_charclass_op): Remove bogus comment.
6356 2007-02-05 Simon Josefsson <simon@josefsson.org>
6358 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
6360 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
6362 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
6363 * lib/memmem.c [!defined _LIBC]: Include config.h.
6365 2007-02-04 Bruno Haible <bruno@clisp.org>
6367 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
6370 2007-02-04 Bruno Haible <bruno@clisp.org>
6372 New module mbstok_r.
6373 * modules/mbstok_r: New file.
6374 * lib/mbstok_r.c: New file.
6375 * lib/string_.h (strtok_r): Change argument names to match the
6376 comments. Add a conditional link warning.
6377 (mbstok_r): New declaration.
6378 * m4/mbstok_r.m4: New file.
6379 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6381 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
6382 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
6384 2007-02-04 Bruno Haible <bruno@clisp.org>
6387 * modules/mbsspn: New file.
6388 * lib/mbsspn.c: New file.
6389 * lib/string_.h (strspn): Add a conditional link warning.
6390 (mbsspn): New declaration.
6391 * m4/mbsspn.m4: New file.
6392 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6394 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
6395 * MODULES.html.sh (Internationalization functions): Add mbsspn.
6397 2007-02-04 Bruno Haible <bruno@clisp.org>
6400 * modules/mbspbrk: New file.
6401 * lib/mbspbrk.c: New file.
6402 * lib/string_.h (strpbrk): Add a conditional link warning.
6403 (mbspbrk): New declaration.
6404 * m4/mbspbrk.m4: New file.
6405 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6407 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
6408 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
6410 2007-02-04 Bruno Haible <bruno@clisp.org>
6413 * modules/mbscspn: New file.
6414 * lib/mbscspn.c: New file.
6415 * lib/string_.h (strcspn): Add a conditional link warning.
6416 (mbscspn): New declaration.
6417 * m4/mbscspn.m4: New file.
6418 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6420 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
6421 * MODULES.html.sh (Internationalization functions): Add mbscspn.
6423 2007-02-04 Bruno Haible <bruno@clisp.org>
6425 New module mbscasestr, reduced goal of strcasestr.
6426 * modules/mbscasestr: New file.
6427 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
6428 (mbscasestr): Renamed from strcasestr.
6429 * lib/strcasestr.c: Don't include mbuiter.h.
6430 (strcasestr): Remove support for multibyte locales.
6431 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
6432 Change the conditional link warning.
6433 (mbscasestr): New declaration.
6434 * m4/mbscasestr.m4: New file.
6435 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
6436 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
6438 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
6439 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6440 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
6441 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
6442 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
6443 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
6444 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
6445 (Depends-on): Remove mbuiter.
6446 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
6448 2007-02-04 Bruno Haible <bruno@clisp.org>
6450 Simplify handling of strncasecmp.
6451 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
6452 the conditional link warning.
6453 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6454 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
6455 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
6456 * modules/strcase (configure.ac): Don't invoke
6457 gl_STRING_MODULE_INDICATOR.
6458 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
6460 2007-02-04 Bruno Haible <bruno@clisp.org>
6462 New module mbscasecmp, reduced goal of strcasecmp.
6463 * modules/mbscasecmp: New file.
6464 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
6465 (mbscasecmp): Renamed from strcasecmp.
6466 * lib/strcasecmp.c: Don't include mbuiter.h.
6467 (strcasecmp): Remove support for multibyte locales.
6468 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
6469 Change the conditional link warning.
6470 (mbscasecmp): New declaration.
6471 * m4/mbscasecmp.m4: New file.
6472 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
6473 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
6475 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
6476 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6478 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
6479 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
6480 * modules/strcase (Files): Remove m4/mbrtowc.m4.
6481 (Depends-on): Remove mbuiter.
6482 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
6484 2007-02-04 Bruno Haible <bruno@clisp.org>
6486 New module mbsstr. Remove module strstr.
6487 * modules/mbsstr: New file.
6488 * modules/strstr: Remove file.
6489 * lib/mbsstr.c: Renamed from lib/strstr.c.
6490 (mbsstr): Renamed from strstr.
6491 * lib/string_.h (strstr): Remove declaration. Change the conditional
6493 (mbsstr): New declaration.
6494 * m4/mbsstr.m4: New file.
6495 * m4/strstr.m4: Remove file.
6496 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
6498 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
6499 Don't initialize GNULIB_STRSTR.
6500 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
6501 substitute GNULIB_STRSTR and REPLACE_STRSTR.
6502 * MODULES.html.sh (Internationalization functions): Add mbsstr.
6503 (Support for systems lacking ANSI C 89): Remove strstr.
6505 2007-02-04 Bruno Haible <bruno@clisp.org>
6508 * modules/mbsrchr: New file.
6509 * lib/mbsrchr.c: New file.
6510 * lib/string_.h (strrchr): Add a conditional link warning.
6511 (mbsrchr): New declaration.
6512 * m4/mbsrchr.m4: New file.
6513 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6515 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
6516 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
6518 2007-02-04 Bruno Haible <bruno@clisp.org>
6521 * modules/mbschr: New file.
6522 * lib/mbschr.c: New file.
6523 * lib/string_.h (strchr): Add a conditional link warning.
6524 (mbschr): New declaration.
6525 * m4/mbschr.m4: New file.
6526 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6528 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
6529 * MODULES.html.sh (Internationalization functions): Add mbschr.
6531 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
6533 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
6535 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
6537 2007-02-04 Bruno Haible <bruno@clisp.org>
6539 New module description section 'configure.ac-early'.
6540 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
6541 (func_get_autoconf_early_snippet): New function.
6542 (func_import, func_create_testdir): Use it. Remove special cases for
6543 modules 'extensions' and 'lock'.
6544 * modules/extensions (configure.ac-early): Require
6545 gl_USE_SYSTEM_EXTENSIONS.
6546 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
6548 2007-02-04 Bruno Haible <bruno@clisp.org>
6550 Make use of gcj-4.3's -fsource and -ftarget option.
6551 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
6552 and if so try the options -fsource and -ftarget.
6553 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
6554 source_version, ftarget_option, target_version arguments.
6555 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
6556 (is_envjavac_oldgcj_14_14_usable): Renamed from
6557 is_envjavac_gcj_14_14_usable.
6558 (is_envjavac_oldgcj_14_13_usable): Renamed from
6559 is_envjavac_gcj_14_13_usable.
6560 (is_gcj_present): Update.
6561 (is_gcj_43, is_gcj43_usable): New functions.
6562 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
6563 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
6564 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
6565 try the options -fsource and -ftarget.
6567 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
6569 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
6570 checking code. Set N = ceil (1.5 * N) rather than to a slightly
6573 2007-02-03 Jim Meyering <jim@meyering.net>
6575 Give tools a better chance to allocate space for very large buffers.
6576 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
6578 Make pwd and readlink work also when run with an unreadable parent dir
6579 on systems with openat support.
6580 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
6581 provided getcwd function, even when we have openat support.
6582 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
6584 2007-02-02 Bruno Haible <bruno@clisp.org>
6586 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
6587 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
6588 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
6589 portability problems if one of these functions is only used on specific
6591 Reported by Paul Eggert.
6593 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
6595 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
6596 is causing more trouble than it's curing.
6597 * lib/regex_internal.h (__mempcpy): Remove.
6598 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
6599 (and make the code a tad smaller to boot).
6600 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
6602 2007-02-02 Jim Meyering <jim@meyering.net>
6604 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
6605 section, not in the Makefile.am: one.
6607 2007-02-02 Eric Blake <ebb9@byu.net>
6609 * lib/strchrnul.c: Always include config.h first.
6611 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
6612 gnulib strstr is not necessary here.
6614 2007-02-02 Simon Josefsson <simon@josefsson.org>
6616 * m4/socklen.m4: Fix typo.
6618 2007-02-02 Eric Blake <ebb9@byu.net>
6620 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
6621 * modules/netinet_in (Makefile.am): Likewise.
6623 2007-02-01 Bruno Haible <bruno@clisp.org>
6625 * lib/string_.h (GL_LINK_WARNING): New macro.
6626 (strcasecmp, strstr, strcasestr): If provided by the system,
6627 conditionally define as a macro that leads to a warning instead of to
6629 (strncasecmp): Conditionally define as a macro that leads to a warning.
6631 2007-02-01 Karl Berry <karl@gnu.org>
6633 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
6635 2007-02-01 Bruno Haible <bruno@clisp.org>
6637 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
6640 2007-02-01 Eric Blake <ebb9@byu.net>
6642 * modules/regex (Depends-on): Revert dependence on mempcpy.
6643 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
6644 module's definition of mempcpy.
6645 Reported by Paul Eggert.
6647 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
6649 * lib/string_.h: If the gnulib module XYZ is not present, undefine
6650 the symbol XYZ before redefining it. This fixes a problem with
6651 programs that don't use XYZ, when compiled on systems that define
6652 XYZ to something else.
6654 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
6656 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
6657 occurs when "mkdir -m foo" creates a setgid directory that is (1)
6658 writeable to group or other and (2) is intended to have a special
6659 mode bit that is set or cleared. In such a case, the directory
6660 should be neither group- nor other-writeable until the special
6661 mode bits are right.
6663 2007-01-31 Eric Blake <ebb9@byu.net>
6665 * modules/mountlist (Depends-on): Add strstr.
6667 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
6669 * modules/string (Makefile.am): Remove redundant replacement.
6670 * modules/regex (Depends-on): Add mempcpy.
6672 2007-01-31 Bruno Haible <bruno@clisp.org>
6674 New module description field 'Link'.
6675 * gnulib-tool (func_usage): Document --extract-link-directive.
6676 (sed_extract_prog): Recognize 'Link' directive.
6677 (func_get_link_directive): New function.
6678 (func_import): Show summary of link directives.
6679 Handle --extract-link-directive option.
6680 * modules/acl (Link): New section.
6681 * modules/clock-time (Link): New section.
6682 * modules/euidaccess (Link): New section.
6683 * modules/gettext (Link): New section.
6684 * modules/iconv (Link): New section.
6685 * modules/lock (Link): New section.
6686 * modules/nanosleep (Link): New section.
6687 * modules/readline (Link): New section.
6689 2007-01-27 Bruno Haible <bruno@clisp.org>
6691 Enforce the use of gnulib modules for unportable <string.h> functions.
6692 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
6693 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
6694 (gl_HEADER_STRING_H_BODY): Require it.
6695 * lib/string_.h: If the gnulib module XYZ is not present, redefine
6696 the symbol XYZ to one that gives a link error.
6697 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
6698 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
6699 * modules/mempcpy (configure.ac): Likewise.
6700 * modules/memrchr (configure.ac): Likewise.
6701 * modules/stpcpy (configure.ac): Likewise.
6702 * modules/stpncpy (configure.ac): Likewise.
6703 * modules/strcase (configure.ac): Likewise.
6704 * modules/strcasestr (configure.ac): Likewise.
6705 * modules/strchrnul (configure.ac): Likewise.
6706 * modules/strdup (configure.ac): Likewise.
6707 * modules/strndup (configure.ac): Likewise.
6708 * modules/strnlen (configure.ac): Likewise.
6709 * modules/strpbrk (configure.ac): Likewise.
6710 * modules/strsep (configure.ac): Likewise.
6711 * modules/strstr (configure.ac): Likewise.
6712 * modules/strtok_r (configure.ac): Likewise.
6714 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
6716 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
6718 2007-01-30 Jim Meyering <jim@meyering.net>
6720 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
6722 2007-01-29 Bruno Haible <bruno@clisp.org>
6724 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
6725 * lib/execute.c: Likewise.
6726 * lib/pipe.c: Likewise.
6727 * lib/printf-args.h: Likewise.
6728 * lib/printf-args.c: Likewise.
6729 * lib/printf-parse.c: Likewise.
6730 * lib/vasnprintf.c: Likewise.
6732 2007-01-29 Eric Blake <ebb9@byu.net>
6734 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
6737 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
6739 * lib/strptime.h (strptime): Use 'restrict' for args where
6740 POSIX requires this.
6741 * lib/strptime.c (strptime): Likewise.
6742 Change license notice from LGPL to GPL, since gnulib-tool will
6743 change this as needed.
6744 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
6746 Include "strptime.h" first, to check interface.
6747 Do not #undef _LIBC and _NL_CURRENT.
6748 Do not include <stdlib.h>; no longer needed.
6749 Include "time_r.h" and declare ptime_locale_status
6750 only if _LIBC is not defined.
6751 (__P): Remove unused macro.
6752 (match_string): Bring back glibc version, but use it only if _LIBC
6754 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
6755 Remove unnecessary assertion and abort() call.
6756 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
6757 * m4/strptime.m4: Fix serial number comment.
6758 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
6759 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
6760 (Depends-on): Add time_r.
6762 2007-01-29 Bruno Haible <bruno@clisp.org>
6764 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
6766 * modules/strptime (Depends-on): Add stdbool.
6767 * lib/strptime.h: Include <time.h> always. Add comments.
6769 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
6771 * modules/strptime: New file.
6772 * lib/strptime.h: New file.
6773 * lib/strptime.c: New file.
6774 * m4/strptime.m4: New file.
6776 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
6778 * MODULES.html.sh: New module mpsort.
6779 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
6781 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
6782 a circularity problem with HP-UX ia64 reported by Bob Proulx in
6783 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
6785 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
6787 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
6789 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
6790 the parameter matches the prototype.
6792 2007-01-28 Jim Meyering <jim@meyering.net>
6794 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
6795 sys/time.h here, reverting that part of the previous patch:
6796 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
6798 2007-01-28 Bruno Haible <bruno@clisp.org>
6800 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
6801 value of $(SYS_TIME_H).
6802 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
6803 remove it conditionally, too. [added by Jim Meyering]
6804 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
6805 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
6806 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
6807 GETTIMEOFDAY_REPLACEMENT to 1.
6809 2007-01-28 Bruno Haible <bruno@clisp.org>
6811 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
6812 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
6813 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
6814 Set UNISTD_H instead of UNISTD_H2.
6815 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
6817 2007-01-28 Bruno Haible <bruno@clisp.org>
6819 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
6820 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
6822 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6824 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
6825 (func_create_testdir): Ensure C locale for `grep' and `tr'
6827 (func_create_megatestdir): Avoid one `grep'. Fix bug in
6828 ACLOCAL_AMFLAGS parsing state machine.
6830 2007-01-27 Bruno Haible <bruno@clisp.org>
6832 * modules/unistr/base: Update.
6834 2007-01-27 Bruno Haible <bruno@clisp.org>
6836 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
6837 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
6838 * modules/unistr/u32-mbtouc-unsafe: Renamed from
6839 modules/unistr/u32-mbtouc.
6840 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
6841 * lib/unistr.h: Update.
6842 * lib/linebreak.c: Update.
6843 * modules/unistr/u32-mbtouc: Renamed from
6844 modules/unistr/u32-mbtouc-safe.
6845 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
6846 * lib/unistr.h: Update.
6847 * lib/unistr/u32-to-u8.c: Update.
6848 * lib/unistr/u32-to-u16.c: Update.
6850 2007-01-27 Bruno Haible <bruno@clisp.org>
6852 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
6853 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
6854 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
6855 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
6856 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
6857 * modules/unistr/u16-mbtouc-unsafe: Renamed from
6858 modules/unistr/u16-mbtouc.
6859 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
6860 * lib/unistr.h: Update.
6861 * lib/linebreak.c: Update.
6862 * modules/linebreak: Update.
6863 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
6864 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
6865 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
6866 * modules/unistr/u16-mbtouc: Renamed from
6867 modules/unistr/u16-mbtouc-safe.
6868 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
6869 * lib/unistr.h: Update.
6870 * lib/unistr/u16-to-u8.c: Update.
6871 * modules/unistr/u16-to-u8: Update.
6872 * lib/unistr/u16-to-u32.c: Update.
6873 * modules/unistr/u16-to-u32: Update.
6875 2007-01-27 Bruno Haible <bruno@clisp.org>
6877 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
6878 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
6879 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
6880 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
6881 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
6882 * modules/unistr/u8-mbtouc-unsafe: Renamed from
6883 modules/unistr/u8-mbtouc.
6884 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
6885 * lib/unistr.h: Update.
6886 * lib/striconveh.c: Update.
6887 * modules/striconveh: Update.
6888 * lib/linebreak.c: Update.
6889 * modules/linebreak: Update.
6890 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
6891 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
6892 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
6893 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
6894 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
6895 * lib/unistr.h: Update.
6896 * lib/striconveh.c: Update.
6897 * modules/striconveh: Update.
6898 * lib/unistr/u8-to-u16.c: Update.
6899 * modules/unistr/u8-to-u16: Update.
6900 * lib/unistr/u8-to-u32.c: Update.
6901 * modules/unistr/u8-to-u32: Update.
6903 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6906 * lib/argz.c: Do not include strings.h nor memory.h, include
6907 string.h unconditionally. Patch by Simon Josefsson.
6909 2007-01-27 Bruno Haible <bruno@clisp.org>
6911 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
6912 from gl_HEADER_STRING_H_BODY.
6913 (gl_HEADER_STRING_H_BODY): Require it.
6914 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
6915 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
6916 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
6917 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
6918 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
6919 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
6920 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
6921 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
6922 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
6923 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
6924 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
6925 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
6926 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
6927 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
6928 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
6930 2007-01-27 Bruno Haible <bruno@clisp.org>
6932 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
6933 check_PROGRAMS into noinst_PROGRAMS.
6934 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
6935 check_PROGRAMS in this case.
6936 (func_import): Set for_test to false.
6937 (func_create_testdir): Set for_test to true.
6939 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
6940 Bruno Haible <bruno@clisp.org>
6942 * modules/strcasestr (Files): Remove lib/strcasestr.h.
6943 (Depends-on): Add string.
6944 (Includes): Use <string.h> instead of strcasestr.h.
6945 * modules/string (Makefile.am): Also substitute the value of
6947 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
6948 assume strcasestr is declared in <string.h> not <strings.h>. Also
6949 set REPLACE_STRCASESTR.
6950 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
6952 * lib/strcasestr.h: Remove file.
6953 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
6954 * lib/string_.h (strcasestr): New declaration.
6956 2007-01-27 Bruno Haible <bruno@clisp.org>
6958 * lib/string_.h: Use 'extern'.
6960 2007-01-27 Jim Meyering <jim@meyering.net>
6962 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
6963 of set-but-not-used local, "q".
6965 * lib/mempcpy.c: Include <config.h> before <string.h>.
6966 This fixes a compilation error on HP-UX, due to the system's
6967 "restrict"-using mempcpy prototype.
6969 2007-01-26 Bruno Haible <bruno@clisp.org>
6972 * lib/javacomp.c: Include c-strstr.h.
6973 (is_envjavac_gcj): Use c_strstr instead of strstr.
6974 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
6976 2007-01-26 Bruno Haible <bruno@clisp.org>
6978 * MODULES.html.sh (Unicode string functions): Add the new modules.
6980 * modules/uniconv/u32-strconv-to-locale: New file.
6981 * lib/uniconv/u32-strconv-to-locale.c: New file.
6983 * modules/uniconv/u16-strconv-to-locale: New file.
6984 * lib/uniconv/u16-strconv-to-locale.c: New file.
6986 * modules/uniconv/u8-strconv-to-locale: New file.
6987 * lib/uniconv/u8-strconv-to-locale.c: New file.
6989 * modules/uniconv/u32-strconv-from-locale: New file.
6990 * lib/uniconv/u32-strconv-from-locale.c: New file.
6992 * modules/uniconv/u16-strconv-from-locale: New file.
6993 * lib/uniconv/u16-strconv-from-locale.c: New file.
6995 * modules/uniconv/u8-strconv-from-locale: New file.
6996 * lib/uniconv/u8-strconv-from-locale.c: New file.
6998 * modules/uniconv/u32-strconv-to-enc: New file.
6999 * lib/uniconv/u32-strconv-to-enc.c: New file.
7000 * modules/uniconv/u32-strconv-to-enc-tests: New file.
7001 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
7003 * modules/uniconv/u16-strconv-to-enc: New file.
7004 * lib/uniconv/u16-strconv-to-enc.c: New file.
7005 * lib/uniconv/u-strconv-to-enc.h: New file.
7006 * modules/uniconv/u16-strconv-to-enc-tests: New file.
7007 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
7009 * modules/uniconv/u8-strconv-to-enc: New file.
7010 * lib/uniconv/u8-strconv-to-enc.c: New file.
7011 * modules/uniconv/u8-strconv-to-enc-tests: New file.
7012 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
7014 * modules/uniconv/u32-strconv-from-enc: New file.
7015 * lib/uniconv/u32-strconv-from-enc.c: New file.
7016 * modules/uniconv/u32-strconv-from-enc-tests: New file.
7017 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
7019 * modules/uniconv/u16-strconv-from-enc: New file.
7020 * lib/uniconv/u16-strconv-from-enc.c: New file.
7021 * modules/uniconv/u16-strconv-from-enc-tests: New file.
7022 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
7024 * modules/uniconv/u8-strconv-from-enc: New file.
7025 * lib/uniconv/u8-strconv-from-enc.c: New file.
7026 * lib/uniconv/u-strconv-from-enc.h: New file.
7027 * modules/uniconv/u8-strconv-from-enc-tests: New file.
7028 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
7030 * modules/uniconv/u32-conv-from-enc: New file.
7031 * lib/uniconv/u32-conv-from-enc.c: New file.
7032 * modules/uniconv/u32-conv-from-enc-tests: New file.
7033 * tests/uniconv/test-u32-conv-from-enc.c: New file.
7035 * modules/uniconv/u16-conv-from-enc: New file.
7036 * lib/uniconv/u16-conv-from-enc.c: New file.
7037 * lib/uniconv/u-conv-from-enc.h: New file.
7038 * modules/uniconv/u16-conv-from-enc-tests: New file.
7039 * tests/uniconv/test-u16-conv-from-enc.c: New file.
7041 * modules/uniconv/u8-conv-from-enc: New file.
7042 * lib/uniconv/u8-conv-from-enc.c: New file.
7043 * modules/uniconv/u8-conv-from-enc-tests: New file.
7044 * tests/uniconv/test-u8-conv-from-enc.c: New file.
7046 * modules/uniconv/base: New file.
7047 * lib/uniconv.h: New file.
7049 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
7051 * doc/gnulib-tool.texi (Initial import): Update to match current
7052 behavior with strdup module.
7053 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
7054 * lib/memmem.h: Remove; all uses removed. This is now done
7056 * lib/mempcpy.h: Likewise.
7057 * lib/memrchr.h: Likewise.
7058 * lib/stpcpy.h: Likewise.
7059 * lib/stpncpy.h: Likewise.
7060 * lib/strcase.h: Likewise.
7061 * lib/strchrnul.h: Likewise.
7062 * lib/strdup.h: Likewise.
7063 * lib/strndup.h: Likewise.
7064 * lib/strnlen.h: Likewise.
7065 * lib/strpbrk.h: Likewise.
7066 * lib/strsep.h: Likewise.
7067 * lib/strstr.h: Likewise.
7068 * lib/strtok_r.h: Likewise.
7069 * lib/string_.h: New file.
7070 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
7071 Rely on <string.h> instead.
7072 * lib/canon-host.c: Likewise.
7073 * lib/chdir-long.c: Likewise.
7074 * lib/concatpath.c: Likewise.
7075 * lib/exclude.c: Likewise.
7076 * lib/fchdir.c: Likewise.
7077 * lib/getaddrinfo.c: Likewise.
7078 * lib/getcwd.c: Likewise.
7079 * lib/getsubopt.c: Likewise.
7080 * lib/glob.c: Likewise.
7081 * lib/hard-locale.c: Likewise.
7082 * lib/iconvme.c: Likewise.
7083 * lib/javacomp.c: Likewise.
7084 * lib/mempcpy.c: Likewise.
7085 * lib/memrchr.c: Likewise.
7086 * lib/regex_internal.h: Likewise.
7087 * lib/stpncpy.c: Likewise.
7088 * lib/strcasecmp.c: Likewise.
7089 * lib/strchrnul.c: Likewise.
7090 * lib/strdup.c: Likewise.
7091 * lib/striconv.c: Likewise.
7092 * lib/striconveh.c: Likewise.
7093 * lib/striconveha.c: Likewise.
7094 * lib/strncasecmp.c: Likewise.
7095 * lib/strndup.c: Likewise.
7096 * lib/strnlen.c: Likewise.
7097 * lib/strsep.c: Likewise.
7098 * lib/strstr.c: Likewise.
7099 * lib/strtok_r.c: Likewise.
7100 * lib/userspec.c: Likewise.
7101 * lib/w32spawn.h: Likewise.
7102 * lib/xstrndup.c: Likewise.
7103 * lib/mountlist.c (strstr): Remove decl.
7104 * m4/string_h.m4: New file.
7105 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
7106 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
7107 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
7108 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
7109 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
7110 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
7111 Set REPLACE_STRCASECMP if necessary.
7112 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
7113 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
7114 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
7115 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
7116 HAVE_DECL_STRDUP if necessary.
7117 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
7118 since gl_FUNC_STRNDUP does that now.
7119 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
7120 Check for decl here...
7121 (gl_PREREQ_STRNLEN): ... not here.
7122 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
7123 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
7124 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
7125 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
7127 * modules/string: New file.
7128 * modules/memmem (Files): Remove special-purpose include file.
7129 (Depends-on): Add string.
7130 (Include): Include <string.h>, not the removed file.
7131 * modules/mempcpy: Likewise.
7132 * modules/memrchr: Likewise.
7133 * modules/stpcpy: Likewise.
7134 * modules/stpncpy: Likewise.
7135 * modules/strcase: Likewise.
7136 * modules/strchrnul: Likewise.
7137 * modules/strdup: Likewise.
7138 * modules/strndup: Likewise.
7139 * modules/strnlen: Likewise.
7140 * modules/strpbrk: Likewise.
7141 * modules/strsep: Likewise.
7142 * modules/strstr: Likewise.
7143 * modules/strtok_r: Likewise.
7144 * tests/test-dirname.c: Don't include "strdup.h", since
7145 <string.h> now suffices.
7146 * tests/test-memmem.c: Don't include "memmem.h", since
7147 <string.h> now suffices.
7149 2007-01-25 Bruno Haible <bruno@clisp.org>
7151 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
7154 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
7155 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
7156 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
7157 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
7159 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
7160 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
7161 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
7162 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
7163 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
7164 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
7166 2007-01-24 Bruno Haible <bruno@clisp.org>
7168 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
7169 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
7170 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
7171 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
7173 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
7174 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
7175 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
7176 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
7177 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
7178 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
7180 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
7182 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
7183 Reported by Ralf Wildenhues.
7185 2007-01-24 Bruno Haible <bruno@clisp.org>
7187 Drop AC_REQUIRE calls that are redundant with the module dependencies.
7188 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
7190 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
7191 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
7192 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
7194 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
7196 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
7197 Don't use 'exit'; just return from 'main'.
7198 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
7200 * lib/fnmatch_.h: Readjust white space and comments to match
7201 glibc, to avoid spurious diffs.
7203 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
7205 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
7206 2004-12-01 change by Jakub Jelinek, since this code won't compile
7207 if !LIBC. Problem reported by Bob Proulx.
7209 2007-01-23 Bruno Haible <bruno@clisp.org>
7211 * lib/striconveh.c: Include c-strcaseeq.h.
7212 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
7213 * modules/striconveh (Depends-on): Add c-strcaseeq.
7215 2007-01-23 Bruno Haible <bruno@clisp.org>
7217 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
7219 * modules/c-strcaseeq: New file.
7220 * lib/c-strcaseeq.h: New file.
7222 * modules/streq: New file.
7223 * lib/streq.h: New file.
7225 2007-01-23 Bruno Haible <bruno@clisp.org>
7227 * modules/striconveha-tests: New file.
7228 * tests/test-striconveha.c: New file.
7230 * lib/striconveha.h: Include <stdbool.h>.
7231 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
7232 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
7233 (mem_iconveha_notranslit): Renamed from mem_iconveha.
7234 (mem_iconveha): New function.
7235 (str_iconveha_notranslit): Renamed from str_iconveha.
7236 (str_iconveha): New function.
7237 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
7240 2007-01-23 Bruno Haible <bruno@clisp.org>
7242 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
7243 encodings without forgiving before trying any encoding with handler.
7244 (str_iconveha): Try all encodings without forgiving before trying any
7245 encoding with handler.
7247 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
7249 Import the following changes from libc.
7251 2005-10-14 Ulrich Drepper <drepper@redhat.com>
7253 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
7255 2004-12-01 Jakub Jelinek <jakub@redhat.com>
7257 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
7258 normal_bracket label.
7260 2004-09-01 Jakub Jelinek <jakub@redhat.com>
7263 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
7264 to normal_bracket after fetching the next character.
7266 2007-01-22 Bruno Haible <bruno@clisp.org>
7268 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
7270 * lib/striconveh.c (iconv_carefully_1): New function.
7271 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
7273 (str_cd_iconveh): Update.
7274 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
7275 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
7276 * tests/test-striconveh.c (MAGIC): New macro.
7277 (new_offsets): New function.
7278 (main): Test call with and without offsets.
7280 2007-01-22 Bruno Haible <bruno@clisp.org>
7282 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
7283 * modules/sys_select (Makefile.am): Likewise.
7284 * modules/sys_socket (Makefile.am): Likewise.
7285 * modules/sys_time (Makefile.am): Likewise.
7287 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
7289 * modules/gettimeofday (License): Change from GPL to LGPL, since
7290 gettimeofday is a library function.
7292 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
7294 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
7296 2007-01-21 Bruno Haible <bruno@clisp.org>
7298 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
7300 2007-01-21 Bruno Haible <bruno@clisp.org>
7302 * modules/striconveha: New file.
7303 * lib/striconveha.h: New file.
7304 * lib/striconveha.c: New file.
7305 * MODULES.html.sh (Internationalization functions): Add striconveha.
7306 * lib/striconv.c (str_iconv): Optimize the case of an empty input
7308 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
7310 2007-01-21 Bruno Haible <bruno@clisp.org>
7312 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
7313 * lib/striconveh.c (str_iconveh): Likewise.
7315 2007-01-21 Bruno Haible <bruno@clisp.org>
7317 * lib/striconveh.h (mem_iconveh): New declaration.
7318 * lib/striconveh.c (mem_iconveh): New function.
7319 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
7321 2007-01-21 Bruno Haible <bruno@clisp.org>
7323 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
7325 * lib/striconveh.h (mem_cd_iconveh): Change specification.
7326 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
7327 original result buffer.
7328 (str_cd_iconveh): Update.
7329 * tests/test-striconveh.c (main): Update.
7331 * lib/striconv.h (mem_cd_iconv): Change specification.
7332 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
7334 (str_cd_iconv): Update.
7335 * tests/test-striconv.c (main): Update.
7337 2007-01-21 Bruno Haible <bruno@clisp.org>
7339 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
7341 2007-01-20 Jim Meyering <jim@meyering.net>
7343 * lib/userspec.c (parse_with_separator): If a user or group string
7344 starts with "+", skip the corresponding name-to-ID look-up, since
7345 such a look-up must fail: user and group names may not include "+".
7347 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
7349 * lib/poll.c: Include sys/time.h and time.h unconditionally,
7350 since we now assume the sys_time module.
7351 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
7352 check for sys/time.h; no longer needed.
7353 * modules/poll (Depends-on): Depend on sys_time.
7355 2007-01-18 Bruno Haible <bruno@clisp.org>
7357 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
7358 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
7360 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
7363 * tests/test-gettimeofday.c: Include <time.h>.
7364 (dummy): Remove variable.
7366 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
7367 gl_HEADER_SYS_TIME_H.
7368 (gl_HEADER_SYS_TIME_H): New macro.
7370 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
7371 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
7372 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
7373 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
7374 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
7375 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
7376 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
7377 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
7378 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
7379 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
7380 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
7382 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
7383 last change; it caused a compilation error when cross-compiling to
7386 2007-01-18 Jim Meyering <jim@meyering.net>
7388 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
7389 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
7390 than the race-prone "test -d sys || mkdir sys".
7391 (configure.ac): Use AC_PROG_MKDIR_P.
7392 * modules/sys_select: Likewise.
7393 * modules/sys_socket: Likewise.
7394 * modules/sys_time: Likewise.
7396 2007-01-18 Eric Blake <ebb9@byu.net>
7398 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
7399 replace gettimeofday.
7400 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
7401 name, to avoid infinite recursion.
7403 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
7405 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
7407 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
7408 assume timespec.h defines struct timeval.
7409 * lib/settime.c: Likewise.
7410 * lib/utimens.c: Likewise.
7411 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
7412 since we now assume the gettimeofday module.
7413 * lib/tempname.c (__gen_tempname): Likewise.
7414 * lib/gettimeofday.h: Remove.
7415 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
7416 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
7417 Include <time.h>, for 'time()'.
7418 (localtime_buffer_addr): Also use this workaround if
7419 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
7420 to simplify the uses. All uses changed.
7421 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
7422 that #undef is inside {}, and 'const' follows type name consistently.
7423 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
7424 (gettimeofday): Do not use the maximum possible value for
7425 tv->tv_usec, since that might break usages other than ls.c.
7426 Instead, we'll leave ls.c alone. This undoes today's patch
7427 by Bruno. Add a compile-time warning for 1s-clock resolution;
7428 we've never observed the problem but might as well keep the
7430 * lib/nanosleep.c: Include timespec.h first, for interface check.
7431 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
7432 now assume the sys_time module.
7433 * lib/tempname.c: Likewise.
7434 * lib/timespec.h: Likewise.
7435 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
7437 * lib/strftime.c: Likewise.
7438 * lib/timespec.h: Likewise.
7439 * lib/posixtm.c: Include posixtm.h first, for interface check.
7440 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
7441 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
7442 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
7443 * lib/sys_time_.h: New file.
7444 * lib/timespec.h (struct timespec): Use long int, not long.
7445 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
7446 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
7447 Remove obsolescent call to AC_HEADER_TIME.
7448 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
7449 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7450 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
7451 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
7453 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
7454 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
7455 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
7456 into the sys_time module. Check for gettimeofday just once.
7457 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
7458 for gettimeofday signature to just check the signature. Merely
7459 compile it, since linking doesn't test signature. Improve test for
7460 whether gettimeofday.o is actually needed.
7461 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
7462 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
7463 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
7464 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
7465 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
7466 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
7467 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
7468 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
7469 than worrying about sys/time.h.
7470 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
7471 Don't bother worrying about TIME_WITH_SYS_TIME.
7472 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
7473 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
7474 * m4/sys_time_h.m4: New file.
7475 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
7476 Don't include sys/time.h. Return from main rather than exiting.
7477 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
7479 * modules/gethrxtime (Depends-on): Add sys_time.
7480 * modules/gettime (Depends-on): Likewise.
7481 * modules/gettimeofday (Depends-on): Likewise.
7482 * modules/nanosleep (Depends-on): Likewise.
7483 * modules/settime (Depends-on): Likewise.
7484 * modules/tempname (Depends-on): Likewise.
7485 * modules/utimens (Depends-on): Likewise.
7486 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
7487 (Include:) Change back to <sys/time.h>.
7488 (Maintainer:) Add self.
7489 * modules/sys_time: New file.
7490 * modules/tempname (Depends-on): Add gettimeofday.
7491 * tests/test-gettimeofday.c: Include <sys/time.h>
7492 rather than gettimeofday.h.
7494 2007-01-17 Bruno Haible <bruno@clisp.org>
7496 * gnulib-tool (func_get_license): Revert last patch. Instead, let
7497 the license default to GPL.
7498 (func_create_testdir): Don't complain if a module is LGPL and its
7499 tests module depends on GPLed modules.
7501 2007-01-17 Bruno Haible <bruno@clisp.org>
7503 * lib/gettimeofday.c (gettimeofday): Add code for the case
7504 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
7505 maximum possible value for tv->tv_usec, rather than the minimum one.
7507 2005-10-08 Martin Lambers <marlam@marlam.de>
7508 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
7509 2007-01-16 Bruno Haible <bruno@clisp.org>
7511 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
7512 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
7513 gl_FUNC_GETTIMEOFDAY.
7514 (Include): Add gettimeofday.h.
7515 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
7516 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
7517 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
7518 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
7519 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
7520 * lib/gettimeofday.h: New file.
7521 * lib/gettimeofday.c: Include <sys/timeb.h>.
7522 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
7523 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
7524 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
7525 fall back on time().
7527 * tests/test-gettimeofday.c: New file.
7528 * modules/gettimeofday-tests: New file.
7530 2007-01-16 Eric Blake <ebb9@byu.net>
7532 * modules/fnmatch (Depends-on): Depend on wchar.
7533 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
7534 * m4/fnmatch.m4: Likewise.
7535 * modules/mbchar (Makefile.am): Assume <wchar.h>.
7536 * m4/mbchar.m4: Likewise.
7537 * modules/mbswidth (Depends-on): Depend on wchar.
7538 * lib/mbswidth.c: Assume <wchar.h>.
7539 * m4/mbswidth.m4: Likewise.
7540 * modules/quotearg (Depends-on): Depend on wchar.
7541 * lib/quotearg.c: Assume <wchar.h>.
7542 * m4/quotearg.m4: Likewise.
7543 * modules/regex (Depends-on): Depend on wchar.
7544 * lib/regex_internal.h: Assume <wchar.h>.
7545 * m4/regex.m4: Likewise.
7546 * modules/stdint (Depends-on): Depend on wchar.
7547 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
7548 * m4/stdint.m4: Likewise.
7549 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
7550 * modules/strftime (Depends-on): Depend on wchar.
7551 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
7552 * modules/strtol (Depends-on): Depend on wchar.
7553 * lib/strtol.c: Assume <wchar.h>.
7554 * modules/wcwidth (Depends-on): Depend on wchar.
7555 * lib/wcwidth.h: Assume <wchar.h>.
7556 * m4/wcwidth.m4: Likewise.
7558 2007-01-16 Bruno Haible <bruno@clisp.org>
7560 * modules/csharpexec-script: New, created from...
7561 * modules/csharpexec: ... this.
7563 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
7565 * modules/javaexec-script: New, created from...
7566 * modules/javaexec: ... this.
7568 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
7570 * modules/poll (Dependencies): Add sys_select.
7572 2007-01-15 Jim Meyering <jim@meyering.net>
7574 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
7575 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
7576 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
7577 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
7579 2007-01-15 Bruno Haible <bruno@clisp.org>
7581 * modules/striconveh: New file.
7582 * lib/striconveh.h: New file.
7583 * lib/striconveh.c: New file.
7584 * MODULES.html.sh (Internationalization functions): Add striconveh.
7586 * modules/striconveh-tests: New file.
7587 * tests/test-striconveh.c: New file.
7589 2007-01-15 Bruno Haible <bruno@clisp.org>
7591 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
7592 not from GNU libiconv or GNU libc.
7594 2007-01-15 Bruno Haible <bruno@clisp.org>
7596 * doc/gnulib-intro.texi (Copyright): Explain the different license
7597 terms for module descriptions, autoconf macros, tests, documentation.
7599 2007-01-14 Bruno Haible <bruno@clisp.org>
7601 * modules/striconv-tests: New file.
7602 * tests/test-striconv.c: New file.
7604 2007-01-14 Bruno Haible <bruno@clisp.org>
7606 * modules/iconv-tests: New file.
7607 * tests/test-iconv.c: New file.
7609 2007-01-14 Bruno Haible <bruno@clisp.org>
7611 * gnulib-tool (func_get_license): For test modules, use the license of
7614 2007-01-14 Bruno Haible <bruno@clisp.org>
7616 * modules/iconv (Include): Clarify that <iconv.h> can only be included
7617 if iconv is found to exist.
7619 2007-01-14 Bruno Haible <bruno@clisp.org>
7621 * modules/c-ctype-tests: New file.
7622 * tests/test-c-ctype.c: New file.
7624 2007-01-14 Bruno Haible <bruno@clisp.org>
7626 * modules/binary-io-tests: New file.
7627 * tests/test-binary-io.sh: New file.
7628 * tests/test-binary-io.c: New file.
7630 2007-01-14 Bruno Haible <bruno@clisp.org>
7632 * modules/array-oset-tests: New file.
7633 * tests/test-array_oset.c: New file.
7635 2007-01-14 Bruno Haible <bruno@clisp.org>
7637 * modules/array-list-tests: New file.
7638 * tests/test-array_list.c: New file.
7640 2007-01-14 Bruno Haible <bruno@clisp.org>
7642 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
7644 Reported by Simon Josefsson in
7645 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
7647 2007-01-14 Bruno Haible <bruno@clisp.org>
7649 * modules/allocsa-tests: New file.
7650 * tests/test-allocsa.c: New file.
7652 2007-01-14 Bruno Haible <bruno@clisp.org>
7654 * modules/fchdir (Depends-on): Add absolute-header.
7655 * modules/unistd (Depends-on): Likewise.
7657 2006-12-30 Bruno Haible <bruno@clisp.org>
7659 * modules/fchdir: New file.
7660 * modules/unistd (Files): Add lib/unistd_.h.
7661 (Makefile.am): Generate unistd.h from unistd_.h.
7662 * lib/fchdir.c: New file.
7663 * lib/dirent_.h: New file.
7664 * lib/unistd_.h: New file.
7665 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
7666 * m4/fchdir.m4: New file.
7667 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
7668 (gl_HEADER_UNISTD): Invoke it.
7669 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
7671 * lib/backupfile.c (opendir, closedir): Undefine.
7672 * lib/chown.c (open, close): Undefine.
7673 * lib/clean-temp.c (open, close): Undefine.
7674 * lib/copy-file.c (open, close): Undefine.
7675 * lib/execute.c (open, close): Undefine.
7676 * lib/fsusage.c (open, close): Undefine.
7677 * lib/gc-gnulib.c (open, close): Undefine.
7678 * lib/getcwd.c (opendir, closedir): Undefine.
7679 * lib/glob.c (opendir, closedir): Undefine.
7680 * lib/javacomp.c (open, close): Undefine.
7681 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
7682 * lib/openat-proc.c (open, close): Undefine.
7683 * lib/pagealign_alloc.c (open, close): Undefine.
7684 * lib/pipe.c (open, close): Undefine.
7685 * lib/progreloc.c (open, close): Undefine.
7686 * lib/savedir.c (opendir, closedir): Undefine.
7687 * lib/utime.c (open, close): Undefine.
7688 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
7690 2007-01-10 Bruno Haible <bruno@clisp.org>
7692 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
7694 2007-01-12 Eric Blake <ebb9@byu.net>
7696 Provide a robust <wchar.h>. Further simplifications are now
7697 possible in other modules, but not included here.
7698 * modules/wchar: New module.
7699 * m4/wchar.m4: New file.
7700 * lib/wchar_.h: Likewise.
7701 * modules/mbchar (Depends-on): Depend on wchar, as the first use
7703 * MODULES.html.sh (Extended multibyte and wide character utilities):
7706 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
7708 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
7709 to a reasonable default for memory allocation.
7710 (xreadlink): Don't allocate a huge buffer, to work around a buggy
7711 file system that reports garbage st_size values for symlinks.
7712 Problem reported by Liyang Hu.
7714 2007-01-11 Simon Josefsson <simon@josefsson.org>
7716 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
7717 Emacs .#* auto-save files).
7719 2007-01-11 Bruno Haible <bruno@clisp.org>
7721 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
7724 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
7726 Use @...@ consistently in lib/wctype_.h.
7727 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
7728 on it being set to 1 or 0.
7729 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
7730 go back to AC_SUBSTing it.
7731 * modules/wctype (Makefile.am): Undo previous change.
7733 2007-01-10 Eric Blake <ebb9@byu.net>
7735 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
7736 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
7737 * modules/wctype (Makefile.am): Likewise.
7738 Reported by Chris McGuire.
7740 2007-01-10 Jim Meyering <jim@meyering.net>
7742 fts.c: a small readability/maintainability improvement
7743 * lib/fts.c (fts_read): Make this code slightly more readable and
7744 maintainable by hoisting the "sp->fts_cur = p" assignments to
7745 immediately follow the statements that set P. Derived from
7746 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
7748 2007-01-10 Eric Blake <ebb9@byu.net>
7750 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
7751 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
7752 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
7753 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
7754 Reported by Chris McGuire.
7756 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7758 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
7761 2007-01-09 Bruno Haible <bruno@clisp.org>
7763 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
7764 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
7766 (func_module): Use them.
7768 2007-01-09 Bruno Haible <bruno@clisp.org>
7770 * modules/unistr/base: New file.
7771 * lib/unistr.h: New file.
7773 * modules/unistr/u8-to-u16: New file.
7774 * lib/unistr/u8-to-u16.c: New file.
7776 * modules/unistr/u8-to-u32: New file.
7777 * lib/unistr/u8-to-u32.c: New file.
7779 * modules/unistr/u16-to-u8: New file.
7780 * lib/unistr/u16-to-u8.c: New file.
7782 * modules/unistr/u16-to-u32: New file.
7783 * lib/unistr/u16-to-u32.c: New file.
7785 * modules/unistr/u32-to-u8: New file.
7786 * lib/unistr/u32-to-u8.c: New file.
7788 * modules/unistr/u32-to-u16: New file.
7789 * lib/unistr/u32-to-u16.c: New file.
7791 * modules/unistr/u8-check: New file.
7792 * modules/unistr/u16-check: New file.
7793 * modules/unistr/u32-check: New file.
7794 * lib/unistr/u8-check.c: New file.
7795 * lib/unistr/u16-check.c: New file.
7796 * lib/unistr/u32-check.c: New file.
7798 * modules/unistr/u8-chr: New file.
7799 * modules/unistr/u16-chr: New file.
7800 * modules/unistr/u32-chr: New file.
7801 * lib/unistr/u8-chr.c: New file.
7802 * lib/unistr/u16-chr.c: New file.
7803 * lib/unistr/u32-chr.c: New file.
7805 * modules/unistr/u8-cmp: New file.
7806 * modules/unistr/u16-cmp: New file.
7807 * modules/unistr/u32-cmp: New file.
7808 * lib/unistr/u8-cmp.c: New file.
7809 * lib/unistr/u16-cmp.c: New file.
7810 * lib/unistr/u32-cmp.c: New file.
7812 * modules/unistr/u8-cpy: New file.
7813 * modules/unistr/u16-cpy: New file.
7814 * modules/unistr/u32-cpy: New file.
7815 * lib/unistr/u8-cpy.c: New file.
7816 * lib/unistr/u16-cpy.c: New file.
7817 * lib/unistr/u32-cpy.c: New file.
7818 * lib/unistr/u-cpy.h: New file.
7820 * modules/unistr/u8-cpy-alloc: New file.
7821 * modules/unistr/u16-cpy-alloc: New file.
7822 * modules/unistr/u32-cpy-alloc: New file.
7823 * lib/unistr/u8-cpy-alloc.c: New file.
7824 * lib/unistr/u16-cpy-alloc.c: New file.
7825 * lib/unistr/u32-cpy-alloc.c: New file.
7826 * lib/unistr/u-cpy-alloc.h: New file.
7828 * modules/unistr/u8-endswith: New file.
7829 * modules/unistr/u16-endswith: New file.
7830 * modules/unistr/u32-endswith: New file.
7831 * lib/unistr/u8-endswith.c: New file.
7832 * lib/unistr/u16-endswith.c: New file.
7833 * lib/unistr/u32-endswith.c: New file.
7834 * lib/unistr/u-endswith.h: New file.
7836 * modules/unistr/u8-mblen: New file.
7837 * modules/unistr/u16-mblen: New file.
7838 * modules/unistr/u32-mblen: New file.
7839 * lib/unistr/u8-mblen.c: New file.
7840 * lib/unistr/u16-mblen.c: New file.
7841 * lib/unistr/u32-mblen.c: New file.
7843 * modules/unistr/u8-mbtouc: New file.
7844 * modules/unistr/u16-mbtouc: New file.
7845 * modules/unistr/u32-mbtouc: New file.
7846 * lib/unistr/u8-mbtouc.c: New file.
7847 * lib/unistr/u16-mbtouc.c: New file.
7848 * lib/unistr/u32-mbtouc.c: New file.
7850 * modules/unistr/u8-mbtouc-safe: New file.
7851 * modules/unistr/u16-mbtouc-safe: New file.
7852 * modules/unistr/u32-mbtouc-safe: New file.
7853 * lib/unistr/u8-mbtouc-safe.c: New file.
7854 * lib/unistr/u16-mbtouc-safe.c: New file.
7855 * lib/unistr/u32-mbtouc-safe.c: New file.
7857 * modules/unistr/u8-move: New file.
7858 * modules/unistr/u16-move: New file.
7859 * modules/unistr/u32-move: New file.
7860 * lib/unistr/u8-move.c: New file.
7861 * lib/unistr/u16-move.c: New file.
7862 * lib/unistr/u32-move.c: New file.
7863 * lib/unistr/u-move.h: New file.
7865 * modules/unistr/u8-next: New file.
7866 * modules/unistr/u16-next: New file.
7867 * modules/unistr/u32-next: New file.
7868 * lib/unistr/u8-next.c: New file.
7869 * lib/unistr/u16-next.c: New file.
7870 * lib/unistr/u32-next.c: New file.
7872 * modules/unistr/u8-prev: New file.
7873 * modules/unistr/u16-prev: New file.
7874 * modules/unistr/u32-prev: New file.
7875 * lib/unistr/u8-prev.c: New file.
7876 * lib/unistr/u16-prev.c: New file.
7877 * lib/unistr/u32-prev.c: New file.
7879 * modules/unistr/u8-set: New file.
7880 * modules/unistr/u16-set: New file.
7881 * modules/unistr/u32-set: New file.
7882 * lib/unistr/u8-set.c: New file.
7883 * lib/unistr/u16-set.c: New file.
7884 * lib/unistr/u32-set.c: New file.
7885 * lib/unistr/u-set.h: New file.
7887 * modules/unistr/u8-startswith: New file.
7888 * modules/unistr/u16-startswith: New file.
7889 * modules/unistr/u32-startswith: New file.
7890 * lib/unistr/u8-startswith.c: New file.
7891 * lib/unistr/u16-startswith.c: New file.
7892 * lib/unistr/u32-startswith.c: New file.
7893 * lib/unistr/u-startswith.h: New file.
7895 * modules/unistr/u8-stpcpy: New file.
7896 * modules/unistr/u16-stpcpy: New file.
7897 * modules/unistr/u32-stpcpy: New file.
7898 * lib/unistr/u8-stpcpy.c: New file.
7899 * lib/unistr/u16-stpcpy.c: New file.
7900 * lib/unistr/u32-stpcpy.c: New file.
7901 * lib/unistr/u-stpcpy.h: New file.
7903 * modules/unistr/u8-stpncpy: New file.
7904 * modules/unistr/u16-stpncpy: New file.
7905 * modules/unistr/u32-stpncpy: New file.
7906 * lib/unistr/u8-stpncpy.c: New file.
7907 * lib/unistr/u16-stpncpy.c: New file.
7908 * lib/unistr/u32-stpncpy.c: New file.
7909 * lib/unistr/u-stpncpy.h: New file.
7911 * modules/unistr/u8-strcat: New file.
7912 * modules/unistr/u16-strcat: New file.
7913 * modules/unistr/u32-strcat: New file.
7914 * lib/unistr/u8-strcat.c: New file.
7915 * lib/unistr/u16-strcat.c: New file.
7916 * lib/unistr/u32-strcat.c: New file.
7917 * lib/unistr/u-strcat.h: New file.
7919 * modules/unistr/u8-strchr: New file.
7920 * modules/unistr/u16-strchr: New file.
7921 * modules/unistr/u32-strchr: New file.
7922 * lib/unistr/u8-strchr.c: New file.
7923 * lib/unistr/u16-strchr.c: New file.
7924 * lib/unistr/u32-strchr.c: New file.
7926 * modules/unistr/u8-strcmp: New file.
7927 * modules/unistr/u16-strcmp: New file.
7928 * modules/unistr/u32-strcmp: New file.
7929 * lib/unistr/u8-strcmp.c: New file.
7930 * lib/unistr/u16-strcmp.c: New file.
7931 * lib/unistr/u32-strcmp.c: New file.
7933 * modules/unistr/u8-strcpy: New file.
7934 * modules/unistr/u16-strcpy: New file.
7935 * modules/unistr/u32-strcpy: New file.
7936 * lib/unistr/u8-strcpy.c: New file.
7937 * lib/unistr/u16-strcpy.c: New file.
7938 * lib/unistr/u32-strcpy.c: New file.
7939 * lib/unistr/u-strcpy.h: New file.
7941 * modules/unistr/u8-strcspn: New file.
7942 * modules/unistr/u16-strcspn: New file.
7943 * modules/unistr/u32-strcspn: New file.
7944 * lib/unistr/u8-strcspn.c: New file.
7945 * lib/unistr/u16-strcspn.c: New file.
7946 * lib/unistr/u32-strcspn.c: New file.
7947 * lib/unistr/u-strcspn.h: New file.
7949 * modules/unistr/u8-strdup: New file.
7950 * modules/unistr/u16-strdup: New file.
7951 * modules/unistr/u32-strdup: New file.
7952 * lib/unistr/u8-strdup.c: New file.
7953 * lib/unistr/u16-strdup.c: New file.
7954 * lib/unistr/u32-strdup.c: New file.
7955 * lib/unistr/u-strdup.h: New file.
7957 * modules/unistr/u8-strlen: New file.
7958 * modules/unistr/u16-strlen: New file.
7959 * modules/unistr/u32-strlen: New file.
7960 * lib/unistr/u8-strlen.c: New file.
7961 * lib/unistr/u16-strlen.c: New file.
7962 * lib/unistr/u32-strlen.c: New file.
7963 * lib/unistr/u-strlen.h: New file.
7965 * modules/unistr/u8-strmblen: New file.
7966 * modules/unistr/u16-strmblen: New file.
7967 * modules/unistr/u32-strmblen: New file.
7968 * lib/unistr/u8-strmblen.c: New file.
7969 * lib/unistr/u16-strmblen.c: New file.
7970 * lib/unistr/u32-strmblen.c: New file.
7972 * modules/unistr/u8-strmbtouc: New file.
7973 * modules/unistr/u16-strmbtouc: New file.
7974 * modules/unistr/u32-strmbtouc: New file.
7975 * lib/unistr/u8-strmbtouc.c: New file.
7976 * lib/unistr/u16-strmbtouc.c: New file.
7977 * lib/unistr/u32-strmbtouc.c: New file.
7979 * modules/unistr/u8-strncat: New file.
7980 * modules/unistr/u16-strncat: New file.
7981 * modules/unistr/u32-strncat: New file.
7982 * lib/unistr/u8-strncat.c: New file.
7983 * lib/unistr/u16-strncat.c: New file.
7984 * lib/unistr/u32-strncat.c: New file.
7985 * lib/unistr/u-strncat.h: New file.
7987 * modules/unistr/u8-strncmp: New file.
7988 * modules/unistr/u16-strncmp: New file.
7989 * modules/unistr/u32-strncmp: New file.
7990 * lib/unistr/u8-strncmp.c: New file.
7991 * lib/unistr/u16-strncmp.c: New file.
7992 * lib/unistr/u32-strncmp.c: New file.
7994 * modules/unistr/u8-strncpy: New file.
7995 * modules/unistr/u16-strncpy: New file.
7996 * modules/unistr/u32-strncpy: New file.
7997 * lib/unistr/u8-strncpy.c: New file.
7998 * lib/unistr/u16-strncpy.c: New file.
7999 * lib/unistr/u32-strncpy.c: New file.
8000 * lib/unistr/u-strncpy.h: New file.
8002 * modules/unistr/u8-strnlen: New file.
8003 * modules/unistr/u16-strnlen: New file.
8004 * modules/unistr/u32-strnlen: New file.
8005 * lib/unistr/u8-strnlen.c: New file.
8006 * lib/unistr/u16-strnlen.c: New file.
8007 * lib/unistr/u32-strnlen.c: New file.
8008 * lib/unistr/u-strnlen.h: New file.
8010 * modules/unistr/u8-strpbrk: New file.
8011 * modules/unistr/u16-strpbrk: New file.
8012 * modules/unistr/u32-strpbrk: New file.
8013 * lib/unistr/u8-strpbrk.c: New file.
8014 * lib/unistr/u16-strpbrk.c: New file.
8015 * lib/unistr/u32-strpbrk.c: New file.
8016 * lib/unistr/u-strpbrk.h: New file.
8018 * modules/unistr/u8-strrchr: New file.
8019 * modules/unistr/u16-strrchr: New file.
8020 * modules/unistr/u32-strrchr: New file.
8021 * lib/unistr/u8-strrchr.c: New file.
8022 * lib/unistr/u16-strrchr.c: New file.
8023 * lib/unistr/u32-strrchr.c: New file.
8025 * modules/unistr/u8-strspn: New file.
8026 * modules/unistr/u16-strspn: New file.
8027 * modules/unistr/u32-strspn: New file.
8028 * lib/unistr/u8-strspn.c: New file.
8029 * lib/unistr/u16-strspn.c: New file.
8030 * lib/unistr/u32-strspn.c: New file.
8031 * lib/unistr/u-strspn.h: New file.
8033 * modules/unistr/u8-strstr: New file.
8034 * modules/unistr/u16-strstr: New file.
8035 * modules/unistr/u32-strstr: New file.
8036 * lib/unistr/u8-strstr.c: New file.
8037 * lib/unistr/u16-strstr.c: New file.
8038 * lib/unistr/u32-strstr.c: New file.
8039 * lib/unistr/u-strstr.h: New file.
8041 * modules/unistr/u8-strtok: New file.
8042 * modules/unistr/u16-strtok: New file.
8043 * modules/unistr/u32-strtok: New file.
8044 * lib/unistr/u8-strtok.c: New file.
8045 * lib/unistr/u16-strtok.c: New file.
8046 * lib/unistr/u32-strtok.c: New file.
8047 * lib/unistr/u-strtok.h: New file.
8049 * modules/unistr/u8-uctomb: New file.
8050 * modules/unistr/u16-uctomb: New file.
8051 * modules/unistr/u32-uctomb: New file.
8052 * lib/unistr/u8-uctomb.c: New file.
8053 * lib/unistr/u16-uctomb.c: New file.
8054 * lib/unistr/u32-uctomb.c: New file.
8056 * MODULES.html.sh (Unicode string functions): Add the new modules.
8058 2007-01-08 Bruno Haible <bruno@clisp.org>
8060 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
8061 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
8064 2007-01-08 Karl Berry <karl@gnu.org>
8066 * doc/error.texi: mention that main() fns must set program_name
8067 when progname is used.
8069 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
8071 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
8072 WCTYPE_H is empty, for the benefit of builds from non-distclean
8073 directories. Problem reported by Eric Blake in
8074 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
8076 2007-01-08 Bruno Haible <bruno@clisp.org>
8078 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
8079 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
8080 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
8081 PROVIDE_CANONICALIZE_FILENAME_MODE.
8082 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
8084 2007-01-08 Bruno Haible <bruno@clisp.org>
8086 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
8087 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
8088 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
8089 * lib/fts.c: Likewise.
8090 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
8092 2006-12-25 Bruno Haible <bruno@clisp.org>
8094 * modules/utf8-ucs4-safe: New file.
8095 * lib/utf8-ucs4-safe.h: New file.
8096 * lib/unistr/utf8-ucs4-safe.c: New file.
8098 * modules/utf16-ucs4-safe: New file.
8099 * lib/utf16-ucs4-safe.h: New file.
8100 * lib/unistr/utf16-ucs4-safe.c: New file.
8102 * MODULES.html.sh (Unicode string functions): Add the new modules.
8104 2007-01-08 Bruno Haible <bruno@clisp.org>
8106 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
8107 (Depends-on): Add unitypes.
8108 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
8109 (u8_mbtouc_aux): Move out to separate file.
8110 (u8_mbtouc): Use ucs4_t, uint8_t types.
8111 * lib/unistr/utf8-ucs4.c: New file.
8113 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
8114 (Depends-on): Add unitypes.
8115 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
8116 (u16_mbtouc_aux): Move out to separate file.
8117 (u16_mbtouc): Use ucs4_t, uint16_t types.
8118 * lib/unistr/utf16-ucs4.c: New file.
8120 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
8121 (Depends-on): Add unitypes.
8122 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
8123 (u8_uctomb_aux): Move out to separate file.
8124 (u8_uctomb): Use ucs4_t, uint8_t types.
8125 * lib/unistr/ucs4-utf8.c: New file.
8127 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
8128 (Depends-on): Add unitypes.
8129 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
8130 (u16_uctomb_aux): Move out to separate file.
8131 (u16_uctomb): Use ucs4_t, uint16_t types.
8132 * lib/unistr/ucs4-utf16.c: New file.
8134 2006-12-25 Bruno Haible <bruno@clisp.org>
8136 * modules/unitypes: New file.
8137 * lib/unitypes.h: New file.
8138 * MODULES.html.sh (func_all_modules): New section "Unicode string
8139 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
8140 this section. Add unitypes.
8142 2007-01-08 Bruno Haible <bruno@clisp.org>
8144 Avoid variable names that conflict with those from libtool.
8145 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
8146 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
8147 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
8148 library_names_spec to acl_library_names_spec, hardcode_* to
8150 Reported by Ralf Wildenhues.
8152 2007-01-08 Bruno Haible <bruno@clisp.org>
8154 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
8156 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
8158 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
8159 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
8161 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
8163 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
8164 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
8165 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
8166 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
8168 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
8170 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
8171 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
8173 * lib/gc-libgcrypt.c: Likewise.
8174 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
8175 * modules/gc-arctwo (configure.ac): Likewise.
8176 * modules/gc-des (configure.ac): Likewise.
8177 * modules/gc-hmac-md5 (configure.ac): Likewise.
8178 * modules/gc-hmac-sha1 (configure.ac): Likewise.
8179 * modules/gc-md2 (configure.ac): Likewise.
8180 * modules/gc-md4 (configure.ac): Likewise.
8181 * modules/gc-md5 (configure.ac): Likewise.
8182 * modules/gc-random (configure.ac): Likewise.
8183 * modules/gc-rijndael (configure.ac): Likewise.
8184 * modules/gc-sha1 (configure.ac): Likewise.
8186 2007-01-08 Bruno Haible <bruno@clisp.org>
8188 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
8190 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
8192 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
8194 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
8195 * modules/fcntl-safer (configure.ac): Likewise.
8196 * modules/fopen-safer (configure.ac): Likewise.
8197 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
8198 GNULIB_FWRITEERROR macro definition.
8200 2007-01-08 Bruno Haible <bruno@clisp.org>
8202 * m4/gnulib-common.m4: New file.
8203 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
8204 (func_get_filelist): Add m4/gnulib-common.m4.
8206 2007-01-08 Bruno Haible <bruno@clisp.org>
8208 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
8211 2007-01-08 Jim Meyering <jim@meyering.net>
8213 Use a more robust test for a "can't happen" condition.
8214 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
8215 narrowed the st_size value. Presuming the "can't happen" condition
8216 is true, that narrowing could conceivably convert an invalid st_size
8217 value into a valid one. Instead, use a change based on Matthew
8218 Woehlke's original patch.
8220 Slight readability improvement: use an assert-like macro
8221 in place of literal "abort ()" uses.
8222 * lib/fts.c (fts_assert): Define.
8223 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
8224 Use this macro instead of a bare 'abort'.
8226 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
8228 Don't worry about using IRIX 5.3's wctype.h broken definitions;
8229 simply work around them.
8230 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
8231 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
8232 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
8234 Don't bother to define as macros, since the standard doesn't require it.
8235 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
8236 longer worry about IRIX 5.3.
8237 (HAVE_WCTYPE_CTMP_BUG): Remove.
8239 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
8241 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
8242 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
8243 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
8244 Problems reported by Georg Schwarz for IRIX 5.3.
8246 * gnulib-tool (autoconf_minversion): Take the maximum version number
8247 found, not the minimum. Problem reported by James Youngman.
8249 2007-01-03 Karl Berry <karl@gnu.org>
8251 * doc/error.texi: new file, explaining interaction with progname.
8252 * doc/gnulib.texi: include it. Update copyright.
8254 2007-01-03 Simon Josefsson <simon@josefsson.org>
8256 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
8257 AC_CANONICAL_HOST, to improve autobuild outputs.
8259 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
8260 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
8262 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
8263 sockets, server sockets, and other file descriptors. Count errors
8264 to compute the return value. Reorder the code a bit to be easier
8265 to follow. Don't set event bits that were not requested (except
8266 POLLERR and POLLHUP).
8268 2007-01-01 Bruno Haible <bruno@clisp.org>
8270 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
8272 2007-01-03 Jim Meyering <jim@meyering.net>
8274 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
8276 2007-01-02 Bruno Haible <bruno@clisp.org>
8278 * modules/settime (Include): Require timespec.h.
8279 * modules/nanosleep (Include): Likewise.
8281 2007-01-01 Bruno Haible <bruno@clisp.org>
8283 * gnulib-tool (func_emit_copyright_notice): Bump year.
8284 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
8286 2007-01-01 Bruno Haible <bruno@clisp.org>
8288 Improve support for OpenBSD.
8289 * build-aux/config.rpath (libname_spec): Export.
8290 (library_names_spec): New variable. Export.
8291 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
8292 library_names_spec from the config.rpath output. Locate shared library
8293 through the name pattern in library_names_spec.
8295 2007-01-01 Eric Blake <ebb9@byu.net>
8297 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
8299 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
8301 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
8302 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
8303 assume the C locale, and avoid an "eval" that could cause trouble.
8304 Problem with SORT reported by Bob Proulx.
8306 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
8307 Define. Trivial patch from Henning Nielsen Lund, originally
8308 sent to bug-grep@gnu.org today.
8310 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
8312 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
8313 struct stat. Problem reported by Henning Nielsen Lund.
8314 * lib/acl.c: Include acl.h first, to check interface. Don't
8315 bother to include sys/types.h and sys/stat.h again.
8317 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
8319 Import the following change from libc; problem reported by
8322 2005-10-13 Ulrich Drepper <drepper@redhat.com>
8325 * lib/argp.h: Remove __NTH for __argp_usage inline function.
8327 2006-12-28 Jim Meyering <jim@meyering.net>
8329 * build-aux/announce-gen: Do not assume that the package
8330 builds any of tar.gz, tar.bz2, and .xdelta files.
8331 Suggestion from Simon Josefsson.
8333 2006-12-28 Simon Josefsson <simon@josefsson.org>
8335 * modules/announce-gen: New file.
8337 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
8339 * lib/mbchar.h: Just include <wctype.h>; the wctype module
8340 handles its gotchas now.
8341 * lib/mbswidth.c: Likewise.
8342 * lib/wcwidth.h: Likewise.
8343 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
8344 and iswcntrl; the wctype module does this stuff now.
8345 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
8346 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8347 * modules/mbchar (Depends-on): Add wctype.
8348 * modules/mbswidth (Depends-on): Likewise.
8349 * modules/wcwidth (Depends-on): Likewise.
8351 2006-12-27 Eric Blake <ebb9@byu.net>
8353 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
8354 module uses more than what <wctype.h> is required to provide.
8356 2006-12-26 Eric Blake <ebb9@byu.net>
8358 * gnulib-tool (sed_extract_prog): Avoid space-tab.
8360 2006-12-26 Eric Blake <ebb9@byu.net>
8362 * modules/absolute-header: New module.
8363 * modules/fcntl (Depends-on): Depend on it.
8364 * modules/inttypes (Depends-on): Likewise.
8365 * modules/stdint (Depends-on): Likewise.
8366 * modules/sys_stat (Depends-on): Likewise.
8367 * modules/wctype (Depends-on): Likewise.
8368 * MODULES.html.sh (Support for building libraries and
8369 executables): Document it.
8371 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
8373 * gnulib-tool (SED): Remove, undoing previous change.
8374 The problem was that it broke coreutils on Solaris, because
8375 "sed --posix" leaked into a makefile.
8376 (sed): New alias, if 'alias' and GNU sed.
8378 2006-12-24 Jim Meyering <jim@meyering.net>
8380 Work around an fchownat bug in glibc-2.4:
8381 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
8382 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
8383 in spite of the -P option.
8384 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
8386 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
8387 * modules/openat (Files): Add lib/fchownat.c.
8388 * lib/openat.c (fchownat): Don't define here. Move to...
8389 * lib/fchownat.c: ...this new file.
8391 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
8393 Fix bug reported by Bruno Haible in
8394 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
8395 where quotearg.c didn't compile on Mac OS X 10.2 because it
8396 lacks <wchar.h> and wint_t.
8397 * lib/wctype_.h (__wctype_wint_t): New type.
8398 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
8399 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
8400 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
8401 Arg is now of type __wctype_wint_t, not wint_t.
8402 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
8403 substitute HAVE_WINT_T.
8404 * modules/wctype (Files): Add m4/wint_t.m4.
8405 (wctype.h): Substitute HAVE_WINT_T.
8407 2006-12-23 Bruno Haible <bruno@clisp.org>
8409 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
8411 2006-12-23 Bruno Haible <bruno@clisp.org>
8413 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
8415 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
8418 2006-12-22 Bruno Haible <bruno@clisp.org>
8420 * lib/copy-file.c: Include acl.h.
8421 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
8422 Close the file descriptors only after being done with copy_acl.
8423 * modules/copy-file (Depends-on): Add acl.
8425 2006-12-22 Bruno Haible <bruno@clisp.org>
8427 * gnulib-tool (SED): New variable.
8428 Use $SED instead of sed everywhere.
8430 2006-12-22 Bruno Haible <bruno@clisp.org>
8432 * modules/no-c++: New file.
8433 * m4/no-c++.m4: New file.
8434 * MODULES.html.sh (Support for building libraries and executables):
8437 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
8439 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
8440 Include <limits.h>, and use its INT_MAX to rewrite the
8441 j loop so that it does not overflow 'int'. Problem reported by
8443 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
8444 Play it safe by shifting left by 1 rather than multiplying by 2,
8445 as GCC is less likely to optimize this away when the value
8446 is signed (when it assumes overflow leads to undefined behavior).
8447 Also, don't assume time_t uses two's complement.
8449 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
8451 * MODULES.html.sh: New module wctype.
8452 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
8453 * lib/fnmatch.c: Don't bother to include <wchar.h> before
8454 <wctype.h>, since the new wctype module should fix this.
8455 * lib/quotearg.c: Include <wctype.h> unconditionally, since
8456 the wctype module should arrange for it.
8457 * lib/regex_internal.h: Likewise.
8458 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
8459 since the wctype module should handle this now.
8460 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
8461 * modules/fnmatch (Depends-on): Add wctype.
8462 * modules/quotearg (Depends-on): Likewise.
8463 * modules/regex (Depends-on): Likewise.
8465 2006-12-19 Bruno Haible <bruno@clisp.org>
8467 * lib/strdup.h [C++]: Wrap definitions in extern "C".
8468 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
8470 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8472 * modules/savewd (Depends-on): Fix dependency on fcntl.
8474 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
8476 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
8477 conforms to C99, rather than relying on the user's environment
8478 setting of STDINT_H.
8480 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
8481 and Eric Blake <ebb9@byu.net>
8483 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
8484 This is more consistent with the other defines here.
8485 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
8486 Port to z/OS. Problem reported by Paul Gilmartin.
8487 Change local vars to use gl_ prefix rather than ac_.
8488 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
8490 * modules/double-slash-root: New module.
8491 * modules/dirname (Files): Remove m4/double-slash-root.m4.
8492 (Depends-on): Add double-slash-root.
8493 * MODULES.html.sh (File system functions): Mention new module.
8495 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
8497 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
8498 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
8499 This is for the benefit of gzip, which doesn't do i18n.
8501 2006-12-12 Jim Meyering <jim@meyering.net>
8503 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
8504 Reported by Andreas Schwab <schwab@suse.de>.
8506 2006-12-12 Bruno Haible <bruno@clisp.org>
8508 Merge these changes.
8509 2006-09-05 Bruno Haible <bruno@clisp.org>
8510 * lib/iconvme.c (iconv_string): No need to save and restore errno when
8511 iconv_alloc succeeded.
8512 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
8513 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
8514 test for " && dest " at the end - dest is always != NULL there. Call
8515 iconv with 4xNULL arguments initially, to reset the state. Call iconv
8516 with 2xNULL arguments, also to flush the state storage. Handle the
8517 IRIX iconv behaviour. Realloc the final result, to throw away unused
8520 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
8522 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
8523 and fchmodat unconditionally, since glibc 2.4 has them.
8524 Problem reported by Arkadiusz Miskiewicz.
8526 2006-12-10 Bruno Haible <bruno@clisp.org>
8528 * gnulib-tool (func_import): Show the include files only for those
8529 modules that are copied and specified.
8530 Reported by Karl Berry.
8532 2006-12-08 Jim Meyering <jim@meyering.net>
8534 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
8535 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
8537 * build-aux/announce-gen: Add two new options, both optional:
8538 --bootstrap-tools=TOOL_LIST
8539 a comma-separated list of tools, e.g.,
8540 autoconf,automake,bison,gnulib
8541 --gnulib-snapshot-date=DATE
8542 if gnulib is in the bootstrap tool list,
8543 then report this as the snapshot date.
8544 If not specified, use the current date/time.
8545 If you specify a date here, be sure it's UTC.
8547 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8549 * tests/test-argp-2.sh: Fix test to match actual output.
8550 (func_compare): Fix sed script to be portable.
8552 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
8554 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
8555 workaround for this case. It is not autoconfigured now; offhand
8556 it's hard to see how to autoconfigure it.
8558 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
8560 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
8561 a directory that is about to be chowned. Such a directory's
8562 initial file permissions should permit the owner only and this
8563 should not be changed until after the chown, since the group and
8564 other bits would be incorrect if they granted permission before
8567 Fix porting problem for iswctype reported by Georg Schwarz in:
8568 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
8569 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
8570 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
8571 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
8572 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
8574 2006-12-03 Jim Meyering <jim@meyering.net>
8576 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
8577 p->fts_statp may not yet be defined.
8578 (fts_read): Instead, set it in the caller, once p->fts_statp is
8579 sure to be defined, and corresponds to a top-level directory.
8580 This bug made du -x fail. Here's the coreutils test case:
8581 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
8582 Reported by Mike Frysinger.
8584 2006-12-01 Jim Meyering <jim@meyering.net>
8586 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
8587 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
8588 Reported by Simon Josefsson.
8590 2006-11-30 Jim Meyering <jim@meyering.net>
8592 * m4/warning.m4: Use the all-permissive copyright notice
8593 recommended by RMS (rather than LGPL).
8594 * m4/vararrays.m4: Likewise.
8595 * m4/flexmember.m4: Likewise.
8597 2006-11-29 Bruno Haible <bruno@clisp.org>
8599 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
8600 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
8602 Reported by Simon Josefsson <simon@josefsson.org>.
8604 2006-11-28 James Youngman <jay@gnu.org>
8606 * README: Advise users that they might find the bug-gnulib@gnu.org
8607 and autotools-announce@gnu.org mailing lists useful.
8609 2006-11-28 Bruno Haible <bruno@clisp.org>
8611 * m4/ptrdiff_max.m4: Remove file.
8613 2006-11-21 Bruno Haible <bruno@clisp.org>
8615 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
8617 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
8618 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
8620 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
8621 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
8623 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
8625 2006-11-28 Jim Meyering <jim@meyering.net>
8627 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
8628 warning from "gcc -Wshadow" about shadowing the builtin.
8630 2006-11-27 Bruno Haible <bruno@clisp.org>
8632 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
8634 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
8636 2006-11-27 Bruno Haible <bruno@clisp.org>
8637 Paul Eggert <eggert@cs.ucla.edu>
8639 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
8641 2006-11-26 Bruno Haible <bruno@clisp.org>
8643 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
8646 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
8647 Bruno Haible <bruno@clisp.org>
8649 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
8650 if compiling with "gcc -ansi".
8652 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
8654 Fix some incompatibilities with gcc -ansi -pedantic.
8655 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
8656 if compiling pedantically with GCC, unless it's C99 or later.
8657 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
8658 it mishandles gcc -ansi -pedantic as well.
8659 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
8661 * lib/regexec.c (check_node_accept_bytes): Don't use auto
8662 initializers for struct if -pedantic, unless it's C99 or later.
8664 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
8666 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
8667 Don't close an fd more than once. Identical atimes indicate
8668 success, not failure.
8670 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
8672 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
8674 2006-11-23 Jim Meyering <jim@meyering.net>
8676 * build-aux/announce-gen: New file. From coreutils.
8678 2006-11-22 Jim Meyering <jim@meyering.net>
8680 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
8681 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
8682 (fts_read): Use a temporary to narrow the overused st_size member
8683 before using it in a switch statement. Reported by Matthew Woehlke.
8685 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
8686 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
8688 2006-11-20 Bruno Haible <bruno@clisp.org>
8690 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
8691 changequote instead of pairs of brackets.
8692 Reported by Andreas Schwab <schwab@suse.de>.
8694 2006-11-21 Jim Meyering <jim@meyering.net>
8696 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
8697 so as to remain compatible with older compilers.
8698 Patch from Michael Deutschmann.
8700 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
8702 * MODULES.html.sh (File system functions): Add openat.
8704 * lib/openat.h (rpl_fstatat): New macro, if
8705 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
8706 (fstatat): Define to rpl_fstatat under the same conditions,
8707 unless COMPILING_FSTATAT.
8708 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
8709 seems to have the bug.
8710 * lib/fstatat.c: New file.
8711 * modules/openat (Files): Add it.
8713 2006-11-20 Bruno Haible <bruno@clisp.org>
8715 * Makefile: New file.
8717 2006-11-20 Jim Meyering <jim@meyering.net>
8719 The beginnings of syntax-related checks for gnulib.
8720 * lib/Makefile: New file.
8721 * lib/t-idcache: New script. Ensure that the two halves of
8722 idcache.c stay in sync.
8724 * lib/idcache.c: Adjust comments in user- and group- portions to
8725 be more accurate, and to be consistent with one another.
8727 2006-11-20 Jim Meyering <jim@meyering.net>
8729 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
8730 continue using the flexible array member (thus, this module performs
8731 half as many malloc calls), with the addition that...
8732 (getgroup, getuser): Consistently record a non-match via an empty
8733 "name" string, and map an empty string match to a NULL return value.
8734 * modules/idcache (Depends-on): Re-add flexmember.
8736 * lib/idcache.c (getuser): Remove all uses of the register keyword.
8737 (getuidbyname, getgroup, getgidbyname): Likewise.
8739 Use cleaner syntax: NULL rather than 0.
8740 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
8742 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
8744 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
8745 It mishandled the case where the group was missing.
8746 Problem reported by Greg Schafer.
8747 * modules/idcache: Likewise.
8749 2006-11-18 Jim Meyering <jim@meyering.net>
8751 * check-module (%exempt_header): Add exception for some
8752 conditionally-included headers.
8754 * modules/i-ring (Depends-on): Add verify.
8755 (License): Change to LGPL.
8757 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
8759 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
8760 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
8761 and inttostr.h. Use snprintf rather than uinttostr, so that
8762 LGPLed code doesn't depend on GPLed.
8764 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
8766 * modules/inline (License): Change from GPL to LGPL.
8768 2006-11-17 Jim Meyering <jim@meyering.net>
8770 * modules/d-type (License): Switch to LGPL.
8772 2006-11-15 Bruno Haible <bruno@clisp.org>
8774 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
8776 2006-11-15 Eric Blake <ebb9@byu.net>
8778 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
8779 the module dependency.
8781 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
8782 Bruno Haible <bruno@clisp.org>
8784 * gnulib-tool (func_create_testdir): Add license consistency check.
8786 2006-11-15 Eric Blake <ebb9@byu.net>
8788 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
8789 random "(cached)" in configure output.
8791 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8793 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
8794 test for conforming inttypes.h is both announced and cached.
8796 * MODULES.html.sh (seen_modules, seen_files): New variables.
8797 (func_module): Rewrite to use a few less gnulib-tool and sed
8798 invocations. Avoid a couple of quadratic algorithms for ...
8799 (missed_modules, missed_files): ... these, with ...
8800 (func_append, func_tmpdir): ... these new functions, from
8801 gnulib-tool. Analogously, install traps for cleanup.
8803 * tests/test-gc.c (main): Remove unused variables.
8804 * tests/test-read-file.c: Include stdlib.h, for 'free'.
8806 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
8808 * modules/inttostr (License): Change to LGPL.
8810 2006-11-14 Eric Blake <ebb9@byu.net>
8812 * modules/tempname (License): Change to LGPL.
8814 2006-11-14 Eric Blake <ebb9@byu.net>
8816 * doc/functions.texi (Function Portability): *printf functions on
8817 Cygwin now understand all POSIX size specifiers.
8819 2006-11-14 Bruno Haible <bruno@clisp.org>
8821 * modules/c-ctype (License): Change to LGPL.
8823 2006-11-12 Bruno Haible <bruno@clisp.org>
8825 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
8826 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
8827 for GNOME libraries, for which the include files are installed in
8828 subdirectories of $prefix/include.
8830 2006-11-12 Bruno Haible <bruno@clisp.org>
8832 * m4/lib-link.m4: Require at least autoconf-2.54.
8833 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
8834 name to underscores for the --with option.
8836 2006-11-13 Bruno Haible <bruno@clisp.org>
8838 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
8839 the tests directory.
8840 Reported by Ralf Wildenhues.
8842 2006-11-13 Bruno Haible <bruno@clisp.org>
8844 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
8845 (func_emit_initmacro_end): Undo the override here.
8846 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
8847 Works around the famous automake error in coreutils.
8849 2006-11-13 Eric Blake <ebb9@byu.net>
8851 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
8852 element, not its node.
8854 2006-11-12 Bruno Haible <bruno@clisp.org>
8856 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
8857 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
8859 2006-11-12 Bruno Haible <bruno@clisp.org>
8861 * gnulib-tool: New option --local-symlink.
8862 (func_usage): Document it.
8863 (lsymbolic): New variable.
8864 (func_import, func_create_testdir): If --symlink was not specified,
8865 test whether --local-symlink was specified and the file comes from
8866 the local_gnulib_dir.
8868 2006-11-12 Bruno Haible <bruno@clisp.org>
8870 * gnulib-tool (func_ln): New function.
8871 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
8873 2006-11-12 Bruno Haible <bruno@clisp.org>
8875 Finish support for source files in subdirectories.
8876 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
8877 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
8879 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
8881 2006-11-12 Bruno Haible <bruno@clisp.org>
8883 * gnulib-tool (func_get_automake_snippet): Synthesize also an
8884 EXTRA_lib_SOURCES augmentation.
8885 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
8887 2006-11-12 Jim Meyering <jim@meyering.net>
8889 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
8890 file descriptors. This also averts a failure on systems with
8891 native openat support when a traversed directory lacks "x" access.
8892 * lib/fts_.h: Include "i-ring.h"
8893 (struct FTS) [fts_fd_ring]: New member.
8894 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
8895 (FCHDIR): Add parentheses.
8896 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
8897 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
8898 When descending, rather than simply closing the previous
8899 fts_cwd_fd value, push that file descriptor onto the ring.
8900 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
8901 (fts_open): Initialize the new fd_ring member.
8902 (fts_close): Clear the ring.
8903 (fts_safe_changedir): When possible, use our new fd_ring to skip
8904 the diropen and fstat and dev/ino comparison that would normally
8905 accompany a virtual `chdir ("..")'.
8907 * modules/fts (Depends-on): Add i-ring.
8908 * modules/i-ring: New module.
8909 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
8910 * m4/i-ring.m4: New file.
8912 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8914 * gnulib-tool (func_create_testdir): Fix replacement of
8915 `build-aux' in configure.ac. Run autotools in gltests
8917 (func_create_testdir, func_create_megatestdir, test): There is
8918 no need for '--force' in most autotool invocations in a new
8919 tree. Actually fail the whole test if any of the tools, or the
8920 configure or make stages fail.
8923 * build-aux/gnupload: Revert last change. Add pointer to upload
8924 instructions of the GNU Maintenance Instructions.
8925 Suggestion by Karl Berry.
8927 2006-11-10 Jim Meyering <jim@meyering.net>
8929 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
8931 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
8933 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
8934 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
8935 (bind_textdomain_codeset) [! ENABLE_NLS]:
8936 Evaluate all the arguments. That way, callers get compatible behavior
8937 if the arguments have side effects. Also, it avoids some GCC
8938 diagnostics in some cases; Joel E. Denny reported problems when Bison
8939 was configured with --enable-gcc-warnigs.
8941 2006-11-10 Jim Meyering <jim@meyering.net>
8943 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
8944 relevant options in CFLAGS (like -O, -fno-inline) are taken into
8947 2006-11-10 Jim Meyering <jim@meyering.net>
8949 * modules/inline: New file/module.
8950 * modules/xalloc (Files): Remove m4/inline.m4.
8951 (Depends-on): Add inline, instead.
8952 * modules/oset: Likewise.
8953 * modules/list: Likewise.
8955 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
8957 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
8958 Problem reported by Matthew Woehlke.
8960 2006-11-09 Bruno Haible <bruno@clisp.org>
8962 * lib/tempname.c (gen_tempname): Remove variant that invokes
8964 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
8967 2006-11-08 Bruno Haible <bruno@clisp.org>
8969 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
8970 to 'yes' instead of 'cross-compiling'.
8972 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
8974 * lib/quotearg.h (quotearg_free): New decl.
8975 * lib/quotearg.c (quotearg_free): New function.
8976 (slot0, nslots, slotvec0, slotvec):
8977 Now file-scope so that quotearg_free can get at them.
8979 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8982 * build-aux/gnupload: Add missing 'gnu' to example URL.
8983 Report by Karl Berry.
8985 2006-11-08 Bruno Haible <bruno@clisp.org>
8987 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
8988 Suggested by Paul Eggert.
8990 2006-11-08 Jim Meyering <jim@meyering.net>
8992 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
8993 It's already included if !_LIBC.
8994 (fts_safe_changedir): Add a comment.
8996 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
8998 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
8999 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
9002 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
9003 definitions up, to avoid colliding with change below.
9004 (static_inline) [HAVE_INLINE]: New macro.
9005 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
9006 Provide extern decls when !HAVE_INLINE. Do not define unless
9007 static_inline is defined, either by us or by xmalloc.c. Use
9008 static_inline rather than static inline.
9009 (XCALLOC): Optimize sizeof(T) = 1 case.
9010 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
9012 2006-11-07 Bruno Haible <bruno@clisp.org>
9014 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
9015 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
9017 * modules/xalloc (Files): Add m4/inline.m4.
9019 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9022 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
9023 (Miscellanous Notes): ...from this.
9025 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
9027 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
9028 Mention that offsetof should be used instead of sizeof.
9031 2006-11-07 Bruno Haible <bruno@clisp.org>
9033 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
9035 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
9037 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
9038 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
9039 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
9040 (gl_tree_add_before, gl_tree_add_after):
9041 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
9042 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
9043 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
9044 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
9045 (gl_linked_add_after, gl_linked_add_at): Likewise.
9046 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
9047 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
9048 (gl_tree_add_before, gl_tree_add_after): Likewise.
9049 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
9050 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
9051 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
9053 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9055 * lib/gl_oset.h: Use C comment style, not C++ comment style.
9057 2006-11-06 Bruno Haible <bruno@clisp.org>
9059 * m4/inline.m4: New file.
9060 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
9061 * modules/list (Files): Add m4/inline.m4.
9062 * modules/oset (Files): Likewise.
9064 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
9066 * lib/idcache.c: Include <stddef.h>, for offsetof.
9067 (struct userid.name): Change from char * to a flexible array member.
9069 * modules/idcache (Depends-on): Add flexmember.
9071 * MODULES.html.sh (Core language properties): New module flexmember.
9072 * modules/flexmember, m4/flexmember.m4: New files.
9074 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
9075 inline functions that are identical with the old xnmalloc_inline,
9076 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
9077 that we can avoid some unnecessary integer multiplications and
9078 divisions in the common case where the element size is known at
9080 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
9082 (xnboundedmalloc): Remove.
9083 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
9084 arguments, for consistency with rest of this header.
9085 (xcharalloc): Rewrite using XNMALLOC.
9086 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
9087 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
9088 versions have been moved to lib/xalloc.h and renamed to be the
9089 non-*_inline versions.
9090 (xmalloc, xrealloc): Implement without reference to the xnmalloc
9091 and xnrealloc functions, since those functions are now inline and
9093 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
9094 renaming described above.
9095 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
9096 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
9097 captures the dependency in AC_C_INLINE.
9099 New module canonicalize-lgpl, proposed by Charles Wilson in
9100 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
9101 with a few small changes afterwards.
9102 * MODULES.html.sh (File system functions): New module
9104 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
9105 and canonicalize_file_name.
9106 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
9107 * modules/canonicalize-lgpl: New files.
9109 2006-11-05 Bruno Haible <bruno@clisp.org>
9111 * gnulib-tool (func_import, func_create_testdir): Create directories
9112 also for files in subdirectories of lib/.
9114 2006-11-05 Bruno Haible <bruno@clisp.org>
9116 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
9119 2006-11-03 Bruno Haible <bruno@clisp.org>
9121 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
9122 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
9123 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
9124 (xnboundedmalloc): New inline function.
9125 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
9126 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
9128 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
9130 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
9131 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
9132 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
9134 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
9135 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
9137 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
9138 gl_tree_add_after): Use XMALLOC instead of xmalloc.
9139 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
9141 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
9142 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
9143 gl_tree_add_after): Use XMALLOC instead of xmalloc.
9144 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
9145 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
9146 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
9147 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
9149 2006-11-03 Bruno Haible <bruno@clisp.org>
9151 * lib/c-ctype.h [C++]: Define functions without name mangling.
9152 * lib/fwriteerror.h [C++]: Likewise.
9153 * lib/gcd.h [C++]: Likewise.
9154 * lib/linebreak.h [C++]: Likewise.
9156 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
9158 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
9159 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
9160 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
9161 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
9162 Check for functions and headers just once.
9163 Check for declaration of canonicalize_file_name.
9164 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
9166 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
9168 * gnulib-tool (func_import): Fix typo in actioncmd.
9170 2006-11-02 Bruno Haible <bruno@clisp.org>
9172 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
9173 newline sequence in the Makefile.am snippet as a space, like "make"
9175 Reported by Roger Persson <perrog@gmail.com>.
9177 2006-11-01 Bruno Haible <bruno@clisp.org>
9179 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
9180 already declared in <string.h>.
9181 * lib/strcase.h (strncasecmp): Don't declare it if yes.
9183 2006-11-01 Bruno Haible <bruno@clisp.org>
9185 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
9186 * lib/strcase.h: Include <string.h>.
9187 (strcasecmp): Define to rpl_strcasecmp here.
9189 2006-11-01 Bruno Haible <bruno@clisp.org>
9191 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
9193 2006-11-01 Eric Blake <ebb9@byu.net>
9195 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
9197 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
9199 2006-10-29 Bruno Haible <bruno@clisp.org>
9201 Make it compile in C++ mode.
9202 * lib/full-write.c (full_rw): Add a cast.
9204 2006-11-01 Bruno Haible <bruno@clisp.org>
9206 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
9208 Reported by Roger Persson <perrog@gmail.com>.
9210 2006-11-01 Eric Blake <ebb9@byu.net>
9212 * lib/getopt_.h: Fix comments.
9214 2006-10-31 Eric Blake <ebb9@byu.net>
9216 * modules/tmpdir (Depends-on): Add sys_stat.
9217 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
9218 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
9219 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
9220 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
9223 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
9225 Avoid some C++ diagnostics reported by Bruno Haible.
9226 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
9228 (quotearg_alloc): Use xcharalloc rather than xmalloc.
9229 (struct slotvec): Move to top level.
9230 (quotearg_n_options): Rewrite to avoid xmalloc.
9231 * lib/xalloc.h (xcharalloc): New function.
9232 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
9233 [defined __cplusplus]: Add function template that provides result
9234 type propagation. This part of the change is from Bruno Haible.
9236 2006-10-29 Bruno Haible <bruno@clisp.org>
9238 Make it compile in C++ mode.
9239 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
9240 * lib/strnlen1.c (strnlen1): Cast memchr result.
9241 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
9242 * lib/clean-temp.c (string_equals, string_hash): Add casts.
9243 (create_temp_dir): Rename local variable 'template'.
9244 (compile_csharp_using_sscli): Add cast.
9245 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
9246 * lib/findprog.c (find_in_path): Likewise.
9247 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
9248 * lib/wait-process.c (register_slave_subprocess): Likewise.
9250 2006-10-22 Bruno Haible <bruno@clisp.org>
9252 * modules/tsearch: New file.
9253 * lib/tsearch.h: New file.
9254 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
9255 * m4/tsearch.m4: New file.
9256 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
9258 2006-10-29 Eric Blake <ebb9@byu.net>
9260 * lib/arcfour.c: Assume config.h.
9261 * lib/arctwo.c: Likewise.
9262 * lib/base64.c: Likewise.
9263 * lib/check-version.c: Likewise.
9264 * lib/crc.c: Likewise.
9265 * lib/des.c: Likewise.
9266 * lib/gc-gnulib.c: Likewise.
9267 * lib/gc-libgcrypt.c: Likewise.
9268 * lib/gc-pbkdf2-sha1.c: Likewise.
9269 * lib/getaddrinfo.c: Likewise.
9270 * lib/getdelim.c: Likewise.
9271 * lib/getline.c: Likewise.
9272 * lib/hmac-md5.c: Likewise.
9273 * lib/hmac-sha1.c: Likewise.
9274 * lib/iconvme.c: Likewise.
9275 * lib/md2.c: Likewise.
9276 * lib/md4.c: Likewise.
9277 * lib/memxor.c: Likewise.
9278 * lib/read-file.c: Likewise.
9279 * lib/readline.c: Likewise.
9280 * lib/rijndael-alg-fst.c: Likewise.
9281 * lib/rijndael-api-fst.c: Likewise.
9282 * lib/xgetdomainname.c: Likewise.
9284 2006-10-28 Eric Blake <ebb9@byu.net>
9286 * lib/xstrndup.c: Assume config.h.
9288 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
9290 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
9291 stat-macros.h is now for our own macros, whereas stat_h is for
9292 macros in the <sys/stat.h> name space.
9293 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
9294 (STAT_MACROS_H): Remove.
9295 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
9296 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
9297 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
9298 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
9299 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
9300 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
9301 Move these macros to ...
9302 * lib/stat_.h: here. Don't include stat-macros.h.
9303 * lib/canonicalize.c: Don't include stat-macros.h.
9304 * lib/chown.c: Likewise.
9305 * lib/euidaccess.c: Likewise.
9306 * lib/file-type.c: Likewise.
9307 * lib/filemode.c: Likewise.
9308 * lib/glob.c: Likewise.
9309 * lib/isapipe.c: Likewise.
9310 * lib/lchown.c: Likewise.
9311 * lib/lstat.c: Likewise.
9312 * lib/mkdir-p.c: Likewise.
9313 * lib/rmdir.c: Likewise.
9314 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
9315 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
9316 unless mkdir isn't declared, to speed up 'configure'.
9317 Always create sys/stat.h, since it's unlikely any real sys/stat.h
9318 would define all the S_* symbols.
9319 * modules/canonicalize (Depends-on):
9320 Depend on sys_stat, not stat-macros.
9321 * modules/chown: Likewise.
9322 * modules/euidaccess: Likewise.
9323 * modules/filemode: Likewise.
9324 * modules/file-type: Likewise.
9325 * modules/glob: Likewise.
9326 * modules/isapipe: Likewise.
9327 * modules/lchown: Likewise.
9328 * modules/lstat: Likewise.
9329 * modules/mkancesdirs: Likewise.
9330 * modules/rmdir: Likewise.
9331 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
9332 * modules/modechange: Likewise.
9333 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
9334 (configure.ac): Remove gl_STAT_MACROS.
9335 * modules/sys_stat (Depends-on): Remove stat-macros.
9337 2006-10-27 Bruno Haible <bruno@clisp.org>
9339 * m4/signed.m4: Remove file.
9340 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
9342 * modules/vasnprintf (Files): Remove m4/signed.m4.
9344 2006-10-27 Bruno Haible <bruno@clisp.org>
9346 Update to GNU gettext 0.16.
9347 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
9348 m4/inttypes-h.m4, m4/signed.m4.
9349 * m4/gettext.m4: Update to GNU gettext 0.16.
9350 * m4/intl.m4: New file, from GNU gettext.
9351 * m4/intldir.m4: New file, from GNU gettext.
9352 * config/srclist.txt: Update
9354 2006-10-27 Eric Blake <ebb9@byu.net>
9356 * MODULES.html.sh: Document tempname.
9357 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
9359 (Files): Move lib/tempname.c...
9360 * modules/tempname: ...to this new module.
9361 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
9362 (gl_PREREQ_TEMPNAME): Move...
9363 * m4/tempname.m4: ...to this new file.
9364 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
9365 * modules/sys_stat (Depends-on): Add stat-macros.
9366 * lib/stat_.h (includes): Pick up stat macros.
9367 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
9368 if stat macros are broken.
9369 * lib/tempname.c (includes): No need to include "stat-macros.h".
9370 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
9371 (direxists, __path_search) [!_LIBC]: Don't compile these in
9372 gnulib; the tmpdir module covers that.
9373 * lib/tempname.h: New file.
9375 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
9377 * COPYING: Explain how gnulib-tool converts licence headers.
9378 Almost all wording by Eric Blake.
9380 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
9382 * lib/mbchar.h (is_basic_table): Make read-only.
9383 * lib/mbchar.c (is_basic_table): Likewise.
9384 Reported by John Darrington.
9386 2006-10-25 Bruno Haible <bruno@clisp.org>
9388 * lib/progname.h (set_program_name): Undefine before defining.
9390 2006-10-25 Bruno Haible <bruno@clisp.org>
9392 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
9393 false for non-gcc C++ compilers.
9394 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
9396 2006-10-24 Bruno Haible <bruno@clisp.org>
9398 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
9399 iconv implementations like Irix iconv.
9401 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
9403 * modules/vararrays: New file.
9404 * m4/vararrays.m4: New file, taken from diffutils.
9405 * MODULES.html.sh: New module vararrays.
9407 2006-10-24 Karl Berry <karl@gnu.org>
9409 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
9410 Don't call GNU Unix.
9412 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9414 * users.txt: Add Libtool.
9418 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
9420 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
9421 to gnulib's policy of including config.h unconditionally.
9423 2006-10-24 Bruno Haible <bruno@clisp.org>
9425 * modules/wcwidth (Files): Add m4/wint_t.m4.
9426 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
9427 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
9429 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
9431 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
9432 to pacify GCC with some -W flags enabled. Problem reported by
9435 2006-10-24 Jim Meyering <jim@meyering.net>
9437 * MODULES.html.sh: Remove uinttostr. It's not a module.
9438 Reported by Karl Berry.
9440 2006-10-23 Bruno Haible <bruno@clisp.org>
9442 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
9444 2006-10-24 Bruno Haible <bruno@clisp.org>
9446 * lib/gl_list.h: Use C comment style, not C++ comment style.
9448 2006-10-23 Eric Blake <ebb9@byu.net>
9450 * lib/getaddrinfo.c (includes): Add missing include.
9452 2006-10-23 Bruno Haible <bruno@clisp.org>
9453 Paul Eggert <eggert@cs.ucla.edu>
9455 Ability to rename obstack_free.
9456 * lib/obstack.h (__obstack_free): New macro. Declare instead of
9458 (obstack_free): Invoke the __obstack_free macro.
9459 * lib/obstack.c (obstack_free): Use __obstack_free macro.
9461 2006-10-23 Bruno Haible <bruno@clisp.org>
9462 Paul Eggert <eggert@cs.ucla.edu>
9464 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
9465 __argc, __argv from the declaration. (They are defined as macros on
9468 2006-10-22 Bruno Haible <bruno@clisp.org>
9470 * doc/gnulib-intro.texi: New file.
9471 * doc/gnulib.texi: Include it.
9473 2006-10-21 Bruno Haible <bruno@clisp.org>
9475 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
9476 "Introduction", "Miscellanous Notes", "Particular Modules".
9478 2006-10-21 Bruno Haible <bruno@clisp.org>
9480 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9481 Change mostlyclean-local rule to avoid sh syntax error from bash
9482 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
9484 2006-10-23 Jim Meyering <jim@meyering.net>
9486 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
9487 in place of snprintf.
9489 * modules/inttostr (Files): Add lib/uinttostr.c.
9490 * lib/uinttostr.c (inttostr): New file/function.
9491 * lib/inttostr.h (uinttostr): Declare.
9492 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
9493 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
9495 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
9497 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
9499 * lib/canonicalize.c (ELOOP): Define if not already defined.
9500 Problem reported by Bruno Haible in
9501 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
9503 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
9505 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
9506 Problem reported by Perry Smith and Ville Laurikari.
9508 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
9511 2006-10-19 Bruno Haible <bruno@clisp.org>
9513 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
9516 2006-10-19 Bruno Haible <bruno@clisp.org>
9518 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
9521 2006-10-19 Bruno Haible <bruno@clisp.org>
9523 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
9525 2006-10-19 Bruno Haible <bruno@clisp.org>
9527 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
9530 2006-10-19 Bruno Haible <bruno@clisp.org>
9532 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
9535 2006-10-19 Bruno Haible <bruno@clisp.org>
9537 * gnulib-tool (func_create_testdir): Don't include ftruncate and
9538 mountlist by default.
9540 2006-10-16 Bruno Haible <bruno@clisp.org>
9542 * lib/c-strstr.c: Include c-strstr.h.
9544 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
9546 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
9549 2006-10-18 Bruno Haible <bruno@clisp.org>
9551 * lib/lock.h [C++]: Wrap definitions in extern "C".
9553 2006-10-18 Bruno Haible <bruno@clisp.org>
9555 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
9558 2006-10-18 Bruno Haible <bruno@clisp.org>
9560 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
9562 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
9564 * lib/xstrtol.h: Include gettext.h.
9565 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
9566 Problem reported by Eric Blake.
9567 * modules/xstrtol (Depends-on): Add gettext-h.
9569 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
9571 * lib/strftime.c (advance): New macro.
9572 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
9573 incomplete type, so you can't add 0 to it. Problem and patch
9574 reported by Eelco Dolstra for dietlibc.
9576 2006-10-18 Jim Meyering <jim@meyering.net>
9578 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
9579 type for a local, and rename it: s/up/user_proc/.
9581 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
9583 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
9584 READ_UTMP_USER_PROCESS.
9585 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
9587 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
9589 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
9590 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
9592 2006-10-17 Eric Blake <ebb9@byu.net>
9594 * lib/sigprocmask.c (sigprocmask): Fix typo.
9596 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
9598 * modules/clean-temp (Makefile.am): Don't add to make output...
9599 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
9602 2006-10-17 Bruno Haible <bruno@clisp.org>
9604 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
9605 differently if DEFAULT_TEXT_DOMAIN is set.
9607 2006-10-16 Bruno Haible <bruno@clisp.org>
9609 * lib/clean-temp.c: Include fwriteerror.h.
9611 2006-10-16 Bruno Haible <bruno@clisp.org>
9613 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
9615 2006-10-16 Bruno Haible <bruno@clisp.org>
9617 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
9618 * lib/sigprocmask.h: Include <sys/types.h>.
9619 (sigset_t): Use the system's definition if present.
9621 2006-10-17 Eric Blake <ebb9@byu.net>
9623 * lib/xvasprintf.c (includes): Assume config.h.
9624 * lib/xasprintf.c (includes): Likewise.
9626 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
9628 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
9629 at least as wide as intmax_t.
9631 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
9633 (Imported from Automake.)
9634 * build-aux/gnupload: Update to version 1.1 of directive file.
9636 2006-10-16 Eric Blake <ebb9@byu.net>
9638 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
9639 match Automake 1.10a.
9641 2006-10-14 Bruno Haible <bruno@clisp.org>
9643 * modules/sigprocmask: New file.
9644 * lib/sigprocmask.h: New file.
9645 * lib/sigprocmask.c: New file.
9646 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
9647 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
9648 request sigprocmask.o.
9649 (gl_PREREQ_SIGPROCMASK): New macro.
9650 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
9651 (Depends-on): Add sigprocmask.
9652 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
9653 gt_SIGNALBLOCKING. Test for 'raise' only once.
9654 * lib/fatal-signal.c: Include sigprocmask.h.
9655 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
9656 unblock_fatal_signals): Define always.
9657 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
9660 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
9663 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
9664 which incorrectly sets the mode of an existing destination
9665 directory. In some cases the unpatched install-sh could do the
9666 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
9667 system. We hope this is rare in practice, but it's clearly worth
9668 fixing. Problem reported by Alex Unleashed in
9669 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
9670 Also, don't bother to check for -m bugs unless we're using -m;
9671 suggested by Stepan Kasal.
9673 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9676 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
9677 `-c' flag, so they appear at the same position as in %FASTDEP%
9678 mode in depend2.am. Fixes build failure for FreeBSD's c89,
9679 which ignores unknown options only after the first non-option.
9680 Bug report against M4 by Nelson H. F. Beebe.
9682 2006-10-13 Jim Meyering <jim@meyering.net>
9684 Fix a bug in yesterday's change.
9685 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
9686 p->fts_statp->st_dev would be used uninitialized.
9687 Ensures that we always call fts_stat on the very first entry.
9688 Miklos Szeredi reported that find -xdev stopped working.
9690 2006-10-12 Bruno Haible <bruno@clisp.org>
9692 * gnulib-tool (func_get_automake_snippet): Append an automatically
9693 computed EXTRA_DIST augmentation.
9694 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
9695 * modules/alloca-opt (Makefile.am): Likewise.
9696 * modules/allocsa (Makefile.am): Likewise.
9697 * modules/arcfour (Makefile.am): Likewise.
9698 * modules/arctwo (Makefile.am): Likewise.
9699 * modules/argmatch (Makefile.am): Likewise.
9700 * modules/argz (Makefile.am): Likewise.
9701 * modules/atexit (Makefile.am): Likewise.
9702 * modules/backupfile (Makefile.am): Likewise.
9703 * modules/byteswap (Makefile.am): Likewise.
9704 * modules/c-strtod (Makefile.am): Likewise.
9705 * modules/c-strtold (Makefile.am): Likewise.
9706 * modules/calloc (Makefile.am): Likewise.
9707 * modules/canon-host (Makefile.am): Likewise.
9708 * modules/canonicalize (Makefile.am): Likewise.
9709 * modules/chdir-long (Makefile.am): Likewise.
9710 * modules/chdir-safer (Makefile.am): Likewise.
9711 * modules/check-version (Makefile.am): Likewise.
9712 * modules/chown (Makefile.am): Likewise.
9713 * modules/cloexec (Makefile.am): Likewise.
9714 * modules/close-stream (Makefile.am): Likewise.
9715 * modules/closeout (Makefile.am): Likewise.
9716 * modules/crc (Makefile.am): Likewise.
9717 * modules/csharpexec (Makefile.am): Likewise.
9718 * modules/cycle-check (Makefile.am): Likewise.
9719 * modules/des (Makefile.am): Likewise.
9720 * modules/dev-ino (Makefile.am): Likewise.
9721 * modules/dirfd (Makefile.am): Likewise.
9722 * modules/dirname (Makefile.am): Likewise.
9723 * modules/dup2 (Makefile.am): Likewise.
9724 * modules/eealloc (Makefile.am): Likewise.
9725 * modules/error (Makefile.am): Likewise.
9726 * modules/euidaccess (Makefile.am): Likewise.
9727 * modules/exclude (Makefile.am): Likewise.
9728 * modules/exitfail (Makefile.am): Likewise.
9729 * modules/fcntl-safer (Makefile.am): Likewise.
9730 * modules/fcntl (Makefile.am): Likewise.
9731 * modules/file-type (Makefile.am): Likewise.
9732 * modules/fileblocks (Makefile.am): Likewise.
9733 * modules/filemode (Makefile.am): Likewise.
9734 * modules/filenamecat (Makefile.am): Likewise.
9735 * modules/fnmatch (Makefile.am): Likewise.
9736 * modules/fopen-safer (Makefile.am): Likewise.
9737 * modules/fpending (Makefile.am): Likewise.
9738 * modules/fprintftime (Makefile.am): Likewise.
9739 * modules/free (Makefile.am): Likewise.
9740 * modules/fsusage (Makefile.am): Likewise.
9741 * modules/ftruncate (Makefile.am): Likewise.
9742 * modules/fts (Makefile.am): Likewise.
9743 * modules/gc-arcfour (Makefile.am): Likewise.
9744 * modules/gc-des (Makefile.am): Likewise.
9745 * modules/gc-hmac-md5 (Makefile.am): Likewise.
9746 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
9747 * modules/gc-md4 (Makefile.am): Likewise.
9748 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
9749 * modules/gc-sha1 (Makefile.am): Likewise.
9750 * modules/gc (Makefile.am): Likewise.
9751 * modules/getaddrinfo (Makefile.am): Likewise.
9752 * modules/getcwd (Makefile.am): Likewise.
9753 * modules/getdelim (Makefile.am): Likewise.
9754 * modules/getdomainname (Makefile.am): Likewise.
9755 * modules/getgroups (Makefile.am): Likewise.
9756 * modules/gethostname (Makefile.am): Likewise.
9757 * modules/gethrxtime (Makefile.am): Likewise.
9758 * modules/getline (Makefile.am): Likewise.
9759 * modules/getloadavg (Makefile.am): Likewise.
9760 * modules/getlogin_r (Makefile.am): Likewise.
9761 * modules/getndelim2 (Makefile.am): Likewise.
9762 * modules/getopt (Makefile.am): Likewise.
9763 * modules/getpagesize (Makefile.am): Likewise.
9764 * modules/getpass-gnu (Makefile.am): Likewise.
9765 * modules/getpass (Makefile.am): Likewise.
9766 * modules/getsubopt (Makefile.am): Likewise.
9767 * modules/gettime (Makefile.am): Likewise.
9768 * modules/gettimeofday (Makefile.am): Likewise.
9769 * modules/getugroups (Makefile.am): Likewise.
9770 * modules/getusershell (Makefile.am): Likewise.
9771 * modules/glob (Makefile.am): Likewise.
9772 * modules/group-member (Makefile.am): Likewise.
9773 * modules/hard-locale (Makefile.am): Likewise.
9774 * modules/hash (Makefile.am): Likewise.
9775 * modules/hmac-md5 (Makefile.am): Likewise.
9776 * modules/hmac-sha1 (Makefile.am): Likewise.
9777 * modules/human (Makefile.am): Likewise.
9778 * modules/idcache (Makefile.am): Likewise.
9779 * modules/imaxabs (Makefile.am): Likewise.
9780 * modules/imaxdiv (Makefile.am): Likewise.
9781 * modules/inet_ntop (Makefile.am): Likewise.
9782 * modules/inet_pton (Makefile.am): Likewise.
9783 * modules/intprops (Makefile.am): Likewise.
9784 * modules/inttostr (Makefile.am): Likewise.
9785 * modules/inttypes (Makefile.am): Likewise.
9786 * modules/isapipe (Makefile.am): Likewise.
9787 * modules/javaversion (Makefile.am): Likewise.
9788 * modules/lchmod (Makefile.am): Likewise.
9789 * modules/lchown (Makefile.am): Likewise.
9790 * modules/localcharset (Makefile.am): Likewise.
9791 * modules/long-options (Makefile.am): Likewise.
9792 * modules/lstat (Makefile.am): Likewise.
9793 * modules/malloc (Makefile.am): Likewise.
9794 * modules/mathl (Makefile.am): Likewise.
9795 * modules/mbchar (Makefile.am): Likewise.
9796 * modules/md2 (Makefile.am): Likewise.
9797 * modules/md4 (Makefile.am): Likewise.
9798 * modules/md5 (Makefile.am): Likewise.
9799 * modules/memcasecmp (Makefile.am): Likewise.
9800 * modules/memchr (Makefile.am): Likewise.
9801 * modules/memcmp (Makefile.am): Likewise.
9802 * modules/memcoll (Makefile.am): Likewise.
9803 * modules/memcpy (Makefile.am): Likewise.
9804 * modules/memmem (Makefile.am): Likewise.
9805 * modules/memmove (Makefile.am): Likewise.
9806 * modules/mempcpy (Makefile.am): Likewise.
9807 * modules/memrchr (Makefile.am): Likewise.
9808 * modules/memset (Makefile.am): Likewise.
9809 * modules/memxor (Makefile.am): Likewise.
9810 * modules/mkancesdirs (Makefile.am): Likewise.
9811 * modules/mkdir-p (Makefile.am): Likewise.
9812 * modules/mkdir (Makefile.am): Likewise.
9813 * modules/mkdtemp (Makefile.am): Likewise.
9814 * modules/mkstemp (Makefile.am): Likewise.
9815 * modules/mktime (Makefile.am): Likewise.
9816 * modules/modechange (Makefile.am): Likewise.
9817 * modules/mountlist (Makefile.am): Likewise.
9818 * modules/nanosleep (Makefile.am): Likewise.
9819 * modules/obstack (Makefile.am): Likewise.
9820 * modules/openat (Makefile.am): Likewise.
9821 * modules/pagealign_alloc (Makefile.am): Likewise.
9822 * modules/pathmax (Makefile.am): Likewise.
9823 * modules/physmem (Makefile.am): Likewise.
9824 * modules/poll (Makefile.am): Likewise.
9825 * modules/posixtm (Makefile.am): Likewise.
9826 * modules/posixver (Makefile.am): Likewise.
9827 * modules/putenv (Makefile.am): Likewise.
9828 * modules/quote (Makefile.am): Likewise.
9829 * modules/quotearg (Makefile.am): Likewise.
9830 * modules/raise (Makefile.am): Likewise.
9831 * modules/read-file (Makefile.am): Likewise.
9832 * modules/readline (Makefile.am): Likewise.
9833 * modules/readlink (Makefile.am): Likewise.
9834 * modules/readtokens (Makefile.am): Likewise.
9835 * modules/readutmp (Makefile.am): Likewise.
9836 * modules/realloc (Makefile.am): Likewise.
9837 * modules/regex (Makefile.am): Likewise.
9838 * modules/rename-dest-slash (Makefile.am): Likewise.
9839 * modules/rename (Makefile.am): Likewise.
9840 * modules/rijndael (Makefile.am): Likewise.
9841 * modules/rmdir (Makefile.am): Likewise.
9842 * modules/rpmatch (Makefile.am): Likewise.
9843 * modules/safe-read (Makefile.am): Likewise.
9844 * modules/safe-write (Makefile.am): Likewise.
9845 * modules/same-inode (Makefile.am): Likewise.
9846 * modules/same (Makefile.am): Likewise.
9847 * modules/save-cwd (Makefile.am): Likewise.
9848 * modules/savedir (Makefile.am): Likewise.
9849 * modules/setenv (Makefile.am): Likewise.
9850 * modules/settime (Makefile.am): Likewise.
9851 * modules/sha1 (Makefile.am): Likewise.
9852 * modules/sig2str (Makefile.am): Likewise.
9853 * modules/snprintf (Makefile.am): Likewise.
9854 * modules/stat-macros (Makefile.am): Likewise.
9855 * modules/stat-time (Makefile.am): Likewise.
9856 * modules/stdbool (Makefile.am): Likewise.
9857 * modules/stdint (Makefile.am): Likewise.
9858 * modules/stdlib-safer (Makefile.am): Likewise.
9859 * modules/stpcpy (Makefile.am): Likewise.
9860 * modules/stpncpy (Makefile.am): Likewise.
9861 * modules/strcase (Makefile.am): Likewise.
9862 * modules/strcasestr (Makefile.am): Likewise.
9863 * modules/strchrnul (Makefile.am): Likewise.
9864 * modules/strcspn (Makefile.am): Likewise.
9865 * modules/strdup (Makefile.am): Likewise.
9866 * modules/strerror (Makefile.am): Likewise.
9867 * modules/strftime (Makefile.am): Likewise.
9868 * modules/strndup (Makefile.am): Likewise.
9869 * modules/strnlen (Makefile.am): Likewise.
9870 * modules/strpbrk (Makefile.am): Likewise.
9871 * modules/strsep (Makefile.am): Likewise.
9872 * modules/strstr (Makefile.am): Likewise.
9873 * modules/strtod (Makefile.am): Likewise.
9874 * modules/strtoimax (Makefile.am): Likewise.
9875 * modules/strtok_r (Makefile.am): Likewise.
9876 * modules/strtol (Makefile.am): Likewise.
9877 * modules/strtoll (Makefile.am): Likewise.
9878 * modules/strtoul (Makefile.am): Likewise.
9879 * modules/strtoull (Makefile.am): Likewise.
9880 * modules/strtoumax (Makefile.am): Likewise.
9881 * modules/strverscmp (Makefile.am): Likewise.
9882 * modules/sys_socket (Makefile.am): Likewise.
9883 * modules/sys_stat (Makefile.am): Likewise.
9884 * modules/sysexits (Makefile.am): Likewise.
9885 * modules/time_r (Makefile.am): Likewise.
9886 * modules/timegm (Makefile.am): Likewise.
9887 * modules/timespec (Makefile.am): Likewise.
9888 * modules/tmpfile-safer (Makefile.am): Likewise.
9889 * modules/trim (Makefile.am): Likewise.
9890 * modules/unistd-safer (Makefile.am): Likewise.
9891 * modules/unlinkdir (Makefile.am): Likewise.
9892 * modules/unlocked-io (Makefile.am): Likewise.
9893 * modules/userspec (Makefile.am): Likewise.
9894 * modules/utime (Makefile.am): Likewise.
9895 * modules/utimecmp (Makefile.am): Likewise.
9896 * modules/utimens (Makefile.am): Likewise.
9897 * modules/vasnprintf (Makefile.am): Likewise.
9898 * modules/vasprintf (Makefile.am): Likewise.
9899 * modules/vsnprintf (Makefile.am): Likewise.
9900 * modules/xalloc (Makefile.am): Likewise.
9901 * modules/xgetcwd (Makefile.am): Likewise.
9902 * modules/xnanosleep (Makefile.am): Likewise.
9903 * modules/xreadlink (Makefile.am): Likewise.
9904 * modules/xstrtod (Makefile.am): Likewise.
9905 * modules/xstrtol (Makefile.am): Likewise.
9906 * modules/xstrtold (Makefile.am): Likewise.
9907 * modules/yesno (Makefile.am): Likewise.
9908 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
9910 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
9912 * modules/error (Makefile.am): Distribute files through
9913 EXTRA_DIST, not lib_SOURCES.
9915 2006-10-12 Eric Blake <ebb9@byu.net>
9917 * modules/error (Makefile.am): Distribute files in /lib.
9918 * modules/obstack (Makefile.am): Likewise.
9920 2006-10-12 Bruno Haible <bruno@clisp.org>
9922 * modules/acl (Makefile.am): Distribute all files in lib/ through
9924 * modules/arcfour (Makefile.am): Likewise.
9925 * modules/arctwo (Makefile.am): Likewise.
9926 * modules/argmatch (Makefile.am): Likewise.
9927 * modules/argz (Makefile.am): Likewise.
9928 * modules/atexit (Makefile.am): Likewise.
9929 * modules/backupfile (Makefile.am): Likewise.
9930 * modules/c-strtod (Makefile.am): Likewise.
9931 * modules/c-strtold (Makefile.am): Likewise.
9932 * modules/calloc (Makefile.am): Likewise.
9933 * modules/canon-host (Makefile.am): Likewise.
9934 * modules/canonicalize (Makefile.am): Likewise.
9935 * modules/chdir-long (Makefile.am): Likewise.
9936 * modules/chdir-safer (Makefile.am): Likewise.
9937 * modules/check-version (Makefile.am): Likewise.
9938 * modules/chown (Makefile.am): Likewise.
9939 * modules/cloexec (Makefile.am): Likewise.
9940 * modules/close-stream (Makefile.am): Likewise.
9941 * modules/closeout (Makefile.am): Likewise.
9942 * modules/crc (Makefile.am): Likewise.
9943 * modules/cycle-check (Makefile.am): Likewise.
9944 * modules/des (Makefile.am): Likewise.
9945 * modules/dirfd (Makefile.am): Likewise.
9946 * modules/dirname (Makefile.am): Likewise.
9947 * modules/dup2 (Makefile.am): Likewise.
9948 * modules/euidaccess (Makefile.am): Likewise.
9949 * modules/exclude (Makefile.am): Likewise.
9950 * modules/exitfail (Makefile.am): Likewise.
9951 * modules/fcntl-safer (Makefile.am): Likewise.
9952 * modules/file-type (Makefile.am): Likewise.
9953 * modules/fileblocks (Makefile.am): Likewise.
9954 * modules/filemode (Makefile.am): Likewise.
9955 * modules/filenamecat (Makefile.am): Likewise.
9956 * modules/fnmatch (Makefile.am): Likewise.
9957 * modules/fopen-safer (Makefile.am): Likewise.
9958 * modules/fpending (Makefile.am): Likewise.
9959 * modules/fprintftime (Makefile.am): Likewise.
9960 * modules/free (Makefile.am): Likewise.
9961 * modules/fsusage (Makefile.am): Likewise.
9962 * modules/ftruncate (Makefile.am): Likewise.
9963 * modules/fts (Makefile.am): Likewise.
9964 * modules/gc (Makefile.am): Likewise.
9965 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
9966 * modules/getaddrinfo (Makefile.am): Likewise.
9967 * modules/getcwd (Makefile.am): Likewise.
9968 * modules/getdelim (Makefile.am): Likewise.
9969 * modules/getdomainname (Makefile.am): Likewise.
9970 * modules/getgroups (Makefile.am): Likewise.
9971 * modules/gethostname (Makefile.am): Likewise.
9972 * modules/gethrxtime (Makefile.am): Likewise.
9973 * modules/getline (Makefile.am): Likewise.
9974 * modules/getloadavg (Makefile.am): Likewise.
9975 * modules/getlogin_r (Makefile.am): Likewise.
9976 * modules/getopt (Makefile.am): Likewise.
9977 * modules/getpass (Makefile.am): Likewise.
9978 * modules/getpass-gnu (Makefile.am): Likewise.
9979 * modules/getsubopt (Makefile.am): Likewise.
9980 * modules/gettime (Makefile.am): Likewise.
9981 * modules/gettimeofday (Makefile.am): Likewise.
9982 * modules/getugroups (Makefile.am): Likewise.
9983 * modules/getusershell (Makefile.am): Likewise.
9984 * modules/glob (Makefile.am): Likewise.
9985 * modules/group-member (Makefile.am): Likewise.
9986 * modules/hard-locale (Makefile.am): Likewise.
9987 * modules/hash (Makefile.am): Likewise.
9988 * modules/hmac-md5 (Makefile.am): Likewise.
9989 * modules/hmac-sha1 (Makefile.am): Likewise.
9990 * modules/human (Makefile.am): Likewise.
9991 * modules/idcache (Makefile.am): Likewise.
9992 * modules/imaxabs (Makefile.am): Likewise.
9993 * modules/imaxdiv (Makefile.am): Likewise.
9994 * modules/inet_ntop (Makefile.am): Likewise.
9995 * modules/inet_pton (Makefile.am): Likewise.
9996 * modules/inttostr (Makefile.am): Likewise.
9997 * modules/isapipe (Makefile.am): Likewise.
9998 * modules/lchown (Makefile.am): Likewise.
9999 * modules/long-options (Makefile.am): Likewise.
10000 * modules/lstat (Makefile.am): Likewise.
10001 * modules/malloc (Makefile.am): Likewise.
10002 * modules/mathl (Makefile.am): Likewise.
10003 * modules/mbchar (Makefile.am): Likewise.
10004 * modules/md2 (Makefile.am): Likewise.
10005 * modules/md4 (Makefile.am): Likewise.
10006 * modules/md5 (Makefile.am): Likewise.
10007 * modules/memcasecmp (Makefile.am): Likewise.
10008 * modules/memchr (Makefile.am): Likewise.
10009 * modules/memcmp (Makefile.am): Likewise.
10010 * modules/memcoll (Makefile.am): Likewise.
10011 * modules/memcpy (Makefile.am): Likewise.
10012 * modules/memmem (Makefile.am): Likewise.
10013 * modules/memmove (Makefile.am): Likewise.
10014 * modules/mempcpy (Makefile.am): Likewise.
10015 * modules/memrchr (Makefile.am): Likewise.
10016 * modules/memset (Makefile.am): Likewise.
10017 * modules/memxor (Makefile.am): Likewise.
10018 * modules/mkancesdirs (Makefile.am): Likewise.
10019 * modules/mkdir (Makefile.am): Likewise.
10020 * modules/mkdir-p (Makefile.am): Likewise.
10021 * modules/mkdtemp (Makefile.am): Likewise.
10022 * modules/mkstemp (Makefile.am): Likewise.
10023 * modules/mktime (Makefile.am): Likewise.
10024 * modules/modechange (Makefile.am): Likewise.
10025 * modules/mountlist (Makefile.am): Likewise.
10026 * modules/nanosleep (Makefile.am): Likewise.
10027 * modules/openat (Makefile.am): Likewise.
10028 * modules/pagealign_alloc (Makefile.am): Likewise.
10029 * modules/physmem (Makefile.am): Likewise.
10030 * modules/poll (Makefile.am): Likewise.
10031 * modules/posixtm (Makefile.am): Likewise.
10032 * modules/posixver (Makefile.am): Likewise.
10033 * modules/putenv (Makefile.am): Likewise.
10034 * modules/quote (Makefile.am): Likewise.
10035 * modules/quotearg (Makefile.am): Likewise.
10036 * modules/raise (Makefile.am): Likewise.
10037 * modules/read-file (Makefile.am): Likewise.
10038 * modules/readline (Makefile.am): Likewise.
10039 * modules/readlink (Makefile.am): Likewise.
10040 * modules/readtokens (Makefile.am): Likewise.
10041 * modules/readutmp (Makefile.am): Likewise.
10042 * modules/realloc (Makefile.am): Likewise.
10043 * modules/regex (Makefile.am): Likewise.
10044 * modules/rename (Makefile.am): Likewise.
10045 * modules/rename-dest-slash (Makefile.am): Likewise.
10046 * modules/rijndael (Makefile.am): Likewise.
10047 * modules/rmdir (Makefile.am): Likewise.
10048 * modules/rpmatch (Makefile.am): Likewise.
10049 * modules/safe-read (Makefile.am): Likewise.
10050 * modules/safe-write (Makefile.am): Likewise.
10051 * modules/same (Makefile.am): Likewise.
10052 * modules/save-cwd (Makefile.am): Likewise.
10053 * modules/savedir (Makefile.am): Likewise.
10054 * modules/setenv (Makefile.am): Likewise.
10055 * modules/settime (Makefile.am): Likewise.
10056 * modules/sha1 (Makefile.am): Likewise.
10057 * modules/sig2str (Makefile.am): Likewise.
10058 * modules/snprintf (Makefile.am): Likewise.
10059 * modules/stdlib-safer (Makefile.am): Likewise.
10060 * modules/stpcpy (Makefile.am): Likewise.
10061 * modules/stpncpy (Makefile.am): Likewise.
10062 * modules/strcase (Makefile.am): Likewise.
10063 * modules/strcasestr (Makefile.am): Likewise.
10064 * modules/strchrnul (Makefile.am): Likewise.
10065 * modules/strcspn (Makefile.am): Likewise.
10066 * modules/strdup (Makefile.am): Likewise.
10067 * modules/strerror (Makefile.am): Likewise.
10068 * modules/strftime (Makefile.am): Likewise.
10069 * modules/strndup (Makefile.am): Likewise.
10070 * modules/strnlen (Makefile.am): Likewise.
10071 * modules/strpbrk (Makefile.am): Likewise.
10072 * modules/strsep (Makefile.am): Likewise.
10073 * modules/strstr (Makefile.am): Likewise.
10074 * modules/strtod (Makefile.am): Likewise.
10075 * modules/strtoimax (Makefile.am): Likewise.
10076 * modules/strtok_r (Makefile.am): Likewise.
10077 * modules/strtol (Makefile.am): Likewise.
10078 * modules/strtoll (Makefile.am): Likewise.
10079 * modules/strtoul (Makefile.am): Likewise.
10080 * modules/strtoull (Makefile.am): Likewise.
10081 * modules/strtoumax (Makefile.am): Likewise.
10082 * modules/strverscmp (Makefile.am): Likewise.
10083 * modules/time_r (Makefile.am): Likewise.
10084 * modules/timegm (Makefile.am): Likewise.
10085 * modules/tmpfile-safer (Makefile.am): Likewise.
10086 * modules/unistd-safer (Makefile.am): Likewise.
10087 * modules/unlinkdir (Makefile.am): Likewise.
10088 * modules/userspec (Makefile.am): Likewise.
10089 * modules/utime (Makefile.am): Likewise.
10090 * modules/utimecmp (Makefile.am): Likewise.
10091 * modules/utimens (Makefile.am): Likewise.
10092 * modules/vasnprintf (Makefile.am): Likewise.
10093 * modules/vasprintf (Makefile.am): Likewise.
10094 * modules/vsnprintf (Makefile.am): Likewise.
10095 * modules/xalloc (Makefile.am): Likewise.
10096 * modules/xgetcwd (Makefile.am): Likewise.
10097 * modules/xnanosleep (Makefile.am): Likewise.
10098 * modules/xreadlink (Makefile.am): Likewise.
10099 * modules/xstrtod (Makefile.am): Likewise.
10100 * modules/xstrtol (Makefile.am): Likewise.
10101 * modules/xstrtold (Makefile.am): Likewise.
10102 * modules/yesno (Makefile.am): Likewise.
10104 2006-10-12 Jim Meyering <jim@meyering.net>
10106 * m4/getloadavg.m4: Revert the change below.
10108 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
10109 lib/getloadavg.c using "ls -L", not "test -f". The latter would
10110 fail with a symlink, which is what coreutils' ./bootstrap now
10111 creates by default.
10113 2006-10-12 Bruno Haible <bruno@clisp.org>
10115 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
10117 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
10118 MSVC and mingw explicitly.
10120 2006-10-11 Simon Josefsson <jas@extundo.com>
10121 Bruno Haible <bruno@clisp.org>
10123 Add support for multiple gnulib-tool invocations in the scope of a
10124 single configure.ac file.
10125 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
10126 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
10127 with the same contents as the _LIBADD variable.
10128 (func_emit_initmacro_start, func_emit_initmacro_end,
10129 func_emit_initmacro_done): New functions.
10130 (func_import, func_create_testdir): Invoke them. Allow the identifiers
10131 gl_LIBOBJS and gl_LTLIBOBJS.
10133 2006-10-11 Bruno Haible <bruno@clisp.org>
10135 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
10136 (func_create_testdir): Don't create po/Makefile.am, don't invoke
10137 autoreconf. Instead, invoke autopoint explicitly but move back the
10138 *.m4 files from gnulib.
10140 2006-10-11 Bruno Haible <bruno@clisp.org>
10142 * gnulib-tool (func_usage): Make module names after --create-testdir
10144 (func_create_testdir): If no module was specified, use nearly all
10147 2006-10-12 Jim Meyering <jim@meyering.net>
10149 Big performance improvement for fts-based tools that use FTS_NOSTAT.
10150 Avoid spurious inode-mismatch problems on non-POSIX file systems.
10151 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
10152 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
10153 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
10154 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
10155 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
10156 (fts_set_stat_required): New function.
10157 (fts_open): Defer the calls to fts_stat, if possible or requested.
10158 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
10159 into fts_stat itself.
10160 (fts_read): Perform any required (deferred) fts_stat call.
10161 (fts_build): Likewise, for the directory we're about to open and read.
10162 In the readdir loop, carefully decide whether each entry will require
10163 an eventual call to fts_stat, using dirent.d_type info if available.
10164 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
10165 a command line argument into this function. Update all callers.
10166 Map a return value of FTS_DOT to FTS_D for a command line argument.
10167 * modules/fts (Depends-on): Add d-type. Alphabetize.
10168 Thanks to Miklos Szeredi for his tenacity and for the initial
10169 bug report about "find" failing on a FUSE-based file system.
10171 * lib/fts.c (fts_open): Use consistent indentation.
10173 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
10175 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
10176 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
10177 reported by Jim Meyering. All uses of cache variables renamed
10178 to match Autoconf's.
10179 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
10182 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
10183 Fix misspelling in diagnostic.
10185 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
10187 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
10188 defined. Problem reported by Matthew Woehlke.
10190 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
10191 Add support for Tandem NonStop R series.
10192 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
10195 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
10196 (has_trailing_slash): Omit size arg; all callers changed.
10197 Omit 'inline', since it doesn't help performance and we'd
10198 need to configure it.
10199 Don't count //, ///, etc. as having a trailing slash.
10200 As a side effect, this removes a C99ism reported by Matthew Woehlke.
10201 (rpl_rename_dest_slash): On failure, use rename's errno rather
10202 than (in some cases) an incorrect or junk errno.
10203 Simplify code by removing need to compute length; this does
10204 cause it to make two passes instead of one over the file name,
10207 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
10208 change, since Autoconf's version may no longer be appropriate now
10209 that we are using CVS Autoconf's version. Add support for Tandem.
10211 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
10212 Bruno Haible <bruno@clisp.org>
10214 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
10215 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
10216 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
10217 gl_AC_TYPE_LONG_LONG.
10219 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
10220 instead of HAVE_LONG_LONG.
10221 * lib/printf-args.c (printf_fetchargs): Likewise.
10222 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
10223 * lib/vasnprintf.c (VASNPRINTF): Likewise.
10224 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
10225 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
10226 gl_AC_TYPE_LONG_LONG.
10228 2006-10-11 Bruno Haible <bruno@clisp.org>
10230 * m4/longlong.m4: Add comments.
10231 * m4/ulonglong.m4: Likewise.
10233 2006-10-10 Bruno Haible <bruno@clisp.org>
10235 Make it possible to #define stpcpy, strdup to aliases.
10236 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
10237 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
10239 2006-10-10 Bruno Haible <bruno@clisp.org>
10241 Make it possible to #define gcd to an alias.
10242 * lib/gcd.c: Include config.h.
10244 2006-10-10 Bruno Haible <bruno@clisp.org>
10246 Make it possible to #define c_isascii to an alias.
10247 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
10248 defined. Undefine the macros before defining them, to avoid gcc
10250 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
10251 define NO_C_CTYPE_MACROS early.
10253 2006-10-10 Bruno Haible <bruno@clisp.org>
10255 Make it possible to #define set_program_name to an alias.
10256 * lib/progname.c: Don't undefine set_program_name; instead, undefine
10257 ENABLE_RELOCATABLE early.
10259 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
10261 Port to Tandem NSK OSS, which has 64-bit signed int but at most
10262 32-bit unsigned int. Problem reported by Matthew Woehlke in:
10263 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
10264 More generally, don't assume that 64-bit signed int is available
10265 if unsigned int is, and vice versa.
10266 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
10267 unsigned symbols, not on their signed counterparts.
10268 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
10269 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
10270 (UINT64_C, UINTMAX_C):
10272 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
10273 unsigned counterparts.
10274 (Have_long_long, Unsigned): New macros.
10275 (Int): Renamed from INT.
10276 (strtoimax): Use the new macros.
10277 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
10278 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
10279 * modules/inttypes (inttypes.h): Substitute
10280 HAVE_UNSIGNED_LONG_LONG_INT.
10281 * modules/stdint (stdint.h): Likewise.
10282 (Files): Add m4/ulonglong.m4.
10284 2006-10-10 Bruno Haible <bruno@clisp.org>
10286 Fix a gcc -Wshadow warning.
10287 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
10289 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
10290 gl_linked_indexof_from_to): Likewise.
10291 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
10293 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
10295 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
10296 Reported by Eric Blake.
10298 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
10300 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
10301 for NetBSD. Problem reported by Bruno Haible.
10303 2006-10-09 Jim Meyering <jim@meyering.net>
10305 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
10306 Patch from Bruno Haible.
10308 2006-10-09 Jim Meyering <jim@meyering.net>
10310 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
10311 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
10312 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
10314 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
10316 Don't include <config.h> twice; this doesn't work in some cases,
10317 e.g., when config.h has "#define intmax_t long long int" and
10318 we include <config.h>, <inttypes.h>, <config.h> in that order.
10319 Problem reported by Matthew Woehlke in:
10320 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
10321 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
10322 * lib/fts-cycle.c: Don't include config.h.
10323 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
10324 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
10325 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
10326 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
10328 * lib/xstrtoumax.c: Likewise.
10329 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
10330 __strtol and the like, so that this module is more like its siblings.
10331 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
10332 Remove; no longer needed now that we assume gnulib inttypes.h.
10334 2006-10-08 Bruno Haible <bruno@clisp.org>
10336 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
10339 2006-10-07 Jim Meyering <jim@meyering.net>
10341 * modules/inttypes (inttypes.h): Revert what seems to have been
10342 an inadvertent part of today's change: use "|", not "/" in the
10343 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
10345 2006-10-07 Bruno Haible <bruno@clisp.org>
10347 * modules/sublist: New file.
10349 2006-10-07 Bruno Haible <bruno@clisp.org>
10351 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
10352 * modules/argz (argz.h): Likewise.
10353 * modules/arpa_inet (arpa/inet.h): Likewise.
10354 * modules/byteswap (byteswap.h): Likewise.
10355 * modules/configmake (configmake.h): Likewise.
10356 * modules/fcntl (fcntl.h): Likewise.
10357 * modules/fnmatch (fnmatch.h): Likewise.
10358 * modules/getopt (getopt.h): Likewise.
10359 * modules/glob (glob.h): Likewise.
10360 * modules/inttypes (inttypes.h): Likewise.
10361 * modules/netinet_in (netinet/in.h): Likewise.
10362 * modules/poll (poll.h): Likewise.
10363 * modules/stdbool (stdbool.h): Likewise.
10364 * modules/stdint (stdint.h): Likewise.
10365 * modules/sys_select (sys/select.h): Likewise.
10366 * modules/sys_socket (sys/socket.h): Likewise.
10367 * modules/sys_stat (sys/stat.h): Likewise.
10368 * modules/sysexits (sysexits.h): Likewise.
10369 * modules/unistd (unistd.h): Likewise.
10370 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
10371 Add a "DO NOT EDIT" comment to the generated file.
10372 (func_import): Likewise for gnulib-comp.m4.
10374 2006-10-07 Bruno Haible <bruno@clisp.org>
10376 * lib/gl_sublist.h: New file.
10377 * lib/gl_sublist.c: New file.
10379 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
10381 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
10382 name (relative to the original working directory) and the file
10383 name component (relative to the temporary working directory). All
10385 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
10386 * lib/mkdir-p.c (make_dir_parents): Likewise.
10387 * lib/mkdir-p.h (make_dir_parents): Likewise.
10389 2006-10-06 Eric Blake <ebb9@byu.net>
10391 Define several macros for use by the clean-temp module.
10392 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
10393 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
10394 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
10396 * lib/clean-temp.h (close_stream_temp): New declaration.
10397 * lib/clean-temp.c (includes): Pull in headers according to what
10398 other modules are in use.
10399 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
10401 2006-10-06 Bruno Haible <bruno@clisp.org>
10403 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
10404 instead of fopen, fwriteerror.
10406 2006-10-06 Bruno Haible <bruno@clisp.org>
10408 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
10409 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
10411 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
10412 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
10413 Return an error indicator.
10414 Suggested by Eric Blake.
10416 2006-10-06 Bruno Haible <bruno@clisp.org>
10418 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
10419 Reported by Eric Blake.
10421 2006-10-06 Bruno Haible <bruno@clisp.org>
10423 * modules/closeout (Description): Mention stderr too.
10425 2006-10-06 Bruno Haible <bruno@clisp.org>
10426 and Paul Eggert <eggert@cs.ucla.edu>
10428 * lib/closeout.c (close_stdout): Also close stderr.
10429 * lib/closeout.h: Update comment.
10431 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
10433 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
10434 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
10435 * lib/dirchownmod.c: Include lchown.h.
10436 * lib/lchown.c: Don't include files that lchown.h now includes.
10437 Don't declare chown, since lchown.h now does that.
10438 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
10439 (lchown): Define to rpl_chown if lchown is declared but
10440 does not exist. Declare using a prototype if lchown is not
10441 declared. Add a copyright notice.
10442 * lib/mkstemp.h: Include <unistd.h>.
10443 * lib/openat.c: Include lchown.h.
10445 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
10446 we now test for that separately.
10447 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
10448 rather than O_NOFOLLOW, when testing whether it's possible to
10449 avoid a race condition reliably.
10450 * lib/savewd.c (savewd_chdir): Likewise.
10452 Remove macros that are no longer needed now that stdint.h is
10454 * lib/fsusage.c (UINTMAX_MAX): Remove.
10455 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
10456 * lib/utimecmp.c (SIZE_MAX): Remove.
10458 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
10460 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
10461 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
10464 2006-10-05 Bruno Haible <bruno@clisp.org>
10466 * lib/gl_list.h (gl_sortedlist_search_from_to,
10467 gl_sortedlist_indexof_from_to): New declarations.
10468 (gl_list_implementation): New fields sortedlist_search_from_to,
10469 sortedlist_indexof_from_to.
10470 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
10472 * lib/gl_list.c (gl_sortedlist_search_from_to,
10473 gl_sortedlist_indexof_from_to): New functions.
10474 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
10476 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
10477 (gl_array_sortedlist_search_from_to): New function.
10478 (gl_array_list_implementation): Update.
10479 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
10481 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
10482 (gl_carray_sortedlist_search_from_to): New function.
10483 (gl_carray_list_implementation): Update.
10484 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
10485 gl_linked_sortedlist_indexof_from_to): New functions.
10486 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
10487 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
10488 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
10489 gl_tree_sortedlist_indexof_from_to): New functions.
10490 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
10491 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
10493 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
10494 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
10497 2006-10-05 Bruno Haible <bruno@clisp.org>
10499 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
10500 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
10501 (struct gl_list_implementation): Add fields search_from_to,
10502 indexof_from_to. Remove fields search, indexof.
10503 (gl_list_search): Use the search_from_to method.
10504 (gl_list_search_from, gl_list_search_from_to): New functions.
10505 (gl_list_indexof): Use the indexof_from_to method.
10506 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
10507 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
10508 (gl_list_search_from, gl_list_search_from_to): New functions.
10509 (gl_list_indexof): Use the indexof_from_to method.
10510 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
10511 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
10512 gl_array_indexof. Add start_index, end_index arguments.
10513 (gl_array_search_from_to): Renamed from gl_array_search. Add
10514 start_index, end_index arguments.
10515 (gl_array_remove, gl_array_list_implementation): Update.
10516 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
10517 gl_carray_indexof. Add start_index, end_index arguments.
10518 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
10519 start_index, end_index arguments.
10520 (gl_carray_remove, gl_carray_list_implementation): Update.
10521 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
10522 gl_linked_search. Add start_index, end_index arguments.
10523 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
10524 start_index, end_index arguments.
10525 (gl_linked_remove): Update.
10526 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
10527 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
10528 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
10530 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
10531 gl_tree_search. Add start_index, end_index arguments.
10532 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
10533 start_index, end_index arguments.
10534 (gl_tree_remove): Update.
10535 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
10536 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
10537 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
10539 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
10540 gl_tree_search. Add start_index, end_index arguments.
10541 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
10542 start_index, end_index arguments.
10543 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
10545 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
10547 2006-10-05 Bruno Haible <bruno@clisp.org>
10549 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
10551 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
10552 fwriteerror_temp): New declarations.
10553 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
10554 (descriptors): New variable.
10555 (cleanup): First, close the descriptors.
10556 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
10557 fclose_temp, fwriteerror_temp): New functions.
10559 2006-10-04 Jim Meyering <jim@meyering.net>
10561 * lib/fts.c (fts_open): Tiny comment change.
10563 2006-10-04 Bruno Haible <bruno@clisp.org>
10565 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
10566 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
10568 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
10569 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
10570 gl_LOCK_EARLY_BODY.
10571 (gl_LOCK): Require gl_LOCK_BODY.
10573 2006-10-04 Bruno Haible <bruno@clisp.org>
10575 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
10576 (gl_oset_search_atleast): New declaration.
10577 (struct gl_oset_implementation): Add field 'search_atleast'.
10578 (gl_oset_search_atleast): New inline function.
10579 * lib/gl_oset.c (gl_oset_search_atleast): New function.
10580 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
10581 (gl_array_oset_implementation): Update.
10582 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
10583 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
10584 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
10586 2006-10-04 Bruno Haible <bruno@clisp.org>
10588 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
10590 2006-10-03 Bruno Haible <bruno@clisp.org>
10592 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
10593 from gl_avltreehash_list_implementation.
10595 2006-10-03 Bruno Haible <bruno@clisp.org>
10597 * lib/gl_oset.c (gl_oset_add): Fix return type.
10599 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
10601 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
10603 2006-10-02 Eric Blake <ebb9@byu.net>
10605 * modules/strnlen (Depends-on): Add extensions.
10607 2006-10-02 Eric Blake <ebb9@byu.net>
10609 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
10610 definition in 2.60+.
10612 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
10614 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
10617 2006-10-02 Bruno Haible <bruno@clisp.org>
10619 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
10620 to the AUTOMAKE_OPTIONS.
10621 Reported by Jim Meyering.
10623 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
10625 Work around bug in Solaris 10 /proc file system:
10626 /proc/self/fd/NNN/.. isn't the parent directory of
10627 the directory whose file descriptor is NNN. This needs to
10628 be worked around at run time, not compile time, since a
10629 program might be built on Solaris 8, where things work, and
10631 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
10632 to use the following interface instead:
10633 (OPENAT_BUFFER_SIZE): New macro.
10634 (openat_proc_name): New function.
10635 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
10636 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
10638 * lib/openat-proc.c: New file.
10639 * modules/openat (Files): Add lib/openat-proc.c.
10640 (Depends-on): Add same-inode, stdbool.
10641 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
10643 2006-09-29 Bruno Haible <bruno@clisp.org>
10645 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
10646 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
10647 argument. Set stdout_closed before testing for ferror, not after.
10648 (fwriteerror, fwriteerror_no_ebadf): New functions.
10650 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10652 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
10654 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
10656 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
10657 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
10659 2006-09-28 Jim Meyering <jim@meyering.net>
10661 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
10662 Include <unistd.h>.
10664 2006-09-28 Bruno Haible <bruno@clisp.org>
10666 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
10667 * modules/linkedhash-list (Depends-on): Likewise.
10668 * modules/rbtreehash-list (Depends-on): Likewise.
10670 2006-09-28 Bruno Haible <bruno@clisp.org>
10672 * lib/strndup.h: Simplify the redefinition of strndup.
10673 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
10674 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
10676 2006-09-28 Bruno Haible <bruno@clisp.org>
10678 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
10679 * lib/gl_linkedhash_list.c: Likewise.
10680 * lib/gl_rbtreehash_list.c: Likewise.
10682 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
10684 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
10687 * lib/__fpending.h: Don't include <stdio_ext.h> unless
10688 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
10689 it causes <stdio_ext.h> to cause a compile-time error.
10690 Problem reported by Nelson H. F. Beebe.
10691 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
10692 of HAVE_DECL___PENDING.
10694 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
10695 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
10698 2006-09-27 Jim Meyering <jim@meyering.net>
10700 This file could end up with a definition for a function
10701 named __strndup, rather than rpl_strndup on a system with
10702 incomplete weak_alias support.
10703 * lib/strndup.c (strndup): Rename from __strndup.
10704 Remove #defines that used to map __strndup to strndup.
10705 Don't use K&R prototypes.
10706 Remove LIBC-related code, since this file is not sync'd with glibc.
10707 * lib/strndup.h: Revamp, accordingly.
10708 * m4/strndup.m4: Modernize.
10710 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
10712 * modules/savewd (Depends-on): Add 'raise'.
10713 * lib/savewd.c: Include <signal.h>, for 'raise'.
10715 2006-09-26 Jim Meyering <jim@meyering.net>
10717 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
10718 when we detect Darwin 8.7.0's acl_get_file bug.
10719 Rearrange to perform the new (below) run-test while $LIBS
10720 contains any acl-related library. Set USE_ACL at the end.
10721 (gl_ACL_GET_FILE): New function.
10723 2006-09-26 Eric Blake <ebb9@byu.net>
10725 * lib/verror.c: Include <config.h> unconditionally.
10727 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
10729 * modules/clock-time (Maintainer): Add self.
10730 * modules/getlogin_r (Depends-on): Add extensions.
10732 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10734 * modules/clock-time: New module.
10735 * modules/nanosleep (Depends-on): Add clock-time.
10736 * modules/gethrxtime (Depends-on): Likewise.
10737 * modules/gettime (Depends-on): Likewise.
10738 * modules/settime (Depends-on): Likewise.
10740 * modules/fts-lgpl: Depend on openat.
10741 * modules/mkancesdirs: Depend on savewd.
10742 * modules/mkdir-p: Likewise.
10744 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10746 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
10748 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
10749 `gl_have_arbitrary_file_name_length_limit' to
10750 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
10751 actually works between configure runs.
10753 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10754 Bruno Haible <bruno@clisp.org>
10756 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
10758 2006-09-25 Jim Meyering <jim@meyering.net>
10760 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
10761 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
10763 2006-09-25 Eric Blake <ebb9@byu.net>
10765 * gnulib-tool (func_import, func_create_testdir): Fix typos in
10766 exec's in 2006-09-18 patch when shuffling fds.
10768 2006-09-25 Bruno Haible <bruno@clisp.org>
10770 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
10771 Reported by Jim Meyering.
10773 2006-09-24 Jim Meyering <jim@meyering.net>
10775 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
10776 compare a pointer against a literal "0". That caused failures with
10777 at least HP-UX's hpcc.
10779 2006-09-22 Simon Josefsson <jas@extundo.com>
10783 * modules/gc-hmac-sha1:
10784 * modules/gc-hmac-md5:
10786 * modules/gc-arcfour: Distribute more files.
10788 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10790 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
10791 (gl_linked_iterator_from_to): Initialize struct completely.
10792 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
10793 (gl_tree_iterator_from_to): Likewise
10794 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
10795 * lib/gl_array_list.c [lint] (gl_array_iterator)
10796 (gl_array_iterator_from_to): Likewise.
10797 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
10798 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
10799 (gl_carray_iterator_from_to): Likewise.
10801 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
10802 * lib/md4.c (md4_process_block): Remove unused variable.
10803 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
10804 parentheses for clarity.
10806 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10808 * modules/bison-i18n (Depends-on): Add gettext.
10810 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10812 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
10813 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
10814 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
10815 also add missing comma that caused broken test.
10816 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
10817 stdlib.h, for `abort'.
10818 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
10820 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
10821 include unistd.h if present, for `rmdir'.
10822 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
10824 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
10825 in the process include standard headers for prototypes.
10826 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
10827 gets declared on GNU/Linux.
10828 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
10829 unistd.h, for `rmdir'.
10830 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
10832 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
10834 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
10836 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
10838 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10840 * gnulib-tool (func_version): Create output all at once. This
10841 may help avoid triggering unnecessary SIGPIPEs, and at any
10842 rate it doesn't hurt.
10844 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10845 Bruno Haible <bruno@clisp.org>
10847 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
10848 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
10849 * m4/signed.m4 (bh_C_SIGNED): Likewise.
10851 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
10852 (gl_FUNC_VASPRINTF): Invoke it.
10854 2006-09-22 Bruno Haible <bruno@clisp.org>
10856 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
10857 getloadavg.c as first argument.
10859 2006-09-22 Bruno Haible <bruno@clisp.org>
10861 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
10862 at the beginning of the gl_INIT macro.
10863 * modules/getloadavg (configure.ac): Pass $gl_source_base to
10866 2006-09-22 Bruno Haible <bruno@clisp.org>
10868 * gnulib-tool (func_create_megatestdir): Don't include the config-h
10870 Suggested by Ralf Wildenhues.
10872 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
10874 Import this patch from libc:
10876 2006-09-06 Jakub Jelinek <jakub@redhat.com>
10878 * lib/regex_internal.c (re_string_reconstruct): Handle
10879 offset < pstr->valid_raw_len && pstr->offsets_needed case.
10880 Ensure no bytes read before raw_mbs array. Pass a saved copy of
10881 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
10882 re_string_context_at.
10884 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
10886 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
10887 gl_REGEX now does it for us.
10888 (gl_REGEX): Add test taken from
10889 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
10891 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
10892 Check that large offsets work. Modernize Autoconf usages.
10893 Prefer "yes" to mean a good thing rather than a bad.
10894 Don't put "#define mkstemp" in config.h, as this might interfere
10895 with standard system headers that "#define mkstemp mkstemp64".
10897 * modules/mkstemp (Depends-on): Add extensions, so that
10898 mkstemp is visible on some platforms.
10899 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
10900 (Include): Change to "mkstemp.h" from <stdlib.h>.
10901 (Files): Add mkstemp.h.
10903 * lib/mkstemp.h: New file, since some standard headers
10905 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
10906 Include "mkstemp.h".
10907 Make the _LIBC code resemble glibc original more,
10908 e.g., use K&R style.
10909 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
10910 (mkstemp): Remove, since mkstemp.h does this for us.
10911 * lib/stdlib--.h: Include mkstemp.h.
10913 Import this patch from libc:
10915 2006-04-07 Ulrich Drepper <drepper@redhat.com>
10917 * lib/tempname.c (__gen_tempname): Change attempts_min
10918 into a macro. Use preprocessor to decide how to initialize
10919 attempts [Coverity CID 67].
10921 2006-09-20 Bruno Haible <bruno@clisp.org>
10923 * lib/mkdtemp.c: Import from libc.
10924 2006-04-07 Ulrich Drepper <drepper@redhat.com>
10925 * sysdeps/posix/tempname.c (__gen_tempname): Change
10926 attempts_min into a macro. Use preprocessor to decide how to
10927 initialize attempts [Coverity CID 67].
10928 2001-11-27 Paul Eggert <eggert@twinsun.com>
10929 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
10930 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
10932 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10934 * gnulib-tool (func_exit): New function, to allow to pass the
10935 exit status portably through the trap. Use everywhere.
10936 (--help, --version): Signal a write error.
10937 (trap): catch SIGPIPE, for write errors.
10938 Exit at the end of the trap, with the correct exit status.
10940 2006-09-19 Karl Berry <karl@gnu.org>
10942 * doc/gnulib.texi: note about the license texinfo files.
10944 2006-09-19 Eric Blake <ebb9@byu.net>
10946 * gnulib-tool: Avoid space-tab.
10948 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
10950 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
10951 that prevented coreutils 6.1 from building. Problem reported
10952 by Petter Reinholdtsen.
10954 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
10956 * gnulib-tool (avoidlist): Fix typo that broke options like
10957 --avoid=lock that are used by coreutils bootstrap.
10959 2006-09-18 Mark D. Baushke <mdb@gnu.org>
10961 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
10962 more systematically.
10964 2006-09-18 Jim Meyering <jim@meyering.net>
10966 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
10968 2006-09-18 Bruno Haible <bruno@clisp.org>
10970 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
10972 2006-09-18 Bruno Haible <bruno@clisp.org>
10974 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
10975 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
10976 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
10977 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
10978 * m4/gettext.m4: Require autoconf >= 2.52.
10979 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
10980 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
10981 of gl_cv_header_inttypes_h.
10983 2006-09-18 Bruno Haible <bruno@clisp.org>
10985 * lib/javaversion.c: Include configmake.h.
10987 2006-09-18 Bruno Haible <bruno@clisp.org>
10989 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
10990 avoid that the while loops be executed in a subshell.
10992 2006-09-18 Bruno Haible <bruno@clisp.org>
10994 * MODULES.html.sh (func_module): Break long lines.
10995 Suggested by Bruce Korb <bkorb@gnu.org>.
10997 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10999 Speed up by a factor of 1.12.
11000 * gnulib-tool (nl): New variable.
11001 (func_import): Rewrite include directive extraction to only read each
11004 2006-09-17 Bruno Haible <bruno@clisp.org>
11006 * modules/javaversion (Makefile.am): Remove DEFS setting.
11007 (Depends-on): Add configmake, for PKGDATADIR definition.
11009 2006-09-17 Bruno Haible <bruno@clisp.org>
11011 * gnulib-tool (func_create_testdir): Rewrite all files at once.
11013 2006-09-17 Bruno Haible <bruno@clisp.org>
11015 * gnulib-tool (func_append): New function, stolen from libtool.m4.
11016 (func_modules_transitive_closure, func_modules_add_dummy,
11017 func_modules_to_filelist, func_import, func_create_testdir,
11018 func_create_megatestdir, ...): Use it wherever possible.
11019 Suggested by Ralf Wildenhues.
11021 2006-09-16 Karl Berry <karl@gnu.org>
11023 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
11024 to avoid sectioning errors.
11025 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
11026 [ifinfo]: blank line after @center-ed titles.
11027 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
11028 Spell FSF address consistently with others.
11029 (These changes approved by rms.)
11031 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11033 Speed up by a factor of 1.61.
11034 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
11035 already checked module names again.
11037 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11039 Speed up by a factor of 1.13.
11040 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
11041 for new_files, and the input to func_add_or_update.
11043 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11045 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
11046 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
11048 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
11050 * modules/mkancesdirs (Depends-on): Add fcntl.
11051 * modules/savewd: New file.
11052 * MODULES.html.sh (File system functions): Add savewd.
11054 * modules/configmake (Makefile.am): Add support for the
11055 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
11057 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
11059 * m4/savewd.m4: New file.
11061 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
11063 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
11064 (dirchownmod): New arg FD. All callers changed.
11065 Use FD rather than opening the directory ourself, as opening is
11066 now the caller's responsibility.
11067 * lib/dirchownmod.h: Likewise.
11068 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
11069 hosts that require <sys/types.h> before <sys/stat.h>. Include
11070 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
11071 (test_dir): Remove.
11072 (mkancesdirs): Return length of prefix of FILE that has already
11073 been made, or -2 if there is a child doing the work. Redo
11074 algorithm so that it is O(N) rather than O(N**2). Optimize away
11075 ".", and treat ".." specially since it might stray back into
11076 already-created areas. Use a subprocess if necessary. New arg
11077 WD; all users changed. MAKE_DIR function should now return 1
11078 if it creates a directory that is not readable. Return -2 if
11079 a child process is spun off.
11080 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
11081 Adjust signature to match code.
11082 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
11083 (make_dir_parents): Use a subprocess if necessary. New arg WD;
11085 * lib/savewd.c, lib/savewd.h: New files.
11087 2006-09-15 Jim Meyering <jim@meyering.net>
11089 * modules/rename-dest-slash: New module.
11090 * MODULES.html.sh (posix_compat): Add it here.
11092 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
11094 2006-09-15 Jim Meyering <jim@meyering.net>
11096 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
11099 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
11101 2006-09-15 Jim Meyering <jim@meyering.net>
11103 * lib/rename-dest-slash.c (has_trailing_slash): Use
11104 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
11105 (rpl_rename_dest_slash): Perform the cheaper trailing slash
11106 test before testing whether SRC is a directory.
11107 Suggestions from Bruno Haible.
11109 Avoid a warning about an unused variable.
11110 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
11111 into the #ifdef block where it's used.
11113 * lib/rename-dest-slash.c: New file.
11115 2006-09-14 Bruno Haible <bruno@clisp.org>
11117 * lib/allocsa.c: Include <config.h> unconditionally.
11118 * lib/asnprintf.c: Likewise.
11119 * lib/asprintf.c: Likewise.
11120 * lib/c-strcasecmp.c: Likewise.
11121 * lib/c-strcasestr.c: Likewise.
11122 * lib/c-strncasecmp.c: Likewise.
11123 * lib/c-strstr.c: Likewise.
11124 * lib/classpath.c: Likewise.
11125 * lib/clean-temp.c: Likewise.
11126 * lib/concatpath.c: Likewise.
11127 * lib/copy-file.c: Likewise.
11128 * lib/csharpcomp.c: Likewise.
11129 * lib/csharpexec.c: Likewise.
11130 * lib/execute.c: Likewise.
11131 * lib/fatal-signal.c: Likewise.
11132 * lib/findprog.c: Likewise.
11133 * lib/fwriteerror.c: Likewise.
11134 * lib/gl_array_list.c: Likewise.
11135 * lib/gl_array_oset.c: Likewise.
11136 * lib/gl_avltree_list.c: Likewise.
11137 * lib/gl_avltree_oset.c: Likewise.
11138 * lib/gl_avltreehash_list.c: Likewise.
11139 * lib/gl_carray_list.c: Likewise.
11140 * lib/gl_linked_list.c: Likewise.
11141 * lib/gl_linkedhash_list.c: Likewise.
11142 * lib/gl_list.c: Likewise.
11143 * lib/gl_oset.c: Likewise.
11144 * lib/gl_rbtree_list.c: Likewise.
11145 * lib/gl_rbtree_oset.c: Likewise.
11146 * lib/gl_rbtreehash_list.c: Likewise.
11147 * lib/imaxabs.c: Likewise.
11148 * lib/imaxdiv.c: Likewise.
11149 * lib/javacomp.c: Likewise.
11150 * lib/javaexec.c: Likewise.
11151 * lib/javaversion.c: Likewise.
11152 * lib/linebreak.c: Likewise.
11153 * lib/localcharset.c: Likewise.
11154 * lib/lock.c: Likewise.
11155 * lib/mbchar.c: Likewise.
11156 * lib/mbswidth.c: Likewise.
11157 * lib/mkdtemp.c: Likewise.
11158 * lib/pipe.c: Likewise.
11159 * lib/printf-args.c: Likewise.
11160 * lib/printf-parse.c: Likewise.
11161 * lib/progname.c: Likewise.
11162 * lib/progreloc.c: Likewise.
11163 * lib/readlink.c: Likewise.
11164 * lib/sh-quote.c: Likewise.
11165 * lib/stpcpy.c: Likewise.
11166 * lib/stpncpy.c: Likewise.
11167 * lib/strcasecmp.c: Likewise.
11168 * lib/strcasestr.c: Likewise.
11169 * lib/strcspn.c: Likewise.
11170 * lib/striconv.c: Likewise.
11171 * lib/strncasecmp.c: Likewise.
11172 * lib/strnlen1.c: Likewise.
11173 * lib/strstr.c: Likewise.
11174 * lib/strtok_r.c: Likewise.
11175 * lib/tls.c: Likewise.
11176 * lib/tmpdir.c: Likewise.
11177 * lib/unicodeio.c: Likewise.
11178 * lib/unsetenv.c: Likewise.
11179 * lib/vasnprintf.c: Likewise.
11180 * lib/vasprintf.c: Likewise.
11181 * lib/wait-process.c: Likewise.
11182 * lib/xallocsa.c: Likewise.
11183 * lib/xsetenv.c: Likewise.
11184 * lib/xstriconv.c: Likewise.
11186 2006-09-13 Simon Josefsson <jas@extundo.com>
11188 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
11189 that internally, suggested by Ralf Wildenhues
11190 <Ralf.Wildenhues@gmx.de>.
11192 2006-09-13 Simon Josefsson <jas@extundo.com>
11194 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
11196 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11198 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
11200 * lib/_fpending.c: Include <config.h> unconditionally, since we no
11201 longer worry about uses that don't define HAVE_CONFIG_H.
11202 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
11203 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
11204 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
11205 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
11206 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
11207 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
11208 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
11209 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
11210 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
11211 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
11212 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
11213 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
11214 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
11215 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
11216 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
11217 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
11218 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
11219 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
11220 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
11221 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
11222 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
11223 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
11224 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
11225 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
11226 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
11227 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
11228 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
11229 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
11230 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
11231 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
11232 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
11233 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
11234 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
11235 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
11236 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
11237 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
11238 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
11239 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
11240 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
11241 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
11242 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
11245 2006-09-13 Eric Blake <ebb9@byu.net>
11247 * lib/getopt.c: Fix typo in last commit.
11249 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
11251 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
11254 2006-09-12 Jim Meyering <jim@meyering.net>
11256 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
11257 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
11258 Reported by Nelson H. F. Beebe.
11260 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
11262 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
11263 program_invocation_name and program_invocation_short_name are
11265 * lib/argp-namefrob.h: Move declarations of program_invocation_name
11266 and program_invocation_short_name to argp.h, so they are visible
11268 * lib/argp.h: Likewise
11270 2006-09-10 Bruno Haible <bruno@clisp.org>
11272 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
11273 m4/inttypes_h.m4, m4/uintmax_t.m4.
11275 2006-09-10 Bruno Haible <bruno@clisp.org>
11277 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
11278 gl_AC_TYPE_UINTMAX_T.
11280 2006-09-10 Bruno Haible <bruno@clisp.org>
11282 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
11284 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
11286 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
11287 convention. Text proposed by Bruno Haible.
11288 (struct argp_option): Document the use of N_() wrappers.
11290 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
11291 '\v', and translate the two parts separately, instead of feeding
11292 the whole string to gettext. This allows to exclude
11293 '\v' from the strings visible to the translator by writing doc
11294 strings as N_("..") "\v" N_("..").
11296 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
11298 * config/srclist.txt: Undo latest change; the bug was fixed.
11300 2006-09-09 Bruno Haible <bruno@clisp.org>
11302 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
11303 assignments if building a library without libtool.
11304 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
11305 in func_emit_lib_Makefile_am.
11306 (func_import): When building a static library libfoo.a, arrange to
11307 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
11308 (func_create_testdir): Likewise.
11309 * modules/gc (configure.ac, Makefile.am): If building statically,
11310 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
11311 * modules/iconvme (configure.ac, Makefile.am): Likewise.
11312 * modules/striconv (configure.ac, Makefile.am): Likewise.
11313 Based on a suggestion by Ralf Wildenhues.
11315 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
11317 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
11318 Check for unistd.h too, since Autoconf doesn't assume POSIX.
11321 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
11322 Add year_2050_test to catch glibc bug 2821
11323 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
11325 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
11326 Prefer #ifdef to #if.
11328 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
11329 Return from 'main' instead of calling 'exit'.
11331 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
11333 * lib/mktime.c (guess_time_tm): Fix bug where mktime
11334 returned the maximum time_t value rather than (time_t) -1.
11335 Problem originally reported by William Bardwell
11336 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
11338 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
11340 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
11343 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
11345 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
11348 2006-09-08 Jim Meyering <jim@meyering.net>
11350 Don't make generated files read-only. That would bother too many
11351 people. However, do retain the ability to work when targets are
11352 read-only: remove the destination and temporary files before writing
11353 them (when generated via sed or echo), or by using the -f option for
11354 both cp and mv commands. Suggestion to use -f from Paul Eggert.
11355 * modules/alloca-opt, modules/argz, modules/arpa_inet:
11356 * modules/byteswap, modules/configmake, modules/fcntl:
11357 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
11358 * modules/localcharset, modules/netinet_in, modules/poll:
11359 * modules/stdbool, modules/stdint, modules/sys_select:
11360 * modules/sys_socket, modules/sys_stat, modules/sysexits:
11362 2006-09-08 Jim Meyering <jim@meyering.net>
11364 Avoid new build failure on FreeBSD 6.0.
11365 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
11366 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
11367 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
11369 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11371 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
11373 2006-09-07 Jim Meyering <jim@meyering.net>
11375 Fix global typo in last change: use chmod u-w, not chmod u-x.
11376 Spotted by Paul Eggert and Bruce Korb.
11377 * modules/alloca-opt, modules/argz, modules/arpa_inet:
11378 * modules/byteswap, modules/configmake, modules/fcntl:
11379 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
11380 * modules/localcharset, modules/netinet_in, modules/poll:
11381 * modules/stdbool, modules/stdint, modules/sys_select:
11382 * modules/sys_socket, modules/sys_stat, modules/sysexits:
11384 2006-09-06 Jim Meyering <jim@meyering.net>
11386 Make generated files be read-only.
11387 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
11388 Ensure that each generated file is now read-only.
11389 * modules/argz: Likewise.
11390 * modules/arpa_inet: Likewise.
11391 * modules/byteswap: Likewise.
11392 * modules/configmake: Likewise.
11393 * modules/fcntl: Likewise.
11394 * modules/fnmatch: Likewise.
11395 * modules/getopt: Likewise.
11396 * modules/glob: Likewise.
11397 * modules/inttypes: Likewise.
11398 * modules/netinet_in: Likewise.
11399 * modules/poll: Likewise.
11400 * modules/stdbool: Likewise.
11401 * modules/stdint: Likewise.
11402 * modules/sys_select: Likewise.
11403 * modules/sys_socket: Likewise.
11404 * modules/sys_stat: Likewise.
11405 * modules/sysexits: Likewise.
11406 * modules/localcharset: Same as above, but continue using temporary
11407 file named "t-$@" (why different?) rather than the "$@-t" used
11410 * modules/sysexits (Makefile.am): Replace literal occurrences
11411 of "sysexit.h" more readable, and more consistent, "$@".
11413 2006-09-06 Bruno Haible <bruno@clisp.org>
11415 * modules/striconv: New file.
11416 * modules/xstriconv: New file.
11417 * MODULES.html.sh (Internationalization functions): Add striconv,
11420 2006-09-06 Bruno Haible <bruno@clisp.org>
11422 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
11423 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
11424 not using libtool correctly.
11426 2006-09-06 Bruno Haible <bruno@clisp.org>
11428 * lib/striconv.h: New file.
11429 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
11431 * lib/xstriconv.h: New file.
11432 * lib/xstriconv.c: New file.
11434 2006-09-06 Bruno Haible <bruno@clisp.org>
11436 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
11439 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11441 * lib/argz_.h: Sync from Libtool.
11443 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
11444 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11446 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
11448 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
11450 * modules/trim: New file.
11452 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
11454 * lib/trim.h: New file.
11455 * lib/trim.c: New file.
11457 2006-09-05 Bruno Haible <bruno@clisp.org>
11459 * MODULES.html.sh (String handling): Add trim.
11461 2006-09-04 Karl Berry <karl@gnu.org>
11463 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
11464 until next release.
11466 2006-09-03 Bruno Haible <bruno@clisp.org>
11468 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
11471 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
11473 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
11474 not gl_GETLOADAVG. Omit unneeded semicolons.
11475 Problems reported by Ralf Wildenhues in
11476 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
11477 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
11478 at the end, which is the usual gnulib style.
11480 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
11481 of doing all the work ourselves.
11482 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
11483 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
11485 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
11487 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
11488 Problem reported by Ralf Wildenhues in
11489 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
11491 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
11492 HAVE_STRUCT_STATFS_F_FSTYPENAME.
11494 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
11496 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
11497 yesterday's patch by changing test -n to test -z.
11499 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
11501 * modules/getloadavg (Files): Add m4/getloadavg.m4.
11502 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
11503 the former is now obsolescent.
11505 * modules/chdir-long (Depends-on): Add fcntl.
11507 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
11509 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
11510 obsolescent, and programs should use gnulib instead.
11511 * m4/getloadavg.m4: New file, with contents taken from Autoconf
11512 but with prefixes changed.
11514 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
11516 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
11517 or stdbool.h, because they might not exist while configuring.
11519 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
11520 Don't include unistd.h or limits.h; not needed, since chdir-long.h
11522 (O_DIRECTORY): Remove.
11524 2006-08-31 Eric Blake <ebb9@byu.net>
11526 * gnulib-tool: Don't let emacs change spaces to TAB.
11528 2006-08-31 Bruno Haible <bruno@clisp.org>
11530 * gnulib-tool: When calling func_import more than once, do it in a
11532 Reported by Eric Blake <ebb9@byu.net>.
11534 2006-08-31 Bruno Haible <bruno@clisp.org>
11536 * gnulib-tool (nl): Remove variable.
11537 (sed_transform_lib_file): Use more robust test for config-h module.
11538 (func_import): Fix typo in 2006-08-25 patch.
11540 2006-08-31 Bruno Haible <bruno@clisp.org>
11542 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
11543 specified, augment Makefile.am variables instead of assigning them.
11545 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
11547 Work around a bug in both the Linux and SunOS 64-bit kernels:
11548 nanosleep mishandles sleeps for longer than 2**31 seconds.
11549 Problem reported by Frank v Waveren in
11550 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
11551 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
11552 Check for nanosleep bug.
11553 (LIB_NANOSLEEP): Append clock_gettime library if needed.
11555 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
11557 Work around a bug in both the Linux and SunOS 64-bit kernels:
11558 nanosleep mishandles sleeps for longer than 2**31 seconds.
11559 Problem reported by Frank v Waveren in
11560 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
11561 * lib/nanosleep.c (BILLION): New constant.
11562 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
11563 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
11566 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
11568 * modules/nanosleep (Depends-on): Add gettime.
11570 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
11571 and Simon Josefsson <jas@extundo.com>
11572 and Oskar Liljeblad <oskar@osk.mine.nu>
11574 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
11575 * gnulib-tool (func_import): New license type 'unmodifiable license
11577 * modules/fdl: Use it. Longer description.
11578 * module/gpl, module/lgpl: New files.
11580 2006-08-30 Jim Meyering <jim@meyering.net>
11582 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
11583 shadowing the parameter.
11585 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11589 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11591 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
11592 sharing with gnulib. Report by Eric Blake.
11594 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
11596 * modules/isapipe: New file.
11597 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
11599 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
11601 * modules/configmake (Makefile.am): Add a comment, and omit
11602 the CONFIGMAKE_ prefix from generated macro names. Suggested
11605 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
11607 * m4/isapipe.m4: New file.
11609 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
11611 * lib/isapipe.c, lib/isapipe.h: New files.
11613 2006-08-29 Jim Meyering <jim@meyering.net>
11615 * modules/configmake (Makefile.am): Make configmake.h depend on
11616 Makefile. Otherwise, a stale configmake.h could hang around.
11618 2006-08-29 Eric Blake <ebb9@byu.net>
11620 * lib/error.c (error_at_line, print_errno_message): Match libc, after
11621 resolution of upstream bug 3044.
11623 2006-08-29 Bruno Haible <bruno@clisp.org>
11625 * modules/localcharset (Depends-on): Add configmake.
11626 (Makefile.am): Remove setting of LIBDIR through DEFS.
11628 2006-08-29 Bruno Haible <bruno@clisp.org>
11630 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
11633 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
11635 * modules/fcntl: New file.
11636 * modules/chdir-safer (Depends-on): Add fcntl.
11637 * modules/fts: Likewise.
11638 * modules/mkdir-p: Likewise.
11640 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
11641 This undoes the most recent change, since we're now addressing the
11642 problem in a different way.
11644 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
11645 into output, since the output might be called Makefile.am even
11646 if $makefile_name is something different.
11647 (func_import): Use $makefile_am rather than
11648 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
11651 * modules/inttypes (Files): Add m4/inttypes-h.m4.
11653 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
11655 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
11656 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
11657 recent change to stdint.m4, since we're now addressing the problem in a
11660 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
11662 * m4/fcntl_h.m4: New file.
11664 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
11666 * lib/fcntl_.h: New file.
11667 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
11669 * lib/dirchownmod.c: Likewise.
11670 * lib/fts.c: Likewise.
11672 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
11673 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
11674 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
11675 just before including <inttypes.h>, to avoid circular inclusion.
11677 2006-08-28 Jim Meyering <jim@meyering.net>
11679 * doc/visibility.texi: Actually read and correct the grammar of the
11680 sentence affected by yesterday's change.
11682 2006-08-28 Eric Blake <ebb9@byu.net>
11684 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
11687 2006-08-28 Eric Blake <ebb9@byu.net>
11689 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
11691 2006-08-28 Eric Blake <ebb9@byu.net>
11693 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
11695 2006-08-28 Bruno Haible <bruno@clisp.org>
11697 * modules/c-strstr: New file, from GNU gettext.
11698 * MODULES.html.sh (String handling): Add c-strstr.
11700 2006-08-28 Bruno Haible <bruno@clisp.org>
11702 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
11704 Reported by Eric Blake.
11706 2006-08-28 Bruno Haible <bruno@clisp.org>
11708 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
11709 (VASNPRINTF): Return a string of length > INT_MAX without failing.
11710 * lib/vasprintf.c: Include errno.h, limits.h.
11711 (EOVERFLOW): New fallback definition.
11712 (vasprintf): Test here whether the string length is > INT_MAX.
11713 * lib/vsnprintf.c: Include errno.h, limits.h.
11714 (EOVERFLOW): New fallback definition.
11715 (vsnprintf): Fix bug when generated string was too long for the buffer.
11716 Test here whether the string length is > INT_MAX.
11718 2006-08-28 Bruno Haible <bruno@clisp.org>
11720 * lib/inttypes_.h (SCNX*): Remove definitions.
11721 Reported by Eric Blake.
11723 2006-08-28 Bruno Haible <bruno@clisp.org>
11725 * lib/c-strstr.h: New file, from GNU gettext.
11726 * lib/c-strstr.c: New file, from GNU gettext.
11728 2006-08-28 Bruno Haible <bruno@clisp.org>
11730 * gnulib-tool: Reorder some statements.
11732 2006-08-28 Bruno Haible <bruno@clisp.org>
11734 * gnulib-tool: New option --makefile-name.
11735 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
11737 (func_import): Write $makefile_name to the cache file, and read it from
11738 there unless explicitly specified. Use $makefile_name as file name
11739 instead of Makefile.am. Adjust the recommendations accordingly.
11741 2006-08-28 Bruno Haible <bruno@clisp.org>
11743 * gnulib-tool (func_verify_module): Check against misapplying patch.
11745 2006-08-28 Bruno Haible <bruno@clisp.org>
11747 * gnulib-tool (func_relativize, func_relconcat): New functions.
11748 Give an error if --local-dir is given with --update.
11749 Remove trailing slashes from $local_gnulib_dir.
11750 (func_import): Store the relativized $local_gnulib_dir in
11751 gnulib-cache.m4, and read it from there if not specified explicitly.
11753 2006-08-28 Bruno Haible <bruno@clisp.org>
11755 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
11756 is the current directory. Respect also $local_gnulib_dir.
11758 2006-08-28 Bruno Haible <bruno@clisp.org>
11759 Simon Josefsson <jas@extundo.com>
11762 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
11764 2006-08-27 Jim Meyering <jim@meyering.net>
11766 * doc/visibility.texi: Remove duplicate word: "pointer".
11768 2006-08-26 Bruno Haible <bruno@clisp.org>
11770 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
11771 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
11772 (Makefile.am): Create inttypes.h from inttypes_.h.
11773 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
11775 * modules/imaxabs: New file.
11777 * modules/imaxdiv: New file.
11779 2006-08-26 Bruno Haible <bruno@clisp.org>
11781 * m4/inttypes.m4: New file.
11782 * m4/_inttypes_h.m4: Remove file.
11783 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
11785 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
11787 * m4/imaxabs.m4: New file.
11789 * m4/imaxdiv.m4: New file.
11791 2006-08-26 Bruno Haible <bruno@clisp.org>
11793 * lib/inttypes_.h: New file.
11794 * lib/inttypes.h: Remove file.
11795 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
11797 * lib/imaxabs.c: New file.
11799 * lib/imaxdiv.c: New file.
11801 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
11803 New config-h module, so that "make" output needn't be cluttered
11804 by -DHAVE_CONFIG_H.
11805 * MODULES.html.sh (Support for building libraries and executables):
11807 * modules/config-h: New file.
11808 * gnulib-tool (nl, sed_transform_lib_file): New vars.
11809 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
11810 the config-h module is used.
11812 New configmake module, so that "make" output needn't be cluttered
11813 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
11814 * MODULES.html.sh (Support for building libraries and executables):
11816 * modules/configmake: New file.
11818 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
11820 * m4/config-h.m4: New file.
11822 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
11824 * config/srclist.txt: Add elisp-comp.
11826 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
11828 * MODULES.html.sh (Support for building libraries and executables):
11830 * build-aux/elisp-comp: New file.
11831 * modules/elisp-comp: New file.
11833 2006-08-24 Bruno Haible <bruno@clisp.org>
11835 * gnulib-tool (func_create_testdir): Use non-default values of
11836 sourcebase and m4base.
11838 2006-08-24 Bruno Haible <bruno@clisp.org>
11840 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
11843 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
11845 * modules/openat (Depends-on): Add lchown.
11847 2006-08-23 Bruno Haible <bruno@clisp.org>
11849 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
11850 of gl_LOCK_EARLY instead of gl_LOCK.
11852 2006-08-23 Bruno Haible <bruno@clisp.org>
11854 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
11856 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
11858 2006-08-23 Bruno Haible <bruno@clisp.org>
11860 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
11863 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
11864 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
11865 (gl_LOCK): New macro.
11867 2006-08-22 Simon Josefsson <jas@extundo.com>
11869 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
11872 2006-08-22 Simon Josefsson <jas@extundo.com>
11874 * MODULES.html.sh: Add "Support for maintaining and release
11877 * build-aux/gnupload: New file, from coreutils.
11879 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
11881 Avoid the need for AC_LIBSOURCES in m4 macros.
11882 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
11883 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
11884 * modules/check-version (EXTRA_DIST): Add check-version.h.
11885 * modules/crc (EXTRA_DIST): Add crc.h.
11886 * modules/des (EXTRA_DIST): Add des.h.
11887 * modules/gc (EXTRA_DIST): Add gc.h.
11888 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
11889 * modules/getline (EXTRA_DIST): Add getline.h.
11890 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
11891 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
11892 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
11893 * modules/md2 (EXTRA_DIST): Add md2.h.
11894 * modules/md4 (EXTRA_DIST): Add md4.h.
11895 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
11896 * modules/read-file (EXTRA_DIST): Add read-file.h.
11897 * modules/readline (EXTRA_DIST): Add readline.h.
11898 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
11899 rijndael-api-fst.h.
11901 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
11903 * m4/rijndael.m4 (gl_ARCFOUR):
11904 * m4/arctwo.m4 (gl_ARCTWO):
11905 * m4/check-version.m4 (gl_CHECK_VERSION):
11906 * m4/crc.m4 (gl_CRC):
11907 * m4/des.m4 (gl_DES):
11908 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
11909 * m4/gc.m4 (gl_GC):
11910 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
11911 * m4/getline.m4 (gl_FUNC_GETLINE):
11912 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
11913 * m4/hmac-md5.m4 (gl_HMAC_MD5):
11914 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
11915 * m4/md2.m4 (gl_MD2):
11916 * m4/md4.m4 (gl_MD4):
11917 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
11918 * m4/read-file.m4 (gl_FUNC_READ_FILE):
11919 * m4/readline.m4 (gl_FUNC_READLINE):
11920 * m4/rijndael.m4 (gl_RIJNDAEL):
11921 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
11922 to get the necessary .h files and whatnot.
11924 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
11926 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
11927 gnulib rather than the other way around.
11928 * config/srclistvars.sh (COREUTILS): Remove.
11930 2006-08-22 Jim Meyering <jim@meyering.net>
11932 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
11934 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
11936 2006-08-22 Eric Blake <ebb9@byu.net>
11938 * modules/regexprops-generic: New file.
11939 * MODULES.html.sh (Support for building documentation): List it.
11941 2006-08-22 Eric Blake <ebb9@byu.net>
11943 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
11944 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
11945 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
11946 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
11948 2006-08-22 Bruno Haible <bruno@clisp.org>
11950 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
11951 and lib_LTLIBRARIES like the other lib_* variables.
11953 2006-08-22 Bruno Haible <bruno@clisp.org>
11955 * build-aux/x-to-1.in: New file, from GNU gettext.
11957 2006-08-22 Bruno Haible <bruno@clisp.org>
11959 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
11962 2006-08-22 Bruno Haible <bruno@clisp.org>
11964 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
11967 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
11970 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
11972 Problem reported by Bruno Haible.
11974 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
11976 Avoid the need for AC_LIBSOURCES in m4 macros.
11977 * modules/acl (EXTRA_DIST): Add acl.h.
11978 * modules/argmatch (Files): Add m4/argmatch.m4.
11979 (configure.ac): Add gl_ARGMATCH.
11980 (EXTRA_DIST): Renamed from lib_SOURCES, for
11981 consistency with the other modules. Remove argmatch.c.
11982 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
11983 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
11984 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
11985 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
11986 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
11987 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
11988 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
11989 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
11990 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
11991 * modules/closeout (EXTRA_DIST): Add closeout.h.
11992 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
11993 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
11994 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
11995 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
11996 dirname.h; remove basename.c and stripslash.c.
11997 * modules/exclude (EXTRA_DIST): Add exclude.h.
11998 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
11999 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
12000 * modules/file-type (EXTRA_DIST): Add file-type.h.
12001 * modules/filemode (EXTRA_DIST): Add filemode.h.
12002 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
12003 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
12004 * modules/fpending (EXTRA_DIST): Add __fpending.h.
12005 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
12006 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
12007 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
12008 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
12009 * modules/getdate (EXTRA_DIST): Add getdate.c.
12010 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
12011 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
12012 * modules/getpass (EXTRA_DIST): Add getpass.h.
12013 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
12014 * modules/group-member (EXTRA_DIST): Add group-member.h.
12015 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
12016 * modules/hash (EXTRA_DIST): Add hash.h.
12017 * modules/human (EXTRA_DIST): Add human.h.
12018 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
12019 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
12020 * modules/lchown (EXTRA_DIST): Add lchown.h.
12021 * modules/long-options (EXTRA_DIST): Add long-options.h.
12022 * modules/lstat (EXTRA_DIST): Add lstat.h.
12023 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
12024 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
12025 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
12026 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
12027 * modules/memxor (EXTRA_DIST): Add memxor.h.
12028 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
12029 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
12030 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
12031 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
12032 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
12033 * modules/physmem (EXTRA_DIST): Add physmem.h.
12034 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
12035 * modules/posixver (EXTRA_DIST): Add posixver.h.
12036 * modules/quote (EXTRA_DIST): Add quote.h.
12037 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
12038 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
12039 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
12040 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
12041 regex_internal.h regexec.c.
12042 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
12043 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
12044 * modules/same (EXTRA_DIST): Add same.h.
12045 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
12046 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
12047 * modules/savedir (EXTRA_DIST): Add savedir.h.
12048 * modules/sha1 (EXTRA_DIST): Add sha1.h.
12049 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
12050 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
12051 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
12052 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
12053 * modules/strdup (EXTRA_DIST): Add strdup.h.
12054 * modules/strftime (EXTRA_DIST): Add strftime.h.
12055 * modules/strndup (EXTRA_DIST): Add strndup.h.
12056 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
12057 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
12058 * modules/time_r (EXTRA_DIST): Add time_r.h.
12059 * modules/timespec (EXTRA_DIST): Add timespec.h.
12060 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
12061 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
12062 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
12063 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
12064 * modules/userspec (EXTRA_DIST): Add userspec.h.
12065 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
12066 * modules/utimens (EXTRA_DIST): Add utimens.h.
12067 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
12068 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
12069 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
12070 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
12071 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
12072 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
12073 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
12074 * modules/yesno (EXTRA_DIST): Add yesno.h.
12076 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
12078 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
12080 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
12081 * m4/dev-ino.m4, same-inode.m4: Remove.
12083 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
12084 * m4/acl.m4 (AC_FUNC_ACL):
12085 * m4/backupfile.m4 (gl_BACKUPFILE):
12086 * m4/c-strtod.m4 (gl_C99_STRTOLD):
12087 * m4/canon-host.m4 (gl_CANON_HOST):
12088 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
12089 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
12090 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
12091 * m4/cloexec.m4 (gl_CLOEXEC):
12092 * m4/close-stream.m4 (gl_CLOSE_STREAM):
12093 * m4/closeout.m4 (gl_CLOSEOUT):
12094 * m4/dirfd.m4 (gl_FUNC_DIRFD):
12095 * m4/dirname.m4 (gl_DIRNAME):
12096 * m4/exclude.m4 (gl_EXCLUDE):
12097 * m4/exitfail.m4 (gl_EXITFAIL):
12098 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
12099 * m4/file-type.m4 (gl_FILE_TYPE):
12100 * m4/filemode.m4 (gl_FILEMODE):
12101 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
12102 * m4/fpending.m4 (gl_FUNC_FPENDING):
12103 * m4/fprintftime.m4 (gl_FPRINTFTIME):
12104 * m4/fts.m4 (gl_FUNC_FTS):
12105 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
12106 * m4/getdate.m4 (gl_GETDATE):
12107 * m4/gethrxtime.m4 (gl_GETHRXTIME):
12108 * m4/getpagesize.m4 (gl_GETPAGESIZE):
12109 * m4/getpass.m4 (gl_FUNC_GETPASS):
12110 * m4/gettime.m4 (gl_GETTIME):
12111 * m4/getugroups.m4 (gl_GETUGROUPS):
12112 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
12113 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
12114 * m4/hard-locale.m4 (gl_HARD_LOCALE):
12115 * m4/hash.m4 (gl_HASH):
12116 * m4/idcache.m4 (gl_IDCACHE):
12117 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
12118 * m4/lchown.m4 (gl_FUNC_LCHOWN):
12119 * m4/long-options.m4 (gl_LONG_OPTIONS):
12120 * m4/lstat.m4 (gl_FUNC_LSTAT):
12121 * m4/md5.m4 (gl_MD5):
12122 * m4/memcasecmp.m4 (gl_MEMCASECMP):
12123 * m4/memcoll.m4 (gl_MEMCOLL):
12124 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
12125 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
12126 * m4/memxor.m4 (gl_MEMXOR):
12127 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
12128 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
12129 * m4/modechange.m4 (gl_MODECHANGE):
12130 * m4/mountlist.m4 (gl_MOUNTLIST):
12131 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
12132 * m4/openat.m4 (gl_FUNC_OPENAT):
12133 * m4/pathmax.m4 (gl_PATHMAX):
12134 * m4/physmem.m4 (gl_PHYSMEM):
12135 * m4/posixtm.m4 (gl_POSIXTM):
12136 * m4/posixver.m4 (gl_POSIXVER):
12137 * m4/quote.m4 (gl_QUOTE):
12138 * m4/quotearg.m4 (gl_QUOTEARG):
12139 * m4/readtokens.m4 (gl_READTOKENS):
12140 * m4/readutmp.m4 (gl_READUTMP):
12141 * m4/regex.m4 (gl_REGEX):
12142 * m4/safe-read.m4 (gl_SAFE_READ):
12143 * m4/safe-write.m4 (gl_SAFE_WRITE):
12144 * m4/same.m4 (gl_SAME):
12145 * m4/save-cwd.m4 (gl_SAVE_CWD):
12146 * m4/savedir.m4 (gl_SAVEDIR):
12147 * m4/settime.m4 (gl_SETTIME):
12148 * m4/sha1.m4 (gl_SHA1):
12149 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
12150 * m4/stat-macros.m4 (gl_STAT_MACROS):
12151 * m4/stat-time.m4 (gl_STAT_TIME):
12152 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
12153 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
12154 * m4/strdup.m4 (gl_FUNC_STRDUP):
12155 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
12156 * m4/strndup.m4 (gl_FUNC_STRNDUP):
12157 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
12158 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
12159 * m4/time_r.m4 (gl_TIME_R):
12160 * m4/timespec.m4 (gl_TIMESPEC):
12161 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
12162 * m4/unlinkdir.m4 (gl_UNLINKDIR):
12163 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
12164 * m4/userspec.m4 (gl_USERSPEC):
12165 * m4/utimecmp.m4 (gl_UTIMECMP):
12166 * m4/utimens.m4 (gl_UTIMENS):
12167 * m4/xalloc.m4 (gl_XALLOC):
12168 * m4/xgetcwd.m4 (gl_XGETCWD):
12169 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
12170 * m4/xreadlink.m4 (gl_XREADLINK):
12171 * m4/xstrtod.m4 (gl_XSTRTOD):
12172 * m4/yesno.m4 (gl_YESNO):
12173 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
12174 to get the necessary .h files and whatnot.
12176 2006-08-21 Mark D. Baushke <mdb@gnu.org>
12177 Bruno Haible <bruno@clisp.org>
12179 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
12180 /bin/sh understanding of '!' conditional negation.
12182 2006-08-21 Jim Meyering <jim@meyering.net>
12184 * modules/openat (Depends-on): Really alphabetize.
12186 * modules/acl (Depends-on): Add error and quote.
12188 * check-module (find_included_lib_files): Add at-func.c to the
12189 ok-to-include-more-than-once white list.
12191 * modules/openat (Depends-on): Add lstat. Alphabetize.
12193 2006-08-21 Bruno Haible <bruno@clisp.org>
12195 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
12196 Emit a pkgdata_DATA variable only if some snippets add contents to it.
12197 Reported by Martin Lambers <marlam@marlam.de>.
12199 2006-08-21 Bruno Haible <bruno@clisp.org>
12201 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
12202 specify an installation location, don't emit a noinst_LIBRARIES or
12203 noinst_LTLIBRARIES assignment.
12205 2006-08-21 Bruno Haible <bruno@clisp.org>
12208 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
12209 BeOS has mbrtowc() but no <wctype.h>.
12211 2006-08-21 Bruno Haible <bruno@clisp.org>
12214 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
12217 2006-08-21 Bruno Haible <bruno@clisp.org>
12220 * lib/mbchar.h: Include <wctype.h> only if it exists.
12222 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
12224 Remove files that are no longer needed by their respective modules.
12225 * m4/obstack.m4: Remove.
12226 * m4/strerror_r.m4: Remove.
12227 * m4/uint32_t.m4: Remove.
12228 * m4/uintptr_t.m4: Remove.
12229 * m4/ullong_max.m4: Remove.
12230 * m4/xstrtoimax.m4: Remove.
12231 * m4/xstrtoumax.m4: Remove.
12233 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
12234 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
12235 dependencies now capture this.
12237 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
12238 Do not use AC_LIBSOURCES, since gnulib modules now do this.
12239 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
12240 * m4/human.m4 (gl_HUMAN): Likewise.
12241 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
12242 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
12244 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
12246 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
12247 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
12249 * m4/human.m4 (gl_HUMAN): Likewise.
12250 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
12251 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
12252 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
12253 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
12254 * m4/xstrtol (gl_XSTRTOL): Likewise.
12256 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
12257 AC_TYPE_LONG_LONG_INT.
12258 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
12259 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
12260 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
12261 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
12263 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
12266 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
12267 (gl_PREREQ_XSTRTOUL): Remove.
12269 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
12271 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
12274 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
12276 Add and change modules to make it easier for coreutils to use
12278 * modules/backupfile (Files): Remove m4/d-ino.m4.
12279 (Depends-on): Add d-ino.
12280 * modules/cycle-check (Depends-on): Add stdint.
12281 (lib_SOURCES): Add cycle-check.h.
12282 * modules/d-ino: New module.
12283 * modules/d-type: New module.
12284 * modules/error (Files): Remove m4/strerror_r.m4.
12285 * modules/filemode (Files): Add m4/st_dm_mode.m4.
12286 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
12287 m4/inttypes_h.m4, m4/uintmax_t.m4.
12288 (Depends-on): Add stdint.
12289 (lib_SOURCES): Add fsusage.h.
12290 * modules/getcwd (Files): Remove d-ino.m4.
12291 (Depends-on): Add d-ino.
12292 * modules/getndelim2 (Depends-on): Add stdint.
12293 * modules/glob (Files): Remove m4/d-type.m4.
12294 (Depends-on): Add d-type.
12295 * modules/host-os: New module.
12296 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
12297 m4/inttypes_h.m4, m4/uintmax_t.m4.
12298 * Depends-on: Add stdint.
12299 (lib_SOURCES): Add human.h.
12300 * modules/inttostr (Files): Remove m4/intmax_t.m4,
12301 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
12302 m4/uintmax_t.m4, m4/ulonglong.m4.
12303 (Depends-on): Add stdint.
12304 (EXTRA_DIST): Add inttostr.h.
12305 * modules/lchmod: New module.
12306 * modules/link-follow: New module.
12307 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
12308 (Depends-on): Add lchmod.
12309 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
12310 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
12311 (Depends-on): Add stdint.
12312 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
12313 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
12314 (Depends-on): Add stdint.
12315 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
12316 * modules/perl: New module.
12317 * modules/regex (Depends-on): Add stdint.
12318 * modules/rmdir-errno: New module.
12319 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
12321 (Depends-on): Add stdint.
12322 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
12324 (Depends-on): Add stdint.
12325 * modules/unlink-busy: New module.
12326 * modules/utimecmp (Depends-on): Add stdint.
12327 * modules/uptime: New module.
12328 * modules/winsz-ioctl: New module.
12329 * modules/winsz-termios: New module.
12330 * modules/xnanosleep (Depends-on): Add nanosleep.
12331 * modules/ullong_max: Remove.
12332 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
12333 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
12334 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
12335 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
12336 (Depends-on): Add inttypes.
12337 (lib_SOURCES): Add xstrtol.h.
12338 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
12339 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
12340 * MODULES.html.sh: Move 'assert' into the assert section.
12341 Move 'dummy' into the linking section.
12343 Add section for compatibility checks for POSIX:2001 functions,
12344 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
12345 winsz-ioctl, and winsz-termios into it.
12347 Add top-level Misc section and put host-os, perl, and uptime
12350 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
12352 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
12353 now assume the stdint module. Do not include inttypes.h.
12354 * lib/fsusage.h: Likewise.
12355 * lib/getndelim2.c: Likewise.
12356 * lib/human.h: Likewise.
12357 * lib/inttostr.h: Likewise.
12358 * lib/obstack.c: Likewise.
12359 * lib/regex_internal.h: Likewise.
12360 * lib/tempname.c: Likewise.
12361 * lib/utimecmp.c: Likewise.
12362 * lib/xstrtol.h: Likewise.
12364 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
12366 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
12367 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
12368 * lib/xtime.h: Likewise.
12370 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
12372 * modules/openat (Files): Add lib/fchmodat.c.
12373 Fixes problem reported by Jay Youngman.
12375 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
12377 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
12378 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
12380 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
12381 Bruno Haible <bruno@clisp.org>
12383 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
12384 and is a script that invokes bison. Tighten the code. Add comments.
12386 2006-08-18 Jim Meyering <jim@meyering.net>
12388 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
12389 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
12390 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
12391 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
12393 2006-08-18 Bruno Haible <bruno@clisp.org>
12395 * modules/bison-i18n: New file.
12396 * MODULES.html.sh (Internationalization functions): Add it.
12398 2006-08-18 Bruno Haible <bruno@clisp.org>
12400 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
12401 sys/statvfs.h. When getmntinfo was found, check its declaration and
12402 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
12404 2006-08-18 Bruno Haible <bruno@clisp.org>
12406 * m4/bison-i18n.m4: New file, from bison.
12408 2006-08-18 Bruno Haible <bruno@clisp.org>
12410 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
12411 (ME_DUMMY): Treat "kernfs" as a dummy.
12412 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
12414 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
12416 Update from coreutils.
12418 2006-08-15 Jim Meyering <jim@meyering.net>
12420 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
12422 2006-01-17 Jim Meyering <jim@meyering.net>
12424 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
12426 2006-01-11 Jim Meyering <jim@meyering.net>
12428 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
12429 Check for the lchmod function.
12431 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
12433 Update from coreutils.
12435 * lib/__fpending.h: Add copyright notice.
12436 * lib/fprintftime.h: Likewise.
12437 * lib/savedir.c: Use (C) in copyright notice.
12438 * lib/savedir.h: Likewise.
12440 2006-08-15 Jim Meyering <jim@meyering.net>
12442 * lib/at-func.c: New file, with the logic of all emulated at-functions.
12443 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
12444 in support of the EXPECTED_ERRNO macro.
12445 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
12446 definitions. Instead, define the appropriate symbols and include
12448 * lib/mkdirat.c (mkdirat): Likewise.
12449 * lib/fchmodat.c (fchmodat): Likewise.
12450 (ENOSYS): Remove definition.
12451 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
12452 it. Don't include "unistd--.h" -- it wasn't ever used.
12454 2006-01-17 Jim Meyering <jim@meyering.net>
12456 Rewrite fts.c not to change the current working directory,
12457 by using openat, fstatat, fdopendir, etc..
12459 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
12460 (HAVE_OPENAT_SUPPORT): Define.
12461 [_LIBC] (fchdir): Don't undef or define; no longer used.
12462 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
12463 Now, this `function' always succeeds, and consumes its file descriptor
12464 parameter -- so callers must not close such FDs. Update callers.
12465 (diropen_fd, opendirat, cwd_advance_fd): New functions.
12466 (diropen): Add parameter, SP. Adjust all callers.
12467 Implement using diropen_fd, rather than open.
12468 (fts_open): Initialize new member, fts_cwd_fd.
12469 Remove fts_rft-setting code.
12470 (fts_close): Close fts_cwd_fd, if necessary.
12471 (__opendir2): Define in terms of opendir or opendirat,
12472 depending on whether the FST_NOCHDIR flag is set.
12473 (fts_build): Since fts_safe_changedir consumes its FD, and since
12474 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
12475 and close the dup'd file descriptor upon failure.
12476 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
12477 (fts_safe_changedir): Tweak semantics to reflect that this function
12478 now calls cwd_advance_fd and hence consumes its FD argument.
12479 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
12480 [struct FTS] (fts_rft): Remove now-unused member.
12481 [struct FTS] (fts_cycle.state): Improve comment.
12483 * lib/openat.c (openat_needs_fchdir): New function.
12484 * lib/openat.h (openat_needs_fchdir): Declare it.
12486 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
12488 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
12489 Problem and fix reported by Pádraig Brady in
12490 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
12492 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
12494 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
12496 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
12498 * lib/memcoll.c (memcoll): Optimize for the common case where the
12499 arguments are bytewise equal.
12501 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
12503 * doc/regexprops-generic.texi: Add a copyright notice.
12505 2006-08-15 Bruno Haible <bruno@clisp.org>
12507 * modules/tmpdir (License): Change to LGPL.
12509 2006-08-15 Bruno Haible <bruno@clisp.org>
12511 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
12514 2006-08-14 Simon Josefsson <jas@extundo.com>
12516 * config/srclist.txt: Add gnupload.
12518 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
12520 Change copyright notice from LGPL 2 to GPL 2, since that's the
12521 standard form used in the gnulib repository.
12522 * tests/test-lock.c: Likewise.
12523 * tests/test-stdint.c: Likewise.
12524 * tests/test-tls.c: Likewise.
12526 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
12527 prelude-manager. User shorter URLs for GNU projects, without '?'.
12528 Add copyright notice.
12530 * check-module: Add copyright notice. Output a copyright
12531 notice if "--version" is specified.
12532 * modules/COPYING: New file.
12533 * tests/test-getaddrinfo.c: Add copyright notice.
12534 * tests/test-verify.c: Likewise.
12536 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
12538 Change copyright notice from LGPL 2 to GPL 2, since that's the
12539 standard form used in the gnulib repository.
12540 * lib/lock.c: LGPL -> GPL.
12541 * lib/lock.h: Likewise.
12542 * lib/strnlen1.c: Likewise.
12543 * lib/strnlen1.h: Likewise.
12544 * lib/tls.c: Likewise.
12545 * lib/tls.h: Likewise.
12546 * lib/tmpdir.c: Likewise.
12548 * lib/TODO: Remove; this belongs only in coreutils.
12550 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
12552 Add copyright notices to long-enough files that lack them, since
12553 otherwise the files aren't clearly free. Use the same notice that
12554 getdate.texi already uses.
12555 * doc/alloca-opt.texi: Add copyright notice.
12556 * doc/alloca.texi: Likewise.
12557 * doc/ctime.texi: Likewise.
12558 * doc/functions.texi: Likewise.
12559 * doc/gcd.texi: Likewise.
12560 * doc/gnulib-tool.texi: Likewise.
12561 * doc/inet_ntoa.texi: Likewise.
12562 * doc/visibility.texi: Likewise.
12564 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
12565 * doc/quote.texi: Add copyright notice.
12567 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
12568 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
12569 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
12570 Mention SunOS 5.11. Mention that everything before SunOS 5.7
12571 is now obsolete, and give a pointer to the Sun list.
12572 Add copyright notice.
12574 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
12576 * config/srclistvars.sh: Add copyright notice.
12578 2006-08-14 Eric Blake <ebb9@byu.net>
12580 Import the following change from libc:
12582 2006-08-12 Ulrich Drepper <drepper@redhat.com>
12585 * lib/misc/error.c: Add space between program name and message if file
12588 2006-08-12 Karl Berry <karl@gnu.org>
12590 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
12591 remove, these originate in gnulib now.
12593 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12595 * doc/Makefile (standards.info standards.html standards.dvi):
12596 Also depend on make-stds.texi.
12598 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
12600 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
12601 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
12603 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
12604 in wchar_t. Problem reported by Eric Blake.
12606 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
12607 LEN is smaller than SIZE. Suggested by Bruno Haible.
12608 Also, help the compiler to keep LEN in a register.
12610 2006-08-11 Eric Blake <ebb9@byu.net>
12612 * users.txt: Sort. Add tar.
12614 2006-08-11 Bruno Haible <bruno@clisp.org>
12616 * users.txt: New file.
12618 2006-08-11 Bruno Haible <bruno@clisp.org>
12620 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
12621 before <wchar.h>. Needed for OSF/1 and BSD/OS.
12623 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
12625 * modules/snprintf (Depends-on): Remove minmax.
12626 (Maintainer): Add self and Bruno.
12628 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
12630 * lib/.cppi-disable: Add snprintf.h, socket_.h.
12631 * lib/snprintf.c: Include <errno.h> and <limits.h>.
12632 (EOVERFLOW): Define if the system does not.
12633 Do not include "minmax.h"; it wasn't used.
12634 (snprintf): Don't assume size_t promotes to an unsigned type.
12635 Fix bug when generated string was too long for the buffer: the
12636 buffer's contents are supposed to be the initial prefix of the
12637 output. Don't assume vasnprintf returns EOVERFLOW if the size
12638 exceeds INT_MAX; do the check ourselves.
12640 Import the following changes from libc:
12642 2006-06-02 Jakub Jelinek <jakub@redhat.com>
12644 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
12645 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
12646 set wc to the byte which couldn't be converted.
12647 (re_string_reconstruct): Don't clear valid_raw_len before calling
12648 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
12649 tip_context using re_string_context_at.
12651 2006-05-02 Ulrich Drepper <drepper@redhat.com>
12653 * lib/posix/regex.h: g++ still cannot handled [restrict].
12655 2006-04-21 Ulrich Drepper <drepper@redhat.com>
12657 * lib/posix/regex.h: Remove special handling for VMS.
12659 2006-08-10 Jim Meyering <jim@meyering.net>
12661 * modules/same-inode: New module.
12662 * modules/dev-ino: New module.
12663 * modules/cycle-check: Depend on these modules, rather than simply
12664 including their .h files.
12665 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
12666 required via m4/cycle-check.m4.
12667 * modules/same: Depend on new same-inode module, rather than
12668 including same-inode.h.
12669 * modules/chdir-safer: New file.
12671 * modules/chown (Depends-on): Add stat-macros.
12673 2006-08-10 Jim Meyering <jim@meyering.net>
12675 * m4/cycle-check.m4: New file.
12676 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
12677 * m4/dev-ino.m4, m4/same-inode.m4: New files.
12679 2006-08-10 Eric Blake <ebb9@byu.net>
12681 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
12682 in from original proposal.
12684 2006-08-10 Eric Blake <ebb9@byu.net>
12685 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12687 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
12690 2006-08-10 Bruno Haible <bruno@clisp.org>
12692 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
12695 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
12697 Sync from coreutils.
12699 2006-07-19 Mike Frysinger <vapier@gentoo.org>
12701 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
12702 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
12704 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
12706 * modules/restrict: Remove; no longer needed now that we assume
12707 Autoconf 2.59 or later.
12708 * MODULES.html.sh: Remove 'restrict'.
12709 * modules/argp (Depends-on): Remove 'restrict'.
12710 * modules/base64 (Depends-on): Likewise.
12711 * modules/gc (Depends-on): Likewise.
12712 * modules/getaddrinfo (Depends-on): Likewise.
12713 * modules/glob (Depends-on): Likewise.
12714 * modules/inet_ntop (Depends-on): Likewise.
12715 * modules/inet_pton (Depends-on): Likewise.
12716 * modules/memxor (Depends-on): Likewise.
12717 * modules/regex (Depends-on): Likewise.
12718 * modules/strtok_r (Depends-on): Likewise.
12719 * modules/time_r (Depends-on): Likewise.
12721 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
12723 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
12724 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
12725 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
12726 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
12727 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
12728 * m4/memxor.m4 (gl_MEMXOR): Likewise.
12729 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
12730 gl_C_RESTRICT replaced by AC_C_RESTRICT.
12732 Merge from coreutils.
12733 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
12734 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
12735 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
12736 * m4/time_r.m4 (gl_TIME_R): Likewise.
12738 2006-08-09 Karl Berry <karl@gnu.org>
12740 * config/srclist.txt: no more gettext-tools, per Bruno.
12742 2006-08-08 Eric Blake <ebb9@byu.net>
12744 * modules/verror: New module.
12745 * MODULES.html.sh: Document it.
12747 2006-08-08 Eric Blake <ebb9@byu.net>
12749 * lib/verror.h, lib/verror.c: New files.
12751 2006-08-08 Eric Blake <ebb9@byu.net>
12753 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
12754 verror_at_line output complies with GNU Coding Standards even when
12757 2006-08-07 Bruno Haible <bruno@clisp.org>
12759 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
12761 Reported by Ralf Wildenhues.
12763 2006-08-07 Bruno Haible <bruno@clisp.org>
12765 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
12766 in an AC_DEFUN. Needed so that the autoconf snippets can use
12769 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12771 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
12772 Initialize pkgdata_DATA.
12773 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
12776 2006-08-06 Eric Blake <ebb9@byu.net>
12778 * lib/error.h: Fold in some upstream changes from glibc.
12779 * lib/error.c: Likewise.
12781 2006-08-04 Bruno Haible <bruno@clisp.org>
12783 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
12784 Make the mostlyclean-local rule depend on mostlyclean-generic.
12785 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
12787 2006-07-31 Bruno Haible <bruno@clisp.org>
12789 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
12790 <stdlib.h>, <string.h>.
12792 2006-07-30 Bruno Haible <bruno@clisp.org>
12794 * modules/readlink (License): Change to LGPL.
12796 2006-07-30 Bruno Haible <bruno@clisp.org>
12798 * modules/javaversion (Makefile.am): Distribute javaversion.java and
12799 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
12800 set PKGDATADIR to point to it.
12802 2006-07-30 Bruno Haible <bruno@clisp.org>
12804 * modules/csharpexec (configure.ac): Comment out macro invocation.
12805 * modules/javaexec (configure.ac): Likewise.
12806 * modules/javacomp-script (configure.ac): Likewise.
12808 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
12810 2006-07-30 Bruno Haible <bruno@clisp.org>
12812 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
12815 2006-07-30 Bruno Haible <bruno@clisp.org>
12817 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
12819 2006-07-30 Bruno Haible <bruno@clisp.org>
12821 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
12822 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
12825 2006-07-29 Bruno Haible <bruno@clisp.org>
12827 Make it possible for gnulib-tool to work with locally modified or
12828 augmented gnulib repositories.
12829 * gnulib-tool (func_usage): Document --local-dir option.
12830 (local_gnulib_dir): New variable.
12831 Handle --local-dir option.
12832 (func_lookup_file): New function.
12833 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
12834 (func_get_description, func_get_filelist, func_get_description,
12835 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
12836 func_get_automake_snippet, func_get_include_directive,
12837 func_get_license, func_get_maintainer): Use func_lookup_file.
12838 (func_import, func_create_testdir): Use func_lookup_file.
12840 2006-07-29 Bruno Haible <bruno@clisp.org>
12842 * modules/setenv (Depends-on): Add unistd.
12844 2006-07-29 Bruno Haible <bruno@clisp.org>
12846 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
12848 2006-07-29 Bruno Haible <bruno@clisp.org>
12850 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
12852 2006-07-29 Bruno Haible <bruno@clisp.org>
12854 * gnulib-tool (import, update): If there is no Makefile.am, look at
12855 aclocal.m4, instead of bailing out.
12857 2006-07-29 Bruno Haible <bruno@clisp.org>
12859 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
12860 Categorize the options by when they are useful.
12862 2006-07-29 Bruno Haible <bruno@clisp.org>
12864 * gnulib-tool (func_usage): Document option --no-libtool.
12865 Handle option --no-libtool.
12866 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
12867 for changed semantics of $libtool variable.
12868 (func_import): Likewise. If libtool is not used, show this through
12869 an option --no-libtool.
12870 (func_create_testdir): Update.
12872 2006-07-29 Bruno Haible <bruno@clisp.org>
12874 * gnulib-tool (func_import): Extend error message about missing
12877 2006-07-29 Bruno Haible <bruno@clisp.org>
12879 * gnulib-tool (func_import): Don't create the $docbase directory if
12880 there is no file to store there.
12882 2006-07-29 Bruno Haible <bruno@clisp.org>
12884 * gnulib-tool (autoconf_minversion): If a --dir option is given and
12885 relevant, look for configure.ac there, not in the current directory.
12886 Also use a simple search for AC_PREREQ, not "autoconf --trace".
12888 2006-07-29 Bruno Haible <bruno@clisp.org>
12890 * gnulib-tool (SORT): New variable.
12891 (func_usage): Undocument --assume-autoconf option.
12892 Remove --assume-autoconf option handling.
12893 (autoconf_minversion): Determine from the contents of configure.ac.
12894 (func_import): Remove autoconf_minversion handling.
12895 Suggested by Eric Blake.
12897 2006-07-29 Bruno Haible <bruno@clisp.org>
12899 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
12901 2006-07-29 Bruno Haible <bruno@clisp.org>
12903 * config/srclist.txt (*setenv.[ch]): Remove rules.
12905 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12907 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
12909 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12911 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
12914 2006-07-28 Simon Josefsson <jas@extundo.com>
12916 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
12917 * modules/inet_pton (Depends-on): Likewise.
12919 2006-07-28 Simon Josefsson <jas@extundo.com>
12921 * m4/netinet_in_h.m4: New file.
12923 2006-07-28 Simon Josefsson <jas@extundo.com>
12925 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
12928 2006-07-28 Simon Josefsson <jas@extundo.com>
12930 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
12933 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
12935 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
12936 setgid on directories only if they set these bits.
12937 * lib/modechange.h: Remove obsolete comment about masks.
12939 2006-07-28 Eric Blake <ebb9@byu.net>
12941 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
12944 2006-07-28 Bruno Haible <bruno@clisp.org>
12946 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
12948 2006-07-28 Bruno Haible <bruno@clisp.org>
12950 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
12952 2006-07-28 Bruno Haible <bruno@clisp.org>
12954 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
12955 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
12957 Avoids link error on FreeBSD 4.x.
12958 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
12960 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
12962 * lib/mbswidth.c (iswcntrl): Likewise.
12964 2006-07-27 Bruno Haible <bruno@clisp.org>
12966 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
12969 2006-07-27 Bruno Haible <bruno@clisp.org>
12971 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
12972 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
12975 2006-07-26 Eric Blake <ebb9@byu.net>
12977 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
12979 2006-07-26 Eric Blake <ebb9@byu.net>
12981 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
12982 like mingw that lack mkstemp.
12983 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
12984 avoid compilation warning on mingw.
12986 2006-07-26 Bruno Haible <bruno@clisp.org>
12988 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
12989 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
12990 INT_FAST*_MIN, INTPTR_MIN.
12992 2006-07-25 Bruno Haible <bruno@clisp.org>
12994 * modules/version-etc (Depends-on): Add stdarg.
12996 2006-07-25 Bruno Haible <bruno@clisp.org>
12998 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
13001 2006-07-25 Bruno Haible <bruno@clisp.org>
13003 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
13004 defined in <stdarg.h> or config.h.
13006 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
13008 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
13009 (gl_STDIO_SAFER): Remove.
13011 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
13013 * MODULES.html.sh (File stream based Input/Output):
13014 Add fopen-safer, tmpfile-safer; remove stdio-safer.
13015 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
13016 * modules/fopen-safer, modules/tmpfile-safer: New files.
13017 * modules/stdio-safer: Remove.
13019 2006-07-24 Bruno Haible <bruno@clisp.org>
13021 * modules/tmpdir: New file.
13022 * MODULES.html.sh (File system functions): Add it.
13024 2006-07-24 Bruno Haible <bruno@clisp.org>
13026 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
13027 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
13029 2006-07-24 Bruno Haible <bruno@clisp.org>
13031 * modules/clean-temp: New file.
13033 2006-07-24 Bruno Haible <bruno@clisp.org>
13035 * m4/tmpdir.m4: New file, from GNU gettext.
13037 2006-07-24 Bruno Haible <bruno@clisp.org>
13039 * lib/tmpdir.h: New file, from GNU gettext.
13040 * lib/tmpdir.c: New file, from GNU gettext.
13042 2006-07-24 Bruno Haible <bruno@clisp.org>
13044 * lib/clean-temp.h: New file, from GNU gettext.
13045 * lib/clean-temp.c: New file, from GNU gettext.
13047 2006-07-23 Eric Blake <ebb9@byu.net>
13049 * modules/stdio-safer (Files): Add tmpfile-safer.c.
13050 (Depends-on): Add binary-io.
13052 2006-07-23 Eric Blake <ebb9@byu.net>
13054 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
13056 2006-07-23 Eric Blake <ebb9@byu.net>
13058 * lib/tmpfile-safer.c: New file.
13059 * lib/stdio-safer.h (fopen_safer): Add prototype.
13060 * lib/stdio--.h (tmpfile): Make safer.
13062 2006-07-23 Bruno Haible <bruno@clisp.org>
13064 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
13065 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
13066 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
13067 gl_linked_remove_at): Use it.
13069 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13070 and Simon Josefsson <jas@extundo.com>
13072 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
13074 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
13076 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
13078 * modules/close-stream: New file.
13079 * modules/closeout (Description): Make it clear that it exits
13080 with a diagnostic on error.
13081 (Depends-on): Add close-stream. Remove fpending, stdbool.
13082 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
13084 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
13086 * m4/close-stream.m4: New file.
13088 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
13090 * lib/close-stream.c, lib/close-stream.h: New files.
13092 2006-07-22 Bruno Haible <bruno@clisp.org>
13094 Merge from GNU gettext 0.15.
13096 2006-05-01 Bruno Haible <bruno@clisp.org>
13098 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
13100 2006-07-22 Bruno Haible <bruno@clisp.org>
13102 * modules/javaversion: New file.
13103 * MODULES.html.sh (Java): Add javaversion.
13105 2006-03-12 Bruno Haible <bruno@clisp.org>
13107 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
13109 2005-12-04 Bruno Haible <bruno@clisp.org>
13111 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
13114 2006-06-21 Bruno Haible <bruno@clisp.org>
13116 Avoid warnings from recent versions of mcs.
13117 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
13118 -o, -L, -r any more. Use options documented since mcs-1.0
13119 instead. Similarly for -g.
13121 2005-12-04 Bruno Haible <bruno@clisp.org>
13123 * build-aux/csharpcomp.sh.in: Suffix for resources is
13124 .resources, not .resource.
13126 2005-07-09 Bruno Haible <bruno@clisp.org>
13128 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
13130 Reported by Mark Junker <mjscod@gmx.de>.
13132 2006-07-22 Bruno Haible <bruno@clisp.org>
13134 * modules/gettext: Upgrade to gettext-0.15.
13135 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
13137 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
13139 2006-07-22 Bruno Haible <bruno@clisp.org>
13141 Merge from GNU gettext 0.15.
13143 2006-03-25 Bruno Haible <bruno@clisp.org>
13145 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
13147 2006-07-21 Bruno Haible <bruno@clisp.org>
13149 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
13152 2006-05-09 Bruno Haible <bruno@clisp.org>
13154 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
13155 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
13156 for the conftestver execution.
13158 2006-05-01 Bruno Haible <bruno@clisp.org>
13160 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
13161 optional target-version argument. Verify that the compiler
13162 groks source of the specified source-version, or add -source
13163 option as necessary. Verify that the compiler produces
13164 bytecode in the specified target-version, or add -target and
13165 -source options as necessary. Make the result of the test
13166 available as variable CONF_JAVAC. Also log error output in
13169 2006-03-11 Bruno Haible <bruno@clisp.org>
13171 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
13173 2006-05-09 Bruno Haible <bruno@clisp.org>
13175 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
13176 CLASSPATH_SEPARATOR to a semicolon.
13178 2006-03-12 Bruno Haible <bruno@clisp.org>
13180 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
13181 available as variable CONF_JAVA, for subsequent autoconf
13182 tests. Also log error output in config.log.
13184 2006-07-19 Bruno Haible <bruno@clisp.org>
13186 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
13187 that getline works on glibc2 systems. Needed to avoid trouble
13189 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
13191 2005-12-04 Bruno Haible <bruno@clisp.org>
13193 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
13194 launcher (untested).
13196 2005-12-04 Bruno Haible <bruno@clisp.org>
13198 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
13200 2006-07-22 Bruno Haible <bruno@clisp.org>
13202 * gettext.m4: Update from GNU gettext-0.15.
13203 * nls.m4: Likewise.
13205 * inttypes-pri.m4: Likewise.
13206 * inttypes-h.m4: Renamed from inttypes.m4.
13207 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
13209 2006-07-22 Bruno Haible <bruno@clisp.org>
13211 Merge from GNU gettext 0.15.
13213 2005-07-05 Bruno Haible <bruno@clisp.org>
13215 * printf-args.c (printf_fetchargs): Work around broken
13216 definition of wint_t on mingw.
13218 2005-02-12 Bruno Haible <bruno@clisp.org>
13220 * xallocsa.h: Add extern "C" for C++.
13222 2006-05-17 Bruno Haible <bruno@clisp.org>
13224 Cygwin portability.
13225 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
13227 2006-04-30 Bruno Haible <bruno@clisp.org>
13229 * progreloc.c: Include <mach-o/dyld.h> if available.
13230 (find_executable): Use _NSGetExecutablePath when possible.
13232 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
13234 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
13237 2005-12-29 Bruno Haible <bruno@clisp.org>
13239 * progreloc.c (set_program_name_and_installdir): Fix
13242 2005-12-04 Bruno Haible <bruno@clisp.org>
13244 Cygwin portability.
13245 * progreloc.c: Include <windows.h> also on Cygwin.
13246 (find_executable): Add support for Cygwin.
13247 (set_program_name_and_installdir): Handle also platforms with
13250 2006-07-11 Bruno Haible <bruno@clisp.org>
13252 * javacomp.c: Fix a comment.
13253 Reported by Jim Meyering.
13255 2006-04-30 Bruno Haible <bruno@clisp.org>
13257 * javacomp.h (compile_java_class): Add source_version,
13258 target_version arguments.
13259 * javacomp.c: Rewritten to choose only a compiler that
13260 respects the specified source_version and target_version.
13262 2006-06-27 Bruno Haible <bruno@clisp.org>
13264 Assume correct S_ISDIR macro.
13265 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
13267 2006-07-22 Bruno Haible <bruno@clisp.org>
13269 * javaversion.h: New file, from GNU gettext.
13270 * javaversion.c: New file, from GNU gettext.
13271 * javaversion.java: New file, from GNU gettext.
13272 * javaversion.class: New file, from GNU gettext.
13274 2006-05-17 Bruno Haible <bruno@clisp.org>
13276 Cygwin portability.
13277 * javaexec.c (execute_java_class): Test for jview program
13280 2006-04-09 Bruno Haible <bruno@clisp.org>
13282 * fatal-signal.c: Don't include string.h.
13283 (at_fatal_signal): Use a copying loop instead of memcpy.
13285 2005-12-04 Bruno Haible <bruno@clisp.org>
13287 * csharpexec.c: Add support for 'clix' launcher (untested).
13288 (execute_csharp_using_sscli): New function.
13289 (execute_csharp_program): Call it.
13291 2006-06-21 Bruno Haible <bruno@clisp.org>
13293 Avoid warnings from recent versions of mcs.
13294 * csharpcomp.c (compile_csharp_using_mono): Don't use options
13295 -o, -L, -r any more. Use options documented since mcs-1.0
13296 instead. Similarly for -g.
13298 2005-07-09 Bruno Haible <bruno@clisp.org>
13300 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
13302 Reported by Mark Junker <mjscod@gmx.de>.
13304 2006-06-17 Bruno Haible <bruno@clisp.org>
13306 * config.charset: Update for NetBSD 3.0.
13308 2006-05-17 Bruno Haible <bruno@clisp.org>
13310 Cygwin portability.
13311 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
13313 2006-05-16 Bruno Haible <bruno@clisp.org>
13315 * localcharset.c [CYGWIN]: Include <windows.h>.
13316 (get_charset_aliases): For Cygwin, return the same CPxxx
13317 aliases list as under WIN32.
13318 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
13319 the environment variables. Fall back to GetACP().
13321 2006-04-05 Bruno Haible <bruno@clisp.org>
13323 * config.charset: Update Juan Manuel Guerrero's address.
13325 2005-02-12 Bruno Haible <bruno@clisp.org>
13327 * allocsa.h: Add extern "C" for C++.
13329 2005-02-10 Bruno Haible <bruno@clisp.org>
13331 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
13332 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
13334 2006-07-22 Bruno Haible <bruno@clisp.org>
13336 * gettext.h: Update to GNU gettext-0.15.
13338 2006-07-22 Bruno Haible <bruno@clisp.org>
13340 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
13341 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
13342 lib-prefix.m4, longdouble.m4, ssize_t.m4.
13344 2006-07-21 Eric Blake <ebb9@byu.net>
13346 * modules/stdlib-safer: New file.
13347 * MODULES.html.sh (File stream based Input/Output): Add
13350 2006-07-21 Eric Blake <ebb9@byu.net>
13352 * lib/stdlib-safer.h: New file from coreutils, required by
13355 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
13357 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
13359 2006-07-20 Bruno Haible <bruno@clisp.org>
13361 * gnulib-tool: Recognize new option --assume-autoconf.
13362 (autoconf_minversion): New variable.
13363 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
13365 2006-07-20 Bruno Haible <bruno@clisp.org>
13367 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
13369 2006-07-19 Derek R. Price <derek@ximbiot.com>
13371 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
13372 Reindent and repaginate.
13374 2006-07-19 Derek Price <derek@ximbiot.com>
13376 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
13379 2006-07-17 Bruno Haible <bruno@clisp.org>
13381 * modules/list: New file.
13382 * modules/array-list: New file.
13383 * modules/carray-list, modules/carray-list-tests: New files.
13384 * modules/linked-list, modules/linked-list-tests: New files.
13385 * modules/avltree-list, modules/avltree-list-tests: New files.
13386 * modules/rbtree-list, modules/rbtree-list-tests: New files.
13387 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
13388 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
13389 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
13390 * modules/oset: New file.
13391 * modules/array-oset: New file.
13392 * modules/avltree-oset, modules/avltree-oset-tests: New files.
13393 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
13394 * tests/test-carray_list.c: New file.
13395 * tests/test-linked_list.c: New file.
13396 * tests/test-avltree_list.c: New file.
13397 * tests/test-rbtree_list.c: New file.
13398 * tests/test-linkedhash_list.c: New file.
13399 * tests/test-avltreehash_list.c: New file.
13400 * tests/test-rbtreehash_list.c: New file.
13401 * tests/test-avltree_oset.c: New file.
13402 * tests/test-rbtree_oset.c: New file.
13403 * MODULES.html.sh (Container data structures): New section.
13405 2006-07-17 Bruno Haible <bruno@clisp.org>
13407 * m4/gl_list.m4: New file.
13409 2006-07-17 Bruno Haible <bruno@clisp.org>
13411 * lib/gl_list.h: New file.
13412 * lib/gl_list.c: New file.
13413 * lib/gl_array_list.h: New file.
13414 * lib/gl_array_list.c: New file.
13415 * lib/gl_carray_list.h: New file.
13416 * lib/gl_carray_list.c: New file.
13417 * lib/gl_linked_list.h: New file.
13418 * lib/gl_linked_list.c: New file.
13419 * lib/gl_anylinked_list1.h: New file.
13420 * lib/gl_anylinked_list2.h: New file.
13421 * lib/gl_avltree_list.h: New file.
13422 * lib/gl_avltree_list.c: New file.
13423 * lib/gl_anyavltree_list1.h: New file.
13424 * lib/gl_anyavltree_list2.h: New file.
13425 * lib/gl_rbtree_list.h: New file.
13426 * lib/gl_rbtree_list.c: New file.
13427 * lib/gl_anyrbtree_list1.h: New file.
13428 * lib/gl_anyrbtree_list2.h: New file.
13429 * lib/gl_anytree_list1.h: New file.
13430 * lib/gl_anytree_list2.h: New file.
13431 * lib/gl_linkedhash_list.h: New file.
13432 * lib/gl_linkedhash_list.c: New file.
13433 * lib/gl_anyhash_list1.h: New file.
13434 * lib/gl_anyhash_list2.h: New file.
13435 * lib/gl_avltreehash_list.h: New file.
13436 * lib/gl_avltreehash_list.c: New file.
13437 * lib/gl_rbtreehash_list.h: New file.
13438 * lib/gl_rbtreehash_list.c: New file.
13439 * lib/gl_anytreehash_list1.h: New file.
13440 * lib/gl_anytreehash_list2.h: New file.
13442 * lib/gl_oset.h: New file.
13443 * lib/gl_oset.c: New file.
13444 * lib/gl_array_oset.h: New file.
13445 * lib/gl_array_oset.c: New file.
13446 * lib/gl_avltree_oset.h: New file.
13447 * lib/gl_avltree_oset.c: New file.
13448 * lib/gl_rbtree_oset.h: New file.
13449 * lib/gl_rbtree_oset.c: New file.
13450 * lib/gl_anytree_oset.h: New file.
13452 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
13454 * m4/mkancesdirs.m4: New file.
13455 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
13456 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
13457 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
13460 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
13462 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
13463 * lib/mkancesdirs.h: New files.
13464 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
13465 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
13466 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
13467 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
13468 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
13469 callers changed. Revamp internals significantly, by not
13470 attempting to create directories that are temporarily more
13471 permissive than the final results. Do not attempt to use
13472 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
13473 This removes some race conditions, fixes some bugs, and simplifies
13474 things. Use new dirchownmod function to do owner and mode changes.
13475 * lib/mkdir-p.h: Likewise.
13476 * lib/modechange.c (octal_to_mode): New function.
13477 (struct mode_change): New member mentioned.
13478 (make_node_op_equals): New arg mentioned. All callers changed.
13479 (mode_compile): Keep track of which mode bits the user has explicitly
13481 (mode_adjust): New arg DIR, so that we implement the X op correctly.
13482 New arg PMODE_BITS, to keep track of which mode bits the user
13483 mentioned; it treats S_ISUID and S_ISGID speciall.
13484 All callers changed.
13485 * lib/modechange.h: Likewise.
13487 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
13489 * MODULES.html.sh: Add mkancestors.
13490 * modules/mkancesdirs: New module.
13491 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
13492 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
13493 The chdir-safer and afs files are now orphans; I'll remove them
13494 unless someone speaks up.
13495 Add lib/dirchownmod.c, lib/dirchownmod.h.
13496 (Depends-on): Remove alloca, chown, save-cwd, dirname.
13497 Add lchown, mkancesdirs.
13498 (Maintainer): Add self.
13500 2006-07-15 Karl Berry <karl@gnu.org>
13502 * gnulib-tool: help message wording/arrangement.
13504 2006-07-14 Simon Josefsson <jas@extundo.com>
13506 * doc/gnulib.texi (Libtool and Windows): New section.
13508 2006-07-12 Simon Josefsson <jas@extundo.com>
13510 * modules/gendocs (License): Fix license, approved by Karl.
13512 2006-07-12 Eric Blake <ebb9@byu.net>
13514 * MODULES.html.sh: Add gendocs.
13516 2006-07-11 Eric Blake <ebb9@byu.net>
13518 * modules/fdl: New module, to install doc/fdl.texi.
13519 * MODULES.html.sh: Add new section for documentation modules.
13520 * gnulib-tool: Avoid space-tab.
13521 (--doc-base): New option, to manage files from doc.
13523 2006-07-11 Eric Blake <ebb9@byu.net>
13525 * m4/absolute-header.m4: Fix comments to match recent change.
13527 2006-07-11 Eric Blake <ebb9@byu.net>
13529 * gnulib-tool: List --doc-base before --tests-base.
13531 2006-07-11 Derek R. Price <derek@ximbiot.com>
13533 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
13535 2006-07-11 Bruno Haible <bruno@clisp.org>
13537 * README: Mention where to put documentation.
13539 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13541 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
13543 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
13545 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
13548 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
13550 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
13551 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
13552 "no/such/file/stdint.h" when there is no such file, so that
13553 the resulting C code can be parsed by dodgy compilers.
13554 Problems reported by Bob Proulx.
13556 2006-07-10 Derek R. Price <derek@ximbiot.com>
13558 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
13559 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
13560 macros into the GNU _D_EXACT_NAMLEN.
13561 * lib/savedir.c: Likewise.
13562 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
13564 2006-07-10 Derek R. Price <derek@ximbiot.com>
13565 and Paul Eggert <eggert@cs.ucla.edu>
13567 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
13569 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
13570 macros into the GNU _D_EXACT_NAMLEN.
13572 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
13574 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
13575 around the absolute name, to work around a problem with the HP-UX
13576 11.23 native C compiler, reported by Bob Proulx.
13578 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
13580 * doc/maintain.texi, make-stds.texi: Sync from
13581 <http://savannah.gnu.org/projects/gnustandards>.
13583 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
13585 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
13587 2006-07-09 Jim Meyering <jim@meyering.net>
13589 * m4/glob.m4: Remove a doubled word in a comment.
13591 2006-07-09 Jim Meyering <jim@meyering.net>
13593 * lib/argp-pv.c: Remove a doubled word in a comment.
13594 * lib/check-version.c (check_version): Likewise.
13595 * lib/javacomp.c (compile_java_class): Likewise.
13597 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
13599 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
13600 for the benefit of people using Autoconf 2.60. If you want to
13601 support older Autoconf versions you can copy m4/onceonly_2_57.m4
13602 (or m4/onceonly.m4, if pre-2.57) manually.
13604 2006-07-08 Jim Meyering <jim@meyering.net>
13606 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
13608 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
13609 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
13612 2006-07-08 Jim Meyering <jim@meyering.net>
13614 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
13616 2006-07-07 Simon Josefsson <jas@extundo.com>
13618 * tests/test-crc.c: Change expected crc value, the test vector
13619 were probably computed using the old broken crc.c?
13621 2006-07-06 Simon Josefsson <jas@extundo.com>
13623 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
13624 now the canonical place for the M4 file).
13626 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
13627 from the sys_socket dependency now.
13629 * modules/inet_pton (Files): Ditto.
13631 * modules/inet_ntop (Files): Ditto.
13633 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
13635 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
13636 not gl_PREREQ_GETUSERSHELL.
13638 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13640 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
13641 with only one argument, for Autoconf 2.60.
13642 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
13643 expand to nothing, so add a shell command to avoid syntax error.
13644 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
13646 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13648 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
13650 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
13652 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
13653 no longer needed. Check for isblank decl.
13654 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
13655 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
13658 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
13660 * lib/getloadavg.c: Use __VMS, not VMS.
13661 * lib/getopt.c: Likewise.
13662 * lib/getpagesize.h: Likewise.
13663 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
13664 and probably does not work.
13666 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
13668 * lib/.cppi-disable: Add wcwidth.
13669 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
13670 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
13671 (ISGRAPH): Remove. All uses changed to isgraph.
13672 (FOLD) [!defined _LIBC]: Remove special case.
13673 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
13674 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
13676 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
13679 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
13681 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
13682 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
13683 brackets. Other minor changes to suppress some compiler
13686 2006-07-06 Derek R. Price <derek@ximbiot.com>
13687 and Paul Eggert <eggert@cs.ucla.edu>
13689 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
13690 of invoking obsolescent AC_HEADER_DIRENT macro.
13691 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
13692 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
13693 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
13694 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
13695 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
13696 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
13697 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
13698 * m4/readdir.m4: Remove; no longer needed.
13700 2006-07-06 Derek R. Price <derek@ximbiot.com>
13701 and Paul Eggert <eggert@cs.ucla.edu>
13703 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
13704 Don't worry about this obsolete case any more.
13705 (HAVE_DIR): Remove. All uses removed; we now assume you can read
13707 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
13708 worry about this obsolete case any more.
13709 * lib/fts.c: Likewise.
13710 * lib/getcwd.c: Likewise.
13711 * lib/glob.h: Likewise.
13712 * lib/savedir.c: Likewise.
13714 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
13716 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
13717 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
13718 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
13721 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
13722 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
13723 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
13725 * m4/getdate.m4 (gl_GETDATE): Likewise.
13726 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
13727 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
13728 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
13729 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
13730 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
13731 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
13732 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
13735 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
13737 * lib/memcasecmp.c: Include <limits.h>.
13738 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
13739 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
13740 Don't assume isdigit succeeds only on '0' through '9'.
13742 2006-07-05 Eric Blake <ebb9@byu.net>
13744 * modules/getaddrinfo (Depends-on): Add snprintf.
13746 2006-07-05 Eric Blake <ebb9@byu.net>
13748 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
13749 to avoid 'header present but could not be compiled' on cygwin.
13751 2006-07-05 Eric Blake <ebb9@byu.net>
13753 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
13754 missing from netdb.h.
13755 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
13757 2006-07-05 Derek R. Price <derek@ximbiot.com>
13759 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
13761 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
13762 * m4/getdate.m4 (gl_GETDATE): Likewise.
13763 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
13764 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
13765 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
13766 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
13767 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
13769 2006-07-05 Derek R. Price <derek@ximbiot.com>
13771 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
13772 All uses of is_space replaced by isspace.
13773 * lib/exit.h: Don't talk about STDC_HEADERS.
13774 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
13775 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
13776 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
13777 replaced by isprint etc.
13778 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
13779 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
13780 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
13781 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
13782 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
13783 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
13785 2006-07-05 Bruno Haible <bruno@clisp.org>
13787 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
13788 the function exists, before testing against AIX.
13789 Reported by Martin Lambers <marlam@marlam.de>.
13791 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
13793 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
13794 From Mark D. Baushke.
13796 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
13798 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
13799 to the absolute name, not just one, to bypass Sun C 5.8's
13800 "warning: #include of /usr/include/... may be non-portable".
13802 2006-07-04 Eric Blake <ebb9@byu.net>
13804 * modules/dirname-tests: New test module.
13805 * tests/test-dirname.c: New file, replacing dirname.c
13806 TEST_DIRNAME section that was recently deleted.
13808 2006-07-04 Bruno Haible <bruno@clisp.org>
13810 Assume ANSI C header files and <ctype.h> functions.
13811 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
13812 (mbsnwidth): Use isprint, iscntrl instead.
13814 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
13816 Merge from coreutils.
13817 * MODULES.html.sh: Add xstrtold.
13818 * modules/xstrtold: New file.
13819 * modules/cycle-check (Files): Add lib/same-inode.h.
13820 * modules/dirname (Files): Add m4/double-slash-root.m4.
13821 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
13822 * modules/mkdir-p (Files): Add lib/same-inode.h.
13823 * modules/same (Files): Add lib/same-inode.h.
13825 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
13827 * m4/absolute-header.m4: Renamed from full-header-path.m4.
13828 This is to keep the terminology clean; POSIX talks about
13829 "absolute pathnames", not "full pathnames", but the GNU
13830 Coding Standards say to use "path" for something else;
13831 so use "absolute" to keep both sides happy.
13832 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
13833 Set gl_absolute_header, not gl_full_header_path.
13834 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
13835 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
13838 Merge from coreutils.
13840 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
13842 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
13843 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
13844 want to require the building of c-strtod.o.
13845 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
13846 needs -lm directly.
13847 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
13849 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
13851 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
13852 --as-needed option if available. Problem reported by Albert Chin in
13853 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
13854 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
13855 cc merely issues a bunch of annoying warnings for --as-needed
13856 (this problem was reported by Bob Proulx). Also, try linking with
13857 -lm to detect a bug in binutils 2.16 (this problem was reported
13858 by Ralf Wildenhues).
13860 2006-06-18 Jim Meyering <jim@meyering.net>
13862 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
13863 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
13865 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
13866 also check for glibc-2.4's abort-inducing bug.
13868 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
13869 Low-probability clean-up should be to use rmdir to get rid of
13870 the just-created directory, not unlink.
13872 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
13873 configure fail, and request a bug report to inform us about it.
13874 Add a comment that, barring reports to the contrary, in 2007 we'll
13875 assume ftruncate is universally available.
13877 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
13879 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
13881 2006-03-12 Jim Meyering <jim@meyering.net>
13883 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
13884 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
13885 * m4/same.m4 (gl_SAME): Likewise.
13886 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
13888 2006-03-11 Eric Blake <ebb9@byu.net>
13890 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
13891 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
13892 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
13893 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
13895 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
13897 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
13898 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
13899 reported by Mark D. Baushke, one in
13900 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
13902 Merge from coreutils.
13904 * lib/.cppi-disable: Add stdint_.h.
13905 * lib/.cvsignore: Add stdint.h.
13907 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
13909 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
13910 both double and long double versions.
13911 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
13912 * lib/xstrtold.c: New file.
13913 * lib/xstrtod.h (xstrtold): New decl.
13915 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
13917 * lib/filemode.c (setst): Remove.
13918 (strmode): Rewrite to avoid setst. This makes the code shorter,
13919 (arguably) clearer, and the generated code is a bit smaller on my
13920 Debian GNU/Linux stable x86 host.
13922 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
13924 * lib/filemode.c: Include "filemode.h" first, to test the interface.
13925 Assume that filemode.h includes sys/types.h and sys/stat.h.
13926 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
13927 (ftypelet): Reorder to put common cases first, for efficiency.
13928 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
13930 (strmode): Renamed from mode_string, and now stores 12 bytes instead
13931 of 10, for compatibility with FreeBSD. All callers changed.
13932 (filemodestring): Now stores 12 bytes instead of 10, and sets file
13933 types that can't be deduced solely from st_mode. First arg is now a
13935 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
13936 (strmode): Renamed from mode_string.
13937 (filemodestring): New decl.
13938 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
13939 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
13941 (S_ISPORT, S_ISWHT): New macros, if not already defined.
13943 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
13945 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
13946 fsusage.h now does that. Include fsusage.h first, to test interface.
13947 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
13948 at most one method (the old code could have generated decls that
13949 didn't conform to C89, not that this was ever exercised).
13950 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
13952 2006-03-19 Jim Meyering <jim@meyering.net>
13954 Work even in a chroot where d_ino values for entries in "/"
13955 don't match the stat.st_ino values for the same names.
13956 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
13957 number, iterate through all entries again, using lstat instead.
13958 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
13959 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
13961 * lib/getcwd.c (__getcwd): Clarify a comment.
13962 Use memcpy in place of a call to strcpy.
13964 2006-03-12 Jim Meyering <jim@meyering.net>
13966 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
13967 matches that of the current directory (which we're about to chdir ".."
13968 out of), then save the dev-ino of the parent, instead.
13970 * lib/same-inode.h (SAME_INODE): New file/macro.
13971 * lib/chdir-safer.c (SAME_INODE): Remove definition.
13972 Include "same-inode.h", instead.
13973 * lib/same.c: Likewise.
13974 * lib/cycle-check.h: Include "same-inode.h".
13975 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
13976 * lib/cycle-check.c (SAME_INODE): Remove definition.
13977 * lib/root-dev-ino.h: Include "same-inode.h".
13979 2006-03-11 Eric Blake <ebb9@byu.net>
13981 * lib/same.c (same_name): s/base_name/last_component/
13982 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
13983 * lib/filenamecat.c (file_name_concat): Likewise.
13985 2006-03-11 Eric Blake <ebb9@byu.net>,
13986 Paul Eggert <eggert@cs.ucla.edu>
13988 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
13989 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
13991 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
13992 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
13993 (last_component): New method.
13994 * lib/dirname.c (dir_len): Determine when drive letters need a
13995 subsequent slash. Preserve // when it is special.
13996 (dir_name): Don't append dot when drive letter is absolute.
13997 [TEST_DIRNAME]: Move into a full-blown gnulib test.
13998 * lib/basename.c (base_name): New semantics - malloc the result.
13999 Preserve // when it is special. Preserve relative files that look
14000 like drive letters.
14001 (base_len): Preserve // when it is special.
14002 (last_component): New method, similar to old base_name semantics.
14003 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
14004 base_name. Strip redundant slashes from ///.
14006 2006-07-03 Jim Meyering <jim@meyering.net>
14008 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
14009 macro is used before the first cycle_check call.
14011 2006-07-03 Eric Blake <ebb9@byu.net>
14013 * modules/dirname (Depends-on): Add xstrndup.
14015 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
14017 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
14018 test cases, so that config.log is a bit easier to follow.
14020 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
14022 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
14023 both are 64 bits, since this seems to be the tradition, and this
14024 prevents gcc -Wformat from warning about usages with PRIuMAX. If
14025 we ever run into a host that prefers long long to long in this
14026 case, we'll need another configure-time test. Problem reported by
14029 2006-07-02 Eric Blake <ebb9@byu.net>
14031 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
14033 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
14035 * modules/inttypes (Depends-on): No longer depends on stdint.
14036 * modules/stdint (Description): Say more about assumptions.
14037 Say that the fast types might differ. Say macros are used.
14038 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
14039 (Makefile.am): Revise list of substituted symbols to match
14041 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
14042 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
14043 * tests/test-stdint.c (verify_same_types)
14044 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
14045 the code conforms to C99/C89.
14046 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
14047 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
14049 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
14051 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
14052 but fix a bug, by requiring at least 64 bits.
14053 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
14054 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
14055 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
14056 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
14058 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
14059 changes. Make 2.59 a prerequisite. Check and substitute for
14060 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
14061 inttypes.h. Do not use special include files; just use the
14062 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
14063 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
14064 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
14065 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
14066 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
14067 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
14068 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
14069 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
14070 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
14071 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
14072 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
14073 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
14074 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
14075 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
14076 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
14077 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
14078 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
14079 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
14080 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
14081 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
14082 WINT_MAX. Check for C99 conformance more strictly, by detecting
14083 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
14084 not check for things that C99 does not require, e.g., int8_t. If
14085 a test isn't needed unless <stdint.h> isn't working, and is
14086 unlikely to be needed for any other reason, then don't do it
14087 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
14088 size_t, since we assume C89 freestanding at least. Do not check
14089 for sig_atomic_t, wchar_t, or wint_t, since the code now does
14090 the right thing even if the types are not defined. Instead use:
14091 (gl_STDINT_TYPE_PROPERTIES): New macro.
14092 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
14093 testing whether <sys/types.h> clashes, as Autoconf does this for
14094 us now. All uses removed.
14095 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
14096 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
14097 (gl_CHECK_TYPE_SAME):
14098 Remove; no longer needed.
14099 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
14100 exists, since we'll return 0 anyway in that case.
14101 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
14103 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
14105 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
14106 possible collision with system files.
14107 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
14108 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
14109 WCHAR_MIN and WCHAR_MAX in this case.
14110 (<stddef.h>): Do not include; no longer needed.
14111 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
14112 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
14113 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
14114 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
14115 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
14116 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
14117 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
14118 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
14119 !defined(__c99))]: Include in this case too, since it's harmless
14121 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
14122 dangerous to do so.
14123 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
14124 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
14125 (_STDINT_MIN, _STDINT_MAX): New macros.
14126 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
14127 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
14128 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
14129 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
14130 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
14131 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
14132 macros, not typedefs; this simplifies things quite a bit.
14133 Use long int for all types narrower than int64_t.
14134 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
14135 Define in terms of long long int or int64_t or long int,
14136 not int64_t or int32_t. This saves some compile-time testing.
14137 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
14138 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
14139 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
14140 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
14141 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
14142 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
14143 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
14144 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
14145 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
14146 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
14147 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
14148 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
14149 undef any previous version and define our own version, for
14150 simplicity and consistency with the new macros for types.
14151 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
14152 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
14153 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
14154 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
14155 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
14156 @WINT_T_SUFFIX@ to keep things simple here.
14157 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
14158 Simplify by assuming typical 8/16/32/64 host, since we're
14159 already doing that elsewhere anyway.
14160 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
14161 and assume long long int is 64 bits if available. This
14162 speeds up 'configure'.
14164 2006-07-01 Eric Blake <ebb9@byu.net>
14166 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
14167 Reported by Andreas Buening.
14169 2006-07-01 Eric Blake <ebb9@byu.net>
14171 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
14173 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
14175 * lib/getaddrinfo.c: fixed typo
14177 2006-06-29 Jim Meyering <jim@meyering.net>
14179 * modules/strftime (Maintainer): Add my name, since with the
14180 FPRINTFTIME changes strftime.c has forked from glibc.
14182 2006-06-29 Eric Blake <ebb9@byu.net>
14184 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
14186 2006-06-29 Eric Blake <ebb9@byu.net>
14188 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
14190 2006-06-29 Eric Blake <ebb9@byu.net>
14192 * lib/stat_.h: New file.
14194 2006-06-29 Eric Blake <ebb9@byu.net>
14196 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
14197 unused static function.
14199 2006-06-29 Eric Blake <ebb9@byu.net>
14201 * doc/functions.texi (Function Portability): Document missing lstat
14204 2006-06-29 Eric Blake <ebb9@byu.net>
14206 * MODULES.html.sh: Add sys_stat.
14207 * modules/sys_stat: New module.
14208 * modules/mkstemp (Depends-on): Add sys_stat.
14210 2006-06-29 Derek R. Price <derek@ximbiot.com>
14212 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
14214 2006-06-29 Derek R. Price <derek@ximbiot.com>
14216 * m4/c-bs-a.m4: Removed.
14218 2006-06-29 Derek R. Price <derek@ximbiot.com>
14220 * lib/strftime.c: Assume strftime() exists.
14222 2006-06-29 Derek Price <derek@ximbiot.com>
14224 * modules/c-bs-a: Removed - \a is C89.
14225 * MODULES.html.sh: Remove c-bs-a.
14227 2006-06-29 Bruno Haible <bruno@clisp.org>
14229 * modules/wcwidth (License): Change to LGPL.
14231 2006-06-28 Simon Josefsson <jas@extundo.com>
14233 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
14236 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
14239 2006-06-28 Simon Josefsson <jas@extundo.com>
14241 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
14243 2006-06-28 Simon Josefsson <jas@extundo.com>
14245 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
14246 functions there. It will succeed on Windows XP, but on Windows
14247 2000 and (presumably) earlier, it will fail, and use the internal
14249 (use_win32_p): New function.
14250 (getaddrinfo): Use strtoul on servname, to support numeric ports.
14251 Support AI_NUMERICSERV to disable getservbyname.
14252 (getnameinfo): New function, only supports
14253 NI_NUMERICHOST|NI_NUMERICSERV for now.
14255 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
14256 only have some of them. Add AI_NUMERICSERV. Add prototype for
14259 2006-06-28 Eric Blake <ebb9@byu.net>
14261 * modules/wcwidth: New file.
14262 * modules/mbchar (Depends-on): Add wcwidth.
14263 * modules/mbswidth (Depends-on): Add wcwidth.
14264 * MODULES.html.sh: Add wcwidth.
14266 2006-06-28 Eric Blake <ebb9@byu.net>
14268 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
14269 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
14271 2006-06-28 Eric Blake <ebb9@byu.net>
14273 * lib/xvasprintf.h: Fix comments.
14275 2006-06-28 Eric Blake <ebb9@byu.net>
14277 * lib/mbchar.h (wcwidth): Include wcwidth.h.
14278 * lib/mbswidth.c (wcwidth): Move from here...
14279 * lib/wcwidth.h: ...to this new file.
14281 2006-06-28 Derek R. Price <derek@ximbiot.com>
14283 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
14285 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
14287 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
14289 2006-06-28 Derek R. Price <derek@ximbiot.com>
14291 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
14292 Autoconf 2.60 says this stuff was obsolete.
14294 2006-06-28 Bruno Haible <bruno@clisp.org>
14296 * modules/wcwidth (Files): Add m4/wchar_t.m4.
14298 2006-06-28 Bruno Haible <bruno@clisp.org>
14300 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
14303 2006-06-28 Bruno Haible <bruno@clisp.org>
14305 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
14306 declaration for wcwidth.
14307 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
14309 2006-06-28 Bruno Haible <bruno@clisp.org>
14311 * lib/mkdtemp.c [MINGW]: Include <io.h>.
14312 (mkdir): Define using _mkdir.
14314 2006-06-28 Bruno Haible <bruno@clisp.org>
14316 * lib/getaddrinfo.h: Fix POSIX URL.
14317 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
14319 (use_win32_p): Make static.
14320 (getaddrinfo): Reject service name if it is empty or does not consist
14321 solely of decimal digits, or if its value is > 65535.
14322 (getnameinfo): Remove useless casts.
14324 2006-06-27 Simon Josefsson <jas@extundo.com>
14326 * modules/sys_select: New file, suggested by Bruno Haible, Paul
14327 Eggert and Martin Lambers.
14329 2006-06-27 Simon Josefsson <jas@extundo.com>
14331 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
14332 Eggert and Martin Lambers.
14334 2006-06-27 Bruno Haible <bruno@clisp.org>
14336 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
14337 result to 0, not to empty.
14338 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
14340 2006-06-27 Bruno Haible <bruno@clisp.org>
14342 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
14344 2006-06-26 Simon Josefsson <jas@extundo.com>
14346 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
14349 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
14351 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
14352 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
14353 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
14355 2006-06-26 Mark D. Baushke <mdb@gnu.org>
14357 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
14359 2006-06-26 Bruno Haible <bruno@clisp.org>
14361 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
14363 2006-06-26 Bruno Haible <bruno@clisp.org>
14365 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
14367 2006-06-26 Bruno Haible <bruno@clisp.org>
14369 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
14370 SGI C compiler in pre-C99 mode.
14371 Suggested by Mark D. Baushke and Larry Jones.
14373 2006-06-26 Bruno Haible <bruno@clisp.org>
14375 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
14377 Reported by Mark D. Baushke and Larry Jones.
14379 2006-06-26 Bruno Haible <bruno@clisp.org>
14381 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
14383 Suggested by Mark D. Baushke and Larry Jones.
14385 2006-06-23 Simon Josefsson <jas@extundo.com>
14386 Bruno Haible <bruno@clisp.org>
14388 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
14389 Emit mostlyclean-local rule.
14390 (func_emit_tests_Makefile_am): Likewise.
14391 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
14393 2006-06-23 Mark D. Baushke <mdb@gnu.org>
14395 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
14397 2006-06-23 Bruno Haible <bruno@clisp.org>
14399 * tests/test-stdint.c: Update to match ISO C 99 Technical
14402 2006-06-23 Bruno Haible <bruno@clisp.org>
14404 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
14406 2006-06-23 Bruno Haible <bruno@clisp.org>
14408 * lib/stdint_.h: Treat IRIX like OpenBSD.
14410 2006-06-23 Bruno Haible <bruno@clisp.org>
14412 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
14413 ISO C 99 Technical Corrigendum 1.
14415 2006-06-22 Simon Josefsson <jas@extundo.com>
14417 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
14420 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
14422 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
14423 needed. Some compiler complained about some of them. Problem reported
14425 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
14427 2006-06-21 Simon Josefsson <jas@extundo.com>
14429 * tests/test-getaddrinfo.c: New file.
14431 * modules/getaddrinfo-tests: New file.
14433 * MODULES.html.sh: Add inet_pton.
14435 * modules/inet_pton: New file.
14437 2006-06-21 Simon Josefsson <jas@extundo.com>
14439 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
14440 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
14441 of using the (limited) gnulib implementation on Windows XP.
14443 * m4/inet_pton.m4: New file.
14445 2006-06-21 Simon Josefsson <jas@extundo.com>
14447 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
14450 * lib/socket_.h: Don't define WINVER.
14452 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
14453 slightly modified to work in gnulib.
14455 2006-06-21 Simon Josefsson <jas@extundo.com>
14457 * doc/gnulib.texi (Windows sockets): Add.
14459 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
14461 * lib/read-file.c (fread_file): Start with buffer allocation of
14462 0 bytes rather than 1 byte; this simplifies the code.
14463 Don't invoke feof; it's not needed. Refactor to avoid duplicate
14464 code to free buffer and save/restore errno.
14465 (internal_read_file): Remove unused local.
14467 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
14469 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
14470 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
14471 Problem reported by Denis Excoffier in
14472 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
14474 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
14476 * modules/sys_socket, modules/socklen: Include sys/types since
14477 FreeBSD 4.x's sys/socket.h needs it.
14479 2006-06-19 Simon Josefsson <jas@extundo.com>
14481 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
14483 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
14485 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
14487 2006-06-19 Bruno Haible <bruno@clisp.org>
14489 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
14490 and FULL_PATH_INTTYPES_H in angle brackets.
14491 Reported by Mark D. Baushke <mdb@gnu.org>.
14493 2006-06-17 Eric Blake <ebb9@byu.net>
14495 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
14498 2006-06-17 Bruno Haible <bruno@clisp.org>
14500 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
14503 2006-06-17 Bruno Haible <bruno@clisp.org>
14505 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
14506 whether errno is declared. Assume <errno.h> declares errno.
14508 2006-06-17 Bruno Haible <bruno@clisp.org>
14510 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
14512 2006-06-17 Bruno Haible <bruno@clisp.org>
14514 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
14515 problem on Solaris 2.5.1.
14517 2006-06-16 Eric Blake <ebb9@byu.net>
14519 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
14520 * lib/unicodeio.c [!defined errno]: Likewise.
14521 * lib/strtol.c [!defined errno]: Likewise.
14522 * lib/strtod.c [!defined errno]: Likewise.
14524 2006-06-15 Eric Blake <ebb9@byu.net>
14526 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
14528 2006-06-15 Eric Blake <ebb9@byu.net>
14530 * config/srclist.txt (ssize_t.m4): Lose sync.
14532 2006-06-15 Bruno Haible <bruno@clisp.org>
14534 * modules/stdint (Files): Include m4/full-header-path.m4,
14535 m4/size_max.m4, m4/wchar_t.m4.
14536 (Makefile.am): Many more substitutions.
14537 * modules/stdint-tests: New file.
14538 * tests/test-stdint.c: New file.
14540 2006-06-15 Bruno Haible <bruno@clisp.org>
14542 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
14543 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
14544 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
14545 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
14546 gl_CHECK_TYPE_SAME): New macros.
14548 2006-06-15 Bruno Haible <bruno@clisp.org>
14550 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
14552 2006-06-15 Bruno Haible <bruno@clisp.org>
14554 * lib/stdint_.h: Rewritten to be fully auto-configured.
14555 Fixes bug on HP-UX/IA64.
14557 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
14559 * lib/getdate.y (__attribute__): Don't define if already defined.
14560 Problem reported by Larry Jones.
14561 * lib/utimens.c (__attribute__): Likewise.
14563 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
14565 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
14566 reported by Andreas Schwab.
14568 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14569 Bruno Haible <bruno@clisp.org>
14571 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
14572 check for the declaration of strnlen and a run test that exposes the
14573 AIX 5.1 strnlen bug. In the failure case, #define strndup to
14576 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14577 Bruno Haible <bruno@clisp.org>
14579 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
14581 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14583 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
14584 compile test, for Tru64 4.0D.
14586 2006-05-28 Karl Berry <karl@gnu.org>
14588 * config/srclist.txt (printf-args.c): lose sync.
14590 2006-05-26 Martin Lambers <marlam@marlam.de>
14592 * lib/getpass.c: Updates the test for the native W32 API, and adds
14593 missing includes, thus fixing compilation warnings.
14595 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
14597 * lib/exclude.c (exclude_fnmatch): New function.
14598 (excluded_file_name): Call exclude_fnmatch.
14599 * lib/exclude.h (excluded_file_name): New prototype
14601 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
14603 * lib/tempname.c (small_open, large_open): New macros.
14604 (__open, __open64) [!_LIBC]: Remove.
14605 (__gen_tempname): Use small_open and large_open instead of __open
14606 and __open64. This fixes a portability bug on HP-UX 11.11i
14607 reported by Simon Wing-Tang in
14608 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
14610 2006-05-24 Bruno Haible <bruno@clisp.org>
14612 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
14613 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
14614 Reported by Thorsten Maerz <torte@netztorte.de> via
14615 Aaron Stone <aaron@serendipity.cx>.
14617 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
14619 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
14620 gl_ rather than jm_. Link, don't run, so that cross-compiles are
14621 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
14622 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
14623 not really conditional on the cache.
14624 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
14626 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
14628 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
14629 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
14630 (my_usleep): Don't mishandle maximum value.
14632 2006-05-19 Jim Meyering <jim@meyering.net>
14634 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
14636 2006-05-17 Bruno Haible <bruno@clisp.org>
14638 Cygwin portability.
14639 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
14641 2006-05-17 Bruno Haible <bruno@clisp.org>
14643 * lib/stdint_.h: Fix recognition of Cygwin.
14645 2006-05-15 Bruno Haible <bruno@clisp.org>
14647 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
14648 on libtool patch by Ralf Wildenhues.
14650 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
14652 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
14653 test for C99 conformance; (bool) 0.5 is an integer constant
14654 expression, but (bool) -0.5 is not. Problem reported by Fedor
14655 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
14657 2006-05-11 Simon Josefsson <jas@extundo.com>
14659 * m4/xvasprintf.m4: Fix obvious typo.
14661 2006-05-11 Jim Meyering <jim@meyering.net>
14663 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
14666 2006-05-10 Simon Josefsson <jas@extundo.com>
14668 * lib/md4.c: Typo fix, update copyright years.
14669 (K1, K2): Don't use L because it turn computations into 64-bit on
14672 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
14674 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
14675 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
14676 unwanted sign propagation, e.g., on hosts with 64-bit int.
14677 There still are some problems with reeelly weird theoretical hosts
14678 (e.g., 33-bit int) but it's not worth worrying about now.
14679 * lib/sha1.c (rol): Likewise.
14680 (K1, K2, K3, K4): Remove unnecessary L suffix.
14682 2006-05-10 Bruno Haible <bruno@clisp.org>
14684 * lib/des.c: Cast to avoid warnings.
14686 2006-05-09 Bruno Haible <bruno@clisp.org>
14688 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
14689 (Depends-on): Depend also on xsize, stdarg.
14690 (configure.ac): Add gl_XVASPRINTF.
14692 2006-05-09 Bruno Haible <bruno@clisp.org>
14694 * m4/xvasprintf.m4: New file.
14696 2006-05-09 Bruno Haible <bruno@clisp.org>
14698 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
14699 (EOVERFLOW): Define fallback value.
14700 (xstrcat): New function.
14701 (xvasprintf): Recognize the special case of a string concatenation.
14703 2006-05-08 Eric Blake <ebb9@byu.net>
14705 * gnulib-tool (func_version): Base copyright year on CVS date.
14706 (func_emit_copyright_notice): New function.
14707 (func_emit_lib_Makefile_am): Use it.
14708 (func_emit_tests_Makefile_am): Likewise.
14709 (func_import): Likewise.
14711 2006-05-08 Bruno Haible <bruno@clisp.org>
14713 * modules/stdarg: New file.
14714 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
14716 2006-05-08 Bruno Haible <bruno@clisp.org>
14718 * m4/stdarg.m4: New file, from GNU gettext.
14720 2006-05-08 Bruno Haible <bruno@clisp.org>
14722 * config/srclist.txt (build-aux/config.rpath): different from latest
14725 2006-05-08 Bruno Haible <bruno@clisp.org>
14727 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
14729 2006-05-05 Jim Meyering <jim@meyering.net>
14731 * m4/warning.m4: New file, derived from bison's file by the same name.
14733 2006-05-03 Bruno Haible <bruno@clisp.org>
14735 * lib/stdint_.h: Shorter URL.
14736 * lib/inttypes.h: Likewise.
14738 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
14740 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
14742 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
14744 * lib/verify.h: Document the internals better. Most of this change
14745 was written by Bruno Haible.
14747 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
14749 * doc/verify.texi: New file, partly based on a proposal by
14752 2006-05-02 Bruno Haible <bruno@clisp.org>
14754 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
14756 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
14758 2006-04-29 Bruno Haible <bruno@clisp.org>
14760 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
14761 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
14763 2006-04-29 Bruno Haible <bruno@clisp.org>
14765 * gnulib-tool: Make --update option actually work.
14767 2006-04-29 Bruno Haible <bruno@clisp.org>
14769 * doc/gcd.texi: New file.
14770 * doc/gnulib.texi: Include it.
14772 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
14774 * lib/getdate.y (get_date): When adding relative date, start with the
14775 initial time, not with the result of the first mktime call.
14777 2006-04-25 Bruno Haible <bruno@clisp.org>
14779 * gnulib-tool (func_import): Output the include directives in three
14780 blocks, sorted separately.
14781 Reported by Ben Pfaff <blp@cs.stanford.edu>.
14783 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
14785 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
14786 to define main with arguments, for C++. Reported by Eric Blake.
14787 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
14788 Prefer 'int main ()' to 'int main (void)', for C++.
14789 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14790 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
14791 for 'main', for C99 and C++.
14793 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
14795 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
14796 Don't assume that exit status -1 is valid.
14797 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14798 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
14799 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
14800 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
14801 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
14802 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
14803 not AC_TRY_RUN. Use return, not exit. Don't assume that
14804 functions can be used without declaring them, or that you can
14805 exit with status -1.
14806 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
14808 2006-04-24 Karl Berry <karl@gnu.org>
14810 * config/srclist.txt (longdouble.m4): sync lost.
14812 2006-04-24 Eric Blake <ebb9@byu.net>
14814 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
14816 2006-04-24 Bruno Haible <bruno@clisp.org>
14818 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
14819 poll() implementation in AIX.
14820 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14822 2006-04-24 Bruno Haible <bruno@clisp.org>
14824 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
14825 assigned exactly once.
14827 2006-04-23 Claudio Fontana <claudio@gnu.org>
14828 Bruno Haible <bruno@clisp.org>
14830 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
14831 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
14834 2006-04-23 Bruno Haible <bruno@clisp.org>
14836 * modules/copy-file: Depend on unistd.
14837 * modules/execute: Likewise.
14838 * modules/fatal-signal: Likewise.
14839 * modules/findprog: Likewise.
14840 * modules/mkdtemp : Likewise.
14841 * modules/pipe: Likewise.
14842 * modules/wait-process: Likewise.
14844 2006-04-23 Bruno Haible <bruno@clisp.org>
14846 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
14847 condition was already detected.
14848 Reported by Ben Pfaff <blp@cs.stanford.edu>.
14850 2006-04-23 Bruno Haible <bruno@clisp.org>
14852 * lib/copy-file.c: Include <unistd.h> unconditionally.
14853 * lib/execute.c: Likewise.
14854 * lib/fatal-signal.c: Likewise.
14855 * lib/findprog.c: Likewise.
14856 * lib/mkdtemp.c: Likewise.
14857 * lib/pipe.h: Likewise.
14858 * lib/pipe.c: Likewise.
14859 * lib/wait-process.h: Likewise.
14861 2006-04-23 Bruno Haible <bruno@clisp.org>
14863 * gnulib-tool (func_usage): Fix --import description. Document
14865 (func_import): Create temporary file in a temporary directory, if
14866 --dry-run is specified. Silence errors from 'grep' when there are no
14867 m4 files in $m4dir.
14868 (func_create_testdir): Silence errors from 'grep' when there are no
14869 m4 files in $m4dir.
14870 Reported by Karl Berry <karl@freefriends.org>.
14872 2006-04-20 Bruno Haible <bruno@clisp.org>
14874 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
14875 one argument, so that the code will be portable to Autoconf 2.60.
14876 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
14877 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
14878 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
14880 2006-04-19 Derek Price <derek@ximbiot.com>
14881 Eric Blake <ebb9@byu.net>
14883 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
14884 rather than "/full/path.h". Update comment to match. Shorten &
14885 generalize m4_translit call via AS_TR_CPP.
14887 2006-04-19 Derek Price <derek@ximbiot.com>
14888 Eric Blake <ebb9@byu.net>
14890 * lib/inttypes.h: Correct grammar in comment.
14892 2006-04-18 Derek Price <derek@ximbiot.com>
14893 Paul Eggert <eggert@cs.ucla.edu>
14895 * modules/inttypes: New file.
14896 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
14898 2006-04-18 Derek Price <derek@ximbiot.com>
14899 Paul Eggert <eggert@cs.ucla.edu>
14901 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
14904 2006-04-18 Derek Price <derek@ximbiot.com>
14905 Paul Eggert <eggert@cs.ucla.edu>
14907 * lib/inttypes.h: New file.
14908 * lib/strtoimax.c: Assume <inttypes.h>.
14910 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
14912 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
14913 isn't mounted. Problem reported by Kir Kolyshkin.
14915 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
14917 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
14918 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
14920 * lib/regex.h (RE_DUP_MAX): Update comment to match current
14923 2006-04-12 Eric Blake <ebb9@byu.net>
14925 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
14926 is now done automatically by the corresponding Autoconf macro.
14928 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
14930 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
14933 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
14935 Merge regex changes from libc, removing some of our
14936 POSIX-conformance changes that were rejected and redoing them in a
14937 less-intrusive way.
14939 * lib/regcomp.c (re_compile_internal, init_dfa):
14940 Length arg is now size_t, not Idx. All uses changed.
14941 (peek_token): Forward decl now says internal_function.
14942 (__re_error_msgid, __re_error_msgid_idx):
14943 Now static rather than extern with attribute_hidden.
14944 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
14945 For some reason libc prefers K&R style defns for external functions.
14946 (regerror) [!defined _LIBC]: Likewise.
14947 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
14948 (seek_collating_symbol_entry, lookup_collation_sequence_value):
14949 (build_range_exp, build_collating_symbol):
14950 Use K&R-style defn.
14951 (re_compile_fastmap): Use '\0' to memset, not 0.
14952 (utf8_sb_map): Make the calculations more obvious.
14953 (init_dfa, parse_bracket_exp, build_charclass_op):
14954 Call calloc and cast result, as glibc does.
14955 (init_word_char, fetch_token, peek_token, peek_token_bracket):
14956 (build_range_exp, build_collating_symbol):
14957 Now internal functions.
14959 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
14961 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
14962 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
14963 Don't depend on VMS; depend on __VMS instead, for POSIX
14964 namespace cleanness.
14965 (regoff_t): Define to ssize_t, not long int.
14967 Remove the REG_ macros named below. Instead, make the old names
14968 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
14970 (REG_BACKSLASH_ESCAPE_IN_LISTS):
14971 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
14972 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
14973 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
14974 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
14975 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
14976 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
14977 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
14978 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
14979 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
14980 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
14981 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
14982 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
14983 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
14984 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
14985 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
14986 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
14988 Remove. All uses replaced by the old RE_* names.
14989 (RE_BACKSLASH_ESCAPE_IN_LISTS):
14990 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
14991 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
14992 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
14993 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
14994 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
14995 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
14996 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
14997 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
14998 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
14999 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
15000 Don't bother having these macros be independent of each others'
15001 values, since they no longer exist in the POSIX name space.
15003 Rename the following member names back to their old names,
15004 unless !__USE_GNU_REGEX. All uses changed back.
15005 (buffer): Renamed from re_buffer.
15006 (allocated): Renamed from re_allocated.
15007 (used): Renamed from re_used.
15008 (syntax): Renamed from re_syntax.
15009 (fastmap): Renamed from re_fastmap.
15010 (translate): Renamed from re_translate.
15011 (can_be_null): Renamed from re_can_be_null.
15012 (regs_allocated): Renamed from re_regs_allocated.
15013 (fastmap_accurate): Renamed from re_fastmap_accurate.
15014 (no_sub): Renamed from re_no_sub.
15015 (not_bol): Renamed from re_not_bol.
15016 (not_eol): Renamed from re_not_eol.
15017 (newline_anchor): Renamed from re_newline_anchor.
15018 (num_regs): Renamed from rm_num_regs.
15019 (start): Renamed from rm_start.
15020 (end): Renamed from rm_end.
15022 (free_state): Move up a bit.
15024 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
15025 #define to be empty.
15026 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
15027 when that is what is intended.
15028 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
15029 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
15031 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
15032 All uses changed back to re_malloc, etc. It's now the caller's
15033 responsibility to check for overflow; all callers changed.
15034 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
15035 (re_x2nrealloc): Remove.
15036 (free_state): Remove decl.
15038 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
15039 (re_set_registers, re_exec):
15040 Use K&R-style defn.
15042 2006-01-31 Roland McGrath <roland@redhat.com>
15044 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
15045 Reported by Mike Frysinger <vapier@gentoo.org>.
15047 2006-01-15 Andreas Jaeger <aj@suse.de>
15050 * lib/regex_internal.c (re_string_reconstruct): Adjust for
15051 build_wcs_upper_buffer change.
15052 (build_wcs_upper_buffer): Change return type.
15054 2005-12-10 Ulrich Drepper <drepper@redhat.com>
15056 * lib/regex_internal.h: Include <stdint.h> if available.
15058 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
15060 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
15062 2005-10-14 Ulrich Drepper <drepper@redhat.com>
15064 * lib/regcomp.c: Adjust for changed secondary hash function.
15066 2005-09-30 Ulrich Drepper <drepper@redhat.com>
15068 * lib/regex.h: Pretty printing.
15069 Clean up namespace a bit.
15071 2005-09-30 Jakub Jelinek <jakub@redhat.com>
15073 * lib/regexec.c (update_cur_sifted_state, check_arrival,
15074 check_arrival_add_next_nodes): Avoid using uninitialized variable.
15076 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
15077 Ulrich Drepper <drepper@redhat.com>
15080 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
15082 (bitset_word_t): Renamed from bitset_word. All uses changed.
15084 2005-09-22 Ulrich Drepper <drepper@redhat.com>
15087 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
15088 * lib/regcomp.c: Remove unnecessary uses of
15089 unsigned RE_TRANSLATE_TYPE.
15090 * lib/regex_internal.h: Likewise.
15091 * lib/regex_internal.c: Likewise.
15092 * lib/regexec.c: Likewise.
15093 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
15095 2005-09-07 Ulrich Drepper <drepper@redhat.com>
15097 * lib/regexec.c (find_recover_state): Remove unnecessary
15099 (transit_state_bkref): Make DFA a const pointer.
15100 (get_subexp): Likewise.
15101 (check_arrival): Likewise.
15102 (update_cur_sifted_state): Likewise.
15103 (re_search_internal): Likewise.
15104 (prune_impossible_nodes): Likewise.
15105 (acquire_init_state_context): Likewise.
15106 (proceed_next_node): Likewise.
15107 (set_regs): Likewise.
15108 (free_fail_stack_return): Likewise.
15109 (check_arrival_expand_ecl): Mark DFA parameter as const.
15110 (check_arrival_expand_ecl_sub): Likewise.
15111 (check_subexp_limits): Likewise.
15112 (sub_epsilon_src_nodes): Likewise.
15113 (add_epsilon_src_nodes): Likewise.
15114 (merge_state_array): Likewise.
15115 (update_regs): Likewise.
15116 (build_trtable): Likewise.
15117 (sift_states_backward): Mark MCTX parameter as const.
15118 (build_sifted_states): Likewise.
15119 (update_cur_sifted_state): Likewise.
15120 (sift_states_mkref): Likewise.
15121 (check_arrival_expand_ecl): Mark eclosure as const.
15122 (check_dst_limits_calc_pos_1): Likewise.
15123 * lib/regex_internal.h (re_match_context_t): Make dfa a const
15126 2005-09-06 Ulrich Drepper <drepper@redhat.com>
15128 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
15129 (transit_state_sb): Likewise.
15130 (transit_state_mb): Likewise.
15131 (sift_states_iter_mb): Likewise.
15132 (check_arrival_add_next_nodes): Likewise.
15133 (check_node_accept_bytes): Change first parameter to pointer-to-const.
15134 [_LIBC] (re_search_2_stub): Use mempcpy.
15136 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
15137 mbrtowc for very simple UTF-8 case.
15139 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
15140 a pointer-to-const.
15141 (re_acquire_state_context): Likewise.
15142 * lib/regex_internal.h: Adjust prototypes.
15144 * lib/regex.c: Prevent using C++ compilers.
15146 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
15147 (re_acquire_state_context): Likewise.
15149 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
15151 * modules/regex (Depends-on): Add ssize_t.
15153 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
15155 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
15158 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
15160 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
15162 2006-03-29 Mark D. Baushke <mdb@gnu.org>
15163 Bruno Haible <bruno@clisp.org>
15165 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
15166 <sys/types.h> and <inttypes.h>.
15168 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15170 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
15171 `__error_t_defined', so argp.h will not typedef the former.
15173 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
15175 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
15176 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
15177 glibc names. Even if glibc is changed to conform to POSIX, the
15178 traditional names will be available anyway, since regex depends on
15179 the extensions module. Also, fix a longstanding typo in the
15180 implementation of Spencer ERE test #75 from grep 2.3. Problems
15181 reported by Emanuele Giaquinta. Also, change sense of cached
15182 variable, so that the message makes sense.
15184 2006-03-24 Simon Josefsson <jas@extundo.com>
15186 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
15187 including some doc fixes.
15188 (base64_encode_alloc): Fix +1 bug on allocation failures.
15190 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15192 * lib/base64.c (base64_encode): Do not read past end of array with
15193 unsanitized input on systems with CHAR_BIT > 8.
15195 2006-03-24 Eric Blake <ebb9@byu.net>
15197 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
15199 2006-03-22 Karl Berry <karl@gnu.org>
15201 * config/srclist.txt (*setenv.[ch]): get from coreutils.
15202 * config/srclistvars.sh (COREUTILS): new var.
15204 2006-03-17 Jim Meyering <jim@meyering.net>
15206 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
15207 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
15209 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
15211 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
15212 no longer needs it. Instead, check that regoff_t is as least
15213 as wide as ptrdiff_t.
15215 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
15216 so that our regex.h stays compatible with the installed regex.
15217 This is helpful for installers who configure --without-included-regex.
15218 Problem reported by Emanuele Giaquinta.
15220 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
15222 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
15223 Typedef to long int, not to off_, as POSIX will likely change
15226 2006-03-15 Eric Blake <ebb9@byu.net>
15228 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
15230 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
15232 * lib/argp-help.c (validate_uparams): Fix typo
15233 * lib/argp-parse.c (argp_default_options): Consistently begin help
15234 messages with a lowercase letter.
15236 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
15238 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
15239 overrun buffers and shouldn't be used (much as gets shouldn't be
15241 * lib/time_r.c (asctime_r, ctime_r): Likewise.
15243 2006-03-08 Simon Josefsson <jas@extundo.com>
15245 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
15246 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15248 2006-03-08 Simon Josefsson <jas@extundo.com>
15250 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
15251 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15253 2006-03-08 Simon Josefsson <jas@extundo.com>
15255 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
15256 signal that configure disabled the device.
15258 2006-03-08 Simon Josefsson <jas@extundo.com>
15260 * build-aux/maint.mk: Fix refresh-po, to handle no translated
15263 2006-03-07 Simon Josefsson <jas@extundo.com>
15265 * modules/getopt (Depends-on): Add unistd.
15267 * modules/unistd: New file.
15269 2006-03-07 Simon Josefsson <jas@extundo.com>
15271 * modules/gc-random: New file.
15273 2006-03-07 Simon Josefsson <jas@extundo.com>
15275 * m4/unistd_h.m4: New file.
15277 2006-03-07 Simon Josefsson <jas@extundo.com>
15279 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
15280 test to be side-effect free by storing the result in the cache
15281 variable gl_cv_lib_readline, and moving the assignment of
15282 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
15283 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15285 2006-03-07 Simon Josefsson <jas@extundo.com>
15287 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
15288 error on missing devices (the functions will return an error).
15290 * m4/gc.m4: Move random stuff to gc-random.m4
15292 2006-03-07 Simon Josefsson <jas@extundo.com>
15294 * lib/unistd_.h: New file.
15296 2006-03-07 Simon Josefsson <jas@extundo.com>
15298 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
15300 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
15302 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
15303 Problem reported by Juan Manuel Guerrero.
15305 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
15307 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
15309 * lib/getlogin_r.c: Likewise.
15310 * lib/getlogin_r.h: Likewise.
15311 * lib/glob.c: Likewise.
15312 * lib/pagealign_alloc.c: Likewise.
15313 * lib/unistd_.h: Remove; no longer needed.
15315 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
15317 * MODULES.html.sh (Support for systems lacking POSIX:2001):
15319 * modules/c-stack (Depends-on): Add unistd.
15320 * modules/getlogin_r: Likewise.
15321 * modules/glob: Likewise.
15322 * modules/pagealign_alloc: Likewise.
15323 * modules/unistd (Files): Remove lib/unistd_.h.
15324 (EXTRA_DIST): Remove.
15325 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
15327 (MOSTLYCLEANFILES): Remove unistd.h-t.
15329 2006-03-03 Simon Josefsson <jas@extundo.com>
15331 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
15333 2006-03-03 Simon Josefsson <jas@extundo.com>
15335 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
15338 2006-03-03 Simon Josefsson <jas@extundo.com>
15340 * build-aux/maint.mk: Add indent target.
15342 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
15344 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
15345 our replacement poll.h in any case, to avoid a differing
15346 declaration from a system header. Seen on AIX.
15348 2006-03-01 Simon Josefsson <jas@extundo.com>
15350 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
15353 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
15355 * modules/gettime (Depends-on): Add extensions module.
15356 * modules/nanosleep (Depends-on): Likewise.
15357 * modules/settime (Depends-on): Likewise.
15359 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
15361 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
15362 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
15364 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15365 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
15367 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
15368 not "==". Reported by Ralf Wildenhues.
15370 2006-03-01 Karl Berry <karl@gnu.org>
15372 * doc/Copyright/request-*: new files, synced from gnuorg.
15374 2006-03-01 Karl Berry <karl@gnu.org>
15376 * config/srclist.txt (Copyright/*): new entries.
15378 2006-02-28 Simon Josefsson <jas@extundo.com>
15380 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
15382 2006-02-27 Simon Josefsson <jas@extundo.com>
15384 * lib/base64.h: Indent #define's. From Jim Meyering
15385 <jim@meyering.net>.
15387 2006-02-27 Jim Meyering <jim@meyering.net>
15389 Revert the change of 2006-02-24, so these files can continue
15390 to be sync'd from gettext.
15391 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
15394 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
15396 * modules/intprops: New file.
15397 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
15399 * modules/getloadavg (Files): Remove lib/intprops.h.
15400 (Depends-on): Add intprops.
15401 * modules/human: Likewise.
15402 * modules/inttostr: Likewise.
15403 * modules/openat: Likewise.
15404 * modules/sig2str: Likewise.
15405 * modules/userspec: Likewise.
15406 * modules/utimecmp: Likewise.
15407 * modules/xnanosleep: Likewise.
15408 * modules/xstrtol: Likewise.
15410 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
15412 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
15413 * modules/lock-tests (TESTS): Use $(EXEEXT).
15414 * modules/tls-tests: Likewise.
15415 * modules/argp-tests: Likewise.
15416 (check_PROGRAMS): New var, replacing...
15417 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
15419 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15421 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
15424 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
15426 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
15428 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15430 Sync from coreutils.
15431 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
15434 2006-02-22 Jim Meyering <jim@meyering.net>
15436 Sync from coreutils.
15437 * m4/chdir-safer.m4: New file.
15439 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
15441 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
15442 AT_FDCWD exceeds INT_MAX.
15443 * lib/openat.h (AT_FDCWD): Likewise.
15445 2006-02-17 Eric Blake <address@hidden>
15447 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
15449 2006-02-16 Simon Josefsson <jas@extundo.com>
15451 * modules/getaddrinfo (Depends-on): Add sys_socket.
15453 2006-02-15 Simon Josefsson <jas@extundo.com>
15455 * build-aux/maint.mk: Add dsyntax-check rule.
15457 2006-02-15 Eric Blake <ebb9@byu.net>
15459 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
15460 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
15461 'present but cannot compile' warnings on cygwin.
15462 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
15463 use ws2tcpip.h if sys/socket.h works.
15464 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
15465 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
15467 2006-02-14 Simon Josefsson <jas@extundo.com>
15469 * modules/maintainer-makefile (Files): Rename.
15471 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
15472 and (the local) Makefile.cfg to maint-cfg.mk.
15474 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
15477 * modules/maintainer-makefile: New module.
15479 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
15480 severaly stripped to make it possible to build it up from scratch
15481 with reliable tests.
15483 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
15484 fixes to permit overriding the default actions when configure and
15485 makefile are not available.
15487 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
15489 Sync from coreutils.
15490 * modules/lstat (Depends-on): Don't depend on xalloc.
15491 (License): Change from GPL to LGPL, since this is now simply a
15492 replacement for a libc function.
15494 2006-02-14 Jim Meyering <jim@meyering.net>
15496 Sync from coreutils.
15498 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
15499 failure on deficient systems, and simplify gnulib lgpl dependencies.
15500 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
15501 xmalloc/lstat combination. Based on a patch from Bruno Haible.
15503 * lib/xalloc-die.c: Remove unused definition of N_.
15505 2006-02-14 Jim Meyering <jim@meyering.net>
15507 Sync from coreutils.
15508 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
15509 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
15510 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
15511 double-quote uses of that variable, to accommodate the rare case in
15512 which getmntent is available in none of the libraries checked. This
15513 happens at least on FreeBSD 5.0.
15515 2006-02-13 Simon Josefsson <jas@extundo.com>
15517 * gnulib-tool (Usage): Fix --import, from
15518 karl@freefriends.org (Karl Berry).
15520 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
15522 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
15524 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
15526 * lib/argp-namefrob.h: Restore changes accidentally lost during the
15527 "autoupdate" on 2005-12-12.
15529 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
15531 * modules/closeout (Depends-on): Remove atexit.
15533 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
15535 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
15536 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
15538 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
15540 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
15541 __EXTENSIONS__ if this causes compilation to fail. Problem
15542 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
15543 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
15545 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
15547 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
15548 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
15549 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
15552 2006-01-26 Simon Josefsson <jas@extundo.com>
15554 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
15555 prototype is visible on mingw32.
15557 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
15560 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
15563 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
15565 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
15566 attempt to open for write; this always fails, at least on POSIX
15567 hosts. This reinstates the 2006-01-09 change, which was
15568 inadvertently removed.
15570 2006-01-26 Bruno Haible <bruno@clisp.org>
15572 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
15573 Reported by Paul Eggert.
15575 2006-01-26 Bruno Haible <bruno@clisp.org>
15576 Paul Eggert <eggert@cs.ucla.edu>
15578 * lib/stdbool_.h (_Bool)
15579 [(! (defined __cplusplus || defined __BEOS__)
15580 && !defined __GNUC__
15581 && !(defined __HP_cc || defined __xlc__
15582 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
15583 || defined __sgi))]:
15584 #define to signed char in these cases too; this simplifies
15585 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
15586 etc., separately) and makes it more conservative.
15588 2006-01-25 Simon Josefsson <jas@extundo.com>
15590 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
15591 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
15592 ws2tcpip.h with WINVER=0x0501. All for mingw32.
15594 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
15596 * lib/argp-namefrob.h: Bugfix. Remove stray #
15598 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
15600 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
15601 so that we test the test.
15602 Check for yet another HP-UX cc bug involving *bool |= bool.
15604 2006-01-25 Karl Berry <karl@gnu.org>
15606 * config/srclist.txt (vasnprintf.c): sync lost.
15608 2006-01-25 Jim Meyering <jim@meyering.net>
15610 Sync from the stable (b5) branch of coreutils:
15612 * lib/fts.c (fts_children): Don't let close() clobber errno from
15615 * lib/fts.c (fts_stat): When following a symlink-to-directory,
15616 don't necessarily interpret stat-fails+lstat-succeeds as indicating
15617 a dangling symlink. That can also happen at least for ELOOP.
15618 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
15619 FYI, this bug predates the inclusion of fts.c in coreutils.
15621 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
15622 in their own block, so pre-c99 compilers don't object.
15624 Avoid the double-free (first in fts_read, second in fts_close) that
15625 would occur when an `active' directory is made inaccessible (e.g.,
15626 via chmod a-x) during a traversal.
15627 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
15628 before returning. Reproduce this failure by
15629 mkdir -p a/b; cd a; chmod a-x . b
15630 Reported by Stavros Passas.
15632 2006-01-25 Jim Meyering <jim@meyering.net>
15634 * lib/fileblocks.c: Remove more useless parentheses.
15635 * lib/readutmp.h: Likewise.
15637 2006-01-25 Bruno Haible <bruno@clisp.org>
15639 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
15641 Reported by Paul Eggert.
15643 2006-01-25 Bruno Haible <bruno@clisp.org>
15645 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
15646 rid of a trap command. For Solaris sh.
15647 Reported by Mark D. Baushke <mdb@gnu.org>.
15649 2006-01-24 Simon Josefsson <jas@extundo.com>
15651 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
15654 2006-01-24 Karl Berry <karl@gnu.org>
15656 * config/srclist.txt (argp-namefrob.h): sync lost.
15658 2006-01-24 Jim Meyering <jim@meyering.net>
15660 * modules/openat (Files): Add lib/intprops.h.
15661 From Mark D. Baushke.
15663 2006-01-24 Jim Meyering <jim@meyering.net>
15665 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
15666 Reported by Mark D. Baushke.
15668 2006-01-24 Jim Meyering <jim@meyering.net>
15670 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
15672 2006-01-24 Bruno Haible <bruno@clisp.org>
15674 * modules/strnlen (Maintainer): Change from glibc to all.
15676 2006-01-24 Bruno Haible <bruno@clisp.org>
15678 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
15679 Patch by Paul Eggert.
15681 2006-01-24 Bruno Haible <bruno@clisp.org>
15683 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
15685 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
15688 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
15689 'signed char' to avoid problems with the built-in _Bool type.
15690 Reported by Paul Eggert on 2005-11-26.
15692 2006-01-24 Bruno Haible <bruno@clisp.org>
15694 * gnulib-tool (func_import): Avoid constructing complicated sed
15695 expressions inside backquote.
15696 Report and solution by Mark D. Baushke <mdb@gnu.org>.
15698 2006-01-23 Ulrich Drepper <drepper@redhat.com>
15700 These changes imported from libc.
15701 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
15702 test and two separate function calls.
15703 * lib/strndup.c (__strndup): Add libc_hidden_def.
15705 2006-01-23 Simon Josefsson <jas@extundo.com>
15707 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
15708 Remove the test_*_SOURCES variable: automake infers it by default.
15709 * modules/tls-tests: Likewise.
15711 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
15713 Work around porting bugs reported by Dieter in
15714 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
15715 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
15716 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
15717 Include "getopt.h" first, to check interface.
15718 (getenv): Declare only if defined HAVE_DECL_GETENV &&
15720 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
15721 (__strndup): Revert to K&R-style function dfns, the glibc style.
15722 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
15723 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
15724 Include strnlen.h first, to get prototype properly.
15725 (strnlen): Renamed from __strnlen.
15728 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
15730 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
15732 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
15734 * config/srclist.txt: Adjust to reflect glibc reorganization.
15735 This affects only comments.
15737 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
15739 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
15740 Reported by Bruce Korb <bkorb@gnu.org>.
15742 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
15744 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
15745 to pacify gcc -Wswitch-default.
15747 2006-01-22 Bruno Haible <bruno@clisp.org>
15749 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
15750 temporary buffer for sprintf, take into account the precision also
15751 for 'd', 'i', 'u', 'o', 'x', 'X'.
15753 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
15755 * modules/argp-tests: New module
15756 * tests/test-argp.c: New file
15757 * tests/test-argp-2.sh: New file
15759 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
15761 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
15762 (__argp_base_name): Removed
15763 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
15765 (__argp_base_name): Provide macro definition or extern declaration
15766 depending on the configuration
15768 2006-01-20 Simon Josefsson <jas@extundo.com>
15770 * modules/inet_ntop (Depends-on): Depend on sys_socket.
15772 2006-01-20 Simon Josefsson <jas@extundo.com>
15774 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
15776 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
15778 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
15779 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
15780 Suggested by Bruno Haible.
15782 2006-01-20 Karl Berry <karl@gnu.org>
15784 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
15785 until changes propagate, I guess.
15787 2006-01-19 Simon Josefsson <jas@extundo.com>
15789 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
15791 2006-01-19 Simon Josefsson <jas@extundo.com>
15793 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
15795 2006-01-19 Simon Josefsson <jas@extundo.com>
15797 * gnulib-tool: Set check_PROGRAMS.
15799 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
15800 modules/des-tests, modules/gc-arcfour-tests,
15801 modules/gc-arctwo-tests, modules/gc-des-tests,
15802 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
15803 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
15804 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
15805 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
15806 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
15807 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
15808 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
15811 2006-01-18 Simon Josefsson <jas@extundo.com>
15813 * modules/socklen (Depends-on): Depend on sys_socket.
15815 2006-01-18 Simon Josefsson <jas@extundo.com>
15817 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
15818 modules/des-tests, modules/gc-arcfour-tests,
15819 modules/gc-arctwo-tests, modules/gc-des-tests,
15820 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
15821 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
15822 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
15823 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
15824 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
15825 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
15826 $(EXEEXT) to automake TESTS variable, for mingw32.
15828 2006-01-17 Simon Josefsson <jas@extundo.com>
15830 * modules/socklen (Include): Need sys/socket.h.
15832 2006-01-17 Bruno Haible <bruno@clisp.org>
15834 * modules/ssize_t (Include): Add <sys/types.h>.
15836 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
15838 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
15839 it's not portable and it doesn't work with cross-compiles.
15840 Problem reported by Bruno Haible. Fix missing-$ typo in
15841 'test "gl_cv_ignore_unused_libraries" ...' that prevented
15842 -zignore from being used with Sun's C compiler.
15844 2006-01-12 Simon Josefsson <jas@extundo.com>
15846 * lib/base64.c: Fix warning, reported by Bruno Haible
15847 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
15849 2006-01-12 Bruno Haible <bruno@clisp.org>
15851 * modules/ldd: New file.
15852 * build-aux/ldd.sh.in: New file.
15853 * MODULES.html.sh (Support for building libraries and executables): Add
15856 2006-01-12 Bruno Haible <bruno@clisp.org>
15858 * m4/ldd.m4: New file.
15860 2006-01-12 Bruno Haible <bruno@clisp.org>
15862 * gnulib-tool (func_import, func_create_testdir): Don't go into an
15863 endless loop while replacing $auxdir with build-aux.
15865 2006-01-11 Simon Josefsson <jas@extundo.com>
15867 * lib/stdint_.h (SIZE_MAX): Add missing (.
15869 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
15871 Sync from coreutils.
15872 * lib/md5.c: Fix commentary typos.
15873 (alignof, UNALIGNED_P): No need for a GCC-specific version.
15874 * lib/md5.h (__attribute__): Remove; unused.
15875 * lib/sha1.c: Fix commentary to match md5 better.
15876 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
15877 so that we don't need to worry about alignment. All uses changed.
15878 This merges the 2005-10-28 md5 change into sha1.
15880 2006-01-11 Jim Meyering <jim@meyering.net>
15882 Sync from coreutils.
15883 * lib/md5.c (OP): Fix spacing.
15885 2006-01-11 Bruno Haible <bruno@clisp.org>
15887 Ensure automatic ordering between gl_LOCK and gl_ARGP.
15888 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
15889 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
15891 2006-01-11 Bruno Haible <bruno@clisp.org>
15893 Ensure automatic ordering between gl_LOCK and gl_ARGP.
15894 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
15895 the "early" section as well.
15897 2006-01-11 Bruno Haible <bruno@clisp.org>
15899 Avoid "ar: no archive members specified" error on MacOS X.
15900 * gnulib-tool (func_modules_add_dummy): New function.
15901 (func_import, func_create_testdir): Invoke it.
15903 2006-01-11 Bruno Haible <bruno@clisp.org>
15905 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
15906 with $auxdir in AC_CONFIG_FILES statements.
15908 2006-01-11 Bruno Haible <bruno@clisp.org>
15910 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
15911 Initialize also noinst_HEADERS to empty.
15913 2006-01-11 Bruno Haible <bruno@clisp.org>
15915 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
15917 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
15920 2006-01-11 Bruno Haible <bruno@clisp.org>
15922 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
15923 overridable by the user.
15924 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15926 2006-01-10 Simon Josefsson <jas@extundo.com>
15928 * modules/sys_socket: New file.
15930 2006-01-10 Simon Josefsson <jas@extundo.com>
15932 * m4/sys_socket_h.m4: New file.
15934 2006-01-10 Simon Josefsson <jas@extundo.com>
15936 * lib/socket_.h: New file.
15938 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
15940 * modules/readutmp (Maintainer): Add myself.
15942 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
15944 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
15945 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
15946 People who are still concerned with buggy memcmp implementations
15947 can invoke gl_FUNC_MEMCMP themselves.
15949 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
15951 * lib/regex_internal.h (BITSET_WORD_BITS):
15952 Work around a bug in 64-bit PGC (before version 6.1-2), where the
15953 preprocessor mishandles large unsigned values as if they were signed.
15954 Problem reported by Claudio Fontana in
15955 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
15957 2006-01-10 Jim Meyering <jim@meyering.net>
15959 Avoid the double-free (first in fts_read, second in fts_close) that
15960 would occur when an `active' directory is made inaccessible (e.g.,
15961 via chmod a-x) during a traversal.
15962 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
15963 before returning. Reproduce this failure by
15964 mkdir -p a/b; cd a; chmod a-x . b
15965 Reported by Stavros Passas.
15967 Sync from coreutils.
15968 * lib/sha1.c: Tweak grammar in a comment.
15970 2006-01-10 Jim Meyering <jim@meyering.net>
15972 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
15973 Patch by Joerg Sonnenberger.
15975 2006-01-10 Bruno Haible <bruno@clisp.org>
15977 * modules/readutmp: Depend on module free.
15978 * modules/strtok_r: Depend on module restrict.
15980 2006-01-10 Bruno Haible <bruno@clisp.org>
15982 * modules/gettext (configure.ac): Add an invocation of
15983 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
15985 2006-01-10 Bruno Haible <bruno@clisp.org>
15987 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
15988 Reported by Werner Lemberg <wl@gnu.org>.
15990 2006-01-10 Bruno Haible <bruno@clisp.org>
15992 * lib/localcharset.c: Update from GNU gettext.
15994 2006-01-10 Bruno Haible <bruno@clisp.org>
15996 * lib/argp.h (__const): Remove macro. Use const instead.
15997 * lib/argp-fmtstream.h (__const): Likewise.
15998 * lib/glob_.h (__const): Remove macro.
15999 * lib/glob-libc.h: Use const instead of __const.
16001 2006-01-10 Bruno Haible <bruno@clisp.org>
16003 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
16005 Needed to avoid an automake error regarding the 'gettext' module.
16007 2006-01-09 Simon Josefsson <jas@extundo.com>
16009 * modules/inet_ntop (Depends-on): Add restrict.
16011 2006-01-09 Simon Josefsson <jas@extundo.com>
16013 * modules/gc-rijndael-tests (License): Put under LGPL.
16015 * modules/gc-des-tests (License): Likewise.
16017 * modules/gc-arcfour-tests (License): Likewise.
16019 * modules/gc-arctwo-tests (License): Likewise.
16021 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
16023 * modules/gc-hmac-sha1-tests (Files): Likewise.
16025 * modules/gc-hmac-md5-tests (License): Likewise.
16027 * modules/gc-sha1-tests (License): Likewise.
16029 * modules/gc-md5-tests (License): Likewise.
16031 * modules/gc-md4-tests (License): Likewise.
16033 * modules/gc-md2-tests (License): Likewise.
16035 * modules/gc-tests (License): Likewise.
16037 * modules/des-tests (License): Likewise.
16039 * modules/md4-tests (License): Likewise.
16041 * modules/md2-tests (License): Likewise.
16043 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
16045 Sync from coreutils:
16047 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
16048 * modules/lib-ignore: New file.
16049 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
16050 chdir-safer.m4, lchmod.m4.
16051 * modules/openat: Add mkdirat.c, openat-priv.h.
16053 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
16055 Sync from coreutils.
16056 * m4/lib-ignore.m4: New file.
16057 * m4/lchmod.m4: New file.
16059 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
16061 Sync from coreutils.
16062 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
16063 for write access: POSIX says that must fail.
16064 * lib/fts.c (diropen): Likewise.
16065 * lib/save-cwd.c (save_cwd): Likewise.
16066 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
16067 well, for minor improvements on hosts that lack O_DIRECTORY.
16068 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
16069 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
16070 Fall back on chown if open failed with EACCES.
16072 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
16073 Report an error at compile-time if only a 1-second nominal clock
16074 resolution is found.
16076 * lib/lchmod.h: New file.
16077 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
16078 (make_dir_parents): Use lchown rather than chown, and
16079 lchmod rather than chmod.
16081 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
16082 dummies too. Problem with "none" reported by Bob Proulx. Problem with
16083 "proc" reported by n0dalus.
16085 * lib/mountlist.c: Include <limits.h>.
16086 (dev_from_mount_options)
16087 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
16088 New function. It no longer assumes "dev=" has the System V meaning
16089 on Linux (since it doesn't). It also parses "dev=" more carefully.
16090 (read_file_system_list)
16091 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
16092 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
16095 * lib/posixtm.h (PDS_PRE_2000): New macro.
16096 * lib/posixtm.c (year): Arg is now syntax_bits rather than
16097 allow_century. All usages changed. Reject dates outside the range
16098 1969-1999 if PDS_PRE_2000 is used.
16100 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
16102 Sync from coreutils.
16103 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
16104 (Time of day items): Mention the possibility of leap seconds.
16105 Problem reported by Dr. David Alan Gilbert.
16107 2006-01-09 Jim Meyering <jim@meyering.net>
16109 Sync from coreutils.
16111 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
16113 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
16115 * lib/modechange.c (mode_compile): Reject an invalid mode string
16116 that starts with an octal digit. From Andreas Gruenbacher.
16118 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
16119 and dup to open_safer and dup_safer, respectively.
16120 (openat_permissive): Fix typo in comment.
16122 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
16123 "gettext.h"; either no longer needed or are guaranteed by openat.h.
16124 (_): Remove; no longer needed.
16125 (openat): Renamed from rpl_openat; no need for rpl_openat
16126 since openat.h renames openat for us.
16127 Replace most of the body with a call to openat_permissive,
16128 to avoid duplicate code.
16129 Port to (probably hypothetical) environments were mode_t is
16131 (openat_permissive): Require mode arg, so that we can check
16132 types better. Put it just after flags. Change cwd failure
16133 indicator from pointer-to-bool to pointer-to-errno-value.
16134 All callers changed.
16135 Invoke openat_save_fail and/or openat_restore_fail if
16136 cwd_errno is null, so that openat can call us.
16137 (openat_permissive, fdopendir, fstatat, unlinkat):
16138 Simplify errno handling to avoid some duplicate code,
16139 as it's OK to set errno on success.
16140 * lib/openat.h: Revamp code so that function macros depend on
16141 __OPENAT_PREFIX only, not also on AT_FDCWD.
16142 (openat_ro): Remove. Caller changed to use openat_permissive.
16143 (openat_permissive): Now a macro, if not a function.
16144 (openat_restore_fail, openat_save_fail): Now always functions,
16145 since mkdirat needs them even if __OPENAT_PREFIX is defined.
16147 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
16149 * lib/mkdirat.c: Include openat-priv.h.
16150 Remove definitions of macros defined therein.
16151 * lib/openat.c: Likewise.
16153 * lib/mkdirat.c (mkdirat): New file and function.
16154 * lib/openat.h (mkdirat): Declare.
16156 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
16158 * lib/openat.h (openat_permissive): Declare.
16159 (openat_ro): Define.
16161 * lib/openat.c (EXPECTED_ERRNO): New macro.
16162 (openat_permissive): New function -- used in remove.c rewrite.
16163 (all functions): Set errno just before returning, only if there
16164 was an actual failure.
16165 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
16167 Emulate openat-family functions using Linux's procfs, if possible.
16168 Idea and some code based on Ulrich Drepper's glibc changes.
16170 * lib/openat.c: (BUILD_PROC_NAME): New macro.
16171 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
16172 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
16173 before falling back on save_cwd and restore_cwd.
16174 (fdopendir, fstatat, unlinkat): Likewise.
16176 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
16177 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
16179 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
16180 as second argument to va_arg. Otherwise, some versions of gcc
16181 warn that `if this code is reached, the program will abort'.
16183 2006-01-09 Jim Meyering <jim@meyering.net>
16185 Sync from coreutils.
16186 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
16187 Require openat-priv.h.
16189 2006-01-09 Bruno Haible <bruno@clisp.org>
16191 * modules/strnlen (Include): Use strnlen.h.
16193 2006-01-09 Bruno Haible <bruno@clisp.org>
16195 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
16197 2006-01-09 Bruno Haible <bruno@clisp.org>
16199 * lib/sysexit_.h (EX_OK): New macro.
16200 Suggested by Martin Lambers <marlam@marlam.de>.
16202 2006-01-09 Bruno Haible <bruno@clisp.org>
16204 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
16205 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
16207 2006-01-09 Bruno Haible <bruno@clisp.org>
16209 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
16212 2006-01-09 Bruno Haible <bruno@clisp.org>
16214 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
16215 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
16216 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
16217 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
16219 2006-01-09 Bruno Haible <bruno@clisp.org>
16221 * build-aux/javacomp.sh.in: New file, moved from lib/.
16222 * modules/javacomp-script (Files): Update.
16223 (configure.ac): Add AC_CONFIG_FILES invocation.
16224 (EXTRA_DIST): Remove variable.
16226 * build-aux/javaexec.sh.in: New file, moved from lib/.
16227 * modules/javaexec (Files): Update.
16228 (configure.ac): Add AC_CONFIG_FILES invocation.
16229 (EXTRA_DIST): Remove javaexec.sh.in.
16231 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
16232 * modules/csharpcomp-script (Files): Update.
16233 (configure.ac): Add AC_CONFIG_FILES invocation.
16234 (EXTRA_DIST): Remove variable.
16236 * build-aux/csharpexec.sh.in: New file, moved from lib/.
16237 * modules/csharpexec (Files): Update.
16238 (configure.ac): Add AC_CONFIG_FILES invocation.
16239 (EXTRA_DIST): Remove csharpexec.sh.in.
16241 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
16243 Sync from coreutils.
16245 Add POSIX ACL support
16246 * lib/acl.h (copy_acl, set_acl): Add declarations.
16247 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
16248 systems other than Linux.
16249 (chmod_or_fchmod): New function: use fchmod when possible,
16250 and chmod otherwise.
16251 (file_has_acl): Add a POSIX ACL implementation, with a
16252 Linux-specific subcase.
16253 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
16254 S_ISVTX from one file to another. Fall back to fchmod/chmod when
16255 acls are unsupported.
16256 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
16257 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
16260 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
16262 Sync from coreutils.
16263 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
16265 2006-01-07 Bruno Haible <bruno@clisp.org>
16267 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
16270 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
16272 * lib/strftime.c (tzname): Don't declare if it is already #defined.
16273 Problem reported for Mingw by Mark Junker.
16275 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
16277 * README: Gnulib normally doesn't generate a tarball.
16279 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
16281 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
16282 long int, not int, for nanosecond counts, so that people who are
16283 used to POSIX struct timespec won't be surprised. Reported by Jim
16286 2005-12-28 Bruno Haible <bruno@clisp.org>
16288 * build-aux/config.rpath: Update from GNU gettext.
16290 2005-12-16 Jim Meyering <jim@meyering.net>
16292 * modules/fprintftime: New module.
16293 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
16295 2005-12-16 Jim Meyering <jim@meyering.net>
16297 * m4/fprintftime.m4: New file.
16299 2005-12-16 Jim Meyering <jim@meyering.net>
16301 * lib/fprintftime.c, lib/fprintftime.h: New files.
16303 2005-12-15 Simon Josefsson <jas@extundo.com>
16305 * modules/socklen (configure.ac): Fix M4 macro name, to align with
16308 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
16310 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
16311 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
16313 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
16315 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
16316 * lib/argp-help.c (fill_in_uparams): Check if the constructed
16317 struct uparams is valid. Fall back to the default values if it is
16320 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
16322 * modules/argp (Files): Add argp-pin.c
16323 (Depends-on): dirname
16324 (lib_SOURCES): Add argp-pin.c
16326 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
16328 * m4/argp.m4: Check if program_invocation_name and
16329 program_invocation_short_name are declared and define appropriate
16330 macros if they are not.
16332 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
16334 * lib/argp-help.c (__argp_base_name): New function
16335 (__argp_short_program_name): Rewrite using __argp_base_name
16336 * lib/argp-namefrob.h: Define program_invocation_name and
16337 program_invocation_short_name if requested
16338 (__argp_base_name): Add prototype
16339 * lib/argp-parse.c (argp_def): Use gettext wrappers
16340 (argp_default_parser): Use __argp_base_name
16341 * lib/argp-pin.c: New file. Defines program_invocation_name and
16342 program_invocation_short_name on systems that lack them.
16344 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
16346 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
16347 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
16348 porting problem reported by Georg Schwarz in
16349 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
16351 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
16353 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
16354 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
16355 porting problem reported by Georg Schwarz in
16356 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
16358 2005-12-05 Bruno Haible <bruno@clisp.org>
16360 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
16361 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
16362 Reported by Mark Junker <mjscod@gmx.de>.
16364 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
16366 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
16367 Use implementation from Albert Chin, with some
16368 comments/corrections by Stepan Kasal and myself.
16370 2005-12-02 Bruno Haible <bruno@clisp.org>
16372 * gnulib-tool (func_import): Accept GPLed build tool modules when
16374 * modules/csharpcomp-script: New file.
16375 * modules/csharpcomp: Depend on it.
16376 * modules/javacomp-script: New file.
16377 * modules/javacomp: Depend on it.
16378 Suggested by Simon Josefsson.
16380 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
16382 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
16383 statement, to work around an HP-UX 10.20 compiler bug reported by
16386 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
16388 * modules/savedir (Depends-on): Add openat.
16390 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
16392 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
16393 (uintmax_t) [defined uintmax_t]: Do not declare.
16394 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
16395 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
16396 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
16397 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
16398 sake of portability to weird hosts that C allows (though we don't
16399 know of any practical examples).
16401 * lib/savedir.h (fdsavedir): New decl.
16402 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
16403 contains most of the former guts of savedir.
16404 (savedir): Use savedirstream.
16405 Include "openat.h".
16407 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
16409 * modules/obstack (Files): Add m4/ulonglong.m4.
16410 Problem reported by Davide Angelocola.
16412 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
16414 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
16415 coreutils no longer futzes with rounding modes.
16417 2005-11-14 Jim Meyering <jim@meyering.net>
16419 * lib/mkstemp-safer.c: Include <config.h>, required for possible
16420 replacement of mkstemp.
16422 2005-11-10 Simon Josefsson <jas@extundo.com>
16424 * lib/readline.c: Remove EOL.
16426 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
16428 * modules/gethrxtime (Depends-on): Add gettime.
16430 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
16432 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
16433 or gettimeofday; no longer needed.
16435 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
16437 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
16439 (gethrxtime) [! (HAVE_NANOUPTIME
16440 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
16441 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
16442 our own approximation.
16444 2005-11-08 Eric Blake <ebb9@byu.net>
16446 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
16448 2005-11-08 Eric Blake <ebb9@byu.net>
16450 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
16452 2005-11-04 Bruno Haible <bruno@clisp.org>
16454 * gnulib-tool: Implement --update mode.
16456 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
16458 Fix porting problem reported by Theodoros V. Kalamatianos.
16459 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
16460 Don't assume that futimes failing means we must fail.
16462 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
16464 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
16465 variables to suggest the intended function of the PATH_MAX check.
16467 2005-10-30 Kean Johnston <jkj@sco.com>
16469 Trivial changes to support SCO systems.
16470 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
16472 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
16473 where __ptr is null when no I/O is pending.
16475 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
16477 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
16478 leave errno alone. Problem reported by Dmitry V. Levin.
16480 2005-10-28 Simon Josefsson <jas@extundo.com>
16482 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
16485 * tests/test-gc-md2.c, tests/test-md2.c: New files.
16487 * modules/md2, modules/md2-tests: New files.
16489 2005-10-28 Simon Josefsson <jas@extundo.com>
16491 * m4/inet_ntop.m4: More tests.
16493 * m4/gc-md2.m4, md2.m4: New file.
16495 2005-10-28 Simon Josefsson <jas@extundo.com>
16497 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
16498 "restrict" keywords, as per POSIX. Protect the function
16499 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
16500 Don't use K&R prototypes. Check the sprintf return values.
16501 Re-define EAFNOSUPPORT if not present. Indent.
16503 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
16504 suggested by Bruno Haible <bruno@clisp.org>.
16506 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
16508 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
16510 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
16513 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
16515 * lib/md2.h, lib/md2.c: New files.
16517 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
16519 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
16520 errno alone. Problem reported by Frederic Jolliton.
16522 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
16524 * modules/verify (License): Change from GPL to LGPL. This is a
16525 tiny module and there are apparently near-equivalents that are
16526 under the BSD license.
16528 2005-10-24 Simon Josefsson <jas@extundo.com>
16530 * modules/sha1: Relicense to LGPL.
16532 2005-10-24 Simon Josefsson <jas@extundo.com>
16534 * lib/md4.h: Shrink buffer size, now that we changed the type.
16536 2005-10-23 Simon Josefsson <jas@extundo.com>
16538 * gnulib-tool (func_import): Fix --tests-base.
16540 2005-10-22 Simon Josefsson <jas@extundo.com>
16542 * modules/arcfour (Depends-on): Need stdint.
16544 2005-10-22 Simon Josefsson <jas@extundo.com>
16546 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
16547 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
16549 2005-10-22 Simon Josefsson <jas@extundo.com>
16551 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
16552 suggested by Bruno Haible <bruno@clisp.org>.
16554 2005-10-22 Simon Josefsson <jas@extundo.com>
16556 * lib/crc.h: Include stddef.h, for size_t.
16558 2005-10-22 Simon Josefsson <jas@extundo.com>
16560 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
16561 arcfour_context struct (simplify test vector testing in GNU
16564 2005-10-21 Simon Josefsson <jas@extundo.com>
16566 * modules/des, modules/des-tests: New files.
16568 * modules/gc-des, modules/gc-des-tests: New files.
16570 * tests/test-des.c, tests/test-gc-des.c: New file.
16572 2005-10-21 Simon Josefsson <jas@extundo.com>
16574 * modules/arctwo, modules/arctwo-tests: New files.
16576 * tests/test-arctwo.c: New file.
16578 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
16580 * tests/test-gc-arctwo.c: New file.
16582 2005-10-21 Simon Josefsson <jas@extundo.com>
16584 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
16585 Bruno Haible <bruno@clisp.org>.
16587 * m4/gc-des.m4: New file.
16589 2005-10-21 Simon Josefsson <jas@extundo.com>
16591 * m4/arctwo.m4: New file.
16593 * m4/gc-arctwo.m4: New file.
16595 2005-10-21 Simon Josefsson <jas@extundo.com>
16597 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
16600 2005-10-21 Simon Josefsson <jas@extundo.com>
16602 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
16605 * lib/hmac-sha1.c (hmac_sha1): Likewise.
16607 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
16608 Bruno Haible <bruno@clisp.org>.
16610 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
16613 2005-10-21 Simon Josefsson <jas@extundo.com>
16615 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
16617 2005-10-21 Simon Josefsson <jas@extundo.com>
16619 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
16621 2005-10-21 Simon Josefsson <jas@extundo.com>
16623 * lib/des.h, lib/des.c: New files.
16625 * lib/gc-gnulib.c: Support DES.c
16627 2005-10-21 Simon Josefsson <jas@extundo.com>
16629 * lib/arctwo.h, lib/arctwo.c: New files.
16631 * lib/gc-gnulib.c: Support ARCTWO.
16633 2005-10-21 Simon Josefsson <jas@extundo.com>
16635 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
16636 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16638 2005-10-21 Simon Josefsson <jas@extundo.com>
16640 * gnulib-tool (func_import, func_create_testdir): Define automake
16641 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
16642 Makefile.am snippet),
16643 suggested by Bruno Haible <bruno@clisp.org>.
16645 * modules/gc (Makefile.am): Use it.
16647 2005-10-21 Bruno Haible <bruno@clisp.org>
16649 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
16652 2005-10-19 Simon Josefsson <jas@extundo.com>
16654 * tests/test-gc-rijndael.c: New file.
16656 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
16658 2005-10-19 Simon Josefsson <jas@extundo.com>
16660 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
16663 2005-10-19 Simon Josefsson <jas@extundo.com>
16665 * tests/test-gc-arcfour.c: New file.
16667 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
16669 2005-10-19 Simon Josefsson <jas@extundo.com>
16671 * modules/gc-md4, modules/gc-md4-tests: New file.
16673 * tests/test-gc-md4.c: New file.
16675 2005-10-19 Simon Josefsson <jas@extundo.com>
16677 * m4/gc-md4.m4: New file.
16679 2005-10-19 Simon Josefsson <jas@extundo.com>
16681 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
16682 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
16685 2005-10-19 Simon Josefsson <jas@extundo.com>
16687 * m4/gc-arcfour.m4: New file.
16689 * m4/gc-rijndael.m4: New file.
16691 2005-10-19 Simon Josefsson <jas@extundo.com>
16693 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
16695 2005-10-19 Simon Josefsson <jas@extundo.com>
16697 * lib/gc-gnulib.c: Support ARCFOUR.
16699 2005-10-19 Simon Josefsson <jas@extundo.com>
16701 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
16704 * lib/gc.h: Add ECB enum type.
16706 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
16708 2005-10-18 Simon Josefsson <jas@extundo.com>
16710 * tests/test-md5.c: New file.
16712 * modules/md5-tests: New file.
16714 2005-10-18 Simon Josefsson <jas@extundo.com>
16716 * tests/test-md4.c: New file.
16718 * modules/md4, modules/md4-tests: New files.
16720 2005-10-18 Simon Josefsson <jas@extundo.com>
16722 * m4/md4.m4: New file.
16724 2005-10-18 Simon Josefsson <jas@extundo.com>
16726 * lib/md4.h, lib/md4.c: New files, based on md5.?.
16728 2005-10-17 Stepan Kasal <kasal@ucw.cz>
16730 * gnulib-tool (func_create_testdir): Omit the second check whether
16731 BUILT_SOURCES in nonempty.
16733 2005-10-17 Simon Josefsson <jas@extundo.com>
16735 * tests/test-rijndael.c: New file.
16737 2005-10-17 Simon Josefsson <jas@extundo.com>
16739 * modules/sha1: Depend on stdint instead of md5.
16741 * modules/md5: Depend on stdint, remove uint32_t.
16743 2005-10-17 Simon Josefsson <jas@extundo.com>
16745 * modules/gc-sha1-tests: New file.
16747 * tests/test-gc-sha1.c: New file.
16749 2005-10-17 Simon Josefsson <jas@extundo.com>
16751 * m4/md5.m4: Remove call to uint32_t.m4.
16753 2005-10-17 Simon Josefsson <jas@extundo.com>
16755 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
16757 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
16760 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
16762 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
16764 2005-10-17 Simon Josefsson <jas@extundo.com>
16766 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
16768 2005-10-17 Simon Josefsson <jas@extundo.com>
16770 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
16772 2005-10-17 Simon Josefsson <jas@extundo.com>
16774 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
16776 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
16778 2005-10-17 Bruno Haible <bruno@clisp.org>
16780 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
16781 that it can also be used in a test.
16783 2005-10-16 Bruno Haible <bruno@clisp.org>
16785 * gnulib-tool (func_emit_tests_Makefile_am): Also define
16786 TESTS_ENVIRONMENT, so that individual tests can augment it.
16788 * gnulib-tool (func_create_testdir): Use an intermediate target for
16789 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
16790 macros, like $(ALLOCA_H), which cannot be passed through the command
16793 2005-10-15 Simon Josefsson <jas@extundo.com>
16795 * modules/rijndael-tests: New file.
16797 * modules/rijndael: New file.
16799 2005-10-15 Simon Josefsson <jas@extundo.com>
16801 * m4/rijndael.m4: New file.
16803 2005-10-15 Simon Josefsson <jas@extundo.com>
16805 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
16807 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
16809 2005-10-14 Simon Josefsson <jas@extundo.com>
16811 * tests/test-arcfour.c: New file.
16813 * modules/arcfour, modules/arcfour-tests: New files.
16815 2005-10-14 Simon Josefsson <jas@extundo.com>
16817 * m4/arcfour.m4: New file.
16819 2005-10-14 Simon Josefsson <jas@extundo.com>
16821 * lib/arcfour.h, lib/arcfour.c: New files.
16823 2005-10-14 Roland McGrath <roland@redhat.com>
16825 Import from libc. [BZ #1331]
16826 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
16828 Reported by Matej Vela <vela@debian.org>.
16830 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
16832 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
16833 include <wchar.h>; no longer needed.
16835 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
16837 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
16839 2005-10-14 Jakub Jelinek <jakub@redhat.com>
16840 and Ulrich Drepper <drepper@redhat.com>
16843 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
16844 instead of inline stream orientation test and two separate
16845 function calls. Pay no attention to USE_IN_LIBIO.
16847 2005-10-13 Simon Josefsson <jas@extundo.com>
16849 * modules/gc-hmac-md5-tests: New file.
16851 * tests/test-gc-hmac-sha1.c: New file.
16853 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
16855 * modules/gc-hmac-md5-tests: New file.
16857 * tests/test-gc-md5.c: New file.
16859 * modules/gc-md5-tests: New file.
16861 2005-10-13 Simon Josefsson <jas@extundo.com>
16863 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
16864 Move memory allocation outside of loop.
16866 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
16868 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
16869 intermediate directory is in a read-only file system. Problem
16870 reported by Eric Blake.
16872 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
16874 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
16876 2005-10-12 Simon Josefsson <jas@extundo.com>
16878 * tests/test-hmac-sha1.c: New file.
16880 * modules/hmac-sha1-tests: New file.
16882 * modules/hmac-sha1: New file.
16884 2005-10-12 Simon Josefsson <jas@extundo.com>
16886 * modules/gc-sha1: New file.
16888 2005-10-12 Simon Josefsson <jas@extundo.com>
16890 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
16892 * tests/test-gc-pbkdf2-sha1.c: New file.
16894 2005-10-12 Simon Josefsson <jas@extundo.com>
16896 * modules/gc-md5, modules/gc-hmac-md5: New files.
16898 * modules/gc (Files): Remove md5, memxor and hmac files.
16900 2005-10-12 Simon Josefsson <jas@extundo.com>
16902 * m4/gc-pbkdf2-sha1.m4: New file.
16904 * m4/gc-hmac-sha1.m4: New file.
16906 * m4/gc-sha1: New file.
16908 * m4/hmac-sha1.m4: New file.
16910 2005-10-12 Simon Josefsson <jas@extundo.com>
16912 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
16914 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
16916 2005-10-12 Simon Josefsson <jas@extundo.com>
16918 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
16919 suggested by Bruno Haible <bruno@clisp.org>.
16921 2005-10-12 Simon Josefsson <jas@extundo.com>
16923 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
16925 2005-10-12 Simon Josefsson <jas@extundo.com>
16927 * lib/gc-pbkdf2-sha1.c: New file.
16929 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
16931 2005-10-12 Simon Josefsson <jas@extundo.com>
16933 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
16935 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
16937 2005-10-12 Simon Josefsson <jas@extundo.com>
16939 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
16940 GC_USE_HMAC_MD5, respectively.
16942 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
16943 (gc_md5): Fix typo.
16945 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
16947 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
16949 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
16951 2005-10-12 Bruno Haible <bruno@clisp.org>
16953 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
16954 Reported by Stepan Kasal <kasal@ucw.cz>.
16956 2005-10-11 Simon Josefsson <jas@extundo.com>
16958 * tests/test-crc.c: New file.
16960 * modules/crc, modules/crc-tests: New files.
16962 2005-10-11 Simon Josefsson <jas@extundo.com>
16964 * m4/crc.m4: New file.
16966 2005-10-11 Simon Josefsson <jas@extundo.com>
16968 * lib/gc.h: Add gc_hash and gc_hash_buffer.
16970 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
16972 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
16974 2005-10-11 Simon Josefsson <jas@extundo.com>
16976 * lib/crc.h, lib/crc.c: New files.
16978 * lib/gc.h (gc_hash_buffer): Add doc.
16980 2005-10-11 Bruno Haible <bruno@clisp.org>
16982 * modules/c-strcasestr: New file.
16983 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
16985 2005-10-11 Bruno Haible <bruno@clisp.org>
16987 * modules/c-strcase: New file.
16988 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
16990 2005-10-11 Bruno Haible <bruno@clisp.org>
16992 * lib/strcasecmp.c: Include limits.h.
16993 (strcasecmp): Avoid integer overflow on exotic platforms.
16994 * lib/strncasecmp.c: Include limits.h.
16995 (strncasecmp): Avoid integer overflow on exotic platforms.
16996 Reported by Paul Eggert.
16998 2005-10-11 Bruno Haible <bruno@clisp.org>
17000 * lib/c-strcasestr.h: New file, from GNU gettext.
17001 * lib/c-strcasestr.c: New file, from GNU gettext.
17003 2005-10-11 Bruno Haible <bruno@clisp.org>
17005 * lib/c-strcase.h: New file, from GNU gettext.
17006 * lib/c-strcasecmp.c: New file, from GNU gettext.
17007 * lib/c-strncasecmp.c: New file, from GNU gettext.
17009 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
17011 * modules/mempcpy (License): GPL -> LGPL.
17012 * modules/strchrnul (License): Likewise.
17013 * modules/sysexits (License): Likewise.
17015 2005-10-08 Simon Josefsson <jas@extundo.com>
17017 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
17019 2005-10-07 Simon Josefsson <jas@extundo.com>
17021 * m4/memxor.m4: Remove gl_C_RESTRICT call.
17023 2005-10-06 Simon Josefsson <jas@extundo.com>
17025 * tests/test-hmac-md5.c: New file.
17027 * modules/hmac-md5-tests: New file.
17029 * modules/hmac-md5: New file.
17031 2005-10-06 Simon Josefsson <jas@extundo.com>
17033 * m4/hmac-md5.m4: New file.
17035 * m4/memxor.m4: Require gl_C_RESTRICT.
17037 2005-10-06 Simon Josefsson <jas@extundo.com>
17039 * lib/memxor.c (memxor): Avoid casts and warnings.
17041 2005-10-06 Simon Josefsson <jas@extundo.com>
17043 * lib/hmac-md5.c: New file.
17045 * lib/hmac.h: New file.
17047 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
17049 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
17050 promotes to int, not unsigned int, to catch the AIX 5.3
17053 2005-10-05 Simon Josefsson <jas@extundo.com>
17055 * modules/memxor: New file.
17057 * modules/iconv (Files): Move config.rpath to havelib, it is used
17060 * modules/havelib (Files): Add config.rpath.
17062 2005-10-05 Simon Josefsson <jas@extundo.com>
17064 * m4/memxor.m4: New file.
17066 2005-10-05 Simon Josefsson <jas@extundo.com>
17068 * lib/memxor.c (memxor): Fix compiler error.
17070 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
17071 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
17073 * lib/memxor.h, lib/memxor.c: New files.
17075 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
17076 we assume all systems have it, suggested by Jim Meyering
17077 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
17078 any systems lack sys/socket.h; mingw32 is known to lack it, but we
17079 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
17082 2005-10-05 Simon Josefsson <jas@extundo.com>
17084 * config/srclist.txt: Add glibc bug 1423 for md5.h.
17086 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
17088 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
17089 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
17090 needed, since the source code now assumes these .h files.
17092 2005-10-05 Derek Price <derek@ximbiot.com>
17094 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
17096 2005-10-05 Bruno Haible <bruno@clisp.org>
17098 * modules/stdint (License): Change to LGPL.
17100 2005-10-04 Simon Josefsson <jas@extundo.com>
17102 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
17103 D. Baushke" <mdb@gnu.org>.
17105 2005-10-04 Bruno Haible <bruno@clisp.org>
17107 * lib/verify.h (verify_true): Provide alternative definition for C++.
17109 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
17111 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
17112 (SSIZE_MAX): New macro, if not already defined.
17113 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
17116 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
17118 Sync from coreutils.
17119 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
17120 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
17121 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
17122 ULLONG_MAX doesn't work with 2.7.2.1.
17124 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
17126 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
17129 * modules/exclude (Depends-on): Depend on verify.
17130 * modules/strtoimax (Depends-on): Likewise.
17131 * modules/utimecmp (Depends-on): Likewise.
17133 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
17135 * lib/exclude.c: Include verify.h.
17136 (verify): Remove. All callers changed to use verify.h's version.
17137 * lib/strtoimax.c: Likewise.
17138 * lib/utimecmp.c: Likewis.e
17140 Sync from coreutils.
17141 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
17142 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
17143 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
17144 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
17145 bother returning ENOSYS if settimeofday or stime fails; just let
17146 them return whatever errno they want to return.
17147 * lib/utimens.c: Include unistd.h, for dup2.
17148 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
17149 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
17151 2005-10-02 Jim Meyering <jim@meyering.net>
17153 Sync from coreutils.
17154 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
17155 from glibc-2.2.5 that fails for read-only files.
17157 2005-10-02 Jim Meyering <jim@meyering.net>
17159 Sync from coreutils.
17160 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
17161 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
17162 `#if HAVE_CONFIG_H'.
17163 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
17164 Remove AT_FDCWD test.
17165 Do not consume the fd unless successful.
17166 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
17167 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
17168 block, so that we don't even try to compile it if settimeofday is
17169 available. This works around a compilation failure on OSF1 V5.1,
17170 due to stime requiring a `long int*' while tv_sec is `int'.
17172 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
17174 Sync from coreutils.
17175 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
17176 against `yes', rather than just testing for nonempty.
17178 2005-10-01 Simon Josefsson <jas@extundo.com>
17180 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
17183 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
17184 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
17185 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
17186 freeaddrinfo and gai_strerror are declared by the POSIX headers.
17187 Check if struct addrinfo is declared.
17189 2005-10-01 Simon Josefsson <jas@extundo.com>
17191 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
17192 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
17193 AI_* and EAI_* definitions. Protect function declarations.
17195 2005-10-01 Jim Meyering <jim@meyering.net>
17197 Sync from coreutils.
17199 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
17200 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
17201 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
17202 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
17203 in the inet and nsl libraries. Required on Solaris 5.7.
17205 2005-10-01 Jim Meyering <jim@meyering.net>
17207 Sync from coreutils.
17208 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
17209 in the inet and nsl libraries. Required on Solaris 5.7.
17211 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
17213 * lib/getdelim.c (getdelim): Remove unused variables.
17215 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
17217 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
17218 so that the code works even with ancient cpp. Portability problem
17219 with GCC 2.7.2.1 reported by Thomas M.Ott.
17221 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
17223 * modules/regex (Depends-on): Add strcase.
17225 * modules/gethostname (Licence): Change from GPL to LGPL, since
17226 gethostname.c is a trivial implementation of a standard library
17228 * modules/poll (License): Change from GPL to LGPL, since it's
17229 derived from LGPL code.
17231 2005-09-27 Jim Meyering <jim@meyering.net>
17233 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
17236 * lib/intprops.h (signed_type_or_expr__): Define.
17237 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
17238 for unsigned types.
17240 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
17242 * lib/verify.h (verify_expr): Remove, replacing with:
17243 (verify_true): New macro that returns true instead of void.
17244 (verify_type__): Remove.
17245 (verify): Use verify_true rather than verify_type__.
17247 2005-09-26 Bruno Haible <bruno@clisp.org>
17249 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
17251 (lib_SOURCES): Remove mbchar.c.
17252 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
17253 (Files): Add m4/mbrtowc.m4.
17254 * modules/mbiter: Likewise.
17255 * modules/mbuiter: Likewise.
17257 2005-09-26 Bruno Haible <bruno@clisp.org>
17259 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
17260 compile mbchar.c if they are not both present.
17261 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
17262 * m4/mbiter.m4 (gl_MBITER): Likewise.
17263 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
17264 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
17265 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
17267 2005-09-25 Jim Meyering <jim@meyering.net>
17269 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
17270 also uses socklen_t.
17272 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
17274 * lib/utimens.c (ENOSYS): Define if not already defined.
17275 (futimens): Support having a null PATH if the file descriptor
17278 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
17280 (__attribute): Define to empty unless GCC 3.1 or later.
17281 This works around a core dump on OpenBSD 3.4, which has GCC
17282 2.95.3, which dumps core when given __attribute__(()). It also
17283 simplifies other tests, since we really don't want to bother with
17284 worrying about which ancient version of GCC supported what.
17285 Original problem reported by Yoann Vandoorselaere, with part of
17286 the fix suggested by Derek Price.
17288 2005-09-24 Jim Meyering <jim@meyering.net>
17290 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
17291 so we can once again use a positive bitfield width of 1 -- now we
17292 don't have to explain why we were using a bitfield width of 2.
17294 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
17296 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
17297 and similarly for the other external symbols. Problem reported
17300 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
17301 bug reported by Jim Meyering.
17303 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
17304 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
17305 not needed, since socklen is a prerequisite module.
17307 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
17309 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
17310 Problem reported by Eric Blake.
17311 (getaddrinfo): Initialize se so that it's not garbage.
17312 Redo internal storage allocation so that it doesn't make unportable
17313 assumptions about alignment.
17316 * lib/utimens.c (futimens): Use futimesat if available.
17317 Prefer it to futimes since it doesn't have the futimes bug.
17319 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
17320 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
17321 Instead, declare a function that returns a pointer to an array,
17322 and use verify_type__ to declare the size of the array.
17323 Problem and germ of a solution reported by Bruno Haible.
17324 (verify_type__): Use 2, not 1, for bitfield size, to avoid
17325 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
17327 2005-09-23 Jim Meyering <jim@meyering.net>
17329 Sync from coreutils.
17330 Correct build failure (socklen_t not defined) on at least
17331 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
17332 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
17334 2005-09-23 Jim Meyering <jim@meyering.net>
17336 * modules/getaddrinfo (Depends-on): Add socklen.
17338 2005-09-23 Bruno Haible <bruno@clisp.org>
17340 * tests/test-verify.c: New file.
17342 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
17344 Sync from coreutils.
17346 * modules/argmatch (Depends-on): Add verify.
17347 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
17349 * modules/save-cwd (Depends-on): Likewise.
17351 * modules/openat (Files): Add lib/openat-die.c.
17352 (Depends-on): Remove error, exitfail.
17355 * modules/verify: New file.
17356 * MODULES.html.sh (Diagnostics <assert.h>): New section,
17357 with "verify" module.
17359 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
17361 Sync from coreutils.
17363 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
17364 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
17365 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
17366 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
17367 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
17368 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
17369 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
17370 Don't bother checking for string.h, stdlib.h, unistd.h.
17371 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
17372 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
17374 * m4/jm-macros.m4 (gl_MACROS): Likewise.
17375 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
17377 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
17378 (gl_GETDATE): Use it.
17380 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
17382 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
17384 Sync from coreutils.
17386 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
17388 * lib/argmatch.h: Include verify.h
17389 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
17390 (ARGMATCH_ASSERT): Remove; unused.
17391 * lib/canonicalize.c: Assume STDC_HEADERS.
17392 * lib/exclude.c: Include "strcase.h".
17393 * lib/regex_internal.h [!defined _LIBC]: Likewise.
17394 * lib/getusershell.c: Include stdio--.h rather than stdio.h
17396 (getusershell): Call fopen, not fopen_safer.
17397 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
17398 Do not include unistd-safer.h.
17399 (save_cwd): Don't call fd_safer; no longer needed
17400 now that we include fcntl--.h.
17402 * lib/getdate.y (relative_time): New type.
17403 (RELATIVE_TIME_0): New constant.
17404 (parser_control): Use relative_time instead of doing it ourselves.
17405 (%union): Add new relative_time rel member.
17406 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
17408 (relunit, relunit_snumber): Now of type rel.
17409 (zone, rel, relunit, get_date): Adjust to above changes.
17411 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
17412 Do not include unistd-safer.h.
17413 (getloadavg): Don't call fd_safer; no longer needed
17414 now that we include fcntl--.h.
17416 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
17417 (make_dir_parents): Treat ENOSYS like EEXIST.
17419 Improve quality of diagnostics on restore_cwd failure.
17420 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
17421 (make_dir_parents): Last arg is now int * (for errno), not bool *.
17422 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
17423 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
17424 each time through the loop. Do not diagnose restore_cwd failure;
17425 that is the caller's job (and perhaps the caller does not care).
17427 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
17428 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
17429 If the file already exists but is not a directory, don't bother
17430 to try to make its parents.
17431 Close potential file descriptor leak if we can't chdir("/") (!).
17432 Don't always return true if chdir($PWD) fails; return true only
17433 if the requested action was done successfully (except for the
17435 Don't log final directory unless we actually made it.
17436 Refactor to avoid duplicate code to fix up permissions.
17437 Don't attempt to fix up parent permissions if chdir($PWD) fails.
17439 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
17440 to make it a bit faster and (I hope) clearer.
17441 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
17442 Fix bug in formats like %2N.
17444 * lib/verify.h: New file.
17446 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
17448 Sync from coreutils.
17449 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
17451 2005-09-22 Jim Meyering <jim@meyering.net>
17453 Sync from coreutils.
17455 * m4/lstat.m4 (gl_FUNC_LSTAT):
17456 Use AC_LIBSOURCES to require lstat.c and lstat.h.
17457 Remove obsolete comment.
17458 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
17459 * m4/xstrtod.m4: Likewise.
17461 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
17463 2005-09-22 Jim Meyering <jim@meyering.net>
17465 Sync from coreutils.
17467 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
17469 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
17470 the .tm_year member, since otherwise gcc-4.0 would now warn about
17471 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
17473 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
17474 order to avoid an unsuppressible warning from gcc on 64-bit systems.
17476 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
17477 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
17478 when run in a time zone for which daylight savings time is in effect
17479 for the starting date.
17481 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
17482 stop us from restricting permissions of just-created absolute-named
17484 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
17485 to restore initial working directory.
17486 * lib/mkdir-p.c (make_dir_parents): New parameter:
17487 different_working_dir, to tell caller if/when we change the working
17488 directory and are unable to return to the initial one.
17489 * lib/mkdir-p.h (make_dir_parents): Update prototype.
17490 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
17491 `return false'. This fixes a bug introduced on 2004-07-30.
17493 * lib/openat.c (fdopendir): Be sure to close the supplied
17494 file descriptor before returning. This makes our replacement
17495 implementation a little closer to Solaris's, where fdopendir
17496 ties the file descriptor to the returned DIR* pointer.
17497 * lib/openat.c (unlinkat): New function.
17498 * lib/openat.h (unlinkat): Add prototype.
17499 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
17500 (openat_restore_fail): Rename from openat_restore_die.
17501 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
17503 Provide an alternative to exiting immediately upon save_cwd or
17504 restore_cwd failure. Now, an application can arrange e.g.,
17505 to perform a longjump in that case.
17506 * lib/openat.c: Include dirname.h.
17507 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
17508 (rpl_openat, fdopendir, fstatat): Call openat_save_die
17509 and openat_restore_die rather than calling error directly.
17510 Don't include "error.h" or "exitfail.h"; they're no longer needed.
17512 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
17513 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
17516 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
17517 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
17518 int utc, int nanoseconds);
17520 date should not have to allocate a megabyte of virtual memory to
17521 handle a format argument like +%1048575T. When implemented with
17522 strftime, it must allocate such a buffer, use strftime to fill it
17523 in, print it, then free it.
17524 With fprintftime, it simply prints everything and exits.
17525 With no need for memory allocation, that's one fewer way to fail.
17526 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
17527 optional field width, not before, so we accept %9:z, not %:9z.
17528 (my_strftime): Be sure to use L_('x') for literals.
17530 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
17531 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
17532 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
17533 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
17534 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
17535 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
17536 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
17537 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
17538 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
17539 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
17540 * lib/xgethostname.c, lib/xreadlink.c:
17541 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
17543 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
17544 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
17545 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
17546 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
17547 and don't include <sys/file.h>).
17549 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
17551 Sync from coreutils.
17553 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
17554 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
17555 [!LDAV_DONE]: Avoid unused variable warning.
17557 2005-09-21 Bruno Haible <bruno@clisp.org>
17559 * lib/unicodeio.h (unicode_to_mb): New declaration.
17561 2005-09-20 Derek Price <derek@ximbiot.com>
17563 * lib/getaddrinfo.c: Don't include <netdb.h> included from
17566 2005-09-20 Bruno Haible <bruno@clisp.org>
17568 * gnulib-tool: Remove trailing slashes from the values specified for
17569 --source-base, --m4-base, --tests-base, --aux-dir.
17570 Suggested by Simon Josefsson <jas@extundo.com>.
17572 2005-09-20 Bruno Haible <bruno@clisp.org>
17574 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
17575 func_modules_to_filelist, func_import, func_create_testdir): Make all
17576 sorting results locale-independent, so that gnulib-cache.m4 doesn't
17577 change when gnulib-tool is invoked in a different locale.
17579 2005-09-19 Simon Josefsson <jas@extundo.com>
17581 * m4/socklen.m4: Fix typo.
17583 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17585 Use a consistent style for including <config.h>.
17586 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
17587 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
17588 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
17589 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
17590 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
17591 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
17592 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
17593 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
17594 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
17595 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
17596 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
17597 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
17598 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
17599 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
17600 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
17601 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
17602 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
17603 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
17604 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
17605 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
17606 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
17607 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
17608 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
17609 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
17610 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
17611 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
17612 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
17613 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
17614 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
17615 lib/xstrtoumax.c, lib/yesno.c:
17616 Standardize inclusion of config.h.
17617 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
17618 lib/inttostr.h: Removed inclusion of config.h from header files.
17619 * lib/inttostr.c: Adjusted in-tree users.
17620 * lib/timespec.h: Remove superfluous warning to include config.h.
17621 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
17622 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
17623 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
17624 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
17625 config.h with HAVE_CONFIG_H.
17627 2005-09-19 Jim Meyering <jim@meyering.net>
17629 * modules/pathmax (License): Change to LGPL.
17631 2005-09-19 Derek Price <derek@ximbiot.com>
17633 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
17635 2005-09-19 Bruno Haible <bruno@clisp.org>
17637 * gnulib-tool (import): Provide default for --tests-base.
17639 2005-09-19 Bruno Haible <bruno@clisp.org>
17641 * doc/quote.texi: New file, extracted from gnulib.texi.
17642 * doc/ctime.texi: New file, extracted from gnulib.texi.
17643 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
17644 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
17645 * doc/gnulib.texi: Include them.
17647 2005-09-18 Bruno Haible <bruno@clisp.org>
17650 * gnulib-tool (func_readlink): New function.
17651 (func_ln_if_changed): Use it.
17653 2005-09-18 Bruno Haible <bruno@clisp.org>
17655 * gnulib-tool: Support --with-tests also with --import.
17656 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
17657 (func_import): Use variables $testsbase and $inctests. Emit a
17658 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
17659 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
17660 SUBDIRS += $testsdir.
17661 (func_create_testdir): Update.
17663 2005-09-18 Bruno Haible <bruno@clisp.org>
17665 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
17666 instead of $dry_run.
17667 (func_cp_if_changed, func_mv_if_changed): Remove functions.
17668 (func_ln_if_changed): Don't handle dry-run here.
17669 (func_import): In dry-run mode, detect more precisely which actions
17670 would be performed, and don't use "...ing" verbs.
17672 2005-09-18 Bruno Haible <bruno@clisp.org>
17674 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
17675 (func_import): Use join on two temporary files instead of three nested
17676 loops, in order to determine which files are new or old.
17678 2005-09-18 Bruno Haible <bruno@clisp.org>
17680 * gnulib-tool (func_import): Comment out code that spits out the
17681 new files with --dry-run.
17683 2005-09-18 Bruno Haible <bruno@clisp.org>
17685 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
17687 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
17689 * lib/stat-time.h: New file.
17690 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
17691 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
17692 in a different way.
17693 (timespec_cmp): New function.
17694 * lib/utimecmp.c: Include stat-time.h.
17695 (SYSCALL_RESOLUTION): Depend on whether various struct stat
17696 members exist, not on the obsolescent ST_MTIM_NSEC.
17697 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
17699 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
17701 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
17703 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
17705 * MODULES.html.sh (File system functions): Add stat-time.
17706 * modules/stat-time: New file.
17707 * modules/timespec (Files): Remove m4/st_mtim.m4; this
17708 is now done in a different way, by the stat-time module.
17709 * modules/utimecmp (Depends-on): Add stat-time.
17711 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
17713 * m4/st_mtim.m4: Remove. Superseded by...
17714 * m4/stat-time.m4: New file.
17715 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
17716 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
17718 2005-09-15 Derek Price <derek@ximbiot.com>
17720 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
17722 2005-09-15 Derek Price <derek@ximbiot.com>
17724 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
17725 * lib/regex_internal.c: Ditto, using this...
17726 (__GNUC_PREREQ): ...new macro.
17727 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
17729 (__GNUC_PREREQ): ...this new macro.
17731 * lib/strstr.h: Include string.h. Define strstr as a macro here.
17733 2005-09-15 Derek Price <derek@ximbiot.com>
17734 Paul Eggert <eggert@cs.ucla.edu>
17736 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
17737 changes, consolidating in...
17738 * lib/regex_internal.h: ...this file.
17740 2005-09-13 Jim Meyering <jim@meyering.net>
17742 * lib/canon-host.c: Filter through gnu indent and reword comments
17744 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
17746 2005-09-13 Derek Price <derek@ximbiot.com>
17748 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
17750 Reported by Jim Meyering <jim@meyering.net>.
17752 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
17754 * lib/base64.c: Typo.
17755 (base64_encode): Put b64str in initialized data section.
17757 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
17759 Merge glibc and coreutils changes into gnulib, plus a few
17761 * lib/md5.c: Use #error rather than a string.
17762 (CYCLIC): New macro, from glibc source. Use it instead of rol.
17763 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
17764 (__attribute__): Define to empty for non recent-GCC.
17765 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
17766 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
17767 Renamed from their non-__ counterparts, with new macros replacing
17768 them if not _LIBC. Add __THROW attribute.
17770 (struct md5_ctx): Align buffer if using GCC.
17771 * lib/sha1.h (struct sha1_ctx): Likewise.
17772 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
17773 The old name was backwards.
17774 (NOTSWAP): Remove; not used.
17775 (rol): New macro, moved here from md5.h.
17776 (sha1_process_block): Remove a FIXME that doesn't make sense.
17778 2005-09-12 Derek Price <derek@ximbiot.com>
17780 Return usable errors from canon-host.
17781 * lib/canon-host.h: New file.
17782 * lib/canon-host.c (canon_host): Wrap...
17783 (canon_host_r): ...this new function, which now relies exclusively on
17785 (ch_strerror): New function.
17786 (last_cherror): New global.
17787 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
17789 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
17791 (freeaddrinfo): Free ai->ai_canonname when set.
17793 2005-09-12 Derek Price <derek@ximbiot.com>
17795 Make canon-host require getaddrinfo.
17796 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
17797 AC_LIBSOURCE canon-host.h. Call...
17798 (gl_PREREQ_CANON_HOST): ...this new function, which requires
17800 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
17802 2005-09-12 Derek Price <derek@ximbiot.com>
17804 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
17806 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
17808 2005-09-12 Derek Price <derek@ximbiot.com>
17810 * lib/gai_strerror.c: Include config.h when available. Include
17811 getaddrinfo.h before other headers to test interface.
17812 Reported by Larry Jones <lawrence.jones@ugs.com>.
17814 2005-09-12 Derek Price <derek@ximbiot.com>
17815 Paul Eggert <eggert@cs.ucla.edu>
17817 * modules/glob (Files): Add glob-libc.h.
17819 2005-09-12 Derek Price <derek@ximbiot.com>
17820 Paul Eggert <eggert@cs.ucla.edu>
17822 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
17823 glob_.h, glob-libc.h.
17824 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
17826 2005-09-12 Derek Price <derek@ximbiot.com>
17827 Paul Eggert <eggert@cs.ucla.edu>
17829 * lib/glob-libc.h: Renamed from glob_.h. The new version is
17830 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
17831 protecting things that should be done only in gnulib contexts.
17832 * lib/glob_.h: New file, containing only the glob things needed for
17834 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
17835 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
17836 (glob, globfree, glob_pattern_p): Now defined simply in terms of
17837 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
17838 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
17839 and to respect the namespace rules better.
17841 2005-09-08 Simon Josefsson <jas@extundo.com>
17843 * modules/socklen: New file.
17845 2005-09-08 Simon Josefsson <jas@extundo.com>
17847 * m4/socklen.m4: New file.
17849 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
17851 * modules/utimens (Files): Add m4/utimbuf.m4, since
17852 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
17853 Reported by Sergey Poznyakoff.
17855 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
17857 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
17858 definitions, since that's the preferred style in glibc.
17859 Fix a minor spacing issue, and update copyright notice to match
17862 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
17864 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
17866 2005-09-06 Simon Josefsson <jas@extundo.com>
17868 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
17869 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
17871 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
17873 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
17876 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
17878 * config/srclist.txt: Add glibc bug 1302.
17880 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
17882 Change bitset word type from unsigned int to unsigned long int,
17883 as this has better performance on typical 64-bit hosts.
17884 Port bitset code to hosts with unusual word sizes.
17885 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
17886 (build_collating_symbol):
17887 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
17888 argument is a bitset. This is merely a style issue, but it makes
17889 it clearer that an entire array is expected.
17890 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
17891 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
17892 Port to the case where bitset_word is not the same as unsigned int.
17893 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
17894 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
17896 * lib/regexec.c (check_dst_limits_calc_pos_1,
17897 check_subexp_matching_top):
17898 (build_trtable, group_nodes_into_DFAstates):
17900 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
17901 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
17902 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
17903 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
17904 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
17905 * lib/regcomp.c (optimize_subexps, lower_subexp):
17906 Work even if bitset_word has holes in its bitwise representation.
17907 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
17908 * lib/regexec.c (check_dst_limits_calc_pos_1,
17909 check_subexp_matching_top):
17911 * lib/regex_internal.c (re_string_reconstruct):
17912 Don't assume UCHAR_MAX == 255.
17913 * lib/regex_internal.h (bitset_set_all): Likewise.
17914 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
17916 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
17917 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
17919 (BITSET_WORD_MAX): New macro.
17920 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
17921 (bitset_set_all, bitset_copy): Now inline functions, not macros.
17922 (bitset_empty, bitset_copy):
17923 Prefer sizeof (bitset) to multiplying it out ourselves.
17924 (bitset_not_merge): Remove; unused.
17925 (bitset_contain): Return bool, not unsigned int with one bit on.
17926 All callers changed.
17927 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
17928 alignment than re_node_set; do this by defining a new internal
17929 type struct dests_alloc and using it to allocate memory.
17931 2005-09-05 Bruno Haible <bruno@clisp.org>
17933 * gnulib-tool (func_import): Fix comparison in handling of symbolic
17936 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
17938 * modules/size_max (Makefile.am): Add size_max.h
17940 2005-09-04 Derek Price <derek@ximbiot.com>
17942 * gnulib-tool (func_import): Fix reversed $symbolic logic.
17944 2005-09-03 Simon Josefsson <jas@extundo.com>
17946 * gnulib-tool: Fix typo.
17948 2005-09-03 Simon Josefsson <jas@extundo.com>
17950 * config/srclist.txt: Add glibc bug 1293.
17952 2005-09-03 Derek Price <derek@ximbiot.com>
17954 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
17955 From Larry Jones <lawrence.jones@ugs.com>.
17957 2005-09-02 Simon Josefsson <jas@extundo.com>
17959 * modules/socklen: New file.
17961 2005-09-02 Simon Josefsson <jas@extundo.com>
17963 * modules/havelib: New module.
17965 * modules/gettext, modules/iconv, modules/lock, modules/readline:
17968 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
17970 Check for arithmetic overflow when calculating sizes, to prevent
17971 some buffer-overflow issues. These patches are conservative, in the
17972 sense that when I couldn't determine whether an overflow was possible,
17973 I inserted a run-time check.
17974 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
17976 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
17977 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
17978 (re_xnrealloc, re_x2nrealloc): New inline functions.
17979 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
17980 parse_bracket_exp):
17981 (build_equiv_class, build_charclass): Check for arithmetic overflow
17982 in size expression calculations.
17983 * lib/regex_internal.c (re_string_realloc_buffers):
17984 (build_wcs_upper_buffer, re_node_set_add_intersect):
17985 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
17986 (re_dfa_add_node, register_state): Likewise.
17987 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
17988 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
17989 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
17990 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
17992 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
17994 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
17995 m4/ulonglong.m4. Problem reported by Martin Lambers.
17997 2005-09-02 Bruno Haible <bruno@clisp.org>
17999 Support for lib vs. lib64 distinction on biarch platforms.
18000 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
18001 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
18002 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
18004 2005-09-02 Bruno Haible <bruno@clisp.org>
18006 * gnulib-tool (import): In the other first-use case, provide defaults
18009 2005-09-02 Bruno Haible <bruno@clisp.org>
18011 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
18012 patches not yet found in the latest gettext release.
18014 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
18016 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
18017 to avoid a collision with bits/local_lim.h in glibc.
18018 All uses changed. Problem reported by Dmitry V. Levin in
18019 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
18021 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
18022 bugs in int versus size_t comparisons.
18023 (re_string_context_at): Fix bug where the code assumed that
18026 Use bool where appropriate.
18027 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
18028 All callers changed.
18029 (calc_eclosure_iter): Likewise, for ROOT arg.
18030 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
18031 (build_charclass_op): Likewise, for NON_MATCH arg.
18032 * lib/regex_internal.c (re_string_allocate, re_string_construct):
18033 (re_string_construct_common): Likewise, for ICASE arg.
18034 * lib/regexec.c (re_search_2_stub, re_search_stub):
18035 Likewise, for RET_LEN arg.
18036 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
18037 (set_regs): Likewise, for FL_BACKTRACK arg.
18038 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
18039 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
18040 (calc_eclosure_iter, parse_bracket_exp):
18041 Use bool for internal variables that are booleans.
18042 * lib/regexec.c (re_search_internal, check_matching,
18043 proceed_next_node):
18044 (set_regs, build_sifted_states, sift_states_bkref):
18045 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
18046 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
18047 (find_collation_sequence_value):
18049 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
18050 (re_node_set_compare):
18051 Return bool, not int. All callers changed.
18052 * lib/regexec.c (check_halt_node_context, check_dst_limits):
18053 (build_trtable, check_node_accept): Likewise.
18054 * lib/regex_internal.h: Include stdbool.h.
18056 Fix bugs uncovered when converting to bool.
18057 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
18058 failure instead of charging ahead blindly.
18059 * lib/regex_internal.c (register_state): Likewise.
18060 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
18061 for freeing internal storage.
18062 (group_nodes_into_DFA_states): Use unsigned int, not int, for
18063 bitset pieces used as boolean, to avoid undefined behavior
18064 on hosts that do int overflow checking.
18066 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
18068 * config/srclist.txt: Add glibc bugs 1285-1287.
18070 2005-09-01 Jim Meyering <jim@meyering.net>
18072 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
18073 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
18074 Require gl_STAT_MACROS, too.
18076 2005-09-01 Bruno Haible <bruno@clisp.org>
18078 * gnulib-tool (import): In the first-use case, provide defaults.
18080 2005-09-01 Bruno Haible <bruno@clisp.org>
18082 * gnulib-tool (func_import): Remove the .tmp files.
18084 2005-09-01 Bruno Haible <bruno@clisp.org>
18086 * gnulib-tool (func_import): Fix handling of symbolic links.
18088 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
18090 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
18091 old glibc regex code mishandles strings longer than 2**31 bytes.
18092 This patch fixes this when the regex code is used in gnulib
18093 (i.e., outside glibc).
18095 This patch should not affect the use of the regex code inside
18096 glibc. No doubt this problem also needs to be handled for glibc
18097 as well, but the result will be an incompatible change to the
18098 glibc ABI, and the old ABI will have to be supported too. That
18099 can be the the subject for another patch.
18101 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
18102 governing whether the rest of this patch is active. By default,
18103 the macro is disabled and the patch has no effect.
18104 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
18105 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
18106 (struct re_pattern_buffer, re_search, re_search_2, re_match):
18107 (re_match_2, re_set_registers): Use the new types.
18108 * lib/regex_internal.h (Idx, re_hashval_t): New types.
18109 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
18111 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
18112 (re_string_context_at, bin_tree_t, re_dfastate_t):
18113 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
18114 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
18115 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
18116 (re_string_char_size_at, re_string_wchar_at):
18117 (re_string_elem_size_at):
18118 Use the new types and macros to port to 64-bit hosts.
18119 Use unsigned types for internal values, so that the code
18120 mostly works even for arrays larger than SSIZE_MAX.
18121 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
18122 (search_duplicated_node, calc_eclosure_iter, fetch_number):
18123 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
18124 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
18125 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
18126 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
18127 (calc_inveclosure, parse_dup_op, build_range_exp):
18128 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
18129 (fetch_number, create_token_tree, mark_opt_subexp):
18131 * lib/regex_internal.c (re_string_construct_common,
18132 create_ci_newstate):
18133 (create_cd_newstate, re_string_allocate, re_string_construct):
18134 (re_string_realloc_buffers, build_wcs_upper_buffer):
18135 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
18136 (re_string_reconstruct, re_string_peek_byte_case):
18137 (re_string_fetch_byte_case, re_string_context_at):
18138 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
18139 (re_node_set_init_copy, re_node_set_add_intersect):
18140 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
18141 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
18142 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
18143 (re_acquire_state, re_acquire_state_context, register_state):
18145 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
18146 search_cur_bkref_entry):
18147 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
18148 (re_search_internal, re_search_2_stub, re_search_stub)
18149 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
18150 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
18151 (update_cur_sifted_state, check_dst_limits):
18152 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
18153 (check_subexp_limits, sift_states_bkref, merge_state_array):
18154 (check_subexp_matching_top, get_subexp, get_subexp_sub):
18155 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
18156 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
18157 (expand_bkref_cache, check_node_accept_bytes):
18158 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
18159 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
18160 (acquire_init_state_context, check_halt_node_context):
18161 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
18162 (sift_states_backward, clean_state_log_if_needed):
18163 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
18164 (find_recover_state, transit_state_sb, transit_state_mb):
18165 (transit_state_bkref, build_trtable, match_ctx_clean):
18167 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
18168 to work around an assumption that REG_MISSING is negative.
18170 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
18171 (seek_collating_symbol_entry) [defined _LIBC]:
18172 (lookup_collation_sequence_value) [defined _LIBC]:
18173 (build_range_exp, build_collating_symbol) [defined _LIBC]:
18174 Use prototypes rather than old-style function definitions.
18175 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
18176 (transit_state_sb) [0]:
18177 (find_collation_sequence_value) [defined _LIBC]: Likewise.
18179 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
18182 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
18183 (optimize_subexps, lower_subexp):
18184 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
18185 since the signed shift might overflow. Use 1u<<31 instead.
18186 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
18188 * lib/regexec.c (check_dst_limits_calc_pos_1,
18189 check_subexp_matching_top): Likewise.
18191 * lib/regcomp.c (optimize_subexps, lower_subexp):
18192 Use CHAR_BIT rather than 8, for clarity.
18193 * lib/regexec.c (check_dst_limits_calc_pos_1):
18194 (check_subexp_matching_top): Likewise.
18195 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
18196 have to worry about portability issues when shifting it left.
18197 Remove no-longer-needed test for table_size > 0.
18198 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
18199 in a word, as the resulting behavior is undefined.
18200 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
18201 in one case, a <= should have been an <, and in another case the
18202 whole test was missing.
18203 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
18204 the standard name CHAR_BIT.
18205 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
18206 this is not true on one's complement and signed-magnitude hosts.
18208 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
18210 (struct re_dfa_t): Remove unused member states_alloc.
18211 * lib/regcomp.c (init_dfa): Don't initialize unused members.
18213 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
18215 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
18216 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
18217 and large-file glibc and in 32-bit large-file Solaris.
18219 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
18221 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
18222 lengths fit in regoff_t; this isn't true if regoff_t is the same
18224 * lib/regex.c (re_search_internal): 5th arg is LAST_START
18225 (= START + RANGE) instead of RANGE. This avoids overflow
18226 problems when regoff_t is the same width as size_t.
18227 All callers changed.
18228 (re_search_2_stub): Check for overflow when adding the
18229 sizes of the two strings.
18230 (re_search_stub): Check for overflow when adding START
18231 to RANGE; if it occurs, substitute the extreme value.
18233 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
18235 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
18237 2005-08-31 Jim Meyering <jim@meyering.net>
18239 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
18240 a pointer-to-const.
18241 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
18242 (register_state): Likewise.
18243 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
18244 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
18245 (group_nodes_into_DFAstates): Likewise.
18247 2005-08-31 Jim Meyering <jim@meyering.net>
18249 * check-module: Add a FIXME comment.
18251 2005-08-31 Eric Blake <ebb9@byu.net>
18253 * modules/unistd-safer (Files): Add unistd--.h.
18254 * modules/stdio-safer (Files): Add stdio--.h.
18256 2005-08-31 Derek Price <derek@ximbiot.com>
18258 * lib/getdelim.c (getdelim): Return EOF on EOF.
18259 Reported by Larry Jones <lawrence.jones@ugs.com>.
18261 2005-08-31 Bruno Haible <bruno@clisp.org>
18263 Avoid unnecessary diffs in the generated lib/Makefile.am.
18264 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
18265 the generated files.
18266 (func_import): Don't set cmd.
18268 2005-08-31 Bruno Haible <bruno@clisp.org>
18270 * lib/strstr.c: Include <stddef.h>, for NULL.
18271 * lib/strcasestr.c: Likewise.
18272 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
18274 2005-08-31 Bruno Haible <bruno@clisp.org>
18276 * gnulib-tool: New option --macro-prefix.
18277 (func_import): Use macro_prefix.
18278 (import): Handle option --macro-prefix.
18280 2005-08-31 Bruno Haible <bruno@clisp.org>
18282 * gnulib-tool (import): Rename most ac_* variables to cached_*.
18283 Also use new variables cached_lgpl, cached_libtool.
18285 2005-08-31 Bruno Haible <bruno@clisp.org>
18287 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
18288 always instantiating them.
18290 2005-08-31 Bruno Haible <bruno@clisp.org>
18292 * gnulib-tool (func_import): Read the previous cached settings
18293 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
18294 earlier added by gnulib but are now dropped. Warn when a gnulib file
18295 overwrites a non-gnulib file.
18297 2005-08-31 Bruno Haible <bruno@clisp.org>
18299 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
18300 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
18301 projects that don't keep autogenerated files in CVS. Put into
18302 actioncmd only the specified modules, not the transitive closure.
18304 2005-08-31 Bruno Haible <bruno@clisp.org>
18306 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
18307 Create directories that shall be filled.
18308 (import): Don't look for gl_* macros in configure.ac. Recurse across
18309 all directories containing a gnulib-cache.m4 files, if meaningful.
18311 2005-08-31 Bruno Haible <bruno@clisp.org>
18313 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
18314 (import): Set seen_libtool when we see gl_LIBTOOL.
18316 2005-08-31 Bruno Haible <bruno@clisp.org>
18318 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
18319 declaration macro definitions from generated gnulib.m4.
18321 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
18323 * lib/iconvme.h: Add prototype for iconv_alloc.
18325 2005-08-29 Simon Josefsson <jas@extundo.com>
18327 * lib/iconvme.c: Fix errno.
18329 2005-08-29 Bruno Haible <bruno@clisp.org>
18331 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
18332 that it works when the directory contains spaces.
18334 2005-08-29 Bruno Haible <bruno@clisp.org>
18336 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
18338 2005-08-29 Bruno Haible <bruno@clisp.org>
18340 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
18343 2005-08-29 Bruno Haible <bruno@clisp.org>
18344 and Stepan Kasal <kasal@ucw.cz>
18346 * check-module: If more parameters are given, check each of them
18347 separately; add more exceptions, as noted by Jim Meyering.
18348 (check_module): New procedure.
18349 (%exempt_header): Now contains all exceptions.
18351 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
18353 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
18355 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
18357 * lib/iconvme.c: Split iconv_string into iconv_alloc.
18359 2005-08-28 Bruno Haible <bruno@clisp.org>
18361 * m4/gnulib-tool.m4: New file.
18363 2005-08-27 Jim Meyering <jim@meyering.net>
18365 * modules/unistd-safer (Files): Add pipe-safer.c.
18366 * modules/fcntl-safer (Files): Add creat-safer.c.
18368 2005-08-27 Jim Meyering <jim@meyering.net>
18370 * m4/stdlib-safer.m4: New file. From coreutils.
18371 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
18372 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
18373 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
18374 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
18375 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
18377 2005-08-27 Jim Meyering <jim@meyering.net>
18379 * lib/fopen-safer.c: Merge minor changes from coreutils.
18380 * lib/dup-safer.c: Likewise.
18381 * lib/fd-safer.c: Likewise.
18383 Merge from coreutils.
18384 * lib/stdio--.h: New file.
18385 * lib/stdlib--.h: New file.
18386 * lib/mkstemp-safer.c: New file.
18388 GNU tar needs these.
18389 * lib/pipe-safer.c: New file.
18390 * lib/creat-safer.c: New file.
18391 * lib/fcntl--.h (creat): Define to creat_safer.
18392 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
18393 * lib/unistd--.h (pipe): Define to pipe_safer.
18394 * lib/unistd-safer.h: Declare pipe_safer.
18396 2005-08-26 Simon Josefsson <jas@extundo.com>
18398 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
18399 Haible <bruno@clisp.org>.
18401 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
18403 * lib/regex_internal.h: Remove all references to
18404 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
18406 (bitset_not, bitset_merge, bitset_not_merge):
18407 (bitset_mask, re_string_allocate, re_string_construct):
18408 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
18409 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
18410 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
18411 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
18412 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
18413 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
18414 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
18415 (re_acquire_state_context):
18416 Remove unnecessary forward decls.
18417 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
18418 Put __attribute at function definition,
18419 now that the function decl has been removed.
18420 * lib/regex_internal.c (re_string_peek_byte_case):
18421 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
18424 2005-08-25 Stepan Kasal <kasal@ucw.cz>
18426 * m4/regex.m4: Add AC_PREREQ(2.50).
18427 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
18429 2005-08-25 Simon Josefsson <jas@extundo.com>
18431 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
18434 2005-08-25 Simon Josefsson <jas@extundo.com>
18436 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
18437 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
18438 GLIBC specific code.
18440 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
18442 Make regex safe for g++. This fixes one real bug (an "err"
18443 that should have been "*err"). g++ problem reported by
18445 * lib/regex_internal.h (re_calloc): New macro, consistent with
18446 re_malloc etc. All callers of calloc changed to use re_calloc.
18447 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
18448 not int. All callers changed.
18449 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
18450 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
18451 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
18452 (find_recover_state): Change "err" to "*err"; this fixes what
18453 appears to be a real bug.
18454 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
18457 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
18459 * modules/regex (Depends-on): Add malloc, since the code
18460 assumes that !malloc(0) means failure.
18462 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
18464 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
18466 alloca modernization/simplification for regex.
18467 * lib/regex.c: Remove portability cruft for alloca. This no longer
18468 needs to be at the start of the file, and can be moved into
18469 regex_internal.h and simplified.
18470 * lib/regex_internal.h: Include <alloca.h>.
18471 (__libc_use_alloca) [!defined _LIBC]: New macro.
18472 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
18473 now works outside glibc.
18475 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
18477 * config/srclist.txt: Add glibc bugs 1241, 1245.
18479 2005-08-25 Jim Meyering <jim@meyering.net>
18481 * lib/open-safer.c: Include <config.h>.
18482 Otherwise, we'd lose LARGEFILE support in any file using
18485 2005-08-25 Bruno Haible <bruno@clisp.org>
18487 * m4/minmax.m4: Require autoconf 2.52.
18488 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
18489 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
18490 alternatives of translit over the alphabet.
18491 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
18493 2005-08-24 Simon Josefsson <jas@extundo.com>
18495 * tests/test-getpass.c: New file.
18497 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
18499 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
18500 for GNU regex features.
18502 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
18504 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
18505 * lib/regex.h (regerror): Likewise.
18507 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
18508 requires this. (The code never needed it.)
18510 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
18511 All uses of recently-renamed identifiers changed to use the new,
18512 POSIX-compliant names. The code will build and run just fine
18513 without these changes, but it's better to eat our own dog food
18514 and use the standard-conforming names.
18516 * lib/regex.h: Fix a multitude of POSIX name space violations.
18517 These changes have an effect only for programs that define
18518 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
18519 do not change anything for programs compiled in the normal way.
18520 Also, there is no effect on the ABI.
18522 (_REGEX_SOURCE): New macro.
18523 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
18524 defined and _GNU_SOURCE is not; this fixes a name space violation.
18526 Rename the following macros to obey POSIX requirements.
18527 The old names are still visible as macros if _REGEX_SOURCE is defined.
18528 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
18529 RE_BACKSLASH_ESCAPE_IN_LISTS.
18530 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
18531 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
18532 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
18533 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
18534 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
18535 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
18536 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
18537 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
18538 (REG_INTERVALS): renamed from RE_INTERVALS.
18539 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
18540 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
18541 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
18542 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
18543 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
18544 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
18545 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
18546 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
18547 RE_UNMATCHED_RIGHT_PAREN_ORD.
18548 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
18549 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
18550 (REG_DEBUG): renamed from RE_DEBUG.
18551 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
18552 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
18553 unusual, since we can't clash with the POSIX REG_ICASE.
18554 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
18555 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
18556 (REG_NO_SUB): renamed from RE_NO_SUB.
18557 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
18558 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
18559 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
18560 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
18561 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
18562 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
18563 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
18564 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
18565 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
18566 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
18567 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
18568 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
18569 RE_SYNTAX_POSIX_MINIMAL_BASIC.
18570 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
18571 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
18572 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
18573 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
18574 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
18575 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
18576 (REG_FIXED): Renamed from REGS_FIXED.
18577 (REG_NREGS): Renamed from RE_NREGS.
18579 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
18580 of other REG_* macros, since POSIX says the user is allowed to
18581 #undef these macros selectively.
18583 (reg_errcode_t): Update comment stating what other tables need
18586 Rename the following enum values to obey POSIX requirements.
18587 The old names are still visible as macros.
18588 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
18589 is not defined, since GNU is supposed to be a superset of POSIX as
18590 much as possible, and since we want reg_errcode_t to be a signed
18591 type for implementation consistency.
18592 (_REG_NOERROR): Renamed from REG_NOERROR.
18593 (_REG_NOMATCH): Renamed from REG_NOMATCH.
18594 (_REG_BADPAT): Renamed from REG_BADPAT.
18595 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
18596 (_REG_ECTYPE): Renamed from REG_ECTYPE.
18597 (_REG_EESCAPE): Renamed from REG_EESCAPE.
18598 (_REG_ESUBREG): Renamed from REG_ESUBREG.
18599 (_REG_EBRACK): Renamed from REG_EBRACK.
18600 (_REG_EPAREN): Renamed from REG_EPAREN.
18601 (_REG_EBRACE): Renamed from REG_EBRACE.
18602 (_REG_BADBR): Renamed from REG_BADBR.
18603 (_REG_ERANGE): Renamed from REG_ERANGE.
18604 (_REG_ESPACE): Renamed from REG_ESPACE.
18605 (_REG_BADRPT): Renamed from REG_BADRPT.
18606 (_REG_EEND): Renamed from REG_EEND.
18607 (_REG_ESIZE): Renamed from REG_ESIZE.
18608 (_REG_ERPAREN): Renamed from REG_ERPAREN.
18609 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
18610 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
18611 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
18612 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
18614 (_REG_RE_NAME, _REG_RM_NAME): New macros.
18615 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
18616 changed. But support the old name if the new one is not defined
18617 and if _REGEX_SOURCE.
18619 Change the following member names in struct re_pattern_buffer.
18620 The old names are still supported if !_REGEX_SOURCE.
18621 The new names are always supported, regardless of _REGEX_SOURCE.
18622 (re_buffer): Renamed from buffer.
18623 (re_allocated): Renamed from allocated.
18624 (re_used): Renamed from used.
18625 (re_syntax): Renamed from syntax.
18626 (re_fastmap): Renamed from fastmap.
18627 (re_translate): Renamed from translate.
18628 (re_can_be_null): Renamed from can_be_null.
18629 (re_regs_allocated): Renamed from regs_allocated.
18630 (re_fastmap_accurate): Renamed from fastmap_accurate.
18631 (re_no_sub): Renamed from no_sub.
18632 (re_not_bol): Renamed from not_bol.
18633 (re_not_eol): Renamed from not_eol.
18634 (re_newline_anchor): Renamed from newline_anchor.
18636 Change the following member names in struct re_registers.
18637 The old names are still supported if !_REGEX_SOURCE.
18638 The new names are always supported, regardless of _REGEX_SOURCE.
18639 (rm_num_regs): Renamed from num_regs.
18640 (rm_start): Renamed from start.
18641 (rm_end): Renamed from end.
18643 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
18644 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
18645 Prepend __ to parameter names.
18647 Undo yesterday's changes.
18649 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
18651 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
18652 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
18655 2005-08-24 Jim Meyering <jim@meyering.net>
18657 Sync from coreutils.
18658 * m4/fcntl-safer.m4: New file.
18660 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
18661 and object files for this module.
18663 2005-08-24 Jim Meyering <jim@meyering.net>
18665 Sync from coreutils.
18666 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
18668 2005-08-24 Jim Meyering <jim@meyering.net>
18670 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
18671 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
18673 2005-08-24 Jim Meyering <jim@meyering.net>
18675 * modules/fcntl-safer: New module.
18676 * modules/fts (Depends-on): Add fcntl-safer.
18677 * MODULES.html.sh (File descriptor based Input/Output):
18680 2005-08-24 Bruno Haible <bruno@clisp.org>
18682 Support for unit test modules.
18683 * modules/README: Mention tests modules.
18684 * modules/TEMPLATE-TESTS: New file.
18685 * gnulib-tool: New options --extract-tests-module, --with-tests and
18686 --tests-base (unused for the moment).
18687 (testsbase, inctests): New variables.
18688 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
18689 (func_verify_module): Exclude TEMPLATE-TESTS.
18690 (func_verify_nontests_module, func_verify_tests_module): New functions.
18691 (func_get_dependencies): Add implicit dependency for tests modules.
18692 (func_get_tests_module): New function.
18693 (func_modules_transitive_closure): When --with-tests was specified,
18694 include the unit tests as well, unless explicitly avoided.
18695 (func_emit_lib_Makefile_am): Ignore the tests modules here.
18696 (func_emit_tests_Makefile_am): New function.
18697 (func_create_testdir): When --with-tests was specified, emit a
18699 * MODULES.html.sh (Future developments): Update.
18701 2005-08-24 Bruno Haible <bruno@clisp.org>
18703 * modules/tls-tests: New file.
18704 * tests/test-tls.c: New file, from GNU gettext.
18706 2005-08-24 Bruno Haible <bruno@clisp.org>
18708 * modules/lock-tests: New file.
18709 * tests/test-lock.c: New file, from GNU gettext.
18711 2005-08-24 Bruno Haible <bruno@clisp.org>
18713 * lib/lock.h: Add multiple inclusion guard.
18714 * lib/tls.h: Add multiple inclusion guard.
18716 2005-08-24 Bruno Haible <bruno@clisp.org>
18718 * gnulib-tool: Add support for the --aux-dir option to
18719 --create-testdir, --create-megatestdir, --test, --megatest.
18720 (func_create_testdir, func_create_megatestdir): Optionally emit a
18721 AC_CONFIG_AUX_DIR directive.
18722 (create-testdir, create-megatestdir, test, megatest): Provide a
18723 default value for $auxdir.
18725 2005-08-24 Bruno Haible <bruno@clisp.org>
18727 * gnulib-tool (import): Use compound statement instead of subshell
18730 2005-08-24 Bruno Haible <bruno@clisp.org>
18732 * gnulib-tool (import): Change --aux-dir default to "build-aux".
18734 2005-08-24 Bruno Haible <bruno@clisp.org>
18736 * gnulib-tool (func_version): Update.
18738 2005-08-24 Bruno Haible <bruno@clisp.org>
18740 * gnulib-tool (func_import, func_create_testdir,
18741 func_create_megatestdir): Quote all autoconf macro arguments.
18743 2005-08-24 Bruno Haible <bruno@clisp.org>
18745 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
18746 option --force, because --force causes the aclocal.m4 of each
18747 subdirectory to be newer than the corresponding config.h.in.
18749 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
18751 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
18752 All contents moved to gl_REGEX.
18753 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
18754 assume that it does.
18756 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
18758 * lib/regex.h (REG_NOSYS)
18759 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
18760 Define, since POSIX requires it as of 2001.
18762 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
18763 New private symbol, used to keep the enum signed in all cases.
18764 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
18766 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
18768 * lib/regex_internal.c (re_string_skip_chars, register_state):
18770 Remove forward decls; no longer needed now that we use prototypes.
18771 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
18772 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
18773 (clean_state_log_if_needed): Likewise.
18775 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
18777 * config/srclist.txt: Add glibc bugs 1231-1233.
18779 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
18781 Fix problems reported by Sam Steingold in
18782 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
18783 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
18784 assumed that reg_errcode_t is a signed type, which is not
18785 necessarily true if _XOPEN_SOURCE is not defined.
18786 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
18787 since some compilers warn about it otherwise.
18789 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
18791 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
18792 (init_word_char, create_initial_state, duplicate_node_closure):
18793 (fetch_token, peek_token_bracket, build_range_exp):
18794 (build_collating_symbol): Remove forward decls; no longer needed
18795 now that we use prototypes.
18798 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
18799 (re_compile_fastmap_iter, regcomp, regerror, regfree):
18800 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
18801 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
18802 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
18803 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
18804 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
18805 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
18806 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
18807 (build_range_exp, build_collating_symbol, parse_bracket_exp):
18808 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
18809 (build_charclass, build_charclass_op, fetch_number, create_tree):
18810 (create_token_tree, mark_opt_subexp, duplicate_tree):
18811 Use prototypes rather than old-style definitions.
18813 * lib/regex_internal.c:
18814 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
18815 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
18816 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
18817 (re_string_reconstruct, re_string_peek_byte_case):
18818 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
18819 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
18820 (re_node_set_init_copy, re_node_set_add_intersect):
18821 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
18822 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
18823 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
18824 (re_acquire_state, re_acquire_state_context, register_state):
18825 (create_ci_newstate, create_cd_newstate, free_state):
18827 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
18829 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
18830 (re_search_internal, prune_impossible_nodes):
18831 (acquire_init_state_context, check_matching, static):
18832 (check_halt_node_context, check_halt_state_context, proceed_next_node):
18833 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
18834 (update_regs, sift_states_backward, build_sifted_states):
18835 (clean_state_log_if_needed, merge_state_array):
18836 (update_cur_sifted_state, add_epsilon_src_nodes):
18837 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
18838 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
18839 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
18840 (find_recover_state, check_subexp_matching_top, transit_state_mb):
18841 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
18842 (check_arrival, check_arrival_add_next_nodes):
18843 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
18844 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
18845 (check_node_accept_bytes, check_node_accept, extend_buffers):
18846 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
18847 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
18851 * lib/regex_internal.h:
18852 (re_string_allocate, re_string_construct, re_string_reconstruct):
18853 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
18854 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
18855 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
18856 (re_string_context_at, re_string_peek_byte_case):
18857 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
18858 is defined, since we now use prototypes always.
18860 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
18861 C89 or better. All uses removed.
18863 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
18865 * config/srclist.txt: Add glibc bugs 1220-1227.
18867 2005-08-20 Jim Meyering <jim@meyering.net>
18869 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
18870 of unused local, dfa.
18872 2005-08-20 Bruno Haible <bruno@clisp.org>
18874 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
18876 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
18878 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
18879 (re_node_set_insert_last, re_dfa_add_node):
18880 Rename local variables to avoid GCC shadowing warnings.
18882 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
18884 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
18885 [defined lint]: Suppress bogus uninitialized-variable warnings.
18887 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
18888 and let the caller return REG_ESPACE if out of space. This
18889 removes an uninitialied-variable warning with GCC 4.0.1, and also
18890 avoids taking the address of a local variable. All callers
18893 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
18895 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
18896 $LIBCSRC/posix/regexec.c.
18897 Add glibc bug 1217 for regcomp.c.
18899 2005-08-19 Jim Meyering <jim@meyering.net>
18901 * lib/regexec.c (proceed_next_node): Redo local variables to
18902 avoid GCC shadowing warnings.
18904 2005-08-18 Bruno Haible <bruno@clisp.org>
18906 * lib/strstr.c (strstr): Fix return value in multibyte case.
18907 * lib/strcasestr.c (strcasestr): Likewise.
18909 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
18911 * lib/regex.h: Remove useless space-before-tab. From coreutils.
18913 2005-08-17 Jim Meyering <jim@meyering.net>
18915 Make the %s format (seconds since the epoch) work for a negative
18916 number and when used with a zero-padded field width, e.g. %015s.
18918 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
18919 label so that it precedes the code to set `digits'. Otherwise,
18920 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
18921 print `00-22'. Now, it prints `-0022', as it should.
18923 2005-08-17 Bruno Haible <bruno@clisp.org>
18925 * modules/strstr (Files): Add m4/mbrtowc.m4.
18926 (Depends-on): Add mbuiter.
18928 2005-08-17 Bruno Haible <bruno@clisp.org>
18930 * modules/strcasestr: New file.
18931 * MODULES.html.sh (String handling, based on ANSI C 89): Add
18934 2005-08-17 Bruno Haible <bruno@clisp.org>
18936 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
18938 2005-08-17 Bruno Haible <bruno@clisp.org>
18940 * modules/mbuiter: New file.
18941 * MODULES.html.sh (Extended multibyte and wide character utilities):
18944 2005-08-17 Bruno Haible <bruno@clisp.org>
18946 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
18947 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
18949 2005-08-17 Bruno Haible <bruno@clisp.org>
18951 * m4/strcasestr.m4: New file.
18953 2005-08-17 Bruno Haible <bruno@clisp.org>
18955 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
18956 * lib/strstr.c: Completely rewritten, with multibyte locale support.
18958 2005-08-17 Bruno Haible <bruno@clisp.org>
18960 * lib/strcasestr.h: New file.
18961 * lib/strcasestr.c: New file.
18963 2005-08-17 Bruno Haible <bruno@clisp.org>
18965 * lib/strcasecmp.c: Use mbuiter.h.
18967 2005-08-17 Bruno Haible <bruno@clisp.org>
18969 * lib/mbuiter.h: New file.
18971 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
18973 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
18974 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
18975 and gl_GETOPT are both invoked via different paths (as happens
18976 with GNU tar CVS because it uses both argp and getopt), the former
18979 2005-08-16 Bruno Haible <bruno@clisp.org>
18981 * modules/tls: New file.
18982 * MODULES.html.sh (Multithreading): Add tls.
18984 2005-08-16 Bruno Haible <bruno@clisp.org>
18986 * modules/strnlen1: New file.
18987 * MODULES.html.sh (String handling): Add strnlen1.
18989 2005-08-16 Bruno Haible <bruno@clisp.org>
18991 * modules/strcase (Files): Add m4/mbrtowc.m4.
18992 (Depends-on): Add strnlen1, mbchar.
18994 2005-08-16 Bruno Haible <bruno@clisp.org>
18996 * modules/mbiter: New file.
18997 * MODULES.html.sh (Extended multibyte and wide character utilities):
19000 2005-08-16 Bruno Haible <bruno@clisp.org>
19002 * modules/mbfile: New file.
19003 * MODULES.html.sh (Extended multibyte and wide character utilities):
19006 2005-08-16 Bruno Haible <bruno@clisp.org>
19008 * modules/mbchar: New file.
19009 * MODULES.html.sh (Extended multibyte and wide character utilities):
19012 2005-08-16 Bruno Haible <bruno@clisp.org>
19014 * m4/tls.m4: New file, from GNU gettext.
19016 2005-08-16 Bruno Haible <bruno@clisp.org>
19018 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
19020 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
19022 2005-08-16 Bruno Haible <bruno@clisp.org>
19024 * m4/mbiter.m4: New file.
19026 2005-08-16 Bruno Haible <bruno@clisp.org>
19028 * m4/mbfile.m4: New file.
19030 2005-08-16 Bruno Haible <bruno@clisp.org>
19032 * m4/mbchar.m4: New file.
19034 2005-08-16 Bruno Haible <bruno@clisp.org>
19036 * lib/tls.h: New file, from GNU gettext.
19037 * lib/tls.c: New file, from GNU gettext.
19039 2005-08-16 Bruno Haible <bruno@clisp.org>
19041 * lib/strnlen1.h: New file.
19042 * lib/strnlen1.c: New file.
19044 2005-08-16 Bruno Haible <bruno@clisp.org>
19046 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
19047 (mbi_init): Update.
19048 (mbi_avail, mbi_advance): Let the iteration end before the terminating
19049 NUL byte, not after it.
19051 2005-08-16 Bruno Haible <bruno@clisp.org>
19053 * lib/strcase.h (strcasecmp): Add note in comments.
19054 * lib/strncasecmp.c: Use code from strcasecmp.c.
19055 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
19056 (strcasecmp): Work correctly in multibyte locales.
19058 2005-08-16 Bruno Haible <bruno@clisp.org>
19060 * lib/mbiter.h: New file.
19062 2005-08-16 Bruno Haible <bruno@clisp.org>
19064 * lib/mbfile.h: New file.
19066 2005-08-16 Bruno Haible <bruno@clisp.org>
19068 * lib/mbchar.h: New file.
19069 * lib/mbchar.c: New file.
19071 2005-08-16 Bruno Haible <bruno@clisp.org>
19073 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
19074 the valid ones. Makes the comparison operations transitive:
19075 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
19076 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
19078 2005-08-15 Simon Josefsson <jas@extundo.com>
19080 * modules/ssize_t (License): Change to 'unlimited'.
19082 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
19084 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
19086 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
19087 Add comments for each pending glibc patch.
19089 2005-08-15 Bruno Haible <bruno@clisp.org>
19091 * lib/regex.h (__restrict_arr): Don't define to __restrict if
19092 __cplusplus is defined.
19094 2005-08-14 Jim Meyering <jim@meyering.net>
19096 Sync from coreutils.
19098 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
19099 Use the hash-table-based cycle-detection code not just when
19100 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
19101 Reported by James Youngman in
19102 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
19103 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
19104 FTS_TIGHT_CYCLE_CHECK.
19105 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
19106 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
19108 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
19109 * lib/fts.c (fd_safer): Remove decl.
19110 Include fcntl--.h rather than unistd-safer.h
19111 (fts_safe_changedir): Don't call fd_safer; no longer needed
19112 now that we include fcntl--.h.
19114 2005-08-12 Simon Josefsson <jas@extundo.com>
19116 * modules/getndelim2: Use ssize_t module.
19117 * modules/getnline: Likewise.
19118 * modules/safe-read: Likewise.
19119 * modules/xreadlink: Likewise.
19121 * modules/ssize_t: New file.
19123 2005-08-12 Simon Josefsson <jas@extundo.com>
19125 * m4/readline.m4: Look for termcap, curses or ncurses if required.
19127 2005-08-12 Simon Josefsson <jas@extundo.com>
19129 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19132 2005-08-12 Simon Josefsson <jas@extundo.com>
19134 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
19135 readline, getdelim and check_version.
19136 (Support for systems lacking ISO C 99: Sizes of integer types):
19139 2005-08-12 Bruno Haible <bruno@clisp.org>
19141 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
19143 2005-08-11 Simon Josefsson <jas@extundo.com>
19145 * modules/readline: New file.
19147 * modules/strnlen (Files): Add strnlen.h.
19149 2005-08-11 Simon Josefsson <jas@extundo.com>
19151 * m4/readline.m4: New file.
19153 2005-08-11 Simon Josefsson <jas@extundo.com>
19155 * lib/readline.h, readline.c: New file.
19157 2005-08-11 Simon Josefsson <jas@extundo.com>
19159 * doc/gnulib.texi (Initial import, Finishing touches): Mention
19162 2005-08-11 Bruno Haible <bruno@clisp.org>
19164 * lib/strnlen.h (strnlen): Change parameter name to match comment.
19166 2005-08-10 Stepan Kasal <kasal@ucw.cz>
19168 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
19170 2005-08-10 Simon Josefsson <jas@extundo.com>
19172 * tests/test-iconvme.c: New file.
19174 2005-08-10 Simon Josefsson <jas@extundo.com>
19176 * m4/strnlen.m4: New file.
19178 * m4/strndup.m4: Don't check for strnlen declaration, done in
19181 2005-08-10 Simon Josefsson <jas@extundo.com>
19183 * lib/strndup.c: Use strnlen.h.
19185 * lib/strnlen.h: New file.
19187 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
19191 2005-08-02 Simon Josefsson <jas@extundo.com>
19193 * modules/readline: New file.
19195 2005-08-02 Simon Josefsson <jas@extundo.com>
19197 * modules/getdelim: New file.
19199 * modules/getline: Rewrite, don't use getndelim2.
19201 2005-08-02 Simon Josefsson <jas@extundo.com>
19203 * m4/getline.m4: Separate out getdelim stuff into separate module.
19205 * m4/getdelim.m4: New file.
19207 2005-08-02 Simon Josefsson <jas@extundo.com>
19209 * lib/getline.h, getline.c: Rewrite.
19211 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
19213 2005-07-31 Bruno Haible <bruno@clisp.org>
19215 * lib/lock.h (gl_lock_initializer): New macro.
19216 (gl_lock_define_initialized): Use it.
19217 (gl_rwlock_initializer): New macro.
19218 (gl_rwlock_define_initialized): Use it.
19219 (gl_recursive_lock_initializer): New macro.
19220 (gl_recursive_lock_define_initialized): Use it.
19222 2005-07-30 Karl Berry <karl@gnu.org>
19224 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
19225 Report from Ben Pfaff, regarding getopt.
19227 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
19229 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
19231 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
19232 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
19233 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
19234 (gl_GETOPT): Use the new macros. Most of the implementation
19235 is moved to the new macros. This is for programs like Emacs
19236 that don't want all the functionality of gl_GETOPT.
19238 2005-07-26 Bruno Haible <bruno@clisp.org>
19240 * m4/lock.m4: Update from GNU gettext.
19242 2005-07-26 Bruno Haible <bruno@clisp.org>
19244 * lib/lock.h: Update from GNU gettext.
19245 * lib/lock.c: Update from GNU gettext.
19247 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
19249 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
19250 obsolescent AC_TRY_RUN. Include the default includes files, for
19253 2005-07-24 Bruno Haible <bruno@clisp.org>
19255 * modules/visibility: New file.
19256 * MODULES.html.sh (Misc): Add visibility.
19258 2005-07-24 Bruno Haible <bruno@clisp.org>
19260 * m4/visibility.m4: New file.
19262 2005-07-24 Bruno Haible <bruno@clisp.org>
19264 * doc/visibility.texi: New file.
19266 2005-07-22 Bruno Haible <bruno@clisp.org>
19268 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
19269 $(ALLOCA_H), redundant through BUILT_SOURCES.
19270 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
19271 redundant through BUILT_SOURCES.
19272 * modules/byteswap (Makefile.am): Remove explicit dependency on
19273 $(BYTESWAP_H), redundant through BUILT_SOURCES.
19274 * modules/fnmatch (Makefile.am): Remove explicit dependency on
19275 $(FNMATCH_H), redundant through BUILT_SOURCES.
19276 * modules/getopt (Makefile.am): Remove explicit dependency on
19277 $(GETOPT_H), redundant through BUILT_SOURCES.
19278 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
19279 redundant through BUILT_SOURCES.
19280 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
19281 redundant through BUILT_SOURCES.
19282 * modules/stdbool (Makefile.am): Remove explicit dependency on
19283 $(STDBOOL_H), redundant through BUILT_SOURCES.
19284 * modules/stdint (Makefile.am): Remove explicit dependency on
19285 $(STDINT_H), redundant through BUILT_SOURCES.
19286 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
19287 Remove explicit dependency on $(SYSEXITS_H).
19288 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
19290 2005-07-18 Simon Josefsson <jas@extundo.com>
19292 * lib/check-version.c (check_version): Accept identical versions too.
19294 2005-07-18 Bruno Haible <bruno@clisp.org>
19296 * modules/lock: New file.
19297 * MODULES.html.sh (Multithreading): New section.
19299 2005-07-18 Bruno Haible <bruno@clisp.org>
19301 * m4/lock.m4: New file, from GNU gettext.
19303 2005-07-18 Bruno Haible <bruno@clisp.org>
19305 * lib/lock.h: New file, from GNU gettext.
19306 * lib/lock.c: New file, from GNU gettext.
19308 2005-07-18 Bruno Haible <bruno@clisp.org>
19310 * lib/lock.h (gl_once_t): New type.
19311 (gl_once_define, gl_once): New macros.
19312 * lib/lock.c (fresh_once): New variable.
19313 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
19316 2005-07-16 Simon Josefsson <jas@extundo.com>
19318 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
19319 workaround, suggested by Bruno.
19321 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
19323 * modules/xalloc (Depends-on): Add xalloc-die.
19324 * modules/xvasprintf (Depends-on): Add xalloc-die.
19326 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
19328 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
19329 with a minor change.
19331 2005-07-15 Bruno Haible <bruno@clisp.org>
19333 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
19334 When using lib/poll.c, define poll as rpl_poll.
19336 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
19338 * modules/argp (Depends-on): Remove unlocked-io.
19340 2005-07-14 Derek Price <derek@ximbiot.com>
19342 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
19343 for glob symlink bug.
19345 2005-07-14 Bruno Haible <bruno@clisp.org>
19347 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
19348 Instead, test for *_unlocked function declarations directly.
19350 2005-07-11 Simon Josefsson <jas@extundo.com>
19352 * modules/size_max: New file.
19354 * modules/xsize: Depend on size_max module for size_max.m4.
19356 2005-07-11 Simon Josefsson <jas@extundo.com>
19358 * lib/size_max.h: New file.
19360 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
19362 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
19363 copyright symbol and the year.
19364 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
19365 (version_etc_va): Use parameterized copyright notice.
19366 Reword to conform to the current GNU coding standards.
19368 2005-07-11 Karl Berry <karl@gnu.org>
19370 * doc/gnulib.texi (Quoting): new node.
19371 (Initial import): more info, from Patrice.
19373 2005-07-11 Bruno Haible <bruno@clisp.org>
19375 * gnulib-tool (func_usage): Document option --avoid.
19376 (Command line options): Handle --avoid.
19377 (func_acceptable): New function.
19378 (func_modules_transitive_closure): Use it.
19380 2005-07-11 Bruno Haible <bruno@clisp.org>
19382 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
19383 Reported by Jim Meyering.
19385 2005-07-10 Bruno Haible <bruno@clisp.org>
19387 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
19388 Needed when size_t is smaller than 'unsigned int'.
19389 Reported by Paul Eggert.
19391 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
19393 * modules/argp (Depends-on): Add unlocked-io
19395 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
19397 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
19400 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
19402 * config/srclist.txt: Comment out regcomp.c, since we have a porting
19405 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
19406 and Paul Eggert <eggert@cs.ucla.edu>
19408 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
19409 in wint_t, not wchar_t. Remove now-unnecessary cast.
19411 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
19413 * modules/regex (Files): Add lib/regex_internal.c,
19414 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
19415 (Depends-on): Add extensions.
19416 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
19418 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
19420 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
19422 * m4/same.m4 (gl_SAME): Likewise.
19423 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
19425 * m4/regex.m4: Adjust to new libc regex implementation.
19426 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
19427 all the .c and .h parts of (the new) regex.
19428 Quote the m4 stuff better.
19429 Check for RE_ICASE bug of old gnulib.
19430 Check for REG_STARTEND of recent libc.
19431 Rename local variables from jm_* to gl_*.
19432 Quote operand of "test -f".
19433 Say "recent enough" version of libc, not "version 2".
19434 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
19435 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
19436 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
19437 Remove check for btowc, isascii.
19438 Require AM_LANGINFO_CODESET.
19440 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
19442 * lib/regex.c, regex.h: Sync from libc.
19443 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
19445 New files, synced from libc, except that regex_internal.h
19446 currently has a small porting fix.
19448 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
19450 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
19451 regex_internal.c, regexec.c.
19452 Add regex_internal.h too, but as a comment, since the libc version
19453 is currently broken in gnulib mode.
19455 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
19457 Support programs like Emacs that use gnulib but not gettext.
19458 * MODULES.html.sh (Internationalization functions): Add gettext-h.
19459 * modules/gettext-h: New file.
19460 * modules/gettext (Files): Remove lib/gettext.h.
19461 (Depends-on): Add gettext-h.
19462 (Makefile.am): Remove lib_SOURCES.
19463 * modules/argmatch, modules/c-stack, modules/closeout:
19464 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
19465 * modules/execute, modules/file-type, modules/getaddrinfo:
19466 * modules/getopt, modules/human, modules/javacomp:
19467 * modules/javaexec, modules/mkdir-p, modules/obstack:
19468 * modules/openat, modules/pagealign_alloc, modules/pipe:
19469 * modules/quotearg, modules/regex, modules/rpmatch:
19470 * modules/unicodeio, modules/userspec, modules/version-etc:
19471 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
19473 Depend on gettext-h, not gettext.
19475 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
19477 * gnulib-tool (func_import): Add support for 'public domain' license.
19478 * modules/alloca, modules/atexit, modules/memmove:
19479 Now public domain, not GPL.
19480 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
19481 * modules/realloc, modules/strerror, modules/strtod:
19484 2005-07-05 Bruno Haible <bruno@clisp.org>
19486 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
19487 autoconf CVS. Needed for mingw.
19489 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
19491 Remove the dependency of the strftime module on the tzset module.
19492 * modules/strftime (Depends-on): Remove dependency on tzset.
19494 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
19496 Remove the dependency of the strftime module on the tzset module.
19497 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
19498 gl_FUNC_TZSET_CLOBBER.
19500 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
19502 Remove the dependency of the strftime module on the tzset module.
19503 * lib/strftime.c (my_strftime)
19504 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
19505 Copy the input structure, to work around some of the bug with
19506 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
19507 Solaris releases, you should also use the tzset module, but we won't
19508 require it as a dependency any more since we don't want LGPLed code
19509 to depend on GPLed code.
19511 2005-07-02 Jim Meyering <jim@meyering.net>
19513 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
19514 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
19515 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
19516 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
19518 2005-07-02 Jim Meyering <jim@meyering.net>
19520 * lib/backupfile.c (backup_args): Change a `0' to NULL.
19522 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
19524 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
19525 declares only 'struct timespec;' (!).
19527 2005-07-01 Jim Meyering <jim@meyering.net>
19529 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
19530 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
19531 * lib/save-cwd.c, tempname.c:
19532 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
19533 and don't include <sys/file.h>).
19535 2005-06-29 Jim Meyering <jim@meyering.net>
19537 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
19538 type name. Use the variable name instead.
19539 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
19542 2005-06-28 Simon Josefsson <jas@extundo.com>
19544 * modules/check-version (Files): Add check-version.m4.
19546 2005-06-28 Simon Josefsson <jas@extundo.com>
19548 * m4/check-version.m4: New file, suggested by Jim Meyering
19549 <jim@meyering.net>.
19551 2005-06-28 Simon Josefsson <jas@extundo.com>
19553 * lib/check-version.h, lib/check-version.c: New files.
19555 2005-06-28 Simon Josefsson <jas@extundo.com>
19557 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
19558 collision with global variable. Better indentation. Don't
19559 increment buffer pointer beyond buffer end. Based on comments
19560 from Paul Eggert <eggert@cs.ucla.edu>.
19562 * lib/base64.h: Indent.
19564 2005-06-28 Simon Josefsson <jas@extundo.com>
19566 * doc/gnulib.texi (Library version handling): New section.
19568 2005-06-28 Jim Meyering <jim@meyering.net>
19570 * check-module (find_included_lib_files): Hard-code another
19571 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
19572 but modules/fts-lgpl (correctly) does not list those files.
19574 * modules/canonicalize (Files): Add lib/pathmax.h.
19576 2005-06-25 Simon Josefsson <jas@extundo.com>
19578 * modules/check-version: New file.
19580 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
19582 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
19583 initializer of struct addrinfo, as an indication that we don't
19584 care how many members the structure has.
19586 2005-06-24 Derek Price <derek@ximbiot.com>
19587 and Bruno Haible <bruno@clisp.org>
19589 Remove stat module & update lstat.
19590 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
19591 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
19592 * m4/stat.m4: Remove this file.
19594 2005-06-24 Derek Price <derek@ximbiot.com>
19595 and Bruno Haible <bruno@clisp.org>
19597 Remove stat module & update lstat.
19598 * lib/stat.c: Remove this file...
19599 (slash_aware_lstat): ...moving this content and its support...
19600 * lib/lstat.c (rpl_lstat): ...into here.
19601 * lib/lstat.h: New file.
19603 2005-06-24 Derek Price <derek@ximbiot.com>
19604 and Bruno Haible <bruno@clisp.org>
19606 Remove stat module & update lstat.
19607 * config/srclist.txt (libc sources): Remove stat.
19609 2005-06-24 Derek Price <derek@ximbiot.com>
19610 and Bruno Haible <bruno@clisp.org>
19612 Remove stat module & update lstat.
19613 * MODULES.html.sh (stat): Remove.
19614 * MODULES.html: Regenerated.
19615 * modules/lstat (Description): Correct function name.
19616 (Files): Add "lstat.h".
19617 (Depends-on): Remove stat, add xalloc, stat-macros.
19618 * modules/stat: Remove this file.
19619 (Include): Add "lstat.h", remove <sys/stat.h>.
19621 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
19623 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
19624 (ranged_convert): Don't save conversion in a temporary struct.
19625 This causes a warning with GCC 4.0.0, and anyway in the typical
19626 case it's not worth the extra 100 bytes or so of code.
19627 (ranged_convert, __mktime_internal): When calling a function via a
19628 pointer P, use P () rather than (*P) (), as we now assume C89 or
19631 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
19633 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
19634 "who -r" failed to give output. Problem reported by Tim Waugh.
19636 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
19637 (xcalloc): Use it to avoid needless tests.
19638 Problem reported by Jim Meyering.
19640 2005-06-20 Derek Price <derek@ximbiot.com>
19642 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
19643 unnecessary for Autoconfs > 2.59c.
19645 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
19647 * lib/argp.h (__option_is_short): Check upper limit of
19648 __key. Isprint() requires its argument to have the value
19649 of an unsigned char or EOF.
19651 2005-06-16 Jim Meyering <jim@meyering.net>
19653 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
19654 when either N or S is zero.
19656 2005-06-16 Derek Price <derek@ximbiot.com>
19658 * m4/bison.m4: Declare YACC & YFLAGS precious.
19660 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
19662 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
19663 multibyte string or pattern, fall back on unibyte matching.
19664 Problem reported by James Youngman.
19666 2005-06-08 Bruno Haible <bruno@clisp.org>
19668 * modules/csharpcomp: New file.
19669 * MODULES.html.sh (C#): Add csharpcomp.
19671 2005-06-08 Bruno Haible <bruno@clisp.org>
19673 * m4/csharpcomp.m4: New file, from GNU gettext.
19675 2005-06-08 Bruno Haible <bruno@clisp.org>
19677 * lib/csharpcomp.h: New file, from GNU gettext.
19678 * lib/csharpcomp.c: New file, from GNU gettext.
19679 * lib/csharpcomp.sh.in: New file, from GNU gettext.
19681 2005-06-08 Bruno Haible <bruno@clisp.org>
19683 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
19686 2005-06-07 Derek Price <derek@ximbiot.com>
19689 * lib/glob_.h: Indent nested #ifdef.
19691 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
19693 Sync from coreutils.
19694 Use "file name" when talking about file names, instead of "filename"
19695 or "path", as per the GNU coding standards.
19696 * lib/mkdir-p.c: Renamed from makepath.c.
19697 (make_dir_parents): Renamed from make_path. All callers changed.
19698 * lib/mkdir-p.h: Likewise. All includers changed.
19699 * lib/filenamecat.c: Renamed from path-concat.c.
19700 (file_name_concat): Renamed from path_concat. All callers changed.
19701 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
19702 * lib/filenamecat.h: Likewise. All includers changed.
19703 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
19704 in comments or local variable names.
19705 * lib/basename.c: Likewise.
19706 * lib/canonicalize.c, canonicalize.h: Likewise.
19707 * lib/dirname.c, dirname.h: Likewise.
19708 * lib/euidaccess.c: Likewise.
19709 * lib/exclude.c: Likewise
19710 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
19711 * lib/fsusage.c, fsuage.h: Likewise.
19712 * lib/fts.c, fts_.h: Likewise.
19713 * lib/getcwd.c: Likewise.
19714 * lib/getloadavg.c: Likewise.
19715 * lib/mkstemp.c: Likewise.
19716 * lib/mountlist.c, mountlist.h: Likewise.
19717 * lib/openat.c, openat.h: Likewise.
19718 * lib/readlink-stub.c: Likewise.
19719 * lib/readutmp.c, readutmp.h: Likewise.
19720 * lib/rename.c: Likewise.
19721 * lib/rmdir.c: Likewise.
19722 * lib/same.c: Likewise.
19723 * lib/savedir.c: Likewise.
19724 * lib/stripslash.c: Likewise.
19725 * lib/tempname.c: Likewise.
19726 * lib/xreadlink.c: Likewise.
19727 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
19729 * lib/exclude.h: Likewise.
19731 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
19732 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
19733 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
19734 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
19735 * lib/pathmax.h: Include <limits.h> unconditionally, since other
19736 files have been getting away with it for years (MORE/BSD 4.3
19738 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
19739 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
19741 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
19742 Define to 256, not 255, as per modern POSIX.
19744 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
19746 Sync from coreutils.
19747 Use "file name" when talking about file names, instead of "filename"
19748 or "path", as per the GNU coding standards.
19749 * MODULES.html.sh: mkdir-p renamed from makepath.
19750 filenamecat renamed from path-concat.
19751 * modules/filenamecat: Renamed from modules/path-concat.
19752 (Files): filenamecat.h and filenamecat.c renamed from
19753 path-concat.h and path-concat.c.
19754 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
19755 (Include): filenamecat.h, not path-concat.h.
19756 * modules/mkdir-p: Renamed from modules/makepath.
19757 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
19759 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
19760 (Include): mkdir-p.h, not makepath.h.
19762 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
19764 Sync from coreutils.
19765 * m4/mkdir-p.m4: Renamed from makepath.m4.
19766 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
19767 Rename files from makepath.c to mkdir-p.c, and from
19768 makepath.h to mkdir-p.h.
19769 * m4/filenamecat.m4: Renamed from path-concat.m4.
19770 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
19771 Rename files from path-concat.c to filenamecat.c,
19772 and from path-concat.h to filenamecat.h.
19773 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
19774 "file name" in local variables or comments.
19775 * m4/rename.m4: Likewise.
19777 2005-06-01 Bruno Haible <bruno@clisp.org>
19779 * modules/csharpexec: New file.
19780 * MODULES.html.sh (C#): New section.
19782 2005-06-01 Bruno Haible <bruno@clisp.org>
19784 * m4/csharp.m4: New file, from GNU gettext.
19785 * m4/csharpexec.m4: New file, from GNU gettext.
19787 2005-06-01 Bruno Haible <bruno@clisp.org>
19789 * lib/csharpexec.h: New file, from GNU gettext.
19790 * lib/csharpexec.c: New file, from GNU gettext.
19791 * lib/csharpexec.sh.in: New file, from GNU gettext.
19793 2005-05-31 Derek Price <derek@ximbiot.com>
19794 Paul Eggert <eggert@cs.ucla.edu>
19797 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
19799 2005-05-31 Derek Price <derek@ximbiot.com>
19800 Paul Eggert <eggert@cs.ucla.edu>
19803 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
19805 2005-05-29 Derek Price <derek@ximbiot.com>
19807 * config/srclist.txt (glob_.h, glob.c): Add these files.
19809 2005-05-29 Derek Price <derek@ximbiot.com>
19811 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
19812 * modules/glob: New file.
19813 * modules/getlogin_r: Add link to POSIX spec in description.
19815 2005-05-29 Derek Price <derek@ximbiot.com>
19816 Paul Eggert <eggert@cs.ucla.edu>
19818 * m4/glob.m4: New file.
19820 2005-05-29 Derek Price <derek@ximbiot.com>
19821 Paul Eggert <eggert@cs.ucla.edu>
19823 * lib/glob_.h, lib/glob.c: New files.
19825 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
19827 * modules/fts (Files): Remove m4/inttypes-pri.m4.
19828 * modules/fts-lgpl (Depends-on): Remove gettext.
19830 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
19832 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
19833 and don't require gt_INTTYPES_PRI.
19835 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
19837 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
19839 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
19840 the configuration hassle isn't worth it.
19841 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
19842 (LONGEST_MODIFIER, PRIuMAX): Remove.
19844 2005-05-27 Bruno Haible <bruno@clisp.org>
19846 * lib/getlogin_r.h: Remove second include of <stddef.h>.
19848 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
19850 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
19851 _POSIX_PTHREAD_SEMANTICS for Solaris.
19853 2005-05-25 Derek Price <derek@ximbiot.com>
19855 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
19857 2005-05-25 Derek Price <derek@ximbiot.com>
19858 Paul Eggert <eggert@cs.ucla.edu>
19860 * modules/getlogin_r, m4/getlogin_r.m4: New files.
19861 * lib/getlogin_r.c, getlogin_r.h: New files.
19863 2005-05-25 Bruno Haible <bruno@clisp.org>
19864 Derek Price <derek@ximbiot.com>
19866 * lib/getlogin_r.h: Simplify API documentation.
19868 2005-05-23 Derek Price <derek@ximbiot.com>
19870 * modules/minmax (Files): Add m4/minmax.m4.
19871 (configure.ac): Add gl_MINMAX.
19873 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
19875 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
19876 so that unistd-safer.h (GPL'ed code) need not be included.
19878 2005-05-22 Bruno Haible <bruno@clisp.org>
19880 * m4/minmax.m4: New file.
19881 Based on a patch by Derek Price <derek@ximbiot.com>.
19883 2005-05-22 Bruno Haible <bruno@clisp.org>
19885 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
19886 (INT64_MIN): Fix definition.
19887 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
19889 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
19890 NEED_SIGNED_INT_TYPES.
19892 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
19893 HAVE_SYSTEM_INTTYPES.
19895 2005-05-22 Bruno Haible <bruno@clisp.org>
19897 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
19898 Also include <sys/param.h> if it defines MIN, MAX.
19899 Based on a patch by Derek Price <derek@ximbiot.com>.
19901 2005-05-21 Jim Meyering <jim@meyering.net>
19903 * modules/fts (Files): Add m4/inttypes-pri.m4.
19904 (Depends-on): Add lstat and remove gettext. Alphabetize.
19906 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
19909 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
19910 (setup_dir, free_dir): New functions.
19911 (enter_dir, leave_dir): Define trivial
19912 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
19913 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
19914 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
19915 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
19916 Move to fts-cycle.c.
19917 (fts_open): Use setup_dir.
19918 (fts_close): Use free_dir.
19919 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
19920 This adds a label and some gotos, but the alternatives were messier.
19921 Check for memory allocation failure when entering a dir.
19922 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
19923 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
19924 (FTS): New member fts_cycle, that is a union that contains the
19925 old active_dir_ht and cycle_state. All uses changed to mention
19926 fts_cycle.ht and fts_cycle.state.
19927 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
19928 fts.c, with the following changes:
19929 (setup_dir, free_dir): New functions.
19930 (enter_dir): Now returns bool. Return true if successful, false
19931 if memory exhausted. All callers changed.
19932 Do not bother partly cleaning up on
19933 memory allocation failure; that is free_dir's job.
19934 However, free ad if hash_insert fails, to avoid memory leak.
19935 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
19936 fts->fts_options to see which union member to use.
19938 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
19940 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
19941 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
19943 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
19945 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
19947 2005-05-20 Jim Meyering <jim@meyering.net>
19949 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
19950 Now a macro, to pacify GCC.
19952 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
19954 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
19957 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
19959 * lib/chown.c (rpl_chown): Return -1 on failure.
19961 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
19963 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
19964 Don't check for stddef.h.
19965 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
19966 don't use its results.
19967 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
19968 since we include them unconditionally. Don't require
19969 AM_STDBOOL_H, since stdbool is a prerequisite.
19970 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
19971 since we assume C89 or better.
19972 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
19973 as we don't use their results.
19974 Don't check for fchdir, memmove, memset, strrchr, as we use
19975 them unconditionally.
19976 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
19977 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
19979 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
19981 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
19982 Include <stddef.h> unconditionally, since we assume C89 now.
19983 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
19984 * lib/fts.c: Include fts_.h first, to check interface.
19985 Do not include intprops.h; no longer needed.
19986 Include cycle-check.h and hash.h, since fts_.h no longer does.
19987 Remove unnecessary casts of closedir to void.
19988 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
19989 decide whether to decrement nlinks.
19990 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
19991 (FTS): Use struct hash_table * instead of Hash_table, so that
19992 we no longer need to include hash.h here.
19994 2005-05-18 Jim Meyering <jim@meyering.net>
19996 * modules/dirfd (License): Change to LGPL. Most of the code
19997 is already in the public domain.
19999 2005-05-18 Jim Meyering <jim@meyering.net>
20001 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
20002 Reported by Yoann Vandoorselaere.
20004 2005-05-17 Jim Meyering <jim@meyering.net>
20006 * m4/fts.m4: New file, from coreutils.
20008 2005-05-17 Jim Meyering <jim@meyering.net>
20010 * lib/fts.c, lib/fts_.h: New files, from coreutils.
20012 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
20014 Sync from coreutils.
20015 * m4/unlinkdir.m4: New file.
20017 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
20019 Sync from coreutils.
20020 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
20021 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
20022 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
20023 White space changes only.
20024 * lib/makepath.c (make_path): Port to hosts where leading "//" is
20026 * lib/yesno.c: Include getline.h, not ctype.h.
20027 (yesno): Don't remove leading white space; POSIX doesn't allow it.
20028 Use getline to remove arbitrary restriction on response length.
20030 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
20032 * config/srclist-update: Spell out "Street" in FSF postal
20033 mail address; this is the style the FSF seems to prefer.
20035 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
20036 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
20037 this updates FSF postal mail address.
20039 Sync from coreutils.
20040 * modules/unlinkdir: New file.
20041 * modules/yesno (Depends-on): Add getline.
20042 * MODULES.html.sh (File system functions): Add unlinkdir.
20044 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
20046 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
20048 Change the initial comment to refer to GPL, not LGPL.
20049 gnulib-tool will change it to LGPL as needed.
20051 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
20052 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
20053 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
20054 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
20055 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
20056 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
20057 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
20058 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
20059 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
20060 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
20061 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
20062 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
20063 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
20064 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
20065 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
20066 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
20067 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
20068 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
20069 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
20070 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
20071 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
20072 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
20073 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
20074 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
20075 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
20076 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
20077 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
20078 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
20079 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
20080 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
20081 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
20082 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
20083 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
20084 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
20085 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
20086 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
20087 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
20088 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
20089 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
20090 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
20091 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
20092 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
20093 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
20094 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
20095 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
20096 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
20097 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
20098 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
20099 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
20100 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
20101 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
20102 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
20103 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
20104 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
20105 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
20106 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
20107 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
20108 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
20109 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
20110 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
20111 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
20112 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
20113 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
20114 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
20115 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
20116 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
20117 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
20118 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
20119 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
20120 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
20121 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
20122 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
20123 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
20124 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
20125 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
20126 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
20127 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
20128 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
20129 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
20130 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
20131 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
20132 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
20133 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
20134 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
20135 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
20136 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
20137 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
20138 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
20139 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
20140 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
20141 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
20142 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
20143 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
20144 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
20145 lib/yesno.c, lib/yesno.h:
20146 Update FSF postal mail address.
20148 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
20150 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
20151 tests/test-memmem.c, tests/test-stpncpy.c:
20152 Update FSF postal mail address.
20154 2005-05-13 Bruno Haible <bruno@clisp.org>
20156 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
20157 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
20158 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
20159 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
20160 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
20161 Add support for 64-bit integers in the MSVC compiler.
20163 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
20165 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
20167 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
20169 * gnulib-tool (func_import): Sort and uniquify recommended includes.
20171 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
20173 * doc/getdate.texi (General date syntax): Don't say that date
20174 date --iso-8601=ns generates acceptable dates; it doesn't yet.
20175 Problem reported by Nic Ferrier.
20177 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20179 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
20180 specified in ai_socktype. Fix invalid ai_protocol
20181 check. ai_protocol is usually set to 0 or depending on
20182 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
20183 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
20184 ai_socktype / ai_protocol in the returned addrinfo structure.
20186 2005-05-10 Simon Josefsson <jas@extundo.com>
20188 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
20189 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20191 2005-05-10 Karl Berry <karl@gnu.org>
20193 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
20194 (from http://www.gnu.org/licenses).
20195 * doc/COPYING.LIB: also rename to COPYING.LESSER.
20196 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
20199 2005-05-10 Karl Berry <karl@gnu.org>
20201 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
20202 (COPYING.DOC): remove.
20204 * config/srclist-update: new FSF address.
20206 2005-05-10 Derek Price <derek@ximbiot.com>
20208 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
20211 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20212 Bruno Haible <bruno@clisp.org>
20214 * modules/inet_ntop: New file.
20215 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20218 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20219 Bruno Haible <bruno@clisp.org>
20221 * m4/inet_ntop.m4: New file.
20223 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20224 Bruno Haible <bruno@clisp.org>
20226 * lib/inet_ntop.h: New file.
20227 * lib/inet_ntop.c: New file, from glibc with modifications.
20229 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
20231 * modules/time_r (License): Change to LGPL.
20232 * modules/extensions (License): Change to LGPL. Actually,
20233 the license is more permissive than that, but currently gnulib-tool
20234 doesn't know how to handle more-permissive licenses.
20236 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
20237 Problem reported by Dave Love.
20239 2005-05-08 Jim Meyering <jim@meyering.net>
20241 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
20244 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
20246 * modules/argmatch (Depends-on): Add stdbool.
20247 * modules/backupfile (Depends-on): Likewise.
20248 * modules/chdir-long (Depends-on): Likewise.
20249 * modules/closeout (Depends-on): Likewise.
20250 * modules/cycle-check (Depends-on): Likewise.
20251 * modules/dirname (Depends-on): Likewise.
20252 * modules/fnmatch (Depends-on): Likewise.
20253 * modules/fsusage (Depends-on): Likewise.
20254 * modules/fwriteerror (Depends-on): Likewise.
20255 * modules/getcwd (Depends-on): Likewise.
20256 * modules/getloadavg (Depends-on): Likewise.
20257 * modules/hard-locale (Depends-on): Likewise.
20258 * modules/makepath (Depends-on): Likewise.
20259 * modules/mountlist (Depends-on): Likewise.
20260 * modules/nanosleep (Depends-on): Likewise.
20261 * modules/posixtm (Depends-on): Likewise.
20262 * modules/quotearg (Depends-on): Likewise.
20263 * modules/readtokens (Depends-on): Likewise.
20264 * modules/readtokens0 (Depends-on): Likewise.
20265 * modules/readutmp (Depends-on): Likewise.
20266 * modules/save-cwd (Depends-on): Likewise.
20267 * modules/strftime (Depends-on): Likewise.
20268 * modules/userspec (Depends-on): Likewise.
20269 * modules/utimecmp (Depends-on): Likewise.
20270 * modules/xgetcwd (Depends-on): Likewise.
20271 * modules/xnanosleep (Depends-on): Likewise.
20272 * modules/xstrtod (Depends-on): Likewise.
20273 * modules/yesno (Depends-on): Likewise.
20275 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
20277 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
20280 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
20282 Merge from coreutils. Among other things,
20283 add bulletproofing for cases where stdin, stdout, or stderr are closed.
20284 * lib/fd-safer.c: New file.
20285 * lib/fcntl-safer.h, open-safer.c: Remove.
20286 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
20287 * lib/dup-safer.c: Include unistd-safer.h first.
20288 Don't include errno.h.
20289 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
20290 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
20291 * lib/file-type.c: Rely on file-type.h change.
20292 * lib/getloadavg.c: Include unistd-safer.h.
20293 (getloadavg): Use safer open.
20294 * lib/getusershell.c: Include "stdio-safer.h".
20295 (getusershell): Use safer fopen.
20296 * lib/long-options.c (long_options): Use NULL rather than 0.
20297 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
20299 * lib/modechange.c: Likewise.
20300 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
20301 (MODE_DONE): New constant.
20302 (struct mode_change): Remove 'next' member.
20303 (make_node_op_equals): New function; like the old one of the
20304 same name, except it allocates an array.
20305 (mode_compile, mode_create_from_ref): Use it.
20306 (mode_compile): Allocate result as an array, not a linked list.
20307 Parse octal string ourself, so that we catch mistakes like "+0".
20308 (mode_adjust): Arg is an array, not a linked list.
20309 * lib/modechange.c: Include stat-macros.h, xalloc.h.
20310 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
20311 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
20312 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
20313 Remove. This is now stat-macros.h's job.
20314 (talloc): Remove. All callers replaced by xalloc, so that
20315 our invokers don't have to worry about reporting memory failures.
20316 (make_node_op_equals): Remove.
20317 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
20319 (struct mode_change): Moved here from modechange.h.
20320 (mode_append_entry): Remove.
20321 (mode_compile): Remove MASKED_OPS arg, since it encouraged
20322 apps to have incorrect behavior. Use simpler algorithm for head
20323 and tail. Don't futz with umask; that's now the job of mode_adjust.
20324 Detect more invalid usages rather than having somewhat-random behavior.
20325 Don't insert an "a=" action, as that leads to incorrect behavior.
20326 (mode_compile, mode_create_from_ref): Return NULL on error instead
20327 of an enum, since now there's only one way to have an error. All
20329 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
20330 at the correct time. Simplify calculation of "+u" and its ilk.
20331 Don't mishandle "+X".
20332 (mode_free): Remove "register" and localize decls.
20333 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
20334 (struct mode_change): Move to modechange.c; callers don't
20335 need to see this stuff.
20336 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
20337 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
20338 (mode_change, mode_adjust): Reflect the new signatures noted above.
20339 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
20340 that might redefine system include files.
20341 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
20342 (my_usleep): Use NULL rather than (void *) 0.
20343 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
20344 Use siginterrupt to specify that system calls should be interrupted.
20345 (rpl_nanosleep): Move initialization of suspended closer to call of
20347 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
20348 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
20349 (desirable_utmp_entry): New function.
20350 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
20351 using x2nrealloc, to simplify logic.
20352 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
20353 size calculation. Do not assume utmp file is a regular file.
20354 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
20355 (READ_UTMP_CHECK_PIDS): New constant.
20356 * lib/save-cwd.c: Include unistd-safer.h.
20357 (save_cwd): Use fd_safer.
20358 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
20359 [!_LIBC] Include "stat-macros.h" instead.
20360 * lib/unistd-safer.h (fd_safer): New decl.
20362 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
20364 * modules/getloadavg (Depends-on): Add unistd-safer.
20365 * modules/getusershell (Depends-on): Add stdio-safer.
20366 * modules/lstat (Depends-on): Remove xalloc.
20367 * modules/mkstemp (Depends-on): Add stat-macros.
20368 * modules/modechange (Depends-on): Remove xstrtol.
20369 Add stat-macros, xalloc.
20370 * modules/save-cwd (Depends-on): Add unistd-safer.
20371 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
20372 * modules/unistd-safer (Files): Add lib/fd-safer.c
20373 (Makefile.am): Remove lib_SOURCES.
20375 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
20376 Remove fcntl-safer; unistd-safer supersedes it.
20378 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
20380 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
20382 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
20383 (gl_PREREQ_CHOWN): Remove.
20384 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
20385 it. Don't require AC_HEADER_STAT.
20386 (gl_PREREQ_LSTAT): Remove.
20387 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
20388 Don't require AC_HEADER_STAT.
20389 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
20390 (gl_PREREQ_RMDIR): Remove.
20391 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
20392 mention stat-macros.h or AC_HEADER_STAT, since we'll make
20393 the stat-macros module a prerequisite.
20394 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
20395 * m4/filemode.m4 (gl_FILEMODE): Likewise.
20396 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
20397 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
20398 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
20400 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
20401 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
20403 * m4/fcntl-safer.m4: Remove.
20404 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
20405 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
20406 Invoke gl_PREREQ_FD_SAFER.
20407 (gl_PREREQ_FD_SAFER): New macro.
20408 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
20409 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
20410 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
20411 Remove duplicate call to AC_LIBOBJ(readutmp).
20412 (gl_PREREQ_READUTMP): Remove. All uses inlined.
20414 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
20415 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
20417 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
20419 * MODULES.html.sh (Misc): Add byteswap.
20421 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
20423 * modules/getcwd (Depends-on): Add extensions.
20424 * modules/openat (Depends-on): Likewise.
20426 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
20428 * modules/byteswap: New file.
20430 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
20432 * m4/byteswap.m4: New file.
20434 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
20436 * lib/byteswap_.h: New file.
20438 2005-04-25 Karl Berry <karl@gnu.org>
20440 * m4/gettext.m4: Update from GNU gettext 0.14.4.
20442 2005-04-25 Albert Chin <china@thewrittenword.com>
20444 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
20447 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
20449 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
20450 (func_ln_if_changed) Remove forcibly for no error message
20451 in case file does not exist.
20453 2005-04-19 Simon Josefsson <jas@extundo.com>
20455 * gnulib-tool (Options): Make --symlink mean --symbolic.
20457 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
20459 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
20461 2005-04-16 Simon Josefsson <jas@extundo.com>
20463 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
20465 2005-04-15 Simon Josefsson <jas@extundo.com>
20467 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
20469 2005-04-15 Simon Josefsson <jas@extundo.com>
20471 * gnulib-tool: Rename --symlink to --symbolic.
20473 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
20475 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
20476 symbolic links to files instead of copying/moving. Add --aux-dir,
20477 specifying directory relative --dir where auxiliary build tools
20480 2005-04-14 Bruno Haible <bruno@clisp.org>
20482 * modules/allocsa (License): Change to LGPL.
20483 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20485 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
20487 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
20488 that "UTC +1 second" continues to work. Problem reported
20489 by Dmitry V. Levin.
20490 (relunit_snumber): New rule.
20493 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
20495 * lib/getdate.y (universal_time_zone_table): New constant.
20496 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
20497 universal_time_zone_table.
20498 (lookup_zone): Prefer universal_time_zone_table to
20499 local_time_zone_table, so that "GMT" time stamps are allowed in
20500 London during the summer. Problem reported by Ian Abbott.
20502 2005-04-12 Jim Meyering <jim@meyering.net>
20504 * lib/human.c (humblock): Set *options even when returning due to
20505 xstrtoumax conversion failure. Thanks to a used-uninitialized
20506 warning from gcc-4.
20508 2005-04-09 Jim Meyering <jim@meyering.net>
20510 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
20511 -Wuninitialized: initialize tm0.tm_year.
20513 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
20515 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
20516 count, since there's no maximum. All uses changed.
20517 Add member dsts_seen.
20518 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
20520 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
20521 Use pc_rels_seen to decide whther a date is absolute.
20523 * lib/getdate.y (number): Don't overwrite year.
20524 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
20527 2005-04-02 Simon Josefsson <jas@extundo.com>
20529 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
20530 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
20532 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
20534 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
20535 where no absolute path name can be longer than PATH_MAX.
20537 2005-03-27 Jim Meyering <jim@meyering.net>
20539 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
20541 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
20543 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
20544 "one's complement" -> "ones' complement" in comment, as per Knuth.
20545 "value of type" -> "type or expression" in comment.
20546 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
20548 2005-03-26 Jim Meyering <jim@meyering.net>
20551 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
20552 Correct typos: s/or/of/.
20554 2005-03-26 Jim Meyering <jim@meyering.net>
20556 * modules/check-include-files: Move to ../ and rename to...
20557 * check-module: ...this.
20559 2005-03-25 Jim Meyering <jim@meyering.net>
20561 * modules/xvasprintf (Files): Add xalloc.h.
20563 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
20565 * modules/gettext (Files): config/config.rpath ->
20566 build-aux/config.rpath
20567 * modules/iconv (Files): Likewise.
20568 Problem reported by Oskar Liljeblad.
20570 2005-03-23 Jim Meyering <jim@meyering.net>
20572 * modules/check-include-files: New script to check for
20573 missing dependencies, multiple includes, etc.
20575 * modules/c-strtold (Depends-on): Add xalloc.
20576 * modules/c-strtod (Depends-on): Add xalloc.
20577 * modules/hash (Depends-on): Add xalloc.
20578 (Files): Remove lib/xalloc.h.
20580 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
20581 * modules/userspec (Files): Add lib/inttostr.h.
20583 2005-03-23 Jim Meyering <jim@meyering.net>
20585 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
20587 2005-03-22 Jim Meyering <jim@meyering.net>
20589 * modules/stat-macros: New module.
20590 * modules/canonicalize, modules/euidaccess, modules/file-type,
20591 * modules/filemode, modules/lchown, modules/makepath,
20592 * modules/rmdir, modules/stat: Depend on new stat-macros module
20593 rather than listing lib/stat-macros.h manually.
20594 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
20596 2005-03-22 Jim Meyering <jim@meyering.net>
20598 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
20600 2005-03-22 Bruno Haible <bruno@clisp.org>
20602 * config/srclist.txt: Replace target directory 'config' with
20604 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
20605 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
20608 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
20610 * modules/chdir-long (Depends-on): Add mempcpy.
20612 * modules/acl, modules/backupfile, modules/c-strtod,
20613 modules/c-strtold, modules/canon-host, modules/canonicalize,
20614 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
20615 modules/exclude, modules/exitfail, modules/file-type,
20616 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
20617 modules/getdate, modules/getline, modules/getpagesize,
20618 modules/getpass, modules/getugroups, modules/group-member,
20619 modules/hard-locale, modules/hash, modules/human, modules/idcache,
20620 modules/inttostr, modules/long-options, modules/makepath,
20621 modules/md5, modules/memcasecmp, modules/memcoll,
20622 modules/modechange, modules/mountlist, modules/path-concat,
20623 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
20624 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
20625 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
20626 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
20627 modules/strftime, modules/strndup, modules/strverscmp,
20628 modules/timespec, modules/unlocked-io, modules/userspec,
20629 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
20631 Remove lib_SOURCES line from Makefile.am section, as this is now
20632 done automatically by the corresponding Autoconf macro.
20634 2005-03-21 Jim Meyering <jim@meyering.net>
20636 Changes imported from coreutils.
20638 * lib/cycle-check.c: Don't include xalloc.h.
20640 * lib/path-concat.c: Don't include assert.h.
20641 (path_concat): Remove assertion that would have triggered
20642 for ABASE starting with more than one slash.
20643 Reported by Andreas Schwab.
20645 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
20646 properly when ABASE is an absolute file name.
20647 Correct the description of this function.
20648 Include <assert.h>.
20649 Add an assertion and a test driver.
20650 This fixes a bug introduced on 2004-07-02.
20651 Andreas Schwab reported the resulting failure of cp --parents:
20652 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
20654 2005-03-21 Jim Meyering <jim@meyering.net>
20656 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
20657 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
20659 2005-03-21 Jim Meyering <jim@meyering.net>
20660 and Paul Eggert <eggert@cs.ucla.edu>
20662 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
20663 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
20664 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
20665 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
20666 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
20667 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
20668 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
20669 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
20670 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
20671 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
20672 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
20673 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
20674 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
20675 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
20676 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
20677 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
20678 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
20681 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
20683 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
20684 (which shouldn't happen), generate nothing instead of returning 0
20685 immediately, so that nstrftime (NULL, ...) doesn't return 0.
20687 2005-03-16 Bruno Haible <bruno@clisp.org>
20689 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
20690 HAVE_LONGLONG_64BIT.
20692 2005-03-16 Bruno Haible <bruno@clisp.org>
20694 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
20695 HAVE_LONGLONG_64BIT.
20697 2005-03-16 Bruno Haible <bruno@clisp.org>
20699 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
20700 HAVE_LONGLONG_64BIT.
20702 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
20704 * lib/strftime.c (my_strftime): Prepend space to format so that we can
20705 reliably distinguish strftime failure from empty output on POSIX
20708 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
20710 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
20711 (iconv_string): Don't guess a size-zero buffer, as that might cause
20712 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
20713 result would be 'too large', where 'too large' is (heuristically)
20714 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
20715 overflow concerns. This will prevent some unwanted malloc failures
20716 when the inputs are very large.
20718 2005-03-15 Karl Berry <karl@gnu.org>
20720 * config/srclist.txt (config.rpath): from gettext.
20721 * config/config.rpath: update.
20723 2005-03-15 Bruno Haible <bruno@clisp.org>
20725 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
20728 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
20731 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
20734 2005-03-14 Simon Josefsson <jas@extundo.com>
20736 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
20739 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
20741 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
20742 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
20744 * lib/strtol.c: Likewise.
20746 2005-03-14 Jim Meyering <jim@meyering.net>
20748 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
20749 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
20750 to be nonzero so that we (and caller) can detect the difference
20751 between a valid zero-length expansion and an error return, even
20752 when the underlying strftime fails before writing anything into
20755 2005-03-14 Bruno Haible <bruno@clisp.org>
20757 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
20758 Update from GNU gettext 0.14.3.
20760 2005-03-10 Jim Meyering <jim@meyering.net>
20762 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
20764 2005-03-10 Jim Meyering <jim@meyering.net>
20766 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
20767 so that this module works on systems without fchdir.
20769 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
20771 Factor int-properties macros into a single file, except for
20772 glibc-related files.
20773 * lib/intprops.h: New file.
20774 * lib/getloadavg.c: Include it instead of limits.h.
20775 (INT_STRLEN_BOUND): Remove.
20776 * lib/human.c: Include intprops.h.
20777 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
20778 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
20780 * lib/inttostr.h: Include intprops.h instead of limits.h.
20781 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
20782 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
20783 for consistency with intprops.h.
20784 (time_t_is_integer, twos_complement_arithmetic): Use them.
20785 * lib/sig2str.h: Include <signal.h>, intprops.h.
20786 (INT_STRLEN_BOUND): Remove.
20787 * lib/strftime.c (TYPE_SIGNED): Remove.
20788 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
20789 * lib/strtol.c: Adjust comments to match intprops.h.
20790 * lib/userspec.c: Include intprops.h.
20791 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
20792 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
20793 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
20794 instead of rolling our own expressions.
20795 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
20797 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
20799 (my_strftime): Do not mishandle years close to INT_MAX, by doing
20800 the right thing even if adding 1900 would overflow. Similarly
20801 for tm_mon + 1 and tm_yday + 1.
20802 Make %Y always equivalent to %C%y, and similarly for %G and %g.
20803 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
20804 (DO_SIGNED_NUMBER): New macro.
20805 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
20807 2005-03-07 Bruno Haible <bruno@clisp.org>
20809 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
20811 2005-03-07 Bruno Haible <bruno@clisp.org>
20813 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
20815 2005-03-04 Derek R. Price <derek@ximbiot.com>
20817 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
20818 (func_import): Only replace files via --import when they have actually
20821 2005-03-03 Derek R. Price <derek@ximbiot.com>
20823 * m4/mmap-anon.m4: New file.
20824 * m4/pagealign_alloc.m4: New file.
20826 2005-03-03 Derek R. Price <derek@ximbiot.com>
20827 Bruno Haible <bruno@clisp.org>
20829 * modules/pagealign_alloc: New file.
20830 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
20832 2005-03-03 Derek R. Price <derek@ximbiot.com>
20833 Bruno Haible <bruno@clisp.org>
20835 * lib/pagealign_alloc.h: New file.
20836 * lib/pagealign_alloc.c: New file.
20838 2005-03-03 Bruno Haible <bruno@clisp.org>
20840 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
20841 Use an all-permissive copyright notice, recommended by RMS.
20843 2005-03-02 Bruno Haible <bruno@clisp.org>
20845 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
20846 of AIX, the replacement has to be done only after <string.h> is
20847 included, therefore not in config.h. stpncpy.h does the replacement,
20848 and stpncpy.c uses it.
20850 2005-03-02 Bruno Haible <bruno@clisp.org>
20852 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
20855 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
20857 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
20858 The workaround isn't strictly needed for POSIX conformance, and
20859 it's too much of a pain to configure and maintain. We'll ask
20860 people to fix their kernels instead.
20861 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
20862 (NANOSLEEP_BUG_WORKAROUND): Remove.
20863 (xnanosleep): Remove the workaround.
20865 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
20867 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
20868 Reported by Derek Price.
20869 (Include): Add "timespec.h".
20871 * modules/xnanosleep (Depends-on): Remove gethrxtime.
20873 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
20875 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
20876 to detect nanosleep bug.
20878 2005-03-01 Bruno Haible <bruno@clisp.org>
20880 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
20882 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
20884 * modules/gethrxtime: New file.
20885 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
20886 (Depends-on): Add gethrxtime.
20887 (configure.ac): Add gl_XNANOSLEEP.
20888 (Makefile.am): Remove lib_SOURCES line.
20890 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
20892 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
20893 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
20895 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
20897 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
20898 * lib/timespec.h (gettime): Return void, since it always
20899 succeeds now. All uses changed.
20900 * lib/gettime.c (gettime) Likewise.
20901 [HAVE_NANOTIME]: Prefer nanotime.
20902 Assume gettimeofday succeeds, as POSIX requires.
20903 Assime time () succeeds, since other code already does.
20904 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
20905 (timespec_subtract): Remove.
20906 (NANOSLEEP_BUG_WORKAROUND): New constant.
20907 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
20908 things considerably. Use it only on GNU/Linux hosts, since the
20909 workaround shouldn't be needed elsewhere.
20911 2005-02-24 Bruno Haible <bruno@clisp.org>
20913 * modules/gettext (Files): Add m4/glibc2.m4.
20915 2005-02-24 Bruno Haible <bruno@clisp.org>
20917 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
20918 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
20920 Update from GNU gettext 0.14.2.
20921 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
20923 2005-02-24 Bruno Haible <bruno@clisp.org>
20925 * lib/localcharset.c: Update from GNU gettext 0.14.2.
20926 * lib/config.charset: Update from GNU gettext 0.14.2.
20928 2005-02-24 Bruno Haible <bruno@clisp.org>
20930 * lib/gettext.h: Update from GNU gettext 0.14.2.
20932 2005-02-23 Simon Josefsson <jas@extundo.com>
20934 * m4/iconvme.m4: New file.
20936 2005-02-23 Jim Meyering <jim@meyering.net>
20938 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
20940 Thanks to Bruno Haible for catching it.
20942 2005-02-22 Simon Josefsson <jas@extundo.com>
20944 * modules/iconvme: New file.
20946 * MODULES.html.sh: Add iconvme.
20948 2005-02-22 Simon Josefsson <jas@extundo.com>
20950 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
20952 2005-02-22 Simon Josefsson <jas@extundo.com>
20954 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
20956 2005-02-22 Jim Meyering <jim@meyering.net>
20958 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
20961 2005-02-20 Neil Conway <neilc@samurai.com>
20963 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
20964 returned by OSX/Darwin if the specified buffer is not large
20965 enough for the hostname.
20967 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
20969 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
20970 pass it to _help, otherwise the latter coredumps trying to
20971 dereference state.root_argp.
20973 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
20975 * modules/chdir-long (Depends-on): Add memrchr.
20976 * modules/memrchr (Files): Add lib/memrchr.h.
20977 (Include): "memrchr.h".
20979 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
20981 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
20983 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
20985 * lib/memrchr.h: New file.
20986 * lib/chdir-long.c: Include it.
20987 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
20988 Don't bother including stddef.h.
20990 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
20992 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
20994 Include <sys/types.h>, for dev_t.
20995 (ME_DUMMY, ME_REMOTE): Move from here....
20996 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
20997 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
20999 Include mountlist.h first, to test the interface.
21001 2005-01-29 Bruno Haible <bruno@clisp.org>
21003 * lib/progname.c (program_name): Initialize.
21004 Needed when linking statically on MacOS X.
21006 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
21008 Sync from coreutils.
21009 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
21010 (Depends-on): Add c-strtod.
21011 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
21013 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
21015 Sync from coreutils.
21016 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
21018 Remove files that are specific to coreutils.
21019 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
21021 2005-01-28 Bruno Haible <bruno@clisp.org>
21023 * modules/javacomp: New file.
21024 * MODULES.html.sh (Java): Add javacomp.
21026 2005-01-28 Bruno Haible <bruno@clisp.org>
21028 * m4/javacomp.m4: New file, from GNU gettext.
21030 2005-01-28 Bruno Haible <bruno@clisp.org>
21032 * lib/javacomp.sh.in: New file, from GNU gettext.
21033 * lib/javacomp.h: New file, from GNU gettext.
21034 * lib/javacomp.c: New file, from GNU gettext.
21036 2005-01-26 Simon Josefsson <jas@extundo.com>
21038 * lib/gai_strerror.c: Use GPL in header.
21040 2005-01-26 Bruno Haible <bruno@clisp.org>
21042 * modules/javaexec: New file.
21043 * MODULES.html.sh (Java): Add javaexec.
21045 2005-01-26 Bruno Haible <bruno@clisp.org>
21047 * m4/javaexec.m4: New file, from GNU gettext.
21049 2005-01-26 Bruno Haible <bruno@clisp.org>
21051 * lib/javaexec.sh.in: New file, from GNU gettext.
21052 * lib/javaexec.h: New file, from GNU gettext.
21053 * lib/javaexec.c: New file, from GNU gettext.
21055 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
21057 * modules/lchown (Depends-on): Remove lchown.h
21059 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
21061 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
21062 must be defined if the header file was not found, in order
21063 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
21065 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
21067 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
21068 initializers for struct pentry_state.
21069 (__argp_error): Check return value of __asprintf
21070 (__argp_failure): Translate error message
21072 * lib/argp-parse.c: Removed braces around the expansion of N_()
21074 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
21076 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
21077 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
21078 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
21079 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
21080 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
21081 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
21082 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
21083 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
21084 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
21085 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
21086 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
21087 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
21088 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
21089 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
21090 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
21091 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
21092 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
21093 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
21094 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
21095 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
21096 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
21097 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
21098 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
21099 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
21100 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
21101 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
21102 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
21103 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
21104 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
21105 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
21106 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
21107 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
21108 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
21109 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
21110 xstrtol.m4, xstrtoumax.m4, yesno.m4:
21111 Use an all-permissive copyright notice, recommended by RMS.
21113 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
21115 * modules/chdir-long (Depends-on): Remove mempcpy.
21117 2005-01-21 Jim Meyering <jim@meyering.net>
21119 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
21120 same value as for Solaris 9.
21122 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
21123 component length. This included changing the parameter to be
21124 of type `char *' rather than `char const *'.
21125 * lib/chdir-long.h (chdir_long): Update prototype.
21127 * lib/openat.c (fdopendir, fstatat): New functions.
21128 * lib/openat.h: Include headers required for use of DIR and struct
21130 [AT_SYMLINK_NOFOLLOW]: Define.
21131 (fdopendir, fstatat): Add prototypes.
21133 2005-01-21 Bruno Haible <bruno@clisp.org>
21135 * modules/classpath: New file.
21136 * MODULES.html.sh (Java): Add classpath.
21138 2005-01-21 Bruno Haible <bruno@clisp.org>
21140 * lib/classpath.h: New file, from GNU gettext.
21141 * lib/classpath.c: New file, from GNU gettext.
21143 2005-01-20 Simon Josefsson <jas@extundo.com>
21145 * modules/version-etc-fsf: New file.
21147 2005-01-20 Simon Josefsson <jas@extundo.com>
21149 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
21150 * lib/version-etc.c: Remove version_etc_copyright.
21151 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
21152 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
21154 2005-01-20 Simon Josefsson <jas@extundo.com>
21156 * lib/base64.h (isbase64): Add.
21158 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
21159 using a unsigned prototype, don't inline.
21160 (base64_decode): Use it.
21162 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
21164 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
21167 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
21169 * lib/save-cwd.c (save_cwd): Remove code to support the case
21170 where fchdir is missing or flaky.
21172 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
21174 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
21176 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
21178 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
21179 AC_LIBSOURCES now does this.
21180 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
21181 with new ullong_max module.
21183 2005-01-19 Bruno Haible <bruno@clisp.org>
21185 * modules/sh-quote: New file.
21186 * MODULES.html.sh (Executing programs): Add sh-quote.
21188 2005-01-19 Bruno Haible <bruno@clisp.org>
21190 * lib/sh-quote.h: New file, from GNU gettext.
21191 * lib/sh-quote.c: New file, from GNU gettext.
21193 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
21195 Merge from coreutils.
21196 * m4/ullong_max.m4: New file.
21197 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
21198 (gl_MACROS): Assume localeconv exists.
21200 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
21202 Merge changes from coreutils, as described below in several
21203 changelogs dated today.
21205 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
21206 (O_DIRECTORY): Remove; not needed here, since "." must be
21207 a directory. All uses removed.
21208 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
21209 universal on Suns, and we also need to test for IRIX.
21210 Revamp code to use 'if' rather than '#if'.
21211 Avoid unnecessary comparison of cwd->desc to 0.
21213 * lib/utimens.c (futimens): Robustify the previous patch, by checking
21214 for known valid error numbers rather than observed invalid ones.
21216 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
21218 * modules/ullong_max: New file.
21220 * modules/chdir-long, modules/openat: New files.
21221 * modules/save-cwd (Depends-on): Depend on chdir-long.
21222 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
21224 2005-01-18 Jim Meyering <jim@meyering.net>
21226 Merge from coreutils.
21227 * m4/chdir-long.m4, m4/openat.m4: New files.
21228 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
21229 save-cwd.h. Add AC_LIBOBJ for save-cwd.
21230 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
21231 is sane and DOES follow symlinks. Besides, testing 20 different
21232 systems found no broken chown implementations.
21233 Prompted by a change in rsync's copy of this macro.
21234 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
21236 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
21238 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
21239 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
21240 NULL-means-set-to-current-time semantics.
21241 Remove temporary file immediately, rather than waiting
21242 for configure's at-exit trap code to do it.
21244 2005-01-18 Jim Meyering <jim@meyering.net>
21246 * lib/version-etc.c (version_etc_copyright): Update copyright date.
21248 * lib/utimens.c (futimens): Account for the fact that futimes
21249 can also fail with errno == ENOSYS or errno == ENOENT.
21250 Patch from Dmitry V. Levin.
21252 Change the name of the robust chdir function from chdir to chdir_long.
21253 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
21254 (restore_cwd): Use chdir_long, not chdir.
21255 * lib/chdir-long.c: Renamed from chdir.c.
21256 * lib/chdir-long.h: Renamed from chdir.h.
21257 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
21260 2005-01-18 Bruno Haible <bruno@clisp.org>
21262 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
21263 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
21264 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
21265 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
21266 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
21267 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
21268 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
21269 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
21270 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
21271 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
21272 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
21273 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
21274 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
21275 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
21276 Use an all-permissive copyright notice, recommended by RMS.
21278 2005-01-18 Bob Proulx <bob@proulx.com>
21280 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
21281 simplify offsetof() macro construct to avoid compile failure with
21282 native HP-UX 11.0 ANSI C compiler.
21284 2005-01-17 Bruno Haible <bruno@clisp.org>
21286 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
21287 redundant because stpncpy.m4 takes care of it.
21289 2005-01-17 Bruno Haible <bruno@clisp.org>
21291 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
21293 2005-01-17 Bruno Haible <bruno@clisp.org>
21295 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
21298 2005-01-17 Bruno Haible <bruno@clisp.org>
21300 * lib/fwriteerror.h (fwriteerror): Change specification to include
21302 * lib/fwriteerror.c: Include <stdbool.h>.
21303 (fwriteerror): At the end, close the file stream. Record whether
21304 stdout was already closed.
21306 2005-01-17 Bruno Haible <bruno@clisp.org>
21308 * lib/execute.c (environ): Declare if needed.
21309 * lib/pipe.c (environ): Likewise.
21310 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
21312 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
21314 * modules/argp: Depend on vsnprintf
21316 2005-01-10 Jim Meyering <jim@meyering.net>
21318 * modules/closeout (Depends-on): Add atexit.
21320 2005-01-06 Bruno Haible <bruno@clisp.org>
21322 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
21324 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
21326 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
21327 definitions to be after all include files, to avoid collisions.
21328 Problem reported by Bob Proulx.
21330 2005-01-04 Jim Meyering <jim@meyering.net>
21332 Changes imported from coreutils.
21333 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
21334 as the mkstemp template, use a temporary directory and an
21335 8.3-friendly template to avoid trouble on systems like DJGPP.
21336 Reported by Juan M. Guerrero via Stepan Kasal.
21337 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
21338 close. Remove the temporary directory right away, rather than waiting
21339 for configure's at-exit trap code to do it.
21340 Suggestion from Stepan Kasal.
21342 2005-01-01 Simon Josefsson <jas@extundo.com>
21344 * gnulib-tool: Print #include directives when --import'ing.
21346 2004-12-28 Simon Josefsson <jas@extundo.com>
21348 * tests/test-base64.c: Include required header files. Remove
21351 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
21353 * modules/error (Depends-on): Remove gettext.
21355 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
21357 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
21358 not needed. This removes a dependency on the gettext module.
21359 [defined _LIBC]: Do not include <libintl.h>; not needed.
21361 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
21363 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
21364 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
21366 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
21368 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
21371 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
21373 * modules/getdate (Depends-on): Remove alloca-opt.
21375 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
21377 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
21379 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
21381 * lib/argp-parse.c: Include <stddef.h>.
21382 (alignof, alignto): New macros.
21383 (parser_init): Don't assume that void * is aligned sufficiently
21386 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
21387 need to extend the stack.
21388 (YYINITDEPTH): New macro, so that the initial stack isn't overly
21391 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
21393 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
21395 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
21397 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
21398 (2004-10-24) change. Apparently this was a false alarm.
21400 * modules/getdate: Depend on alloca-opt, not alloca.
21402 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
21404 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
21405 Remove now-obsolete comment about AIX.
21406 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
21407 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
21408 (YYMAXDEPTH): New macro.
21410 2004-12-18 Simon Josefsson <jas@extundo.com>
21412 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
21414 2004-12-18 Bruno Haible <bruno@clisp.org>
21416 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
21418 2004-12-18 Bruno Haible <bruno@clisp.org>
21420 * lib/fatal-signal.c (fatal_signals): Make non-const.
21421 (init_fatal_signals): New function.
21422 (uninstall_handlers, install_handlers): Ignore signals that were set to
21424 (at_fatal_signal): Call init_fatal_signals.
21425 (init_fatal_signal_set): Likewise. Ignore signals that were set to
21427 Reported by Paul Eggert.
21429 2004-12-18 Bruno Haible <bruno@clisp.org>
21431 * doc/alloca.texi: New file.
21432 * doc/alloca-opt.texi: New file.
21434 2004-12-17 Jim Meyering <jim@meyering.net>
21436 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
21437 Otherwise, install-sh could exit with improper exit status when
21438 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
21440 2004-12-16 Simon Josefsson <jas@extundo.com>
21442 * tests/test-base64.c: Add license.
21444 2004-12-15 Stepan Kasal <address@hidden>
21446 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
21448 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
21450 * modules/getcwd (Files): Add m4/d-ino.m4.
21451 Suggested by Mark D. Baushke.
21453 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
21455 * lib/getdate.y (textint): New member "negative".
21456 (time_zone_hhmm): New function.
21457 Expect 14 shift-reduce conflicts, not 13.
21458 (o_colon_minutes): New rule.
21459 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
21460 (yylex): Set the "negative" member of signed numbers.
21462 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
21464 * doc/getdate.texi (Time of day items, Time zone items):
21465 Describe new formats +00:00, UTC+00:00.
21467 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
21469 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
21470 spurious "-l"s. Problem reported by Stepan Kasal.
21472 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
21474 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
21475 in Autoconf 2.59. Problem reported by Mark D. Baushke.
21477 2004-12-04 Simon Josefsson <jas@extundo.com>
21479 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
21480 Vandoorselaere <yoann@prelude-ids.org>.
21482 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
21484 Changes imported from coreutils.
21485 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
21487 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
21489 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
21491 Changes imported from coreutils.
21492 * lib/hard-locale.c: Assume <locale.h> exists.
21493 Include "strdup.h".
21494 (GLIBC_VERSION): New macro.
21495 (hard_locale): Assume setlocale exists.
21496 Rewrite to avoid #ifdef.
21497 Use strdup rather than malloc + strcpy.
21498 * lib/human.c: Assume <locale.h> exists.
21499 (human_readable): Assume localeconv exists.
21501 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
21503 * modules/hard-locale (Depends-on): Add strdup.
21505 2004-12-01 Jakub Jelinek <jakub@redhat.com>
21507 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
21508 convert T2, not T. (Imported from libc.)
21510 2004-11-30 Simon Josefsson <jas@extundo.com>
21512 * modules/restrict (License): Change to LGPL.
21514 2004-11-30 Simon Josefsson <jas@extundo.com>
21516 * m4/restrict.m4: Add copyright and copying conditions.
21518 2004-11-30 Simon Josefsson <jas@extundo.com>
21520 * m4/base64.m4: New file.
21522 2004-11-30 Simon Josefsson <jas@extundo.com>
21524 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
21527 * tests/test-base64.c: New file.
21529 * modules/base64: New file.
21531 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
21533 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
21534 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
21536 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
21538 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
21540 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
21541 (__getcwd.c): Don't restore errno; glibc doesn't.
21542 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
21543 first, falling back to our code only if its results look suspicious.
21544 Ensure that the resulting buffer is only as large as necessary.
21546 * lib/readutmp.c: Include readutmp.h first.
21547 Include <errno.h>, since readutmp.h no longer does that.
21548 * lib/readutmp.h: Don't include <errno.h>,
21549 <sys/param.h>, <time.h>; not needed to establish interface.
21550 (errno): Remove decl.
21551 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
21552 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
21553 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
21555 2004-11-28 Simon Josefsson <jas@extundo.com>
21557 * lib/base64.h, base64.c: New file.
21559 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
21561 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
21563 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
21565 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
21566 (Depends-on): Remove pathmax, same. Add mempcpy.
21567 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
21568 (Makefile.am): Append getcwd.h to lib_SOURCES.
21569 (Include): Add getcwd.h.
21570 (Maintainer): Change from Jim Meyering to "all, glibc",
21571 since getdate now uses intended-for-glibc code.
21572 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
21573 (Depends-on): Depend on getcwd. Do not depend on pathmax.
21575 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
21577 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
21578 HP's ANSI C compiler.
21579 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
21580 Declaring int functions causes warnings on some modern systems and
21581 shouldn't be needed to compile on ancient ones.
21582 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
21585 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
21586 with the following changes.
21587 (__set_errno): Parenthesize properly.
21588 Include <stdbool.h>.
21589 (MIN, MAX, MATCHING_INO): New macros.
21590 (__getcwd): Define with prototype, not K&R form.
21591 Use heuristics to allocate default buffer on stack if possible.
21592 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
21593 behavior, and to avoid the PATH_MAX limit when computing
21595 Use MATCHING_INO to compare inode number to file.
21596 Check for arithmetic overflow in size calculations.
21597 Fix bug in reallocation of dot array that caused getcwd to fail
21598 on directories nested deeper than 75.
21599 Be more careful about saving errno on error.
21600 Do not use realloc; use only free+malloc, as this is a bit
21601 more flexible and avoids a needless copy operation.
21602 Do not inspect st_dev and st_ino for symbolic links; POSIX
21603 doesn't specify the latter.
21604 Check for closedir errors.
21605 Avoid needless casts.
21606 Use "#ifdef weak_alias" around weak_alias, to be like other
21608 The following changes to getcwd.c have effect only when used in
21609 gnulib; they have no effect inside glibc proper.
21610 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
21611 as alloca isn't used.
21612 (alloca, __alloca): Likewise.
21613 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
21614 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
21615 unconditionally, as gnulib assumes C89 or better.
21616 Do not include <sys/param.h>.
21617 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
21618 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
21620 (NULL) [!defined NULL]: Remove; we assume C89 or better.
21621 Include <dirent.h> in a way that is compatible with modern Autoconf.
21622 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
21623 New macros, if not already defined.
21624 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
21625 Use "_LIBC", not "defined _LIBC", for consistency.
21626 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
21628 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
21629 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
21630 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
21631 credit only to Jim Meyering and adjust the copyright dates.
21632 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
21633 <stdlib.h>, <unistd.h>, "pathmax.h".
21634 Instead, include "xgetcwd.h" (first) and "getcwd.h".
21635 (INITIAL_BUFFER_SIZE): Remove.
21636 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
21638 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
21640 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
21641 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
21642 Use the _ONCE methods, for efficiency.
21643 Check for fcntl.h. In test program, include <errno.h>
21644 and <fcntl.h> if available. Remove old K&R cruft from
21645 test program. Check for common errors in GNU/Linux,
21646 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
21647 don't do AC_LIBOBJ, as that's getcwd.m4's job.
21648 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
21649 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
21651 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
21652 accommodate new getcwd.c.
21653 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
21654 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
21655 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
21656 that's all we need now.
21658 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
21660 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
21661 argp-parse.c depends on getopt internals, that means we should
21662 always use our getopt, to be on the safe side.
21663 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
21664 order not to spoil the result of an eventual previous invocation
21665 of gl_GETOPT_SUBSTITUTE.
21667 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
21669 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
21670 redefinition warnings. To avoid them, include the defines
21671 in `#if !defined __need_getopt ... #endif'. The only place
21672 where __getopt_argv_const is used is in definitions
21673 of getopt_long and getopt_long_only below, which are as well
21674 protected by `#ifndef __need_getopt'.
21675 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
21676 __need_getopt after including <stdio.h> and <unistd.h> These
21677 headers might have defined it.
21679 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
21681 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
21683 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
21685 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
21686 (futimens): New function, which uses futimes if available.
21687 (futimens, utimens): Support timespec==NULL, with same semantics
21688 as utime and utimens.
21689 * lib/utimens.h (futimens): New decl.
21691 2004-11-23 Jim Meyering <jim@meyering.net>
21693 * lib/getopt_.h: Remove trailing blanks.
21695 2004-11-23 Jim Meyering <jim@meyering.net>
21697 * lib/__fpending.c: Add comment.
21699 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
21701 * modules/canonicalize (Depends-on): Add xreadlink.
21702 Problem reported by James Youngman.
21704 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
21706 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
21708 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
21709 optopt): Use them instead of invoking ## directly; otherwise, the
21710 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
21712 2004-11-19 Bruno Haible <bruno@clisp.org>
21714 * lib/strtok_r.c: Move comments from here...
21715 * lib/strtok_r.h: ... to here.
21717 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
21719 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
21720 implementations that mishandle size_t overflow.
21722 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
21724 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
21725 might fail. Problem reported by Yoann Vandoorselaere.
21726 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
21727 implementations that mishandle size_t overflow.
21729 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
21731 * modules/canon-host (Depends-on): Add strdup.
21733 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
21735 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
21737 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
21739 * lib/canon-host.c: Include "strdup.h".
21740 (canon_host): Use getaddrinfo if available, so that IPv6 works.
21741 Use strdup instead of malloc/strcpy to duplicate strings.
21743 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
21744 (human_space_before_unit): New constant.
21745 * lib/human.c (human_readable): Support it.
21747 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
21748 (xgetcwd): Set errno correctly when failing.
21749 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
21750 the failure is actually due to a PATH_MAX problem.
21752 Further getopt changes to make it more likely that glibc will
21753 buy the changes back.
21754 * lib/getopt.c (POSIXLY_CORRECT): New constant.
21755 (getopt): Use it, so to preserve glibc semantic
21756 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
21757 when compiling for libc.
21758 * lib/getopt_.h (__getopt_argv_const): Bring it back.
21759 (getopt_long, getopt_long_only): Use it.
21761 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
21762 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
21763 (getopt): Argv is now char * const *, as per standard.
21764 (_getopt_internal_r, _getopt_internal): Argv is now char **,
21765 not char *__getopt_argv_const *.
21766 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
21767 _getopt_long_only_r): Likewise.
21768 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
21769 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
21770 _getopt_long_r, _getopt_long_only_r): Likewise.
21771 * lib/getopt_.h (__getopt_argv_const): Remove.
21772 (getopt): Argv is now char * const *, as per standard.
21774 * lib/getdate.y (tORDINAL): New token.
21775 (day, relunit): Allow it for relative times.
21776 (relative_time_table): Use tORDINAL for ordinals.
21778 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
21780 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
21781 Document that "second" isn't allowed as an ordinal number.
21783 2004-11-16 Jim Meyering <jim@meyering.net>
21785 * modules/closeout (Depends-on): Add fpending.
21787 2004-11-15 Jim Meyering <jim@meyering.net>
21789 * lib/closeout.c: Include "__fpending.h" once again.
21790 Include <stdbool.h>.
21791 (close_stdout): Don't fail just because stdout was closed initially,
21792 since some programs don't write to stdout in the normal course of
21793 operation (other than --version and --help), and we don't want this
21794 function to make e.g. `touch file >&-' fail.
21795 But do fail if it was closed and someone has tried to write to it.
21796 E.g., `printf foo >&-' must fail.
21798 2004-11-13 Jim Meyering <jim@meyering.net>
21800 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
21802 2004-11-12 Simon Josefsson <jas@extundo.com>
21804 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
21805 small doc fix is still pending.
21807 2004-11-11 Simon Josefsson <jas@extundo.com>
21809 * modules/strtok_r: New file.
21811 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21814 2004-11-11 Simon Josefsson <jas@extundo.com>
21816 * m4/strtok_r.m4: New file.
21818 * m4/getopt.m4: Replace opterr.
21820 2004-11-11 Simon Josefsson <jas@extundo.com>
21822 * lib/strtok_r.h, strtok_r.c: New file.
21824 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
21826 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
21827 of replacing opterr, getopt, etc. This should handle the
21828 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
21830 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
21832 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
21833 we can stop lying to compilers about the constness of argv when we
21834 are compiled outside glibc.
21835 (getopt, getopt_long, getopt_long_only): Use it.
21836 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
21837 _getopt_internal, getopt): Likewise.
21838 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
21839 _getopt_long_only_r): Likewise.
21840 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
21841 _getopt_long_r, _getopt_long_only_r): Likewise.
21843 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
21844 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
21845 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
21846 the other external symbols.
21847 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
21848 declaration, since the above renaming now works around collisions.
21850 2004-11-11 Jim Meyering <jim@meyering.net>
21852 * lib/linebreak.c: Remove trailing blanks.
21853 * lib/alloca_.h: Likewise.
21854 * lib/acosl.c: Likewise.
21855 * lib/euidaccess.c: Likewise.
21856 * lib/allocsa.h: Likewise.
21858 2004-11-10 Simon Josefsson <jas@extundo.com>
21860 * m4/getaddrinfo.m4: New file.
21862 2004-11-10 Simon Josefsson <jas@extundo.com>
21864 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
21866 2004-11-10 Simon Josefsson <jas@extundo.com>
21868 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21871 * modules/getaddrinfo: New file.
21873 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
21875 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
21877 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
21879 * lib/mktime.c (SHR): New macro, which is a portable
21880 substitute for >> that should work even on Crays.
21881 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
21882 Problem reported by Mark D. Baushke in
21883 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
21884 * lib/getdate.y (SHR): Likewise.
21886 * lib/strftime.c (SHR): Likewise.
21888 * lib/quotearg.c (struct quoting_options): Use unsigned int for
21889 quote_these_too, so that right shifts are well defined. All uses
21892 2004-11-10 Jim Meyering <jim@meyering.net>
21894 Ensure that no close failure goes unreported.
21895 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
21896 return early when it seems there's nothing to flush.
21897 Don't include __fpending.h.
21899 2004-11-10 Jim Meyering <jim@meyering.net>
21901 * modules/closeout (Depends-on): Remove fpending.
21903 2004-11-10 Jim Meyering <jim@meyering.net>
21905 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
21907 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
21909 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
21911 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
21912 and AC_REQUIRE when possible, to avoid duplicate checks.
21913 Check for <wchar.h>.
21915 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
21917 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
21919 2004-11-09 Bruno Haible <bruno@clisp.org>
21921 * m4/sockpfaf.m4: New file.
21923 2004-11-05 Bruno Haible <bruno@clisp.org>
21925 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
21926 Reported by Mark D. Baushke <mdb@cvshome.org>.
21928 2004-11-04 Bruno Haible <bruno@clisp.org>
21930 2004-09-11 Bruno Haible <bruno@clisp.org>
21931 * allocsa.valgrind: New file.
21932 2004-02-06 Bruno Haible <bruno@clisp.org>
21933 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
21934 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
21935 Reported by Christopher Seip <chris.seip@hp.com>.
21937 2004-11-04 Bruno Haible <bruno@clisp.org>
21939 * modules/allocsa (Files): Add lib/allocsa.valgrind.
21940 (Makefile.am): Distribute it.
21942 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
21944 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
21945 with errno == ERANGE if the buffer is too small.
21946 Problem reported by Mark D. Baushke.
21948 2004-11-03 Albert Chin <china@thewrittenword.com>
21949 Paul Eggert <eggert@cs.ucla.edu>
21951 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
21952 equivalent, substitute $ac_type for equivalent type rather than
21953 blindly using uint32_t *always* which won't work if uint32_t is not
21954 available. Define _UINT32_T to work around typedef of uint32_t if
21955 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
21958 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
21960 * m4/jm-macros.m4: Sync from coreutils.
21961 (gl_MACROS): Check for mbrlen, for pathchk.
21962 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
21964 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
21966 * lib/xreadlink.c (MAXSIZE): New macro.
21967 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
21968 size does not exceed MAXSIZE. Avoid cast.
21969 As suggested by Mark D. Baushke in
21970 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
21971 if readlink fails with buffer size just under MAXSIZE, try again
21974 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
21976 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
21978 2004-11-02 Derek R. Price <derek@ximbiot.com>
21979 and Paul Eggert <eggert@cs.ucla.edu>
21981 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
21982 (get_date): Overparenthesize to avoid GCC warning.
21984 2004-11-02 Bruno Haible <bruno@clisp.org>
21986 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
21989 2004-11-02 Bruno Haible <bruno@clisp.org>
21991 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
21992 function returns void.
21994 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
21996 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
21997 fflush_unlocked, flockfile, funlockfile, funlockfile,
21998 fputs_unlocked, putc_unlocked.
22000 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
22002 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
22003 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
22006 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
22008 * modules/getdate (Files): Add doc/getdate.texi.
22009 (Depends-on): Add setenv, xalloc.
22011 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
22013 * lib/getdate.y: Add support for TZ="foo" within a date string.
22014 Fix some bugs near time_t boundaries. Reject dates with
22015 out-of-range components, e.g., "Sept 31".
22016 Include <stdlib.h>, "setenv.h", "xalloc.h".
22017 (ISDIGIT_LOCALE): Remove; unused.
22018 Note that the TZ and time functions used here are not reentrant.
22019 (mktime_ok, get_tz): New functions.
22020 (TZBUFSIZE): New constant.
22021 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
22022 This requires that we sometimes generate our own TZ="XXX..." setting.
22024 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
22026 * doc/getdate.texi: New file, from coreutils with modifications for
22027 the new TZ parsing.
22029 2004-10-27 Derek R. Price <derek@ximbiot.com>
22031 * lib/mktime.c (not_equal_tm): Remove redundant check.
22033 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
22035 * modules/regex (lib_SOURCES): Add regex.c.
22036 Reported by James Youngman in
22037 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
22039 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
22041 * lib/getdate.y: Use Bison 1.875 features, and some minor
22042 code cleanups. This change does not affect semantics.
22043 Don't include <stdlib.h>; no longer needed.
22044 Don't include unlocked-io.h; only the "#if TEST" code uses
22045 stdio, and performance isn't crucial there.
22046 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
22047 Bison 1.875 features as described below.
22048 All uses of "PC." replaced by "pc->".
22049 (YYSTYPE): Add a forward declaration.
22050 (yylex, yyerror): Use full prototypes in forward decls.
22051 Use "%pure-parser" rather than obsolescent "%pure_parser".
22052 Use %parse-param and %lex-param instead of obsolescent
22053 YYPARSE_PARAM and YYLEX_PARAM.
22054 (meridian_table, month_and_day_table, time_units_table,
22055 relative_time_table, time_zone_table, military_table,
22056 lookup_zone, lookup_word, get_date):
22057 Use NULL instead of 0 where appropriate.
22058 (to_hour): Avoid abort (), to avoid a dependency on
22060 (yyerror, yylex): Now accepts parser_control * arg.
22061 (main) [TEST]: Use '\0' rather than 0 for char.
22063 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
22065 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
22067 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
22069 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
22070 It's now the caller's responsibility to handle the case where
22071 !HAVE_GETPAGESIZE && !defined getpagesize.
22073 * lib/mktime.c (leapyear): Arg is long int, not int.
22075 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
22077 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
22079 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
22081 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
22082 missing. Problem reported by James Youngman.
22084 2004-10-16 Simon Josefsson <jas@extundo.com>
22086 * gnulib-tool: Fix comments. Fix parse problem.
22087 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
22089 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
22091 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
22092 implementation of getopt_long. Problem reported by Alexander Taler in:
22093 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
22095 2004-10-15 Bruno Haible <bruno@clisp.org>
22097 * gnulib-tool: Untabify. Initialize supplied_libname.
22098 (func_usage): More homogenous output.
22099 (func_modules_transitive_closure, func_modules_to_filelist,
22100 func_emit_lib_Makefile_am): New functions.
22101 (func_import): New function, extracted from big case statement. Use
22102 func_get_license, func_modules_transitive_closure,
22103 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
22104 opt_lgpl. Don't use test -a, as it's not portable.
22105 (func_create_testdir): Use func_modules_transitive_closure,
22106 func_modules_to_filelist, func_emit_lib_Makefile_am.
22108 2004-10-15 Bruno Haible <bruno@clisp.org>
22110 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
22112 2004-10-15 Bruno Haible <bruno@clisp.org>
22114 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
22115 the portions belonging to each module.
22116 Suggested by Derek Robert Price <derek@ximbiot.com>.
22118 2004-10-12 Simon Josefsson <jas@extundo.com>
22120 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
22121 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
22124 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
22126 * modules/vsnprintf: New file.
22128 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
22130 * m4/vsnprintf.m4: New file.
22132 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
22134 * lib/vsnprintf.h: New file.
22135 * lib/vsnprintf.c: New file.
22137 2004-10-11 Bruno Haible <bruno@clisp.org>
22139 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
22142 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
22144 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
22146 2004-10-07 Bruno Haible <bruno@clisp.org>
22148 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
22149 fits into the provided buffer.
22151 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
22153 * lib/diacrit.c, diacrit.h: Add GPL notice.
22155 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
22157 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
22158 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
22159 This avoids a potential constant-folding bug.
22161 2004-10-05 Bruno Haible <bruno@clisp.org>
22163 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
22164 for the declaration of strsep.
22166 2004-10-05 Bruno Haible <bruno@clisp.org>
22168 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
22170 2004-10-04 Simon Josefsson <jas@extundo.com>
22172 * modules/memmem: New file.
22173 * tests/test-memmem.c: New file.
22174 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
22176 2004-10-04 Simon Josefsson <jas@extundo.com>
22178 * m4/memmem.m4: New file.
22180 2004-10-04 Simon Josefsson <jas@extundo.com>
22182 * lib/memmem.h: New file.
22183 * lib/memmem.c: New file, taken from glibc.
22185 2004-10-04 Simon Josefsson <jas@extundo.com>
22187 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
22188 '#ifdef USE_UNLOCKED_IO'.
22190 2004-10-04 Simon Josefsson <jas@extundo.com>
22192 * config/srclist.txt: Add memmem from glibc.
22194 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
22196 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
22198 * modules/argmatch, modules/argp, modules/closeout, modules/error,
22199 modules/exclude, modules/getdate, modules/getline,
22200 modules/getndelim2, modules/getpass, modules/getpass-gnu,
22201 modules/getusershell, modules/linebuffer, modules/md5,
22202 modules/mountlist, modules/posixtm, modules/readtokens,
22203 modules/readutmp, modules/regex, modules/sha1,
22204 modules/version-etc, modules/yesno:
22205 Remove dependency on unlocked-io.
22207 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
22209 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
22211 * m4/unlocked-io.m4: Add copyright notice.
22212 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
22214 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
22216 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
22217 * lib/xmalloc.c (xmemdup): Likewise.
22218 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
22219 XFREE): Remove these long-obsolescent macros.
22220 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
22221 * lib/xstrdup.c: Remove.
22223 * lib/regex.c (re_comp): Cast gettext return value to char *,
22224 Problem reported by Martin Neitzel via Mark D. Baushke.
22226 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
22228 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
22229 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
22230 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
22231 regex.c, sha1.c, version-etc.c, yesno.c:
22232 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
22233 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
22234 the includer's responsibility.
22236 Sync from coreutils.
22238 * lib/modechange.c (mode_compile): Don't decrement a pointer that
22239 points to the start of a string, as the C Standard says the
22240 resulting behavior is undefined.
22242 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
22243 simple -> simple_backups, numbered_existing ->
22244 numbered_existing_backups, numbered -> numbered_backups
22245 to avoid shadowing problems. All uses changed.
22246 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
22247 * lib/backupfile.c (check_extension, numbered_backup):
22248 Rename locals to avoid shadowing 'basename'.
22249 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
22252 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
22253 * lib/.cvsignore: Add getopt.h.
22255 2004-10-04 Bruno Haible <bruno@clisp.org>
22257 * modules/README: New file.
22258 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
22261 2004-10-02 Jim Meyering <jim@meyering.net>
22263 * lib/dirfd.h, getpagesize.h: Add copyright notice.
22265 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
22267 * modules/strsep: New file.
22269 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
22271 * m4/strsep.m4: New file.
22273 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
22275 * lib/strsep.h: New file.
22276 * lib/strsep.c: New file.
22278 2004-10-01 Simon Josefsson <jas@extundo.com>
22280 * lib/snprintf.c (snprintf): Handle size==0.
22282 2004-10-01 Simon Josefsson <jas@extundo.com>
22283 Bruno Haible <bruno@clisp.org>
22285 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
22286 (snprintf): Declare 'args'.
22288 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
22290 * lib/snprintf.c: Remove comments as to why each header is needed.
22292 2004-10-01 Bruno Haible <bruno@clisp.org>
22294 * MODULES.html.sh: Add strsep.
22296 2004-09-30 Simon Josefsson <jas@extundo.com>
22298 * modules/snprintf: New file.
22300 2004-09-30 Simon Josefsson <jas@extundo.com>
22302 * m4/snprintf.m4: New file.
22304 2004-09-30 Simon Josefsson <jas@extundo.com>
22306 * lib/snprintf.h, lib/snprintf.c: New files.
22308 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
22310 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
22311 (hol_entry_help): Never translate an empty string.
22312 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
22313 * lib/argp.h (OPTION_NO_TRANS): New option.
22315 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
22317 * modules/argp (Maintainer): Replace Simon Josefsson
22318 by Sergey Poznyakoff.
22320 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
22322 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
22323 changes merged back into glibc.
22325 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
22327 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
22329 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
22331 * lib/xvasprintf.c: Include xalloc.h.
22332 (xvasprintf): Use xalloc_die, not xmalloc_die.
22334 2004-09-29 Bruno Haible <bruno@clisp.org>
22336 * modules/alloca-opt: New file, derived from modules/alloca.
22337 * modules/allocsa: Depend on alloca-opt instead of alloca.
22338 * modules/setenv: Likewise.
22339 * modules/vasnprintf: Likewise.
22340 * MODULES.html.sh: Add alloca-opt.
22342 2004-09-28 Simon Josefsson <jas@extundo.com>
22344 * gnulib-tool: New parameter --lgpl, to asseert that modules are
22345 LGPL, and to replace license template from GPL to LGPL.
22347 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
22349 * modules/dummy: Change license to LGPL.
22351 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
22353 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
22355 2004-09-24 Simon Josefsson <jas@extundo.com>
22357 * modules/minmax (License): Change from GPL to LGPL.
22359 2004-09-23 Simon Josefsson <jas@extundo.com>
22361 * gnulib-tool (--import): Typo.
22363 2004-09-23 Simon Josefsson <jas@extundo.com>
22365 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
22367 2004-09-22 Bruno Haible <bruno@clisp.org>
22369 * modules/*: Add 'License' field.
22370 * gnulib-tool: Accept --extract-license option.
22371 (func_get_license): New function.
22373 2004-09-21 Bruno Haible <bruno@clisp.org>
22375 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
22376 Reported by Simon Josefsson.
22378 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
22380 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
22381 gl_AC_TYPE_LONG_LONG.
22383 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
22385 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
22387 2004-09-18 Simon Josefsson <jas@extundo.com>
22388 and Paul Eggert <eggert@cs.ucla.edu>
22390 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
22391 calls with autoreconf. Define GL_LIB.
22393 2004-09-14 Karl Berry <karl@gnu.org>
22395 * config/srclist.txt: unsync setenv.c, sigh.
22397 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
22399 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
22400 Problem reported by Bruno Haible in:
22401 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
22403 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
22405 * config/srclist.txt: Comment out argp-pvh.c.
22407 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
22409 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
22410 in case some system header has #define'd it. Problem reported by
22411 Soeren D. Schulze in
22412 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
22414 2004-09-09 Karl Berry <karl@gnu.org>
22416 * regex.[ch]: delete from the root. These were supposed to be
22417 synced with emacs cvs, but this has not happened for about
22418 a year, and anyway nothing else uses emacs regex.[ch].
22419 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
22420 lib/regex[.ch] is untouched.
22422 2004-09-09 Bruno Haible <bruno@clisp.org>
22424 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
22426 2004-09-09 Bruno Haible <bruno@clisp.org>
22428 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
22430 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
22432 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
22434 * modules/xvasprintf: New file.
22435 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
22437 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
22439 * lib/xvasprintf.h: New file.
22440 * lib/xvasprintf.c: New file.
22441 * lib/xasprintf.c: New file.
22443 2004-09-08 Bruno Haible <bruno@clisp.org>
22445 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
22447 2004-09-08 Bruno Haible <bruno@clisp.org>
22449 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
22450 length is > INT_MAX.
22451 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
22454 2004-09-08 Bruno Haible <bruno@clisp.org>
22456 * lib/stdint_.h: New file, taken from GNU clisp.
22458 2004-09-08 Bruno Haible <bruno@clisp.org>
22459 Oskar Liljeblad <oskar@osk.mine.nu>
22461 * modules/stdint: New file.
22462 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
22464 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
22466 Import from coreutils.
22467 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
22468 strings on unbounded length. alloca's performance benefits aren't
22469 that important here.
22470 (V_STRDUP): Remove.
22471 (parse_with_separator): New function, with most of the internals
22472 of the old parse_user_spec. Allow user to omit both user and group,
22473 for compatibility with FreeBSD.
22474 Clone only the user name, not the entire spec.
22475 Do not set *uid, *gid unless entirely successful.
22476 Avoid memory leak in some failing cases.
22477 Fix regression for USER.GROUP reported by Dmitry V. Levin in
22478 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
22479 (parse_user_spec): Rewrite to use parse_with_separator.
22481 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
22483 * modules/userspec: Don't depend on alloca.
22485 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
22487 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
22489 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
22491 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
22492 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
22493 utimecmp, utimens, xnanosleep. Rename sha to sha1.
22495 2004-08-16 Simon Josefsson <jas@extundo.com>
22497 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
22498 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
22499 Add --dry-run for --import.
22500 Let user provided command line parameters override configure.ac
22503 2004-08-12 Simon Josefsson <jas@extundo.com>
22505 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
22506 as discussed with Paul Eggert in threads rooted at
22507 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
22509 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
22510 Before, the test was empty, and relied on ELIDE_CODE in source
22512 (gl_PREREQ_GETOPT): New macro.
22513 (gl_GETOPT): Use them.
22515 2004-08-12 Simon Josefsson <jas@extundo.com>
22517 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
22518 * lib/getopt_.h: Renamed from getopt.h.
22520 2004-08-12 Simon Josefsson <jas@extundo.com>
22522 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
22523 Change default library name from libfoo to libgnu.
22524 Now, if you have a configure.ac that says:
22527 gl_MODULES(error getopt etcetera)
22529 you can import all you need by running:
22530 ../gnulib/gnulib-tool --import
22532 * modules/getopt (Files): Rename getopt.h to getopt_.h.
22533 (Makefile.am): Rewrite, use logic from argz.
22534 (Include): Use <getopt.h> instead of "getopt.h".
22536 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
22538 * modules/argp (Files): Add m4/unlocked-io.m4.
22539 (Depends-on): Add extensions.
22541 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
22543 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
22544 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
22545 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
22546 Check for program_invocation_name, program_invocation_short_name,
22547 flockfile, funlockfile, features.h, _getopt_long_only_r.
22549 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
22551 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
22552 its complicated substitute.
22553 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
22554 and program_invocation_name.
22555 (__argp_basename) [!_LIBC]: Remove; the only use was
22556 replaced by its body.
22557 (__argp_short_program_name): Change condition from
22558 !defined __argp_short_program_name to
22559 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
22560 to match argp-namefrob.h.
22561 (__argp_failure): Don't assume strerror_r returns char *.
22562 * lib/argp-parse.c (N_): Define unconditionally.
22563 (argp_default_options): Fill out initializers with 0 to avoid
22566 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
22568 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
22571 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
22573 Merge from coreutils.
22575 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
22577 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
22578 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
22580 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
22582 Merge from coreutils.
22584 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
22585 wmemchr or wmemcpy. Problem reported by Robert Dahlem
22586 for Reliant Unix 5.43.
22588 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
22589 (union fooround): Use uintmax_t, not long int.
22590 The rest is a merge from libc:
22591 [defined _LIBC]: Include <shlib-compat.h>.
22592 (_obstack) [defined _LIBC]: Remove after 2.3.4.
22594 * lib/settime.c (settime): Recode to avoid warning with
22597 * lib/strverscmp.c: Convert to UTF-8.
22599 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
22601 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
22604 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
22606 * modules/xalloc-die: New file.
22607 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
22609 * modules/md5 (Files): Add m4/uint32_t.m4.
22610 * modules/sha1: Renamed from modules/sha.
22612 Rename lib/sha.h to lib/sha1.h.
22613 Rename lib/sha.c to lib/sha1.c.
22614 Rename m4/sha.m4 to m4/sha1.m4.
22615 (lib_SOURCES): Likewise.
22616 (configure.ac): Rename gl_SHA to gl_SHA1.
22617 (Include): sha.h -> sha1.h.
22619 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
22621 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
22622 * m4/sha1.m4: Renamed from sha.m4.
22623 (gl_SHA1): Renamed from gl_SHA. All uses changed.
22625 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
22627 * lib/obstack.h (obstack_empty_p):
22628 Don't assume that chunk->contents is suitably aligned.
22629 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
22630 Likewise. Problem reported by Benno in
22631 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
22633 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
22634 readable. This could be improved further but it'd take some work.
22636 2004-08-08 Simon Josefsson <jas@extundo.com>
22638 * modules/xgethostname (Depends-on): Remove exit and error (not
22641 * modules/getpass-gnu: Add getpass.h.
22642 (Depends-on): Add stdbool.
22643 * modules/getpass: Add getpass.h.
22645 2004-08-08 Simon Josefsson <jas@extundo.com>
22647 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
22648 Check getpass declaration.
22650 2004-08-08 Simon Josefsson <jas@extundo.com>
22652 * lib/xgethostname.c: Don't include error.h (not used).
22654 * lib/getpass.h: Add.
22655 * lib/getpass.c: Include getpass.h first.
22657 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
22659 * lib/xalloc-die.c: New file.
22660 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
22662 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
22663 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
22665 (_, N_, xalloc_die): Move to xalloc-die.c.
22666 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
22667 so that we needn't mess with xalloc_msg_memory_exhausted.
22669 * lib/sha1.h: Renamed from sha.h.
22670 (SHA1_H): Renamed from _SHA_H.
22671 (sha1_ctx): Renamed from sha_ctx.
22672 (sha1_init_ctx): Renamed from sha_init_ctx.
22673 (sha1_process_block): Renamed from sha_process_block.
22674 (sha1_process_bytes): Renamed from sha_process_bytes.
22675 (sha1_finish_ctx): Renamed from sha_finish_ctx.
22676 (sha1_read_ctx): Renamed from sha_read_ctx.
22677 (sha1_stream): Renamed from sha_stream.
22678 (sha1_buffer): Renamed from sha_buffer.
22679 * lib/sha1.c: Likewise; renamed from sha.c.
22680 Do not include <sys/types.h>.
22681 Include <stddef.h> rather than <stdlib.h>.
22683 2004-08-08 Bruno Haible <bruno@clisp.org>
22685 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
22686 FILESYSTEM_PREFIX_LEN.
22687 * lib/progreloc.c: Likewise.
22688 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
22690 2004-08-06 Simon Josefsson <jas@extundo.com>
22692 * modules/progname (Depends-on): Don't depend on stdbool.
22694 2004-08-06 Simon Josefsson <jas@extundo.com>
22696 * modules/getsubopt: New file.
22697 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22700 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
22702 More merge from coreutils.
22704 * m4/utimens.m4, m4/utimecmp.m4: New files.
22705 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
22706 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
22707 prereq.m4, sha.m4: Import changes from coreutils.
22709 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
22711 More merge from coreutils.
22712 * modules/raise, modules/readtokens0, modules/utimens:
22713 * modules/utimecmp, module/xnanosleep: New files.
22714 * modules/strftime: Add lib/strftime.h.
22715 Change include from <time.h> to "strftime.h".
22716 * modules/yesno: Add lib/yesno.h.
22717 * modules/backupfile: Remove lib/addext.c.
22718 * modules/euidaccess: Add stat-macros.h.
22719 * modules/canonicalize, modules/euidaccess,
22720 modules/filemode, modules/lchown, modules/makepath,
22721 modules/rmdir, modules/stat: Likewise.
22723 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
22726 * lib/argp-help.c (make_hol, hol_append): Don't assume that
22727 SIZE_MAX is a valid preprocessor constant.
22728 (__argp_basename): Change from "#ifndef _LIBC"
22729 to "#ifndef __argp_short_program_name", so that
22730 we don't compile these functions for tar.
22732 More merges from coreutils.
22733 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
22734 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
22735 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
22736 * lib/addext.c: Remove; no longer needed.
22737 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
22738 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
22739 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
22740 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
22741 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
22742 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
22743 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
22744 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
22745 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
22746 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
22747 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
22748 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
22749 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
22750 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
22751 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
22752 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
22753 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
22754 Import changes from coreutils.
22756 2004-08-05 Simon Josefsson <jas@extundo.com>
22758 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
22760 2004-08-05 Simon Josefsson <jas@extundo.com>
22762 * m4/getsubopt.m4: New file.
22764 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
22766 Merge from coreutils.
22768 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
22769 * m4/getcwd-path-max.m4: New files.
22771 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
22772 FILESYSTEM_PREFIX_LEN ->
22773 FILE_SYSTEM_PREFIX_LEN.
22774 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
22775 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
22776 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
22777 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
22779 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
22780 prerequisite modules now handle the DOS stuff.
22781 Don't check for unistd.h.
22783 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
22785 Merge from coreutils.
22787 * lib/.gdb-history: Remove; this doesn't belong here.
22789 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
22790 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
22791 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
22792 * lib/getcwd.c: New files.
22794 * lib/dirname.h: Include <stdbool.h>.
22795 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
22796 for consistency with POSIX terminology. All uses changed.
22797 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
22798 (strip_trailing_slashes): Use bool for booleans.
22799 * lib/stripslash.c (strip_trailing_slashes): Likewise.
22801 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
22802 sometimes returns a positive errno value even when it succeeds.
22803 (print_errno_message) [!LIBC]: Fall back on strerror if
22804 __strerror_r fails.
22806 * lib/path-concat.c (mempcpy): Don't define if a system header defines
22807 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
22808 (longest_relative_suffix): New function.
22809 (path_concat): Use it. Assume first argument is not NULL.
22810 Port to DOS. Omit redundant separators.
22811 Report an error instead of returning NULL.
22812 Use mempcpy instead of memcpy.
22813 (xpath_concat): Remove: not declared or used.
22815 * lib/same.h: Include <stdbool.h>
22816 (same_name): Return bool, not int.
22817 * lib/same.c (same_name): Likewise.
22818 (errno): Don't declare; we assume C89 or better now.
22820 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
22821 if not already defined.
22823 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
22824 * lib/dup-safer.c (errno): Likewise.
22826 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
22828 Merge from coreutils.
22829 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
22830 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
22831 * modules/path-concat: Don't depend on strdup.
22833 2004-08-03 Simon Josefsson <jas@extundo.com>
22835 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
22836 * lib/progname.h: Don't include stdbool.h.
22838 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
22840 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
22841 * MODULES.html.sh (func_all_modules): Remove fatal.
22843 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
22845 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
22847 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
22849 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
22852 2004-08-02 Simon Josefsson <jas@extundo.com>
22854 * lib/getsubopt.h: New file, with comments from Bruno Haible.
22855 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
22856 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
22858 2004-08-01 Simon Josefsson <jas@extundo.com>
22860 * lib/xgetdomainname.c: Include stdlib.h, for free().
22862 2004-07-19 Bruno Haible <bruno@clisp.org>
22864 * MODULES.html.sh (func_all_modules): Add dummy.
22866 2004-07-16 Simon Josefsson <jas@extundo.com>
22868 * modules/dummy: New file.
22870 2004-07-16 Simon Josefsson <jas@extundo.com>
22872 * lib/dummy.c: New file.
22874 2004-07-16 Bruno Haible <bruno@clisp.org>
22876 * lib/backupfile.h: Add extern "C" for C++.
22877 * lib/closeout.h: Likewise.
22878 * lib/copy-file.h: Likewise.
22879 * lib/findprog.h: Likewise.
22880 * lib/full-write.h: Likewise.
22881 * lib/pathname.h: Likewise.
22882 * lib/progname.h: Likewise.
22883 * lib/stpcpy.h: Likewise.
22884 * lib/stpncpy.h: Likewise.
22885 * lib/strcase.h: Likewise.
22886 * lib/strstr.h: Likewise.
22887 * lib/xalloc.h: Likewise.
22889 * lib/mbswidth.h: Add extern "C" for C++.
22890 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
22892 2004-07-13 Robert Millan <robertmh@gnu.org>
22894 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
22896 2004-07-09 Simon Josefsson <jas@extundo.com>
22898 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
22899 failed without this.)
22901 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
22903 * modules/chown (Files): Add lib/fchown-stub.c, since
22904 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
22906 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
22908 * lib/fchown-stub.c: New file.
22910 2004-06-24 Jim Meyering <jim@meyering.net>
22912 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
22914 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
22916 * modules/argz: Omit "#include".
22918 * MODULES.html.sh (func_all_modules): Add calloc, to match
22919 2004-06-01 addition of calloc module.
22921 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
22923 * m4/argz.m4: New file, which is autoupdated from libtool.
22925 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
22927 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
22930 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
22932 * config/srclist-update: Don't insist on "USA." before the
22933 close-comment, as libtool omits the period and puts the */ on a
22935 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
22936 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
22938 2004-06-22 Gary V. Vaughan <gary@gnu.org>
22940 * modules/argz: New file.
22941 * MODULES.html.sh (func_all_modules): Add argz.
22943 2004-06-12 Jim Meyering <jim@meyering.net>
22944 and Paul Eggert <eggert@cs.ucla.edu>
22946 * modules/hash (Files): Add lib/xalloc.h.
22947 * modules/pipe (Depends-on): Add wait-process.
22948 * modules/stat (Depends-on): Add xalloc.
22949 * modules/userspec (Files): Add lib/userspec.h.
22952 Upgrade from gettext-0.13.
22953 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
22954 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
22955 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
22957 2004-06-10 Jim Meyering <jim@meyering.net>
22959 * lib/calloc.c: New file.
22961 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
22963 * lib/getdate.y (yylex): Allow space between sign and number.
22964 Problem reported by Dan Jacobson.
22966 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
22968 Merge from coreutils CVS.
22970 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
22971 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
22972 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
22973 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
22974 xstrtol.m4: Fix copyright date and/or serial number.
22976 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
22977 See if we need an fchown replacement.
22978 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
22979 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
22980 and use the replacement function if we detect either defect.
22982 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
22985 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
22986 and Jim Meyering <jim@meyering.net>
22988 Merge from coreutils CVS.
22990 * lib/stat-macros.h: New file, with contents from file-type.h
22991 and coreutils' system.h.
22992 * lib/file-type.c: Include "stat-macros.h".
22993 * lib/file-type.h (file_type): Move all macro definitions to new file,
22996 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
22997 Wrap old code with this conditional.
22998 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
22999 function that does not dereference symlinks.
23000 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
23002 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
23003 dependency problems.
23004 (xreadlink): Accept new arg SIZE, for efficiency.
23005 All decls and uses changed.
23006 * lib/xreadlink.h: Include <stddef.h>, for size_t.
23008 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
23009 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
23011 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
23014 2004-06-01 Jim Meyering <jim@meyering.net>
23016 * m4/calloc.m4: New file.
23018 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
23020 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
23021 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
23022 Also, fix a typo in a diagnostic.
23024 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
23026 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
23027 or AC_FUNC_REALLOC.
23029 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
23031 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
23032 macros to be defined.
23033 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
23034 the allocator returns NULL because the requested size is zero.
23036 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
23038 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
23039 var. Add comment explaining why libc still defines it. This
23040 merges the following patch from glibc:
23041 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
23043 2004-05-20 Andreas Schwab <schwab@suse.de>
23045 * m4/free.m4: Replace free if it not known to work, not the other
23048 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
23050 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
23051 present in glibc since revision 1.1 of this file.
23052 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
23053 obstack_alignment_mask, obstack_alloc, obstack_base,
23054 obstack_blank, obstack_blank_fast, obstack_chunk_size,
23055 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
23056 obstack_grow0, obstack_init, obstack_int_grow,
23057 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
23058 obstack_next_free, obstack_object_size, obstack_ptr_grow,
23059 obstack_ptr_grow_fast, obstack_room): Remove declarations of
23060 nonexistent functions.
23062 2004-05-18 Karl Berry <karl@gnu.org>
23064 * config/srclist.txt: break link for vasnprintf.c.
23066 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
23068 Port obstack to the AS/400, where pointers are 16 bytes wide and
23069 you cannot cast an integer to a valid pointer. This patch is
23070 currently waiting to be integrated into glibc; see
23071 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
23073 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
23074 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
23075 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
23076 (struct obstack): temp member is now a union of a pointer and
23077 an integer, instead of an integer. All integer uses changed.
23078 This does not affect the physical layout of struct obstack,
23079 except on hosts (like the AS/400) where the size or alignment of
23080 void * is greater than that of ptrdiff_t.
23081 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
23082 __STDC__)]: Store temporary in pointer member of union, not
23084 * lib/obstack.c: Include <stddef.h>, for offsetof.
23085 (struct fooalign): Remove; it doesn't need a name.
23086 (union fooround): Change double to long double, and add void *.
23087 (DEFAULT_ALIGNMENT): Use offsetof to compute.
23088 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
23089 not a macro. Hence the values are always int; so remove all
23090 casts-to-int in uses.
23092 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
23094 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
23095 we can get this patch merged into glibc.
23097 2004-05-17 Derek R. Price <derek@ximbiot.com>
23098 Paul Eggert <eggert@cs.ucla.edu>
23100 * m4/argp: Depend on alloca.
23102 2004-05-17 Derek R. Price <derek@ximbiot.com>
23103 Paul Eggert <eggert@cs.ucla.edu>
23105 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
23108 2004-05-17 Bruno Haible <bruno@clisp.org>
23110 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
23111 precision that consists of a '.' followed by an empty digit string.
23112 Patch by Tor Lillqvist <tml@iki.fi>.
23114 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
23116 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
23117 for backward compatibility with older code. We need our own
23118 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
23119 it under some other name, and our alloca.h will define it.
23121 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
23122 Derek Price <derek@ximbiot.com>
23124 * lib/alloca.c: Include <alloca.h>, to get our interface.
23125 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
23126 include <alloca.h> first. Use C89 prototype for alloca; this
23127 requires including <stddef.h> for size_t. Use extern "C" if C++.
23128 Use #elif for simplicity, since we can assume C89 now.
23129 Don't try to source the system alloca.h since it will not be found
23130 and to prevent recursively including its replacement.
23131 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
23132 * lib/regex.c: Likewise.
23134 2004-05-16 Derek Price <derek@ximbiot.com>
23135 Paul Eggert <eggert@cs.ucla.edu>
23137 getline cleanup. This changes the getndelim2 API: both order of
23138 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
23141 * lib/getline.c: Don't include stddef.h or stdio.h, since our
23142 interface does that.
23143 (getline): Always use getdelim, so that we don't have two
23144 copies of this code.
23145 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
23147 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
23148 (GETNDELIM2_MAXIMUM): New macro.
23149 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
23150 instead of the old practice of delim2==0. All callers changed.
23151 Return -1 on overflow, instead of returning junk.
23152 Do not set *linesize unless allocation succeeds.
23153 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
23154 that we include sys/types.h.
23155 * lib/getnline.h: Likewise.
23156 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
23157 (getndelim2): Reorder arguments.
23158 * lib/getnline.c (getnline, getndelim):
23159 Don't discard the NMAX argument.
23160 (getnline): Invoke getndelim, to avoid code duplication.
23161 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
23162 of (size_t) -1 by callers of the getnline family.
23164 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
23166 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
23167 Check for gettimeofday.
23168 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
23169 Check for settimeofday, stime.
23171 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
23173 * lib/nanosleep.c (suspended): Change its type from int to
23174 sig_atomic_t volatile.
23175 (first_call): Make it private to rpl_nanosleep, and have it
23176 be zero initially as that's a bit faster.
23177 (my_usleep): Round up fractional times instead of truncating them,
23178 as this is the usual meaning for 'sleep'.
23180 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
23182 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
23183 (ENOSYS): Define if not defined.
23184 (settime): Fall back on stime if it exists and settimeofday fails.
23185 But don't bother with fallbacks if a method fails with errno == EPERM.
23187 2004-05-11 Jim Meyering <jim@meyering.net>
23189 Prior to this change, the save_cwd caller required read access to the
23190 current directory on most systems (ones with the fchdir function).
23192 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
23193 fails, try write-only, and finally, resort to using xgetcwd.
23195 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
23197 * lib/obstack.c, obstack.h: Import changes from libc.
23199 2004-04-28 Bruno Haible <bruno@clisp.org>
23201 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
23202 also implicitly appends .exe to executables.
23203 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
23204 accepts Windows pathnames.
23205 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
23206 Treat Cygwin like Windows, since it now accepts Windows pathnames.
23207 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
23208 Treat Cygwin like Windows, since it now accepts Windows pathnames.
23209 Reported by Derek Robert Price <derek@ximbiot.com>.
23211 2004-04-21 Karl Berry <karl@gnu.org>
23213 * config/srclist.txt (localcharset.c): break sync.
23215 2004-04-20 Paul Eggert <eggert@twinsun.com>
23217 * m4/host-os.m4: Add a copyright notice.
23219 2004-04-20 Jim Meyering <jim@meyering.net>
23221 Change UTILS_ to gl_ in AC_DEFINE'd names.
23222 Change utils_- and jm_-prefixed variables, too.
23223 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
23224 UTILS_FUNC_MKDIR_TRAILING_SLASH.
23225 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
23227 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
23228 Don't emit trailing blanks.
23229 Also rename jm_-prefixed variables to have gl_ prefix.
23231 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
23232 Also rename jm_-prefixed variables to have gl_ prefix.
23234 * m4/jm-macros.m4: Reflect the renamings.
23235 * m4/prereq.m4: Likewise.
23237 2004-04-20 Jim Meyering <jim@meyering.net>
23239 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
23242 2004-04-20 Jim Meyering <jim@meyering.net>
23243 Bruno Haible <bruno@clisp.org>
23245 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
23246 memory when realloc fails.
23248 2004-04-19 Jim Meyering <jim@meyering.net>
23250 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
23251 now that readutmp.c may call `free (0)'.
23253 2004-04-19 Bruno Haible <bruno@clisp.org>
23255 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
23256 * m4/inttypes_h.m4: Likewise.
23257 * m4/stdint_h.m4: Likewise.
23258 * m4/intmax_t.m4: Likewise.
23259 * m4/uintmax_t.m4: Likewise.
23261 2004-04-18 Jim Meyering <jim@meyering.net>
23263 * m4/prereq.m4: Don't forbid jm_ prefix.
23265 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
23266 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
23267 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
23268 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
23269 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
23270 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
23271 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
23272 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
23273 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
23274 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
23275 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
23276 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
23277 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
23278 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
23279 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
23280 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
23281 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
23282 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
23283 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
23285 2004-04-18 Jim Meyering <jim@meyering.net>
23287 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
23288 failure, don't leak memory and do call END_UTMP_ENT.
23290 2004-04-16 Jim Meyering <jim@meyering.net>
23292 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
23293 coreutils' stat program.
23294 (gl_PREREQ): Don't require jm_PREREQ_STAT.
23296 2004-04-11 Paul Eggert <eggert@twinsun.com>
23298 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
23300 (CHAR_BIT): Remove, since we assume C89.
23301 Include <stdint.h> if available, as per current Autoconf CVS advice.
23303 2004-03-31 Jim Meyering <jim@meyering.net>
23305 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
23306 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
23307 * m4/xalloc.m4: Likewise.
23309 2004-03-30 Paul Eggert <eggert@twinsun.com>
23311 Merge from coreutils.
23313 * m4/inttostr.m4: New file.
23314 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
23315 Require AM_STDBOOL_H and gl_TIMESPEC instead.
23316 Require gl_CLOCK_TIME.
23317 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
23319 2004-03-30 Paul Eggert <eggert@twinsun.com>
23321 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
23322 not bool, to be more consistent with Unix conventions.
23323 Suggested by Bruno Haible.
23325 Merge from coreutils.
23327 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
23328 * lib/umaxtostr.c: New files.
23330 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
23331 the usual <time.h> dance.
23332 (get_date): Change signature to support fractional time stamps.
23333 All callers changed.
23334 * lib/getdate.y: Include "getdate.h" first, as we can now
23335 assume C89 and don't need to worry about 'const'.
23336 Similarly, include "unlocked-io.h" near start, not in middle.
23337 Include <limits.h>.
23338 (textint.value): Use long int rather than int.
23339 (textint.digits): Use size_t rather than int.
23340 (BILLION, LOG10_BILLION): New constants.
23341 (parser_control): New member rel_ns. Members day_ordinal,
23342 time_zone, month, day, hour, minutes, rel_year, rel_month,
23343 rel_day, rel_hour, rel_minutes, rel_seconds
23344 are now long int, not int. Member seconds is now struct timespec,
23345 not int. New member timespec_seen. Members dates_seen, days_seen,
23346 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
23348 (%union.intval): Now long int, not int.
23349 New member timespec.
23350 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
23351 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
23352 (spec): Now is a timespec or an item list.
23353 (timespec, items): New nonterminals.
23354 (time, rel, relunit, number, get_date):
23355 Add support for fractional seconds.
23356 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
23357 (gmtime, localtime, mktime): Remove decls; not needed with C89.
23358 (to_hour): First arg is now long int, not int.
23359 (to_year): Returns long int, not int.
23360 Don't treat year -70 like 70.
23361 (tm_diff): Returns long int, not int.
23362 (lookup_word): Use bool instead of int when appropriate.
23363 (yylex): Use size_t for count, not int.
23364 Detect overflow when parsing large integer constants.
23365 Add support for fractions.
23366 (get_date): Make pointers 'const' if possible.
23367 Use more-portable code to detect integer overflow.
23368 (main) [TEST]: Adjust to above changes. Test for localtime failure.
23369 Don't use ctime; it's not reliable if the year has >4 digits.
23371 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
23372 This is for compatibility with BSD.
23374 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
23375 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
23376 From coreutils' system.h.
23378 * lib/userspec.c: Don't include "posixver.h".
23379 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
23380 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
23381 compatible extension. Simplify code by removing a boolean int
23382 that was always nonzero if a string was nonnull.
23384 2004-03-30 Jim Meyering <jim@meyering.net>
23386 Merge from coreutils.
23388 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
23389 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
23390 on some systems one must include <grp.h> before it.
23391 Reported by Christian Krackowizer.
23393 2004-03-30 Jim Meyering <jim@meyering.net>
23395 Merge from coreutils.
23397 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
23399 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
23400 an empty input stream.
23402 * lib/readtokens.c: Include <stdbool.h>.
23403 (readtoken): Use `size_t' rather than int/long.
23404 All callers adjusted.
23405 Use `bool' rather than `int' where appropriate.
23406 Use memset rather than an explicit loop.
23407 Use x2nrealloc rather than xrealloc.
23408 Allow the use of `\0' as a delimiter.
23409 (readtokens): Likewise.
23410 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
23412 2004-03-30 Jim Meyering <jim@meyering.net>
23414 * m4/realloc.m4: Remove file, since now it does no more than
23415 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
23416 the `configure.ac' section of module/realloc.
23417 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
23419 2004-03-30 Bruno Haible <bruno@clisp.org>
23421 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
23424 2004-03-29 Paul Eggert <eggert@twinsun.com>
23426 Merge changes to getloadavg.c from coreutils and Emacs.
23428 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
23429 Define to an expression, not to the empty string.
23430 Include cloexec.h and xalloc.h.
23431 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
23432 Use set_cloexec_flag rather than rolling our own.
23433 * lib/cloexec.c, lib/cloexec.h: New files.
23435 2004-03-29 Paul Eggert <eggert@twinsun.com>
23437 * m4/cloexec.m4: New file.
23439 2004-03-18 Paul Eggert <eggert@twinsun.com>
23441 * lib/getopt.h: Sync with libc CVS.
23443 2004-03-18 Paul Eggert <eggert@twinsun.com>
23444 Bruno Haible <bruno@clisp.org>
23446 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
23449 2004-03-18 Paul Eggert <eggert@twinsun.com>
23450 Bruno Haible <bruno@clisp.org>
23452 * lib/mbswidth.h: Include <wchar.h> only if
23453 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
23455 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
23457 2004-03-09 Paul Eggert <eggert@twinsun.com>
23459 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
23460 Sync with libc CVS.
23461 * lib/getopt_int.h: New file, also synced from libc.
23463 2004-03-09 Paul Eggert <eggert@twinsun.com>
23465 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
23466 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
23467 Bring back getopt.c, getopt.h, getopt1.c.
23469 2004-03-07 Paul Eggert <eggert@twinsun.com>
23471 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
23472 All uses changed. Check for sa_sigaction member; this fixes
23473 a bug first reported by Jason Andrade in
23474 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
23476 2004-03-07 Paul Eggert <eggert@twinsun.com>
23478 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
23479 '#if' expressions. Unlike the code it replaces, it does not
23480 depend on (defined _SC_PAGESIZE). However, it does depend on
23481 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
23482 first reported by Jason Andrade in
23483 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
23485 2004-02-25 Simon Josefsson <jas@extundo.com>
23487 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
23489 2004-02-25 Simon Josefsson <jas@extundo.com>
23491 * lib/strdup.h: New file.
23492 * lib/strdup.c: Include it.
23493 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
23494 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
23496 2004-02-23 Karl Berry <karl@gnu.org>
23498 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
23499 (from fencepost.gnu.org:/gd/gnuorg).
23501 2004-02-23 Karl Berry <karl@gnu.org>
23503 * config/srclistvars.sh (GNUORG) [karl]: redefine.
23504 * config/srclist.txt: add maintain/standards documents.
23506 2004-02-18 Bruno Haible <bruno@clisp.org>
23508 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
23509 Reported by Derek Robert Price <derek@ximbiot.com>.
23511 2004-02-16 Karl Berry <karl@gnu.org>
23513 * config/mkinstalldirs, install-sh: update from automake.
23515 2004-02-06 Karl Berry <karl@gnu.org>
23517 * m4/po.m4: update from gettext 0.14.1.
23519 2004-02-06 Karl Berry <karl@gnu.org>
23521 * lib/config.charset: update from gettext 0.14.1.
23523 2004-02-05 Paul Eggert <eggert@twinsun.com>
23525 Add comments and code, prompted by suggestions from Bruno Haible
23527 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
23528 describing the enum quoting_style values.
23529 * lib/quotearg.c (quotearg_alloc): New function.
23530 (quotearg_buffer_restyled): Treat lone { and } as special.
23531 Treat = as special. Work around bug with older shells
23532 that "see" a '\' that is really the 2nd byte of a multibyte char.
23533 Quote empty string with shell_quoting_style.
23535 2004-02-03 Bruno Haible <bruno@clisp.org>
23537 * m4/pipe.m4: New file, from GNU gettext.
23539 2004-02-03 Bruno Haible <bruno@clisp.org>
23541 * lib/pipe.h: New file, from GNU gettext.
23542 * lib/pipe.c: New file, from GNU gettext.
23544 2004-01-27 Bruno Haible <bruno@clisp.org>
23546 * m4/execute.m4: New file, from GNU gettext.
23548 2004-01-27 Bruno Haible <bruno@clisp.org>
23550 * lib/execute.h: New file, from GNU gettext.
23551 * lib/execute.c: New file, from GNU gettext.
23552 * lib/w32spawn.h: New file, from GNU gettext.
23554 2004-01-24 Paul Eggert <eggert@twinsun.com>
23556 Merge from diffutils.
23558 * lib/file-type.c (file_type): Add typed memory objects.
23559 * lib/file-type.h (S_TYPEISTMO): New macro.
23561 * lib/c-stack.h (c_stack_action): Remove argv argument.
23562 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
23563 (die): Don't calculate message unless segv_action returns.
23564 (get_stack_location, min_address_from_argv, max_address_from_argv,
23565 volatile stack_base, volatile_stack_size): Remove.
23566 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
23567 that every segmentation violation is a stack overflow. (Ouch!)
23568 See Debian bug 136249 (still outstanding) for more info about why
23569 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
23571 2004-01-24 Paul Eggert <eggert@twinsun.com>
23573 Exit-status fix from coreutils.
23575 Use exit_failure consistently in place of EXIT_FAILURE,
23576 so that program exit statuses are consistent on failure.
23578 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
23579 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
23580 * lib/argmatch.h: Comment fix to match the above.
23581 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
23582 Now a macro referring to exit_failure, instead of a separate
23583 variable. Include "exitfail.h" to get it.
23584 * lib/xstrtol.h: Include "exitfail.h".
23585 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
23587 * lib/long-options.c (parse_long_options): Use prototype
23588 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
23591 2004-01-21 Jim Meyering <jim@meyering.net>
23593 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
23594 so as not to conflict with a different-sized __mktime_internal
23595 function in GNU libc.
23596 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
23597 Problem building statically-linked `ls' reported by Michael Brunnbauer.
23599 2004-01-20 Karl Berry <karl@gnu.org>
23601 * config/config.guess: update from config.
23603 * config/srclistvars.sh: GNUWWWLICENSES for karl.
23605 2004-01-20 Bruno Haible <bruno@clisp.org>
23607 Safer stack allocation.
23608 * lib/setenv.c: Include allocsa.h.
23609 (alloca): Remove fallback definition.
23610 (freea): Remove macro.
23611 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
23614 2004-01-20 Bruno Haible <bruno@clisp.org>
23616 * m4/eealloc.m4: New file, from GNU gettext.
23618 2004-01-20 Bruno Haible <bruno@clisp.org>
23620 * m4/allocsa.m4: New file, from GNU gettext.
23622 2004-01-20 Bruno Haible <bruno@clisp.org>
23624 * lib/xallocsa.h: New file, from GNU gettext.
23625 * lib/xallocsa.c: New file, from GNU gettext.
23627 2004-01-20 Bruno Haible <bruno@clisp.org>
23629 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
23631 2004-01-20 Bruno Haible <bruno@clisp.org>
23633 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
23634 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
23637 2004-01-20 Bruno Haible <bruno@clisp.org>
23639 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
23642 2004-01-20 Bruno Haible <bruno@clisp.org>
23644 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
23646 2004-01-20 Bruno Haible <bruno@clisp.org>
23648 * lib/eealloc.h: New file.
23650 2004-01-20 Bruno Haible <bruno@clisp.org>
23652 * lib/binary-io.h: Avoid warnings on Cygwin.
23654 2004-01-20 Bruno Haible <bruno@clisp.org>
23656 * lib/allocsa.h: New file, from GNU gettext.
23657 * lib/allocsa.c: New file, from GNU gettext.
23659 2004-01-18 Karl Berry <karl@gnu.org>
23661 * doc/gpl.texi, doc/lgpl.texi: new files.
23663 2004-01-18 Karl Berry <karl@gnu.org>
23665 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
23666 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
23668 2004-01-15 Paul Eggert <eggert@twinsun.com>
23670 Merge from coreutils.
23672 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
23673 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
23674 (gl_DEFAULT_POSIX2_VERSION): Move
23675 the documentation from 'configure' into 'config.hin',
23676 so that 'configure --help' isn't burdened by it and
23677 we don't have to worry about its formatting there.
23678 Reword the documentation so that it's more succinct
23679 and can be run together into a single paragraph.
23680 * m4/same.m4 (gl_SAME): Check for pathconf.
23682 2004-01-15 Paul Eggert <eggert@twinsun.com>
23684 Merge from coreutils.
23686 * lib/posixver.c: Include posixver.h.
23688 * lib/same.c: Include <stdbool.h>, <limits.h>.
23689 (_POSIX_NAME_MAX): Define if not defined.
23691 (same_name): If file names are silently truncated, report
23692 that the file names are the same if they are the same after
23693 the silent truncation.
23695 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
23696 conversion function.
23697 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
23698 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
23701 2004-01-15 Jim Meyering <jim@meyering.net>
23703 Merge from coreutils.
23705 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
23706 if no library is required.
23707 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
23708 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
23709 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
23710 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
23711 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
23712 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
23713 value, $ac_cv_search_crypt, if it's "none required".
23714 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
23715 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
23716 not gl_FUNC_GETLOADAVG.
23717 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
23718 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
23720 2004-01-15 Jim Meyering <jim@meyering.net>
23722 Merge from coreutils.
23724 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
23725 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
23726 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
23728 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
23729 optional configure-time default.
23731 * lib/version-etc.c (version_etc_copyright): Update copyright date.
23733 * lib/xreadlink.c (xreadlink): Correct outdated comment.
23735 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
23737 Merge from coreutils.
23739 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
23740 value, $ac_cv_search_nanosleep, if it's "none required".
23742 2004-01-14 Paul Eggert <eggert@twinsun.com>
23744 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
23745 with like-named macro in fnmatch.c.
23746 (EXT): Use an internal constant instead.
23748 Merge fnmatch patches from glibc.
23749 * lib/fnmatch.c (mbsinit): Remove define.
23750 Add libc_hidden_ver (__fnmatch, fnmatch).
23751 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
23752 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
23754 2004-01-14 Karl Berry <karl@gnu.org>
23756 * config/install-sh: update from automake.
23758 2004-01-13 Karl Berry <karl@gnu.org>
23760 * config/install-sh: update from automake.
23762 2004-01-09 Karl Berry <karl@gnu.org>
23764 * config/install-sh: update from automake.
23766 2004-01-05 Karl Berry <karl@gnu.org>
23768 * config/config.{sub,guess}: update from config.
23770 2003-12-31 Karl Berry <karl@gnu.org>
23772 * config/depcomp: update from automake.
23774 2003-12-14 Karl Berry <karl@gnu.org>
23776 * lib/config.charset: update from gettext-runtime.
23778 2003-12-03 Paul Eggert <eggert@twinsun.com>
23780 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
23781 Bug reported by Alfred M. Szmidt.
23783 2003-12-03 Bruno Haible <bruno@clisp.org>
23785 * m4/gettext.m4: Upgrade from gettext-0.13.
23786 * m4/po.m4: Upgrade from gettext-0.13.
23787 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
23788 * m4/intmax.m4: New file, from gettext-0.13.
23789 * m4/printf-posix.m4: New file, from gettext-0.13.
23791 2003-11-29 Karl Berry <karl@gnu.org>
23793 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
23795 2003-11-25 Paul Eggert <eggert@twinsun.com>
23796 Bruno Haible <bruno@clisp.org>
23798 * lib/printf-parse.h: Don't include sys/types.h.
23799 (ARG_NONE): New macro.
23800 (char_directive): Change type of *arg_index fields to size_t.
23801 * lib/printf-parse.c: Don't include sys/types.h.
23802 (SSIZE_MAX): Remove macro.
23803 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
23804 Remove unnecessary overflow check.
23805 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
23808 2003-11-25 Bruno Haible <bruno@clisp.org>
23810 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
23812 2003-11-25 Bruno Haible <bruno@clisp.org>
23814 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
23817 2003-11-24 Paul Eggert <eggert@twinsun.com>
23819 * modules/alloca: Remove dependency on xalloc.
23821 2003-11-24 Paul Eggert <eggert@twinsun.com>
23823 * lib/alloca.c: Remove dependency on xalloc module.
23824 (xalloc_die): Remove.
23825 (memory_full) [!defined emacs]: New macro.
23826 [!defined emacs]: Don't include xalloc.h.
23827 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
23828 address arithmetic overflows. Change datatypes a bit to avoid
23831 2003-11-22 Jim Meyering <jim@meyering.net>
23833 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
23836 2003-11-21 Karl Berry <karl@gnu.org>
23838 * config/config.{sub,guess}: update from config.
23840 2003-11-18 Karl Berry <karl@gnu.org>
23842 * config/config.{sub,guess}: update from config.
23844 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
23846 2003-11-17 Paul Eggert <eggert@twinsun.com>
23848 * README: Mention that S+T cannot overflow if S is the size of
23849 an existing object and T is sufficiently small.
23851 2003-11-17 Jim Meyering <jim@meyering.net>
23853 On systems without utime and without a utimes function capable of
23854 dealing with a NULL struct utimbuf* argument, this utime replacement
23855 could -- in unusual circumstances -- leak a file descriptor.
23856 * lib/utime.c: Include <unistd.h> and <errno.h>.
23857 (utime_null): Be sure to close `fd' and to preserve errno.
23858 Reported by Geoff Collyer via Arnold Robbins.
23860 2003-11-17 Bruno Haible <bruno@clisp.org>
23862 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
23863 (Depends-on): Add xsize.
23865 2003-11-17 Bruno Haible <bruno@clisp.org>
23867 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
23869 2003-11-17 Bruno Haible <bruno@clisp.org>
23871 * lib/vasnprintf.c (alloca): Remove fallback definition.
23872 (freea): Remove definition.
23873 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
23874 Reported by Paul Eggert.
23876 2003-11-16 Paul Eggert <eggert@twinsun.com>
23877 Bruno Haible <bruno@clisp.org>
23879 Protect against address arithmetic overflow.
23880 * lib/printf-args.h: Include stddef.h.
23881 (arguments): Change type of field 'count' to size_t.
23882 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
23883 'unsigned int' where appropriate.
23884 * lib/printf-parse.h: Include sys/types.h.
23885 (char_directive): Change type of *arg_index fields to ssize_t.
23886 (char_directives): Change type of fields 'count', max_*_length to
23888 * lib/printf-parse.c: Include sys/types.h and xsize.h.
23889 (SSIZE_MAX): Define fallback value.
23890 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
23891 instead of 'int' where appropriate. Check a_allocated, d_allocated
23892 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
23893 * lib/vasnprintf.c: Include xsize.h.
23894 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
23895 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
23896 overflow. Avoid wraparound when converting a width or precision from
23899 2003-11-16 Bruno Haible <bruno@clisp.org>
23901 Update from GNU gettext.
23902 * lib/printf-parse.c: Generalize to it can be compiled for wide
23904 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
23905 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
23906 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
23907 SNPRINTF): New macros.
23908 Don't include <alloca.h> if the file is used inside libintl.
23909 (local_wcslen): New function, for Solaris 2.5.1.
23910 (VASNPRINTF): Use it instead of wcslen.
23912 2003-11-16 Bruno Haible <bruno@clisp.org>
23914 * lib/xsize.h (xmax): New function.
23915 (xsum, xsum3, xsum4): Declare as "pure" functions.
23917 2003-11-12 Paul Eggert <eggert@twinsun.com>
23919 * modules/xalloc (Files): Undo latest change, since xalloc.h
23920 no longer needs SIZE_MAX or PTRDIFF_MAX.
23922 2003-11-12 Paul Eggert <eggert@twinsun.com>
23924 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
23927 2003-11-12 Paul Eggert <eggert@twinsun.com>
23929 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
23930 "return", to pacify some unknown compiler. Problem reported
23931 by Joerg Schilling.
23933 2003-11-12 Paul Eggert <eggert@twinsun.com>
23935 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
23936 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
23937 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
23938 heuristic is just as accurate as far as we know, and it removes a
23939 dependency on size_max.m4 and ptrdiff_max.m4.
23941 2003-11-11 Bruno Haible <bruno@clisp.org>
23943 * modules/xsize (Files): Add m4/size_max.m4.
23944 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
23946 2003-11-11 Bruno Haible <bruno@clisp.org>
23948 * m4/size_max.m4: New file.
23949 * m4/ptrdiff_max.m4: New file.
23950 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
23951 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
23952 (gl_XALLOC): Invoke it.
23954 2003-11-11 Bruno Haible <bruno@clisp.org>
23956 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
23957 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
23960 2003-11-10 Paul Eggert <eggert@twinsun.com>
23962 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
23963 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
23964 rejected some allocations of exactly SIZE_MAX - 2 bytes.
23966 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
23967 not (size_t) -1, since it's defined here.
23969 2003-11-09 Karl Berry <karl@gnu.org>
23971 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
23973 2003-11-06 Paul Eggert <eggert@twinsun.com>
23975 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
23976 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
23977 Reject sizes of exactly SIZE_MAX bytes.
23978 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
23979 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
23981 2003-11-05 Bruno Haible <bruno@clisp.org>
23983 * lib/xsize.h: Include limits.h, to avoid a possible collision with
23984 SIZE_MAX defined in <limits.h> on Solaris.
23986 2003-11-04 Jim Meyering <jim@meyering.net>
23988 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
23989 variable names, rather than @VAR@.
23990 * modules/poll: Likewise.
23992 2003-11-04 Bruno Haible <bruno@clisp.org>
23994 * modules/xsize: New file.
23995 * modules/linebreak: Depend on xsize.
23996 * MODULES.html.sh (func_all_modules): Add xsize.
23998 2003-11-04 Bruno Haible <bruno@clisp.org>
24000 * m4/xsize.m4: New file.
24002 2003-11-04 Bruno Haible <bruno@clisp.org>
24004 * lib/xsize.h: New file.
24005 * lib/linebreak.c: Include xsize.h.
24006 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
24007 argument for overflow.
24008 Suggested by Paul Eggert.
24010 2003-11-03 Karl Berry <karl@gnu.org>
24012 * config/config.{guess,sub}: update from config.
24014 2003-11-03 Jim Meyering <jim@meyering.net>
24016 * modules/userspec (lib_SOURCES): Add userspec.h.
24017 (Include): Add "userspec.h".
24018 Improve description.
24020 2003-11-03 Jim Meyering <jim@meyering.net>
24022 * lib/userspec.c: Include "userspec.h".
24023 * lib/userspec.h: New file.
24025 2003-11-03 Bruno Haible <bruno@clisp.org>
24027 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
24029 2003-11-03 Bruno Haible <bruno@clisp.org>
24031 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
24032 available, to avoid (extremely rare) race condition.
24033 Suggested by Paul Eggert.
24035 2003-11-02 Karl Berry <karl@gnu.org>
24037 * config/srclist.txt (vasprintf.c): sync broken, sigh.
24039 2003-10-31 Paul Eggert <eggert@twinsun.com>
24041 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
24042 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
24043 (read_filesystem_list): Set and use me_type_malloced.
24044 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
24045 whatever the type happens to be), for brevity and consistency.
24046 Check for size calculation overflow on Alphas running OSF/1.
24048 2003-10-31 Jim Meyering <jim@meyering.net>
24050 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
24052 * lib/linebuffer.c: Include <string.h> for declaration of memset.
24054 2003-10-30 Paul Eggert <eggert@twinsun.com>
24055 Bruno Haible <bruno@clisp.org>
24057 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
24058 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
24060 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
24062 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
24063 netbsd*-gnu*. Suggested by Robert Millan.
24065 2003-10-29 Paul Eggert <eggert@twinsun.com>
24067 * modules/group-member: Depend on stdbool.
24069 2003-10-29 Paul Eggert <eggert@twinsun.com>
24071 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
24073 2003-10-29 Paul Eggert <eggert@twinsun.com>
24075 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
24076 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
24077 after the 'gnu' in these cases. This fixes some bugs in the
24078 previous change, and is based on suggestions by Robert Millan.
24080 2003-10-29 Paul Eggert <eggert@twinsun.com>
24082 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
24083 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
24085 * lib/quotearg.c (quotearg_n_options): Use it.
24086 * lib/group-member.c: Include <stdbool.h>.
24087 (free_group_info): Arg is now const *; don't free arg.
24088 (get_group_info): Now returns bool and accepts struct group_info *,
24089 rather than returning a malloc'ed struct group_info *.
24090 All uses changed. Check for overflow in internal size calculation.
24092 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
24093 rather than xmalloc/xrealloc.
24094 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
24095 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
24096 conformance bug: the old code used a pointer after freeing the
24097 storage that it addressed.
24098 * lib/hash.c (hash_initialize): Simplify the code by using
24099 xalloc_oversized rather than doing it by hand.
24100 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
24101 the buffer preserved. Use free and xmalloc instead.
24102 * lib/quotearg.c (quotearg_n_options): Likewise.
24103 Use a simpler test for size overflow. Don't use xalloc_oversized
24104 because unsigned int might be wider than size_t (!); this suggests
24105 that we should switch from unsigned int to size_t for slot numbers.
24107 2003-10-28 Paul Eggert <eggert@twinsun.com>
24109 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
24110 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
24111 NetBSD kernels. Requested by Richard Stallman.
24113 2003-10-27 Paul Eggert <eggert@twinsun.com>
24115 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
24116 to allocate the returned structure. Do not allocate a subarray,
24117 as x2nrealloc will do that.
24118 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
24119 instead of xnrealloc.
24120 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
24122 2003-10-27 Bruno Haible <bruno@clisp.org>
24124 * lib/stdbool_.h: Better support for BeOS.
24126 2003-10-26 Paul Eggert <eggert@twinsun.com>
24128 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
24131 2003-10-26 Paul Eggert <eggert@twinsun.com>
24133 * lib/xalloc.h (xalloc_oversized): New static inline function, for
24134 callers that want to do their own size-overflow checking. Include
24135 <stdbool.h>, since xalloc_oversized returns bool.
24136 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
24137 to use xalloc_oversized.
24139 Add two functions x2realloc, x2nrealloc, for programs that grow
24140 arrays dynamically by doubling their sizes.
24141 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
24142 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
24145 Port to C99 semantics for 'inline' of external functions.
24146 Bug reported by Bruno Haible.
24147 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
24148 with the old contents of xnmalloc.
24149 (xnmalloc, xmalloc): Use it.
24150 (xnrealloc_inline): New static inline function,
24151 with the old contents of xnrealloc.
24152 (xnrealloc, xrealloc): Use it.
24154 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
24157 2003-10-26 Karl Berry <karl@gnu.org>
24159 * config/srclist.txt (COPYING.DOC): no longer available from
24160 /gd/gnuorg; don't know where the ultimate source is.
24162 2003-10-25 Paul Eggert <eggert@twinsun.com>
24164 Fix several address-calculation bugs in the hash modules,
24165 plus some minor code cleanup.
24167 * lib/hash.h: Include <stdbool.h>, for bool.
24168 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
24169 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
24170 hash_get_n_entries, hash_get_max_bucket_length,
24171 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
24172 hash_rehash): Use size_t rather than unsigned.
24173 * lib/hash.c (struct hash_table, hash_get_n_buckets,
24174 hash_get_n_buckets_used, hash_get_n_entries,
24175 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
24176 hash_get_entries, hash_do_for_each, hash_string, is_prime,
24177 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
24179 (SIZE_MAX): Define if not defined.
24180 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
24181 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
24183 Use const * when possible.
24184 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
24185 (check_tuning): Fix bug: if tuning parameters were very close to
24186 0 or 1, rounding errors could have caused subscript violations.
24187 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
24188 (hash_initialize): Add 'fail:' label
24189 to free table and return NULL, and use it to simplify code.
24190 Use calloc rather than clearing the storage ourself.
24191 (hash_initialize, hash_rehash): Check for arithmetic overflow in
24192 buffer size calculations.
24193 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
24194 Include <stddef.h>, for size_t.
24195 * lib/hash-pjw.c (hash_pjw): Likewise.
24196 Switch to method described by Bruno Haible.
24197 Include <limits.h>, for CHAR_BIT.
24198 (SIZE_BITS): New macro.
24200 2003-10-23 Paul Eggert <eggert@twinsun.com>
24202 * m4/getline.m4 (AM_FUNC_GETLINE):
24203 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
24204 hosts. Problem reported by Derek Robert Price in
24205 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
24206 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
24207 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
24209 2003-10-21 Paul Eggert <eggert@twinsun.com>
24211 * lib/getndelim2.c (getndelim2): When size calculation overflows,
24212 ceiling the allocation at NMAX bytes rather than silently
24213 discarding input bytes before NMAX is reached. This makes
24214 a difference only if NMAX exceeds SIZE_MAX / 2.
24216 * lib/obstack.c: Merge from glibc.
24217 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
24218 Add libc_hidden_def (_obstack_newchunk).
24219 (_obstack_free) [! defined _LIBC]: Remove.
24220 [defined _LIBC]: Make a strong alias from obstack_free, rather than
24221 a clone of the function body.
24222 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
24223 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
24225 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
24227 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
24230 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
24231 (obstack_ptr_grow_fast, obstack_int_grow_fast):
24232 Don't use lvalue casts, as GCC plans to remove support for them
24233 in GCC 3.5. Reported by Joseph S. Myers. This bug
24234 was also present in the non-GCC version, indicating that this
24235 code had always been buggy and had never been widely used.
24236 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
24237 Use the fast variant of each macro, rather than copying the
24238 definiens of the fast variant; that way, we'll be more likely to
24239 catch future bugs in the fast variants.
24241 2003-10-20 Bruno Haible <bruno@clisp.org>
24243 * modules/wait-process: New file.
24244 * MODULES.html.sh (func_all_modules): Add wait-process.
24246 2003-10-20 Bruno Haible <bruno@clisp.org>
24248 * m4/wait-process.m4: New file.
24250 2003-10-20 Bruno Haible <bruno@clisp.org>
24252 * lib/wait-process.h: New file, from GNU gettext.
24253 * lib/wait-process.c: New file, from GNU gettext.
24255 2003-10-19 Jim Meyering <jim@meyering.net>
24257 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
24260 2003-10-18 Karl Berry <karl@gnu.org>
24262 * config/config.guess: update from config.
24264 2003-10-16 Paul Eggert <eggert@twinsun.com>
24266 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
24267 (getgroups): First arg is int, not size_t.
24268 Don't let 'free' mangle errno.
24270 2003-10-16 Paul Eggert <eggert@twinsun.com>
24272 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
24274 2003-10-16 Karl Berry <karl@gnu.org>
24276 * config/config.{guess,sub}: update from config.
24278 2003-10-16 Jim Meyering <jim@meyering.net>
24280 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
24283 2003-10-15 Paul Eggert <eggert@twinsun.com>
24285 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
24286 (SIZE_MAX): Remove.
24287 (new_exclude, add_exclude_file): Initial size no longer needs to
24289 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
24290 our own address arithmetic overflow checking.
24292 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
24293 (fnmatch): Do not alloca more than 2000 wide characters;
24294 instead, use malloc for large buffers.
24295 Check for address arithmetic overflow, and return -1
24296 with errno set to ENOMEM in that case.
24297 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
24298 (NEW_PATTERN): Do not alloca more than 8000 bytes;
24299 instead, return -1. Check for address arithmetic overflow.
24301 2003-10-14 Paul Eggert <eggert@twinsun.com>
24303 Handle invalid suffixes and overflow independently, so that
24304 callers can treat them independently as needed. Fix some bugs in
24305 suffix handling, e.g., "100k@" was not diagnosed as an invalid
24306 suffix for a human-readable blocksize. The major caller-visible
24307 change is the addition of a new
24308 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
24309 that both overflow and suffix chars were found.
24311 * lib/human.c (humblock): Don't check separately for invalid suffix
24312 char; that is xstrtoumax's job (now that its bug is fixed).
24313 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
24314 INTMAX_MAX]: New macros.
24315 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
24316 TYPE_MAXIMUM): New macros.
24317 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
24318 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
24319 if overflow occurs, as it's what __strtol does and it's more useful
24321 (__xstrtol): If __strtol reports some error other than ERANGE,
24322 reflect it to the caller as LONGINT_INVALID. If it reports
24323 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
24324 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
24325 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
24327 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
24328 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
24329 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
24330 [defined UINTMAX_MAX]: New macros.
24332 2003-10-14 Bruno Haible <bruno@clisp.org>
24334 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
24336 2003-10-14 Bruno Haible <bruno@clisp.org>
24338 * m4/sig_atomic_t: New file, from GNU gettext.
24339 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
24341 2003-10-14 Bruno Haible <bruno@clisp.org>
24343 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
24344 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
24345 Also use volatile where needed.
24347 2003-10-12 Paul Eggert <eggert@twinsun.com>
24349 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
24350 Change maintainer from Bruno Haible to 'all'.
24352 2003-10-12 Paul Eggert <eggert@twinsun.com>
24354 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
24356 2003-10-12 Paul Eggert <eggert@twinsun.com>
24358 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
24359 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
24360 and define in terms of the other primitives.
24361 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
24362 (SIZE_MAX): Define if not already defined.
24363 (array_size_overflow): New function.
24364 (xalloc_die): Abort instead of exiting if 'error' returns.
24365 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
24366 (xmalloc, xrealloc): Use them.
24367 (xcalloc): Check for address arithmetic overflow.
24368 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
24369 a bit faster than strcpy.
24371 2003-10-10 Simon Josefsson <jas@extundo.com>
24373 * modules/argp (Depends-on): Add restrict and strcase.
24375 2003-10-10 Simon Josefsson <jas@extundo.com>
24377 * m4/argp.m4: Add AC_C_INLINE.
24379 2003-10-08 Paul Eggert <eggert@twinsun.com>
24381 Merge getpass from libc, plus a few fixes.
24383 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
24384 Include <stdbool.h>.
24385 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
24386 __fsetlocking to empty.
24387 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
24388 do include <bits/libc-lock.h>.
24389 Do not include <fcntl.h>; not needed.
24390 [_LIBC]: Include <wchar.h>.
24391 (NOTCANCEL_MODE): New macro.
24392 (flockfile, funlockfile) [_LIBC]: New macros.
24393 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
24394 [!_LIBC]: New macros.
24395 (call_fclose): New function.
24396 (getpass): Use it. Save tty stream separately; this simplifies the
24397 code and makes it more reliable if stdin happens to equal stdout.
24398 Invoke __fsetlocking on tty.
24399 Handle thread cancellation if needed.
24400 Namespace cleanup (use __tcgetattr, __getline).
24401 Use bool for Booleans.
24402 [USE_IN_LIBIO]: Handle wide streams.
24403 [!_LIBC]: Unconditionally do the fseek, since we don't know what
24404 stream might go where.
24406 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
24407 doesn't have to include <stdio.h> before us.
24408 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
24409 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
24410 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
24411 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
24412 if not declared, so that we can use getpass.c code from libc without
24414 (flockfile, ftrylockfile, funlockfile): New macros.
24416 2003-10-08 Paul Eggert <eggert@twinsun.com>
24418 * modules/getpass: Depend on stdbool.
24420 2003-10-08 Paul Eggert <eggert@twinsun.com>
24422 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
24424 2003-10-07 Karl Berry <karl@gnu.org>
24426 * config/config.{guess,sub}: update from config.
24428 2003-10-06 Jim Meyering <jim@meyering.net>
24429 Bruno Haible <bruno@clisp.org>
24431 This lets translators provide better translations for the
24432 "Written by ..." part of --version output.
24433 * lib/version-etc.h: Include stdarg.h.
24434 (version_etc_copyright): Declare as readonly.
24435 (version_etc): Make this function variadic with a NULL-terminated list
24436 of author name strings.
24437 (version_etc_va): New declaration.
24438 * lib/version-etc.c: Include stdarg.h, stdlib.h.
24439 (version_etc_copyright): Declare as readonly.
24440 (version_etc_va): New function. Provide a different translatable string
24441 for each possible number of authors < 10. Abbreviate when there are 10
24443 (version_etc): Make this function variadic. Call version_etc_va.
24444 Suggestion from Gary V. Vaughan.
24446 * lib/long-options.h (parse_long_options): Change prototype: the
24447 authors string is moved to the end and becomes variadic.
24448 * lib/long-options.c: Include stdarg.h.
24449 (parse_long_options): Make this function variadic, too.
24450 Call version_etc_va, not version_etc.
24452 2003-10-06 Bruno Haible <bruno@clisp.org>
24454 * modules/version-etc-2: Remove file.
24455 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
24457 2003-10-06 Bruno Haible <bruno@clisp.org>
24459 * modules/fatal-signal: New file.
24460 * MODULES.html.sh (func_all_modules): Add fatal-signal.
24462 2003-10-06 Bruno Haible <bruno@clisp.org>
24464 * m4/fatal-signal.m4: New file.
24465 * m4/signalblocking.m4: New file, from GNU gettext.
24467 2003-10-06 Bruno Haible <bruno@clisp.org>
24469 * lib/version-etc-2.h: Remove file.
24470 * lib/version-etc-2.c: Remove file.
24472 2003-10-06 Bruno Haible <bruno@clisp.org>
24474 * lib/fatal-signal.h: New file, from GNU gettext.
24475 * lib/fatal-signal.c: New file, from GNU gettext.
24477 2003-10-05 Paul Eggert <eggert@twinsun.com>
24479 * README: Rework advice for preventing empty .o files.
24480 Don't recommend ELIDE constructs. Recommend <stddef.h>,
24483 2003-10-04 Karl Berry <karl@gnu.org>
24485 * lib/argp*: update from libc.
24487 2003-10-04 Karl Berry <karl@gnu.org>
24489 * config/config.{guess,sub}: update from config.
24491 2003-10-02 Bruno Haible <bruno@clisp.org>
24493 * modules/lchown (Include): Add lchown.h.
24494 * modules/time_r (Include): Use "..." syntax.
24495 * modules/xgetdomainname (Include): Add xgetdomainname.h.
24497 2003-10-01 Simon Josefsson <jas@extundo.com>
24499 * MODULES.html.sh (func_all_modules): Move gethostname from section
24500 'based on' to section 'lacking' POSIX:2001.
24502 2003-10-01 Larry Jones <lawrence.jones@eds.com>
24504 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
24505 to output mode on the same stream.
24507 2003-09-29 Paul Eggert <eggert@twinsun.com>
24509 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
24510 Fix arg typo in previous patch.
24512 2003-09-28 Jim Meyering <jim@meyering.net>
24514 * lib/error.c: Correct cpp indentation.
24516 2003-09-27 Paul Eggert <eggert@twinsun.com>
24518 * modules/free: New file.
24520 2003-09-27 Paul Eggert <eggert@twinsun.com>
24522 * m4/free.m4: New file.
24524 2003-09-27 Paul Eggert <eggert@twinsun.com>
24526 * lib/minmax.h (MIN, MAX)
24527 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
24528 Omit the special code that used __typeof__, since we worry that
24529 it could be more trouble than it's worth. See:
24530 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
24531 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
24533 * lib/free.c: New file.
24535 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
24537 Trivial fixes to Makefile.am parts of module listings.
24538 * modules/strstr: Append strstr.h to lib_SOURCES.
24539 * modules/strcase: Likewise, for strcase.h.
24541 2003-09-27 Karl Berry <karl@gnu.org>
24543 * config/mkinstalldirs: update from automake.
24545 2003-09-26 Paul Eggert <eggert@twinsun.com>
24547 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
24548 (error_tail): Do not loop, reallocating temporary buffer, since
24549 the output cannot contain more wide characters than the input
24550 contains bytes, the size must be big enough already. This avoids
24551 one potential size overflow calculation. Check for size overflow
24552 when calculating temporary buffer size. Free temporary buffer
24553 when done, if it was allocated with malloc; this plugs a memory
24554 leak. Remove casts from void * to pointers, that are no longer
24555 needed now that we're assuming C89 or better.
24557 Merge error changes from glibc.
24559 * lib/error.c, error.h: Update copyright notice header to match glibc.
24560 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
24561 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
24562 Disable cancellation while printing error.
24563 * lib/error.h: Prepend __ to parameter names.
24565 2003-09-26 Jim Meyering <jim@meyering.net>
24567 * lib/error.c (error_tail): Move some declarations
24568 into inner scope where the local variables are used.
24570 2003-09-26 Bruno Haible <bruno@clisp.org>
24572 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
24574 Don't define stpncpy through config.h; it's now done through stpncpy.h.
24576 2003-09-26 Bruno Haible <bruno@clisp.org>
24578 * lib/stpncpy.h (gnu_stpncpy): New declaration.
24579 (stpncpy): Define as alias for gnu_stpncpy.
24580 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
24582 2003-09-25 Simon Josefsson <jas@extundo.com>
24584 * lib/xgetdomainname.h: New file.
24585 * lib/xgetdomainname.c: New file.
24587 2003-09-25 Simon Josefsson <jas@extundo.com>
24588 Bruno Haible <bruno@clisp.org>
24590 * modules/getdomainname: New file.
24591 * modules/xgetdomainname: New file.
24592 * MODULES.html.sh (func_all_modules): Add getdomainname,
24595 2003-09-25 Simon Josefsson <jas@extundo.com>
24596 Bruno Haible <bruno@clisp.org>
24598 * m4/getdomainname.m4: New file.
24600 2003-09-25 Simon Josefsson <jas@extundo.com>
24601 Bruno Haible <bruno@clisp.org>
24603 * lib/getdomainname.h: New file.
24604 * lib/getdomainname.c: New file.
24606 2003-09-25 Karl Berry <karl@gnu.org>
24608 * lib/argp-fmtstream.c, argp-help.c: update from libc.
24610 2003-09-25 Karl Berry <karl@gnu.org>
24612 * config/install-sh: update from automake.
24614 2003-09-25 Bruno Haible <bruno@clisp.org>
24616 * modules/version-etc-2: New file, from modules/version-etc with
24618 * MODULES.html.sh (func_all_modules): Add version-etc-2.
24620 2003-09-25 Bruno Haible <bruno@clisp.org>
24622 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
24623 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
24625 2003-09-24 Simon Josefsson <jas@extundo.com>
24627 * modules/xgethostname: Add xgethostname.h.
24629 2003-09-24 Paul Eggert <eggert@twinsun.com>
24631 * lib/linebuffer.c (freebuffer): Don't free the argument, just
24632 the buffer associated with the argument. Bug reported by
24635 2003-09-24 Paul Eggert <eggert@twinsun.com>
24637 * README: Document assumptions that 'int' is at least 32 bits
24638 wide, that integer arithmetic is 2's complement without overflow,
24639 that there are no holes in integer values, that adding sizes of
24640 two nonoverlapping objects can't overflow, and that all-bits-zero
24641 yields scalar zero. Fix spelling and capitalization typos.
24643 2003-09-19 Karl Berry <karl@gnu.org>
24645 * lib/argp.h: update from libc.
24647 2003-09-17 Paul Eggert <eggert@twinsun.com>
24649 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
24650 to avoid spurious warnings like "AC_RUN_IFELSE was called before
24651 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
24653 2003-09-17 Paul Eggert <eggert@twinsun.com>
24655 * gnulib-tool: Use "test -h", not "test -L", for portability
24656 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
24657 (tags_regexp): Remove, since \| doesn't conform to POSIX.
24658 (sed_extract_prog): Issue s commands one-by-one, rather than
24659 using \| in one s command.
24661 2003-09-16 Paul Eggert <eggert@twinsun.com>
24663 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
24664 input error, instead of returning NULL the next time we are called
24665 (and therefore losing track of errno).
24667 2003-09-16 Bruno Haible <bruno@clisp.org>
24669 * gnulib-tool (func_create_testdir): Warn about duplicated
24672 2003-09-15 Paul Eggert <eggert@twinsun.com>
24674 * modules/argmatch, modules/fatal, modules/obstack,
24675 modules/xalloc, modules/xgethostname: Sort dependencies by
24676 importance, not alphabetically.
24678 2003-09-15 Paul Eggert <eggert@twinsun.com>
24680 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
24681 fails, so that the caller gets the proper errno.
24683 * lib/readutmp.c (read_utmp): Likewise.
24684 Check for fstat error. Close stream and free storage
24687 2003-09-14 Karl Berry <karl@gnu.org>
24689 * config/srclist.txt (strdup.c): disable for c89 changes.
24691 2003-09-14 Jim Meyering <jim@meyering.net>
24693 * lib/getloadavg.c: Correct cpp indentation.
24694 * lib/strdup.c: Likewise.
24695 * lib/vasnprintf.c: Likewise.
24697 2003-09-14 Bruno Haible <bruno@clisp.org>
24699 * modules/fwriteerror: New file.
24700 * MODULES.html.sh (func_all_modules): Add fwriteerror.
24702 2003-09-14 Bruno Haible <bruno@clisp.org>
24704 * lib/fwriteerror.h: New file.
24705 * lib/fwriteerror.c: New file.
24707 2003-09-12 Paul Eggert <eggert@twinsun.com>
24709 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
24710 modules/xgethostname, modules/xalloc: Depend on exit.
24712 2003-09-12 Paul Eggert <eggert@twinsun.com>
24714 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
24716 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
24717 and AC_MINIX, too, so that their extensions are available.
24719 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
24720 This macro has been superseded by gl_BACKUPFILE.
24722 More patches to assume C89 or better.
24724 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
24726 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
24728 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
24729 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
24730 Include <string.h>, <stdlib.h> unconditionally.
24731 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
24732 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
24733 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
24734 headers or for string.h.
24735 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
24738 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
24740 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
24741 * m4/userspec.m4 (gl_USERSPEC): Likewise.
24742 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
24743 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
24744 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
24745 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
24747 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
24748 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
24749 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
24751 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
24752 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
24753 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
24756 2003-09-12 Paul Eggert <eggert@twinsun.com>
24758 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
24759 * lib/obstack.c [!defined _LIBC]: Likewise.
24760 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
24761 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
24762 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
24764 More changes to assume C89 or better.
24766 * lib/error.c (error_tail): Assume vprintf.
24768 * lib/argmatch.c (getenv): Remove decl.
24769 * lib/progreloc.c (get_full_program_name): Define via prototype.
24770 * lib/setenv.c (clearenv): Likewise.
24771 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
24773 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
24774 (malloc, memcpy): Remove decls.
24775 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
24776 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
24777 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
24778 (memcpy): Remove macro.
24779 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
24780 (__P): Remove. All uses removed.
24781 (PTR): Remove. All uses changed to void *.
24782 (CHAR_BIT, NULL): Remove.
24783 (spaces, zeros, memset_space, memset_zero)
24784 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
24786 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
24787 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
24788 Define with prototype.
24789 Remove now-unnecessary prototype decl.
24790 (extra_args_spec): Assume ANSI C. All uses changed.
24791 (extra_args_spec_iso): Remove.
24792 (my_strftime, emacs_strftimeu): Define via prototype.
24793 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
24795 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
24796 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
24797 (strtoul, strtol): Remove decls.
24798 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
24800 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
24801 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
24802 (LOCALE_PARAM_PROTO): New macro.
24803 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
24804 (INTERNAL (strtol), strtol): Define with a prototype.
24805 (PARAMS): Remove. All uses removed.
24806 * lib/tempname.c: Include <string.h> unconditionally.
24807 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
24808 * lib/xgethostname.c (main): Define with a prototype.
24809 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
24810 Include <stdlib.h> unconditionally.
24811 (calloc, malloc, realloc, free): Remove decls.
24812 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
24813 Include <stdlib.h> unconditionally. Sort include file names.
24815 (xstrtod): Define with a prototype.
24816 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
24817 (strtol, strtoul): Remove decls.
24819 2003-09-11 Paul Eggert <eggert@twinsun.com>
24821 More patches to assume C89 or better.
24822 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
24823 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
24824 string.h, memchr, STDC_HEADERS.
24826 2003-09-11 Paul Eggert <eggert@twinsun.com>
24828 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
24829 Include <stdlib.h>, <string.h> unconditionally.
24830 Remove now-unnecessary cast to char *.
24831 * lib/strnlen.c: Include <string.h> unconditionally.
24832 * lib/yesno.c (yesno): Define with a prototype.
24834 2003-09-11 Bruno Haible <bruno@clisp.org>
24836 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
24838 2003-09-10 Jim Meyering <jim@meyering.net>
24840 * lib/error.c: Correct indentation of cpp directives.
24842 2003-09-10 Bruno Haible <bruno@clisp.org>
24844 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
24845 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
24846 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
24847 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
24848 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
24849 <stdlib.h> and <string.h> checks.
24850 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
24851 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
24853 2003-09-10 Bruno Haible <bruno@clisp.org>
24855 * lib/strcspn.c: Include <string.h> unconditionally.
24856 * lib/strpbrk.c: Include <string.h> unconditionally.
24857 * lib/strstr.c: Include <string.h> unconditionally.
24858 * lib/unicodeio.c: Include <string.h> unconditionally.
24859 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
24860 * lib/unsetenv.c: Likewise.
24861 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
24862 * lib/yesno.c: Include <stdlib.h> unconditionally.
24863 (rpmatch): Add prototype.
24865 2003-09-09 Paul Eggert <eggert@twinsun.com>
24867 More patches to assume C89 or better.
24868 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
24869 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
24870 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
24872 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
24874 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
24876 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
24878 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
24879 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
24880 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
24882 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
24883 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
24885 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
24887 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
24888 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
24889 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
24890 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
24891 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
24892 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
24894 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
24895 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
24896 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
24897 C headers, or for string.h.
24898 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
24899 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
24900 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
24901 headers, memory.h, stdlib.h, string.h, strings.h.
24902 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
24903 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
24904 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
24906 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
24907 headers, memory.h, string.h.
24908 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
24909 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
24911 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
24913 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
24914 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
24915 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
24916 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
24917 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
24919 2003-09-09 Paul Eggert <eggert@twinsun.com>
24923 * lib/acosl.c (main): Use a prototype.
24924 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
24927 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
24929 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
24930 (getopt, etopt_long, getopt_long_only, _getopt_internal)
24931 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
24933 * lib/getopt.c (const): Remove macro.
24934 Include <string.h> unconditionally.
24935 (my_index): Remove; all uses changed to strchr.
24936 (strlen): Remove decl.
24937 (exchange): Remove forward decl; no longer needed.
24938 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
24939 Define with prototype.
24940 * lib/getopt1.c (const): Remove macro.
24941 (getopt_long, getopt_long_only, main): Define with prototype.
24943 * lib/getugroups.c: Include <string.h> unconditionally.
24945 * lib/getusershell.c: Include <stdlib.h> unconditionally.
24946 (getusershell, setusershell, endusershell, readname, main):
24947 Define with prototypes.
24949 * lib/group-member.c: Include group-member.h first.
24950 Include <stdlib.h> unconditionally.
24952 * lib/hard-locale.c: Include hard-locale.h first.
24953 Include <stdlib.h>, <string.h> unconditionally.
24955 * lib/hash.c (free, malloc): Remove decls.
24956 Include <stdlib.h> unconditionally.
24958 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
24959 (getenv): Do not declare.
24961 * lib/idcache.c: Include <string.h> unconditionally.
24963 * lib/long-options.c: Include long-options.h first, to test interface.
24964 Include <stdlib.h> unconditionally.
24966 * lib/makepath.c: Include makepath.h first, to test interface.
24967 Include <stdlib.h> and <string.h> unconditionally.
24969 * lib/linebuffer.c: Include <stdlib.h>.
24970 (free): Remove decl.
24972 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
24973 stddef.h. rpl_malloc returns void *, not char *.
24974 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
24977 * lib/md5.h: Include <limits.h> unconditionally.
24978 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
24979 (__P): Remove; all uses removed.
24980 * lib/md5.c: Include "md5.h" first.
24981 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
24982 md5_buffer, md5_process_bytes, md5_process_block):
24983 Define with prototypes.
24984 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
24985 * lib/sha.c: Include "sha.h" first.
24986 Include <stdlib.h>, <string.h> unconditionally.
24988 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
24989 * lib/memcmp.c (__ptr_t): Likewise.
24990 * lib/memrchr.c (__ptr_t): Likewise.
24991 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
24992 Include <string.h> unconditionally.
24993 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
24994 * lib/memchr.c: Include <stdlib.h> unconditionally.
24995 * lib/memchr.c (LONG_MAX): Remove.
24996 * lib/memrchr.c (LONG_MAX): Likewise.
24997 * lib/memchr.c (__memchr): Define via a prototype.
24998 * lib/memrchr.c (__memrchr): Likewise.
24999 * lib/memcmp.c (__P): Remove, and remove all uses.
25000 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
25001 Remove forward decls; no longer needed.
25002 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
25003 Use types required by C89 in prototype.
25005 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
25006 * lib/savedir.c: Likewise.
25007 * lib/mkdir.c (free): Remove decl.
25008 * lib/rmdir.c (rmdir): Define with a prototype.
25009 * lib/savedir.c: Include savedir.h first, to test interface.
25011 * lib/mktime.c (STDC_HEADERS): Remove.
25012 Include <stdlib.h>, <string.h> unconditionally.
25014 * lib/modechange.c: Include <stdlib.h> unconditionally.
25015 (malloc): Remove decl.
25017 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
25018 (free): Remove decl.
25020 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
25021 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
25022 (This type really should be intptr_t, but that's a C99ism.)
25023 (_obstack_memcpy): Remove: all uses changed to memcpy.
25024 Include <string.h> unconditionally.
25025 (struct obstack): Assume __STDC__ for types of members
25026 chunkfun, freefun, extra_arg.
25027 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
25028 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
25029 obstack_begin, obstack_specify_allocation,
25030 obstack_specify_allocation_with_arg, obstack_chunkfun,
25031 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
25032 Remove unprototyped decls and the macros that use them.
25033 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
25034 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
25035 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
25036 (defined __STDC__ && __STDC__)]:
25037 Remove nonprototyped code.
25038 Include <stdlib.h> unconditionally.
25039 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
25040 _obstack_allocated_p, _obstack_free, obstack_free,
25041 _obstack_memory_used, print_and_abort):
25042 Define using prototypes.
25043 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
25044 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
25045 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
25046 obstack_next_free, obstack_object_size, obstack_room) [0]:
25047 Remove unused, unprototyped code.
25049 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
25051 * lib/physmem.c (physmem_total, physmem_available, main): Define
25054 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
25055 (main): Define with a prototype.
25057 * lib/posixver.c (getenv): Remove decl.
25059 * lib/putenv.c (malloc): Returns void *, not char *.
25060 Include <string.h> unconditionally.
25061 (strchr, memcpy, NULL): Do not define.
25063 * lib/readtokens.c: Include readtokens.h first, to test interface.
25064 Include <stdlib.h>, <string.h> unconditionally.
25065 (init_tokenbuffer): Define with a prototype.
25067 * lib/regex.c (PARAMS): Remove. All uses removed.
25068 All uses of _RE_ARGS removed, too.
25069 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
25071 (bzero): Assume memset exists.
25072 (memcmp, memcpy, NULL): Remove.
25073 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
25074 char, or assignments to local vars of type signed char.
25075 (init_syntax_once, PREFIX(extract_number_and_incr),
25076 PREFIX(print_partial_compiled_pattern),
25077 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
25078 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
25079 PREFIX(regex_grow_registers), PREFIX(regex_compile),
25080 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
25081 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
25082 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
25083 wcs_compile_range, byte_compile_range, truncate_wchar,
25084 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
25085 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
25086 count_mbs_length, wcs_re_match_2_internal,
25087 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
25088 PREFIX(alt_match_null_string_p),
25089 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
25090 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
25091 regfree, PREFIX(extract_number)): Define with prototype. Remove
25092 now-unnecessary declaration, if any.
25093 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
25095 Remove now-unnecessary casts among pointer types.
25096 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
25098 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
25099 (free): Remove decl.
25101 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
25103 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
25104 (free): Remove decl.
25106 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
25107 * lib/xgetcwd.c: Likewise.
25109 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
25110 (free): Remove decl.
25112 * lib/strchrnul.c (strchrnul): Define with a prototype.
25113 Fix bug: c_in was not converted to char before searching.
25115 The following changes are not K&R related:
25117 * lib/group-member.h: Include <sys/types.h>, so that this file is
25119 * lib/makepath.h: Likewise.
25121 * lib/getusershell.c (readname, default_index, line_size, readname):
25122 Use size_t, not int, for sizes.
25123 (readname): If the size overflows, report an error instead of
25126 2003-09-09 Paul Eggert <eggert@twinsun.com>
25128 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
25131 2003-09-09 Paul Eggert <eggert@twinsun.com>
25133 * README: New section: portability guidelines.
25135 2003-09-09 Derek Robert Price <derek@ximbiot.com>
25137 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
25140 2003-09-09 Derek Robert Price <derek@ximbiot.com>
25142 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
25144 2003-09-08 Paul Eggert <eggert@twinsun.com>
25146 Assume C89 or better; remove K&R cruft.
25147 A few of these changes were first proposed by Derek Robert Price
25148 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
25150 * lib/addext.c: Include <string.h> unconditionally.
25151 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
25152 Don't declare getenv or malloc.
25154 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
25155 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
25157 (find_stack_direction, alloca): Use prototypes.
25159 * lib/atexit.c (atexit): Define using a prototype.
25161 * lib/basename.c, dirname.c, stripslash.c:
25162 Include <string.h> unconditionally.
25164 * lib/bcopy.c: Include <stddef.h>.
25165 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
25167 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
25169 * lib/error.h (error, error_at_line, error_print_progname)
25170 [! (defined (__STDC__) && __STDC__)]: Remove decls.
25171 * lib/error.c: Include error.h first, to check interface.
25172 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
25173 (VA_START): Remove; all uses changeed to va_start.
25174 (exit, strerror): Remove decls.
25175 (error_print_progname): Prototype uncondionally.
25176 Don't include <errno.h>; no longer needed.
25177 (private_strerror): Remove.
25178 (error_tail): Always define.
25179 (error, error_at_line): Assume C89 or better; always use prototypes.
25180 * lib/fatal.c: Include "fatal.h" first, to test interface.
25181 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
25182 (VA_START): Remove; all uses changed to va_start.
25183 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
25185 (exit): Remove decl.
25186 (fatal): Prototype unconditionally. Assume va_start works.
25187 Abort at end, to pacify gcc.
25189 * lib/euidaccess.c (main): Define with a prototype.
25191 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
25193 * lib/exitfail.c: Include <stdlib.h> unconditionally.
25195 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
25197 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
25198 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
25199 (getenv): Remove decl.
25200 (fnmatch): Define using a prototype.
25201 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
25202 (FCT): Define using a prototype.
25204 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
25206 * lib/gethostname.c: Include <stddef.h>.
25207 (gethostname): Define with prototype. Length is size_t, not int.
25209 2003-09-08 Paul Eggert <eggert@twinsun.com>
25211 Assume C89 or better; remove K&R cruft.
25212 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
25213 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
25214 string.h, getenv, malloc.
25215 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
25217 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
25218 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
25219 do not check for strerror.
25220 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
25221 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
25222 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
25223 do not check for doprnt or vprintf.
25224 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
25225 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
25227 2003-09-08 Paul Eggert <eggert@twinsun.com>
25229 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
25230 getversion.c should have been removed then, but was accidentally
25233 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
25234 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
25236 2003-09-08 Karl Berry <karl@gnu.org>
25238 * config/config.sub, config.guess, srclistvars.sh: update from savannah
25239 config, forget about prep.
25241 * config/depcomp, missing: update from automake.
25243 2003-09-07 Paul Eggert <eggert@twinsun.com>
25245 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
25246 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
25248 2003-09-07 Paul Eggert <eggert@twinsun.com>
25250 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
25251 copy_tm_result. Bug reported by Simon Josefsson in
25252 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
25254 2003-09-06 Paul Eggert <eggert@twinsun.com>
25256 * m4/time_r.m4: New file.
25257 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
25258 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
25259 is. Check for timegm declaration.
25260 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
25261 Do not check for gmtime_r.
25262 Replace mktime if __mktime_internal does not exist and if mktime
25263 hasn't been replaced already.
25265 2003-09-06 Paul Eggert <eggert@twinsun.com>
25267 * lib/time_r.c, lib/time_r.h: New files.
25269 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
25271 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
25272 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
25274 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
25276 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
25277 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
25278 Include <time_r.h>.
25280 * lib/timegm.c: Switch to glibc implementation, with the following
25282 [defined HAVE_CONFIG_H]: Include <config.h>.
25283 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
25284 (__mktime_internal) [!defined _LIBC]: New decl.
25285 (__gmtime_r) [!defined _LIBC]: New macro and function.
25286 (timegm): Use a prototype, since gnulib assumes C89.
25287 Do not bother declaring tmp to be const, as it's not really usefu.
25288 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
25289 (timegm): Declare only if HAVE_DECL_TIMEGM.
25291 2003-09-06 Paul Eggert <eggert@twinsun.com>
25293 * MODULES.html.sh (func_all_modules): Add time_r.
25294 * modules/time_r: New file.
25295 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
25296 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
25298 2003-09-03 Paul Eggert <eggert@twinsun.com>
25300 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
25301 Bug reported by Lute Kamstra in
25302 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
25304 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
25305 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
25306 course with correspondingly smaller numbers for tomorrow and
25307 yesterday. From Tadayoshi Funaba. Originally installed into
25308 sh-utils on 1999-08-07, but the patch got lost (I guess during the
25311 2003-08-31 Simon Josefsson <jas@extundo.com>
25313 * modules/timegm: New file.
25314 * MODULES.html.sh (func_all_modules): Add timegm.
25316 2003-08-31 Simon Josefsson <jas@extundo.com>
25318 * m4/timegm.m4: New file.
25320 2003-08-31 Simon Josefsson <jas@extundo.com>
25322 * lib/timegm.h: New file.
25323 * lib/timegm.c: New file. Based on
25324 wget-1.8.2/src/http.c:mktime_from_utc.
25326 2003-08-31 Karl Berry <karl@gnu.org>
25328 * lib/argp.h: update from libc.
25330 2003-08-28 Bruno Haible <bruno@clisp.org>
25332 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
25333 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
25334 followed by '#define fnmatch fnmatch_posix' gives an error.
25336 2003-08-28 Bruno Haible <bruno@clisp.org>
25338 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
25339 warning on QNX, which defines O_BINARY to 000000.
25341 2003-08-27 Jim Meyering <jim@meyering.net>
25343 * m4/mkstemp.m4: Require that the system mkstemp be able to create
25344 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
25345 would fail after 32. Reported by Danny Levinson. Details here:
25346 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
25348 2003-08-24 Bruno Haible <bruno@clisp.org>
25350 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
25351 MSVC7 <stdio.h> is included later.
25353 2003-08-22 Simon Josefsson <jas@extundo.com>
25355 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
25357 2003-08-20 Karl Berry <karl@gnu.org>
25359 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
25361 2003-08-20 Bruno Haible <bruno@clisp.org>
25363 * modules/progname: New file.
25364 * MODULES.html.sh (func_all_modules): Add progname.
25366 2003-08-20 Bruno Haible <bruno@clisp.org>
25368 * lib/progname.h: New file, from GNU gettext.
25369 * lib/progname.c: New file, from GNU gettext.
25370 * lib/progreloc.c: New file, from GNU gettext.
25372 2003-08-19 Jim Meyering <jim@meyering.net>
25374 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
25375 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
25377 2003-08-19 Bruno Haible <bruno@clisp.org>
25379 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
25382 2003-08-19 Bruno Haible <bruno@clisp.org>
25384 * lib/xstrdup.c: Assume <string.h> exists.
25386 2003-08-18 Paul Eggert <eggert@twinsun.com>
25388 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
25391 2003-08-18 Jim Meyering <jim@meyering.net>
25393 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
25394 * m4/lib-ld.m4: Likewise.
25396 2003-08-18 Jim Meyering <jim@meyering.net>
25398 * lib/setenv.h: Indent nested cpp directive.
25399 * lib/vasnprintf.c: Remove trailing blanks.
25401 2003-08-17 Simon Josefsson <jas@extundo.com>
25403 * modules/xstrndup: New file.
25404 * MODULES.html.sh (func_all_modules): Add xstrndup.
25406 2003-08-17 Simon Josefsson <jas@extundo.com>
25408 * modules/argp: Fix autoconf macro name. Add more dependencies.
25410 2003-08-17 Simon Josefsson <jas@extundo.com>
25412 * m4/xstrndup.m4: New file.
25414 2003-08-17 Simon Josefsson <jas@extundo.com>
25416 * m4/argp.m4: New file.
25418 2003-08-17 Simon Josefsson <jas@extundo.com>
25419 Bruno Haible <bruno@clisp.org>
25421 * lib/xstrndup.h: New file.
25422 * lib/xstrndup.c: New file.
25424 2003-08-17 Bruno Haible <bruno@clisp.org>
25426 * modules/strndup (Files, Include): Add lib/strndup.h.
25428 2003-08-17 Bruno Haible <bruno@clisp.org>
25430 * modules/euidaccess (Files): Add lib/euidaccess.h.
25432 2003-08-17 Bruno Haible <bruno@clisp.org>
25434 * lib/strndup.h: New file.
25436 2003-08-17 Bruno Haible <bruno@clisp.org>
25438 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
25439 like AC_GNU_SOURCE.
25440 * modules/extensions (configure.ac): Comment out the invocation of
25441 gl_USE_SYSTEM_EXTENSIONS.
25443 2003-08-16 Paul Eggert <eggert@twinsun.com>
25445 Merges from coreutils, etc.
25446 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
25447 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
25448 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
25450 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
25451 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
25453 2003-08-16 Paul Eggert <eggert@twinsun.com>
25455 Document merge from coreutils.
25456 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
25457 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
25458 * modules/utime: Add m4/utimes-null.m4.
25460 2003-08-16 Paul Eggert <eggert@twinsun.com>
25462 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
25463 space, undoing this 2003-08-12 change:
25464 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
25466 2003-08-16 Paul Eggert <eggert@twinsun.com>
25468 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
25469 strtoul.c from libc, undoing this 2003-08-12 change:
25470 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
25472 2003-08-16 Jim Meyering <jim@meyering.net>
25474 Merges from coreutils.
25475 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
25476 prefix. Adjust cache variables similarly. Create 500 rather than
25477 just 300 files, to exercise bug on Darwin6.5, too.
25478 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
25480 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
25481 AM_SYS_POSIX_TERMIOS.
25482 Reported by mkc@mathdogs.com.
25483 Also change use of $am_cv_sys_posix_termios
25484 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
25485 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
25486 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
25487 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
25488 in /proc/mounts until it finds one with matching device number. This
25489 is unnecessary when the FILE argument *is* a mount point. No stat call
25490 is necessary in that case. So, disable the statvfs-testing code on
25491 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
25492 as RedHat bug# 84846.
25493 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
25494 to 1MB, so as not to render systems with no stack size limit (e.g.,
25495 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
25496 Include <unistd.h>. On some systems,
25497 it is required for the definition of _SC_PAGESIZE.
25499 2003-08-16 Jim Meyering <jim@meyering.net>
25501 Merge from coreutils.
25502 * lib/xstrtoimax.c: #else #if -> #elif.
25503 * lib/xstrtoumax.c: Likewise.
25505 2003-08-16 Jim Meyering <jim@meyering.net>
25507 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
25508 * m4/utimes.m4: Removed.
25509 * m4/utimes-null.m4: Renamed from utimes.m4.
25511 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
25512 to 1MB, so as not to render systems with no stack size limit (e.g.,
25513 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
25514 Include <unistd.h>. On some systems,
25515 it is required for the definition of _SC_PAGESIZE.
25517 2003-08-16 Jim Meyering <jim@meyering.net>
25518 and Paul Eggert <eggert@cs.ucla.edu>
25520 Merges from coreutils, etc.
25522 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
25523 using the latest version from cvs. This avoids problems with #line
25524 directives using a vendor (Sun) compiler.
25525 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
25526 Don't set GETGROUPS_LIB here; now it's
25527 done via getgroups.m4's wrapper function.
25528 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
25529 rather than just in sh-util/configure.in, so that the
25530 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
25532 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
25533 AC_FUNC_GETLOADAVG where to find getloadavg.c.
25534 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
25535 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
25536 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
25537 Remove code that is now done by the newly-required macros.
25538 Append $(EXEEXT) to DF_PROG.
25539 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
25540 Do not invoke or require the following here,
25541 since prereq.m4 or some gnulib .m4 now does this for us:
25542 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
25543 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
25544 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
25545 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
25546 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
25547 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
25548 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
25550 Do not replace the following functions, as this is now the job
25551 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
25552 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
25553 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
25554 atexit getpass, strdup, getpagesize.
25556 Do not check for the following functions, as this is now the job
25557 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
25558 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
25560 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
25561 Check for sys/sysctl.h.
25562 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
25563 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
25564 of checking for ssize_t ourselves.
25566 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
25567 Require every macro that gnulib/modules/* suggests for us.
25568 (jm_PREREQ_ADDEXT): New macro.
25569 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
25570 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
25572 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
25573 (gl_PHYSMEM): Use it.
25574 Also check for `table' function.
25575 Check for new headers and functions.
25576 Add check for sys/sysmp.h.
25577 With suggestions from Kaveh Ghazi.
25578 Ignore headers that are present but cannot be compiled. This
25579 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
25582 2003-08-15 Paul Eggert <eggert@twinsun.com>
25584 Document merge from coreutils.
25585 * modules/userspec: Depend on posixver.
25586 * modules/strftime: Depend on tzset.
25588 2003-08-15 Paul Eggert <eggert@twinsun.com>
25590 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
25591 rather than tab, after '#' in shell-script copyright notices.
25592 Suggested by Bruno Haible.
25594 2003-08-15 Paul Eggert <eggert@twinsun.com>
25596 * config/srclist-update: Use three spaces, rather than tab, after '#'
25597 in shell-script copyright notices. Suggested by Bruno Haible.
25598 Remove unnecessary parenthesization in regular expression.
25600 2003-08-15 Jim Meyering <jim@meyering.net>
25602 Merge from coreutils.
25603 * lib/xgethostname.c: Include <stdlib.h>.
25604 (xghostname): Don't exit for anything other than memory-related
25605 failure; just return NULL.
25606 * lib/userspec.c: Include "posixver.h".
25607 (parse_user_spec): Accept `.' as a separator only
25608 in pre-POSIX-200112 mode.
25609 * lib/strtoimax.c: Use #elif rather than #else #if.
25610 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
25611 Remove function, now that we can rely on a working tzset function.
25612 [!_LIBC]: Ensure that the required autoconf test has been run.
25613 [!defined _NL_CURRENT && HAVE_STRFTIME]:
25614 Use underlying_strftime for %r.
25615 * lib/sha.c: Merge in some clean-up and optimization changes from
25617 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
25618 Ensure that it is a multiple of 64.
25619 Rearrange loop exit tests so as to avoid performing an
25620 additional fread after encountering an error or EOF.
25621 * lib/realloc.c: Update copyright date.
25623 2003-08-15 Jim Meyering <jim@meyering.net>
25624 and Paul Eggert <eggert@twinsun.com>
25626 Merge from coreutils.
25627 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
25628 member but strut utmpx does not. Needed for AIX 4.3.3.
25629 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
25631 2003-08-15 Jim Meyering <jim@meyering.net>
25632 and Paul Eggert <eggert@cs.ucla.edu>
25634 Merges from coreutils, etc.
25635 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
25636 Require gl_FUNC_TZSET_CLOBBER.
25637 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
25638 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
25641 2003-08-14 Paul Eggert <eggert@twinsun.com>
25643 Help the merge from coreutils.
25644 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
25645 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
25646 * m4/tzset.m4: Use it too.
25648 2003-08-14 Paul Eggert <eggert@twinsun.com>
25650 * modules/tzset: New file.
25652 2003-08-14 Jim Meyering <jim@meyering.net>
25654 Merges from coreutils.
25655 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
25656 variable names, rather than @FNMATCH_H@.
25657 * modules/alloca: Likewise for $(ALLOCA_H).
25659 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
25660 the three copies of the literal target, `fnmatch.h'.
25661 * modules/alloca (alloca.h): Likewise.
25663 2003-08-14 Jim Meyering <jim@meyering.net>
25665 Merge from coreutils.
25666 * m4/tzset.m4: New file.
25667 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
25668 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
25669 otherwise, AIX 5.1 systems would end up using the latter.
25670 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
25671 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
25672 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
25673 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
25675 2003-08-14 Jim Meyering <jim@meyering.net>
25677 Merge from coreutils.
25678 * lib/obstack.h: Whitespace changes.
25679 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
25680 and xcalloc return values.
25681 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
25682 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
25683 hang on OSF/1 5.1 for DIR on both local and remote file systems.
25684 Reported by (and fix confirmed by) Nelson H. F. Beebe.
25685 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
25687 Use mntctl's return value to drive the entry-processing loop, since
25688 we can't rely on the value of the vmt_length member in the last
25689 entry. On some systems doing so could result in exhausting
25690 virtual memory. Based in part on a patch from Mike Jetzer.
25692 2003-08-14 Jim Meyering <jim@meyering.net>
25693 and Paul Eggert <eggert@twinsun.com>
25695 Merges from coreutils, plus other fixes.
25696 * lib/physmem.c: Merge in portability changes from gcc/libiberty
25697 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
25698 for credits and details. Thanks to Kaveh Ghazi for helping
25699 to keep these files in sync.
25700 (ARRAY_SIZE): Define it.
25701 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
25702 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
25703 (memcasecmp): Don't assume size_t fits in unsigned int.
25704 Remove casts and duplicate code.
25705 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
25706 (memcpy): Remove definition.
25707 Merge in some clean-up and optimization changes from glibc.
25708 [BLOCKSIZE]: Move definition to top of file.
25709 Ensure that it is a multiple of 64.
25710 Rearrange loop exit tests so as to avoid performing an
25711 additional fread after encountering an error or EOF.
25712 * lib/md5.h (md5_uintptr): Define.
25713 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
25714 return to the initial working directory. Preserve errno
25716 * lib/idcache.c: Include "xalloc.h".
25717 (xmalloc, xrealloc): Remove decls.
25718 (getuser): Remove casts no longer required in C89.
25719 * lib/human.c: Include stdio.h, for sprintf.
25720 * lib/group-member.c: Include "xalloc.h".
25721 (xmalloc, xrealloc): Remove decls.
25722 (get_group_info): Remove casts no longer required in C89.
25723 * lib/getusershell.c (readname): Remove casts no longer required in
25725 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
25726 * lib/getline.c: Whitespace fix, from coreutils.
25728 2003-08-13 Paul Eggert <eggert@twinsun.com>
25730 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
25733 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
25734 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
25735 Undo previous (whitespace-only) change.
25737 2003-08-13 Paul Eggert <eggert@twinsun.com>
25739 * lib/exclude.c: Include <ctype.h>
25740 (IN_CTYPE_DOMAIN): New macro.
25741 (is_space): New fn.
25742 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
25745 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
25746 Undo previous (whitespace-only) change.
25748 2003-08-13 Paul Eggert <eggert@twinsun.com>
25750 * config/srclist-update: Change update back to the old behavior,
25751 leaving whitespace alone. Use one 'sed' command rather than a
25753 (fixlicense): Now a variable, not a function.
25754 (remove_trailing_blanks): Remove.
25755 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
25756 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
25757 Undo previous (whitespace-only) change.
25759 2003-08-12 Paul Eggert <eggert@twinsun.com>
25761 Merge from coreutils.
25762 * modules/euidaccess: Add lib_SOURCES, include for new
25765 2003-08-12 Paul Eggert <eggert@twinsun.com>
25767 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
25768 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
25769 Normalize leading white space and remove trailing white space.
25771 Merge from coreutils
25772 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
25774 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
25775 0.12.1. These files are now being upgraded automatically by
25776 ../config/srclist-update.
25778 2003-08-12 Paul Eggert <eggert@twinsun.com>
25780 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
25781 Normalize leading white space and remove trailing white space.
25782 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
25783 notice, as per ../config/srclist-update.
25785 Merge from coreutils.
25786 * lib/euidaccess.h: New file.
25787 * lib/euidaccess.c: Include it.
25788 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
25789 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
25790 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
25792 2003-08-12 Paul Eggert <eggert@twinsun.com>
25794 * config/srclist-update: Add copyright notice.
25795 (remove_id_lines, remove_trailing_blanks): New constants.
25796 (fixfile): Use them to normalize spacing a bit in copied files.
25797 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
25798 Normalize leading white space and remove trailing white space.
25800 * config/texinfo.tex: Sync with texinfo.
25802 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
25803 strtoul.c from libc, to merge coreutils whitespace changes.
25805 * config/srclist.txt: Get the following m4 files from gettext:
25806 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
25807 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
25808 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
25811 2003-08-12 Karl Berry <karl@gnu.org>
25813 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
25816 2003-08-11 Paul Eggert <eggert@twinsun.com>
25818 * modules/gnu-source, m4/gnu-source.m4:
25819 Remove; we're assuming Autoconf 2.54 or later now.
25820 Suggested by Bruno Haible.
25821 * MODULES.html.sh (func_all_modules): Remove gnu-source.
25823 2003-08-11 Bruno Haible <bruno@clisp.org>
25825 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
25827 2003-08-11 Bruno Haible <bruno@clisp.org>
25829 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
25830 (vasnprintf): Use it instead of wcslen.
25832 2003-08-11 Bruno Haible <bruno@clisp.org>
25834 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
25835 value to ensure that _Bool promotes to int. Use #define for _Bool when
25836 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
25838 2003-08-10 Karl Berry <karl@gnu.org>
25840 * lib/regex.h: update from libc (whitespace fix).
25842 2003-08-09 Paul Eggert <eggert@twinsun.com>
25844 Merge some files from coreutils. These changes were
25845 originally made by Jim Meyering.
25846 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
25847 many older Unixes require this.
25848 * lib/alloca.c (alloca): Remove cast to argument of free;
25849 no longer needed in C89.
25850 * lib/alloca_.h, regex.h: Fix white space to match
25851 what GNU indent does.
25853 2003-08-09 Paul Eggert <eggert@twinsun.com>
25855 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
25856 apparently Emacs's Unicode mode got confused before my 2003-08-05
25859 2003-08-08 Paul Eggert <eggert@twinsun.com>
25861 * m4/extensions.m4: New file.
25862 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
25863 Require gl_USE_SYSTEM_EXTENSIONS.
25864 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
25865 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
25867 2003-08-08 Paul Eggert <eggert@twinsun.com>
25869 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
25870 * modules/extensions, modules/gnu-source: New files.
25871 * modules/timespec, modules/unlocked-io: Depend on extensions.
25873 2003-08-07 Paul Eggert <eggert@twinsun.com>
25875 * modules/restrict: New file.
25876 * MODULES.html.sh (func_all_modules): Add restrict.
25877 * modules/regex: Depend on restrict.
25879 2003-08-07 Paul Eggert <eggert@twinsun.com>
25881 * m4/restrict.m4: New file.
25882 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
25884 2003-08-07 Bruno Haible <bruno@clisp.org>
25886 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
25887 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
25889 2003-08-07 Bruno Haible <bruno@clisp.org>
25891 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
25892 makes the module 'getndelim2' compatible with the module 'getline'.
25894 2003-08-05 Paul Eggert <eggert@twinsun.com>
25896 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
25897 byte with "\201" to avoid glitches when editing that source file
25898 with multi-gnome-terminal.
25900 2003-08-05 Paul Eggert <eggert@twinsun.com>
25902 * lib/bumpalloc.h: Remove.
25904 2003-08-05 Paul Eggert <eggert@twinsun.com>
25906 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
25907 * modules/bumpalloc: Remove.
25909 2003-08-04 Paul Eggert <eggert@twinsun.com>
25911 * lib/getloadavg.c: Change copyright notice and spacing to conform to
25914 Merge from coreutils.
25915 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
25917 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
25918 from Karl Berry, implemented by Jim Meyering.
25919 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
25920 from Dmitry V. Levin.
25921 Remove anachronistic cast of xrealloc.
25922 * lib/fnmatch_.h (__const): Remove. Use 'const'.
25923 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
25924 type. Otherwise, it wouldn't compile with at least /bin/cc on
25925 ymp-cray-unicos9.0.2.X.
25926 Combine two mostly-identical uses of alloca into one.
25927 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
25929 2003-08-04 Dave Love <d.love@dl.ac.uk>
25933 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
25934 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
25935 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
25936 obsolete NLIST_NAME_UNION.
25937 [__GNU__]: Undef BSD and FSCALE.
25938 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
25940 2003-08-03 Paul Eggert <eggert@twinsun.com>
25942 * lib/stdbool_.h (_Bool): Make it signed char, instead of
25943 an enum type, so that it's guaranteed to promote to int. See:
25944 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
25946 2003-08-03 Karl Berry <karl@gnu.org>
25948 * config/depcomp: update from automake.
25950 2003-07-31 Paul Eggert <eggert@twinsun.com>
25952 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
25953 (strerror): Don't assume that a printable int fits in 14 bytes.
25955 2003-07-31 Bruno Haible <bruno@clisp.org>
25957 * modules/getpass-gnu: New file.
25958 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
25960 2003-07-31 Bruno Haible <bruno@clisp.org>
25962 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
25964 2003-07-24 Karl Berry <karl@gnu.org>
25966 * config/missing: update from automake.
25968 2003-07-24 Derek Robert Price <derek@ximbiot.com>
25969 Bruno Haible <bruno@clisp.org>
25971 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
25972 * lib/getline.c (getline, getdelim): Likewise.
25973 Remove _GNU_SOURCE define; now it's defined in config.h through
25976 2003-07-23 Karl Berry <karl@gnu.org>
25978 * config/config.sub: update from prep.
25980 2003-07-22 Paul Eggert <eggert@twinsun.com>
25982 * modules/xalloc (Depends-on): Add exitfail.
25983 * modules/xmemcoll: Likewise.
25985 2003-07-22 Paul Eggert <eggert@twinsun.com>
25987 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
25988 over-parenthesization in macros.
25990 Sync with coreutils.
25992 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
25995 Use `exit_failure' for xalloc and xmemcoll instead of their own
25996 private exit-failure variables.
25997 * lib/xalloc.h (xalloc_exit_failure): Remove.
25998 * lib/xmalloc.c: Likewise. Include exitfail.h.
25999 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
26000 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
26001 * lib/xmemcoll.c: Likewise. Include exitfail.h.
26002 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
26004 2003-07-20 Jim Meyering <jim@meyering.net>
26006 * modules/closeout (Depends-on): Add exitfail.
26007 Suggestion from Bruno Haible.
26009 2003-07-19 Karl Berry <karl@gnu.org>
26011 * config/config.sub: update from prep.
26013 2003-07-18 Paul Eggert <eggert@twinsun.com>
26015 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
26017 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
26018 to test that it can stand by itself. Include "exitfail.h".
26019 Clients should set exit_failure instead.
26020 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
26022 2003-07-18 Bruno Haible <bruno@clisp.org>
26024 * modules/getndelim2: New file.
26025 * modules/getline: Share files with module getndelim2.
26026 * modules/getnline: Depend on getndelim2 instead of sharing files with
26027 it. Add getnline.c to lib_SOURCES.
26028 * MODULES.html.sh (func_all_modules): Add getndelim2.
26030 2003-07-18 Bruno Haible <bruno@clisp.org>
26032 * m4/getndelim2.m4: New file.
26033 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
26034 invoke gl_PREREQ_GETNDELIM2.
26035 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
26036 gl_PREREQ_GETNDELIM2.
26037 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
26040 2003-07-18 Bruno Haible <bruno@clisp.org>
26042 * lib/getndelim2.h: New file.
26043 * lib/getndelim2.c: Make into a module of its own. Include config.h,
26045 (getndelim2): Make non-static. Change return type to ssize_t.
26046 * lib/getline.h: Change argument names.
26047 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
26048 * lib/getnline.c: Include getndelim2.h.
26050 2003-07-18 Andreas Schwab <schwab@suse.de>
26052 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
26054 2003-07-17 Karl Berry <karl@gnu.org>
26056 * config/config.sub: update from prep.
26058 2003-07-17 Bruno Haible <bruno@clisp.org>
26060 * modules/getnline: New file.
26061 * modules/getline: Add lib/getndelim2.c to source file list.
26062 * MODULES.html.sh (func_all_modules): Add getnline.
26064 2003-07-17 Bruno Haible <bruno@clisp.org>
26066 * m4/getnline.m4: New file.
26068 2003-07-17 Bruno Haible <bruno@clisp.org>
26070 * m4/Makefile.am.in: Remove file.
26071 * m4/Makefile.am: Remove file.
26072 * m4/Makefile.in: Remove file.
26074 2003-07-17 Bruno Haible <bruno@clisp.org>
26076 * lib/getnline.h: New file.
26077 * lib/getnline.c: New file.
26078 * lib/getndelim2.c: New file, extracted from getline.c.
26079 (getndelim2): Renamed from getdelim2, with added nmax argument.
26080 * lib/getline.c: Include getndelim2.c.
26081 (getdelim2): Moved out to getndelim2.c.
26082 (getline, getdelim): Update.
26084 2003-07-17 Bruno Haible <bruno@clisp.org>
26086 * lib/Makefile.am: Remove file.
26087 * lib/Makefile.in: Remove file.
26089 2003-07-17 Bruno Haible <bruno@clisp.org>
26091 * configure.in: Remove file.
26092 * Makefile.in: Remove file.
26094 2003-07-17 Bruno Haible <bruno@clisp.org>
26096 * MODULES.html.sh: Put the </BODY> right before </HTML>.
26098 2003-07-16 Karl Berry <karl@gnu.org>
26100 * config/srclist-update: was running fixlicense twice, which caused
26101 texinfo.tex to be nullified for some reason. Simplify,
26102 $gplsrc is no longer needed as far as I can see?
26104 2003-07-16 Jim Meyering <jim@meyering.net>
26106 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
26108 2003-07-15 Paul Eggert <eggert@twinsun.com>
26110 * config/srclist.txt: Get the following files from gettext-runtime/intl
26111 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
26112 ref-del.sin. From Bruno Haible.
26113 * config/srclist-update (fixfile): Change grep pattern again, since the
26114 previous fix didn't work (there was another trailing $). Use
26115 '[$]' to escape the $s.
26117 2003-07-15 Karl Berry <karl@gnu.org>
26119 * lib/vasnprintf.c: update from gettext.
26121 2003-07-15 Karl Berry <karl@gnu.org>
26123 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
26124 gets expanded when surrounded by '$'.
26126 2003-07-15 Jim Meyering <jim@meyering.net>
26128 * modules/save-cwd: Don't depend on error. From Derek Price.
26130 2003-07-15 Jim Meyering <jim@meyering.net>
26132 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
26134 2003-07-14 Simon Josefsson <jas@extundo.com>
26136 * modules/mempcpy: New file.
26137 * MODULES.html.sh (func_all_modules): Add mempcpy.
26139 2003-07-14 Simon Josefsson <jas@extundo.com>
26141 * m4/mempcpy.m4: New file.
26143 2003-07-14 Simon Josefsson <jas@extundo.com>
26145 * lib/mempcpy.h: New file.
26146 * lib/mempcpy.c: New file.
26148 2003-07-14 Paul Eggert <eggert@twinsun.com>
26150 * modules/getdate, modules/posixtm: Depend on mktime.
26152 2003-07-14 Paul Eggert <eggert@twinsun.com>
26154 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
26155 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
26156 unicodeio.c, unicodeio.h, unlocked-io.h:
26157 Switch from LGPL to GPL.
26159 2003-07-14 Paul Eggert <eggert@twinsun.com>
26161 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
26162 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
26163 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
26164 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
26165 vasprintf.c, vasprintf.h: Regenerate. These files are now being
26166 updated automatically by ../config/srclist-update. This changes
26167 their license from LPGL to GPL.
26169 2003-07-14 Paul Eggert <eggert@twinsun.com>
26171 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
26172 assumed to refer to the root of the most recent stable gettext version.
26173 * config/srclistvars.sh: Add defaults for eggert.
26174 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
26175 Match "This program" as well as "The program". This is needed
26178 2003-07-14 Jim Meyering <jim@meyering.net>
26180 Don't emit diagnostics. Let callers do that.
26181 * lib/save-cwd.c: Don't include "error.h".
26182 (save_cwd): Don't call error. Ensure that errno is valid
26183 when returning nonzero.
26185 * lib/save-cwd.h (restore_cwd): Update prototype.
26186 * lib/save-cwd.c (restore_cwd): Remove two parameters.
26187 Simplify. Don't call error upon failure. Let callers do that.
26188 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
26189 when auditing is enabled. But don't bother updating the #if.
26191 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
26193 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
26194 it breaks C++ compilation.
26195 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
26197 2003-07-10 Simon Josefsson <jas@extundo.com>
26199 * modules/strchrnul (Makefile.am): Add strchrnul.h.
26201 2003-07-10 Jim Meyering <jim@meyering.net>
26203 * m4/clock_time.m4: Remove trailing blank.
26204 * m4/intmax_t.m4: Likewise.
26206 2003-07-10 Jim Meyering <jim@meyering.net>
26208 * lib/vasnprintf.c: Remove trailing blanks.
26209 Make cpp indentation consistent.
26211 2003-07-09 Paul Eggert <eggert@twinsun.com>
26213 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
26214 posixver.c, strftime.c, strnlen.c, strverscmp.c:
26215 Switch from LGPL to GPL.
26217 2003-07-09 Paul Eggert <eggert@twinsun.com>
26219 * config/srclist.txt: Sort sublists. Add
26220 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
26221 that differ from gnulib for one reason or another; we'd like this list
26222 to be smaller but for now let's document what we have.
26224 2003-07-08 Paul Eggert <eggert@twinsun.com>
26226 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
26227 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
26228 and sweeter "eval x=$x".
26229 * config/srclist.txt: Get lib/argp* from glibc.
26231 2003-07-07 Paul Eggert <eggert@twinsun.com>
26233 * lib/mktime.c: Fix some boundary cases and remove need for floating
26236 Issue a compile-time diagnostic if time_t is floating point, or if
26237 two's complement arithmetic is not in effect, or if arithmetic
26238 right shift does not propagate the sign. These assumptions were
26239 all in the original code but they weren't checked.
26241 (TIME_T_MIDPOINT, verify): New macros.
26242 (__isleap): Remove; it has integer overflow problems.
26243 (leapyear): New function, without those problems.
26244 (ydhms_tm_diff): Remove; splitting into two parts.
26245 (ydhms_diff): New function, containing the arithmetic part of
26246 the old ydhms_tm_diff function. Issue a compile-time
26247 diagnostic if we are not using C99 integer division.
26248 Avoid casts when possible.
26249 (guess_time_tm): New function, containing the checking part of
26250 the old ydhms_tm_diff function. Return the new value, rather than
26251 the difference between it and the old. Accept a new argument T
26252 so that *T specifies the old value. Check for overflow in the result.
26254 (__mktime_internal): Use a time_t offset, not a long int offset.
26255 This undoes the 2003-06-04 change, which is no longer needed now
26256 that we have better overflow checking.
26257 (localtime_offset): Likewise.
26259 (__mktime_internal): Avoid harmful overflow on hosts where time_t
26260 and long are 64-bit but int is only 32-bit.
26261 (ydhms_diff): Use long int to store year1 and yday1.
26262 Issue a compile-time diagnostic if long int is not wide enough.
26264 (__mktime_internal): Use long int to store adjusted year and yday.
26265 Use plain C rather than preprocessor commands, if that doesn't
26267 Check for overflow (and try to repair) after each probe
26268 rather than checking only at the very end. This avoids some bugs
26269 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
26270 does not equal GMT offset at maximum time).
26271 Use integer to check for overflow rather than floating point; this
26272 is more portable to non-IEEE hosts, and is a tad faster.
26273 When we detect that we are oscillating between two values,
26274 don't check whether tm_isdst has the requested value, since
26275 we already know the answer. When tm_isdst has the wrong value,
26276 use a different heuristic to find the right one, based on the
26277 extreme values actually observed in practice in tz2003a,
26278 rather than the (overly optimistic) "previous 3 calendar quarters".
26280 (not_equal_tm, print_tm, check_result): Use "const T" rather than
26281 "T const" to accommodate glibc style.
26282 (check_result): Use less-confusing report format. "long" -> "long int.
26284 Don't loop if the iteration overflows time_t.
26285 Allow a negative step in the iteration.
26287 2003-07-06 Karl Berry <karl@gnu.org>
26289 * config/depcomp: update from automake.
26290 * config/config.sub: update from prep.
26292 2003-07-03 Karl Berry <karl@gnu.org>
26294 * config/config.guess: update from prep.
26296 2003-07-01 Paul Eggert <eggert@twinsun.com>
26298 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
26299 xreadlink.c now includes it unconditionally.
26301 2003-07-01 Paul Eggert <eggert@twinsun.com>
26303 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
26304 having it depend on HAVE_SYS_TYPES_H.
26306 2003-07-01 Bruno Haible <bruno@clisp.org>
26308 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
26309 <sys/types.h> should be sufficient.
26310 Reported by Paul Eggert.
26312 2003-06-26 Karl Berry <karl@gnu.org>
26314 * config/depcomp: update from automake.
26316 2003-06-26 Bruno Haible <bruno@clisp.org>
26318 * modules/human: Depend on module stdbool.
26320 2003-06-25 Bruno Haible <bruno@clisp.org>
26322 * modules/readlink: New file.
26323 * modules/xreadlink: Depend on it.
26324 * MODULES.html.sh (func_all_modules): Add readlink.
26326 2003-06-25 Bruno Haible <bruno@clisp.org>
26328 * m4/readlink.m4: New file.
26330 2003-06-25 Bruno Haible <bruno@clisp.org>
26332 * lib/readlink.c: New file.
26334 2003-06-22 Karl Berry <karl@gnu.org>
26336 * config/srclist.txt: update mkinstalldirs from automake.
26337 * config/mkinstalldirs: update.
26339 2003-06-22 Bruno Haible <bruno@clisp.org>
26341 Portability to mingw32.
26342 * m4/ssize_t.m4: New file, from GNU gettext.
26343 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
26344 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
26346 2003-06-22 Bruno Haible <bruno@clisp.org>
26348 * modules/safe-read: Add m4/ssize_t.m4.
26349 * modules/xreadlink: Add m4/ssize_t.m4.
26351 2003-06-20 Bruno Haible <bruno@clisp.org>
26353 Assume C89, so PARAMS isn't needed.
26354 * lib/unicodeio.h (PARAMS): Remove.
26355 * lib/unicodeio.c: Don't use PARAMS.
26357 2003-06-18 Karl Berry <karl@gnu.org>
26359 * config/config.{guess,sub}: update from prep.
26361 2003-06-18 Jim Meyering <jim@meyering.net>
26363 Merge changes from coreutils.
26364 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
26365 Remove explicit declarations of xmalloc and realloc.
26367 (read_utmp): Remove anachronistic cast of xmalloc.
26369 2003-06-17 Paul Eggert <eggert@twinsun.com>
26371 Assume C89, so PARAMS isn't needed.
26372 * lib/backupfile.h (PARAMS): Remove. All uses removed.
26373 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
26374 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
26375 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
26376 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
26377 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
26378 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
26379 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
26380 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
26381 lib/xstrtod.h, lib/xstrtol.h: Likewise.
26382 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
26383 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
26384 no longer needed. Anyway, config.h should always be included before any
26387 2003-06-11 Simon Josefsson <jas@extundo.com>
26389 * modules/sysexits: New file.
26390 * MODULES.html.sh (func_all_modules): Add sysexits.
26392 2003-06-11 Simon Josefsson <jas@extundo.com>
26394 * lib/sysexit_.h: New file.
26396 2003-06-11 Derek Price <derek@ximbiot.com>
26398 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
26401 2003-06-11 Bruno Haible <bruno@clisp.org>
26403 * m4/sysexits.m4: New file.
26405 2003-06-10 Simon Josefsson <jas@extundo.com>
26407 * lib/argp.h: New file, from glibc.
26408 * lib/argp-ba.c: New file, from glibc.
26409 * lib/argp-eexst.c: New file, from glibc.
26410 * lib/argp-fmtstream.c: New file, from glibc.
26411 * lib/argp-fmtstream.h: New file, from glibc.
26412 * lib/argp-fs-xinl.c: New file, from glibc.
26413 * lib/argp-help.c: New file, from glibc.
26414 * lib/argp-namefrob.h: New file, from glibc.
26415 * lib/argp-parse.c: New file, from glibc.
26416 * lib/argp-pv.c: New file, from glibc.
26417 * lib/argp-pvh.c: New file, from glibc.
26418 * lib/argp-xinl.c: New file, from glibc.
26420 2003-06-10 Simon Josefsson <jas@extundo.com>
26422 * modules/strchrnul: New file.
26424 2003-06-10 Simon Josefsson <jas@extundo.com>
26426 * modules/argp: New file.
26428 2003-06-10 Simon Josefsson <jas@extundo.com>
26430 * m4/strchrnul.m4: New file.
26432 2003-06-10 Simon Josefsson <jas@extundo.com>
26434 * lib/strchrnul.h: New file.
26435 * lib/strchrnul.c: New file.
26437 2003-06-10 Bruno Haible <bruno@clisp.org>
26439 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
26441 2003-06-07 Karl Berry <karl@gnu.org>
26443 * config/config.{guess,sub}: update from prep.
26445 2003-06-07 Jim Meyering <jim@meyering.net>
26447 * modules/strtod: Use $(...) notation, not @...@ for
26448 AC_REPLACE'd variables.
26449 * modules/localcharset: Likewise.
26451 2003-06-07 Jim Meyering <jim@meyering.net>
26453 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
26454 in place of my name in the copyright comment.
26455 Remove definition and uses of __P.
26458 * lib/stat.c: Don't declare xmalloc explicitly.
26459 Instead, include "xalloc.h".
26460 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
26461 xrealloc, and xcalloc return values.
26462 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
26464 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
26466 2003-06-07 Bruno Haible <bruno@clisp.org>
26468 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
26469 avoid AC_CONFIG_LINKS.
26470 * modules/fnmatch (Makefile.am): Use explicit creation rule for
26471 fnmatch.h, to avoid AC_CONFIG_LINKS.
26472 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
26474 2003-06-07 Bruno Haible <bruno@clisp.org>
26476 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
26477 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
26478 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
26480 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
26481 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
26484 2003-06-06 Jim Meyering <jim@meyering.net>
26486 Merge from coreutils.
26487 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
26488 Consolidate declarations and initializations of *_base* locals.
26490 Merge from coreutils.
26491 This avoids a core dump on systems without GNU putenv,
26492 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
26493 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
26494 (unsetenv): New static function, from GNU libc.
26495 (rpl_putenv): Use it.
26497 * lib/modechange.c: Remove trailing blanks.
26499 Merge from coreutils.
26500 * lib/fsusage.c: Remove declaration of statfs.
26501 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
26503 * lib/posixtm.c: Include <stdbool.h> unconditionally.
26505 2003-06-06 Jim Meyering <jim@meyering.net>
26507 * lib/stdbool_.h: Renamed from stdbool.h.in.
26509 2003-06-06 Jim Meyering <jim@meyering.net>
26510 Bruno Haible <bruno@clisp.org>
26512 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
26513 Adjust Makefile.am snippet not to redirect directly to target.
26514 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
26516 2003-06-05 Paul Eggert <eggert@twinsun.com>
26518 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
26519 mismatch, look in future quarters as well as past. This fixes a
26520 bug when processing fall-backwards gaps immediately after a long
26521 period of daylight-saving time.
26523 * lib/mktime.c: Assume freestanding C89 or better.
26524 (HAVE_LIMITS_H): Remove. Assume it's 1.
26525 (__P): Remove; not used.
26526 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
26527 (mktime, not_equal_tm, print_tm, check_result,
26528 main): Use prototypes. Use const * where appropriate.
26529 (main): Fix typo in testing code that uncovered by above changes.
26530 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
26532 2003-06-04 Paul Eggert <eggert@twinsun.com>
26534 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
26535 locale.h, localeconv. This merges changes from coreutils.
26537 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
26538 It can be removed after the next Autoconf is released.
26539 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
26542 2003-06-04 Paul Eggert <eggert@twinsun.com>
26544 * lib/mktime.c: Fix Debian bug 177940
26545 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
26546 (localtime_offset): Now long int, not time_t, because we want it
26547 to be guaranteed to be signed. All uses changed.
26548 (__mktime_internal): If overflow would occur when adding offset,
26551 Merge 'human' changes from coreutils. Rewrite to support
26552 locale-specific notations like thousands separators.
26553 * lib/human.c: Simplify authorship notice.
26554 Include human.h immediately after config.h.
26555 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
26556 <limits.h>: Do not include, since human.h does.
26557 (SIZE_MAX, UINTMAX_MAX): New macros.
26558 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
26559 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
26560 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
26561 (power_letter): Renamed from suffixes.
26562 (generate_suffix_backwards): Remove.
26563 (adjust_value): Now takes int style (because of human.h changes)
26564 and long double value (for greater precision on some platforms).
26565 (group_number): New function.
26566 (human_readable): Use it. Use integer options, not enum.
26567 Put the options before the sizes in the arg list.
26568 Support all the new options.
26569 The old human_readable function has been removed;
26570 use inttostr.h instead.
26571 (human_readable, default_block_size, humblock):
26572 Use uintmax_t, not int, for block sizes.
26573 (human_readable_inexact, block_size_types): Remove.
26574 (block_size_opts): New constant.
26575 (human_options): Renamed from human_block_size, with new signature
26576 that allows block sizes up to UINTMAX_MAX. All callers changed.
26577 * lib/human.h: Add copyright and authorship notice.
26578 Include <limits.h> and <stdbool.h> unconditionally.
26579 (PARAMS): Remove. All uses removed.
26580 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
26581 (enum human_inexact_style): Remove tag; now a nameless enum.
26582 (human_floor, human_ceiling, human_round_to_even): Now have
26583 values 2, 0, 1 rather than -1, 1, 0.
26584 (human_group_digits, human_suppress_point_zero, human_autoscale,
26585 human_base_1024, human_SI, human_B): New constants.
26586 (human_readable_inexact, human_block_size): Remove.
26587 (human_readable): Size args are now uintmax_t, not int.
26588 (human_options): New decl.
26590 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
26591 unnecessary now that we assume C89 or better. This change
26592 imported from coreutils.
26594 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
26595 arbitrarily. This is the same patch as 2003-05-28, but it got lost
26596 in the 2003-05-30 sync from glibc.
26598 .h files should stand alone, but we shouldn't include <sys/types.h>
26599 if we can get away with just <stddef.h>.
26601 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
26602 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
26603 rather than <sys/types.h>, as we merely need size_t.
26604 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
26606 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
26607 Include <stdio.h>, to get FILE.
26608 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
26609 memcasecmp.h has included <stddef.h> and all we need is size_t.
26610 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
26611 our interface, instead of including <sys/types.h>
26613 2003-06-04 Paul Eggert <eggert@twinsun.com>
26615 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
26616 now, as glibc mktime is buggy on non-glibc systems.
26618 2003-06-03 Karl Berry <karl@gnu.org>
26620 * config/config.sub: update from prep.
26622 2003-06-02 Paul Eggert <eggert@twinsun.com>
26625 Fix some minor time-related bugs with POSIX time arguments.
26626 Some valid time stamps were being rejected (notably -1, and
26627 time stamps before 1900 on 64-bit hosts). And some invalid
26628 time stamps were being accepted, e.g. September 31.
26630 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
26631 that we can return (time_t) -1 successfully.
26632 * lib/posixtm.c: Likewise.
26633 [HAVE_STDBOOL_H]: Include <stdbool.h>.
26634 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
26635 (t): Remove static var.
26636 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
26637 of static var. All uses changed.
26638 (year): Do not reject years before 1900; they can occur with
26640 (posix_time_parse): Do not check for out-of-range components;
26641 that is now the caller's responsibility, since our checks were
26642 only approximations.
26643 (posixtime): Use mktime to check for out-of-range components,
26644 since it knows them exactly.
26645 If mktime returns (time_t) -1, check whether an error actually occurred
26646 by invoking localtime on -1.
26647 (main) [TEST_POSIXTIME]: Check for input data errors, and report
26648 posixtime failures better.
26649 Improve the test data (in comments only).
26651 2003-06-02 Karl Berry <karl@gnu.org>
26653 * config/mkinstalldirs (version): new variable.
26654 (--version): new option.
26655 (usage): improve message.
26657 2003-05-30 Karl Berry <karl@gnu.org>
26659 * lib/mktime.c: update from libc.
26661 2003-05-30 Bruno Haible <bruno@clisp.org>
26663 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
26664 * config/config.rpath: Upgrade to gettext-0.12.1.
26666 2003-05-30 Bruno Haible <bruno@clisp.org>
26668 * m4/gettext.m4: Upgrade to gettext-0.12.1.
26669 * m4/nls.m4: New file, from gettext-0.12.1.
26670 * m4/po.m4: New file, from gettext-0.12.1.
26671 * m4/progtest.m4: Upgrade to gettext-0.12.1.
26673 2003-05-30 Bruno Haible <bruno@clisp.org>
26675 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
26676 * lib/localcharset.h: Likewise.
26677 * lib/localcharset.c: Likewise.
26679 2003-05-29 Karl Berry <karl@gnu.org>
26681 * config/config.rpath: update from gettext.
26683 2003-05-28 Paul Eggert <eggert@twinsun.com>
26685 Assume the headers required for C89 freestanding compilers.
26686 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
26687 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
26688 * m4/human.m4 (gl_HUMAN): Likewise.
26689 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
26690 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
26691 * m4/userspec.m4 (gl_USERSPEC): Likewise.
26692 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
26693 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
26694 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
26696 2003-05-28 Paul Eggert <eggert@twinsun.com>
26698 Assume the headers required for C89 freestanding compilers.
26699 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
26700 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
26701 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
26702 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
26703 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
26704 define, since <limits.h> is guaranteed to do that.
26705 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
26706 * lib/exclude.c: Include <stdbool.h> unconditionally.
26707 * lib/tempname.c: Include <stddef.h> unconditionally.
26708 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
26709 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
26710 <stddef.h> does that.
26711 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
26712 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
26713 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
26715 * lib/xstrtol.c: Likewise.
26716 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
26717 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
26719 * lib/addext.c (addext): Use assignment rather than cast, to avoid
26720 warnings on some platforms.
26722 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
26725 2003-05-26 Jim Meyering <jim@meyering.net>
26727 Merge in a change from coreutils:
26728 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
26729 that is guaranteed to be `no'. Use `no_such_member' to indicate
26730 that condition, rather than `-1' which is slightly misleading.
26731 Change the name of the cache variable to have the gl_ prefix.
26732 Prompted by a patch from Richard Dawe for DJGPP.
26734 2003-05-24 Karl Berry <karl@gnu.org>
26736 * config/config.guess: update from prep.
26738 2003-05-22 Karl Berry <karl@gnu.org>
26740 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
26742 2003-05-20 Karl Berry <karl@gnu.org>
26744 * config/config.guess: update from prep.
26746 2003-05-18 Karl Berry <karl@gnu.org>
26748 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
26749 might actually be set by the user.
26751 * config/depcomp, install-sh, mdate-sh: update from automake.
26753 2003-05-17 Bruno Haible <bruno@clisp.org>
26755 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
26756 invalid expansion for AC_EGREP_CPP.
26757 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
26758 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
26759 Suggested by Akim Demaille <akim@epita.fr> in
26760 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
26762 2003-05-12 Jim Meyering <jim@meyering.net>
26764 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
26765 the space-padded-by-default conversion specifiers, %e, %k, %l.
26767 2003-05-12 Bruno Haible <bruno@clisp.org>
26769 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
26770 the string is longer than 4 KB.
26772 2003-05-11 Karl Berry <karl@gnu.org>
26774 * config/config.{guess,sub}: update from prep.
26776 2003-05-09 Bruno Haible <bruno@clisp.org>
26778 * modules/error: Add m4/strerror_r.m4 to file list.
26780 2003-05-03 Bruno Haible <bruno@clisp.org>
26782 Upgrade to Unicode-4.0.
26783 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
26784 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
26785 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
26786 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
26787 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
26788 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
26789 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
26790 Change width of U+E0100..U+E01EF from 1 to 0.
26792 2003-04-25 Jim Meyering <jim@meyering.net>
26794 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
26795 of type size_t, not int.
26797 2003-04-25 Bruno Haible <bruno@clisp.org>
26799 * lib/copy-file.c: Include <stddef.h>, for size_t.
26801 2003-04-21 Paul Eggert <eggert@twinsun.com>
26803 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
26804 code which expansion is under static control. Patch imported from
26805 Akim Demaille's patch to Bison; see
26806 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
26808 2003-04-14 Bruno Haible <bruno@clisp.org>
26810 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
26812 2003-04-11 Jim Meyering <jim@meyering.net>
26814 Merge changes from Coreutils.
26816 2003-03-22 Jim Meyering <jim@meyering.net>
26818 * lib/strftime.c (widen): Cast alloca return value to proper type.
26820 2003-01-19 Ulrich Drepper <drepper@redhat.com>
26823 * lib/strftime.c (my_strftime): Handle very large width
26824 specifications for numeric values correctly. Improve checks for
26827 2003-01-19 Jim Meyering <jim@meyering.net>
26829 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
26831 (nl_get_alt_digit) [! defined my_strftime]: Define.
26832 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
26833 _nl_get_alt_digit and _nl_get_walt_digit.
26835 * lib/strftime.c (my_strftime): Merge in locale-related changes from
26836 libc. These changes have no effect outside of _LIBC.
26838 2003-04-10 Bruno Haible <bruno@clisp.org>
26840 * modules/findprog: New file.
26841 * MODULES.html.sh (func_all_modules): Add it.
26843 2003-04-10 Bruno Haible <bruno@clisp.org>
26845 * m4/findprog.m4: New file.
26846 * m4/eaccess.m4: New file.
26848 2003-04-10 Bruno Haible <bruno@clisp.org>
26850 * lib/findprog.h: New file, from GNU gettext.
26851 * lib/findprog.c: New file, from GNU gettext.
26853 2003-04-05 Jim Meyering <jim@meyering.net>
26855 Merge changes from Coreutils.
26857 * lib/exclude.h (PARAMS): Remove definition and uses.
26858 * lib/exclude.c: Remove uses of `PARAMS'.
26860 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
26861 Add test-cases for DOS filenames. Declare program_name.
26862 (main): Set up program_name. Patch by Rich Dawe.
26864 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
26866 Use mntctl's return value to drive the entry-processing loop, since
26867 we can't rely on the value of the vmt_length member in the last
26868 entry. On some systems doing so could result in exhausting
26869 virtual memory. Based in part on a patch from Mike Jetzer.
26871 2003-04-04 Bruno Haible <bruno@clisp.org>
26873 * modules/linebreak: New file.
26874 * MODULES.html.sh (func_all_modules): Add it.
26876 2003-04-04 Bruno Haible <bruno@clisp.org>
26878 * m4/linebreak.m4: New file.
26880 2003-04-04 Bruno Haible <bruno@clisp.org>
26882 * lib/linebreak.h: New file, from GNU gettext.
26883 * lib/linebreak.c: New file, from GNU gettext with slight
26885 * lib/lbrkprop.h: New file, from GNU gettext.
26887 2003-04-03 Bruno Haible <bruno@clisp.org>
26889 * modules/utf8-ucs4: New file.
26890 * modules/utf16-ucs4: New file.
26891 * modules/ucs4-utf8: New file.
26892 * modules/ucs4-utf16: New file.
26893 * MODULES.html.sh (func_all_modules): Add them.
26895 2003-04-03 Bruno Haible <bruno@clisp.org>
26897 * m4/utf-ucs4.m4: New file.
26898 * m4/ucs4-utf.m4: New file.
26900 2003-04-03 Bruno Haible <bruno@clisp.org>
26902 * lib/utf8-ucs4.h: New file, from GNU gettext.
26903 * lib/utf16-ucs4.h: New file, from GNU gettext.
26904 * lib/ucs4-utf8.h: New file, from GNU gettext.
26905 * lib/ucs4-utf16.h: New file, from GNU gettext.
26907 2003-04-02 Bruno Haible <bruno@clisp.org>
26909 * modules/binary-io: New file.
26910 * MODULES.html.sh (func_all_modules): Add it.
26912 2003-04-02 Bruno Haible <bruno@clisp.org>
26914 * lib/binary-io.h: New file, from GNU gettext.
26916 2003-04-01 Bruno Haible <bruno@clisp.org>
26918 * modules/pathname: New file.
26919 * MODULES.html.sh (func_all_modules): Add it.
26921 2003-04-01 Bruno Haible <bruno@clisp.org>
26923 * lib/pathname.h: New file, from GNU gettext.
26924 * lib/concatpath.c: New file, from GNU gettext.
26926 2003-03-30 Bruno Haible <bruno@clisp.org>
26928 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
26930 2003-03-30 Bruno Haible <bruno@clisp.org>
26932 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
26933 function chown() doesn't exist.
26935 2003-03-28 Bruno Haible <bruno@clisp.org>
26937 * modules/copy-file: New file.
26938 * MODULES.html.sh (func_all_modules): Add it.
26940 2003-03-28 Bruno Haible <bruno@clisp.org>
26942 * m4/copy-file.m4: New file.
26944 2003-03-28 Bruno Haible <bruno@clisp.org>
26946 * lib/copy-file.h: New file, from GNU gettext.
26947 * lib/copy-file.c: New file, from GNU gettext.
26949 2003-03-18 Jim Meyering <jim@meyering.net>
26951 * lib/quote.c (quote_n): Fix typo in comment.
26953 2003-03-18 Bruno Haible <bruno@clisp.org>
26955 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
26957 * m4/onceonly_2_57.m4: Likewise.
26959 2003-03-17 Bruno Haible <bruno@clisp.org>
26961 * m4/onceonly.m4: Require autoconf 2.54 or newer.
26962 (m4_quote): Remove macro.
26963 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
26965 2003-03-14 Jim Meyering <jim@meyering.net>
26967 Merge changes from Coreutils.
26968 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
26969 to be const, in order to avoid warnings.
26970 (obstack_room): Likewise.
26971 (obstack_empty_p): Likewise.
26973 2003-03-14 Bruno Haible <bruno@clisp.org>
26975 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
26976 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
26978 2003-03-13 Paul Eggert <eggert@twinsun.com>
26980 Merge changes from Bison.
26981 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
26982 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
26983 when compiling Bison 1.875's `bitset bset = obstack_alloc
26984 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
26985 * lib/hash.c: Include <stdbool.h> unconditionally.
26987 2003-03-13 Paul Eggert <eggert@twinsun.com>
26989 * m4/onceonly.m4 (m4_quote): New macro.
26990 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
26991 Quote AC_FOREACH variable-expansions properly.
26993 2003-03-13 Paul Eggert <eggert@twinsun.com>
26995 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
26997 2003-03-09 Paul Eggert <eggert@twinsun.com>
26999 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
27000 Reported by Bruce Becker; see:
27001 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
27003 2003-03-03 Paul Eggert <eggert@twinsun.com>
27004 Bruno Haible <bruno@clisp.org>
27006 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
27007 Reported by John Hughes, see
27008 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
27010 2003-02-20 Bruno Haible <bruno@clisp.org>
27012 * MODULES.html.sh (func_all_modules): Add poll.
27014 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
27016 * modules/poll: New file.
27018 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
27020 * lib/poll_.h: New file.
27021 * lib/poll.c: New file.
27023 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
27025 * m4/poll.m4: New file.
27027 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
27029 * modules/mathl: New file.
27031 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
27033 * lib/mathl.h: New file.
27034 * lib/acosl.c: New file.
27035 * lib/asinl.c: New file.
27036 * lib/atanl.c: New file.
27037 * lib/ceill.c: New file.
27038 * lib/cosl.c: New file.
27039 * lib/expl.c: New file.
27040 * lib/floorl.c: New file.
27041 * lib/frexpl.c: New file.
27042 * lib/ldexpl.c: New file.
27043 * lib/logl.c: New file.
27044 * lib/sincosl.c: New file.
27045 * lib/sinl.c: New file.
27046 * lib/sqrtl.c: New file.
27047 * lib/tanl.c: New file.
27048 * lib/trigl.c: New file.
27049 * lib/trigl.h: New file.
27051 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
27053 * m4/mathl.m4: New file.
27055 2003-02-18 Bruno Haible <bruno@clisp.org>
27057 * MODULES.html.sh (func_all_modules): Add mathl.
27059 2003-02-17 Bruno Haible <bruno@clisp.org>
27061 * modules/mkdtemp: New module.
27062 * MODULES.html.sh (func_all_modules): Add it.
27064 2003-02-17 Bruno Haible <bruno@clisp.org>
27066 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
27068 2003-02-17 Bruno Haible <bruno@clisp.org>
27070 * lib/mkdtemp.h: New file, from GNU gettext.
27071 * lib/mkdtemp.c: New file, from GNU gettext.
27073 2003-02-02 Jim Meyering <jim@meyering.net>
27075 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
27078 2003-01-31 Bruno Haible <bruno@clisp.org>
27080 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
27082 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
27084 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
27086 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
27089 2003-01-31 Bruno Haible <bruno@clisp.org>
27091 * lib/rename.c: #undef rename before defining rpl_rename.
27092 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
27094 2003-01-30 Bruno Haible <bruno@clisp.org>
27096 * modules/vasnprintf, modules/vasprintf: New modules.
27097 * MODULES.html.sh (func_all_modules): Add them.
27099 2003-01-30 Bruno Haible <bruno@clisp.org>
27101 * m4/signed.m4: New file, from GNU gettext.
27102 * m4/longdouble.m4: New file, from GNU gettext.
27103 * m4/wchar_t.m4: New file, from GNU gettext.
27104 * m4/wint_t.m4: New file, from GNU gettext.
27105 * m4/vasnprintf.m4: New file.
27106 * m4/vasprintf.m4: New file.
27108 2003-01-30 Bruno Haible <bruno@clisp.org>
27110 * lib/printf-args.h: New file, from GNU gettext.
27111 * lib/printf-args.c: New file, from GNU gettext.
27112 * lib/printf-parse.h: New file, from GNU gettext.
27113 * lib/printf-parse.c: New file, from GNU gettext.
27114 * lib/vasnprintf.h: New file, from GNU gettext.
27115 * lib/vasnprintf.c: New file, from GNU gettext.
27116 * lib/asnprintf.c: New file, from GNU gettext.
27117 * lib/vasprintf.h: New file, from GNU gettext with modifications.
27118 * lib/vasprintf.c: New file, from GNU gettext.
27119 * lib/asprintf.c: New file, from GNU gettext.
27121 2003-01-29 Bruno Haible <bruno@clisp.org>
27123 * modules/stpncpy: New module.
27124 * MODULES.html.sh (func_all_modules): Add it.
27126 2003-01-29 Bruno Haible <bruno@clisp.org>
27128 * m4/stpncpy.m4: New file.
27130 2003-01-29 Bruno Haible <bruno@clisp.org>
27132 * lib/stpncpy.h: New file, from GNU gettext with modifications.
27133 * lib/stpncpy.c: New file, from GNU gettext with modifications.
27135 2003-01-28 Bruno Haible <bruno@clisp.org>
27137 * modules/c-ctype: New module.
27138 * MODULES.html.sh (func_all_modules): Add it.
27140 2003-01-28 Bruno Haible <bruno@clisp.org>
27142 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
27144 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
27147 2003-01-27 Bruno Haible <bruno@clisp.org>
27149 * modules/xsetenv: New module.
27150 * MODULES.html.sh (func_all_modules): Add it.
27152 2003-01-27 Bruno Haible <bruno@clisp.org>
27154 * lib/xsetenv.h: New file, from GNU gettext.
27155 * lib/xsetenv.c: New file, from GNU gettext.
27157 2003-01-23 Jim Meyering <jim@meyering.net>
27159 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
27160 from working on systems without dirfd (at least Irix and OSF1/Tru64).
27162 2003-01-23 Bruno Haible <bruno@clisp.org>
27164 * modules/minmax: New module.
27165 * MODULES.html.sh (func_all_modules): Add it.
27167 2003-01-23 Bruno Haible <bruno@clisp.org>
27169 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
27172 2003-01-22 Bruno Haible <bruno@clisp.org>
27174 * modules/exit: New module.
27175 * MODULES.html.sh (func_all_modules): Add it.
27177 2003-01-22 Bruno Haible <bruno@clisp.org>
27179 * lib/exit.h: New file, from GNU gettext.
27181 2003-01-19 Bruno Haible <bruno@clisp.org>
27183 * gnulib-tool: Recognize option --extract-maintainer.
27184 (func_get_maintainer): New function.
27185 * modules/*: Add Maintainer entry.
27187 2003-01-16 Jim Meyering <jim@meyering.net>
27189 * m4/regex.m4: The `regex' struct is both input and output.
27190 Initialize it before each use. Patch by Tim Waugh.
27192 2003-01-16 Bruno Haible <bruno@clisp.org>
27194 * MODULES.html.sh: Add a table of contents. Add the module name as
27195 leftmost column. Add hyperlinks.
27197 2003-01-15 Bruno Haible <bruno@clisp.org>
27199 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
27201 2003-01-15 Bruno Haible <bruno@clisp.org>
27203 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
27204 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
27207 2003-01-15 Bruno Haible <bruno@clisp.org>
27209 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
27211 2003-01-15 Bruno Haible <bruno@clisp.org>
27213 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
27214 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
27216 2003-01-14 Jim Meyering <jim@meyering.net>
27218 * lib/same.c (same_name): Tweak a comment.
27220 2003-01-14 Bruno Haible <bruno@clisp.org>
27222 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
27223 when a string comparison is sufficient.
27225 2003-01-14 Bruno Haible <bruno@clisp.org>
27227 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
27230 2003-01-14 Bruno Haible <bruno@clisp.org>
27232 * lib/hash-pjw.c: Add comment about low quality of this function.
27234 2003-01-13 Bruno Haible <bruno@clisp.org>
27236 * modules/stpcpy: Distribute lib/stpcpy.h.
27237 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
27239 2003-01-13 Bruno Haible <bruno@clisp.org>
27241 * modules/*: Add a description.
27242 * modules/strpbrk: Fix Makefile.am snippet.
27243 * modules/strtoimax: Fix dependencies.
27244 * modules/strtoumax: Likewise.
27246 2003-01-13 Bruno Haible <bruno@clisp.org>
27248 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
27249 * modules/alloca (Makefile.am): All object files depend on alloca.h.
27250 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
27252 2003-01-13 Bruno Haible <bruno@clisp.org>
27254 * gnulib-tool (func_create_testdir): Store config/* files in the main
27256 * config.rpath: Move to ...
27257 * config/config.rpath: ... here.
27258 * modules/gettext: Contains config/config.rpath, not config.rpath.
27259 * modules/iconv: Likewise.
27261 2003-01-12 Paul Eggert <eggert@twinsun.com>
27263 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
27264 to avoid collisions with libcurses and libreadline.
27266 * m4/getstr.m4: Remove.
27267 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
27269 2003-01-12 Paul Eggert <eggert@twinsun.com>
27271 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
27272 to avoid collisions with libcurses and libreadline.
27274 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
27275 * lib/getstr.h, getstr.c: Remove.
27276 * lib/getline.c: Include "getline.h", to check interface.
27277 Move body of old getstr.c here: this defines MIN_CHUNK and
27278 declares getdelim2, which is renamed from getstr.
27279 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
27281 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
27283 * lib/linebuffer.h: Likewise.
27284 (readline): Remove backward-compatibility macro.
27286 2003-01-12 Paul Eggert <eggert@twinsun.com>
27288 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
27289 to avoid collisions with libcurses and libreadline.
27291 * MODULES.html.sh: Remove getstr.
27292 * modules/getline: Depend on unlocked-io, not getstr.
27294 2003-01-12 Jim Meyering <jim@meyering.net>
27296 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
27298 2003-01-10 Bruno Haible <bruno@clisp.org>
27300 * modules/alloca: Change Makefile.am requirements. Simplify Include
27301 requirements. Add lib/alloca_.h to file list.
27303 2003-01-10 Bruno Haible <bruno@clisp.org>
27305 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
27307 2003-01-10 Bruno Haible <bruno@clisp.org>
27309 * lib/alloca_.h: New file.
27310 * lib/getdate.y: Unconditionally include alloca.h.
27311 * lib/makepath.c: Likewise.
27312 * lib/setenv.c: Likewise.
27313 * lib/userspec.c: Likewise.
27315 2003-01-09 Karl Berry <karl@gnu.org>
27317 * MODULES.html.sh: include `dirname $0` in PATH, to find
27320 2003-01-09 Bruno Haible <bruno@clisp.org>
27322 * modules/stdbool: Change configure.ac, Makefile.am requirements.
27323 Simplify Include requirements. Add lib/stdbool.h.in to file list.
27325 2003-01-09 Bruno Haible <bruno@clisp.org>
27327 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
27329 2003-01-09 Bruno Haible <bruno@clisp.org>
27331 * lib/stdbool.h.in: New file.
27333 2003-01-09 Bruno Haible <bruno@clisp.org>
27335 * gnulib-tool (func_all_modules): Ignore files ending in ~.
27336 * MODULES.html.sh: Likewise.
27338 2003-01-08 Jim Meyering <jim@meyering.net>
27340 * lib/full-write.c: Undefine and define-away `const' after inclusion
27341 of errno.h, not before. Suggestion from Bruno Haible.
27343 2003-01-08 Bruno Haible <bruno@clisp.org>
27345 * modules/full-read: Depend on full-write.
27347 2003-01-08 Bruno Haible <bruno@clisp.org>
27349 * lib/safe-read.c: Include specification header first, to ensure its
27351 * lib/full-write.c: Likewise.
27353 2003-01-07 Jim Meyering <jim@meyering.net>
27355 * lib/full-write.c: Rework so that it may serve to define full_read,
27357 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
27359 2003-01-07 Bruno Haible <bruno@clisp.org>
27361 * lib/strtoimax.c: Include <stdint.h> as an alternative to
27363 * lib/xstrtol.h: Likewise.
27364 * lib/xstrtoimax.c: Likewise.
27365 * lib/xstrtoumax.c: Likewise.
27366 * lib/human.h: Likewise.
27368 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
27369 on systems that have <inttypes.h> but not <stdint.h>.
27371 2003-01-07 Bruno Haible <bruno@clisp.org>
27373 * MODULES.html.sh: Add copyright notice.
27374 (missed_files): Omit CVS directory entries.
27375 (func_module): Make it work with sed-3.02.
27376 * MODULES.txt: Remove file.
27378 2003-01-06 Jim Meyering <jim@meyering.net>
27380 * lib/version-etc.c: Update year in translatable copyright string.
27382 2003-01-03 Karl Berry <karl@gnu.org>
27384 * config/config.{guess,sub}: update from prep.
27386 2003-01-02 Karl Berry <karl@gnu.org>
27388 * doc/COPYING.DOC: belatedly updated to 1.2.
27390 2003-01-01 Karl Berry <karl@gnu.org>
27392 * gnulib-tool (func_verify_module): report module name $module in
27393 error message, not $1.
27394 * gnulib-tool (create-testdir): don't complain if destdir couldn't
27395 be created, only if it doesn't exist.
27396 * gnulib-tool (last_checkin_date): don't expand the $Date here.
27398 2002-12-31 Paul Eggert <eggert@twinsun.com>
27400 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
27402 2002-12-31 Paul Eggert <eggert@twinsun.com>
27404 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
27405 memcmp if strcoll doesn't work.
27407 2002-12-31 Bruno Haible <bruno@clisp.org>
27409 * lib/utime.c (utime_null): No need to call ftruncate if the file was
27412 2002-12-31 Bruno Haible <bruno@clisp.org>
27414 * lib/memcoll.c (STRCOLL): New macro.
27417 2002-12-31 Bruno Haible <bruno@clisp.org>
27419 * lib/localcharset.h: New file.
27420 * lib/localcharset.c: Include it.
27421 * lib/unicodeio.c: Likewise.
27423 2002-12-31 Bruno Haible <bruno@clisp.org>
27425 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
27426 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
27428 2002-12-31 Bruno Haible <bruno@clisp.org>
27430 * lib/getline.h: Include <stddef.h>, for size_t.
27432 * lib/unicodeio.h: Include <stddef.h>, for size_t.
27433 * lib/unicodeio.c: Don't include <stddef.h>.
27435 2002-12-31 Bruno Haible <bruno@clisp.org>
27437 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
27440 2002-12-24 Karl Berry <karl@gnu.org>
27442 * config/config.guess: update from prep.
27444 2002-12-24 Bruno Haible <bruno@clisp.org>
27446 General infrasructure.
27447 * m4/README: Rewritten.
27448 * m4/onceonly.m4: New file.
27449 * m4/onceonly_2_57.m4: New file.
27452 * m4/atexit.m4: New file.
27455 * m4/strtod.m4: New file.
27458 * m4/strtol.m4: New file.
27461 * m4/strtoul.m4: New file.
27464 * m4/memchr.m4: New file.
27467 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
27468 (jm_FUNC_MEMCMP): Invoke it.
27471 * m4/memcpy.m4: New file.
27474 * m4/memmove.m4: New file.
27477 * m4/memset.m4: New file.
27480 * m4/strcspn.m4: New file.
27483 * m4/strpbrk.m4: New file.
27486 * m4/strstr.m4: New file.
27489 * m4/strerror.m4: New file.
27492 * m4/mktime.m4: Renamed from jm-mktime.m4.
27493 (gl_PREREQ_MKTIME): New macro.
27494 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
27497 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
27498 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
27499 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
27502 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
27503 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
27504 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
27507 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
27508 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
27509 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
27511 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
27514 * m4/xalloc.m4: New file.
27517 * m4/alloca.m4: New file.
27520 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
27521 (jm_FUNC_PUTENV): Invoke it.
27524 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
27525 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
27526 when invoked twice.
27527 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
27531 * m4/memrchr.m4: New file.
27534 * m4/stpcpy.m4: New file.
27537 * m4/strcase.m4: New file.
27540 * m4/strdup.m4: New file.
27543 * m4/strnlen.m4: New file.
27546 * m4/strndup.m4: New file.
27549 * m4/xstrtod.m4: New file.
27552 * m4/xstrtol.m4: New file.
27555 * m4/getdate.m4: New file.
27557 Module unlocked-io.
27558 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
27559 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
27560 * m4/jm-glibc-io.m4n: Remove file.
27562 Module long-options.
27563 * m4/long-options.m4: New file.
27566 * m4/md5.m4: New file.
27569 * m4/sha.m4: New file.
27572 * m4/getstr.m4: New file.
27575 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
27576 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
27577 <sys/types.h>, for size_t. Use the function name gnu_getline, not
27578 simply getline. Infoke gl_PREREQ_GETLINE.
27581 * m4/obstack.m4: New file.
27584 * m4/hash.m4: New file.
27587 * m4/readtokens.m4: New file.
27590 * m4/strverscmp.m4: New file.
27593 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
27597 * m4/strtoll.m4: New file.
27600 * m4/strtoull.m4: New file.
27603 * m4/strtoimax.m4: New file.
27606 * m4/strtoumax.m4: New file.
27609 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
27610 jm_AC_PREREQ_XSTRTOIMAX.
27611 Moved the strtol prerequisites to strtol.m4.
27612 Moved the strtoll prerequisites to strtoll.m4.
27613 Moved the strtoimax prerequisites to strtoimax.m4.
27616 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
27617 jm_AC_PREREQ_XSTRTOUMAX.
27618 Moved the strtoul prerequisites to strtoul.m4.
27619 Moved the strtoull prerequisites to strtoull.m4.
27620 Moved the strtoumax prerequisites to strtoumax.m4.
27623 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
27624 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
27627 * m4/dup2.m4: New file.
27630 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
27631 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
27634 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
27635 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
27637 Module gettimeofday.
27638 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
27639 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
27640 gl_PREREQ_GETTIMEOFDAY.
27643 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
27644 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
27647 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
27648 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
27649 jm_AC_TYPE_UINTMAX_T.
27650 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
27653 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
27654 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
27657 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
27658 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
27661 * m4/timespec.m4 (gl_TIMESPEC): New macro.
27662 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
27663 * m4/st_mtim.m4: Indentation.
27666 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
27667 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
27668 gl_PREREQ_NANOSLEEP.
27671 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
27672 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
27673 (gl_REGEX): New macro.
27676 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
27677 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
27680 * m4/rmdir.m4: New file.
27683 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
27684 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
27685 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
27688 * m4/dirname.m4: New file.
27691 * m4/getopt.m4: New file.
27693 Module unistd-safer.
27694 * m4/unistd-safer.m4: New file.
27697 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
27699 (gl_PREREQ_FNMATCH_EXTRA): New macro.
27700 (gl_FUNC_FNMATCH_POSIX): New macro.
27701 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
27702 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
27706 * m4/exclude.m4: New file.
27709 * m4/human.m4: New file.
27715 * m4/backupfile.m4: New file.
27716 * m4/d-ino.m4: Indentation.
27719 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
27720 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
27721 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
27724 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
27728 * m4/euidaccess.m4: New file.
27731 * m4/file-type.m4: New file.
27734 * m4/fileblocks.m4: New file.
27737 * m4/filemode.m4: New file.
27740 * m4/isdir.m4: New file.
27743 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
27744 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
27747 * m4/makepath.m4: New file.
27750 * m4/modechange.m4: New file.
27753 * m4/mountlist.m4: New file.
27754 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
27757 Module path-concat.
27758 * m4/path-concat.m4: New file.
27761 * m4/pathmax.m4: New file.
27764 * m4/same.m4: New file.
27767 * m4/save-cwd.m4: New file.
27770 * m4/savedir.m4: New file.
27773 * m4/xgetcwd.m4: New file.
27774 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
27777 * m4/xreadlink.m4: New file.
27780 * m4/safe-read.m4: New file.
27783 * m4/safe-write.m4: New file.
27786 * m4/closeout.m4: New file.
27788 Module stdio-safer.
27789 * m4/stdio-safer.m4: New file.
27792 * m4/getpass.m4: New file.
27795 * m4/getugroups.m4: New file.
27797 Module group-member.
27798 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
27799 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
27802 * m4/idcache.m4: New file.
27805 * m4/userspec.m4: New file.
27808 * m4/clock_time.m4: New file.
27809 * m4/gettime.m4: New file.
27812 * m4/settime.m4: New file.
27815 * m4/posixtm.m4: New file.
27817 Module gethostname.
27818 * m4/gethostname.m4: New file.
27821 * m4/canon-host.m4: New file.
27824 * m4/codeset.m4: New file, from gettext-0.11.5.
27825 * m4/gettext.m4: New file, from gettext-0.11.5.
27826 * m4/glibc21.m4: New file, from gettext-0.11.5.
27827 * m4/iconv.m4: New file, from gettext-0.11.5.
27828 * m4/intdiv0.m4: New file, from gettext-0.11.5.
27829 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
27830 * m4/inttypes.m4: New file, from gettext-0.11.5.
27831 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
27832 * m4/isc-posix.m4: New file, from gettext-0.11.5.
27833 * m4/lcmessage.m4: New file, from gettext-0.11.5.
27834 * m4/lib-ld.m4: New file, from gettext-0.11.5.
27835 * m4/lib-link.m4: New file, from gettext-0.11.5.
27836 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
27837 * m4/progtest.m4: New file, from gettext-0.11.5.
27838 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
27839 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
27840 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
27842 Module localcharset.
27843 * m4/localcharset.m4: New file.
27845 Module hard-locale.
27846 * m4/hard-locale.m4: New file.
27849 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
27851 * m4/mbrtowc.m4: Add comment.
27854 * m4/memcasecmp.m4: New file.
27857 * m4/memcoll.m4: New file.
27860 * m4/unicodeio.m4: New file.
27863 * m4/rpmatch.m4: New file.
27866 * m4/yesno.m4: New file.
27869 * m4/exitfail.m4: New file.
27872 * m4/c-stack.m4 (gl_C_STACK): New macro.
27873 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
27876 * m4/error.m4 (gl_ERROR): New macro.
27877 (jm_PREREQ_ERROR): Use onceonly macros.
27880 * m4/fatal.m4: New file.
27883 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
27884 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
27886 Module getpagesize.
27887 * m4/getpagesize.m4: New file.
27889 Module getusershell.
27890 * m4/getusershell.m4: New file.
27893 * m4/physmem.m4: New file.
27896 * m4/posixver.m4: New file.
27899 * m4/quotearg.m4: New file.
27902 * m4/quote.m4: New file.
27905 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
27908 * m4/sig2str.m4: New file.
27911 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
27913 * m4/intmax_t.m4: New file.
27914 * m4/d-type.m4: Indentation.
27915 * m4/jm-macros.m4: Update.
27916 * m4/prereq.m4 (jm_PREREQ): Update.
27917 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
27918 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
27919 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
27920 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
27921 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
27922 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
27923 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
27924 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
27925 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
27926 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
27927 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
27928 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
27929 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
27930 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
27931 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
27932 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
27933 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
27934 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
27935 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
27937 2002-12-24 Bruno Haible <bruno@clisp.org>
27939 * MODULES.txt: Update according to m4/ changes.
27942 * config.rpath: New file, from gettext-0.11.5.
27944 * modules/*: New module descriptions.
27945 * gnulib-tool: New file.
27946 * MODULES.html.sh: New file.
27948 2002-12-21 Karl Berry <karl@gnu.org>
27950 * doc/fdl.texi: update to version 1.2.
27952 2002-12-19 Karl Berry <karl@gnu.org>
27954 * config/config.guess: update from prep.
27956 2002-12-18 Bruno Haible <bruno@clisp.org>
27958 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
27959 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
27961 2002-12-17 Bruno Haible <bruno@clisp.org>
27963 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
27964 stdlib.h, string.h.
27966 2002-12-17 Bruno Haible <bruno@clisp.org>
27968 * lib/canon-host.c (strdup): Remove unused declaration.
27970 * lib/fsusage.c: Include full_read.h.
27971 (get_fs_usage): Use full_read instead of safe_read.
27973 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
27975 2002-12-12 Karl Berry <karl@gnu.org>
27977 * config/config.guess: update from prep.
27979 2002-12-11 Bruno Haible <bruno@clisp.org>
27981 * m4/setenv.m4: New file, from gettext-0.11.5.
27983 2002-12-11 Bruno Haible <bruno@clisp.org>
27985 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
27987 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
27990 2002-12-11 Bruno Haible <bruno@clisp.org>
27992 * setenv.c (alloca): Fall back to malloc.
27993 (freea): New macro.
27994 (setenv): Use freea() to free memory allocated with alloca().
27996 2002-11-13 Bruno Haible <bruno@clisp.org>
27998 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
27999 function declarations.
28000 * unsetenv.c (unsetenv): Likewise.
28002 2002-03-04 Bruno Haible <bruno@clisp.org>
28004 Portability to AIX 4.3.3.
28005 * unsetenv.c: New file, extracted from setenv.c.
28006 * setenv.c: Move the unsetenv() function to unsetenv.c.
28008 2001-12-20 Bruno Haible <bruno@clisp.org>
28010 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
28011 use malloc instead. For SunOS 4.
28013 2001-12-11 Bruno Haible <bruno@clisp.org>
28015 * setenv.c: Declare alloca.
28016 (compar_fn_t): New typedef.
28017 (KNOWN_VALUE, STORE_VALUE): Use it.
28019 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
28022 2002-12-10 Paul Eggert <eggert@twinsun.com>
28024 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
28025 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
28026 Choose values that are less likely to collide with system fnmatch
28028 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
28029 defined (e.g., a pure POSIX system).
28030 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
28031 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
28033 2002-12-06 Paul Eggert <eggert@twinsun.com>
28035 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
28036 a pain in practice to deal with generated m4 files. This change
28037 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
28039 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
28040 and jm-glibc-io.m4, as they are no longer a special case.
28041 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
28042 kludge and the auto-generation stuff. Check only whether the
28043 functions are declared, not whether they exist, since older hosts
28044 that don't declare the functions can't use the optimization anyway.
28046 2002-12-06 Jim Meyering <jim@meyering.net>
28048 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
28050 Merge in changes from libc's misc/error.c, in preparation
28051 for the merge of gnulib's changes back into libc.
28053 * lib/error.c (_): Define only if not already defined.
28054 Move definition to follow all #include directives.
28055 Include unlocked-io.h only if !_LIBC.
28056 [_LIBC]: Include <libio/libioP.h>.
28057 [USE_IN_LIBIO]: Include <libio/iolibio.h>
28058 (fflush): Tweak definition to use INTUSE.
28061 2002-12-05 Paul Eggert <eggert@twinsun.com>
28063 * lib/alloca.c [defined emacs]: Include "lisp.h".
28064 (xalloc_die) [defined emacs]: New macro.
28065 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
28066 [! defined emacs]: Include <xalloc.h>.
28067 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
28068 (pointer): Typedef to POINTER_TYPE *.
28069 (malloc): Remove decl; we now always use xmalloc.
28070 (alloca): Use old-style definition, since Emacs needs this.
28071 Check for arithmetic overflow when computing combined size.
28073 2002-12-04 Paul Eggert <eggert@twinsun.com>
28075 Do not generate unlocked-io.h automatically, since it's easier to
28076 maintain it by hand.
28078 * lib/unlocked-io.h: New file, from GNU diffutils,
28079 but with proper copyright notice and attribution.
28080 * lib/gen-uio: Remove.
28081 * lib/Makefile.am: Add copyright notice.
28082 (libfetish_a_SOURCES): Add unlocked-io.h.
28083 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
28084 (DISTCLEANFILES, io_functions): Remove macros.
28085 (EXTRA_DIST): Remove gen_uio.
28086 (unlocked-io.h): Remove rule.
28088 2002-12-04 Jim Meyering <jim@meyering.net>
28090 Reflect the fact that stat.c and lstat.c are no longer generated.
28091 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
28092 (DISTCLEANFILES): Likewise.
28093 (EXTRA_DIST): Likewise.
28094 (all_local): Don't depend on stat.c or lstat.c.
28095 (stat.c, lstat.c): Remove rules.
28096 (EXTRA_DIST): Remove xstat.in.
28098 * lib/xstat.in: Remove file. Contents moved into stat.c.
28099 * lib/stat.c: New file. Contents mostly from xstat.in.
28100 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
28101 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
28103 * lib/safe-read.c: Rework so that it may serve to define safe_write,
28105 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
28107 2002-12-03 Jim Meyering <jim@meyering.net>
28109 * lib/safe-read.c, safe-write.c: Change variable names and comments,
28110 but not semantics, to minimize the differences between these two files.
28111 (safe_read): Change comment to mention SAFE_READ_ERROR.
28113 * lib/safe-read.c (IS_EINTR): Define.
28114 (safe_read): Use IS_EINTR in place of in-function cpp directives.
28116 2002-12-02 Jim Meyering <jim@meyering.net>
28118 * lib/safe-read.c (EINTR): Define.
28119 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
28120 (INT_MAX): Provide fallback.
28121 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
28123 * lib/safe-read.h (SAFE_READ_ERROR): Define.
28125 2002-12-02 Bruno Haible <bruno@clisp.org>
28127 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
28128 Define, taken from safe-read.c.
28129 (INT_MAX): Provide fallback.
28130 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
28131 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
28133 * lib/safe-read.c (EINTR): Remove definition.
28134 (safe_read): Don't use EINTR if it is absent.
28136 2002-12-01 Jim Meyering <jim@meyering.net>
28138 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
28140 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
28142 2002-11-27 Paul Eggert <eggert@twinsun.com>
28144 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
28145 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
28146 with `if (! (value < limit)) abort ();', for readability.
28148 2002-11-26 Karl Berry <karl@gnu.org>
28150 * lib/strdup.c: copy from libc again, with jim's ok.
28151 * lib/.cppi-disable: re-add strdup.c
28153 2002-11-25 Karl Berry <karl@gnu.org>
28155 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
28156 instead of "strtol.c".
28158 2002-11-25 Karl Berry <karl@gnu.org>
28160 * config/install-sh: update from automake for variable quoting, $0 in
28163 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
28164 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
28167 2002-11-25 Jim Meyering <jim@meyering.net>
28169 * lib/mktime.c: Sync from libc, now that it has the latest fix.
28171 2002-11-24 Karl Berry <karl@gnu.org>
28173 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
28174 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
28176 2002-11-24 Jim Meyering <jim@meyering.net>
28178 Update from coreutils:
28180 * lib/mktime.c: Merge in changes from libc.
28182 Avoid a link-time failure on some Linux systems.
28183 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
28185 (__mon_yday): Declare with the STATIC attribute.
28186 (__mktime_internal): Likewise.
28187 Based on a report from Greg Schafer.
28189 2002-11-23 Jim Meyering <jim@meyering.net>
28191 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
28192 Use `unsigned', not `int', as type of index.
28194 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
28196 * lib/fsusage.c: Remove unneeded parentheses around operands of
28199 2002-11-22 Paul Eggert <eggert@twinsun.com>
28201 * lib/quotearg.h: Allow multiple inclusion by surrounding with
28202 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
28203 so that we can be included first.
28204 (PARAMS): Remove; we now assume C89 or later. All uses removed.
28205 * lib/quotearg.c: Include quotearg.h immediately after config.h.
28206 No need to include stddef.h or sys/types.h any more.
28207 Surround local include files with "", not "<>".
28208 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
28209 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
28210 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
28211 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
28212 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
28213 (ISPRINT): Remove; no longer needed now that we assume C89.
28215 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
28218 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
28219 quotearg_char): Use SIZE_MAX rather than
28220 (size_t) -1 when we are talking about "infinity".
28222 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
28224 2002-11-22 Paul Eggert <eggert@twinsun.com>
28226 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
28227 hint that one should use `if (! x) abort ();' rather than `assert
28228 (x);', and anyway it's one less thing to worry about configuring.
28229 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
28230 hash_rehash, hash_insert): Use abort rather than assert.
28232 2002-11-22 Bruno Haible <bruno@clisp.org>
28234 * lib/safe-read.h: Assume C89. Add comments.
28235 (safe_read): Change return type to size_t.
28236 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
28237 byte counts > SSIZE_MAX correctly.
28238 * lib/safe-write.h: New file.
28239 * lib/safe-write.c: New file.
28240 * lib/full-read.h: New file.
28241 * lib/full-read.c: New file.
28242 * lib/full-write.h: Assume C89. Add comments.
28243 * lib/full-write.c: Include safe-write.h.
28244 (full_write): Rewritten to use safe_write.
28245 Suggested by Jim Meyering and Paul Eggert.
28247 2002-11-21 Jim Meyering <jim@meyering.net>
28249 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
28251 Merge in changes from the coreutils.
28253 2002-09-25 Paul Eggert <eggert@twinsun.com>
28254 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
28256 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
28257 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
28258 int. Work more efficiently if X is the same width as uintmax_t.
28259 Do not compare X to -1, to avoid bogus compiler warning.
28260 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
28261 Don't assume that f_frsize and f_bsize are the same type.
28263 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
28264 warning on FreeBSD.
28266 * lib/makepath.c (make_path): Restore umask *before* creating the final
28268 (make_path): Minor reformatting.
28270 * lib/xmalloc.c: Adjust to work with new autoconf macros,
28271 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
28272 HAVE_MALLOC/HAVE_REALLOC.
28274 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
28275 dummy ones. At least on GNU/Linux systems, `auto' means something
28277 From Michael Stone.
28279 2002-11-21 Bruno Haible <bruno@clisp.org>
28281 Remove case insensitive option matching.
28282 * lib/argmatch.h (argcasematch): Remove declaration.
28283 (ARGCASEMATCH): Remove macro.
28284 (__xargmatch_internal): Remove case_sensitive argument.
28285 (XARGMATCH): Update.
28286 (XARGCASEMATCH): Remove macro.
28287 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
28288 case_sensitive argument.
28289 (argcasematch): Remove function.
28290 (__xargmatch_internal): Remove case_sensitive argument.
28291 (main): Use XARGMATCH instead of XARGCASEMATCH.
28293 * lib/xmalloc.c: Change compile-time error message. Add comment about
28294 required autoconf version.
28296 2002-11-20 Paul Eggert <eggert@twinsun.com>
28298 Merge argmatch cleanups from Bison. Assume C89.
28300 * lib/argmatch.c: Include config.h here, not in argmatch.h.
28301 Include stdlib.h, for EXIT_FAILURE.
28302 Always include <string.h>, since we assume C89.
28303 (EXIT_FAILURE): Remove pre-C89 bug workaround.
28304 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
28305 Include <stddef.h> instead, since it's all we need for size_t.
28306 (PARAMS): Remove. All uses removed.
28307 (ARRAY_CARDINALITY): Do not bother to #undef.
28308 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
28309 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
28310 Remove unnecessary parentheses.
28311 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
28312 Insert necessary parentheses.
28313 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
28314 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
28316 2002-11-19 Bruno Haible <bruno@clisp.org>
28318 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
28319 * lib/mbswidth.h: Include <stddef.h>, for size_t.
28321 * lib/mbswidth.h (PARAMS): Remove macro.
28322 (mbswidth, mbsnwidth): Use ANSI C function declarations.
28323 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
28325 * lib/gcd.h (PARAMS): Remove macro.
28326 (gcd): Use ANSI C function declarations.
28327 * lib/gcd.c (gcd): Likewise.
28329 2002-11-15 Bruno Haible <bruno@clisp.org>
28331 * lib/strcspn.c: Include <stddef.h>.
28332 (strcspn): Use ANSI C function declaration. Change return type to
28334 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
28335 (strpbrk): Use NULL.
28336 * lib/strpbrk.h (PARAMS): Remove macro.
28337 (strpbrk): Use ANSI C function declaration.
28338 * lib/strstr.c: Don't include <sys/types.h>.
28339 * lib/strstr.h (PARAMS): Remove macro.
28340 (strstr): Use ANSI C function declarations.
28342 2002-11-14 Karl Berry <karl@gnu.org>
28344 * config/mkinstalldirs: `do' on separate line, instead of
28347 2002-11-06 Bruno Haible <bruno@clisp.org>
28349 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
28350 * lib/gcd.c (gcd): Likewise.
28352 2002-11-05 Bruno Haible <bruno@clisp.org>
28354 * lib/gcd.h: New file, from gettext-0.11.5.
28355 * lib/gcd.c: New file, from gettext-0.11.5.
28357 2002-11-05 Bruno Haible <bruno@clisp.org>
28359 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
28360 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
28361 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
28362 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
28364 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
28366 * lib/makepath.c: Include gettext.h instead of <locale.h> and
28369 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
28370 * lib/human.c: Include gettext.h instead of <libintl.h>.
28371 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
28372 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
28373 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
28374 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
28375 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
28376 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
28377 (textdomain): Remove definition.
28378 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
28380 * lib/long-options.c: Remove include of <libintl.h> and definition of
28382 * lib/same.c: Remove include of <libintl.h> and definition of _.
28384 2002-11-04 Owen Taylor <otaylor@redhat.com>
28386 * lib/config.charset: A few additions for Solaris.
28388 2002-11-04 Bruno Haible <haible@clisp.cons.org>
28390 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
28391 * lib/localcharset.c (locale_charset): Declare as extern "C".
28393 2002-11-04 Bruno Haible <haible@clisp.cons.org>
28395 * lib/config.charset: msdos in uk_UA uses CP1125.
28397 2002-11-04 Bruno Haible <bruno@clisp.org>
28399 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
28400 * lib/strcase.h: New file, from GNU gettext-0.11.5.
28401 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
28402 * lib/strstr.h: New file, from GNU gettext-0.11.5.
28403 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
28405 2002-11-04 Bruno Haible <bruno@clisp.org>
28407 * lib/localcharset.c (locale_charset): Don't return an empty string.
28409 2002-11-04 Bruno Haible <bruno@clisp.org>
28411 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
28414 2002-11-04 Bruno Haible <bruno@clisp.org>
28416 * lib/config.charset: Update for newest glibc. Add canonical names
28417 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
28419 2002-11-04 Bruno Haible <bruno@clisp.org>
28421 * lib/config.charset: Add support for NetBSD.
28423 2002-11-04 Bruno Haible <bruno@clisp.org>
28425 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
28427 2002-11-01 Bruno Haible <bruno@clisp.org>
28429 * configure.in: Add AC_CONFIG_AUX_DIR call.
28430 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
28432 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
28434 2002-09-28 Karl Berry <karl@gnu.org>
28436 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
28437 installed automake until the next release, since changes have been
28440 2002-09-25 Karl Berry <karl@gnu.org>
28442 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
28443 * lib/getopt*: copy from libc/posix.
28444 * lib/gettext.h: copy from gettext.
28445 * lib/.cppi-disable: add strdup.c, gettext.h.
28447 2002-09-25 Karl Berry <karl@gnu.org>
28449 * config/srclist.txt: enable gettext.h check.
28450 * config/config.{guess,sub}: update from prep.
28451 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
28452 from automake 1.6.3.
28455 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
28457 * regex.c (PATFETCH): Remove the translating fetch.
28458 (PATFETCH_RAW): Rename to PATFETCH.
28459 (set_image_of_range): New fun.
28460 (SET_RANGE_TABLE_WORK_AREA): Use it.
28461 (regex_compile): Don't translate the pattern chars so eagerly.
28462 Only do it when inserting an `exactn' bytecode or when handling
28464 (mutually_exclusive_p): Avoid empty statement.
28466 2002-07-06 Jim Meyering <meyering@lucent.com>
28468 * m4/README: Don't mention Makefile.am.in.
28469 Outline how I've tested changes to .m4 files. Yep, it's a pain.
28471 2002-07-01 Jim Meyering <meyering@lucent.com>
28473 * lib/c-stack.c: Include sys/time.h.
28474 From Volker Borchert.
28476 2002-06-26 Paul Eggert <eggert@twinsun.com>
28478 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
28480 2002-06-26 Paul Eggert <eggert@twinsun.com>
28482 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
28483 New macro. Use it uniformly instead of
28484 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
28485 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
28486 reported by Vin Shelton.
28488 2002-06-22 Paul Eggert <eggert@twinsun.com>
28490 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
28491 Do not assume SA_SIGINFO behavior.
28492 Bug reported by Jim Meyering on NetBSD 1.5.2.
28494 2002-06-22 Jim Meyering <meyering@lucent.com>
28496 * m4/c-stack.m4: New file, from diffutils-2.8.2.
28497 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
28499 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
28500 now that configure.ac uses AC_GNU_SOURCE.
28501 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
28502 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
28504 Update to latest tools. Suggestions from Paul Eggert.
28505 * m4/stdbool.m4: New file, from diffutils-2.8.2.
28506 * m4/gnu-source.m4: Update from diffutils-2.8.2.
28507 * m4/fnmatch.m4: Likewise.
28508 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
28509 to AC_HEADER_STDBOOL
28511 2002-06-22 Jim Meyering <meyering@lucent.com>
28513 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
28514 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
28516 2002-06-22 Jim Meyering <meyering@lucent.com>
28518 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
28520 * lib/exitfail.c, exitfail.h: Likewise.
28521 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
28523 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
28525 (EXTRA_DIST): Add fnmatch_loop.c.
28526 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
28528 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
28529 * lib/fnmatch.c: Update from diffutils-2.8.2.
28530 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
28531 * lib/fnmatch.h: Remove file.
28533 2002-06-21 Jim Meyering <meyering@lucent.com>
28535 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
28536 * m4/mbrtowc.m4: Likewise.
28538 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
28539 * m4/mbswidth.m4: Reflect name change:
28540 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
28541 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
28543 * m4/lib-link.m4: Update from gettext-0.11.2.
28544 * m4/gettext.m4: Likewise.
28546 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
28547 From Alfred M. Szmidt.
28549 2002-06-18 Paul Eggert <eggert@twinsun.com>
28551 * lib/file-type.h: Report an error if neither S_ISREG nor
28552 S_IFREG is defined, instead of using a test specific to glibc
28553 2.2. This should be safe, since POSIX requires S_ISREG and
28554 Unix Version 7 had S_IFREG. We don't need to check for
28555 <sys/types.h> since we don't use any symbols that it defines.
28557 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
28559 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
28560 $@-t, so that each temporary file name is unique and valid in the first
28561 8 characters, for operation under DOS.
28563 2002-06-15 Paul Eggert <eggert@twinsun.com>
28565 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
28567 2002-06-15 Jim Meyering <meyering@lucent.com>
28569 Work even with DJGPP 2.03, which lacks support for symlinks.
28571 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
28573 * lib/lchown.c (S_ISLNK): Likewise.
28575 2002-06-15 Jim Meyering <meyering@lucent.com>
28577 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
28578 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
28579 have been included before this file.
28581 2002-06-14 Jim Meyering <meyering@lucent.com>
28583 * lib/file-type.h: Use the version from diffutils-2.8.2.
28584 * lib/file-type.c: Likewise.
28586 2002-06-07 Jim Meyering <meyering@lucent.com>
28588 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
28589 They're needed at least for NetBSD 1.5.2.
28590 ($statxfs_includes): Include those same headers.
28591 ($statxfs_includes): Include sys/vfs.h if available.
28592 ($statxfs_includes): Likewise for sys/statvfs.h.
28593 Check for the following members in both structs statfs and statvfs:
28594 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
28596 2002-06-01 Jim Meyering <meyering@lucent.com>
28598 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
28599 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
28601 2002-05-28 Jim Meyering <meyering@lucent.com>
28603 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
28604 Reported by Volker Borchert.
28606 2002-05-27 Jim Meyering <meyering@lucent.com>
28608 Fix a problem seen only on nonconforming systems whereby ls.c's
28609 use of localtime, and then of gettimeofday would cause trouble:
28610 the localtime call used to initialize rpl_gettimeofday's save
28611 mechanism would clobber ls's current local time information so
28612 that in any long listing the first file would always be listed
28613 with date 1970-01-01. Analysis by Volker Borchert.
28615 * lib/gettimeofday.c (localtime): Undefine.
28616 (rpl_localtime): New function.
28618 2002-05-27 Jim Meyering <meyering@lucent.com>
28620 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
28623 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
28624 use the replacement function; it wouldn't resolve at link time.
28625 Reported by Volker Borchert.
28627 2002-05-22 Jim Meyering <meyering@lucent.com>
28629 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
28631 * lib/file-type.h: New file.
28632 * lib/file-type.c (file_type): New file/function. Extracted from
28635 2002-04-30 Jim Meyering <meyering@lucent.com>
28637 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
28639 2002-04-29 Paul Eggert <eggert@twinsun.com>
28641 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
28643 2002-04-29 Paul Eggert <eggert@twinsun.com>
28645 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
28646 Do not check for alloca.h (no longer used) or stdbool.h (was never
28647 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
28649 2002-04-29 Paul Eggert <eggert@twinsun.com>
28651 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
28653 2002-04-29 Jim Meyering <meyering@lucent.com>
28655 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
28656 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
28657 Use AC_FUNC_STRNLEN here instead.
28659 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
28660 With autoconf-2.53a, it's part of AC_PROG_CC.
28662 2002-04-28 Paul Eggert <eggert@twinsun.com>
28664 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
28665 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
28667 2002-04-28 Paul Eggert <eggert@twinsun.com>
28669 * lib/sig2str.h, lib/sig2str.c: New files.
28670 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
28672 2002-04-28 Paul Eggert <eggert@twinsun.com>
28674 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
28675 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
28676 of 127, since 64 is the largest conceivable number for ancient
28678 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
28680 2002-04-28 Jim Meyering <meyering@lucent.com>
28682 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
28684 2002-04-24 Jim Meyering <meyering@lucent.com>
28686 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
28687 (jm_PREREQ): Use it.
28689 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
28690 mach/mach.h fcntl.h.
28691 Check for this function: setlocale.
28693 2002-04-24 Jim Meyering <meyering@lucent.com>
28695 * lib/gettext.h: New file, from Gettext.
28696 * lib/Makefile.am (INCLUDES): Remove -I../intl.
28697 (libfetish_a_SOURCES): Add gettext.h.
28699 2002-04-16 Jim Meyering <meyering@lucent.com>
28701 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
28702 ut_pid, ut_id, ut_exit.
28704 2002-04-16 Jim Meyering <meyering@lucent.com>
28706 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
28707 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
28708 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
28710 2002-04-12 Jim Meyering <meyering@lucent.com>
28712 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
28713 now-bogus check for f_type in sys/mount.h. Instead, just test for the
28714 existence of the getmntinfo function. Needed for Darwin 5.3.
28716 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
28717 This is necessary at least on Darwin 5.3.
28719 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
28720 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
28721 strnlen.o in the library, and that makes some versions of ranlib
28724 2002-04-12 Jim Meyering <meyering@lucent.com>
28726 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
28728 2002-04-09 Jim Meyering <meyering@lucent.com>
28730 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
28731 to be more precise. Rather than saying we're checking whether the
28732 function `works', say what we're testing.
28733 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
28734 Reported by Bruno Haible.
28736 2002-03-10 Jim Meyering <meyering@lucent.com>
28738 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
28739 Suggestion from Santiago Vila.
28741 2002-03-08 Jim Meyering <meyering@lucent.com>
28743 * lib/rename.c: Mention that this wrapper is needed also on
28744 mips-dec-ultrix4.4 systems.
28746 2002-03-02 Jim Meyering <meyering@lucent.com>
28748 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
28749 not HAVE_CLOCK_SETTIME.
28751 2002-02-27 Paul Eggert <eggert@twinsun.com>
28753 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
28754 Check for clock_settime.
28756 2002-02-27 Paul Eggert <eggert@twinsun.com>
28758 * lib/nanosleep.h: Rename to....
28759 * lib/timespec.h: New name for nanosleep.h. All uses changed.
28761 * lib/gettime.c: New file.
28762 * lib/settime.c: New file.
28763 * lib/stime.c: Remove.
28765 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
28766 timespec.h. Remove nanosleep.h.
28768 2002-02-25 Paul Eggert <eggert@twinsun.com>
28770 * m4/acl.m4: New file.
28771 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
28772 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
28774 2002-02-25 Paul Eggert <eggert@twinsun.com>
28776 * lib/acl.c, lib/acl.h: New files.
28777 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
28779 2002-02-24 Jim Meyering <meyering@lucent.com>
28781 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
28782 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
28783 cause trouble. Reported by Nelson Beebe.
28785 2002-02-23 Paul Eggert <eggert@twinsun.com>
28787 * lib/path-concat.c (xpath_concat): Reorder code to pacify
28788 compilers that don't know that xalloc_die never returns.
28790 2002-02-20 Jim Meyering <meyering@lucent.com>
28792 * lib/getdate.c: Regenerate using bison-1.33.
28794 2002-02-17 Jim Meyering <meyering@lucent.com>
28796 * config/config.guess (main): Don't use `head -1'; it's no longer
28797 portable. Use `sed 1q' instead.
28799 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
28801 * m4/codeset.m4: Upgrade to gettext-0.11.
28802 * m4/gettext.m4: Upgrade to gettext-0.11.
28803 * m4/glibc21.m4: Upgrade to gettext-0.11.
28804 * m4/iconv.m4: Upgrade to gettext-0.11.
28805 * m4/isc-posix.m4: Upgrade to gettext-0.11.
28806 * m4/lcmessage.m4: Upgrade to gettext-0.11.
28807 * m4/lib-ld.m4: New file, from gettext-0.11.
28808 * m4/lib-link.m4: New file, from gettext-0.11.
28809 * m4/lib-prefix.m4: New file, from gettext-0.11.
28810 * m4/progtest.m4: Upgrade to gettext-0.11.
28812 2002-02-15 Paul Eggert <eggert@twinsun.com>
28814 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
28815 (jm_PREREQ): Use it.
28817 2002-02-15 Paul Eggert <eggert@twinsun.com>
28819 * lib/posixver.c, lib/posixver.h: New files.
28820 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
28822 2002-02-02 Paul Eggert <eggert@twinsun.com>
28823 Bruno Haible <bruno@clisp.org>
28825 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
28826 (fwrite_success_callback): New declaration.
28827 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
28828 print_unicode_char. Call failure callback instead of error.
28829 (fwrite_success_callback): New function.
28830 (exit_failure_callback): New function.
28831 (fallback_failure_callback): New function.
28832 (print_unicode_char): Call unicode_to_mb.
28834 2002-01-26 Jim Meyering <meyering@lucent.com>
28836 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
28837 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
28839 2002-01-26 Jim Meyering <meyering@lucent.com>
28841 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
28843 2002-01-22 Paul Eggert <eggert@twinsun.com>
28845 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
28847 2002-01-22 Jim Meyering <meyering@lucent.com>
28849 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
28850 Otherwise, some versions of automake would omit the rule that makes
28851 Makefile from Makefile.in.
28853 2002-01-21 Paul Eggert <eggert@twinsun.com>
28855 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
28856 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
28857 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
28858 (memcoll): Set errno to zero if there is no error.
28860 * lib/quotearg.c (quotearg_buffer_restyled):
28861 Fix bug with quoting buffers containing NUL when backslashing escapes.
28862 This bug was exposed by the other changes in this patch.
28863 (quotearg_n_options): New arg ARGSIZE.
28864 All callers changed.
28865 (quoting_options_from_style): New function.
28866 (quotearg_n_style): Use it.
28867 (quotearg_n_style_mem): New function.
28869 * lib/quotearg.h (quotearg_n_style_mem): New function.
28871 2002-01-19 Jim Meyering <meyering@lucent.com>
28873 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
28874 Remove useless quotes: DF_PROG="df".
28875 * m4/strnlen.m4: New file.
28877 2002-01-16 Paul Eggert <eggert@twinsun.com>
28879 * lib/backupfile.c (ISDIGIT): Comment fix.
28880 * lib/getdate.y (ISDIGIT): Likewise.
28881 * lib/posixtm.c (ISDIGIT, year): Likewise.
28882 * lib/strverscmp.c (ISDIGIT): Likewise.
28883 * lib/userspec.c (ISDIGIT): Likewise.
28885 2002-01-16 Jim Meyering <meyering@lucent.com>
28887 * lib/getdate.y: Add three semicolons, each just before a closing
28888 brace. Bison (as of version 1.31) no longer papers over that mistake.
28890 2002-01-05 Jim Meyering <meyering@lucent.com>
28892 * lib/version-etc.c (version_etc_copyright): Update copyright year.
28894 2001-12-19 Paul Eggert <eggert@twinsun.com>
28896 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
28897 not silently exit merely because the output buffer happens to
28898 have nothing pending.
28900 2001-12-18 Paul Eggert <eggert@twinsun.com>
28902 See the big note in ../ChangeLog.
28903 * lib/human.c (suffixes): Prefer K to k for 1024.
28904 (generate_suffix_backwards): New function.
28905 (human_readable_inexact): Use it.
28906 * lib/xstrtol.c (__xstrtol): If there is no number but there
28907 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
28908 Accept 'K' as well as 'k'.
28910 2001-12-15 Jim Meyering <meyering@lucent.com>
28912 * lib/regex.h (__restrict_arr): Update from libc.
28914 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
28915 as `remote' if the name starts with `//'. Suggested by Michael Stone.
28918 2001-12-14 Jim Meyering <meyering@lucent.com>
28920 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
28921 Suggestion from Bruno Haible.
28923 2001-12-10 Jim Meyering <meyering@lucent.com>
28925 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
28926 xrealloc, Instead, include "xalloc.h".
28927 (initbuffer): Don't cast xmalloc return value to char*.
28928 (readline): Reword comment.
28929 Don't cast xrealloc return value to char*
28930 Return NULL, not 0.
28932 2001-12-09 Jim Meyering <meyering@lucent.com>
28934 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
28935 about `signed and unsigned type in conditional expression'.
28936 * lib/posixtm.c (posix_time_parse): Likewise.
28938 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
28940 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
28941 to avoid a pedantic warning.
28943 * lib/getstr.c: Don't include assert.h.
28944 (getstr): Remove warning-evoking assertions.
28945 Return -1 if offset parameter is out of bounds.
28946 Change the type of a local from int to size_t.
28948 * lib/strftime.c (my_strftime_localtime_r): Include this function
28949 definition in the `#if ! HAVE_TM_GMTOFF' block.
28951 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
28952 Include xalloc.h instead.
28954 2001-12-02 Jim Meyering <meyering@lucent.com>
28956 * lib/tempname.c: Don't declare getenv, thus reverting the change of
28957 2001-11-18. It's no longer necessary, now that stdlib.h is always
28960 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
28961 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
28963 2001-11-30 Akim Demaille <akim@epita.fr>
28965 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
28966 before being defined.
28968 2001-11-27 Paul Eggert <eggert@twinsun.com>
28970 * lib/quotearg.h (quotearg_n, quotearg_n_style):
28971 First arg is int, not unsigned.
28972 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
28973 (SIZE_MAX, UINT_MAX): New macros.
28974 (quotearg_n_options): Abort if N is negative.
28975 Avoid overflow check on hosts where size_t is 64 bits and int
28976 is 32 bits, as overflow is impossible there.
28977 Fix off-by-one typo that caused unnecessary reallocation.
28979 2001-11-27 Jim Meyering <meyering@lucent.com>
28981 * lib/tempname.c: Merge with version from libc.
28982 * lib/regex.c: Likewise.
28984 * lib/tempname.c: Include stdlib.h unconditionally. On some old
28985 systems for which STDC_HEADERS is 0, it was not included, resulting in
28986 a warning about an integer-to-pointer conversion problem with getenv.
28987 Reported by Volker Borchert.
28989 2001-11-26 Jim Meyering <meyering@lucent.com>
28991 * lib/gtod.h: Remove file.
28992 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
28993 * lib/gettimeofday.c: Don't include gtod.h.
28994 (GTOD_init): Remove function.
28995 (rpl_gettimeofday): Do its job here instead, rather than aborting.
28996 Suggestion from Volker Borchert.
28998 2001-11-23 Jim Meyering <meyering@lucent.com>
29000 * lib/hash.h (struct hash_table): Don't define here. Merely declare
29002 * lib/hash.c (struct hash_table): Define it here instead.
29004 2001-11-22 Jim Meyering <meyering@lucent.com>
29006 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
29008 2001-11-20 Jim Meyering <meyering@lucent.com>
29010 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
29011 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
29013 2001-11-19 Jim Meyering <meyering@lucent.com>
29015 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
29016 directory. Use "conftestXXXXXX" as the template.
29017 Suggestion from Paul Eggert.
29019 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
29020 immediately, so the test doesn't mistakenly hit the max-open-files
29023 2001-11-18 Paul Eggert <eggert@twinsun.com>
29025 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
29026 (TEMPORARIES): New macro.
29027 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
29028 removes an artificial limitation (e.g. HP-UX 10.20, where
29031 2001-11-18 Jim Meyering <meyering@lucent.com>
29033 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
29035 2001-11-18 Jim Meyering <meyering@lucent.com>
29037 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
29040 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
29041 files will be created before anything else.
29043 2001-11-17 Paul Eggert <eggert@twinsun.com>
29045 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
29046 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
29048 2001-11-17 Jim Meyering <meyering@lucent.com>
29050 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
29051 Prompted by a report from Bob Proulx.
29053 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
29054 Instead, require UTILS_FUNC_MKSTEMP.
29056 2001-11-17 Jim Meyering <meyering@lucent.com>
29058 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
29059 Now, that's done as part of AC_FUNC_STRTOD.
29061 2001-11-17 Jim Meyering <meyering@lucent.com>
29063 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
29064 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
29065 rather than group writable. Patch by Juan F. Codagnone.
29067 * lib/readtokens.c: Remove explicit declarations of xmalloc and
29068 xrealloc, Instead, include "xalloc.h".
29070 * lib/mountlist.c: Include unlocked-io.h after all system headers.
29071 Remove explicit declarations of xmalloc, xrealloc,
29072 and xstrdup. Instead, include "xalloc.h".
29074 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
29076 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
29078 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
29080 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
29081 Reported by Padraig Brady.
29083 * lib/mkstemp.c: #undef mkstemp.
29085 (rpl_mkstemp): Rename from mkstemp.
29088 2001-11-16 Jim Meyering <meyering@lucent.com>
29090 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
29091 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
29092 determine the amount of total physical memory, use pstat_getstatic.
29093 HPUX-11 doesn't define _SC_PHYS_PAGES.
29094 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
29095 If sysconf couldn't be used to determine the amount of available
29096 physical memory, use both pstat_getstatic and pstat_getdynamic.
29097 Based on a patch from Bob Proulx.
29099 2001-11-10 Jim Meyering <meyering@lucent.com>
29101 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
29102 (jm_PREREQ): Use it.
29104 2001-11-09 Jim Meyering <meyering@lucent.com>
29106 * m4/jm-macros.m4: Require autoconf-2.52f.
29107 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
29108 Use these AC_-prefixed names, not the AM_-prefixed ones.
29110 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
29112 2001-11-05 Jim Meyering <meyering@lucent.com>
29114 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
29116 2001-11-04 Jim Meyering <meyering@lucent.com>
29118 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
29121 2001-11-03 Jim Meyering <meyering@lucent.com>
29123 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
29126 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
29127 know the name of the variable in the macro definition.
29129 2001-11-03 Jim Meyering <meyering@lucent.com>
29131 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
29132 in argmatch_to_argument call.
29134 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
29137 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
29138 e.g., a fault due to an attempt to free a NULL pointer.
29140 2001-11-01 Jim Meyering <meyering@lucent.com>
29142 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
29143 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
29145 2001-11-01 Jim Meyering <meyering@lucent.com>
29147 * lib/dirfd.c, lib/dirfd.h: New files.
29148 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
29150 * lib/hash.c (hash_print) [TESTING]: Clean up.
29152 2001-10-22 Paul Eggert <eggert@twinsun.com>
29154 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
29155 to avoid a warning if -Wall.
29157 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
29160 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
29161 (per RMS's instructions, this is now the canonical source)
29162 * lgpl/, gpl/: New directories.
29164 2001-10-21 Paul Eggert <eggert@twinsun.com>
29166 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
29168 2001-10-21 Jim Meyering <meyering@lucent.com>
29170 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
29171 this code would end up calling gettext even in packages built
29172 with --disable-nls.
29173 * lib/getopt.c (_): Likewise.
29174 * lib/regex.c (_): Likewise.
29176 2001-10-20 Paul Eggert <eggert@twinsun.com>
29178 * m4/error.m4 (jm_PREREQ_ERROR):
29179 Do not invoke AC_CHECK_FUNCS with strerror_r, as
29180 AC_FUNC_STRERROR_R does that.
29181 Check for strerror declaration.
29183 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
29184 are supposed to have them these days.
29185 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
29186 Merge changes from latest Autoconf CVS.
29187 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
29188 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
29189 POSIX decided to standardize on the int flavor of strerror_r.
29191 2001-10-20 Paul Eggert <eggert@twinsun.com>
29193 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
29194 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
29195 Use strerror_r that is only a macro, even if it is not a function.
29196 (strerror): Check for HAVE_DECL_STRERROR before declaring.
29197 (private_strerror): Use prototypes, not old-style function definition.
29198 (print_errno_message): New function.
29199 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
29200 char*-flavored one.
29201 (error_tail, error, error_at_line): Use it.
29203 2001-10-11 Jim Meyering <meyering@lucent.com>
29205 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
29206 and quote_n (1, ... to avoid clobbering a buffer.
29208 2001-10-05 Jim Meyering <meyering@lucent.com>
29210 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
29212 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
29213 * lib/hash-pjw.h: New file.
29215 2001-09-30 Jim Meyering <meyering@lucent.com>
29217 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
29218 `struct fsstat' has the `f_fstypename' member.
29219 Use that to define FS_TYPE, which is now used to make
29220 the getfsstat link test tighter.
29222 2001-09-30 Jim Meyering <meyering@lucent.com>
29224 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
29225 Include <sys/ucred.h>, for Apple Darwin.
29226 Include sys/mount.h and sys/fs_types.h only if available.
29228 (read_filesystem_list): Use FS_TYPE.
29230 2001-09-29 Paul Eggert <eggert@twinsun.com>
29232 * lib/exclude.c (excluded_filename): 0 -> false, since it's
29235 2001-09-29 Jim Meyering <meyering@lucent.com>
29237 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
29238 [one-argument getmntent function]): Include stdio.h before mntent.h.
29239 SunOS 4.1.x needs it for the declaration of `FILE'.
29240 Patch by Volker Borchert.
29242 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
29243 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
29244 sys/fs_types.h, and make the link-test for getfsstat guard #include
29245 directives with appropriate #if HAVE_*_H tests so that we can
29246 detect getfsstat on Apple Darwin1.3.7 systems.
29247 Reported by Nelson Beebe.
29248 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
29250 2001-09-28 Paul Eggert <eggert@twinsun.com>
29252 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
29253 #defines strtoimax. Also treat the other strto* functions
29256 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
29257 Check for strtoul and strtoumax,
29258 as those declarations are made even in the signed case.
29259 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
29260 Likewise, for strtol and strtoimax.
29262 2001-09-28 Paul Eggert <eggert@twinsun.com>
29264 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
29265 #defines strtoimax. Also treat the other strto* functions
29268 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
29269 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
29270 (strtoimax, strtoumax): Do not declare if already defined as a macro.
29272 2001-09-26 Jim Meyering <meyering@lucent.com>
29274 Most macros in unlocked-io.h had the wrong number of arguments.
29275 * lib/gen-uio: New script.
29276 (USE_UNLOCKED_IO): Define to 1 if not already defined.
29277 * lib/unlocked-io.hin: Remove file.
29278 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
29279 rather than trying to embed it here.
29280 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
29281 Reported by Padraig Brady.
29283 2001-09-25 Volker Borchert <bt@teknon.de>
29285 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
29288 2001-09-24 Jim Meyering <meyering@lucent.com>
29290 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
29292 2001-09-23 Jim Meyering <meyering@lucent.com>
29294 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
29295 instead of the mere test for existence of mntent.h. The latter
29296 would get a false-positive on AIX 3.4 systems.
29297 In the outer getmntent if-block, don't die if neither of the getmntent
29298 tests succeeds. Instead, just fall through and continue with the
29301 2001-09-23 Jim Meyering <meyering@lucent.com>
29303 * lib/mountlist.c: Remove useless parentheses in #if directives.
29304 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
29305 the deprecated MOUNTED symbol is no longer defined in mntent.h.
29307 2001-09-22 Jim Meyering <meyering@lucent.com>
29309 * m4/gettext.m4: New file. From gettext.
29310 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
29311 * m4/progtest.m4: Likewise
29312 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
29313 * m4/glibc21.m4: Likewise.
29315 * m4/libintl.m4: Remove. No longer used.
29317 2001-09-22 Jim Meyering <meyering@lucent.com>
29319 * lib/localcharset.c: Update from latest gettext.
29320 * lib/config.charset: Likewise.
29322 2001-09-20 Jim Meyering <meyering@lucent.com>
29324 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
29326 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
29329 2001-09-20 Jim Meyering <meyering@lucent.com>
29331 * lib/xstrtol.c (strtoimax): Guard declaration with
29332 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
29333 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
29334 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
29335 (strtoumax): Likewise, for completeness (it wasn't necessary).
29337 2001-09-17 Paul Eggert <eggert@twinsun.com>
29339 * lib/strtoimax.c (HAVE_LONG_LONG):
29340 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
29341 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
29342 to work around bug in IBM C compiler.
29344 2001-09-17 Jim Meyering <meyering@lucent.com>
29346 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
29347 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
29348 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
29349 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
29350 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
29351 whenever the right hand side need not be expanded by the shell.
29353 2001-09-16 Paul Eggert <eggert@twinsun.com>
29355 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
29356 library. It's not correct, as some older glibcs are buggy.
29357 fnmatch wasn't fixed until glibc 2.2.
29359 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
29360 special shell magic here.
29362 2001-09-16 Jim Meyering <meyering@lucent.com>
29364 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
29365 * m4/jm-macros.m4: Require it.
29367 2001-09-16 Jim Meyering <meyering@lucent.com>
29369 * lib/mkdir.c: New file.
29371 2001-09-15 Jim Meyering <meyering@lucent.com>
29373 * m4/jm-macros.m4: Check for help2man.
29375 2001-09-11 Jim Meyering <meyering@lucent.com>
29377 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
29378 The body, by Paul Eggert, was moved here from configure.in.
29379 * m4/jm-macros.m4: Require UTILS_HOST_OS.
29381 2001-09-04 Paul Eggert <eggert@twinsun.com>
29383 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
29384 (jm_PREREQ): Use it.
29386 2001-09-04 Paul Eggert <eggert@twinsun.com>
29388 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
29389 Use ssize_t, not int, to store result of readlink.
29390 Check for ssize_t overflow as well as size_t overflow,
29391 as POSIX says the result of readlink is implementation-defined
29392 when ssize_t overflows.
29393 Remove unnecessary cast to char*.
29394 Use free+malloc instead of realloc, as the storage doesn't need
29395 to be preserved and it's clearer and can be more efficient that way.
29396 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
29397 * lib/xreadlink.h (xreadlink): Update prototype.
29399 2001-09-04 Paul Eggert <eggert@twinsun.com>
29401 * lib/xgetcwd.c: Revert some of the previous change; intead,
29402 fix the HAVE_GETCWD_NULL code to behave more like the
29403 !HAVE_GETCWD_NULL code used to.
29405 Include "xalloc.h".
29406 (xgetcwd): Do not return NULL when memory is exhausted; instead,
29409 2001-09-03 Paul Eggert <eggert@twinsun.com>
29411 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
29412 sys/param.h, as pathmax.h includes them.
29414 2001-09-03 Paul Eggert <eggert@twinsun.com>
29416 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
29417 (jm_PREREQ_XGETCWD): New macro.
29419 * m4/getcwd.m4: New file.
29421 2001-09-03 Paul Eggert <eggert@twinsun.com>
29423 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
29424 like the HAVE_GETCWD_NULL code.
29425 Include pathmax.h if not HAVE_GETCWD.
29426 Do not include xalloc.h.
29427 (INITIAL_BUFFER_SIZE): New symbol.
29428 Do not use xmalloc / xrealloc, since the caller is responsible for
29429 handling errors. Preserve errno around `free' during failure.
29430 Do not overrun buffer when using getwd.
29432 2001-09-03 Paul Eggert <eggert@twinsun.com>
29434 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
29435 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
29438 2001-09-03 Paul Eggert <eggert@twinsun.com>
29440 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
29441 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
29442 spotted by Jim Meyering.
29444 2001-09-03 Jim Meyering <meyering@lucent.com>
29446 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
29449 2001-09-02 Jim Meyering <meyering@lucent.com>
29451 * lib/error.c: Update from GNU libc.
29453 2001-09-01 Jim Meyering <meyering@lucent.com>
29455 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
29458 2001-09-01 Jim Meyering <meyering@lucent.com>
29460 * lib/xreadlink.c: New file.
29461 * lib/xreadlink.h: New file.
29462 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
29465 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
29466 doesn't conflict with sparc Solaris 7's definition in
29467 /usr/include/sys/int_types.h.
29469 * lib/exclude.c: Use `""', not `<>' to #include non-system header
29471 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
29472 and strncasecmp as r-values. Unixware didn't have declarations.
29474 2001-08-31 Paul Eggert <eggert@twinsun.com>
29476 * lib/xstrtol.h: Add copyright notice.
29477 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
29478 LONGINT_INVALID_SUFFIX_CHAR.
29480 2001-08-31 Paul Eggert <eggert@twinsun.com>
29482 * lib/xstrtol.c (strtoimax): New decl.
29484 2001-08-31 Paul Eggert <eggert@twinsun.com>
29486 * lib/xgetcwd.c: Don't include pathmax.h.
29487 Include stdlib.h and unistd.h if available.
29489 (xmalloc, xstrdup, free): Remove decls.
29490 (xgetcwd): Don't assume sizes fit in unsigned.
29491 Check for overflow when computing sizes.
29492 Simplify reallocation code.
29494 2001-08-31 Paul Eggert <eggert@twinsun.com>
29496 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
29497 a directory's st_size can have an arbitrary value, so the old
29498 usage could waste an arbitrary amount of memory. All uses
29500 * lib/savedir.h: Update prototype.
29502 2001-08-31 Paul Eggert <eggert@twinsun.com>
29504 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
29506 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
29509 Also, make the following further changes to make this file's
29510 configuration more similar to that of strtol.c:
29511 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
29512 (strtoumax, uintmax_t, strtoull, strtol): Remove.
29513 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
29514 (strtoimax): Renamed from strtoumax. All uses of unsigned values
29515 changed to signed values.
29517 And make the following changes as well:
29518 Fix copyright notice, as 1999 was missing.
29519 (verify): New macro.
29520 (strtoimax): Check sizes at compile-time, not run-time.
29521 Prefer strtol to strtoll if both work.
29522 (main): Remove; it was not that useful and was a pain to maintain.
29524 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
29526 2001-08-31 Jim Meyering <meyering@lucent.com>
29528 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
29529 Use an initial, malloc'd, buffer of length 128 rather than
29530 a statically allocated one of length 1024.
29532 2001-08-30 Paul Eggert <eggert@twinsun.com>
29534 Simplify code, partly by assuming autoconf 2.52 semantics.
29536 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
29538 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
29539 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
29541 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
29542 Move AC_REQUIRE to next-to-top level, to avoid confusion.
29543 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
29544 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
29545 jm_AC_HEADER_INTTYPES_H.
29546 * m4/jm-macros.m4 (jm_MACROS): Likewise.
29548 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
29550 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
29551 Quote first arg of AC_DEFUN.
29552 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
29553 since they are needed to parse the include file even if we need
29554 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
29555 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
29556 but with opposite signedness.
29558 2001-08-30 Paul Eggert <eggert@twinsun.com>
29560 Merge 'exclude' changes from tar 1.13.22.
29561 This fixes one or two unlikely storage allocation overflow bugs,
29562 but doesn't change user-visible behavior otherwise.
29564 2001-08-30 Paul Eggert <eggert@twinsun.com>
29566 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
29567 (jm_PREREQ_EXCLUDE): New macro.
29569 2001-08-30 Paul Eggert <eggert@twinsun.com>
29571 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
29574 2001-08-30 Paul Eggert <eggert@twinsun.com>
29576 * lib/hash.c: Remove '2001' from copyright notice.
29578 2001-08-30 Paul Eggert <eggert@twinsun.com>
29580 * lib/full-write.h: New file.
29581 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
29582 * lib/full-write.c: Correct credits, as cccp.c no longer
29583 exists and anyway it was so heavily changed from the old cccp
29584 code as to be unrecognizable. Include full-write.h.
29585 (full_write) Return size_t, with short writes meaning failure.
29586 All callers changed. This fixes a bug with large buffers
29588 * lib/utime.c: Include full-write.h.
29590 2001-08-30 Paul Eggert <eggert@twinsun.com>
29592 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
29593 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
29594 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
29595 Include if available.
29596 (<xalloc.h>): Include
29597 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
29598 (verify): New macro. Use it to verify that EXCLUDE macros do not
29599 collide with FNM macros.
29600 (struct patopts): New struct.
29601 (struct exclude): Use it, as exclude patterns now come with options.
29602 (new_exclude): Support above changes.
29603 (new_exclude, add_exclude_file):
29604 Initial size must now be a power of two to simplify overflow checking.
29605 (free_exclude, fnmatch_no_wildcards): New function.
29606 (excluded_filename): No longer requires options arg, as the options
29607 are determined by add_exclude. Now returns bool, not int.
29608 (excluded_filename, add_exclude):
29609 Add support for the fancy new exclusion options.
29610 (add_exclude, add_exclude_file): Now takes int options arg.
29611 Check for arithmetic overflow when computing sizes.
29612 (add_exclude_file): xrealloc might modify errno, so don't
29613 realloc until after errno might be used.
29615 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
29617 (free_exclude): New decl.
29618 (add_exclude, add_exclude_file): Now takes int options arg.
29619 (excluded_filename): No longer requires options arg, as the options
29620 are determined by add_exclude. Now returns bool, not int.
29622 2001-08-30 Paul Eggert <eggert@twinsun.com>
29624 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
29626 2001-08-27 Jim Meyering <meyering@lucent.com>
29628 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
29630 * lib/version-etc.c (N_): Remove definition.
29631 Revert most of last change.
29632 Instead, simply don't mark the `Copyright...' string for translation.
29633 Based on advice from Paul Eggert.
29635 * lib/strtoxmax.c: Tweak comment.
29637 2001-08-26 Jim Meyering <meyering@lucent.com>
29639 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
29641 * m4/xstrtoimax.m4: New file.
29642 * m4/xstrtoumax.m4: Add comments explaining why we
29643 AC_REPLACE_FUNCS(strtol).
29645 2001-08-26 Jim Meyering <meyering@lucent.com>
29647 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
29648 of copyright with `%s' so translators don't get an untranslated
29650 (COPYRIGHT_YEAR): Define.
29651 (version_etc): Use fprintf rather than fputs.
29652 Suggestion from Ulrich Drepper.
29654 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
29656 * lib/strtoll.c: New file, from GNU libc.
29657 * lib/xstrtoimax.c: New file.
29659 * lib/xstrtol.h: Add xstrtoimax.
29660 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
29661 * lib/strtoimax.c: New file. Likewise, but first define
29664 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
29666 * lib/strtoxmax.c: ... then renamed to this.
29668 2001-08-18 Paul Eggert <eggert@twinsun.com>
29670 * m4/inttypes.m4: Add AC_PREREQ(2.13).
29671 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
29672 (jm_AC_TYPE_INTMAX_T): New macro.
29673 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
29675 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
29677 * m4/longlong.m4: Renamed from ulonglong.m4.
29678 * m4/inttypes.m4: Renamed from inttypes_h.m4.
29679 * m4/uintmax_t.m4: Removed.
29681 2001-08-13 Paul Eggert <eggert@twinsun.com>
29683 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
29684 Port to Solaris 8, where 'sed' requires a space after the 'r'
29685 command, and where sh dislikes "$/". Clean up the spacing a bit.
29686 Redirect output to $tmp just once.
29688 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
29690 * lib/addext.c (<errno.h>): Include.
29691 (errno): Declare if not defined.
29692 (addext): Work correctly when pathconf returns -1 and leaves
29693 errno alone because there is no limit. Also, work even if
29694 pathconf returns a value greater than SIZE_MAX.
29696 2001-08-12 Jim Meyering <meyering@lucent.com>
29698 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
29699 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
29700 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
29701 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
29702 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
29703 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
29704 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
29705 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
29706 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
29707 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
29708 utime.m4, utimes.m4, xstrtoumax.m4:
29709 Quote the first argument in each use of AC_DEFUN.
29711 2001-08-12 Jim Meyering <meyering@lucent.com>
29713 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
29714 Simply `return getcwd (NULL, 0);'.
29715 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
29716 Use 1300 as initial value for length, not PATH_MAX.
29718 * lib/pathmax.h: Clean up cpp syntax.
29720 2001-08-12 Jim Meyering <meyering@lucent.com>
29722 * lib/gettimeofday.c: New file.
29723 * lib/gtod.h: New file.
29724 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
29726 2001-08-05 Jim Meyering <meyering@lucent.com>
29728 * m4/jm-macros.m4: Require autoconf-2.52.
29730 2001-08-04 Jim Meyering <meyering@lucent.com>
29732 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
29733 stmt, to get in sync with glibc.
29735 2001-08-03 Paul Eggert <eggert@twinsun.com>
29737 The following changes are from gettext 0.10.39 as maintained by
29740 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
29741 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
29742 with inverted sense. All uses changed.
29744 * lib/mbswidth.c: Don't include <limits.h>.
29745 Include <stdlib.h> and <string.h> unconditionally.
29746 (iswcntrl, mbsinit, ISCNTRL): New macros.
29747 (mbsnwidth): Use K&R style function declarations.
29748 Don't bother checking for MB_LEN_MAX == 1, since the compiler
29749 can optimize it when MB_CUR_MAX == 1.
29750 The width of control characters is zero, not 1.
29752 2001-08-03 Paul Eggert <eggert@twinsun.com>
29754 The following changes are from gettext 0.10.39 as maintained by
29755 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
29757 * m4/codeset.m4: Upgrade to serial AM1.
29758 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
29759 all uses changed. Quote first arg of AC_DEFUN.
29760 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
29762 * m4/iconv.m4: Upgrade to serial AM2.
29763 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
29764 Add --with-libconv-prefix.
29765 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
29766 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
29767 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
29768 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
29769 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
29771 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
29772 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
29773 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
29774 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
29775 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
29776 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
29777 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
29778 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
29779 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
29781 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
29784 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
29785 not the default value.
29787 2001-06-25 Bruno Haible <haible@clisp.cons.org>
29788 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
29789 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
29790 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
29791 Also check for iswcntrl, used for wcwidth fallback.
29792 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
29795 2001-08-03 Jim Meyering <meyering@lucent.com>
29797 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
29798 as it was in the original. Reported by Paul Eggert.
29800 2001-07-16 Jim Meyering <meyering@lucent.com>
29802 * m4/gettimeofday.m4: New file.
29803 Prompted by a report from Bernhard Baehr.
29805 2001-07-15 Jim Meyering <meyering@lucent.com>
29807 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
29808 stuff. Now it's in ../Makefile.cfg.
29810 2001-07-15 Jim Meyering <meyering@lucent.com>
29812 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
29813 (BUILT_SOURCES): Add unlocked-io.h.
29814 (io_functions): Define.
29815 (unlocked-io.h): New rule.
29816 (DISTCLEANFILES): Add unlocked-io.h.
29817 (all-local): Depend on unlocked-io.h, to ensure it is created.
29819 * lib/unlocked-io.hin: New file
29821 * lib/regex.c: Update from glibc.
29823 2001-07-05 Jim Meyering <meyering@lucent.com>
29825 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
29827 (libfetish_a_SOURCES): Put all .h files here instead.
29828 Remove a thus-exposed (better checks in automake) duplicate and
29829 two unnecessary .h files.
29831 2001-07-04 Jim Meyering <meyering@lucent.com>
29833 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
29834 that generates jm-glibc-io.m4 so that it doesn't trigger any make
29837 2001-07-02 Jim Meyering <meyering@lucent.com>
29839 The following changes were prompted by suggestions from Bruno Haible.
29841 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
29843 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
29844 definition of EXTRA_DIST.
29845 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
29846 ensure that the generated file is created/updated whenever the list
29847 of $(unlocked_functions) is changed.
29848 (jm-glibc-io.m4): New rule.
29849 (unlocked-io.h): New rule -- currently unused.
29851 2001-06-24 Jim Meyering <meyering@lucent.com>
29853 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
29854 unmatched right bracket, rather than kludging it with an extra,
29855 falsely-matching quote in a comment. Patch by Akim Demaille.
29857 2001-06-11 Jim Meyering <meyering@lucent.com>
29859 * lib/regex.c: Update from GNU libc.
29861 2001-05-27 Jim Meyering <meyering@lucent.com>
29863 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
29864 Check for ut_type in struct utmp.
29866 2001-05-27 Jim Meyering <meyering@lucent.com>
29868 * lib/readutmp.h (UT_TYPE): Define.
29870 2001-05-24 Jim Meyering <meyering@lucent.com>
29872 * lib/argmatch.c: Include "quote.h".
29873 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
29874 quote function. Reported by Göran Uddeborg.
29876 2001-05-22 Jim Meyering <meyering@lucent.com>
29878 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
29879 now that we use the package-supplied version unconditionally.
29880 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
29882 2001-05-21 Jim Meyering <meyering@lucent.com>
29884 * m4/regex.m4: Change a couple backticks to single quotes to avoid
29885 shell syntax errors.
29887 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
29889 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
29891 2001-05-20 Paul Eggert <eggert@twinsun.com>
29893 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
29894 Don't bother to check library strftime, since
29895 we'll be using our own my_strftime function anyway.
29896 Define my_strftime instead of strftime.
29898 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
29900 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
29901 which is not yet declared.
29903 2001-05-15 Jim Meyering <meyering@lucent.com>
29905 * m4/regex.m4: Use proper quoting so brackets appear in the test
29907 Reported by, and with help from, Bruno Haible.
29909 2001-05-13 Jim Meyering <meyering@lucent.com>
29911 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
29914 2001-05-11 Paul Eggert <eggert@twinsun.com>
29916 dirname code cleanup. base_name now behaves more compatibly
29917 with POSIX basename when given file names that have trailing
29918 slashes, and similarly for dir_name. Add new primitives
29919 base_len and dir_len. Put the directory-name-related decls
29922 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
29923 * lib/backupfile.c (base_name): Likewise.
29924 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
29925 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
29926 * lib/makepath.c (strip_trailing_slashes): Likewise.
29927 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
29928 ISSLASH): Likewise.
29929 * lib/rename.c (strip_trailing_slashes): Likewise.
29930 * lib/same.c (base_name): Likewise.
29931 * lib/stripslash.c (ISSLASH): Likewise.
29933 * lib/addext.c: Include <dirname.h> after size_t is defined.
29934 * lib/backupfile.c: Likewise.
29936 * lib/addext.c (addext): Use base_len to trim redundant
29937 trailing slashes instead of doing it ourselves.
29938 But do not trim the last slash if it is not redundant.
29940 * lib/backupfile.c (find_backup_file_name,
29941 max_backup_version): Use base_len instead of rolling it ourselves.
29942 Handle the case of "" and (on DOS) "C:" correctly.
29944 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
29945 needed. Include <string.h>, <dirname.h>.
29946 (base_name): Allow file names ending in slashes, other than names
29947 that are all slashes. In this case, return the basename followed
29948 by the slashes. This is more general, and can be used in places
29949 where the original base_name purposely had an assertion failure.
29950 (base_len): New function.
29952 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
29953 Do not include <assert.h>; no longer needed.
29955 (memrchr): Remove decl.
29956 (dir_name_r): Remove.
29957 (dir_len): Renamed from dirlen. All callers changed.
29958 Rewrite in terms of base_name, for simplicity and consistency.
29959 (dir_name): Never return NULL. All callers changed.
29960 Do not include <stdlib.h> in test program; no longer needed.
29961 return 0; is fine for test program.
29963 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
29965 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
29967 * lib/path-concat.c (path_concat): Use base_len to compute
29968 base length, not strlen; this means we cannot rely on memcpy
29971 * lib/same.c (STREQ): Remove.
29972 (same_name): Handle the case where the basename ends in trailing '/'.
29974 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
29975 a slash was stripped. Do not strip the last slash after a
29976 file system prefix.
29978 2001-05-11 Paul Eggert <eggert@twinsun.com>
29980 * lib/Makefile.am (libfetish_a_SOURCES):
29981 Add strftime.c, since we now compile it on all hosts.
29983 * lib/strftime.c (my_strftime):
29984 Define to nstrftime if emacs, but only if my_strftime is not defined.
29985 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
29986 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
29987 Add one more extra argument: a nanoseconds value.
29990 (my_strftime function): Add %N format.
29991 (emacs_strftimeu): Renamed from emacs_strftime,
29992 with extra ut argument.
29994 2001-05-09 Paul Eggert <eggert@twinsun.com>
29996 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
29998 2001-04-21 Jim Meyering <meyering@lucent.com>
30000 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
30003 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
30005 * m4/ftruncate.m4: Check for chsize.
30006 Link with ftruncate.o unconditionally if ftruncate is missing.
30007 This was required when cross-compiling to i586-mingw32msvc.
30009 2001-04-08 Jim Meyering <meyering@lucent.com>
30011 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
30012 recomputed; that's necessary when the offset spans a DST transition.
30013 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
30015 2001-04-02 Jim Meyering <meyering@lucent.com>
30017 * lib/regex.h, regex.c: Update from GNU libc.
30019 2001-03-24 Jim Meyering <meyering@lucent.com>
30021 * m4/jm-macros.m4: Require autoconf-2.49d.
30023 2001-03-20 Bruno Haible <haible@clisp.cons.org>
30025 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
30027 2001-03-19 Paul Eggert <eggert@twinsun.com>
30029 * lib/version-etc.c (version_etc_copyright): Update to 2001.
30031 2001-03-17 Jim Meyering <meyering@lucent.com>
30033 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
30034 now that the version in autoconf is equivalent.
30035 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
30037 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
30038 Suggestion from Akim Demaille.
30040 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
30041 (jm_PREREQ_TEMPNAME): New function.
30043 2001-03-16 Paul Eggert <eggert@twinsun.com>
30045 * lib/tempname.c (uint64_t): Define to uintmax_t if
30046 not defined, and if UINT64_MAX is not defined.
30047 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
30048 Reported by John David Anglin.
30050 2001-03-15 Bruno Haible <haible@clisp.cons.org>
30052 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
30053 resolve alias if codeset is empty.
30054 * lib/config.charset (BeOS): Use wildcard syntax.
30056 2001-03-13 Jim Meyering <meyering@lucent.com>
30058 * lib/path-concat.c (path_concat)
30059 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
30060 concatenating e.g., `C:' and `foo'.
30063 2001-03-06 Bruno Haible <haible@clisp.cons.org>
30065 * lib/localcharset.c (locale_charset): Don't use
30066 setlocale(LC_CTYPE,NULL). Don't return NULL.
30067 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
30069 2001-03-06 Bruno Haible <haible@clisp.cons.org>
30071 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
30072 support for DOS/DJGPP.
30074 2001-03-01 Paul Eggert <eggert@twinsun.com>
30076 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
30077 lacks mkstemp. Compile our own tempname.c if we compile our own
30078 mkstemp.c, as mkstemp relies on tempname.
30080 2001-03-01 Jim Meyering <meyering@lucent.com>
30082 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
30083 AH_VERBATIM really does output its argument verbatim.
30085 2001-02-28 Paul Eggert <eggert@twinsun.com>
30087 * lib/Makefile.am (libfetish_a_SOURCES):
30088 Add dup-safer.c, fopen-safer.c.
30089 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
30091 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
30092 * lib/unistd-safer.h: New files.
30094 2001-02-25 Paul Eggert <eggert@twinsun.com>
30096 The mkstemp replacement is taken from glibc 2.2.2, with some
30097 portability fixes for use outside glibc, as follows:
30099 * lib/tempname.c (struct_stat64): New macro.
30100 (direxists, __gen_tempname): Use it.
30101 This avoids a portability problem with Solaris 8.
30103 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
30104 (<stddef.h>, <stdint.h>, <string.h>):
30105 Include only if STDC_HEADERS || _LIBC.
30106 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
30107 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
30108 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
30109 (__set_errno): Define this macro if <errno.h> doesn't.
30110 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
30111 Define these macros if <stdio.h> doesn't.
30112 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
30113 Define these macros if <sys/stat.h>
30114 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
30115 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
30116 __xstat64): Define if not _LIBC.
30117 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
30118 (__gen_tempname): Invoke gettimeofday only if
30119 HAVE_GETTIMEOFDAY || _LIBC;
30120 otherwise, fall back on plain "time".
30121 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
30123 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
30125 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
30127 2001-02-18 Paul Eggert <eggert@twinsun.com>
30129 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
30131 2001-02-17 Paul Eggert <eggert@twinsun.com>
30133 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
30134 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
30135 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
30136 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
30138 2001-02-17 Paul Eggert <eggert@twinsun.com>
30140 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
30141 Remove workaround macros for hosts that have mbrtowc but not
30142 mbstate_t, as we now insist on proper declarations for both
30143 before using mbrtowc.
30145 2001-02-17 Jim Meyering <meyering@lucent.com>
30147 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
30148 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
30149 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
30152 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
30153 rather than AC_CACHE_VAL.
30155 2001-02-17 Jim Meyering <meyering@lucent.com>
30157 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
30158 around included file name.
30160 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
30162 * lib/strftime.c: Update from GNU libc (the only changes were to
30165 2001-02-17 Jim Meyering <meyering@lucent.com>
30167 * lib/regex.c: Update from libc.
30169 2001-02-17 Bruno Haible <haible@clisp.cons.org>
30171 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
30174 2001-02-16 Paul Eggert <eggert@twinsun.com>
30176 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
30177 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
30178 Reported by Mark Hounschell via Paul Eggert.
30180 2001-02-07 Jim Meyering <meyering@lucent.com>
30182 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
30184 2001-02-05 Jim Meyering <meyering@lucent.com>
30186 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
30187 it includes the patch required for `large file' support with at least
30188 HP-UX's 10.20 /bin/cc.
30190 2001-02-03 Jim Meyering <meyering@lucent.com>
30192 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
30193 AS_IF, now that it works once again (mysteriously).
30194 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
30196 2001-01-30 Jim Meyering <meyering@lucent.com>
30198 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
30199 * m4/chown.m4: Rename conftestchown to conftest.chown.
30200 * m4/rename.m4: s/conftestdir/conftest.d1/ and
30201 s/conftestdir2/conftest.d2/.
30202 * m4/utimes.m4: s/conftestdata/conftest.data/
30203 Inspired by Pavel Roskin's change in autoconf.
30205 2001-01-30 Bruno Haible <haible@clisp.cons.org>
30207 * lib/config.charset: Update for FreeBSD 4.2.
30209 2001-01-27 Jim Meyering <meyering@lucent.com>
30211 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
30213 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
30215 2001-01-26 Jim Meyering <meyering@lucent.com>
30217 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
30218 quotearg.c includes it.
30220 2001-01-26 Jim Meyering <meyering@lucent.com>
30222 * lib/quotearg.c: Include stddef.h.
30223 * lib/quote.c: Include stddef.h.
30224 Reported by Axel Kittenberger.
30226 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
30227 line in double quotes so that it evokes a better diagnostic.
30228 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
30229 Reported by Axel Kittenberger.
30231 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
30233 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
30234 as if it was a `charset'.
30236 2001-01-21 Bruno Haible <haible@clisp.cons.org>
30238 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
30241 2001-01-21 Bruno Haible <haible@clisp.cons.org>
30243 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
30244 to avoid a warning. Add back 'const' to inptr.
30246 2001-01-20 Jim Meyering <meyering@lucent.com>
30248 Be sure that headers are checked before used in code compiled
30249 for the type checks.
30250 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
30251 In place of that, invoke jm_CHECK_ALL_TYPES.
30252 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
30253 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
30254 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
30255 The check for ssize_t was mistakenly run before the test for unistd.h.
30257 The configure-time check for stdbool.h was missing.
30258 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
30259 (jm_PREREQ_HASH): New function.
30261 2001-01-17 Jim Meyering <meyering@lucent.com>
30263 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
30264 for autoconf-2.49c.
30265 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
30267 2001-01-16 Jim Meyering <meyering@lucent.com>
30269 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
30272 2001-01-14 Jim Meyering <meyering@lucent.com>
30274 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
30275 foo and bar. Create conftestdir/ in the script, not in the C code.
30276 Remove directories in the script, not in the C code.
30277 Remove conftestdir{,2} before trying to create the directory.
30278 Make the entire configure script fail if the mkdir fails.
30280 2001-01-14 Jim Meyering <meyering@lucent.com>
30282 * lib/rename.c: New file. From Volker Borchert.
30283 Include stdlib.h, string.h or strings.h, and xalloc.h.
30284 Use strip_trailing_slashes rather than open-coding it.
30286 2001-01-03 Paul Eggert <eggert@twinsun.com>
30288 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
30290 2001-01-03 Jim Meyering <meyering@lucent.com>
30292 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
30293 of local `inptr' to avoid warning with some system declarations of
30296 2001-01-02 Volker Borchert <bt@teknon.de>
30298 * m4/rename.m4: New file.
30299 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
30301 2001-01-01 Jim Meyering <meyering@lucent.com>
30303 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
30304 even on systems with utmpx.h. It's necessary for the declaration of
30305 utmp's ut_user member. Reported by Andreas Jaeger.
30307 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
30308 available. They are required for the declarations of getgrgid and
30310 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
30311 Reported by Andreas Jaeger.
30313 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
30315 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
30316 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
30317 so `make install' also works in VPATH builds.
30319 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
30321 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
30322 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
30323 can be used in subdirectories.
30325 2000-12-29 Paul Eggert <eggert@twinsun.com>
30327 * lib/modechange.c: Do not assume that mode_t uses the
30328 traditional octal encoding. E.g. "chmod 1 FOO" should set
30329 the other-execute bit of FOO even if S_IXOTH != 1.
30331 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
30332 WOTH, XOTH, ALLM): New macros.
30333 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
30334 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
30336 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
30337 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
30339 No need to use uintmax_t; unsigned long is long enough.
30340 Don't bother to get suffix since we don't use it.
30342 2000-12-26 Jim Meyering <meyering@lucent.com>
30344 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
30345 better with autoheader.
30347 2000-12-24 Jim Meyering <meyering@lucent.com>
30349 * lib/hash.c (is_prime): Return explicit boolean values.
30350 (hash_get_first): Return NULL to appease Irix5.6's 89.
30351 Reported by Nelson Beebe.
30353 2000-12-19 Bruno Haible <haible@clisp.cons.org>
30355 * lib/localcharset.c (locale_charset): Add support for Win32.
30357 2000-12-18 Paul Eggert <eggert@twinsun.com>
30359 * lib/physmem.h, lib/physmem.c: New files.
30361 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
30362 (noinst_HEADERS): Add physmem.h.
30364 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
30365 't' for compatibility with Solaris 8 sort.
30367 2000-12-18 Bruno Haible <haible@clisp.cons.org>
30369 * lib/config.charset: Add support for BeOS.
30371 2000-12-17 Jim Meyering <meyering@lucent.com>
30373 * m4/dos.m4 (jm_AC_DOS): New file and macro.
30374 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
30376 2000-12-16 Jim Meyering <meyering@lucent.com>
30378 This bug had a serious impact on chown: `chown N:M FILE' (for integer
30379 N and M) would have treated it like `chown N:N FILE'.
30381 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
30383 2000-12-16 Jim Meyering <meyering@lucent.com>
30385 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
30386 SHELLS_FILE to a file name that's useful on djgpp systems.
30388 (ADDITIONAL_DEFAULT_SHELLS): Define.
30389 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
30390 Based mostly on a patch from Prashant TR.
30392 2000-12-16 Bruno Haible <haible@clisp.cons.org>
30394 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
30395 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
30396 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
30398 2000-12-08 Andreas Schwab <schwab@suse.de>
30400 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
30401 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
30403 2000-12-07 Jim Meyering <meyering@lucent.com>
30405 * lib/stripslash.c (ISSLASH): Define.
30406 (strip_trailing_slashes): Use ISSLASH rather than comparing against
30410 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
30411 (dir_name_r): Declare this function as static.
30412 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
30413 manifest itself on a name containing a mix of slashes and
30415 Make this function work with names starting with a DOS-style
30416 drive letter and colon prefix.
30417 (dir_name): Append `.' if necessary.
30418 Based mostly on patches from Prashant TR and Eli Zaretskii.
30420 * lib/dirname.h (dir_name_r): Remove prototype.
30422 2000-12-06 Paul Eggert <eggert@twinsun.com>
30424 * m4/off_t-format.m4: Remove this file.
30425 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
30427 2000-12-06 Jim Meyering <meyering@lucent.com>
30429 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
30430 replacement strtoull, we may well need the replacement strtoul, too.
30431 Check for declarations of strtoul and strtoull.
30432 Check for strtol. Mainly as a cue to cause automake to include
30433 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
30434 Check for limits.h -- strtol.c needs it.
30436 2000-12-05 Jim Meyering <meyering@lucent.com>
30438 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
30440 2000-12-04 Jim Meyering <meyering@lucent.com>
30442 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
30443 Also include memory.h, stdlib.h, unistd.h if appropriate.
30444 Reported by Andreas Jaeger (conflicting declaration of malloc).
30446 2000-12-02 Jim Meyering <meyering@lucent.com>
30448 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
30449 * m4/jm-macros.m4 (jm_MACROS): require it.
30451 2000-12-02 Jim Meyering <meyering@lucent.com>
30453 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
30455 2000-12-01 Paul Eggert <eggert@twinsun.com>
30457 * lib/memrchr.c: Include <config.h> before any system include file.
30459 2000-11-30 Jim Meyering <meyering@lucent.com>
30461 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
30463 2000-11-30 Jim Meyering <meyering@lucent.com>
30465 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
30467 2000-11-29 Paul Eggert <eggert@twinsun.com>
30469 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
30471 2000-11-26 Jim Meyering <meyering@lucent.com>
30473 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
30475 2000-11-22 Paul Eggert <eggert@twinsun.com>
30477 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
30478 size of (size_t) -1; it's not portable.
30480 2000-11-17 Jim Meyering <meyering@lucent.com>
30482 * lib/strstr.c: Update from GNU libc.
30484 2000-11-17 Akim Demaille <akim@epita.fr>
30486 * lib/obstack.h: Formatting changes.
30487 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
30488 prevent type checking.
30489 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
30490 cast the value to (void *): assigning a `foo *' to a `void *'
30492 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
30494 2000-11-16 Jim Meyering <meyering@lucent.com>
30496 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
30498 2000-11-11 Jim Meyering <meyering@lucent.com>
30500 * lib/error.c: Add a couple #includes, merging from GNU libc version.
30502 2000-11-10 Jim Meyering <meyering@lucent.com>
30504 * lib/obstack.h: Update from GNU libc.
30505 * lib/obstack.c: Likewise.
30507 2000-11-08 Bruno Haible <haible@clisp.cons.org>
30509 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
30511 2000-11-06 Paul Eggert <eggert@twinsun.com>
30513 * lib/getusershell.c (setusershell): Use rewind rather than
30514 fseek/fseeko, to avoid configuration hassles with fseeko.
30515 Don't bother opening SHELLS_FILE if shellstream is NULL;
30516 it's not necessary.
30518 2000-11-05 Jim Meyering <meyering@lucent.com>
30520 * lib/makepath.h (make_dir): Declare.
30521 * lib/makepath.c (make_dir): Remove `static' attribute.
30524 2000-11-04 Jim Meyering <meyering@lucent.com>
30526 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
30528 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
30530 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
30531 last one in a bucket, advance to the next bucket.
30533 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
30535 * lib/fnmatch.c: Do not comment out all the code if we are using
30536 the GNU C library, because in some cases we are replacing buggy
30537 code in the GNU C library itself.
30539 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
30541 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
30542 (regex_compile): Catch bogus \(\1\).
30544 2000-10-30 Paul Eggert <eggert@twinsun.com>
30546 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
30547 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
30548 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
30550 2000-10-30 Paul Eggert <eggert@twinsun.com>
30552 * lib/error.h, getline.h, modechange.h:
30553 Remove "2000" from Copyright line, as the file hasn't been
30554 changed this year other than in the copyright notice.
30556 * lib/xalloc.h: Add "2000" to Copyright line, as this file
30557 was changed this year.
30559 2000-10-29 Jim Meyering <meyering@lucent.com>
30561 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
30563 * m4/ls-mntd-fs.m4: Likewise
30565 2000-10-29 Jim Meyering <meyering@lucent.com>
30567 * lib/xstat.in: Fix grammar in comment.
30569 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
30571 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
30572 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
30573 doesn't define __restrict_arr.
30575 2000-10-28 Jim Meyering <meyering@lucent.com>
30577 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
30578 (jm_PREREQ_MEMCHR): New function.
30580 2000-10-28 Jim Meyering <meyering@lucent.com>
30582 * lib/memchr.c: Update from libc.
30583 Adjust for portability:
30584 [HAVE_STDLIB_H]: Include stdlib.h.
30585 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
30586 Undef __memchr, too.
30587 [!weak_alias]: Define __memchr to memchr.
30589 * lib/regex.c: Update from libc.
30590 * lib/regex.h: Likewise.
30591 * lib/getopt1.c: Likewise.
30592 * lib/memcmp.c: Likewise.
30594 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
30595 Avoid using fseek, when possible -- it's broken by design.
30596 Patch by Ulrich Drepper.
30598 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
30600 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
30601 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
30602 Giving in to popular pressure to shut up the compiler with casts.
30604 2000-10-26 Jim Meyering <meyering@lucent.com>
30606 * lib/strftime.c: Update from libc.
30608 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
30610 * regex.c: More `unsigned char' -> `re_char' changes.
30611 Also change several `int' into `re_wchar_t'.
30612 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
30613 (PUSH_FAILURE_POINTER): Don't cast any more.
30614 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
30615 We want GCC to complain, since this piece of code makes
30616 re_match non-reentrant, which *should* be fixed.
30617 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
30618 (EXTEND_BUFFER): Use RETALLOC.
30619 (SET_LIST_BIT): Don't cast.
30620 (re_wchar_t): New type.
30621 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
30622 that those two functions will always properly return.
30623 (IMMEDIATE_QUIT_CHECK): Cast to void.
30624 (analyse_first): Use recursion rather than an explicit stack.
30625 (re_compile_fastmap): Can't fail anymore.
30626 (re_search_2): Don't check re_compile_fastmap for failure.
30627 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
30628 Now also sets the new value (passed in a new argument).
30629 (re_match_2_internal): Use it.
30630 Also, use a new var `reg' of type size_t when looping through regs
30631 rather than reuse the inappropriate `mcnt'.
30633 2000-10-25 Jim Meyering <meyering@lucent.com>
30635 * lib/obstack.c: Update from libc.
30637 2000-10-24 Kenichi Handa <handa@etl.go.jp>
30639 * regex.c (regex_compile): Change the way of handling a range from
30640 a char less than 256 to a char not less than 256.
30642 2000-10-24 Andrew Innes <andrewi@gnu.org>
30644 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
30646 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
30647 so that re_search functions only quit when callers expect them to.
30649 2000-10-23 Jim Meyering <meyering@lucent.com>
30651 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
30652 wrong. That set_locale call must not have any side effects.
30655 2000-10-22 Jim Meyering <meyering@lucent.com>
30657 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
30658 [CYCLIC]: Remove now-unused definition.
30660 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
30661 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
30662 Suggestion from Ulrich Drepper.
30664 2000-10-21 Jim Meyering <meyering@lucent.com>
30666 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
30667 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
30668 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
30670 2000-10-21 Jim Meyering <meyering@lucent.com>
30672 * lib/dirname.c (memrchr): Declare if necessary.
30673 (dir_name): Remove the restriction that there be no
30674 trailing slashes. Now, this code skips past them, effectively
30676 [TEST_DIRNAME] (main): New unit tests.
30678 * lib/memrchr.c: New file from GNU libc.
30679 Undef __memrchr, too.
30680 [!weak_alias]: Define __memrchr to memrchr.
30681 Guard weak_alias use with `#ifdef weak_alias'.
30683 2000-10-21 Jim Meyering <meyering@lucent.com>
30685 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
30686 (dir_name): Use dir_name_r.
30687 * lib/dirname.h (dir_name_r): Declare it.
30689 2000-10-17 Jim Meyering <meyering@lucent.com>
30691 * lib/quote.h (PARAMS): Define and use.
30692 Reported by Akim Demaille.
30694 * lib/getopt.c: Update from libc.
30696 2000-10-16 Jim Meyering <meyering@lucent.com>
30698 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
30702 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
30704 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
30706 2000-09-25 Jim Meyering <meyering@lucent.com>
30708 * lib/md5.h (rol): Define (from GnuPG).
30710 * lib/sha.c: Give credit (GnuPG) where due.
30711 (M): Use rol rather than open-coding it.
30712 Add a FIXME comment.
30714 2000-09-21 Jim Meyering <meyering@lucent.com>
30716 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
30717 Reported by Michael Stone.
30719 2000-09-20 Jim Meyering <meyering@lucent.com>
30721 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
30722 (noinst_HEADERS): Add sha.h.
30723 Based on code from Scott G. Miller and from GnuPG.
30725 2000-09-18 Jim Meyering <meyering@lucent.com>
30727 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
30728 LIBS. Otherwise, everyone ends up linking with -lelf for some
30730 Reported by Mike Stone.
30732 2000-09-15 Jim Meyering <meyering@lucent.com>
30734 * lib/regex.c: Update from libc.
30736 2000-09-10 Jim Meyering <meyering@lucent.com>
30738 * lib/getopt.c (_getopt_internal): Update from glibc.
30740 2000-09-09 Jim Meyering <meyering@lucent.com>
30742 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
30743 think it should be used as a general replacement for isascii.
30744 * lib/fnmatch.c: Likewise.
30745 * lib/mbswidth.c: Likewise
30746 * lib/regex.c: Likewise.
30749 * lib/userspec.c: Include sys/param.h and limits.h.
30751 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
30752 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
30753 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
30754 UID, GID. Check range.
30756 2000-09-06 Jim Meyering <meyering@lucent.com>
30758 * lib/getopt.c (_getopt_internal): Update from glibc.
30760 2000-08-30 Jim Meyering <meyering@lucent.com>
30762 * lib/strftime.c: Merge in changes from GNU libc.
30764 2000-08-26 Jim Meyering <meyering@lucent.com>
30766 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
30767 * m4/fpending.m4: New file.
30769 2000-08-26 Jim Meyering <meyering@lucent.com>
30771 * lib/closeout.c: Include "__fpending.h".
30772 (close_stdout_status): Return right away if there's nothing to flush.
30774 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
30775 * lib/__fpending.c: New file.
30776 * lib/__fpending.h: New file.
30778 2000-08-20 Jim Meyering <meyering@lucent.com>
30780 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
30781 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
30782 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
30784 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
30786 Improve fileutils installation on systems where running
30787 programs (like install) can't be unlinked.
30788 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
30789 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
30791 2000-08-07 Paul Eggert <eggert@twinsun.com>
30793 Standardize on "memory exhausted" instead of "Memory exhausted"
30794 or "virtual memory exhausted".
30795 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
30796 "virtual memory exhausted".
30797 * lib/same.c (same_name): Invoke xalloc_die instead of printing
30799 * lib/userspec.c (parse_user_spec): Likewise.
30800 * lib/bumpalloc.h: comment fix
30801 * lib/same.c, userspec.c: Include xalloc.h.
30803 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
30804 not char *const and pointing to a constant array.
30805 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
30806 (xrealloc): Comment fix.
30808 * lib/userspec.c (parse_user_spec):
30809 Don't translate a message until just before returning,
30810 to avoid unnecessary translation.
30812 2000-08-07 Jim Meyering <meyering@lucent.com>
30814 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
30815 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
30816 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
30817 getgroups.c, gethostname.c, getopt.h, group-member.c,
30818 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
30819 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
30820 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
30821 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
30822 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
30823 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
30824 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
30825 yesno.c: Back out Copyright date changes for each file with no change
30826 this year. This eases coordination with other programs using the same
30827 source code modules. From Paul Eggert.
30829 2000-08-06 Paul Eggert <eggert@twinsun.com>
30831 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
30832 not char, for compatibility with glibc 2.1.3 strftime.c.
30834 2000-08-03 Greg McGary <greg@mcgary.org>
30836 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
30837 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
30838 (EXTEND_BUFFER): Use them.
30840 2000-08-01 Jim Meyering <meyering@lucent.com>
30842 * lib/dirname.c (ISSLASH): Define.
30843 (BACKSLASH_IS_PATH_SEPARATOR): Define.
30844 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
30845 both `\' and `/' may be use as path separators.
30846 Based on a patch from Prashant TR.
30848 2000-07-31 Paul Eggert <eggert@twinsun.com>
30850 * lib/quotearg.c (quotearg_n_options): Don't make the initial
30851 slot vector a constant, since it might get modified.
30853 2000-07-31 Jim Meyering <meyering@lucent.com>
30855 * lib/xmalloc.c: Use `virtual memory exhausted', not
30856 `Memory exhausted'.
30857 * lib/obstack.c (print_and_abort): Likewise.
30859 2000-07-30 Paul Eggert <eggert@twinsun.com>
30861 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
30862 buffer, so that the caller can always quote one small
30863 component of a "memory exhausted" message in slot 0.
30864 From a suggestion by Jim Meyering.
30866 2000-07-30 Jim Meyering <meyering@lucent.com>
30868 * lib/makepath.c (make_path): Quote the other instance, too.
30870 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
30871 (STATIC_BUF_SIZE): Define.
30872 (quotearg_n_options): Use only statically allocated storage when
30873 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
30874 than STATIC_BUF_SIZE.
30876 2000-07-29 Jim Meyering <meyering@lucent.com>
30878 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
30879 * lib/dirname.c (dir_name): Likewise.
30881 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
30884 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
30885 (dir_name): Assert that there are no trailing slashes.
30887 2000-07-29 Bruno Haible <haible@clisp.cons.org>
30889 * lib/mbswidth.h (mbswidth): Add a flags argument.
30890 (mbswidth): New declaration.
30891 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
30892 * lib/mbswidth.c (mbswidth): Add a flags argument.
30893 (mbsnwidth): New function.
30895 2000-07-24 Jim Meyering <meyering@lucent.com>
30897 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
30899 2000-07-23 Paul Eggert <eggert@twinsun.com>
30901 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
30903 2000-07-23 Paul Eggert <eggert@twinsun.com>
30905 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
30906 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
30907 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
30908 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
30909 invoke multibyte primitives.
30911 2000-07-23 Paul Eggert <eggert@twinsun.com>
30914 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
30915 so that mbstate_t is always defined.
30917 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
30918 be 1 in at least one GCC installation, and this configuration
30919 error is likely to be common. Ignoring MB_LEN_MAX hurts
30920 performance on hosts that have mbrtowc but have only unibyte
30921 locales, but I assume these hosts are rare.
30923 2000-07-23 Paul Eggert <eggert@twinsun.com>
30925 * lib/mbswidth.c (_XOPEN_SOURCE):
30926 Don't define; this causes problems on Solaris 7.
30927 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
30929 2000-07-23 Jim Meyering <meyering@lucent.com>
30931 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
30932 too: getgrgid, getpwuid, getuid.
30934 2000-07-23 Jim Meyering <meyering@lucent.com>
30936 * lib/basename.c (base_name): Add an assertion.
30938 2000-07-23 Bruno Haible <haible@clisp.cons.org>
30940 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
30941 shadow its mbsinit function.
30943 2000-07-17 Bruno Haible <haible@clisp.cons.org>
30945 * lib/mbswidth.h: New file.
30946 * lib/mbswidth.c: New file.
30947 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
30948 (noinst_HEADERS): Add mbswidth.h.
30950 2000-07-17 Bruno Haible <haible@clisp.cons.org>
30952 * lib/config.charset: Add support for FreeBSD. Improve support for
30955 2000-07-16 Bruno Haible <haible@clisp.cons.org>
30957 * m4/mbswidth.m4: New file.
30958 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
30960 2000-07-15 Jim Meyering <meyering@lucent.com>
30962 * lib/makepath.c: Include quote.h.
30963 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
30964 corresponding argument in a `quote (...)' call.
30965 Give better diagnostics.
30967 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
30968 (noinst_HEADERS): Add quote.h.
30970 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
30971 from tar's src/misc.c.
30972 * lib/quote.h: New file. Prototypes for same.
30974 2000-07-14 Paul Eggert <eggert@twinsun.com>
30976 From a suggestion by Bruno Haible.
30977 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
30978 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
30979 to decide whether to define the BeOS workaround macro;
30980 this adjusts to the change to AC_MBSTATE_T.
30982 2000-07-14 Jim Meyering <meyering@lucent.com>
30984 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
30985 jm_AC_TYPE_UINTMAX_T.
30987 2000-07-13 Paul Eggert <eggert@twinsun.com>
30989 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
30991 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
30992 quotearg_buffer_restyled): Add support for
30993 clocale_quoting_style. Undo previous change to
30994 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
30995 and "{RIGHT QUOTATION MARK}" msgids.
30997 2000-07-10 Paul Eggert <eggert@twinsun.com>
30999 From a suggestion by Bruno Haible.
31000 * m4/mbstate_t.m4 (AC_MBSTATE_T):
31001 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
31002 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
31003 and mbstate_t, to a single-part test that simply defines mbstate_t.
31004 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
31005 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
31007 2000-07-10 Jim Meyering <meyering@lucent.com>
31009 * m4/strerror_r.m4: Mirror the correction made in autoconf.
31011 * m4/gnu-source.m4: Output to confdefs.h directly.
31012 Suggestion from Akim Demaille.
31014 2000-07-09 Paul Eggert <eggert@twinsun.com>
31016 The old behavior of quoting `like this' doesn't look good with
31017 newer, ISO-style fonts. See:
31018 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
31020 Instead, quote "like this" by default. Let the translator
31021 tailor the locale-specific quoting behavior by providing
31022 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
31024 * lib/quotearg.c (N_): New macro.
31025 (gettext_default): New function.
31026 (quotearg_buffer_restyled): Use
31027 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
31028 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
31030 2000-07-09 Jim Meyering <meyering@lucent.com>
31032 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
31033 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
31035 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
31036 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
31038 2000-07-09 Jim Meyering <meyering@lucent.com>
31040 * lib/Most files: Update copyright dates to include 2000.
31042 2000-07-08 Jim Meyering <meyering@lucent.com>
31044 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
31046 (xgethostname): Remove now-unnecessary #ifdef.
31047 Move declaration of `err' into loop where it's used.
31049 2000-07-05 Paul Eggert <eggert@twinsun.com>
31050 and Bruno Haible <haible@clisp.cons.org>
31052 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
31053 only if the test for an object-type mbstate_t fails. This
31054 prevents us from mistakenly reporting that mbstate_t is a
31055 system object type after we "#define mbstate_t int" to work
31058 2000-07-05 Paul Eggert <eggert@twinsun.com>
31059 and Bruno Haible <haible@clisp.cons.org>
31061 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
31063 2000-07-05 Bruno Haible <haible@clisp.cons.org>
31065 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
31067 Include <ctype.h> for use of isalpha.
31069 2000-07-05 Bruno Haible <haible@clisp.cons.org>
31071 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
31072 by allocating a larger buffer. Test the gethostname return value for
31073 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
31074 returns an error and ENAMETOOLONG isn't defined.
31076 2000-07-05 Bruno Haible <haible@clisp.cons.org>
31078 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
31081 2000-07-04 Jim Meyering <meyering@lucent.com>
31083 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
31084 of the deprecated AC_CHECKING.
31086 2000-07-04 Jim Meyering <meyering@lucent.com>
31088 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
31089 Reported by Bruno Haible.
31091 2000-07-04 Jim Meyering <meyering@lucent.com>
31093 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
31094 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
31097 2000-07-03 Paul Eggert <eggert@twinsun.com>
31099 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
31100 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
31102 2000-07-03 Paul Eggert <eggert@twinsun.com>
31103 and Bruno Haible <haible@clisp.cons.org>
31105 * lib/quotearg.c (mbrtowc):
31106 Assign to *pwc, and return 1 only if result is nonzero.
31107 (iswprint): Use ISPRINT when substituting our own mbrtowc.
31109 2000-07-03 Jim Meyering <meyering@lucent.com>
31111 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
31113 2000-07-03 Jim Meyering <meyering@lucent.com>
31115 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
31116 This is necessary to get a definition of e.g., UTMP_FILE on
31120 2000-07-02 Jim Meyering <meyering@lucent.com>
31122 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
31124 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
31125 AC_LIBOBJ(function_name).
31126 * m4/chown.m4: Likewise.
31127 * m4/fnmatch.m4: Likewise.
31128 * m4/ftruncate.m4: Likewise.
31129 * m4/getgroups.m4: Likewise.
31130 * m4/getline.m4: Likewise.
31131 * m4/group-member.m4: Likewise.
31132 * m4/jm-macros.m4: Likewise.
31133 * m4/lstat.m4: Likewise.
31134 * m4/malloc.m4: Likewise.
31135 * m4/memcmp.m4: Likewise.
31136 * m4/nanosleep.m4: Likewise.
31137 * m4/putenv.m4: Likewise.
31138 * m4/realloc.m4: Likewise.
31139 * m4/regex.m4: Likewise.
31140 * m4/stat.m4: Likewise.
31141 * m4/strftime.m4: Likewise.
31143 2000-07-02 Jim Meyering <meyering@lucent.com>
31145 * lib/quotearg.c (mbstate_t): Don't define here.
31147 2000-07-02 Jim Meyering <meyering@lucent.com>
31149 * lib/nanosleep.c (SIGCONT): Define if not already defined.
31151 2000-07-01 Jim Meyering <meyering@lucent.com>
31153 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
31155 2000-07-01 Jim Meyering <meyering@lucent.com>
31157 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
31160 2000-07-01 Bruno Haible <haible@clisp.cons.org>
31162 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
31163 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
31165 2000-07-01 Bruno Haible <haible@clisp.cons.org>
31167 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
31168 per change in ../m4/ls-mntd-fs.m4.
31169 (read_filesystem_list): Ignore symbolic links.
31171 2000-06-29 Jim Meyering <meyering@lucent.com>
31173 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
31174 for declaration of strcmp.
31176 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
31178 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
31179 Avoid warning by casting result to `char *' to remove `const'.
31181 2000-06-28 Jim Meyering <meyering@lucent.com>
31183 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
31184 included by quotearg.c, for which we perform this test. From
31187 2000-06-27 Bruno Haible <haible@clisp.cons.org>
31189 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
31190 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
31191 <utmpx.h> exists, put readutmp.o into LIBOBJS.
31193 2000-06-27 Bruno Haible <haible@clisp.cons.org>
31195 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
31197 2000-06-26 Paul Eggert <eggert@twinsun.com>
31199 savedir now sets errno on failure and invokes xmalloc to get memory.
31200 Fix a couple of other minor bugs while we're at it.
31202 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
31203 (NAMLEN): Remove macro.
31204 (malloc, realloc): Remove decls.
31205 (stpcpy): Likewise.
31206 ("xalloc.h"): Include.
31207 (NAME_SIZE_DEFAULT): New macro.
31208 (savedir): Use xmalloc / xrealloc to allocate memory.
31209 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
31210 Skip "" directory entries.
31211 Use strlen to calculate directory entry length, since the old method
31212 is rarely used these days and isn't worth supporting.
31213 Don't use a pointer after freeing it.
31214 Check for integer overflow when calculating allocation size.
31215 Use memcpy to copy entries, instead of stpcpy.
31216 Set errno properly when returning NULL.
31217 Check for readdir error.
31219 2000-06-26 Jim Meyering <meyering@lucent.com>
31221 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
31223 2000-06-25 Jim Meyering <meyering@lucent.com>
31225 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
31226 Linux header bug when _XOPEN_SOURCE is defined to 500.
31228 2000-06-25 Bruno Haible <haible@clisp.cons.org>
31230 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
31233 2000-06-25 Bruno Haible <haible@clisp.cons.org>
31235 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
31237 Don't include <stdlib.h>. Don't declare malloc, realloc.
31239 2000-06-24 Jim Meyering <meyering@lucent.com>
31241 * m4/strerror_r.m4: Revive this file -- to try out an experimental
31242 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
31243 for which strerror does return char*, but which lacks a conveniently
31244 accessible declaration of the function. If the compile-test says
31245 strerror_r doesn't work, then resort to a `run'-test that works on
31246 BeOS and segfaults on DEC Unix.
31248 2000-06-24 Jim Meyering <meyering@lucent.com>
31250 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
31252 2000-06-23 Paul Eggert <eggert@twinsun.com>
31254 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
31255 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
31257 2000-06-23 Paul Eggert <eggert@twinsun.com>
31259 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
31260 (mbrtowc, mbstate_t): Define substitutes if
31261 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
31262 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
31263 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
31265 2000-06-23 Jim Meyering <meyering@lucent.com>
31267 * m4/afs.m4: Add missing AC_MSG_RESULT.
31268 Reported by Bruno Haible.
31270 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
31271 Suggestion from Bruno Haible.
31273 2000-06-23 Jim Meyering <meyering@lucent.com>
31275 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
31277 2000-06-21 Jim Meyering <meyering@lucent.com>
31279 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
31281 2000-06-21 Jim Meyering <meyering@lucent.com>
31283 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
31284 (noinst_HEADERS): Add getstr.h.
31286 * lib/getline.c (getstr): Move into a separate file.
31287 * lib/getstr.c (getstr): New file, extracted from getline.c, with
31288 the following changes: new parameter, delim2; both delim[12]
31289 parameters have type `int', not `char'. The latter would lose
31290 with 8-bit delimiters.
31291 * lib/getstr.h: New file.
31293 2000-06-21 Bruno Haible <haible@clisp.cons.org>
31295 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
31296 than 1024, return a memory chunk of least possible size, instead
31297 of size PATH_MAX + 2. In the loop, increment the size proportionally.
31298 Use free/xmalloc instead of xrealloc to avoid copying for very long
31301 2000-06-21 Bruno Haible <haible@clisp.cons.org>
31303 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
31306 2000-06-21 Bruno Haible <haible@clisp.cons.org>
31308 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
31309 address, not strdup. Include <stdlib.h> and don't declare free().
31311 2000-06-19 Jim Meyering <meyering@lucent.com>
31313 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
31315 2000-06-18 Jim Meyering <meyering@lucent.com>
31317 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
31319 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
31320 `checking whether...' message to be consistent with that of the
31323 2000-06-18 Jim Meyering <meyering@lucent.com>
31325 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
31326 Besides, these days every porting target provides a mkdir function.
31328 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
31329 needed. (this snippet comes from src/system.h).
31331 2000-06-16 Bruno Haible <haible@clisp.cons.org>
31333 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
31335 2000-06-15 Paul Eggert <eggert@twinsun.com>
31337 * lib/human.c (adjust_value): New function.
31338 (human_readable_inexact): Apply rounding style even when
31339 printing approximate values.
31341 2000-06-14 Paul Eggert <eggert@twinsun.com>
31343 * lib/human.c (human_readable_inexact): Allow an input block
31344 size that is not a multiple of the output block size, and vice versa.
31345 Reported by Piergiorgio Sartor.
31347 2000-06-14 Paul Eggert <eggert@twinsun.com>
31349 * lib/getdate.y (get_date): Apply relative times after time
31350 zone indicator, not before. Reported by Todd A. Jacobs.
31352 2000-06-13 Jim Meyering <meyering@lucent.com>
31354 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
31356 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
31358 2000-06-12 Paul Eggert <eggert@twinsun.com>
31360 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
31362 2000-06-12 Jim Meyering <meyering@lucent.com>
31364 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
31365 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
31367 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
31368 the optional argument, `lib'.
31370 2000-06-08 Jim Meyering <meyering@lucent.com>
31372 * m4/largefile.m4: Remove file (now that it's part of autoconf).
31374 2000-06-04 Paul Eggert <eggert@twinsun.com>
31376 Rewrite largefile configuration so that we don't need to run
31377 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
31378 AC_CANONICAL_HOST in configure.in -- jmm]
31380 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
31381 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
31382 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
31383 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
31384 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
31386 Instead of inspecting the output of getconf, try to compile the
31387 test program without and with the macro definition.
31388 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
31389 for getconf. Instead, check for the needed flags by compiling
31392 2000-06-04 Paul Eggert <eggert@twinsun.com>
31394 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
31396 2000-06-04 Jim Meyering <meyering@lucent.com>
31398 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
31399 SunOS 4.1.4 for which gid_t is an unsigned type.
31401 2000-06-03 Jim Meyering <meyering@lucent.com>
31403 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
31404 now that autoconf requires that.
31406 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
31407 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
31408 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
31410 2000-06-03 Jim Meyering <meyering@lucent.com>
31412 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
31414 2000-06-03 Bruno Haible <haible@clisp.cons.org>
31416 * m4/glibc21.m4: New file.
31417 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
31419 2000-06-03 Bruno Haible <haible@clisp.cons.org>
31421 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
31422 newer, don't install charset.alias.
31423 * lib/config.charset: Change the Linux/glibc rules so they become empty
31424 on glibc-2.1 or newer.
31426 2000-06-02 Jim Meyering <meyering@lucent.com>
31428 * lib/mountlist.c: Back out last change. Instead, do this...
31429 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
31430 me_dummy member using the same `ignore'-testing code.
31431 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
31435 2000-05-29 Jim Meyering <meyering@lucent.com>
31437 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
31438 mounts with the `ignore' attribute. Based on a patch from
31441 2000-05-28 Jim Meyering <meyering@lucent.com>
31443 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
31444 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
31445 * m4/stat.m4: Likewise.
31446 * m4/lstat.m4: Likewise.
31447 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
31449 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
31450 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
31452 2000-05-26 Jim Meyering <meyering@lucent.com>
31454 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
31456 2000-05-24 Jim Meyering <meyering@lucent.com>
31458 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
31459 autoconf requires that.
31460 * m4/lib-check.m4: Likewise.
31461 * m4/jm-macros.m4: Likewise.
31462 * m4/strftime.m4: Likewise.
31464 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
31465 AC_CHECK_DECLS, now that autoconf requires that.
31467 2000-05-22 Jim Meyering <meyering@lucent.com>
31469 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
31470 * m4/lstat.m4: Likewise.
31472 2000-05-22 Jim Meyering <meyering@lucent.com>
31474 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
31476 2000-05-20 Jim Meyering <meyering@lucent.com>
31478 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
31479 (jm_PREREQ): Use it.
31481 2000-05-18 Jim Meyering <meyering@lucent.com>
31483 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
31484 back, too, since it may have been modified by allocate_entry.
31485 (hash_delete): Rewrite to use neither the assignment operator
31486 nor the comma operator in an if-expression.
31488 2000-05-15 Paul Eggert <eggert@twinsun.com>
31491 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
31492 Remove; no longer needed.
31493 "quotearg.h": Add include.
31494 (file_name): Do not bother to explicitly initialize to NULL; it's less
31495 efficient on some hosts.
31496 (close_stdout_status): Remove test as to whether stdout was already
31497 closed; it breaks for the case "echo x | sort >&-".
31498 Quote file name colons.
31499 Do not assume that _("write error") lacks format strings.
31501 2000-05-15 Jim Meyering <meyering@lucent.com>
31503 * lib/version-etc.c (version_etc_copyright): Update the copyright
31504 string used in all --version output.
31506 2000-05-14 Jim Meyering <meyering@lucent.com>
31508 * lib/closeout.c (close_stdout_set_file_name): New function.
31509 (close_stdout_status): Use new file-scoped global.
31510 Return right away if fstat says the stdout file descriptor is invalid.
31511 * lib/closeout.h (close_stdout_set_file_name): Declare.
31513 2000-05-10 Jim Meyering <meyering@lucent.com>
31515 * lib/closeout.c [default_exit_status]: New file-scoped variable.
31516 (close_stdout_set_status): New function.
31517 * lib/closeout.h (close_stdout_set_status): Declare.
31519 2000-05-09 Jim Meyering <meyering@lucent.com>
31521 * m4/gettext.m4: Rename this...
31522 * m4/libintl.m4: ...to this.
31524 2000-05-08 Jim Meyering <meyering@lucent.com>
31526 * lib/long-options.c: Don't include closeout.h.
31527 (parse_long_options): Don't call close_stdout for --version.
31529 2000-05-06 Paul Eggert <eggert@twinsun.com>
31531 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
31532 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
31533 2.1.3 bug. This avoids a clash when files like regex.c define
31536 2000-05-06 Jim Meyering <meyering@lucent.com>
31538 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
31539 (AC_REPLACE_FUNCS): Add strnlen.
31541 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
31542 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
31544 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
31545 AC_SEARCH_LIBS call for nanosleep.
31546 (LIB_NANOSLEEP): Set and AC_SUBST.
31548 2000-05-06 Jim Meyering <meyering@lucent.com>
31550 * lib/strnlen.c: Undefine __strnlen and strnlen.
31551 [!weak_alias]: Define __strnlen to strnlen.
31553 * lib/atexit.c: New file, from libiberty.
31555 2000-05-06 Jim Meyering <meyering@lucent.com>
31557 * lib/closeout.c (close_stdout_status): Also check for errors on the
31560 2000-05-05 Jim Meyering <meyering@lucent.com>
31562 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
31563 AC_SEARCH_LIBS call for clock_gettime.
31564 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
31566 * m4/search-libs.m4: Update from autoconf.
31568 su doesn't work on Solaris 2.6.
31569 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
31570 <shadow.h>. Reported by Dragos Harabor.
31572 2000-05-05 Bruno Haible <haible@clisp.cons.org>
31574 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
31575 memcpy instead of xmalloc, xrealloc, path_concat.
31576 (locale_charset): Treat empty environment variables as absent.
31577 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
31579 2000-05-04 Jim Meyering <meyering@lucent.com>
31581 * lib/getopt.c: Update from glibc.
31582 * lib/obstack.c: Likewise.
31583 * lib/obstack.h: Likewise.
31584 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
31587 * lib/regex.h: Likewise.
31588 * lib/strndup.c: Likewise.
31589 * lib/strnlen.c: New file, from glibc.
31591 2000-05-03 Jim Meyering <meyering@lucent.com>
31593 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
31595 2000-05-02 Paul Eggert <eggert@twinsun.com>
31597 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
31598 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
31599 compile-time test, rather than inspecting host and OS, to
31600 decide whether to define _LARGEFILE_SOURCE.
31602 2000-05-01 Jim Meyering <meyering@lucent.com>
31604 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
31606 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
31607 Based on a patch from Bruno Haible.
31609 2000-05-01 Jim Meyering <meyering@lucent.com>
31611 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
31613 2000-04-29 Jim Meyering <meyering@lucent.com>
31615 * lib/path-concat.c: Declare strdup only if it's not defined.
31616 * lib/canon-host.c: Likewise.
31618 2000-04-28 Jim Meyering <meyering@lucent.com>
31620 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
31621 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
31622 is included first, then limits.h is included by locale.h by libintl.h.
31623 From John David Anglin.
31625 2000-04-25 Jim Meyering <meyering@lucent.com>
31627 * lib/makepath.c (S_IRWXUGO): Define.
31628 (make_path): Always perform explicit chmod if MODE specifies any
31629 of the `special' permission bits. Prompted by a bug report against
31630 install from Mate Wierdl and Joost van Baal.
31632 2000-04-18 Jim Meyering <meyering@lucent.com>
31634 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
31635 (jm_PREREQ): Use it.
31637 2000-04-18 Jim Meyering <meyering@lucent.com>
31639 * lib/README: New file.
31641 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
31642 getpagesize. For BeOS. Based on a patch from Bruno Haible.
31644 2000-04-17 Jim Meyering <meyering@lucent.com>
31647 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
31648 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
31649 Suggestion from Akim Demaille.
31651 2000-04-17 Jim Meyering <meyering@lucent.com>
31653 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
31654 the definition of it to rpl_strftime also defined-away the system's
31657 2000-04-15 Jim Meyering <meyering@lucent.com>
31659 Use `C' to denote so-called `contiguous' files, the same way
31661 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
31662 (ftypelet): Use S_ISCTG.
31663 From Michael Deutschmann.
31665 2000-04-14 Jim Meyering <meyering@lucent.com>
31667 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
31668 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
31671 2000-04-14 Jim Meyering <meyering@lucent.com>
31673 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
31675 2000-04-13 Jim Meyering <meyering@lucent.com>
31677 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
31678 AH_VERBATIM to insert required #ifndef into config.h.in.
31679 Suggestion from Akim Demaille.
31681 2000-04-12 Jim Meyering <meyering@lucent.com>
31683 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
31684 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
31685 Christian Krackowizer.
31687 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
31688 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
31689 (AC_SYS_LARGEFILE): Require.
31690 (AM_C_PROTOTYPES): Require.
31692 2000-04-08 Jim Meyering <meyering@lucent.com>
31694 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
31695 names don't conflict. Reported by Eli Zaretskii.
31697 2000-04-07 Jim Meyering <meyering@lucent.com>
31699 * lib/putenv.c: Move inclusion of errno.h so it follows that of
31700 sys/types.h, to work around system header problems on AIX 3.2.5.
31703 2000-04-07 Bruno Haible <haible@clisp.cons.org>
31705 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
31706 bug. Deal with the different error behavior of Irix iconv.
31708 2000-04-05 Paul Eggert <eggert@twinsun.com>
31710 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
31711 IRIX if the installer said otherwise.
31713 2000-04-05 Jim Meyering <meyering@lucent.com>
31715 Portability tweaks required for ultrix4.3.
31716 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
31717 (jm_CHECK_DECLS): Add getutent to the list of functions.
31718 (_jm_DECL_HEADERS): Add utmpx.h.
31719 From John David Anglin.
31721 * m4/strftime.m4: Back out the 2000-04-02 change.
31722 Instead of that change, simply undefine putenv in the test program.
31724 2000-04-05 Jim Meyering <meyering@lucent.com>
31726 Portability tweaks required for ultrix4.3.
31727 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
31729 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
31730 * lib/canon-host.c: Declare strdup.
31731 * lib/path-concat.c: Likewise.
31732 From John David Anglin.
31734 2000-04-04 Jim Meyering <meyering@lucent.com>
31736 Be more DOS 8.3-friendly.
31737 * lib/ref-add.sin: Renamed from ref-add.sed.in.
31738 * lib/ref-del.sin: Renamed from ref-del.sed.in.
31739 * lib/Makefile.am: Reflect renaming.
31740 Reported by Eli Zaretskii.
31742 Use a temporary file name that won't clash with `charset.alias'
31743 in the DOS 8.3 name space.
31744 * lib/Makefile.am (charset_tmp): Define.
31745 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
31746 (uninstall-local): Likewise.
31747 Reported by Eli Zaretskii.
31749 2000-04-03 Jim Meyering <meyering@lucent.com>
31751 * m4/gettext.m4: Fix typo in comment.
31753 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
31754 textutils/configure.in). Suggestion from Paul Eggert.
31755 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
31757 2000-04-02 Paul Eggert <eggert@twinsun.com>
31759 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
31760 variable in the shell rather than using putenv, which isn't
31761 portable. This avoids the configure-time inter-test dependency
31762 on the potentially-renamed putenv function.
31764 2000-03-30 Paul Eggert <eggert@twinsun.com>
31766 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
31767 before checking struct stat.st_blksize, so that
31768 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
31770 2000-03-29 Paul Eggert <eggert@twinsun.com>
31772 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
31773 since strftime.c uses HAVE_STRFTIME to decide whether to use
31774 the underlying strftime.
31776 2000-03-29 Paul Eggert <eggert@twinsun.com>
31778 * lib/time/strftime.c (my_strftime): Make sure we call the system
31779 strftime, not ourselves, when invoking the underlying strftime.
31781 2000-03-24 Jim Meyering <meyering@lucent.com>
31783 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
31784 (charset_alias): Define.
31785 (install-exec-local): Factor out common code.
31786 (uninstall-local): Split lines longer than 80.
31787 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
31788 (SUFFIXES): Define.
31789 (.sed.in.sed): New rule. Don't redirect directly to $@.
31790 (CLEANFILES): Add ref-add.sed and ref-del.sed.
31792 2000-03-19 Bruno Haible <haible@clisp.cons.org>
31794 * lib/config.charset: Output a line containing "Packages using this
31796 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
31797 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
31798 ref-del.sed): New rules.
31800 2000-03-17 Jim Meyering <meyering@lucent.com>
31802 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
31803 Otherwise, include <strings.h>
31805 2000-03-17 Bruno Haible <haible@clisp.cons.org>
31807 * lib/unicodeio.c (utf8_wctomb): New function.
31808 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
31809 format instead of in UCS-4 with platform dependent endianness.
31811 2000-03-10 Jim Meyering <meyering@lucent.com>
31813 * m4/lib-check.m4: Look for getspnam in -lgen, too.
31814 From Marco Franzen.
31816 2000-03-07 Paul Eggert <eggert@twinsun.com>
31818 * lib/savedir.c (savedir): Work even if directory size is
31819 negative; this can happen with some screwy NFS configurations.
31821 2000-03-06 Jim Meyering <meyering@lucent.com>
31823 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
31824 if it's NULL (because we ran out of memory). From Bruno Haible.
31826 2000-03-05 Jim Meyering <meyering@lucent.com>
31828 * lib/localcharset.c ("path-concat.h"): Include.
31829 (get_charset_aliases): Use path_concat instead of ANSI string
31832 * lib/unicodeio.h (PARAMS): Define.
31833 Use it to guard prototype.
31835 2000-03-04 Jim Meyering <meyering@lucent.com>
31837 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
31838 for lib/localcharset.c.
31840 2000-03-04 Jim Meyering <meyering@lucent.com>
31842 * lib/Makefile.am (install-exec-local): Create $(libdir) before
31843 installing into it.
31844 (uninstall-local): Uncomment this rule so `make distcheck' works
31847 * lib/unicodeio.c (<errno.h>): Include it.
31848 (errno): Declare if not defined.
31850 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
31852 * lib/config.charset: New version, incorporating remarks from a linux
31853 i18n mailing list. From Bruno Haible.
31855 2000-03-04 Bruno Haible <haible@clisp.cons.org>
31857 * m4/codeset.m4: New file.
31858 * m4/iconv.m4: New file.
31859 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
31861 2000-03-03 Jim Meyering <meyering@lucent.com>
31863 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
31865 2000-03-02 Jim Meyering <meyering@lucent.com>
31867 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
31868 the messages come out on separate lines.
31870 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
31871 rather than jm_CHECK_DECLARATIONS.
31872 * m4/decl.m4: Remove now-unused file.
31874 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
31877 2000-03-02 Jim Meyering <meyering@lucent.com>
31879 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
31881 2000-03-01 Jim Meyering <meyering@lucent.com>
31883 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
31884 * lib/unicodeio.c: Likewise.
31886 2000-03-01 Bruno Haible <haible@clisp.cons.org>
31888 * lib/config.charset: New file.
31889 * lib/localcharset.c: New file.
31890 * lib/unicodeio.h, lib/unicodeio.c: New files.
31891 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
31892 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
31893 (noinst_HEADERS): Add unicodeio.h.
31894 (all-local, install-exec-local, charset.alias): New targets.
31896 2000-02-28 Paul Eggert <eggert@twinsun.com>
31898 * lib/quotearg.c (ALERT_CHAR): New macro.
31899 (quotearg_buffer_restyled): Use it.
31901 2000-02-27 Jim Meyering <meyering@lucent.com>
31903 * m4/check-decl.m4: Add getenv to the list.
31905 2000-02-27 Jim Meyering <meyering@lucent.com>
31907 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
31908 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
31910 * lib/backupfile.c: Guard inclusion of stdlib.h with
31911 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
31912 Declare malloc if needed.
31914 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
31915 `#ifndef HAVE_DECL..'
31916 now that autoconf always defines the HAVE_DECL_ symbols.
31917 * lib/human.c: Likewise.
31918 * lib/same.c: Likewise.
31919 * lib/strtoumax.c: Likewise.
31921 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
31922 declaration check was not run.
31923 * lib/hash.c: Likewise.
31924 * lib/human.c: Likewise.
31925 * lib/same.c: Likewise.
31926 * lib/strtoumax.c: Likewise.
31928 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
31929 `.', then first look up the entire `.'-containing string as a login
31932 2000-02-23 Jim Meyering <meyering@lucent.com>
31934 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
31935 in place of my hack.
31937 2000-02-18 Paul Eggert <eggert@twinsun.com>
31939 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
31940 (textint): New typedef.
31941 (parser_control): Member year changed from int to textint.
31943 (YYSTYPE): Removed; replaced by %union with int and textint members.
31944 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
31945 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
31946 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
31947 (tSNUMBER, tUNUMBER): Now of type <textintval>.
31948 (date, number, to_year): Use width of number in digits, not its value,
31949 to determine whether it's a 2-digit year, or a 2-digit time.
31950 (yylex): Store number of digits of numeric tokens.
31951 Reported by John Kendall.
31953 (parser_control): Changed from struct parser_control to typedef (for
31954 consistency). All uses changed.
31956 (tID): Removed; not used.
31957 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
31959 2000-02-14 Paul Eggert <eggert@twinsun.com>
31961 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
31962 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
31964 2000-02-12 Jim Meyering <meyering@lucent.com>
31966 * lib/userspec.c (ISDIGIT): Define it.
31967 (isdigit): Remove definition.
31968 (is_number): Use ISDIGIT, not isdigit.
31969 <libintl.h>: Include.
31970 (_ and N_): Define.
31971 (parse_user_spec): Mark translatable strings.
31973 2000-02-10 Jim Meyering <meyering@lucent.com>
31975 With these changes, nanosleep.[ch] are finally enough like the other
31976 lib/* replacement files to compile on a few more losing systems.
31978 * lib/nanosleep.h: Don't include config.h.
31979 Remove prototype from declaration of nanosleep.
31980 (PARAMS): Remove now-unneeded definition.
31981 * lib/nanosleep.c: #undef nanosleep.
31982 (rpl_nanosleep): Rename from nanosleep.
31984 2000-02-10 Jim Meyering <meyering@lucent.com>
31986 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
31987 gnu_nanosleep to rpl_nanosleep.
31989 2000-02-09 Jim Meyering <meyering@lucent.com>
31991 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
31992 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
31994 2000-02-08 Akim Demaille <akim@epita.fr>
31996 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
31997 `[' and `]' and remove uses of `changequote'.
31998 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
31999 (AC_SYS_LARGEFILE): Likewise.
32000 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
32001 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
32003 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
32004 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
32005 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
32006 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
32008 2000-02-05 Jim Meyering <meyering@lucent.com>
32010 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
32011 Remove explicit use of AC_HEADER_TIME. It is required by
32012 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
32013 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
32014 in autoconf whereby the expansion of the latter ended up preceding
32015 the expansion of its prerequisite, AC_HEADER_TIME.
32016 Reported by Volker Borchert.
32018 2000-02-03 Jim Meyering <meyering@lucent.com>
32020 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
32022 2000-02-03 Jim Meyering <meyering@lucent.com>
32024 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
32025 rather than with `#if HAVE_UTMPNAME'.
32027 2000-02-02 Jim Meyering <meyering@lucent.com>
32029 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
32030 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
32031 Reported by Eli Zaretskii.
32033 2000-02-01 Jim Meyering <meyering@lucent.com>
32035 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
32037 2000-01-31 Jim Meyering <meyering@lucent.com>
32039 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
32040 functions. Add the time.h and sys/time.h headers along with the
32041 AC_REQUIRE'ment of AC_HEADER_TIME.
32043 2000-01-31 Jim Meyering <meyering@lucent.com>
32045 * lib/nanosleep.h (nanosleep): Guard declaration with
32046 `#if ! HAVE_DECL_NANOSLEEP'.
32047 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
32048 the declaration in that vendor's sys/timers.h.
32049 Reported by Christian Krackowizer.
32051 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
32052 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
32053 (ISPRINT): Likewise.
32054 Reported by Tom Tromey.
32056 2000-01-30 Jim Meyering <meyering@lucent.com>
32058 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
32060 * m4/prereq.m4 (utmp_includes): Define.
32061 Check for ut_user and ut_name members in both struct utmpx
32064 2000-01-30 Jim Meyering <meyering@lucent.com>
32066 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
32067 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
32068 header files where only utmpx.ut_user is declared.
32070 * lib/readutmp.h (UT_USER): Define.
32072 2000-01-29 Jim Meyering <meyering@lucent.com>
32074 * m4/lib-check.m4: New file containing library-related checks from
32075 fileutils and sh-utils (textutils had none).
32077 2000-01-28 Jim Meyering <meyering@lucent.com>
32079 * m4/perl.m4: Change format of warning message to look more like that
32080 from the missing script. Suggestion from François Pinard.
32082 2000-01-25 Jim Meyering <meyering@lucent.com>
32084 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
32085 well as time.h in the compile check.
32086 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
32087 Fix typo in cross-compiling case: s/yes/no/.
32089 2000-01-23 Jim Meyering <meyering@lucent.com>
32091 * m4/jm-macros.m4: Move df-related tests here from
32092 fileutils/configure.in
32094 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
32095 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
32097 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
32098 s/space/ac_fsusage_space/.
32099 (jm_FILE_SYSTEM_USAGE): Take two parameters.
32101 * m4/ftruncate.m4: New file (derived from part of
32102 fileutils/configure.in).
32103 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
32104 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
32106 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
32107 AC_SUBST these here, rather than just in sh-util/configure.in, so
32108 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
32110 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
32111 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
32112 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
32113 (AC_SUBST(POW_LIBM)): Likewise.
32114 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
32116 2000-01-23 Jim Meyering <meyering@lucent.com>
32118 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
32121 2000-01-22 Jim Meyering <meyering@lucent.com>
32123 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
32125 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
32127 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
32129 (AC_CHECK_HEADERS): Likewise for sh-utils.
32130 (AC_CHECK_HEADERS): Likewise for textutils.
32131 Merge the three lists of headers.
32133 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
32134 from fileutils' configure.in.
32136 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
32137 code. Moved tests into their own function (_jm_DECL_HEADERS) in
32140 * m4/check-decl.m4: Use #if rather than #ifdef.
32141 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
32142 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
32143 (_jm_DECL_HEADERS): Define new function.
32144 (jm_CHECK_DECLARATIONS): Require it.
32146 2000-01-22 Jim Meyering <meyering@lucent.com>
32148 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
32149 [! HAVE_DECL_STRTOULL]: Declare strtoull.
32150 Required for some AIX systems. Reported by Christian Krackowizer.
32151 [TESTING] (main): New function.
32153 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
32154 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
32157 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
32160 * lib/strverscmp.c (ISDIGIT): Define.
32161 (strverscmp): Use ISDIGIT, not isdigit.
32163 2000-01-19 Jim Meyering <meyering@lucent.com>
32165 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
32166 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
32167 defines `struct timespec' in <sys/time.h>
32169 * m4/c-bs-a.m4: Remove uses of changequote altogether.
32170 Thanks to Akim for explaining.
32172 2000-01-17 Paul Eggert <eggert@twinsun.com>
32174 * lib/nanosleep.c (nanosleep):
32175 Don't use SA_INTERRUPT to decide whether to call sigaction, as
32176 POSIX.1 doesn't require SA_INTERRUPT and some systems
32177 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
32178 it's been part of POSIX.1 since day 1 (in 1988).
32180 2000-01-17 Jim Meyering <meyering@lucent.com>
32182 * lib/interlock: Remove unused file. Reported by François Pinard.
32184 2000-01-16 Paul Eggert <eggert@twinsun.com>
32186 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
32187 alert, backslash, formfeed, and vertical tab unnecessarily in
32188 shell quoting style.
32190 2000-01-16 Jim Meyering <meyering@lucent.com>
32192 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
32193 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
32194 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
32195 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
32197 2000-01-16 Jim Meyering <meyering@lucent.com>
32199 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
32200 because the latter didn't work.
32202 2000-01-15 Jim Meyering <meyering@lucent.com>
32204 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
32205 (AC_REPLACE_FUNCS): Add memcpy and memset.
32206 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
32208 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
32210 2000-01-12 Jim Meyering <meyering@lucent.com>
32212 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
32213 (jm_PREREQ): Use it.
32214 (jm_PREREQ_READUTMP): New macro.
32215 (jm_PREREQ): Use it.
32217 2000-01-11 Paul Eggert <eggert@twinsun.com>
32219 Quote multibyte characters correctly.
32220 * m4/c-bs-a.m4: New file.
32221 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
32222 (jm_PREREQ): Use it.
32224 2000-01-11 Paul Eggert <eggert@twinsun.com>
32226 * m4/uintmax_t.m4: Port to autoconf 2.13.
32228 2000-01-08 Jim Meyering <meyering@ascend.com>
32230 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
32231 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
32233 2000-01-04 Jim Meyering <meyering@ascend.com>
32235 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
32236 jm_STRUCT_DIRENT_D_TYPE.
32237 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
32238 jm_STRUCT_DIRENT_D_INO.
32239 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
32241 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
32243 * m4/utime.m4: Likewise.
32245 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
32246 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
32248 2000-01-03 Paul Eggert <eggert@twinsun.com>
32250 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
32251 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
32253 2000-01-02 Jim Meyering <meyering@ascend.com>
32255 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
32256 remember if this is necessary.
32258 1999-12-26 Jim Meyering <meyering@ascend.com>
32260 * m4/jm-macros.m4: Use it here.
32261 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
32263 1999-12-23 Jim Meyering <meyering@ascend.com>
32265 * m4/jm-macros.m4: Check for clock_gettime (moved from
32266 fileutils/configure.in)
32267 Check for gettimeofday.
32269 1999-12-20 Jim Meyering <meyering@ascend.com>
32271 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
32272 autoconf-2.14a-1999-12-20.
32274 1999-12-19 Jim Meyering <meyering@ascend.com>
32276 * m4/lstat-slash.m4: New file.
32277 * m4/jm-macros.m4: Use the new macro:
32278 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
32280 1999-12-07 Jim Meyering <meyering@ascend.com>
32282 * m4/perl.m4: Require that File::Compare be available, too.
32283 Too many systems seem to lack it.
32285 * m4/strftime.m4: Add checks for most of the cpp macros tested in
32286 GNU's strftime.c. Prompted by a patch from Paul Eggert.
32288 1999-11-18 Paul Eggert <eggert@twinsun.com>
32290 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
32291 problem with the QNX 4.25 shell, which doesn't propagate exit
32292 status of failed commands inside shell assignments.
32294 1999-11-17 Jim Meyering <meyering@ascend.com>
32296 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
32298 1999-11-07 Jim Meyering <meyering@ascend.com>
32300 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
32302 1999-11-06 Jim Meyering <meyering@ascend.com>
32304 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
32305 * m4/jm-macros.m4 (jm_MACROS): Use it here.
32307 1999-11-05 Jim Meyering <meyering@ascend.com>
32309 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
32310 configure.in of textutils, fileutils, and sh-utils into this one
32311 (shared between those packages) file.
32312 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
32313 AC_STRUCT_ST_BLKSIZE.
32315 1999-11-03 Jim Meyering <meyering@ascend.com>
32317 * m4/ssize_t.m4: Remove file. No longer needed since the new version
32318 of AC_CHECK_TYPE checks includes unistd.h.
32319 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
32320 Suggestion from Akim Demaille.
32322 1999-10-30 Jim Meyering <meyering@ascend.com>
32324 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
32326 * m4/ls-mntd-fs.m4: Likewise.
32327 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
32328 * m4/jm-winsz1.m4: Likewise.
32330 * m4/const.m4: Remove file, since the fix made it into the experimental
32331 version of autoconf.
32332 * m4/mktime.m4: Likewise.
32334 * m4/check-type.m4: Remove file, now that the latest version of
32335 AC_CHECK_TYPE takes a third arg to specify additional #includes.
32337 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
32338 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
32341 1999-10-04 Jim Meyering <meyering@ascend.com>
32343 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
32345 1999-09-22 Paul Eggert <eggert@twinsun.com>
32347 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
32348 2.95.1 bug with HP-UX 10.20.
32350 1999-09-17 Jim Meyering <meyering@ascend.com>
32352 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
32353 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
32354 due to missing strdup (against sh-utils-2.0).
32356 1999-08-29 Jim Meyering <meyering@ascend.com>
32358 * m4/jm-macros.m4: Require jm_BISON.
32359 * m4/bison.m4: New file.
32361 1999-08-17 Paul Eggert <eggert@twinsun.com>
32363 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
32364 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
32366 1999-08-05 Jim Meyering <meyering@ascend.com>
32368 * m4/getline.m4: Rename test file from conftestdata to conftest.data
32369 to avoid conflicts with `conftest' on 8+3 filesystems.
32370 Suggestion from Eli Zaretskii.
32372 1999-08-04 Jim Meyering <meyering@ascend.com>
32374 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
32375 fileutils and sh-utils (textutils's getline test was inadequate).
32376 (AM_FUNC_GETLINE): Run this test.
32377 (AC_CHECK_FUNCS): Check for getdelim.
32378 Reported by Bob Proulx.
32380 1999-08-02 Jim Meyering <meyering@ascend.com>
32382 * m4/jm-macros.m4: Add a comment.
32384 1999-08-01 Paul Eggert <eggert@twinsun.com>
32386 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
32387 <inttypes.h> defines strtoumax as a macro (and not as a
32390 1999-08-01 Paul Eggert <eggert@twinsun.com>
32392 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
32393 that we can shift, multiply and divide unsigned long long
32394 values; Ultrix cc can't do it.
32396 1999-08-01 Paul Eggert <eggert@twinsun.com>
32398 * m4/mktime.m4: New file, which is a preview of what should appear
32399 in the next public autoconf release.
32401 1999-08-01 Paul Eggert <eggert@twinsun.com>
32403 * m4/lfs.m4: Remove this file.
32404 * m4/largefile.m4: New file. It contains the old contents of
32405 lfs.m4, except that all names with prefix AC_LFS have been
32406 changed to use the prefix AC_SYS_LARGEFILE instead, to be
32407 compatible with future autoconf versions. Also, some minor m4
32408 quoting problems have been fixed.
32410 1999-08-01 Paul Eggert <eggert@twinsun.com>
32412 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
32413 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
32414 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
32415 and simplify the shell code.
32417 1999-08-01 Jim Meyering <meyering@ascend.com>
32419 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
32422 1999-07-20 Jim Meyering <meyering@ascend.com>
32424 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
32426 1999-07-15 Jim Meyering <meyering@ascend.com>
32428 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
32430 1999-05-22 Jim Meyering <meyering@ascend.com>
32432 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
32434 1999-05-20 Jim Meyering <meyering@ascend.com>
32436 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
32437 Add a colon after each `then' in case $4 is empty.
32439 1999-05-16 Jim Meyering <meyering@ascend.com>
32441 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
32443 1999-05-10 Jim Meyering <meyering@ascend.com>
32445 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
32447 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
32450 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
32452 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
32454 1999-05-04 Paul Eggert <eggert@twinsun.com>
32456 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
32457 not CPPFLAGS, so that linking works correctly in IRIX.
32459 1999-04-30 Paul Eggert <eggert@twinsun.com>
32461 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
32463 1999-04-20 Paul Eggert <eggert@twinsun.com>
32465 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
32466 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
32467 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
32468 jm_AC_TYPE_UNSIGNED_LONG_LONG.
32469 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
32471 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
32473 1999-04-20 Jim Meyering <meyering@ascend.com>
32475 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
32476 AC_REPLACE xstroull if necessary. From Paul Eggert.
32477 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
32479 1999-04-18 Jim Meyering <meyering@ascend.com>
32481 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
32482 * m4/jm-macros.m4: Use it.
32484 1999-04-06 Jim Meyering <meyering@ascend.com>
32486 * m4/strftime.m4: Remove test for %f.
32488 1999-03-29 Jim Meyering <meyering@ascend.com>
32490 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
32491 superset of the AC_TYPE_* checks in the textutils, fileutils,
32492 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
32495 1999-03-28 Jim Meyering <meyering@ascend.com>
32497 * m4/jm-macros.m4: Define GNU_PACKAGE here.
32498 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
32499 replaced e.g., in the *.sh files of the sh-utils.
32501 1999-03-20 Jim Meyering <meyering@ascend.com>
32503 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
32504 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
32505 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
32507 1999-03-19 Jim Meyering <meyering@ascend.com>
32509 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
32511 1999-03-12 Jim Meyering <meyering@ascend.com>
32513 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
32515 1999-03-07 Jim Meyering <meyering@ascend.com>
32517 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
32520 1999-02-17 Jim Meyering <meyering@ascend.com>
32522 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
32523 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
32525 1999-02-07 Jim Meyering <meyering@ascend.com>
32527 * m4/group-member.m4: New file -- extracted from sh-utils'
32530 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
32531 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
32533 1999-02-06 Jim Meyering <meyering@ascend.com>
32535 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
32536 * m4/fnmatch.m4: Likewise.
32537 * m4/getgroups.m4: Likewise.
32538 * m4/lstat.m4: Likewise.
32539 * m4/malloc.m4: Likewise.
32540 * m4/putenv.m4: Likewise.
32541 * m4/realloc.m4: Likewise.
32542 * m4/regex.m4: Likewise.
32543 * m4/stat.m4: Likewise.
32544 * m4/strftime.m4: Likewise.
32545 Suggestion from Alain Magloire.
32547 * m4/chown.m4: Use `.$ac_objext', not `.o'.
32548 * m4/fnmatch.m4: Likewise.
32549 * m4/getgroups.m4: Likewise.
32550 * m4/getline.m4: Likewise.
32551 * m4/lstat.m4: Likewise.
32552 * m4/malloc.m4: Likewise.
32553 * m4/memcmp.m4: Likewise.
32554 * m4/putenv.m4: Likewise.
32555 * m4/realloc.m4: Likewise.
32556 * m4/regex.m4: Likewise.
32557 * m4/stat.m4: Likewise.
32558 * m4/strftime.m4: Likewise.
32559 Suggestion from Alain Magloire.
32561 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
32564 * m4/regex.m4: Add a run-time Test for proper operation of
32565 re_compile_pattern.
32567 1999-01-31 Jim Meyering <meyering@ascend.com>
32569 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
32571 1999-01-30 Jim Meyering <meyering@ascend.com>
32573 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
32575 * m4/jm-mktime.m4: Make this a wrapper around the official
32576 AM_FUNC_MKTIME rather than my private copy, now that the official one
32578 * m4/mktime.m4: Remove file.
32580 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
32581 * m4/uptime.m4: Likewise.
32582 * m4/uintmax_t.m4: Likewise.
32584 1999-01-28 Jim Meyering <meyering@ascend.com>
32586 * m4/jm-macros.m4: Use jm_AFS.
32587 * m4/afs.m4: New file (from fileutils' configure.in).
32589 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
32590 * m4/chown.m4: Likewise.
32591 * m4/d-ino.m4: Likewise.
32592 * m4/d-type.m4: Likewise.
32593 * m4/fnmatch.m4: Likewise.
32594 * m4/getgroups.m4: Likewise.
32595 * m4/gettext.m4: Likewise.
32596 * m4/jm-mktime.m4: Likewise.
32597 * m4/jm-winsz2.m4: Likewise.
32598 * m4/lcmessage.m4: Likewise.
32599 * m4/ls-mntd-fs.m4: Likewise.
32600 * m4/malloc.m4: Likewise.
32601 * m4/memcmp.m4: Likewise.
32602 * m4/putenv.m4: Likewise.
32603 * m4/realloc.m4: Likewise.
32604 * m4/st_mtim.m4: Likewise.
32605 * m4/strftime.m4: Likewise.
32607 1999-01-16 Jim Meyering <meyering@ascend.com>
32609 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
32610 (ARGMATCH_DIE_DECL): Define.
32612 1999-01-12 Jim Meyering <meyering@ascend.com>
32614 * m4/Makefile.am.in: Rewrite to avoid using fmt.
32615 Reported by Lars Hecking.
32617 1999-01-10 Jim Meyering <meyering@ascend.com>
32619 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
32621 * m4/inttypes_h.m4: Likewise.
32622 * m4/lstat.m4: Likewise.
32623 * m4/malloc.m4: Likewise.
32624 * m4/readdir.m4: Likewise.
32625 * m4/realloc.m4: Likewise.
32626 * m4/st_dm_mode.m4: Likewise.
32627 * m4/stat.m4: Likewise.
32628 * m4/utimbuf.m4: Likewise.
32629 * m4/utimes.m4: Likewise.
32631 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
32632 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
32633 comments in config.h.in are meaningful.
32635 * m4/jm-macros.m4: Require autoconf-2.13 here.
32637 * m4/regex.m4: By default, don't use the included regex.c on systems
32638 with glibc 2. Suggestion from Uli Drepper.
32640 1999-01-02 Jim Meyering <meyering@ascend.com>
32642 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
32644 1998-12-18 Jim Meyering <meyering@ascend.com>
32646 * m4/Makefile.am.in (Makefile.am): Simplify rule.
32647 Based on a suggestion from Lars Hecking.
32649 1998-11-16 Paul Eggert <eggert@twinsun.com>
32651 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
32653 1998-11-16 Jim Meyering <meyering@ascend.com>
32655 * m4/lfs.m4: Double-quote the `uname...` expression.
32657 1998-11-14 Jim Meyering <meyering@ascend.com>
32659 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
32660 * m4/stat.m4: Likewise.
32662 1998-11-03 Jim Meyering <meyering@ascend.com>
32664 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
32665 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
32667 1998-10-18 Jim Meyering <meyering@ascend.com>
32669 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
32671 1998-10-17 Jim Meyering <meyering@ascend.com>
32673 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
32674 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
32675 calls for those previously hard-coded headers. Instead, take a new
32677 (jm_CHECK_DECLARATIONS): Reflect interface change.
32678 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
32679 (jm_CHECK_DECL_LOCALTIME_R): New macro.
32681 * m4/mktime.m4: Test for spring-forward gap before long-running test.
32683 1998-10-14 Jim Meyering <meyering@ascend.com>
32685 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
32686 instead of "TZ=America/Vancouver". From Paul Eggert.
32688 1998-10-11 Jim Meyering <meyering@ascend.com>
32690 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
32691 This adds a test for a recently added compatibility fix for mktime.c.
32692 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
32694 1998-09-27 Jim Meyering <meyering@ascend.com>
32696 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
32698 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
32699 ../configure.in, including a change from Gordon Matzigkeit to allow
32700 cross-compiling for the Hurd.
32702 * m4/glibc.m4: New file/macro to test for the GNU C Library
32703 versions 1 and 2. From Gordon Matzigkeit.
32706 1998-09-21 Jim Meyering <meyering@ascend.com>
32708 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
32710 1998-08-18 Paul Eggert <eggert@twinsun.com>
32712 Port nanosecond-resolution times to UnixWare 2.1.2 and
32713 pedantic Solaris 2.6.
32715 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
32717 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
32718 Generate name of ns member, instead of just 1 or undef.
32719 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
32721 1998-08-15 Jim Meyering <meyering@ascend.com>
32723 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
32724 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
32725 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
32726 instead of jm_TYPE_SSIZE_T.
32728 1998-08-12 Jim Meyering <meyering@ascend.com>
32730 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
32732 1998-08-02 Jim Meyering <meyering@ascend.com>
32734 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
32735 in acconfig.h manually.
32737 1998-07-31 Paul Eggert <eggert@twinsun.com>
32739 * m4/st_mtim.m4: New file.
32741 1998-07-28 Jim Meyering <meyering@ascend.com>
32743 * m4/utimes.m4: Undef stat.
32745 1998-07-25 Jim Meyering <meyering@ascend.com>
32747 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
32748 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
32750 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
32752 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
32753 uid and gid actually remain unchanged.
32755 1998-07-07 Jim Meyering <meyering@ascend.com>
32757 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
32759 1998-07-04 Jim Meyering <meyering@ascend.com>
32761 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
32762 to prove that this macro can be used in packages without regex.c.
32764 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
32766 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
32769 1998-07-03 Jim Meyering <meyering@ascend.com>
32771 * m4/gettext.m4: Add -lintl if it's found to be necessary.
32773 * m4/gettext.m4: New file -- from gettext-0.10.35.
32774 * m4/lcmessage.m4: Likewise.
32775 * m4/progtest.m4: Likewise.
32777 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
32778 * m4/jm-macros.m4: Require the new macro.
32780 1998-06-29 Jim Meyering <meyering@ascend.com>
32782 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
32783 for the definition of NGROUPS (used in a system header included
32786 1998-06-28 Jim Meyering <meyering@ascend.com>
32788 * m4/ls-mntd-fs.m4: New file.
32789 * m4/fstypename.m4: New file.
32791 * m4/jm-macros.m4: Require the new macro.
32792 * m4/jm-glibc-io.m4: New file.
32794 1998-05-19 Jim Meyering <meyering@ascend.com>
32796 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
32797 * m4/lchown.m4: New file.
32799 * m4/Makefile.am.in: New file.
32800 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
32802 1998-05-14 Jim Meyering <meyering@ascend.com>
32804 * m4/Makefile.am (EXTRA_DIST): Add them.
32805 * m4/jm-macros.m4: New file.
32806 * m4/utimbuf.m4: New file.
32808 1998-05-12 Jim Meyering <meyering@ascend.com>
32810 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
32812 1998-05-11 Jim Meyering <meyering@ascend.com>
32814 * m4/isc-posix.m4: New file.
32816 1998-05-10 Jim Meyering <meyering@ascend.com>