1 2007-08-19 Bruno Haible <bruno@clisp.org>
3 * modules/closein (Depends-on): Add freadahead.
4 * lib/closein.c: Include freadahead.h.
5 (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
8 2007-08-19 Bruno Haible <bruno@clisp.org>
10 * modules/freadahead-tests: New file.
11 * tests/test-freadahead.sh: New file.
12 * tests/test-freadahead.c: New file.
14 * modules/freadahead: New file.
15 * lib/freadahead.h: New file.
16 * lib/freadahead.c: New file.
17 * MODULES.html.sh (File stream based Input/Output): Add freadahead,
18 fbufmode, fpurge, freadable, fwritable.
20 2007-08-19 Eric Blake <ebb9@byu.net>
22 Test yesno in combination with closein.
23 * lib/yesno.c (yesno): Document use of stdin.
24 * modules/yesno-tests (Files): New module.
25 * tests/test-yesno.c (main): New file.
26 * tests/test-yesno.sh: Likewise.
28 2007-08-19 Bruno Haible <bruno@clisp.org>
30 * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
31 * lib/fseeko.c (rpl_fseeko): Likewise.
32 * lib/fseterr.c (fseterr): Likewise.
34 2007-08-19 Bruno Haible <bruno@clisp.org>
36 * tests/test-lseek.c (main): Disable a test for BeOS.
37 * doc/functions/lseek.texi: Document the BeOS bug.
39 2007-08-19 Bruno Haible <bruno@clisp.org>
40 Eric Blake <ebb9@byu.net>
42 * lib/lseek.c: Include <sys/stat.h>.
43 (rpl_lseek): Add workaround code also for Unix platforms.
45 * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
46 * doc/functions/lseek.texi: Document BeOS definiency.
48 2007-08-18 Bruno Haible <bruno@clisp.org>
50 * modules/fstrcmp-tests: New file.
51 * tests/test-fstrcmp.c: New file.
53 2007-08-18 Bruno Haible <bruno@clisp.org>
55 * modules/fstrcmp: New file, from GNU gettext with modifications.
56 * lib/fstrcmp.h: New file, from GNU gettext.
57 * lib/fstrcmp.c: New file, from GNU gettext.
58 * MODULES.html.sh (String handling): Add fstrcmp.
60 2007-08-18 Bruno Haible <bruno@clisp.org>
62 * lib/diffseq.h (struct context): Change type of 'heuristic' field to
64 (diag, compareseq): Remove const from the ctxt argument.
65 (USE_HEURISTIC): Undefine at the end.
67 2007-08-18 Jim Meyering <jim@meyering.net>
69 New file: lib/idcache.h
70 * NEWS: Mention the addition.
71 * modules/idcache (Files): Add lib/idcache.h
72 * lib/idcache.c: Include "idcache.h".
73 Don't include <sys/types.h>.
75 Move file-scoped "static" declarations to the top.
76 * lib/idcache.h: New file. Include <sys/types.h> here, instead.
78 2007-08-17 Bruno Haible <bruno@clisp.org>
79 and Paul Eggert <eggert@cs.ucla.edu>
81 * MODULES.html.sh: Add diffseq.
82 * modules/diffseq: New file.
83 * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
84 extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
86 2007-08-15 Paul Eggert <eggert@cs.ucla.edu>
88 Import changes from coreutils for bootstrap script.
90 2007-07-21 Paul Eggert <eggert@cs.ucla.edu>
92 * build-aux/bootstrap (slurp): Work even in environments where
93 "ls" defaults to "ls -A". Put in a FIXME, though, since the
94 current code does not slurp files whose names start with ".", and
95 this looks like it might be a troublesome area.
97 2007-07-11 Jim Meyering <jim@meyering.net>
99 If there's a GPL vN copyright comment, require that N == 3.
101 2007-07-08 Jim Meyering <jim@meyering.net>
103 Run the coreutils-specific code only if tests/Makefile.am.in exists.
104 * build-aux/bootstrap (mam_template): Move definition out of loop.
106 Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
108 * build-aux/bootstrap (symlink_to_dir): Rename function from
109 symlink_to_gnulib. Add a directory parameter. Update all
111 (cp_mark_as_generated): Also check for -- and link to -- files in
114 2007-07-08 Jim Meyering <jim@meyering.net>
116 Adapt to deeper hierarchy in gnulib.
117 * build-aux/bootstrap (symlink_to_dir): If the destination
118 directory doesn't exist, create it. This is required at least for
119 "lib/uniwidth/cjk.h".
121 2007-05-15 Jim Meyering <jim@meyering.net>
123 * build-aux/bootstrap: Now that generated Makefile.am files
124 are no longer under version control, they must be created at
127 2007-08-14 Ben Pfaff <blp@gnu.org>
129 * lib/count-one-bits.h: Add comments. From Bruno Haible.
131 2007-08-14 Paul Eggert <eggert@cs.ucla.edu>
133 * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
134 given the changes below.
135 (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'. Work
136 even on hosts that have padding bits beyond the supported 64.
138 2007-08-10 Paul Eggert <eggert@cs.ucla.edu>
140 * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
141 * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
142 xstrtol.c. Include getopt.h, since xstrtol_fatal's signature
144 (xstrtol_error): Remove.
145 (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
146 but with a different signature.
147 (ATTRIBUTE_NORETURN, __attribute__): New macros.
148 * lib/xstrtol-error.c: Include exitfail.h.
149 (xstrtol_fatal): New function, with a different signature from the
150 old xstrtol_error, so that the caller need not worry about passing
151 in an exit status, or about storage management of the option argument.
152 (xstrtol_error): Now a static function. Redo signature to
153 implement xstrtol_fatal. Output the correct number of hyphens in
154 front of the option so that the caller need not worry about
157 (_): Remove; not used now.
158 * modules/xstrtol: Depend on getopt.
159 * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
160 of old STRTOL_FATAL_ERROR macro.
161 * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
163 * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
164 * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
166 2007-08-08 Eric Blake <ebb9@byu.net>
168 * lib/xstrtol-error.c: Add missing include.
170 Move xstrtol messages into gnulib domain, when --pobase is used.
171 * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
172 * lib/xstrtol-error.c (xstrtol_error): ...into new file.
173 * modules/xstrtol (Files): Distribute new file.
174 * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
175 * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
176 * tests/test-xstrtol.c: ...into new file.
177 * tests/test-xstrtoul.c: Also test xstrtoul.
178 * tests/test-xstrtoimax.c: Also test xstrtoimax.
179 * tests/test-xstrtoumax.c: Also test xstrtoumax.
180 * tests/test-xstrtol.sh: Drive the tests.
181 * tests/test-xstrtoimax.sh: Likewise.
182 * tests/test-xstrtoumax.sh: Likewise.
183 * modules/xstrtol-tests: New module.
184 * modules/xstrtoimax-tests: Likewise.
185 * modules/xstrtoumax-tests: Likewise.
187 2007-08-08 Jim Meyering <jim@meyering.net>
189 New function: mfile_name_concat.
190 * lib/filenamecat.c (mfile_name_concat): New function, just like
191 file_name_concat, but return NULL upon failure rather than exiting
193 * lib/filenamecat.h: Declare it.
195 2007-08-07 Bruno Haible <bruno@clisp.org>
197 * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
198 instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
200 Reported by Eric Blake.
202 2007-08-07 Simon Josefsson <simon@josefsson.org>
204 * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
205 * modules/crypto/arcfour (License): Likewise.
206 * modules/crypto/des-tests (License): Likewise.
207 * modules/crypto/gc-arctwo-tests (License): Likewise.
208 * modules/crypto/gc-des-tests (License): Likewise.
209 * modules/crypto/gc-hmac-md5-tests (License): Likewise.
210 * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
211 * modules/crypto/gc-md2-tests (License): Likewise.
212 * modules/crypto/gc-md4-tests (License): Likewise.
213 * modules/crypto/gc-md5-tests (License): Likewise.
214 * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
215 * modules/crypto/gc-rijndael-tests (License): Likewise.
216 * modules/crypto/gc-sha1-tests (License): Likewise.
217 * modules/crypto/gc-tests (License): Likewise.
218 * modules/crypto/hmac-md5 (License): Likewise.
219 * modules/crypto/hmac-sha1 (License): Likewise.
220 * modules/crypto/md2-tests (License): Likewise.
221 * modules/crypto/md4-tests (License): Likewise.
222 * modules/crypto/md5 (License): Likewise.
223 * modules/crypto/rijndael (License): Likewise.
224 * modules/crypto/sha1 (License): Likewise.
225 * modules/memxor (License): Likewise.
227 2007-08-06 Paul Eggert <eggert@cs.ucla.edu>
228 and Bruno Haible <bruno@clisp.org>
230 * NEWS: Describe interface changes to human, xstrtol.
231 * lib/human.h: Include <xstrtol.h>.
232 (human_options): Return enum strtol_error, not int. Remove
233 bool arg; take int * instead.
234 * lib/human.c: Don't include "gettext.h".
235 (_): Remove; no longer used.
236 Don't include <xstrtol.h>, since human.h does it.
237 (human_options): Adjust to abovementioned interface changes.
238 Do not report error to stderr; that's now the caller's
240 * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
242 * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
243 Str, Argument_type_string. All uses changed. Put " argument"
244 in diagnostics to make them clearer. Change wording of suffix
246 (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
247 Argument_type_string.
248 (STRTOL_FATAL_WARN): Remove; no longer used.
249 * modules/human (Depends-on): Remove gettext-h.
251 2007-08-06 Simon Josefsson <simon@josefsson.org>
253 * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
255 2007-07-31 Bruno Haible <bruno@clisp.org>
257 * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
258 are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
259 Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
261 2007-07-31 Bruno Haible <bruno@clisp.org>
263 * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
264 Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
266 2007-07-30 Bruno Haible <bruno@clisp.org>
268 * modules/base64 (License): Use the synonymous term "LGPLv2+".
269 * modules/c-ctype (License): Likewise.
270 * modules/c-strcase (License): Likewise.
271 * modules/check-version (License): Likewise.
272 * modules/iconv (License): Likewise.
273 * modules/iconv_open (License): Likewise.
274 * modules/read-file (License): Likewise.
275 * modules/striconv (License): Likewise.
276 * modules/strverscmp (License): Likewise.
277 * modules/vasprintf (License): Likewise.
278 * modules/crypto/des (License): Likewise.
279 * modules/crypto/gc (License): Likewise.
280 * modules/crypto/gc-arcfour (License): Likewise.
281 * modules/crypto/gc-arctwo (License): Likewise.
282 * modules/crypto/gc-des (License): Likewise.
283 * modules/crypto/gc-hmac-md5 (License): Likewise.
284 * modules/crypto/gc-hmac-sha1 (License): Likewise.
285 * modules/crypto/gc-md2 (License): Likewise.
286 * modules/crypto/gc-md4 (License): Likewise.
287 * modules/crypto/gc-md5 (License): Likewise.
288 * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
289 * modules/crypto/gc-random (License): Likewise.
290 * modules/crypto/gc-rijndael (License): Likewise.
291 * modules/crypto/gc-sha1 (License): Likewise.
292 * modules/crypto/md2 (License): Likewise.
293 * modules/crypto/md4 (License): Likewise.
295 2007-07-30 Jim Meyering <jim@meyering.net>
297 * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
298 set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
299 it has valid stat data. This bug would cause du not to count the
300 sizes of inaccessible directories.
301 Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
302 in <http://bugzilla.redhat.com/250077>.
304 2007-07-25 Peter O'Gorman <peter@pogma.com>
305 Bruno Haible <bruno@clisp.org>
307 * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
308 really works. Needed because AIX 4.3 "xlc -E" doesn't understand
309 #include_next, gives a diagnostic about it, but reports no error in
311 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
313 2007-07-24 Ben Pfaff <blp@gnu.org>
315 Improve name: "count-one-bits" is better than "popcount".
316 * MODULES.html.sh: Update name.
317 * lib/popcount.h: Renamed lib/count-one-bits.h.
318 (popcount): Renamed count_one_bits.
319 (popcountl): Renamed count_one_bits_l.
320 (popcountll): Renamed count_one_bits_ll.
321 * m4/popcount.m4: Renamed m4/count-one-bits.m4.
322 * modules/popcount: Renamed module/count-one-bits.
323 * modules/popcount-tests: Renamed module/count-one-bits-tests.
324 * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
326 2007-07-23 Ben Pfaff <blp@gnu.org>
328 * lib/popcount.h (popcount32): Reduce size of constants, to allow
329 better code generation, and add U to large constants to avoid
330 warnings, in non-GCC case.
331 Suggested by Bruno Haible.
333 2007-07-23 Ben Pfaff <blp@gnu.org>
335 * lib/popcount.h: Use verify_true instead of if...abort.
336 * modules/popcount: Depend on verify module.
337 Suggested by Jim Meyering.
339 2007-07-23 Bruno Haible <bruno@clisp.org>
341 * gnulib-tool (func_import): Create a .cvsignore file also when the
342 directory is not yet in CVS but the toplevel directory is. When
343 creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
344 Reported by Karl Berry.
346 2007-07-22 Ben Pfaff <blp@gnu.org>
348 * lib/popcount.h: Use faster, branchless algorithm for non-GCC
350 Suggested by Eric Blake.
352 2007-07-22 Ben Pfaff <blp@gnu.org>
354 New module: popcount.
355 * MODULES.html.sh: Add popcount.
356 * modules/popcount: New file.
357 * modules/popcount-tests: New file.
358 * tests/test-popcount.c: New file.
359 * lib/popcount.h: New file.
360 * m4/popcount.m4: New file.
362 2007-07-22 Paul Eggert <eggert@cs.ucla.edu>
364 * build-aux/announce-gen: Update to GPLv3.
366 * build-aux/config.guess: Update from config.
368 2007-07-21 Bruno Haible <bruno@clisp.org>
370 * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
371 * lib/verror.c (_) [ENABLE_NLS]: Likewise.
373 2007-07-20 Jim Meyering <jim@meyering.net>
375 * check-module: Diagnose a self-dependency.
377 2007-07-19 Bruno Haible <bruno@clisp.org>
379 * gnulib-tool (func_import): Don't abort if pobase or po_domain is
381 Reported by Eric Blake.
383 2007-07-18 Bruno Haible <bruno@clisp.org>
385 * gnulib-tool: New options --po-base, --po-domain.
386 (func_usage): Document them.
387 (pobase, po_domain): New variables.
388 (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
390 (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
391 (func_import): Consider pobase and po_domain. Create a po/ directory.
392 (func_create_testdir): Set pobase and po_domain to empty.
393 * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
394 * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
396 2007-07-18 Bruno Haible <bruno@clisp.org>
398 * gnulib-tool (func_get_automake_snippet): Synthesize also an
399 EXTRA_DIST augmentation for files in build-aux/.
401 2007-07-16 Bruno Haible <bruno@clisp.org>
403 * modules/lseek (License): Use the synonymous term "LGPLv2+".
404 * modules/getdelim (License): Likewise.
406 2007-07-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
408 * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
409 * modules/d-type (License): Likewise.
410 * modules/extensions (License): Likewise.
411 * modules/fnmatch (License): Likewise.
412 * modules/fseeko (License): Likewise.
413 * modules/getaddrinfo (License): Likewise.
414 * modules/getline (License): Likewise.
415 * modules/getlogin_r (License): Likewise.
416 * modules/getpass (License): Likewise.
417 * modules/gettimeofday (License): Likewise.
418 * modules/glob (License): Likewise.
419 * modules/inet_ntop (License): Likewise.
420 * modules/malloc (License): Likewise.
421 * modules/malloca (License): Likewise.
422 * modules/memmem (License): Likewise.
423 * modules/mempcpy (License): Likewise.
424 * modules/memset (License): Likewise.
425 * modules/minmax (License): Likewise.
426 * modules/mktime (License): Likewise.
427 * modules/netinet_in (License): Likewise.
428 * modules/pathmax (License): Likewise.
429 * modules/poll (License): Likewise.
430 * modules/regex (License): Likewise.
431 * modules/snprintf (License): Likewise.
432 * modules/stdbool (License): Likewise.
433 * modules/stdint (License): Likewise.
434 * modules/stdio (License): Likewise.
435 * modules/strcase (License): Likewise.
436 * modules/strcasestr (License): Likewise.
437 * modules/strdup (License): Likewise.
438 * modules/string (License): Likewise.
439 * modules/strndup (License): Likewise.
440 * modules/strnlen (License): Likewise.
441 * modules/strpbrk (License): Likewise.
442 * modules/strptime (License): Likewise.
443 * modules/strsep (License): Likewise.
444 * modules/sys_select (License): Likewise.
445 * modules/sys_socket (License): Likewise.
446 * modules/sys_stat (License): Likewise.
447 * modules/sys_time (License): Likewise.
448 * modules/time (License): Likewise.
449 * modules/time_r (License): Likewise.
450 * modules/timegm (License): Likewise.
451 * modules/unistd (License): Likewise.
452 * modules/vsnprintf (License): Likewise.
453 * modules/wctype (License): Likewise.
455 2007-07-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
457 * modules/argz (License): LGPLv2+.
459 2007-07-15 Karl Berry <karl@gnu.org>
461 * doc/gnulib.texi: revise node structure per new fdl.texi.
463 2007-07-14 Bruno Haible <bruno@clisp.org>
465 * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
467 * lib/uniname/uninames.h: Regenerated.
469 2007-07-14 Karl Berry <karl@gnu.org>
471 * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
472 omitting sectioning and index commands.
474 2007-07-13 Bruno Haible <bruno@clisp.org>
476 New gnulib-tool option --more-symlinks.
477 * gnulib-tool (func_usage): Document --more-symlinks.
478 (do_copyrights): New variable.
479 Recognize option --more-symlinks.
480 (func_import): Don't add a copyright notice transform to
481 sed_transform_lib_file if do_copyrights is empty.
483 2007-07-13 Bruno Haible <bruno@clisp.org>
485 * lib/vasnprintf.c (decimal_point_char): Define also if
486 (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
487 && !NEED_PRINTF_DIRECTIVE_A.
488 Reported by Clemens Koller <clemens.koller@anagramm.de> via
489 Gary V. Vaughan <gary@gnu.org>.
491 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
493 * lib/inttypes_.h: Undo previous change, since it was fixed
494 in a different way in the 2007-07-02 fix to m4/inttypes.m4.
496 2007-07-13 Bruno Haible <bruno@clisp.org>
498 * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
499 misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
501 2007-07-13 Jim Meyering <jim@meyering.net>
503 df: Don't fail for Tru64's "file-on-file mount".
504 * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
505 so we fall through and use statfs instead. Details here:
506 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
507 Reported by Albert Chin.
509 2007-07-13 Bruno Haible <bruno@clisp.org>
511 * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
512 * modules/configmake (License): Likewise.
513 * modules/gettext (License): Likewise.
514 * modules/gettext-h (License): Likewise.
515 * modules/include_next (License): Likewise.
516 * modules/link-warning (License): Likewise.
517 * modules/localcharset (License): Likewise.
518 * modules/localename (License): Likewise.
519 * modules/lock (License): Likewise.
520 * modules/relocatable-lib-lgpl (License): Likewise.
521 * modules/size_max (License): Likewise.
522 * modules/vasnprintf (License): Likewise.
523 * modules/wchar (License): Likewise.
524 * modules/xsize (License): Likewise.
526 2007-07-13 Bruno Haible <bruno@clisp.org>
528 * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
529 (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
531 2007-07-12 Bruno Haible <bruno@clisp.org>
533 * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
534 in the modules files.
536 2007-07-11 Karl Berry <karl@gnu.org>
538 * MODULES.html.sh (func_module): use
539 sed -e '\|^'"${includefile}"'$|d'
540 instead of /.../d, to avoid errors on $includefile's containing /.
542 2007-07-10 Sergey Poznyakoff <gray@gnu.org.ua>
544 * gnulib-tool (func_import): Avoid duplication of --avoid
546 (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
547 names to `_' in variable names.
549 2007-07-10 Eric Blake <ebb9@byu.net>
551 * lib/version-etc.c (version_etc_va): Default to GPLv3+.
552 * NEWS: Document this change.
554 2007-07-08 Bruno Haible <bruno@clisp.org>
556 Update to Unicode 5.0.
557 * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
558 U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
559 U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
560 U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
561 U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
562 U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
563 U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
564 U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
565 U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
566 U+10A3F, U+1D242..U+1D244.
567 (nonspacing_table_ind): Update.
568 (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
569 U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
571 2007-07-08 Bruno Haible <bruno@clisp.org>
573 Update to Unicode 5.0.
574 * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
575 code transform. Extend the name index field of unicode_name_to_code and
576 unicode_code_to_name from 16 to 24 bits.
577 * lib/uniname/uniname.c (unicode_character_name,
578 unicode_name_character): Add the range 0x12xxx to the code transform.
579 * lib/uniname/uninames.h: Regenerated.
580 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
582 2007-07-07 Bruno Haible <bruno@clisp.org>
584 * modules/wcwidth-tests: New file.
585 * tests/test-wcwidth.c: New file.
587 Work around MacOS X wcwidth() bug.
588 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
589 * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
590 (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
591 original wcwidth in non-UTF-8 locales.
592 * modules/wcwidth (Depends-on): Add localcharset, streq,
594 * doc/functions/wcwidth.texi: Update.
596 2007-07-07 Bruno Haible <bruno@clisp.org>
598 * lib/wchar_.h: Include the GL_LINK_WARNING macro.
599 (wcwidth): New declaration.
600 * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
602 (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
603 here. Prepare for creating <wchar.h> unconditionally.
604 * modules/wchar (Depends-on): Add link-warning.
605 (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
606 REPLACE_WCWIDTH, and GL_LINK_WARNING.
607 * lib/wcwidth.h: Remove file.
608 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
609 HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
610 * modules/wcwidth (Files): Remove lib/wcwidth.h.
611 (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
612 (Include): Replace wcwidth.h with <wchar.h>.
613 * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
614 * lib/mbchar.h: Don't include wcwidth.h.
615 * lib/mbswidth.c: Likewise.
616 * NEWS: Mention the change.
618 2007-07-07 Bruno Haible <bruno@clisp.org>
620 * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
621 * lib/wcwidth.h: Don't include wctype.h. Replace inline function
622 definition with an external declaration.
623 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
624 defined as a function. Remove AC_C_INLINE requirement.
625 * modules/wcwidth (Files): Add lib/wcwidth.c.
626 (Makefile.am): Remove redundant statement.
628 2007-07-07 Bruno Haible <bruno@clisp.org>
630 * MODULES.html.sh (Unicode string functions): Add the new modules.
632 * tests/uniwidth/test-u32-strwidth.c: New file.
633 * modules/uniwidth/u32-strwidth-tests: New file.
635 * lib/uniwidth/u32-strwidth.c: New file.
636 * modules/uniwidth/u32-strwidth: New file.
638 * tests/uniwidth/test-u16-strwidth.c: New file.
639 * modules/uniwidth/u16-strwidth-tests: New file.
641 * lib/uniwidth/u16-strwidth.c: New file.
642 * modules/uniwidth/u16-strwidth: New file.
644 * tests/uniwidth/test-u8-strwidth.c: New file.
645 * modules/uniwidth/u8-strwidth-tests: New file.
647 * lib/uniwidth/u8-strwidth.c: New file.
648 * modules/uniwidth/u8-strwidth: New file.
650 * tests/uniwidth/test-u32-width.c: New file.
651 * modules/uniwidth/u32-width-tests: New file.
653 * lib/uniwidth/u32-width.c: New file.
654 * modules/uniwidth/u32-width: New file.
656 * tests/uniwidth/test-u16-width.c: New file.
657 * modules/uniwidth/u16-width-tests: New file.
659 * lib/uniwidth/u16-width.c: New file.
660 * modules/uniwidth/u16-width: New file.
662 * tests/uniwidth/test-u8-width.c: New file.
663 * modules/uniwidth/u8-width-tests: New file.
665 * lib/uniwidth/u8-width.c: New file.
666 * modules/uniwidth/u8-width: New file.
668 * tests/uniwidth/test-uc_width.c: New file.
669 * modules/uniwidth/width-tests: New file.
671 * lib/uniwidth/width.c: New file, from GNU libiconv.
672 * lib/uniwidth/cjk.h: New file, from GNU libiconv.
673 * modules/uniwidth/width: New file.
675 * lib/uniwidth.h: New file, from GNU libiconv.
676 * modules/uniwidth/base: New file.
678 2007-07-07 Bruno Haible <bruno@clisp.org>
680 * lib/uniname.h: New file, from GNU gettext.
681 * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
682 * lib/uniname/uninames.h: New file, from GNU gettext.
683 * lib/uniname/uniname.c: New file, from GNU gettext.
684 * tests/uniname/test-uninames.sh: New file.
685 * tests/uniname/test-uninames.c: New file, from GNU gettext.
686 * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
687 * modules/uniname/base: New file.
688 * modules/uniname/uniname: New file.
689 * modules/uniname/uniname-tests: New file.
690 * MODULES.html.sh (Unicode string functions): Add the new modules.
692 2007-07-06 Bruno Haible <bruno@clisp.org>
694 * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
696 2007-07-06 Bruno Haible <bruno@clisp.org>
698 * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
699 a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
700 includes <cygwin/sys_time.h> which includes <sys/select.h> which
701 include <sys/time.h>.
702 Reported by Eric Blake.
704 2007-07-06 Eric Blake <ebb9@byu.net>
706 Fix testing canonicalize on cygwin.
707 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
708 Revert patch from 2007-06-19.
709 * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
710 canonicalize module is also in use.
711 * tests/test-canonicalize.c: New file.
712 * tests/test-canonicalize.sh: Likewise.
713 * modules/canonicalize-tests: Likewise.
715 2007-07-06 Jim Meyering <jim@meyering.net>
717 * lib/getugroups.c (getugroups): Detect getgrent failure.
718 Adjust comment to reflect reality: this function may return -1.
720 2007-07-05 Sergey Poznyakoff <gray@gnu.org.ua>
722 * build-aux/bootstrap (TP_URL,get_translations): Update to use
725 (gnulib_mk): New variable.
727 2007-07-05 Jim Meyering <jim@meyering.net>
729 Don't let endgrent clobber errno, no matter how improbable.
730 * lib/getugroups.c (getugroups): Save and restore errno around
733 Close the group DB even when failing with 2^31 or more members.
734 * lib/getugroups.c (getugroups): Don't return without calling endgrent.
736 2007-07-04 Jim Meyering <jim@meyering.net>
738 * lib/getugroups.h: New file.
739 * lib/getugroups.c: Include "getugroups.h".
740 Remove uses of "register" keyword.
741 Move local variable, "cp", down into scope where used.
742 Give "username" parameter the "const" attribute.
743 * modules/getugroups (Files): Add lib/getugroups.h
745 2007-07-04 Karl Berry <karl@gnu.org>
747 * MODULES.html.sh (func_all_modules): Complete rename of
748 gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
750 2007-07-02 Bruno Haible <bruno@clisp.org>
752 * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
753 mode, when inttypes.h comes from gnulib.
754 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
756 2007-07-02 Simon Josefsson <simon@josefsson.org>
758 * NEWS: Mention lgpl module name change.
760 * modules/lgpl-2.1: Renamed from lgpl.
762 * NEWS: Mention gpl module name change.
764 * modules/gpl-3.0: New file, based on gpl-2.0.
766 * modules/gpl-2.0: Renamed from gpl.
768 * modules/gpl: Fix filename, doc/gpl.texi is now found at
771 2007-07-02 Paul Eggert <eggert@cs.ucla.edu>
773 * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
774 #define __STDC_LIMIT_MACROS temporarily while including
775 <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
776 Problem reported by Joel E. Denny in
777 <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
779 2007-07-01 Bruno Haible <bruno@clisp.org>
781 * lib/unistdio.h: New file.
782 * lib/unistdio/u-asnprintf.h: New file.
783 * lib/unistdio/u-asprintf.h: New file.
784 * lib/unistdio/u-printf-args.c: New file.
785 * lib/unistdio/u-printf-args.h: New file.
786 * lib/unistdio/u-printf-parse.h: New file.
787 * lib/unistdio/u-snprintf.h: New file.
788 * lib/unistdio/u-sprintf.h: New file.
789 * lib/unistdio/u-vasprintf.h: New file.
790 * lib/unistdio/u-vsnprintf.h: New file.
791 * lib/unistdio/u-vsprintf.h: New file.
792 * lib/unistdio/ulc-asnprintf.c: New file.
793 * lib/unistdio/ulc-asprintf.c: New file.
794 * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
795 * lib/unistdio/ulc-printf-parse.c: New file.
796 * lib/unistdio/ulc-snprintf.c: New file.
797 * lib/unistdio/ulc-sprintf.c: New file.
798 * lib/unistdio/ulc-vasnprintf.c: New file.
799 * lib/unistdio/ulc-vasprintf.c: New file.
800 * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
801 * lib/unistdio/ulc-vsnprintf.c: New file.
802 * lib/unistdio/ulc-vsprintf.c: New file.
803 * lib/unistdio/u8-asnprintf.c: New file.
804 * lib/unistdio/u8-asprintf.c: New file.
805 * lib/unistdio/u8-printf-parse.c: New file.
806 * lib/unistdio/u8-snprintf.c: New file.
807 * lib/unistdio/u8-sprintf.c: New file.
808 * lib/unistdio/u8-vasnprintf.c: New file.
809 * lib/unistdio/u8-vasprintf.c: New file.
810 * lib/unistdio/u8-vsnprintf.c: New file.
811 * lib/unistdio/u8-vsprintf.c: New file.
812 * lib/unistdio/u8-u8-asnprintf.c: New file.
813 * lib/unistdio/u8-u8-asprintf.c: New file.
814 * lib/unistdio/u8-u8-snprintf.c: New file.
815 * lib/unistdio/u8-u8-sprintf.c: New file.
816 * lib/unistdio/u8-u8-vasnprintf.c: New file.
817 * lib/unistdio/u8-u8-vasprintf.c: New file.
818 * lib/unistdio/u8-u8-vsnprintf.c: New file.
819 * lib/unistdio/u8-u8-vsprintf.c: New file.
820 * lib/unistdio/u16-asnprintf.c: New file.
821 * lib/unistdio/u16-asprintf.c: New file.
822 * lib/unistdio/u16-printf-parse.c: New file.
823 * lib/unistdio/u16-snprintf.c: New file.
824 * lib/unistdio/u16-sprintf.c: New file.
825 * lib/unistdio/u16-vasnprintf.c: New file.
826 * lib/unistdio/u16-vasprintf.c: New file.
827 * lib/unistdio/u16-vsnprintf.c: New file.
828 * lib/unistdio/u16-vsprintf.c: New file.
829 * lib/unistdio/u16-u16-asnprintf.c: New file.
830 * lib/unistdio/u16-u16-asprintf.c: New file.
831 * lib/unistdio/u16-u16-snprintf.c: New file.
832 * lib/unistdio/u16-u16-sprintf.c: New file.
833 * lib/unistdio/u16-u16-vasnprintf.c: New file.
834 * lib/unistdio/u16-u16-vasprintf.c: New file.
835 * lib/unistdio/u16-u16-vsnprintf.c: New file.
836 * lib/unistdio/u16-u16-vsprintf.c: New file.
837 * lib/unistdio/u32-asnprintf.c: New file.
838 * lib/unistdio/u32-asprintf.c: New file.
839 * lib/unistdio/u32-printf-parse.c: New file.
840 * lib/unistdio/u32-snprintf.c: New file.
841 * lib/unistdio/u32-sprintf.c: New file.
842 * lib/unistdio/u32-vasnprintf.c: New file.
843 * lib/unistdio/u32-vasprintf.c: New file.
844 * lib/unistdio/u32-vsnprintf.c: New file.
845 * lib/unistdio/u32-vsprintf.c: New file.
846 * lib/unistdio/u32-u32-asnprintf.c: New file.
847 * lib/unistdio/u32-u32-asprintf.c: New file.
848 * lib/unistdio/u32-u32-snprintf.c: New file.
849 * lib/unistdio/u32-u32-sprintf.c: New file.
850 * lib/unistdio/u32-u32-vasnprintf.c: New file.
851 * lib/unistdio/u32-u32-vasprintf.c: New file.
852 * lib/unistdio/u32-u32-vsnprintf.c: New file.
853 * lib/unistdio/u32-u32-vsprintf.c: New file.
854 * tests/unistdio/test-ulc-asnprintf1.c: New file.
855 * tests/unistdio/test-ulc-asnprintf1.h: New file.
856 * tests/unistdio/test-ulc-printf1.h: New file.
857 * tests/unistdio/test-ulc-vasnprintf1.c: New file.
858 * tests/unistdio/test-ulc-vasnprintf2.c: New file.
859 * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
860 * tests/unistdio/test-ulc-vasnprintf3.c: New file.
861 * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
862 * tests/unistdio/test-ulc-vasprintf1.c: New file.
863 * tests/unistdio/test-ulc-vsnprintf1.c: New file.
864 * tests/unistdio/test-ulc-vsprintf1.c: New file.
865 * tests/unistdio/test-u8-asnprintf1.c: New file.
866 * tests/unistdio/test-u8-asnprintf1.h: New file.
867 * tests/unistdio/test-u8-printf1.h: New file.
868 * tests/unistdio/test-u8-vasnprintf1.c: New file.
869 * tests/unistdio/test-u8-vasnprintf2.c: New file.
870 * tests/unistdio/test-u8-vasnprintf2.sh: New file.
871 * tests/unistdio/test-u8-vasnprintf3.c: New file.
872 * tests/unistdio/test-u8-vasnprintf3.sh: New file.
873 * tests/unistdio/test-u8-vasprintf1.c: New file.
874 * tests/unistdio/test-u8-vsnprintf1.c: New file.
875 * tests/unistdio/test-u8-vsprintf1.c: New file.
876 * tests/unistdio/test-u16-asnprintf1.c: New file.
877 * tests/unistdio/test-u16-asnprintf1.h: New file.
878 * tests/unistdio/test-u16-printf1.h: New file.
879 * tests/unistdio/test-u16-vasnprintf1.c: New file.
880 * tests/unistdio/test-u16-vasnprintf2.c: New file.
881 * tests/unistdio/test-u16-vasnprintf2.sh: New file.
882 * tests/unistdio/test-u16-vasnprintf3.c: New file.
883 * tests/unistdio/test-u16-vasnprintf3.sh: New file.
884 * tests/unistdio/test-u16-vasprintf1.c: New file.
885 * tests/unistdio/test-u16-vsnprintf1.c: New file.
886 * tests/unistdio/test-u16-vsprintf1.c: New file.
887 * tests/unistdio/test-u32-asnprintf1.c: New file.
888 * tests/unistdio/test-u32-asnprintf1.h: New file.
889 * tests/unistdio/test-u32-printf1.h: New file.
890 * tests/unistdio/test-u32-vasnprintf1.c: New file.
891 * tests/unistdio/test-u32-vasnprintf2.c: New file.
892 * tests/unistdio/test-u32-vasnprintf2.sh: New file.
893 * tests/unistdio/test-u32-vasnprintf3.c: New file.
894 * tests/unistdio/test-u32-vasnprintf3.sh: New file.
895 * tests/unistdio/test-u32-vasprintf1.c: New file.
896 * tests/unistdio/test-u32-vsnprintf1.c: New file.
897 * tests/unistdio/test-u32-vsprintf1.c: New file.
898 * modules/unistdio/base: New file.
899 * modules/unistdio/u-printf-args: New file.
900 * modules/unistdio/ulc-asnprintf: New file.
901 * modules/unistdio/ulc-asprintf: New file.
902 * modules/unistdio/ulc-fprintf: New file.
903 * modules/unistdio/ulc-printf-parse: New file.
904 * modules/unistdio/ulc-snprintf: New file.
905 * modules/unistdio/ulc-sprintf: New file.
906 * modules/unistdio/ulc-vasnprintf: New file.
907 * modules/unistdio/ulc-vasprintf: New file.
908 * modules/unistdio/ulc-vfprintf: New file.
909 * modules/unistdio/ulc-vsnprintf: New file.
910 * modules/unistdio/ulc-vsprintf: New file.
911 * modules/unistdio/u8-asnprintf: New file.
912 * modules/unistdio/u8-asprintf: New file.
913 * modules/unistdio/u8-printf-parse: New file.
914 * modules/unistdio/u8-snprintf: New file.
915 * modules/unistdio/u8-sprintf: New file.
916 * modules/unistdio/u8-vasnprintf: New file.
917 * modules/unistdio/u8-vasprintf: New file.
918 * modules/unistdio/u8-vsnprintf: New file.
919 * modules/unistdio/u8-vsprintf: New file.
920 * modules/unistdio/u8-u8-asnprintf: New file.
921 * modules/unistdio/u8-u8-asprintf: New file.
922 * modules/unistdio/u8-u8-snprintf: New file.
923 * modules/unistdio/u8-u8-sprintf: New file.
924 * modules/unistdio/u8-u8-vasnprintf: New file.
925 * modules/unistdio/u8-u8-vasprintf: New file.
926 * modules/unistdio/u8-u8-vsnprintf: New file.
927 * modules/unistdio/u8-u8-vsprintf: New file.
928 * modules/unistdio/u16-asnprintf: New file.
929 * modules/unistdio/u16-asprintf: New file.
930 * modules/unistdio/u16-printf-parse: New file.
931 * modules/unistdio/u16-snprintf: New file.
932 * modules/unistdio/u16-sprintf: New file.
933 * modules/unistdio/u16-vasnprintf: New file.
934 * modules/unistdio/u16-vasprintf: New file.
935 * modules/unistdio/u16-vsnprintf: New file.
936 * modules/unistdio/u16-vsprintf: New file.
937 * modules/unistdio/u16-u16-asnprintf: New file.
938 * modules/unistdio/u16-u16-asprintf: New file.
939 * modules/unistdio/u16-u16-snprintf: New file.
940 * modules/unistdio/u16-u16-sprintf: New file.
941 * modules/unistdio/u16-u16-vasnprintf: New file.
942 * modules/unistdio/u16-u16-vasprintf: New file.
943 * modules/unistdio/u16-u16-vsnprintf: New file.
944 * modules/unistdio/u16-u16-vsprintf: New file.
945 * modules/unistdio/u32-asnprintf: New file.
946 * modules/unistdio/u32-asprintf: New file.
947 * modules/unistdio/u32-printf-parse: New file.
948 * modules/unistdio/u32-snprintf: New file.
949 * modules/unistdio/u32-sprintf: New file.
950 * modules/unistdio/u32-vasnprintf: New file.
951 * modules/unistdio/u32-vasprintf: New file.
952 * modules/unistdio/u32-vsnprintf: New file.
953 * modules/unistdio/u32-vsprintf: New file.
954 * modules/unistdio/u32-u32-asnprintf: New file.
955 * modules/unistdio/u32-u32-asprintf: New file.
956 * modules/unistdio/u32-u32-snprintf: New file.
957 * modules/unistdio/u32-u32-sprintf: New file.
958 * modules/unistdio/u32-u32-vasnprintf: New file.
959 * modules/unistdio/u32-u32-vasprintf: New file.
960 * modules/unistdio/u32-u32-vsnprintf: New file.
961 * modules/unistdio/u32-u32-vsprintf: New file.
962 * modules/unistdio/ulc-asnprintf-tests: New file.
963 * modules/unistdio/ulc-vasnprintf-tests: New file.
964 * modules/unistdio/ulc-vasprintf-tests: New file.
965 * modules/unistdio/ulc-vsnprintf-tests: New file.
966 * modules/unistdio/ulc-vsprintf-tests: New file.
967 * modules/unistdio/u8-asnprintf-tests: New file.
968 * modules/unistdio/u8-vasnprintf-tests: New file.
969 * modules/unistdio/u8-vasprintf-tests: New file.
970 * modules/unistdio/u8-vsnprintf-tests: New file.
971 * modules/unistdio/u8-vsprintf-tests: New file.
972 * modules/unistdio/u16-asnprintf-tests: New file.
973 * modules/unistdio/u16-vasnprintf-tests: New file.
974 * modules/unistdio/u16-vasprintf-tests: New file.
975 * modules/unistdio/u16-vsnprintf-tests: New file.
976 * modules/unistdio/u16-vsprintf-tests: New file.
977 * modules/unistdio/u32-asnprintf-tests: New file.
978 * modules/unistdio/u32-vasnprintf-tests: New file.
979 * modules/unistdio/u32-vasprintf-tests: New file.
980 * modules/unistdio/u32-vsnprintf-tests: New file.
981 * modules/unistdio/u32-vsprintf-tests: New file.
982 * MODULES.html.sh (Unicode string functions): Add the new modules.
984 2007-07-01 Bruno Haible <bruno@clisp.org>
986 * lib/sprintf.c (sprintf): Limit the available length estimation,
987 to avoid address wraparound.
988 * lib/vsprintf.c (vsprintf): Likewise.
989 * modules/sprintf-posix (Dependencies): Add stdint.
990 * modules/vsprintf-posix (Dependencies): Likewise.
992 2007-07-01 Bruno Haible <bruno@clisp.org>
994 * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
995 Windows PATH as well. Conservative double-quoting. Comments.
997 2007-07-01 Bruno Haible <bruno@clisp.org>
998 Eric Blake <ebb9@byu.net>
999 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1001 * gnulib-tool (self_abspathname): Fix algorithm to cope with
1002 empty components in $PATH, denoting '.'.
1004 2007-07-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1006 * gnulib-tool: Fix indentation.
1007 (func_create_megatestdir): Likewise.
1008 Report by Bruno Haible.
1010 2007-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1013 * build-aux/gnupload: Fix shell portability issues with for loops.
1014 Report by Karl Berry.
1016 2007-06-29 Simon Josefsson <simon@josefsson.org>
1018 * build-aux/maint.mk (POURL): Use translationproject.org.
1020 2007-06-27 Simon Josefsson <simon@josefsson.org>
1021 Bruno Haible <bruno@clisp.org>
1023 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
1024 before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
1025 explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
1026 (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
1027 HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
1029 2007-06-27 Bruno Haible <bruno@clisp.org>
1031 * build-aux/config.rpath: Upgrade to libtool-1.5.24.
1032 * build-aux/config.libpath: Upgrade to libtool-1.5.24.
1034 2007-06-26 Karl Berry <karl@gnu.org>
1036 * MODULES.html.sh: remove xreadlink-with-size.
1038 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
1040 * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
1041 method that I hope also handles the double-include problem noted
1043 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
1045 2007-06-23 Bruno Haible <bruno@clisp.org>
1047 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
1048 Don't let the 'mostlyclean' target fail if the last subdirectory could
1050 Reported by Karl Berry.
1052 2007-06-23 Bruno Haible <bruno@clisp.org>
1054 * gnulib-tool (echo): Add a speedier workaround for ksh.
1055 * tests/test-echo.sh: Likewise.
1057 2007-06-23 Bruno Haible <bruno@clisp.org>
1059 * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
1060 * tests/test-echo.sh: Likewise.
1062 2007-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1064 * gnulib-tool (IFS): Initialize early, so we don't set it to
1066 (self_abspathname): Rewrite algorithm to set it, reindent.
1067 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
1068 (func_create_megatestdir): Merge some sed scripts.
1070 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
1072 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
1073 exposed by Sun Studio 11 cc on Solaris 8.
1075 2007-06-22 Bruno Haible <bruno@clisp.org>
1077 * gnulib-tool (echo): Ensure the echo primitive does not interpret
1079 * tests/test-echo.sh: New file.
1081 2007-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1083 * gnulib-tool (func_add_or_update, func_create_testdir): Do not
1084 simplify `sed_replace_build_aux' scripts, they are portable but
1085 echoing them with `echo' is not.
1086 Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
1088 2007-06-21 Karl Berry <karl@gnu.org>
1090 * config/srclist.txt: guess we can't handle the licenses via
1091 srclist at the moment.
1093 2007-06-21 Paul Eggert <eggert@cs.ucla.edu>
1095 * MODULES.html.sh: Add include_next.
1096 * modules/include_next: New file.
1098 2007-06-20 Paul Eggert <eggert@cs.ucla.edu>
1100 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
1102 (gl_CHECK_NEXT_HEADERS): New macro.
1103 * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
1104 the obsolescent gl_ABSOLUTE_HEADER.
1105 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
1106 * m4/float_h.m4 (gl_FLOAT_H): Likewise.
1107 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
1108 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
1109 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
1110 * m4/math_h.m4 (gl_MATH_H): Likewise.
1111 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
1112 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
1113 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
1114 * m4/stdint.m4 (gl_STDINT_H): Likewise.
1115 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
1116 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
1117 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
1118 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1119 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
1120 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
1121 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
1122 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
1123 * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
1124 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1125 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
1126 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
1127 * m4/inttypes.m4 (gl_INTTYPES_H): Define
1128 _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
1129 builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
1130 * m4/stdint.m4 (gl_STDINT_H): Likewise, for
1131 _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
1132 * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
1133 rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
1134 * lib/float_.h: Likewise.
1135 * lib/inttypes_.h: Likewise.
1136 * lib/math_.h: Likewise.
1137 * lib/search_.h: Likewise.
1138 * lib/signal_.h: Likewise.
1139 * lib/stdint_.h: Likewise.
1140 * lib/stdio_.h: Likewise.
1141 * lib/stdlib_.h: Likewise.
1142 * lib/string_.h: Likewise.
1143 * lib/sys_stat_.h: Likewise.
1144 * lib/sys_time_.h: Likewise.
1145 * lib/time_.h: Likewise.
1146 * lib/unistd_.h: Likewise.
1147 * lib/wchar_.h: Likewise.
1148 * lib/wctype_.h: Likewise.
1149 * lib/dirent_.h: Likewise.
1150 * lib/iconv_.h: Likewise.
1151 * lib/locale_.h: Likewise.
1152 * lib/netinet_in_.h: Likewise.
1153 * lib/sys_select_.h: Likewise.
1154 * lib/sys_socket_.h: Likewise.
1155 * lib/sysexits_.h: Likewise.
1156 * modules/fcntl (Depends-on): Depend on include_next, not
1158 (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
1159 HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
1160 * modules/fchdir: Likewise.
1161 * modules/float: Likewise.
1162 * modules/iconv_open: Likewise.
1163 * modules/inttypes: Likewise.
1164 * modules/locale: Likewise.
1165 * modules/math: Likewise.
1166 * modules/netinet_in: Likewise.
1167 * modules/search: Likewise.
1168 * modules/signal: Likewise.
1169 * modules/stdint: Likewise.
1170 * modules/stdio: Likewise.
1171 * modules/stdlib: Likewise.
1172 * modules/string: Likewise.
1173 * modules/sys_select: Likewise.
1174 * modules/sys_socket: Likewise.
1175 * modules/sys_stat: Likewise.
1176 * modules/sys_time: Likewise.
1177 * modules/sysexits: Likewise.
1178 * modules/time: Likewise.
1179 * modules/unistd: Likewise.
1180 * modules/wchar: Likewise.
1181 * modules/wctype: Likewise.
1182 * modules/sys_stat: Change maintainer to "all".
1183 * modules/unistd: Likewise.
1185 2007-06-20 Karl Berry <karl@gnu.org>
1187 * config/srclist.txt: track www changes in license files.
1189 2007-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
1191 * build-aux/bootstrap: Remove stray dot.
1192 Make sure build_aux settings are honored when linking
1195 2007-06-19 Eric Blake <ebb9@byu.net>
1197 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
1198 Allow compilation on cygwin.
1200 2007-06-19 Jim Meyering <jim@meyering.net>
1202 xreadlink-with-size: Remove module. No longer used.
1203 Ex-callers now use xreadlink or mreadlink-with-size.
1204 * modules/xreadlink-with-size: Remove module.
1205 * lib/xreadlink-with-size.c: Remove file.
1206 * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
1207 (xreadlink): Remove inaccurate comment. The one in xreadlink.c,
1208 just before the function definition *is* accurate.
1210 Eliminate one way canonicalize_filename_mode could exit.
1211 * lib/canonicalize.c (canonicalize_filename_mode):
1212 Use mreadlink_with_size, not xreadlink_with_size.
1214 2007-06-18 Paul Eggert <eggert@cs.ucla.edu>
1216 Detect porting problems to FreeBSD/arm, which has time_t wider than
1217 long int. Original problem reported for GNU diff by Xin Li in
1218 <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
1219 * modules/getdate (Depends-on): Add intprops, verify.
1220 * lib/getdate.y: Include intprops.h, verify.h. Verify that time_t
1221 is an integer type no wider than long int.
1223 2007-06-18 Jim Meyering <jim@meyering.net>
1225 New module: mreadlink-with-size.
1226 * MODULES.html.sh: Add mreadlink-with-size.
1227 * modules/mreadlink-with-size: New module
1228 * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
1229 not xreadlink-with-size.
1230 * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
1232 2007-06-16 Bruno Haible <bruno@clisp.org>
1234 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
1235 * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
1236 Reported by Gary V. Vaughan <gary@gnu.org>.
1238 2007-06-15 Paul Eggert <eggert@cs.ucla.edu>
1240 Revamp lchown so that it lives in unistd.h where it belongs.
1241 * lib/lchown.h: Remove.
1242 * lib/dirchownmod.c: Don't include lib/lchown.h.
1243 * lib/fchownat.c: Likewise.
1244 * lib/openat.c: Likewise.
1245 * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
1246 does not follow symlinks.
1247 (EOPNOTSUPP): Define if not defined.
1248 * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
1251 * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
1252 Do not check for lchown decl.
1254 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
1256 * modules/chown: Make it clear it follows symlinks.
1257 * modules/lchown: Make it clear it doesn't follow symlinks.
1258 (Files): Remove lib/lchown.h
1259 (Depends-on): Add unistd.
1260 (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
1261 (Include): Include <unistd.h>, not "lchown.h".
1262 * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
1265 2007-06-15 Jim Meyering <jim@meyering.net>
1267 Change license (GPL to LGPL) of fsusage and dependents.
1268 * modules/fsusage (License): Change to LGPL.
1269 * modules/full-read (License): Likewise.
1270 * modules/full-write (License): Likewise.
1271 * modules/safe-read (License): Likewise.
1272 * modules/safe-write (License): Likewise.
1274 2007-06-14 Ben Pfaff <blp@gnu.org>
1276 Missing part of allocsa -> malloca transition.
1277 * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
1280 2007-06-12 Bruno Haible <bruno@clisp.org>
1282 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
1283 to ia64, x86_64, i386.
1284 Reported by Eric Blake.
1286 2007-06-12 Bruno Haible <bruno@clisp.org>
1288 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
1289 cross-compiling to x86_64.
1291 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
1293 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
1294 glitch reported by Ralf Wildenhues in
1295 <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
1297 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
1300 2007-06-11 Bruno Haible <bruno@clisp.org>
1302 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
1304 Reported by Eric Blake.
1306 2007-06-10 Bruno Haible <bruno@clisp.org>
1308 Prepare vasnprintf code for use with Unicode strings.
1309 * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
1310 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
1312 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
1313 a_u32_string variants.
1314 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
1315 * lib/printf-args.c: Don't include config.h and the specification
1316 header if PRINTF_FETCHARGS is already defined.
1317 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
1318 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
1319 TYPE_U16_STRING, TYPE_U32_STRING.
1320 * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
1321 u16_directive, u16_directives, u32_directive, u32_directives): New
1323 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
1325 * lib/printf-parse.c: Don't include config.h and the specification
1326 header if PRINTF_PARSE is already defined. Eliminate the set of
1327 parameters for WIDE_CHAR_VERSION; the user of this file must provide
1328 them now. Include c-ctype.h.
1329 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
1330 directive and CHAR_T_ONLY_ASCII.
1331 * lib/vasnprintf.c: Don't include config.h and the specification header
1332 if VASNPRINTF is already defined.
1333 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
1334 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
1335 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
1336 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
1337 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
1338 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
1340 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
1341 pad_ourselves also in this case, with the 'c' and 's' directives, and
1342 with a different notion of "width".
1343 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
1345 2007-06-10 Bruno Haible <bruno@clisp.org>
1347 * modules/unistr/u32-mbsnlen: New file.
1348 * lib/unistr/u32-mbsnlen.c: New file.
1350 * modules/unistr/u16-mbsnlen: New file.
1351 * lib/unistr/u16-mbsnlen.c: New file.
1353 * modules/unistr/u8-mbsnlen: New file.
1354 * lib/unistr/u8-mbsnlen.c: New file.
1356 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
1359 2007-06-10 Bruno Haible <bruno@clisp.org>
1361 * lib/string_.h (mbsnlen): New declaration.
1362 * lib/mbsnlen.c: New file.
1363 * m4/mbsnlen.m4: New file.
1364 * modules/mbsnlen: New file.
1365 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
1366 * modules/string (string.h): Substitute GNULIB_MBSNLEN.
1367 * MODULES.html.sh (Internationalization functions): Add mbsnlen.
1369 2007-06-10 Bruno Haible <bruno@clisp.org>
1371 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
1373 2007-06-10 Bruno Haible <bruno@clisp.org>
1375 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
1376 * lib/mbuiter.h: Likewise.
1378 2007-06-10 Bruno Haible <bruno@clisp.org>
1380 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
1383 2007-06-10 Karl Berry <karl@gnu.org>
1385 * config/srclist.txt: remove gettext entries, Bruno prefers
1386 to update individually.
1388 2007-06-10 Bruno Haible <bruno@clisp.org>
1390 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
1391 'maxlen'. Ensure only length + width bytes are allocated, not
1394 2007-06-09 Bruno Haible <bruno@clisp.org>
1396 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
1397 (CHAR_T): Remove macro.
1398 (VASNPRINTF): Update.
1400 2007-06-09 Bruno Haible <bruno@clisp.org>
1402 * MODULES.html.sh (Unicode string functions): Add the new modules.
1404 * modules/uniconv/u32-conv-to-enc: New file.
1405 * lib/uniconv/u32-conv-to-enc.c: New file.
1406 * modules/uniconv/u32-conv-to-enc-tests: New file.
1407 * tests/uniconv/test-u32-conv-to-enc.c: New file.
1409 * modules/uniconv/u16-conv-to-enc: New file.
1410 * lib/uniconv/u16-conv-to-enc.c: New file.
1411 * lib/uniconv/u-conv-to-enc.h: New file.
1412 * modules/uniconv/u16-conv-to-enc-tests: New file.
1413 * tests/uniconv/test-u16-conv-to-enc.c: New file.
1415 * modules/uniconv/u8-conv-to-enc: New file.
1416 * lib/uniconv/u8-conv-to-enc.c: New file.
1417 * modules/uniconv/u8-conv-to-enc-tests: New file.
1418 * tests/uniconv/test-u8-conv-to-enc.c: New file.
1420 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
1421 u32_conv_to_encoding): New declarations.
1423 2007-06-09 Bruno Haible <bruno@clisp.org>
1425 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
1427 2007-06-09 Bruno Haible <bruno@clisp.org>
1429 Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
1430 * modules/malloca: Renamed from modules/allocsa, updated.
1431 * lib/malloca.h: Renamed from lib/allocsa.h, updated.
1432 * lib/malloca.c: Renamed from lib/allocsa.c, updated.
1433 * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
1434 * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
1435 * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
1436 * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
1437 * modules/xmalloca: Renamed from modules/xallocsa, updated.
1438 * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
1439 * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
1440 * modules/c-strcasestr (Depends-on): Update.
1441 * lib/c-strcasestr.c: Update.
1442 * modules/c-strstr (Depends-on): Update.
1443 * lib/c-strstr.c: Update.
1444 * modules/canonicalize-lgpl (Depends-on): Update.
1445 * lib/canonicalize-lgpl.c: Update.
1446 * modules/clean-temp (Depends-on): Update.
1447 * lib/clean-temp.c: Update.
1448 * modules/csharpcomp (Depends-on): Update.
1449 * lib/csharpcomp.c: Update.
1450 * modules/csharpexec (Depends-on): Update.
1451 * lib/csharpexec.c: Update.
1452 * modules/javacomp (Depends-on): Update.
1453 * lib/javacomp.c: Update.
1454 * modules/javaexec (Depends-on): Update.
1455 * lib/javaexec.c: Update.
1456 * modules/mbscasestr (Depends-on): Update.
1457 * lib/mbscasestr.c: Update.
1458 * modules/mbsstr (Depends-on): Update.
1459 * lib/mbsstr.c: Update.
1460 * modules/setenv (Depends-on): Update.
1461 * lib/setenv.c: Update.
1462 * modules/strcasestr (Depends-on): Update.
1463 * lib/strcasestr.c: Update.
1464 * modules/striconveha (Depends-on): Update.
1465 * lib/striconveha.c: Update.
1466 * modules/relocatable-prog-wrapper (Files): Update.
1467 * lib/relocwrapper.c: Update.
1468 * build-aux/install-reloc: Update.
1469 * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
1471 2007-06-08 Bruno Haible <bruno@clisp.org>
1474 * lib/fbufmode.c (fbufmode): Add special code for uClibc.
1475 * lib/fpurge.c (fpurge): Likewise.
1476 * lib/freading.c (freading): Likewise.
1477 * lib/fseeko.c (rpl_fseeko): Likewise.
1478 * lib/fseterr.c (fseterr): Likewise.
1479 * lib/fwriting.c (fwriting): Likewise.
1480 * tests/test-fflush.c (main): Avoid a failure on uClibc.
1482 2007-06-08 Bruno Haible <bruno@clisp.org>
1484 * m4/intlmacosx.m4: New file, extracted from gettext.m4.
1485 * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
1486 * modules/gettext (Files): Add m4/intlmacosx.m4.
1488 2007-06-07 Bruno Haible <bruno@clisp.org>
1490 * modules/localename-tests: New file.
1491 * tests/test-localename.c: New file.
1493 New module 'localename'.
1494 * lib/localename.h: New file.
1495 * lib/localename.c: New file, from GNU gettext.
1496 * m4/localename.m4: New file.
1497 * modules/localename: New file.
1499 2007-06-07 Bruno Haible <bruno@clisp.org>
1501 Work around the lack of <wchar.h> on some builds of uClibc.
1502 * doc/headers/wchar.texi: Update.
1503 * lib/wchar_.h: Include <wchar.h> only if it exists.
1504 * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
1505 * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
1506 (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
1508 * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
1509 * modules/mbfile (Depends-on): Add wchar.
1510 * modules/mbiter (Depends-on): Likewise.
1511 * modules/mbuiter (Depends-on): Likewise.
1512 Reported by Simon Josefsson.
1514 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
1516 Work around problem reported by Steven M. Schweda in
1517 <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
1518 Tru64 5.1B with the Compaq compiler environment installed declares
1519 an 'isblank' function but does not define it in the C library.
1520 * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
1521 * lib/regex_internal.h (isblank): Likewise.
1522 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
1523 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
1525 2007-06-05 Bruno Haible <bruno@clisp.org>
1527 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
1529 * modules/printf-safe: New file.
1530 * modules/fprintf-posix (Depends-on): Add printf-safe.
1531 * modules/printf-posix (Depends-on): Likewise.
1532 * modules/snprintf-posix (Depends-on): Likewise.
1533 * modules/sprintf-posix (Depends-on): Likewise.
1534 * modules/vasnprintf-posix (Depends-on): Likewise.
1535 * modules/vasprintf-posix (Depends-on): Likewise.
1536 * modules/vfprintf-posix (Depends-on): Likewise.
1537 * modules/vprintf-posix (Depends-on): Likewise.
1538 * modules/vsnprintf-posix (Depends-on): Likewise.
1539 * modules/vsprintf-posix (Depends-on): Likewise.
1540 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
1541 AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
1542 non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
1543 "no" on i386, x86_64, ia64.
1544 * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
1545 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
1546 on i386, x86_64, ia64.
1547 * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
1548 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
1549 on i386, x86_64, ia64.
1550 * tests/test-vasnprintf-posix.c: Include float.h.
1551 (LDBL80_WORDS): New macro.
1552 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
1553 on i386, x86_64, ia64.
1554 * tests/test-vasprintf-posix.c: Include float.h.
1555 (LDBL80_WORDS): New macro.
1556 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
1557 on i386, x86_64, ia64.
1558 * tests/test-snprintf-posix.c: Include float.h.
1559 * tests/test-sprintf-posix.c: Likewise.
1560 * tests/test-vsnprintf-posix.c: Likewise.
1561 * tests/test-vsprintf-posix.c: Likewise.
1563 2007-06-05 Bruno Haible <bruno@clisp.org>
1565 Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
1566 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
1567 non-IEEE numbers on i386, x86_64, ia64.
1568 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
1569 * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
1570 * tests/test-isnanl.h: Include float.h.
1571 (main): Check also non-IEEE numbers on i386, x86_64, ia64.
1573 2007-06-05 Bruno Haible <bruno@clisp.org>
1575 * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
1576 also the %a / %A. Handle the %a / %A code before this extra handling.
1578 2007-06-05 Bruno Haible <bruno@clisp.org>
1580 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
1581 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
1583 2007-06-05 Bruno Haible <bruno@clisp.org>
1585 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
1586 typo in variable name.
1588 2007-06-05 Eric Blake <ebb9@byu.net>
1590 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
1591 Reported by Simon Josefsson.
1593 2007-06-04 Bruno Haible <bruno@clisp.org>
1595 Avoid test failures on some PowerPC platforms.
1596 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
1597 Define differently for PowerPC.
1598 * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
1599 Reported by Gary V. Vaughan <gary@gnu.org>.
1601 2007-06-02 Bruno Haible <bruno@clisp.org>
1603 Fix test-stdint failure on FreeBSD/ia64.
1604 * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
1605 PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
1606 WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
1607 * doc/headers/stdint.texi: Update.
1609 2007-06-01 Bruno Haible <bruno@clisp.org>
1611 * tests/test-binary-io.c (main): Pass a third argument to open().
1612 Reported by Gary V. Vaughan <gary@gnu.org>.
1614 2007-06-01 Bruno Haible <bruno@clisp.org>
1616 * doc/functions/frexpl.texi: Update for mingw.
1618 2007-06-01 Bruno Haible <bruno@clisp.org>
1620 * tests/test-lseek.c (main): Disable test of errno for invalid third
1622 * doc/functions/lseek.texi: Update.
1623 Reported by Gary V. Vaughan <gary@gnu.org>.
1625 2007-05-28 Bruno Haible <bruno@clisp.org>
1627 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
1629 2007-05-31 Eric Blake <ebb9@byu.net>
1631 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
1634 2007-05-30 Eric Blake <ebb9@byu.net>
1635 and Bruno Haible <bruno@clisp.org>
1637 Work around mingw test failures exposed by m4-1.4.9b.
1638 * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
1639 * tests/test-unistd.c: Disable uid_t and git_t tests for the
1642 2007-05-30 Bruno Haible <bruno@clisp.org>
1644 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
1645 assuming that they are closed. Needed on HP-UX 11.
1647 2007-05-29 Bruno Haible <bruno@clisp.org>
1649 Fix a problem with #include_next.
1650 * lib/dirent_.h: Split the double-inclusion guard.
1651 * lib/fcntl_.h: Likewise.
1652 * lib/float_.h: Likewise.
1653 * lib/iconv_.h: Likewise.
1654 * lib/inttypes_.h: Likewise.
1655 * lib/locale_.h: Likewise.
1656 * lib/math_.h: Likewise.
1657 * lib/netinet_in_.h: Likewise.
1658 * lib/search_.h: Likewise.
1659 * lib/signal_.h: Likewise.
1660 * lib/stdint_.h: Likewise.
1661 * lib/stdio_.h: Likewise.
1662 * lib/stdlib_.h: Likewise.
1663 * lib/string_.h: Likewise.
1664 * lib/sys_select_.h: Likewise.
1665 * lib/sys_socket_.h: Likewise.
1666 * lib/sys_stat_.h: Likewise.
1667 * lib/sys_time_.h: Likewise.
1668 * lib/sysexits_.h: Likewise.
1669 * lib/time_.h: Likewise.
1670 * lib/unistd_.h: Likewise.
1671 * lib/wchar_.h: Likewise.
1672 * lib/wctype_.h: Likewise.
1674 2007-05-29 Bruno Haible <bruno@clisp.org>
1676 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
1679 2007-05-29 Bruno Haible <bruno@clisp.org>
1681 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
1683 Reported by Eric Blake.
1685 2007-05-29 Bruno Haible <bruno@clisp.org>
1687 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
1690 2007-05-29 Eric Blake <ebb9@byu.net>
1691 Bruno Haible <bruno@clisp.org>
1693 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
1696 2007-05-28 Eric Blake <ebb9@byu.net>
1698 * modules/closein-tests (test_closein_LDADD): Support test on
1699 cygwin with libtool.
1701 2007-05-28 Bruno Haible <bruno@clisp.org>
1703 * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
1704 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
1705 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
1706 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
1707 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
1708 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
1709 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
1710 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
1711 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
1713 2007-05-28 Eric Blake <ebb9@byu.net>
1715 Unconditionally include <config.h> in unit tests.
1716 * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
1717 * tests/test-allocsa.c, tests/test-arcfour.c,
1718 tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
1719 tests/test-array_list.c, tests/test-array_oset.c,
1720 tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
1721 test-avltreehash_list.c, test-base64.c, test-binary-io.c,
1722 test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
1723 test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
1724 test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
1725 test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
1726 test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
1727 test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
1728 test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
1729 test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
1730 test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
1731 test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
1732 test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
1733 test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
1734 test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
1735 test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
1736 test-md5.c, test-memmem.c, test-printf-posix.c,
1737 test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
1738 test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
1739 test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
1740 test-strcasestr.c, test-striconv.c, test-striconveh.c,
1741 test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
1742 test-vasnprintf-posix2.c, test-vasnprintf.c,
1743 test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
1744 test-vfprintf-posix.c, test-vprintf-posix.c,
1745 test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
1746 test-xvasprintf.c: Likewise.
1748 2007-05-28 Bruno Haible <bruno@clisp.org>
1750 * gnulib-tool (func_import): Remember the --with-tests command-line
1751 option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
1752 Reported by Eric Blake.
1754 2007-05-28 Bruno Haible <bruno@clisp.org>
1756 * modules/ftell-tests: New file.
1757 * tests/test-ftell.c: New file, based on tests/test-ftello.c.
1758 * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
1760 * lib/ftell.c: New file.
1761 * modules/ftell: New file.
1762 * m4/ftell.m4: New file.
1763 * doc/functions/ftell.texi: Update.
1764 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
1766 * lib/stdio_.h (rpl_ftell): New declaration.
1767 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
1770 2007-05-28 Eric Blake <ebb9@byu.net>
1772 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
1774 2007-05-28 Bruno Haible <bruno@clisp.org>
1776 * modules/fseek-tests: New file.
1777 * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
1778 * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
1780 * lib/fseek.c: New file.
1781 * modules/fseek: New file.
1782 * m4/fseek.m4: New file.
1783 * doc/functions/fseek.texi: Update.
1784 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
1786 * lib/stdio_.h (rpl_fseek): New declaration.
1787 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
1790 2007-05-28 Bruno Haible <bruno@clisp.org>
1792 * lib/stdio_.h (fflush): More comments.
1794 2007-05-28 Bruno Haible <bruno@clisp.org>
1796 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
1799 2007-05-28 Eric Blake <ebb9@byu.net>
1801 Improve lseek module.
1802 * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
1803 * lib/unistd_.h (lseek): Scale back link warning message.
1804 * tests/test-lseek.c: Beef up test.
1805 * tests/test-lseek.sh: Exercise more facets of lseek.
1806 Reported by Bruno Haible.
1808 2007-05-28 Bruno Haible <bruno@clisp.org>
1810 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
1813 2007-05-27 Bruno Haible <bruno@clisp.org>
1815 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
1817 2007-05-27 Bruno Haible <bruno@clisp.org>
1819 * modules/openmp: New file.
1820 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
1823 2007-05-26 Bruno Haible <bruno@clisp.org>
1825 * modules/chdir-long (Depends-on): Add fchdir.
1826 * modules/chdir-safer (Depends-on): Likewise.
1827 * modules/fts (Depends-on): Likewise.
1828 * modules/fts-lgpl (Depends-on): Likewise.
1829 * modules/openat (Depends-on): Likewise.
1830 * modules/savewd (Depends-on): Likewise.
1832 2007-05-24 Eric Blake <ebb9@byu.net>
1835 * modules/lseek: New module.
1836 * m4/lseek.m4: New file.
1837 * lib/lseek.c: New file.
1838 * modules/lseek-tests: New file.
1839 * tests/test-lseek.c: New file.
1840 * tests/test-lseek.sh: New file.
1841 * MODULES.html.sh: Document lseek module.
1842 * modules/fflush (Depends-on): Add lseek, fseeko.
1843 * modules/fseeko (Depends-on): Likewise.
1844 * modules/ftello (Depends-on): Likewise.
1845 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
1847 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
1849 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
1850 * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
1851 * lib/ftello.c (rpl_ftello): Likewise.
1852 * tests/test-fseeko.c (main): Test this.
1853 * tests/test-fseeko.sh: Likewise.
1854 * tests/test-ftello.c (main): Likewise.
1855 * tests/test-ftello.sh: Likewise.
1856 * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
1857 implies replacing fseek.
1858 * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
1860 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
1861 * modules/unistd (Makefile.am): Likewise.
1862 * lib/unistd_.h (lseek): Declare a replacement.
1863 * doc/functions/lseek.texi (lseek): Document this fix.
1864 * doc/functions/fseek.texi (fseek): Likewise.
1865 * doc/functions/ftell.texi (ftell): Likewise.
1867 2007-05-24 Bruno Haible <bruno@clisp.org>
1869 * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
1870 in the printed representation of a NaN.
1871 * tests/test-vasprintf-posix.c (test_function): Likewise.
1872 * tests/test-snprintf-posix.h (test_function): Likewise.
1873 * tests/test-sprintf-posix.h (test_function): Likewise.
1874 Reported by Eric Blake.
1876 2007-05-23 Eric Blake <ebb9@byu.net>
1878 Fix fseeko/ftello on cygwin 1.5.24.
1879 * doc/functions/fseeko.texi (fseeko): Document the fix.
1880 * doc/functions/ftello.texi (ftello): Document the fix.
1881 * doc/functions/stdin.texi (stdin): Document the cygwin bug.
1882 * doc/functions/stdout.text (stdout): New file.
1883 * doc/functions/stderr.text (stderr): New file.
1884 * doc/gnulib.texi (Function Substitutes): Use new files.
1885 * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
1887 * tests/test-ftello.c (main): Likewise for ftello.
1888 * tests/test-fseeko.sh: New file.
1889 * tests/test-ftello.sh: New file.
1890 * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
1891 with seekable stdin.
1892 * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
1893 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
1894 (gl_REPLACE_FSEEKO): New macro.
1895 * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
1896 * modules/fseeko (Files): Distribute fseeko.c.
1897 * modules/ftello (Files): Distribute ftello.c.
1898 * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
1900 * lib/ftello.c (rpl_ftello): New file.
1901 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
1903 (gl_STDIN_LARGE_OFFSET): New macro.
1904 * modules/stdio (Makefile.am): Perform the replacement.
1905 * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
1907 2007-05-23 Bruno Haible <bruno@clisp.org>
1909 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
1910 GNULIB_POSIXCHECK is defined.
1912 2007-05-21 Bruno Haible <bruno@clisp.org>
1914 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
1915 Check also the output for NaN arguments. When cross-compiling, guess
1917 * lib/vasnprintf.c: Update comments.
1918 * tests/test-vasnprintf-posix.c (strisnan): New function.
1919 (test_function): Use it.
1920 * tests/test-vasprintf-posix.c (strisnan): New function.
1921 (test_function): Use it.
1922 * tests/test-snprintf-posix.h (strisnan): New function.
1923 (test_function): Use it.
1924 * tests/test-sprintf-posix.h (strisnan): New function.
1925 (test_function): Use it.
1926 Reported by Eric Blake.
1928 2007-05-20 Bruno Haible <bruno@clisp.org>
1930 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
1931 numbers that fails on BeOS.
1932 * doc/functions/frexpl.texi: Update.
1934 2007-05-20 Jim Meyering <jim@meyering.net>
1936 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
1937 forced upon us by glibc-2.6.
1939 2007-05-20 Bruno Haible <bruno@clisp.org>
1941 Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
1942 * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
1943 (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
1944 * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
1945 NEED_PRINTF_INFINITE.
1946 (is_infinitel): New function.
1947 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
1948 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
1949 gl_PREREQ_VASNPRINTF_INFINITE.
1950 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
1951 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
1952 gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
1953 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
1954 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
1955 gl_PREREQ_VASNPRINTF_INFINITE.
1956 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
1957 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1958 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1959 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1960 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
1961 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1962 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1963 * doc/functions/fprintf.texi: Update.
1964 * doc/functions/printf.texi: Update.
1965 * doc/functions/snprintf.texi: Update.
1966 * doc/functions/sprintf.texi: Update.
1967 * doc/functions/vfprintf.texi: Update.
1968 * doc/functions/vprintf.texi: Update.
1969 * doc/functions/vsnprintf.texi: Update.
1970 * doc/functions/vsprintf.texi: Update.
1972 2007-05-20 Bruno Haible <bruno@clisp.org>
1974 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
1975 was not found in libc.
1976 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
1978 2007-05-20 Bruno Haible <bruno@clisp.org>
1980 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
1981 printed as "-nan" instead of "nan".
1982 * tests/test-vasprintf-posix.c (test_function): Likewise.
1983 * tests/test-snprintf-posix.h (test_function): Likewise.
1984 * tests/test-sprintf-posix.h (test_function): Likewise.
1985 Needed for HP-UX 11.
1987 2007-05-20 Jim Meyering <jim@meyering.net>
1989 Fix buggy test for the fchownat-deref bug.
1990 * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
1991 symlink required for the run-test. Without it, this test would
1992 always declare that fchownat doesn't work, and client code would
1993 unnecessarily use the replacement function with fixed libc.
1994 (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
1995 Reported by Greg Schafer.
1997 2007-05-19 Bruno Haible <bruno@clisp.org>
1999 * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
2000 (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
2001 * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
2002 Needed for IRIX 6.5 and Solaris 2.5.1.
2004 2007-05-19 Bruno Haible <bruno@clisp.org>
2006 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
2007 (test_function): Skip tests involving -0.0 on platforms where
2009 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
2010 (test_function): Skip tests involving -0.0 on platforms where
2012 * tests/test-snprintf-posix.h (have_minus_zero): New function.
2013 (test_function): Skip tests involving -0.0 on platforms where
2015 * tests/test-sprintf-posix.h (have_minus_zero): New function.
2016 (test_function): Skip tests involving -0.0 on platforms where
2018 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
2020 * tests/test-printf-posix.h (test_function): Likewise.
2021 * tests/test-printf-posix.output: Remove all -0.0 related results.
2022 Needed for IRIX 6.5.
2024 2007-05-19 Bruno Haible <bruno@clisp.org>
2026 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
2027 printed as "nan0x7fffffff" instead of "nan".
2028 * tests/test-vasprintf-posix.c (test_function): Likewise.
2029 * tests/test-snprintf-posix.h (test_function): Likewise.
2030 * tests/test-sprintf-posix.h (test_function): Likewise.
2031 * tests/test-fprintf-posix.h (NaN): Remove macro.
2032 (test_function): Remove all NaN related tests.
2033 * tests/test-printf-posix.h (NaN): Remove macro.
2034 (test_function): Remove all NaN related tests.
2035 * tests/test-printf-posix.output: Remove all NaN related results.
2036 Needed for IRIX 6.5.
2038 2007-05-19 Bruno Haible <bruno@clisp.org>
2040 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
2041 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
2043 2007-05-19 Bruno Haible <bruno@clisp.org>
2045 * lib/float_.h: New file.
2046 * m4/float_h.m4: New file.
2047 * modules/float: New file.
2048 * modules/isnanl (Dependencies): Add float.
2049 * modules/isnanl-nolibm (Dependencies): Likewise.
2050 * modules/mathl (Dependencies): Likewise.
2051 * modules/printf-frexpl (Dependencies): Likewise.
2052 * modules/signbit (Dependencies): Likewise.
2053 * modules/vasnprintf (Dependencies): Likewise.
2054 * doc/headers/float.texi: Update.
2056 2007-05-19 Jim Meyering <jim@meyering.net>
2058 * lib/utimens.c (gl_futimens): Rename from futimens,
2059 now that glibc-2.6 declares futimens.
2060 * lib/utimens.h: Likewise.
2062 2007-05-19 Bruno Haible <bruno@clisp.org>
2064 Avoid test failures on mingw.
2065 * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
2066 * tests/test-printf-posix.sh: Likewise.
2067 * tests/test-vfprintf-posix.sh: Likewise.
2068 * tests/test-vprintf-posix.sh: Likewise.
2070 2007-05-19 Bruno Haible <bruno@clisp.org>
2072 Fix *printf result for NaN, Inf, -0.0 on mingw.
2073 * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
2074 * lib/vasnprintf.c: Include math.h and isnan.h.
2075 (is_infinite_or_zero): New function.
2076 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
2077 values in the %f, %F, %e, %E, %g, %G directives.
2078 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
2079 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
2080 gl_PRINTF_INFINITE and test its result. Invoke
2081 gl_PREREQ_VASNPRINTF_INFINITE.
2082 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
2083 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2084 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2085 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2086 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2087 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2088 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2089 * doc/functions/fprintf.texi: Update.
2090 * doc/functions/printf.texi: Update.
2091 * doc/functions/snprintf.texi: Update.
2092 * doc/functions/sprintf.texi: Update.
2093 * doc/functions/vfprintf.texi: Update.
2094 * doc/functions/vprintf.texi: Update.
2095 * doc/functions/vsnprintf.texi: Update.
2096 * doc/functions/vsprintf.texi: Update.
2098 2007-05-19 Bruno Haible <bruno@clisp.org>
2100 * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
2101 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
2102 Instead of multiplying with 10^k, set extra_zeroes to k.
2103 (scale10_round_long_double): Remove function.
2105 2007-05-18 Bruno Haible <bruno@clisp.org>
2107 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
2108 introduced on 2007-05-06.
2110 2007-05-18 Bruno Haible <bruno@clisp.org>
2112 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
2114 * tests/test-vasprintf-posix.c (test_function): Likewise.
2115 * tests/test-snprintf-posix.h (test_function): Likewise.
2116 * tests/test-sprintf-posix.h (test_function): Likewise.
2118 2007-05-18 Bruno Haible <bruno@clisp.org>
2120 * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
2121 (strmatch): New function.
2122 (test_function): Test the %f directive on numbers of various exponents.
2123 * tests/test-vasprintf-posix.c (SIZEOF): New macro.
2124 (strmatch): New function.
2125 (test_function): Test the %f directive on numbers of various exponents.
2126 * tests/test-snprintf-posix.h (strmatch): New function.
2127 (test_function): Test the %f directive on numbers of various exponents.
2128 * tests/test-sprintf-posix.h (strmatch): New function.
2129 (test_function): Test the %f directive on numbers of various exponents.
2130 * tests/test-snprintf-posix.c (SIZEOF): New macro.
2131 * tests/test-sprintf-posix.c (SIZEOF): New macro.
2132 * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
2133 * tests/test-vsprintf-posix.c (SIZEOF): New macro.
2135 2007-05-18 Bruno Haible <bruno@clisp.org>
2137 Add support for 'long double' number output.
2138 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
2139 * lib/vasnprintf.c: Include math.h and float+.h.
2140 (mp_limb_t): New type.
2141 (GMP_LIMB_BITS): New macro.
2142 (mp_twolimb_t): New type.
2143 (GMP_TWOLIMB_BITS): New macro.
2145 (multiply, divide, convert_to_decimal, decode_long_double,
2146 scale10_round_long_double, scale10_round_decimal_long_double,
2147 floorlog10l): New functions.
2148 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
2149 for the %f, %F, %e, %E, %g, %G directives.
2150 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
2151 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
2152 gl_PRINTF_LONG_DOUBLE and test its result. Invoke
2153 gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
2154 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
2155 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2156 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2157 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2158 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2159 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2160 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2161 * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
2162 * modules/snprintf-posix (Depends-on): Likewise.
2163 * modules/sprintf-posix (Depends-on): Likewise.
2164 * modules/vasnprintf-posix (Depends-on): Likewise.
2165 * modules/vasprintf-posix (Depends-on): Likewise.
2166 * modules/vfprintf-posix (Depends-on): Likewise.
2167 * modules/vsnprintf-posix (Depends-on): Likewise.
2168 * modules/vsprintf-posix (Depends-on): Likewise.
2169 * modules/vasnprintf (Files): Add lib/float+.h.
2170 * doc/functions/fprintf.texi: Update.
2171 * doc/functions/printf.texi: Update.
2172 * doc/functions/snprintf.texi: Update.
2173 * doc/functions/sprintf.texi: Update.
2174 * doc/functions/vfprintf.texi: Update.
2175 * doc/functions/vprintf.texi: Update.
2176 * doc/functions/vsnprintf.texi: Update.
2177 * doc/functions/vsprintf.texi: Update.
2179 2007-05-18 Bruno Haible <bruno@clisp.org>
2181 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
2183 2007-05-18 Bruno Haible <bruno@clisp.org>
2185 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
2186 for printing 64-bit integers. Needed for mingw.
2188 2007-05-18 Bruno Haible <bruno@clisp.org>
2190 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
2191 gl_FUNC_FREXPL_WORKS.
2192 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
2194 2007-05-18 Bruno Haible <bruno@clisp.org>
2196 * modules/frexpl-nolibm-tests: New file.
2198 * modules/frexpl-nolibm: New file.
2199 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
2201 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
2203 * lib/dirent_.h: Prefer #include_next <foo.h> to #include
2204 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
2205 GCC 4.2, which otherwise issues a lot of warnings.
2206 * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
2207 * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
2209 * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
2210 * modules/iconv_open (iconv.h): Likewise.
2211 * modules/locale (locale.h): Likewise.
2212 * modules/netinet_in (netinet/in.h): Likewise.
2213 * modules/sys_select (sys_select.h): Likewise.
2214 * modules/sys_socket (sys/socket.h): Likewise.
2215 * modules/sys_stat (sys/stat.h): Likewise.
2216 * modules/sysexits (sysexits.h): Likewise.
2217 * modules/unistd (unistd.h): Likewise.
2219 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2221 * modules/closein-tests (Makefile.am): Distribute
2224 2007-05-17 Bruno Haible <bruno@clisp.org>
2226 * tests/test-printf-posix.output: Renamed from
2227 tests/test-fprintf-posix.out.
2228 * modules/fprintf-posix-tests: Update.
2229 * modules/printf-posix-tests: Update.
2230 * modules/vfprintf-posix-tests: Update.
2231 * modules/vprintf-posix-tests: Update.
2232 * tests/test-fprintf-posix.sh: Update.
2233 * tests/test-printf-posix.sh: Update.
2234 * tests/test-vfprintf-posix.sh: Update.
2235 * tests/test-vprintf-posix.sh: Update.
2236 Reported by Ralf Wildenhues.
2238 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
2240 * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
2241 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
2242 GCC 4.2, which otherwise issues a lot of warnings.
2243 * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
2244 * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
2245 * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
2246 * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
2247 it should no longer be needed.
2248 * lib/string_.h: Likewise.
2249 * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
2250 * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
2251 * modules/inttypes (inttypes.h): Likewise.
2252 * modules/math (math.h): Likewise.
2253 * modules/search (search.h): Likewise.
2254 * modules/signal (signal.h): Likewise.
2255 * modules/stdint (stdint.h): Likewise.
2256 * modules/stdio (stdio.h): Likewise.
2257 * modules/stdlib (stdlib.h): Likewise.
2258 * modules/string (string.h): Likewise.
2259 * modules/sys_time (sys/time.h): Likewise.
2260 * modules/time (time.h): Likewise.
2261 * modules/wchar (wchar.h): Likewise.
2262 * modules/wctype (wtype.h): Likewise.
2264 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
2266 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
2268 2007-05-13 Bruno Haible <bruno@clisp.org>
2270 * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
2271 * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
2272 * strsep.m4 (gl_FUNC_STRSEP): Likewise.
2273 * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
2274 (gl_PREREQ_STRTOK_R): Don't require it here.
2276 2007-05-13 Bruno Haible <bruno@clisp.org>
2278 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
2279 when used in C++ mode.
2281 2007-05-12 Bruno Haible <bruno@clisp.org>
2283 * lib/linebuffer.h: Tweak doc.
2284 * lib/linebuffer.c: Likewise.
2286 2007-05-12 James Youngman <jay@gnu.org>
2288 * lib/linebuffer.c (readlinebuffer_delim): New function,
2289 like readlinebuffer, but use a caller-specified delimiter.
2290 (readlinebuffer): Just call readlinebuffer_delim with '\n'
2292 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
2294 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
2296 * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
2297 * modules/openat (Files): Remove openat-die.c.
2298 (Depends-on): Add openat-die.
2299 * modules/openat-die: New module.
2301 2007-05-06 Bruno Haible <bruno@clisp.org>
2303 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
2304 Update with info about Cygwin.
2305 * doc/functions/fprintf.texi: Update.
2306 * doc/functions/printf.texi: Update.
2307 * doc/functions/snprintf.texi: Update.
2308 * doc/functions/sprintf.texi: Update.
2309 * doc/functions/vfprintf.texi: Update.
2310 * doc/functions/vprintf.texi: Update.
2311 * doc/functions/vsnprintf.texi: Update.
2312 * doc/functions/vsprintf.texi: Update.
2313 Reported by Eric Blake.
2315 2007-05-06 Bruno Haible <bruno@clisp.org>
2317 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
2318 padding ourselves for the floating-point directives.
2319 * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
2320 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
2321 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
2322 gl_PRINTF_FLAG_ZERO and test its result. Invoke
2323 gl_PREREQ_VASNPRINTF_FLAG_ZERO.
2324 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2325 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
2326 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2327 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2328 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2329 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2330 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2331 * tests/test-snprintf-posix.h (test_function): Also check the width
2332 and some flags in the %f directive.
2333 * tests/test-sprintf-posix.h (test_function): Likewise.
2334 * tests/test-vasnprintf-posix.c (test_function): Likewise.
2335 * tests/test-vasprintf-posix.c (test_function): Likewise.
2336 * doc/functions/fprintf.texi: Update.
2337 * doc/functions/printf.texi: Update.
2338 * doc/functions/snprintf.texi: Update.
2339 * doc/functions/sprintf.texi: Update.
2340 * doc/functions/vfprintf.texi: Update.
2341 * doc/functions/vprintf.texi: Update.
2342 * doc/functions/vsnprintf.texi: Update.
2343 * doc/functions/vsprintf.texi: Update.
2345 2007-05-06 Bruno Haible <bruno@clisp.org>
2347 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
2348 pass the ' flag character to sprintf or snprintf.
2349 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
2350 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
2351 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
2352 gl_PRINTF_FLAG_GROUPING and test its result. Invoke
2353 gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
2354 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2355 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
2356 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2357 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2358 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2359 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2360 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2361 * tests/test-snprintf-posix.h (test_function): Also check the grouping
2363 * tests/test-sprintf-posix.h (test_function): Likewise.
2364 * tests/test-vasnprintf-posix.c (test_function): Likewise.
2365 * tests/test-vasprintf-posix.c (test_function): Likewise.
2366 * doc/functions/fprintf.texi: Update.
2367 * doc/functions/printf.texi: Update.
2368 * doc/functions/snprintf.texi: Update.
2369 * doc/functions/sprintf.texi: Update.
2370 * doc/functions/vfprintf.texi: Update.
2371 * doc/functions/vprintf.texi: Update.
2372 * doc/functions/vsnprintf.texi: Update.
2373 * doc/functions/vsprintf.texi: Update.
2375 2007-05-01 Bruno Haible <bruno@clisp.org>
2377 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
2379 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
2381 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
2382 comment for D_INO_IN_DIRENT. Problem reported by James Youngman.
2384 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
2386 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
2387 readdir returns garbage in d_ino. Problem reported by Kaz Sasayama in
2388 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
2390 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
2392 * lib/argp-help.c (struct hol_entry): New member `ord'.
2393 (HOL_ENTRY_PTRCMP): Use ord for comparison
2394 (hol_sort): Initialize ord.
2396 2007-05-01 Bruno Haible <bruno@clisp.org>
2398 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
2399 Reported by Eric Blake.
2400 * doc/gnulib.texi (Function Substitutes): Update.
2402 2007-05-01 Bruno Haible <bruno@clisp.org>
2404 * doc/functions.texi: Remove file, now redundant through
2405 doc/functions/*.texi.
2407 2007-05-01 Bruno Haible <bruno@clisp.org>
2409 * modules/argp (Depends-on): Add sleep.
2411 2007-05-01 Bruno Haible <bruno@clisp.org>
2413 * modules/sleep-tests: New file.
2414 * tests/test-sleep.c: New file.
2416 * modules/sleep: New file.
2417 * lib/sleep.c: New file.
2418 * m4/sleep.m4: New file.
2419 * lib/unistd_.h (sleep): New declaration.
2420 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
2422 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
2423 * doc/functions/sleep.texi: Document the sleep module.
2425 2007-05-01 Bruno Haible <bruno@clisp.org>
2427 * lib/sigprocmask.h: Remove file.
2428 * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
2429 * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
2430 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
2431 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
2432 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
2433 gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
2434 (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
2435 HAVE_SIGSET_T as a shell variable.
2436 * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
2437 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
2438 * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
2439 (Depends-on): Add signal. Remove verify.
2440 (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
2441 (Include): Mention <signal.h> instead of sigprocmask.h.
2442 * NEWS: Mention the change.
2443 * lib/fatal-signal.c: Don't include sigprocmask.h.
2445 2007-05-01 Bruno Haible <bruno@clisp.org>
2447 * modules/signal: New file.
2448 * lib/signal_.h: New file.
2449 * m4/signal_h.m4: New file.
2451 2007-05-01 Bruno Haible <bruno@clisp.org>
2453 * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
2454 * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
2455 * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
2456 HAVE_WCTYPE_CTMP_BUG into wctype.h.
2458 2007-05-01 Bruno Haible <bruno@clisp.org>
2460 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
2462 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
2463 HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
2464 * modules/sys_stat (Makefile.am): Substitute their values into
2467 2007-05-01 Bruno Haible <bruno@clisp.org>
2469 * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
2470 * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
2471 * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
2473 2007-05-01 Bruno Haible <bruno@clisp.org>
2475 * doc/header/assert.texi: Undo last change: don't mention the gnulib
2476 'assert' module here.
2478 2007-05-01 Bruno Haible <bruno@clisp.org>
2480 * doc/functions/*.texi: New files.
2481 * doc/functions/google-ranking.txt: New file.
2482 * doc/gnulib.texi (Function Substitutes): New chapter.
2483 (ctime, inet_ntoa): Remove sections.
2484 * doc/ctime.texi: Remove file.
2485 * doc/inet_ntoa.texi: Remove file.
2486 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
2488 (%.info): New rule, specifying a --reference-limit.
2490 2007-05-01 Bruno Haible <bruno@clisp.org>
2492 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
2494 2007-05-01 Bruno Haible <bruno@clisp.org>
2496 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
2497 the portability of 'mkdir' to mingw systems.
2499 2007-05-01 Bruno Haible <bruno@clisp.org>
2501 * doc/headers/google-ranking.txt: New file.
2503 2007-04-30 Eric Blake <ebb9@byu.net>
2505 Prefer fseeko to fseek.
2506 * modules/getpass (Depends-on): Add fseeko.
2507 * lib/getpass.c (getpass): Use fseeko, not fseek.
2509 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
2511 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
2512 assumes the sorting is stable, while most qsort implementations
2513 are not. Use argument addresses to ensure they never compare as
2516 * tests/test-argp-2.sh (usage-indent test): Fix output
2517 (func_compare): Restore diff options
2518 * tests/test-argp.c: Restore #include "progname.h"
2520 2007-04-29 Bruno Haible <bruno@clisp.org>
2522 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
2523 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
2524 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
2525 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2526 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
2527 (configure.ac): Define CHECK_SNPRINTF_POSIX.
2528 (TESTS, check_PROGRAMS): Add test-snprintf.
2529 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
2530 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
2531 (TESTS, check_PROGRAMS): Add test-vsnprintf.
2532 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
2533 assertions that fail on HP-UX, OSF/1, or IRIX.
2534 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
2536 2007-04-29 Bruno Haible <bruno@clisp.org>
2538 * MODULES.html.sh (posix_functions): Remove 'contents'.
2540 2007-04-29 Karl Berry <karl@gnu.org>
2542 * config/srclist.txt (gendocs_template_min): new entry.
2544 2007-04-29 Bruno Haible <bruno@clisp.org>
2546 Work around fpurge bug on BSD systems.
2547 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
2548 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
2549 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
2550 fpurge to rpl_fpurge if the system already has this function.
2551 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
2552 the case where the system already has this function. Correct invariants
2554 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
2557 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
2559 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
2560 proposed by Sven Verdoolaege.
2562 * tests/test-argp.c: Fix option ordering. Test deeply clustered
2564 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
2565 (usage and help tests): Update
2567 2007-04-29 Bruno Haible <bruno@clisp.org>
2569 * tests/test-fflush.c (main): Use a file of size 17, not 10.
2570 Print more information in case of failure. Disable a test on BeOS.
2572 2007-04-29 Bruno Haible <bruno@clisp.org>
2574 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
2575 This helps debugging on systems on which no gdb is available.
2577 2007-04-29 Bruno Haible <bruno@clisp.org>
2579 * lib/freading.h: Improve comments.
2580 * lib/fwriting.h: Likewise.
2581 * tests/test-freading.c (main): Don't check freading immediately after
2582 repositioning. Needed for glibc.
2584 2007-04-29 Bruno Haible <bruno@clisp.org>
2586 * lib/freading.c (freading): Trivial simplification.
2588 2007-04-28 Bruno Haible <bruno@clisp.org>
2590 * tests/test-fwriting.c (main): Also test the interaction between
2591 fflush and fwriting.
2592 * modules/fwriting-tests (Depends-on): Add fflush.
2594 * tests/test-freading.c (main): Also test the interaction between
2595 fflush and freading.
2596 * modules/freading-tests (Depends-on): Add fflush.
2598 2007-04-28 Bruno Haible <bruno@clisp.org>
2600 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
2602 Suggested by Eric Blake.
2604 2007-04-28 Jim Meyering <jim@meyering.net>
2606 Avoid false-negative in gl_STDINT_H's C99 conformance test.
2607 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
2608 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
2610 2007-04-27 Eric Blake <ebb9@byu.net>
2612 * doc/headers/assert.texi (assert.h): Document assert module use.
2614 2007-04-27 Bruno Haible <bruno@clisp.org>
2616 * doc/headers/*.texi: New files.
2617 * doc/gnulib.texi (Header File Substitutes): New chapter.
2618 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
2620 (standards.info ,standards.html, standards.dvi): Update dependencies.
2621 (mostlyclean, clean): New targets.
2623 2007-04-27 Bruno Haible <bruno@clisp.org>
2625 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
2626 * modules/sysexits (Files, Makefile.am): Update.
2628 * lib/sys_socket_.h: Renamed from lib/socket_.h.
2629 * modules/sys_socket (Files, Makefile.am): Update.
2631 * lib/sys_stat_.h: Renamed from lib/stat_.h.
2632 * modules/sys_stat (Files, Makefile.am): Update.
2634 2007-04-27 Eric Blake <ebb9@byu.net>
2636 * lib/freading.h: Improve comments.
2637 * lib/fwriting.h: Likewise.
2638 * lib/fflush.c: Likewise.
2640 Fix closein for mingw.
2641 * modules/closein-tests: Add tests for closein.
2642 * tests/test-closein.c: New file.
2643 * tests/test-closein.sh: Likewise.
2644 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
2645 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
2647 2007-04-27 Bruno Haible <bruno@clisp.org>
2649 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
2651 * lib/math_.h [__DECC]: Likewise.
2652 * lib/stdio_.h [__DECC]: Likewise.
2653 * lib/stdlib_.h [__DECC]: Likewise.
2654 * lib/string_.h [__DECC]: Likewise.
2655 * lib/time_.h [__DECC]: Likewise.
2656 * lib/wchar_.h [__DECC]: Likewise.
2657 * lib/wctype_.h [__DECC]: Likewise.
2659 2007-04-27 Bruno Haible <bruno@clisp.org>
2661 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
2663 2007-04-27 Bruno Haible <bruno@clisp.org>
2665 * lib/fflush.c: Add comments.
2666 * modules/fpurge-tests (Depends-on): Add fflush.
2667 * modules/freadable-tests (Depends-on): Likewise.
2668 * modules/fwritable-tests (Depends-on): Likewise.
2670 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
2672 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
2673 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
2674 Report by Bruno Haible <bruno@clisp.org>.
2676 2007-04-26 Eric Blake <ebb9@byu.net>
2678 Fix fflush on mingw.
2679 * modules/fflush (Depends-on): Add freading.
2680 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
2683 2007-04-26 Eric Blake <ebb9@byu.net>
2684 and Bruno Haible <bruno@clisp.org>
2686 Implement freading and fwriting.
2687 * lib/freading.c: New file.
2688 * lib/freading.h: Likewise.
2689 * m4/freading.m4: Likewise.
2690 * modules/freading: Likewise.
2691 * modules/freading-tests: Likewise.
2692 * tests/test-freading.c: Likewise.
2693 * lib/fwriting.c: New file.
2694 * lib/fwriting.h: Likewise.
2695 * m4/fwriting.m4: Likewise.
2696 * modules/fwriting: Likewise.
2697 * modules/fwriting-tests: Likewise.
2698 * tests/test-fwriting.c: Likewise.
2699 * MODULES.html.sh (File stream based Input/Output): Mention them.
2701 2007-04-26 Bruno Haible <bruno@clisp.org>
2703 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
2704 'long' when we assume it.
2705 Suggested by Eric Blake.
2707 2007-04-26 Bruno Haible <bruno@clisp.org>
2709 Ensure fseeko, ftello are declared on glibc systems.
2710 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
2711 * modules/fseeko (configure.ac-early): Likewise.
2712 * modules/ftello (configure.ac-early): Likewise.
2713 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
2714 AC_FUNC_FSEEKO for this.
2715 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
2716 (gl_CHECK_FSEEKO): Remove macro.
2718 2007-04-26 Bruno Haible <bruno@clisp.org>
2720 * tests/test-fflush.c (main): Also check the ftell result after
2721 fflush and fseek/fseeko.
2722 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
2723 file descriptor position cache in the stream.
2724 * lib/fseeko.c (rpl_fseeko): Likewise.
2726 2007-04-26 Bruno Haible <bruno@clisp.org>
2728 * modules/fflush-tests (Depends-on): Add fseeko.
2730 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
2731 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2733 * lib/argz_.h: ensure error_t definition is obtained in same
2734 mechanism system argz.h would have.
2735 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
2736 argz facilities are known bad. Err on the side of caution if
2739 2007-04-25 Eric Blake <ebb9@byu.net>
2741 * lib/fpurge.c (includes): Use stdlib.h for free.
2742 * tests/test-fflush.c (main): Also test fflush-fseeko.
2744 2007-04-25 Bruno Haible <bruno@clisp.org>
2746 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
2747 * lib/fseeko.c: New file.
2748 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
2749 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
2750 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
2752 (gl_FUNC_FSEEKO): Invoke it.
2753 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
2754 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
2755 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
2757 2007-04-25 Bruno Haible <bruno@clisp.org>
2759 * modules/fflush (Depends-on): Add ftello.
2761 2007-04-25 Bruno Haible <bruno@clisp.org>
2763 * modules/ftello-tests: New file.
2764 * tests/test-ftello.c: New file.
2766 * modules/ftello: New file.
2767 * m4/ftello.m4: New file.
2768 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
2770 * lib/stdio_.h (ftello): New declaration.
2771 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
2774 2007-04-25 Bruno Haible <bruno@clisp.org>
2776 * modules/fseeko-tests: New file.
2777 * tests/test-fseeko.c: New file.
2779 * modules/fseeko: New file.
2780 * m4/fseeko.m4: New file.
2781 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
2783 * lib/stdio_.h (fseeko): New declaration.
2784 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
2787 2007-04-25 Bruno Haible <bruno@clisp.org>
2789 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
2791 2007-04-25 Bruno Haible <bruno@clisp.org>
2793 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
2794 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
2795 * tests/test-unistd.c: Likewise.
2796 * tests/test-fcntl.c: Likewise.
2798 2007-04-23 Eric Blake <ebb9@byu.net>
2800 * lib/fflush.c: Fix missing include.
2801 Reported by Bruno Haible.
2803 2007-04-23 Bruno Haible <bruno@clisp.org>
2805 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
2806 Reported by Eric Blake.
2808 2007-04-23 Bruno Haible <bruno@clisp.org>
2810 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
2812 2007-04-23 Bruno Haible <bruno@clisp.org>
2814 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
2816 2007-04-23 Bruno Haible <bruno@clisp.org>
2818 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
2821 2007-04-16 Eric Blake <ebb9@byu.net>
2823 Make fflush rely on fpurge.
2824 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
2825 open coding all variants.
2826 * modules/fflush (Depends-on): Add fpurge and unistd.
2827 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
2828 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
2830 Fix --with-tests compilation on cygwin.
2831 * modules/argmatch-tests (Makefile.am): List gnulib library first
2833 * modules/argp-tests (Makefile.am): Likewise.
2834 * modules/array-list-tests (Makefile.am): Likewise.
2835 * modules/array-oset-tests (Makefile.am): Likewise.
2836 * modules/avltree-list-tests (Makefile.am): Likewise.
2837 * modules/avltree-oset-tests (Makefile.am): Likewise.
2838 * modules/avltreehash-list-tests (Makefile.am): Likewise.
2839 * modules/carray-list-tests (Makefile.am): Likewise.
2840 * modules/dirname-tests (Makefile.am): Likewise.
2841 * modules/frexp-tests (Makefile.am): Likewise.
2842 * modules/isnanl-tests (Makefile.am): Likewise.
2843 * modules/linked-list-tests (Makefile.am): Likewise.
2844 * modules/linkedhash-list-tests (Makefile.am): Likewise.
2845 * modules/lock-tests (Makefile.am): Likewise.
2846 * modules/rbtree-list-tests (Makefile.am): Likewise.
2847 * modules/rbtree-oset-tests (Makefile.am): Likewise.
2848 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
2849 * modules/tls-tests (Makefile.am): Likewise.
2850 * modules/tsearch-tests (Makefile.am): Likewise.
2851 * modules/xvasprintf-tests (Makefile.am): Likewise.
2853 Fix fpurge for cygwin.
2854 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
2856 * modules/fpurge-tests (Depends-on): Clean up trash.
2858 2007-04-16 Simon Josefsson <simon@josefsson.org>
2860 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
2862 * m4/autobuild.m4: Re-indent.
2864 2007-04-13 Bruno Haible <bruno@clisp.org>
2866 * modules/fpurge-tests: New file.
2867 * tests/test-fpurge.c: New file.
2869 * modules/fpurge: New file.
2870 * lib/fpurge.h: New file.
2871 * lib/fpurge.c: New file.
2872 * m4/fpurge.m4: New file.
2874 2007-04-13 Bruno Haible <bruno@clisp.org>
2876 * modules/fbufmode-tests: New file.
2877 * tests/test-fbufmode.c: New file.
2879 * modules/fbufmode: New file.
2880 * lib/fbufmode.h: New file.
2881 * lib/fbufmode.c: New file.
2882 * m4/fbufmode.m4: New file.
2884 2007-04-13 Bruno Haible <bruno@clisp.org>
2886 * modules/fwritable-tests: New file.
2887 * tests/test-fwritable.c: New file.
2889 * modules/fwritable: New file.
2890 * lib/fwritable.h: New file.
2891 * lib/fwritable.c: New file.
2892 * m4/fwritable.m4: New file.
2894 2007-04-13 Bruno Haible <bruno@clisp.org>
2896 * modules/freadable-tests: New file.
2897 * tests/test-freadable.c: New file.
2899 * modules/freadable: New file.
2900 * lib/freadable.h: New file.
2901 * lib/freadable.c: New file.
2902 * m4/freadable.m4: New file.
2904 2007-04-13 Bruno Haible <bruno@clisp.org>
2906 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
2909 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
2911 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
2912 gzip bootstrap.conf to avoid dragging in i18n machinery.
2913 (gnulib_tool_option): Use it.
2915 2007-04-13 Bruno Haible <bruno@clisp.org>
2917 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
2919 * tests/test-vasprintf-posix.c (test_function): Likewise.
2920 * tests/test-snprintf-posix.h (test_function): Likewise.
2921 * tests/test-sprintf-posix.h (test_function): Likewise.
2922 * tests/test-fprintf-posix.h (test_function): Likewise.
2923 * tests/test-printf-posix.h (test_function): Likewise.
2924 * tests/test-fprintf-posix.out: Likewise.
2926 2007-04-13 Bruno Haible <bruno@clisp.org>
2928 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
2929 * modules/tls-tests (configure.ac): Likewise.
2930 Reported by Arto C. Nirkko <anirkko@insel.ch>.
2932 2007-04-13 Bruno Haible <bruno@clisp.org>
2934 * lib/tls.c (glthread_tls_get): Fix return type.
2935 Patch by Arto C. Nirkko <anirkko@insel.ch>.
2937 2007-04-12 Eric Blake <ebb9@byu.net>
2939 * modules/gettime (Depends-on): Remove gettime.
2940 Reported by Dmitry V. Levin.
2942 2007-04-12 Bruno Haible <bruno@clisp.org>
2944 * modules/fflush (Include): Mention <stdio.h>.
2945 * modules/strtoimax (Include): Mention <inttypes.h>.
2946 * modules/strtoumax (Include): Likewise.
2948 2007-04-12 Eric Blake <ebb9@byu.net>
2950 * .cvsignore: New file.
2951 * .gitignore: Likewise.
2953 2007-04-12 Bruno Haible <bruno@clisp.org>
2955 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
2956 not before, since $(LDADD) often contains libgnu.a.
2957 * modules/striconv-tests (test_striconv_LDADD): Likewise.
2958 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
2959 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
2962 2007-04-12 Eric Blake <ebb9@byu.net>
2964 Work around glibc's failure to flush stdin on fclose.
2965 * lib/closein.c (close_stdin): Flush stdin before closing.
2967 Work around glibc's failure to reset seekable stdin on exit.
2968 * modules/closein: New module.
2969 * lib/closein.c: New file.
2970 * lib/closein.h: Likewise.
2971 * m4/closein.m4: Likewise.
2972 * MODULES.html.sh (File stream based Input/Output): Document it.
2974 2007-04-12 Simon Josefsson <simon@josefsson.org>
2976 * gnulib-tool: Rename generated 'autobuild' script to
2977 'do-autobuild' in --create-megatestdir output.
2979 * doc/gnulib.texi (Build robot for gnulib): Fix.
2981 2007-04-12 Simon Josefsson <simon@josefsson.org>
2983 * modules/sysexits (Depends-on): Add absolute-header.
2985 2007-04-12 Eric Blake <ebb9@byu.net>
2987 No need to preserve errno on success.
2988 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
2989 Reported by Bruno Haible.
2991 2007-04-12 Simon Josefsson <simon@josefsson.org>
2993 * MODULES.html.sh (Support for maintaining and releasing
2994 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
2996 2007-04-12 Simon Josefsson <simon@josefsson.org>
2998 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
3000 2007-04-12 Simon Josefsson <simon@josefsson.org>
3002 * modules/autobuild: New module.
3004 * m4/autobuild.m4: New file.
3006 2007-04-11 Bruno Haible <bruno@clisp.org>
3008 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
3009 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
3010 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
3011 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
3012 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
3013 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3014 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3015 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
3016 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3017 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3018 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
3019 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3020 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3021 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
3022 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3023 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3024 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
3025 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3026 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3027 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
3028 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3029 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3030 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
3031 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3032 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3033 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
3034 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3035 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3036 Reported by Eric Blake.
3038 2007-04-11 Bruno Haible <bruno@clisp.org>
3040 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
3042 2007-04-10 Bruno Haible <bruno@clisp.org>
3044 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
3045 for NaN and Infinity. Needed on FreeBSD 6.1.
3046 * tests/test-vasnprintf-posix.c (test_function): Undo last change
3047 regarding results for "%010a" of Infinity and NaN.
3048 * tests/test-vasprintf-posix.c (test_function): Likewise.
3049 * tests/test-snprintf-posix.h (test_function): Likewise.
3050 * tests/test-sprintf-posix.h (test_function): Likewise.
3051 * tests/test-fprintf-posix.h (test_function): Likewise.
3052 * tests/test-printf-posix.h (test_function): Likewise.
3053 * tests/test-fprintf-posix.out: Likewise.
3055 2007-04-10 Bruno Haible <bruno@clisp.org>
3057 * modules/locale-tests: New file.
3058 * tests/test-locale.c: New file.
3060 * modules/locale: New file.
3061 * lib/locale_.h: New file.
3062 * m4/locale_h.m4: New file.
3064 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
3065 Bruno Haible <bruno@clisp.org>
3067 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
3068 be determined, test for availability of the copysignf, copysign,
3069 copysignl functions.
3070 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
3071 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
3072 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
3074 2007-04-09 Eric Blake <ebb9@byu.net>
3076 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
3077 * modules/stdio (Makefile.am): Support fflush.
3078 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
3079 * modules/fflush: New file.
3080 * lib/fflush.c: Likewise.
3081 * m4/fflush.m4: Likewise.
3082 * modules/fflush-tests: New test.
3083 * tests/test-fflush.c: Likewise.
3084 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
3086 2007-04-06 Bruno Haible <bruno@clisp.org>
3088 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
3089 (VASNPRINTF): Use signbit for faster determination whether to print a
3091 * modules/vasnprintf (Files): Remove lib/float+.h.
3092 * modules/fprintf-posix (Depends-on): Add signbit.
3093 * modules/snprintf-posix (Depends-on): Likewise.
3094 * modules/sprintf-posix (Depends-on): Likewise.
3095 * modules/vasnprintf-posix (Depends-on): Likewise.
3096 * modules/vasprintf-posix (Depends-on): Likewise.
3097 * modules/vfprintf-posix (Depends-on): Likewise.
3098 * modules/vsnprintf-posix (Depends-on): Likewise.
3099 * modules/vsprintf-posix (Depends-on): Likewise.
3101 2007-04-06 Bruno Haible <bruno@clisp.org>
3103 * tests/test-frexp.c (main): Test also the sign bit of zero results.
3104 * tests/test-frexpl.c (main): Likewise.
3105 * tests/test-ldexpl.c (main): Likewise.
3106 * modules/frexp-tests (Depends-on): Add signbit.
3107 * modules/frexpl-tests (Depdends-on): Likewise.
3108 * modules/ldexpl-tests (Depdends-on): Likewise.
3110 2007-04-06 Bruno Haible <bruno@clisp.org>
3112 * modules/signbit-tests: New file.
3113 * tests/test-signbit.c: New file.
3115 * modules/signbit: New file.
3116 * lib/signbitf.c: New file.
3117 * lib/signbitd.c: New file.
3118 * lib/signbitl.c: New file.
3119 * m4/signbit.m4: New file.
3120 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
3121 (signbit): New macro.
3122 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
3124 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
3125 REPLACE_FREXPL into math.h.
3127 2007-04-06 Bruno Haible <bruno@clisp.org>
3129 * modules/isnanf-nolibm-tests: New file.
3130 * tests/test-isnanf.c: New file.
3132 * modules/isnanf-nolibm: New file.
3133 * lib/isnanf.h: New file.
3134 * lib/isnanf.c: New file.
3135 * lib/isnan.c: Consider the USE_FLOAT macro.
3136 * m4/isnanf.m4: New file.
3138 2007-04-06 Bruno Haible <bruno@clisp.org>
3140 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
3141 (Link): New section.
3143 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
3145 2007-04-06 Bruno Haible <bruno@clisp.org>
3147 Assume the 'long double' type.
3148 * m4/longdouble.m4: Remove file.
3149 * config/srclist.txt: Don't mention longdouble.m4.
3150 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
3151 * lib/float+.h: Likewise.
3152 * lib/frexp.c: Likewise.
3153 * lib/printf-args.h: Likewise.
3154 * lib/printf-args.c: Likewise.
3155 * lib/printf-frexp.c: Likewise.
3156 * lib/printf-parse.c: Likewise.
3157 * lib/vasnprintf.c: Likewise.
3158 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
3159 * m4/intl.m4: Likewise.
3160 * m4/isnanl.m4: Likewise.
3161 * m4/printf.m4: Likewise.
3162 * m4/printf-frexpl.m4: Likewise.
3163 * m4/vasnprintf.m4: Likewise.
3164 * modules/allocsa (Files): Remove m4/longdouble.m4.
3165 * modules/gettext (Files): Likewise.
3166 * modules/relocatable-prog-wrapper (Files): Likewise.
3167 * modules/vasnprintf (Files): Likewise.
3168 * modules/isnanl (Files): Likewise.
3169 (Include): Simplify.
3170 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
3171 (Include): Simplify.
3172 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
3173 (Include): Simplify.
3174 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
3175 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
3176 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
3177 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
3178 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
3179 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
3180 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
3181 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
3182 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
3183 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
3184 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
3185 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
3186 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
3187 * tests/test-isnanl.c: Likewise.
3188 * tests/test-snprintf-posix.h: Likewise.
3189 * tests/test-sprintf-posix.h: Likewise.
3190 * tests/test-vasnprintf-posix.c: Likewise.
3191 * tests/test-vasnprintf-posix2.c: Likewise.
3192 * tests/test-vasprintf-posix.c: Likewise.
3194 2007-04-06 Bruno Haible <bruno@clisp.org>
3196 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
3197 * lib/math_.h [__DECC]: Include the overridden include file through
3198 #include_next, outside the double-inclusion guard.
3199 * lib/stdio_.h [__DECC]: Likewise.
3200 * lib/stdlib_.h [__DECC]: Likewise.
3201 * lib/string_.h [__DECC]: Likewise.
3202 * lib/time_.h [__DECC]: Likewise.
3203 * lib/wchar_.h [__DECC]: Likewise.
3204 * lib/wctype_.h [__DECC]: Likewise.
3205 * lib/inttypes_.h [__DECC]: Likewise.
3206 Reported by Albert Chin <china@thewrittenword.com> in
3207 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
3209 2007-04-04 Eric Blake <ebb9@byu.net>
3211 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
3214 2007-04-04 Bruno Haible <bruno@clisp.org>
3216 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
3217 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
3219 2007-04-04 Bruno Haible <bruno@clisp.org>
3221 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
3222 results for "%010a" of Infinity and NaN.
3223 * tests/test-vasprintf-posix.c (test_function): Likewise.
3224 * tests/test-snprintf-posix.h (test_function): Likewise.
3225 * tests/test-sprintf-posix.h (test_function): Likewise.
3226 * tests/test-fprintf-posix.h (test_function): Remove these tests.
3227 * tests/test-printf-posix.h (test_function): Likewise.
3228 * tests/test-fprintf-posix.out: Update.
3229 Needed for FreeBSD 6.1.
3231 2007-04-04 Bruno Haible <bruno@clisp.org>
3233 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
3234 directly used by the gnulib modules nor by gnulib-tool.
3236 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
3238 * DEPENDENCIES: Give overall description of version dependency
3239 desirability. Use more-typical names for apps.
3240 Add shell, coreutils, diffutils, grep, tar, gzip.
3242 2007-04-04 Simon Josefsson <simon@josefsson.org>
3244 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
3246 2007-04-04 Karl Berry <karl@gnu.org>
3248 * MODULES.html.sh (func_module): missing '.
3250 2007-04-03 Bruno Haible <bruno@clisp.org>
3252 * modules/argmatch-tests (Makefile.am): New variable
3253 test_argmatch_LDADD.
3254 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
3255 * modules/array-list-tests (Makefile.am): New variable
3256 test_array_list_LDADD.
3257 * modules/array-oset-tests (Makefile.am): New variable
3258 test_array_oset_LDADD.
3259 * modules/avltree-list-tests (Makefile.am): New variable
3260 test_avltree_list_LDADD.
3261 * modules/avltree-oset-tests (Makefile.am): New variable
3262 test_avltree_oset_LDADD.
3263 * modules/avltreehash-list-tests (Makefile.am): New variable
3264 test_avltreehash_list_LDADD.
3265 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
3266 test_canonicalize_lgpl_LDADD.
3267 * modules/carray-list-tests (Makefile.am): New variable
3268 test_carray_list_LDADD.
3269 * modules/dirname-tests (Makefile.am): New variable
3271 * modules/linked-list-tests (Makefile.am): New variable
3272 test_linked_list_LDADD.
3273 * modules/linkedhash-list-tests (Makefile.am): New variable
3274 test_linkedhash_list_LDADD.
3275 * modules/rbtree-list-tests (Makefile.am): New variable
3276 test_rbtree_list_LDADD.
3277 * modules/rbtree-oset-tests (Makefile.am): New variable
3278 test_rbtree_oset_LDADD.
3279 * modules/rbtreehash-list-tests (Makefile.am): New variable
3280 test_rbtreehash_list_LDADD.
3281 * modules/xvasprintf-tests (Makefile.am): New variable
3282 test_xvasprintf_LDADD.
3283 Reported by Eric Blake.
3285 2007-04-03 Eric Blake <ebb9@byu.net>
3287 * DEPENDENCIES: Weaken m4 requirements.
3289 2007-04-03 Bruno Haible <bruno@clisp.org>
3291 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
3292 * modules/isnanl-tests (configure.ac): Likewise.
3294 2007-04-03 Ben Pfaff <blp@gnu.org>
3296 * modules/iconv_open: Add $(srcdir)/ to source directory
3297 references in Makefile fragments that call gperf, to fix VPATH
3300 2007-04-03 Bruno Haible <bruno@clisp.org>
3302 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
3303 * lib/ldexpl.c: Undo last change.
3305 2007-04-03 Bruno Haible <bruno@clisp.org>
3307 * modules/printf-frexpl (Depends-on): Undo last change.
3308 (Files): Add m4/ldexpl.m4.
3310 2007-04-03 Bruno Haible <bruno@clisp.org>
3312 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
3313 * modules/isnanl (Link): New section.
3315 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
3316 * modules/frexp (Link): New section.
3318 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
3319 * modules/frexpl (Link): New section.
3321 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
3322 * modules/ldexpl (Link): New section.
3324 2007-04-03 Bruno Haible <bruno@clisp.org>
3326 * modules/TEMPLATE-EXTENDED: New file.
3327 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
3329 2007-04-03 Bruno Haible <bruno@clisp.org>
3331 * DEPENDENCIES: New file.
3332 Suggested by Simon Josefsson.
3334 2007-04-03 Bruno Haible <bruno@clisp.org>
3336 * doc/gnulib.texi: Escape @.
3338 2007-04-03 James Youngman <jay@gnu.org>
3339 and Paul Eggert <eggert@cs.ucla.edu>
3341 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
3342 birthtime on all systems that have birthtime, not just those which
3343 use st_birthtimensec rather than st_birthtim. Putting zero in
3344 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
3345 that the birth time is not available for files on an NFS mount.
3347 2007-04-03 Simon Josefsson <simon@josefsson.org>
3349 * modules/memxor: Move back from crypto/, suggested by Bruno.
3350 * modules/crypto/hmac-sha1: Fix memxor dependency.
3352 * modules/crypto/gc: Moved from ../.
3354 2007-04-02 Eric Blake <ebb9@byu.net>
3356 * lib/ldexpl.c (includes): Avoid libm.
3358 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
3360 2007-04-02 Bruno Haible <bruno@clisp.org>
3362 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
3365 2007-04-02 Bruno Haible <bruno@clisp.org>
3367 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
3368 x86 or x86_64 platforms running MacOS X.
3369 Reported by Ryan Schmidt <@ryandesign.com>.
3371 2007-04-02 Bruno Haible <bruno@clisp.org>
3373 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
3376 2007-04-01 Simon Josefsson <simon@josefsson.org>
3378 * modules/crypto/arcfour: Moved from ../.
3379 * modules/crypto/arcfour-tests: Moved from ../.
3380 * modules/crypto/arctwo: Moved from ../.
3381 * modules/crypto/arctwo-tests: Moved from ../.
3382 * modules/crypto/des: Moved from ../.
3383 * modules/crypto/des-tests: Moved from ../.
3384 * modules/crypto/gc-arcfour: Moved from ../.
3385 * modules/crypto/gc-arcfour-tests: Moved from ../.
3386 * modules/crypto/gc-arctwo: Moved from ../.
3387 * modules/crypto/gc-arctwo-tests: Moved from ../.
3388 * modules/crypto/gc-des: Moved from ../.
3389 * modules/crypto/gc-des-tests: Moved from ../.
3390 * modules/crypto/gc-hmac-md5: Moved from ../.
3391 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
3392 * modules/crypto/gc-hmac-sha1: Moved from ../.
3393 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
3394 * modules/crypto/gc-md2: Moved from ../.
3395 * modules/crypto/gc-md2-tests: Moved from ../.
3396 * modules/crypto/gc-md4: Moved from ../.
3397 * modules/crypto/gc-md4-tests: Moved from ../.
3398 * modules/crypto/gc-md5: Moved from ../.
3399 * modules/crypto/gc-md5-tests: Moved from ../.
3400 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
3401 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
3402 * modules/crypto/gc-random: Moved from ../.
3403 * modules/crypto/gc-rijndael: Moved from ../.
3404 * modules/crypto/gc-rijndael-tests: Moved from ../.
3405 * modules/crypto/gc-sha1: Moved from ../.
3406 * modules/crypto/gc-sha1-tests: Moved from ../.
3407 * modules/crypto/gc-tests: Moved from ../.
3408 * modules/crypto/hmac-md5: Moved from ../.
3409 * modules/crypto/hmac-md5-tests: Moved from ../.
3410 * modules/crypto/hmac-sha1: Moved from ../.
3411 * modules/crypto/hmac-sha1-tests: Moved from ../.
3412 * modules/crypto/md2: Moved from ../.
3413 * modules/crypto/md2-tests: Moved from ../.
3414 * modules/crypto/md4: Moved from ../.
3415 * modules/crypto/md4-tests: Moved from ../.
3416 * modules/crypto/md5: Moved from ../.
3417 * modules/crypto/md5-tests: Moved from ../.
3418 * modules/crypto/memxor: Moved from ../.
3419 * modules/crypto/rijndael: Moved from ../.
3420 * modules/crypto/rijndael-tests: Moved from ../.
3421 * modules/crypto/sha1: Moved from ../.
3423 2007-03-30 James Youngman <jay@gnu.org>
3425 * tests/test-stat-time.c (prepare_test): use chmod() rather than
3426 rename() to change the ctime of a file (because ctime is unaffected
3427 by rename on jfs2 on AIX 5.1).
3428 (main): Start by doing cleanup, in case a previous run failed leaving
3431 2007-03-31 Bruno Haible <bruno@clisp.org>
3433 Support old proprietary implementations of iconv.
3434 * modules/iconv_open: New file.
3435 * lib/iconv_.h: New file.
3436 * m4/iconv_h.m4: New file.
3437 * lib/iconv_open.c: New file.
3438 * lib/iconv_open-aix.gperf: New file.
3439 * lib/iconv_open-hpux.gperf: New file.
3440 * lib/iconv_open-irix.gperf: New file.
3441 * lib/iconv_open-osf.gperf: New file.
3442 * m4/iconv_open.m4: New file.
3443 * modules/linebreak (Depends-on): Add iconv_open.
3444 * modules/striconv (Depends-on): Likewise.
3445 * modules/striconveh (Depends-on): Likewise.
3446 * modules/unicodeio (Depends-on): Likewise.
3447 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
3449 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
3450 conversion if cd is (iconv_t)(-1).
3451 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
3454 2007-03-31 Bruno Haible <bruno@clisp.org>
3456 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
3457 work on Solaris either. Protect also second use of "autodetect_jp".
3459 2007-03-31 Bruno Haible <bruno@clisp.org>
3461 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
3462 the function is not present.
3464 2007-03-31 Bruno Haible <bruno@clisp.org>
3466 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
3467 the function is not present.
3469 2007-03-31 Bruno Haible <bruno@clisp.org>
3471 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
3472 a bug in HP-UX iconv_open().
3474 2007-03-31 Bruno Haible <bruno@clisp.org>
3476 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
3477 (Mathematics <math.h>): New section, add fpieee.
3478 (Input/output <stdio.h>): Add fseterr.
3479 (Mathematics <math.h>): New section, add printf-frexp.
3480 (Container data structures): Add sublist.
3481 (Core language properties): Add fpucw, inline.
3482 (Functions for greatest-width integer types <inttypes.h>): Add
3483 imaxabs, imaxdiv, inttypes.
3484 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
3485 isnanl-nolibm, ldexp.
3486 (Mathematics <math.h>): New section, add printf-frexpl.
3487 (Support for systems lacking POSIX:2001): Add fprintf-posix,
3488 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
3489 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
3490 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
3491 (Unicode string functions): Add unistr/u*-mbtoucr.
3492 (Java): Add javacomp-script, javaexec-script.
3493 (C#): Add csharpcomp-script, csharpexec-script.
3494 (Support for building libraries and executables): Add havelib,
3496 (Support for maintaining and releasing projects): Renamed from
3497 'Support for maintaining and release projects'. Add announce-gen.
3499 2007-03-31 Bruno Haible <bruno@clisp.org>
3501 * README: Talk primarily about git.
3502 (git and CVS): Renamed from CVS.
3503 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
3504 gnulib is available through git.
3505 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
3507 2007-03-30 Bruno Haible <bruno@clisp.org>
3509 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
3510 * lib/poll_.h: Likewise.
3511 * lib/stat_.h: Likewise.
3512 * lib/sys_time_.h: Likewise.
3513 * lib/sysexit_.h: Likewise.
3514 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
3515 * lib/stdbool_.h: Likewise.
3516 * lib/byteswap_.h: Add double-inclusion guard.
3518 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
3520 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
3522 2007-03-30 Karl Berry <karl@gnu.org>
3524 * config/srclist-update: double space after USA in the license
3525 substitution, since that's how it's usually (?) written.
3527 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
3529 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
3530 reported by Bruno Haible.
3532 2007-03-29 Bruno Haible <bruno@clisp.org>
3534 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
3535 a bug in AIX iconv().
3537 2007-03-29 Bruno Haible <bruno@clisp.org>
3539 * modules/ldexpl-tests: New file.
3540 * tests/test-ldexpl.c: New file.
3542 2007-03-29 Bruno Haible <bruno@clisp.org>
3544 * lib/ldexpl.c: Include fpucw.h.
3545 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
3547 * modules/ldexpl (Depends-on): Add fpucw.
3549 2007-03-29 Bruno Haible <bruno@clisp.org>
3551 * modules/ldexpl: New file.
3552 * m4/ldexpl.m4: New file.
3553 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
3555 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
3557 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
3559 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
3560 gl_FUNC_LDEXPL_WORKS.
3561 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
3562 * modules/mathl (Files): Remove lib/ldexpl.c.
3563 (Depends-on): Add ldexpl.
3565 2007-03-29 Bruno Haible <bruno@clisp.org>
3567 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
3569 2007-03-29 Bruno Haible <bruno@clisp.org>
3571 * tests/test-striconveh.c (main): Don't assume that a direct conversion
3572 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
3573 and possibly also HP-UX.
3574 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
3575 work on AIX, IRIX, HP-UX, OSF/1.
3576 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
3577 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
3578 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
3579 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
3580 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
3581 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
3583 2007-03-29 Bruno Haible <bruno@clisp.org>
3585 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
3587 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
3589 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
3590 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
3592 2007-03-29 Eric Blake <ebb9@byu.net>
3594 * lib/acl-internal.h: Remove redundant include.
3595 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
3596 Cygwin when a file is locked.
3598 2007-03-29 Bruno Haible <bruno@clisp.org>
3600 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
3602 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
3604 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
3606 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
3607 try to remove a parent directory if the child couldn't be removed
3608 (except for the first rmdir, which could fail because the child
3609 doesn't exist). Problem reported by Jeff Blaine in
3610 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
3612 2007-03-28 Bruno Haible <bruno@clisp.org>
3614 * lib/striconveh.c (utf8conv_carefully): New function.
3615 (mem_cd_iconveh_internal): Invoke it.
3617 2007-03-28 Bruno Haible <bruno@clisp.org>
3619 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
3620 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
3622 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
3623 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
3626 2007-03-28 Bruno Haible <bruno@clisp.org>
3628 * modules/unistr/u8-mbtoucr: New file.
3629 * lib/unistr/u8-mbtoucr.c: New file.
3630 * modules/unistr/u16-mbtoucr: New file.
3631 * lib/unistr/u16-mbtoucr.c: New file.
3632 * modules/unistr/u16-mbtoucr: New file.
3633 * lib/unistr/u16-mbtoucr.c: New file.
3634 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
3636 2007-03-27 Simon Josefsson <simon@josefsson.org>
3637 Bruno Haible <bruno@clisp.org>
3639 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
3640 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
3641 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
3643 * m4/stdio_h.m4: Add stubs for vasprintf too.
3645 * modules/stdio: Support vasprintf in sed command.
3647 * modules/vasprintf: Depend on stdio for prototypes. Remove
3648 vasprintf.h. Add stdio module indicator.
3650 * lib/stdio_.h: Declare asprintf and vasprintf, based on
3653 * lib/vasprintf.h: File removed.
3655 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
3656 * lib/vasprintf.c: Ditto.
3657 * lib/xvasprintf.c: Ditto.
3658 * tests/test-vasprintf-posix.c: Ditto.
3659 * tests/test-vasprintf.c: Ditto.
3661 2007-03-27 Bruno Haible <bruno@clisp.org>
3663 Make vasnprintf multithread-safe.
3664 * lib/vasnprintf.c (decimal_point_char): New function.
3665 (VASNPRINTF): Use it.
3666 Suggested by Simon Josefsson.
3668 2007-03-27 Eric Blake <ebb9@byu.net>
3670 Support sub-second birthtime on cygwin.
3671 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
3672 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
3673 (get_stat_birthtime): Also work with st_birthtim.
3675 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
3677 * lib/stat-time.h (USE_BIRTHTIME): Remove.
3678 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
3679 (get_stat_birthtime_ns): Do not try to use "spare" fields.
3680 (get_stat_birthtime_ns): Simplify compile-time tests.
3681 (get_stat_birthtime): Change the API to look like
3682 get_stat_mtime etc., except return a negative tv_nsec on error.
3683 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
3684 Don't check for "spare" fields.
3685 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
3686 or for struct stat.st_birthtime, as these tests aren't used.
3687 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
3689 2007-03-27 Bruno Haible <bruno@clisp.org>
3691 * lib/stat-time.h: Include <sys/stat.h>.
3693 2007-03-27 James Youngman <jay@gnu.org>
3695 * lib/stat-time.h (get_stat_birthtime): New function for
3696 retrieving st_birthtime as provided by UFS2 (hence *BSD).
3697 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
3699 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
3700 * modules/stat-time-test: New file.
3701 * tests/test-stat-time.c: New test, devised by Bruno Haible.
3703 2007-03-26 Bruno Haible <bruno@clisp.org>
3705 Better support of signalling NaNs.
3706 * lib/atanl.c: Include isnanl.h.
3707 (atanl): Perform test for NaN at the beginning of the function and
3708 through a call to isnanl.
3709 * lib/cosl.c: Include isnanl.h.
3710 (cosl): Perform test for NaN at the beginning of the function and
3711 through a call to isnanl.
3712 * lib/ldexpl.c: Include isnanl.h.
3713 (ldexpl): Perform test for NaN through a call to isnanl.
3714 * lib/logl.c: Include isnanl.h.
3715 (logl): Perform test for NaN at the beginning of the function and
3716 through a call to isnanl.
3717 * lib/sinl.c: Include isnanl.h.
3718 (sinl): Perform test for NaN at the beginning of the function and
3719 through a call to isnanl.
3720 * lib/sqrtl.c: Include isnanl.h.
3721 (sqrtl): Perform test for NaN at the beginning of the function and
3722 through a call to isnanl.
3723 * lib/tanl.c: Include isnanl.h.
3724 (tanl): Perform test for NaN at the beginning of the function and
3725 through a call to isnanl.
3726 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
3727 * modules/mathl (Depends-on): Add isnanl.
3729 2007-03-26 Eric Blake <ebb9@byu.net>
3731 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
3732 regression in logic sense of previous patch.
3734 2007-03-26 Bruno Haible <bruno@clisp.org>
3736 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
3737 unportable shell command "if ! ...".
3738 Reported by Ralf Wildenhues.
3740 2007-03-25 Bruno Haible <bruno@clisp.org>
3742 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
3743 <sysexits.h> file, and only add EX_CONFIG.
3744 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
3745 absolute file name and whether it is sufficient. Substitute also
3746 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
3747 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
3748 ABSOLUTE_SYSEXITS_H into sysexits.h.
3750 2007-03-25 Bruno Haible <bruno@clisp.org>
3752 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
3755 2007-03-25 Bruno Haible <bruno@clisp.org>
3757 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
3758 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
3760 2007-03-25 Bruno Haible <bruno@clisp.org>
3762 * lib/vasnprintf.c: Include langinfo.h.
3763 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
3765 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
3766 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
3767 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
3768 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
3769 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
3770 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
3771 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
3772 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
3773 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
3774 Reported by Simon Josefsson.
3776 2007-03-25 Bruno Haible <bruno@clisp.org>
3778 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
3779 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
3780 * modules/vasnprintf (Depends-on): Add stdint.
3782 2007-03-25 Bruno Haible <bruno@clisp.org>
3784 * modules/fpieee: New file.
3785 * m4/fpieee.m4: New file.
3786 * modules/isnan-nolibm (Depends-on): Add fpieee.
3787 * modules/isnanl-nolibm (Depends-on): Add fpieee.
3788 * modules/isnanl (Depends-on): Add fpieee.
3790 2007-03-25 Bruno Haible <bruno@clisp.org>
3792 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
3794 2007-03-25 Bruno Haible <bruno@clisp.org>
3796 Avoid test failures on IRIX 6.5.
3797 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
3799 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
3803 2007-03-25 Bruno Haible <bruno@clisp.org>
3805 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
3806 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
3807 exists but doesn't work.
3808 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
3809 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
3810 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
3811 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
3813 2007-03-25 Bruno Haible <bruno@clisp.org>
3815 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
3816 returns inf. Needed on IRIX 6.5.
3818 2007-03-25 Bruno Haible <bruno@clisp.org>
3820 * tests/test-frexpl.c: Include isnanl-nolibm.h.
3821 (main): Use isnanl instead of x != x idiom.
3822 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
3824 * tests/test-frexp.c: Include isnan.h.
3825 (main): Use isnan instead of x != x idiom.
3826 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
3828 2007-03-25 Bruno Haible <bruno@clisp.org>
3830 * tests/test-frexp.c (NaN): New function/macro.
3831 (main): Use it instead of 0.0 / 0.0.
3832 * tests/test-isnan.c (NaN): New function/macro.
3833 (main): Use it instead of 0.0 / 0.0.
3834 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
3835 (test_function): Use it instead of 0.0 / 0.0.
3836 * tests/test-vasprintf-posix.c (NaN): New function/macro.
3837 (test_function): Use it instead of 0.0 / 0.0.
3838 * tests/test-snprintf-posix.h (NaN): New function/macro.
3839 (test_function): Use it instead of 0.0 / 0.0.
3840 * tests/test-sprintf-posix.h (NaN): New function/macro.
3841 (test_function): Use it instead of 0.0 / 0.0.
3842 * tests/test-fprintf-posix.h (NaN): New function/macro.
3843 (test_function): Use it instead of 0.0 / 0.0.
3844 * tests/test-printf-posix.h (NaN): New function/macro.
3845 (test_function): Use it instead of 0.0 / 0.0.
3847 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
3849 2007-03-25 Bruno Haible <bruno@clisp.org>
3851 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
3853 2007-03-25 Bruno Haible <bruno@clisp.org>
3855 * lib/regexec.c (merge_state_with_log): Make static.
3857 2007-03-25 Bruno Haible <bruno@clisp.org>
3859 * lib/trigl.c (kernel_rem_pio2): Make static.
3861 2007-03-25 Bruno Haible <bruno@clisp.org>
3863 * lib/sincosl.c (sincosl_table): Make static.
3865 2007-03-25 Bruno Haible <bruno@clisp.org>
3867 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
3868 if the compiler does not support C99.
3870 2007-03-25 Bruno Haible <bruno@clisp.org>
3872 * modules/time (Makefile.am): Ensure all rule action lines start with a
3875 2007-03-24 Bruno Haible <bruno@clisp.org>
3877 * modules/tsearch-tests: New file.
3878 * tests/test-tsearch.sh: New file.
3879 * tests/test-tsearch.c: New file, mostly copied from glibc.
3881 * modules/search-tests: New file.
3882 * tests/test-search.c: New file.
3884 * modules/search: New file.
3885 * lib/search_.h: New file, incorporating lib/tsearch.h.
3886 * m4/search_h.m4: New file.
3887 * lib/tsearch.h: Remove file.
3888 * lib/tsearch.c: Include search.h instead of tsearch.h.
3889 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
3891 * modules/tsearch (Files): Remove lib/tsearch.h.
3892 (Depends-on): Add search.
3893 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
3894 (Include): Change tsearch.h into search.h.
3896 2007-03-24 Bruno Haible <bruno@clisp.org>
3898 * modules/fpucw: New file.
3899 * lib/fpucw.h: New file.
3900 * lib/frexp.c: Include fpucw.h.
3901 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
3903 * lib/printf-frexp.c: Include fpucw.h.
3904 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
3906 * lib/vasnprintf.c: Include fpucw.h.
3907 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
3908 'long double' calculations.
3909 * tests/test-frexpl.c: Include fpucw.h.
3910 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
3911 * tests/test-printf-frexpl.c: Include fpucw.h.
3912 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
3913 * modules/frexpl (Depends-on): Add fpucw.
3914 * modules/printf-frexpl (Depends-on): Likewise.
3915 * modules/fprintf-posix (Depends-on): Likewise.
3916 * modules/snprintf-posix (Depends-on): Likewise.
3917 * modules/sprintf-posix (Depends-on): Likewise.
3918 * modules/vasnprintf-posix (Depends-on): Likewise.
3919 * modules/vasprintf-posix (Depends-on): Likewise.
3920 * modules/vfprintf-posix (Depends-on): Likewise.
3921 * modules/vsnprintf-posix (Depends-on): Likewise.
3922 * modules/vsprintf-posix (Depends-on): Likewise.
3923 * modules/frexpl-tests (Depends-on): Likewise.
3924 * modules/printf-frexpl-tests (Depends-on): Likewise.
3926 2007-03-24 Bruno Haible <bruno@clisp.org>
3928 * lib/float+.h: New file.
3929 * lib/isnan.c: Include float+.h.
3931 (FUNC): Compare only SIZE bytes of the value.
3932 * lib/vasnprintf.c: Include float+.h.
3933 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
3934 SIZEOF_LDBL or SIZEOF_DBL bytes.
3935 * modules/isnan-nolibm (Files): Add lib/float+.h.
3936 * modules/isnanl-nolibm (Files): Add lib/float+.h.
3937 * modules/isnanl (Files): Add lib/float+.h.
3938 * modules/vasnprintf (Files): Add lib/float+.h.
3940 2007-03-24 Bruno Haible <bruno@clisp.org>
3942 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
3943 include isnanl-nolibm.h.
3945 2007-03-24 Bruno Haible <bruno@clisp.org>
3947 * tests/test-read-file.c (main): Don't produce spurious output for
3948 expected situations. Make the test fail if it encountered unexpected
3951 2007-03-24 Bruno Haible <bruno@clisp.org>
3953 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
3954 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
3956 2007-03-24 Bruno Haible <bruno@clisp.org>
3958 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
3960 2007-03-24 Bruno Haible <bruno@clisp.org>
3962 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
3963 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
3965 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
3966 * modules/utf8-ucs4: Turn into a symbolic link to module
3969 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
3971 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
3972 unistr/u8-mbtouc-unsafe.
3974 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
3975 * modules/utf16-ucs4: Turn into a symbolic link to module
3978 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
3980 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
3981 unistr/u16-mbtouc-unsafe.
3983 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
3984 * modules/ucs4-utf8: Turn into a symbolic link to module
3987 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
3988 * modules/ucs4-utf16: Turn into a symbolic link to module
3991 2007-03-24 Bruno Haible <bruno@clisp.org>
3993 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
3994 Enable the function only if HAVE_INLINE.
3995 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
3996 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
3997 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
3998 Enable the function only if HAVE_INLINE.
3999 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
4000 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
4001 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
4002 Enable the function only if HAVE_INLINE.
4003 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
4004 Enable the function only if HAVE_INLINE.
4005 * modules/utf8-ucs4: Update.
4006 * modules/utf8-ucs4-unsafe: Update.
4007 * modules/utf16-ucs4: Update.
4008 * modules/utf16-ucs4-unsafe: Update.
4009 * modules/ucs4-utf8: Update.
4010 * modules/ucs4-utf16: Update.
4012 2007-03-24 Bruno Haible <bruno@clisp.org>
4014 * lib/utf8-ucs4.h: Remove file.
4015 * lib/utf8-ucs4-unsafe.h: Remove file.
4016 * lib/utf16-ucs4.h: Remove file.
4017 * lib/utf16-ucs4-unsafe.h: Remove file.
4018 * lib/ucs4-utf8.h: Remove file.
4019 * lib/ucs4-utf16.h: Remove file.
4020 * lib/unistr.h: Include their previous contents.
4021 * m4/utf-ucs4.m4: Remove file.
4022 * m4/ucs4-utf.m4: Remove file.
4023 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
4024 (Depends-on): Add unistr/base.
4025 (configure.ac): Remove gl_UTF_UCS4.
4026 (Makefile.am): Update.
4027 (Include): Change to unistr.h.
4028 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
4029 (Depends-on): Add unistr/base.
4030 (configure.ac): Remove gl_UTF_UCS4.
4031 (Makefile.am): Update.
4032 (Include): Change to unistr.h.
4033 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
4034 (Depends-on): Add unistr/base.
4035 (configure.ac): Remove gl_UTF_UCS4.
4036 (Makefile.am): Update.
4037 (Include): Change to unistr.h.
4038 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
4039 (Depends-on): Add unistr/base.
4040 (configure.ac): Remove gl_UTF_UCS4.
4041 (Makefile.am): Update.
4042 (Include): Change to unistr.h.
4043 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
4044 (Depends-on): Add unistr/base.
4045 (configure.ac): Remove gl_UCS4_UTF.
4046 (Makefile.am): Update.
4047 (Include): Change to unistr.h.
4048 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
4049 (Depends-on): Add unistr/base.
4050 (configure.ac): Remove gl_UCS4_UTF.
4051 (Makefile.am): Update.
4052 (Include): Change to unistr.h.
4053 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
4054 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
4056 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
4057 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
4058 utf16-ucs4-unsafe.h.
4059 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
4060 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
4061 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
4062 * lib/unistr/u8-strchr.c: Likewise.
4063 * lib/unistr/u8-strrchr.c: Likewise.
4064 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
4065 * lib/unistr/u16-strchr.c: Likewise.
4066 * lib/unistr/u16-strrchr.c: Likewise.
4067 * lib/striconveh.c: Update.
4068 * lib/linebreak.c: Update.
4070 2007-03-24 Bruno Haible <bruno@clisp.org>
4072 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
4073 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
4075 2007-03-22 Bruno Haible <bruno@clisp.org>
4077 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
4079 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
4081 * MODULES.html.sh (File system functions): New module write-any-file.
4082 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
4083 * m4/write-any-file.m4: New files.
4085 2007-03-23 Eric Blake <ebb9@byu.net>
4087 * gnulib-tool: Rearrange space-tab sequences, since some editors
4090 2007-03-23 Eric Blake <ebb9@byu.net>
4092 * lib/version-etc.c (version_etc_va): Update license wording to
4093 be more concise. Recommended by Richard Stallman.
4095 2007-03-22 Bruno Haible <bruno@clisp.org>
4097 * lib/poll.c (MSG_PEEK): New fallback definition.
4099 2007-03-22 Bruno Haible <bruno@clisp.org>
4101 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
4102 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
4104 Fixes a compilation error on BeOS.
4106 2007-03-22 Bruno Haible <bruno@clisp.org>
4108 * modules/frexpl-tests: New file.
4109 * tests/test-frexpl.c: New file.
4111 * modules/frexpl: New file.
4112 * m4/frexpl.m4: New file.
4113 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
4114 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
4115 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
4116 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
4117 (Depends-on): Add frexpl. Remove isnanl-nolibm.
4118 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
4120 2007-03-22 Bruno Haible <bruno@clisp.org>
4122 * lib/frexpl.c: Share code with lib/frexp.c.
4123 * modules/mathl (Files): Add lib/frexp.c.
4124 (Depends-on): Add isnanl-nolibm.
4126 2007-03-22 Bruno Haible <bruno@clisp.org>
4128 * modules/printf-frexp (Files): Add m4/frexp.m4.
4129 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
4130 only if the found frexp function actually works.
4132 2007-03-22 Bruno Haible <bruno@clisp.org>
4134 * lib/frexp.c: Remove older implementation that uses divisions.
4136 2007-03-21 Bruno Haible <bruno@clisp.org>
4138 * modules/frexp-tests: New file.
4139 * tests/test-frexp.c: New file.
4141 * modules/frexp: New file.
4142 * lib/frexp.c: New file.
4143 * m4/frexp.m4: New file.
4144 * lib/math_.h (frexp): New declaration.
4145 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
4147 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
4149 2007-03-21 Bruno Haible <bruno@clisp.org>
4151 * modules/isnanl-tests: New file.
4152 * tests/test-isnanl.c: New file.
4154 * modules/isnanl: New file.
4155 * lib/isnanl.h: New file.
4156 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
4157 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
4158 gl_FUNC_ISNANL_WORKS.
4159 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
4162 2007-03-21 Bruno Haible <bruno@clisp.org>
4164 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
4167 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
4168 * lib/vasnprintf.c: Update.
4169 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
4170 tests/test-isnanl.h, remove tests/test-isnanl.c.
4171 (Makefile.am): Update.
4172 * tests/test-isnanl-nolibm.c: New file.
4173 * tests/test-isnanl.h: New file.
4174 * tests/test-isnanl.c: Remove file.
4176 2007-03-21 Jim Meyering <jim@meyering.net>
4178 When trying to open ".", treat ESTALE like EACCES.
4179 * lib/savewd.c (savewd_save): Resort to forking not just upon
4180 failure with EACCES, but also when errno is ESTALE.
4182 2007-03-20 Bruno Haible <bruno@clisp.org>
4184 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
4185 Needed on AIX 5.1. Reported by Matthew Woehlke.
4187 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
4189 Suggestions by Bruno Haible:
4190 * lib/acl-internal.h: Include "gettext.h" rather than rolling
4192 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
4193 * modules/acl (Depends-on): Add gettext.
4195 2007-03-19 Bruno Haible <bruno@clisp.org>
4197 * modules/iconvme: Remove file.
4198 * lib/iconvme.h: Remove file.
4199 * lib/iconvme.c: Remove file.
4200 * m4/iconvme.m4: Remove file.
4202 2007-03-19 Bruno Haible <bruno@clisp.org>
4204 * doc/relocatable-maint.texi: Break long shell script line.
4205 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
4207 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
4209 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
4210 handle file_has_acl.
4211 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
4212 * lib/acl.c: Move header inclusions and related macro defns into
4214 (S_ISLNK): Remove defn, since that's now done for us.
4215 (file_has_acl): Move to lib/file-has-acl.c.
4216 Call acl_trivial if available. This is the crucial part of the fix.
4217 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
4218 shared within the library. Rewrite a bit, partly to make it compatible
4219 with the GNU coding style.
4220 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
4221 Remove unnecessary double-quotes.
4222 Don't test for acl_to_text; the build will catch that.
4223 Replace acl_entries if it doesn't exist and it is needed.
4224 Check for -lsec and acl_trivial (as used on Solaris 10).
4225 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
4227 (Depends-on): Add sys_stat, for S_ISLNK.
4229 2007-03-19 Ben Pfaff <blp@gnu.org>
4231 * doc/gnulib.texi: Fix typos.
4232 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
4234 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
4236 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
4237 If size is zero here, buf must be zero.
4239 2007-03-19 Simon Josefsson <simon@josefsson.org>
4241 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
4244 2007-03-18 Bruno Haible <bruno@clisp.org>
4246 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
4247 Suggested by Eric Blake.
4249 2007-03-18 Ben Pfaff <blp@gnu.org>
4251 * doc/relocatable.texi: Recommend using as prefix a directory
4252 that does not exist and will never be created. Based on
4253 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
4256 2007-03-17 Bruno Haible <bruno@clisp.org>
4258 * lib/fchownat.c: Include lchown.h.
4260 2007-03-17 Bruno Haible <bruno@clisp.org>
4262 Fix endless loop when the given allocated size was > INT_MAX.
4263 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
4264 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
4265 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
4266 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
4267 * lib/sprintf.c (sprintf): Likewise.
4269 2007-03-17 Bruno Haible <bruno@clisp.org>
4271 * tests/test-argp-2.sh (func_compare): Output a context diff.
4273 2007-03-17 Bruno Haible <bruno@clisp.org>
4275 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
4276 locale's decimal-point character.
4278 2007-03-17 Bruno Haible <bruno@clisp.org>
4280 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
4281 before comparing it. Needed because on some platforms (e.g. x86) a
4282 'long double' occupies less bytes than sizeof (long double).
4284 2007-03-17 Bruno Haible <bruno@clisp.org>
4286 * tests/test-crc.c (main): Make printf statements 64-bit clean.
4287 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
4288 * tests/test-getaddrinfo.c (simple): Likewise.
4289 * tests/test-read-file.c (main): Likewise.
4291 2007-03-17 Bruno Haible <bruno@clisp.org>
4293 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
4295 2007-03-17 Bruno Haible <bruno@clisp.org>
4297 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
4300 2007-03-17 Bruno Haible <bruno@clisp.org>
4302 * tests/test-c-strcasecmp.c: Include c-strcase.h.
4303 * tests/test-c-strncasecmp.c: Likewise.
4305 2007-03-17 Bruno Haible <bruno@clisp.org>
4307 * modules/stdlib (Depends-on): Add unistd.
4308 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
4309 Needed for MacOS X 10.3.
4311 2007-03-17 Bruno Haible <bruno@clisp.org>
4313 * lib/unistr/u-strdup.h: Include <stdlib.h>.
4315 2007-03-17 Bruno Haible <bruno@clisp.org>
4317 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
4319 2007-03-17 Bruno Haible <bruno@clisp.org>
4321 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
4322 to reflect files copied from gnulib (with or without modifications).
4323 Suggested by Jim Meyering.
4325 2007-03-17 Eric Blake <ebb9@byu.net>
4327 * NEWS: Document stdlib change from 2007-02-18.
4329 2007-03-17 Jim Meyering <jim@meyering.net>
4331 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
4332 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
4333 someone uses a name containing shell meta-characters.
4334 Reported by Alfred M. Szmidt.
4336 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
4338 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
4340 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
4341 and copy gettext configuration files only if configure.ac contains
4342 a use of AM_GNU_GETTEXT_VERSION.
4344 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
4346 * build-aux/bootstrap (gnulib_name): New variable.
4347 (gnulib_tool_options): Use it.
4349 2007-03-13 Simon Josefsson <simon@josefsson.org>
4351 * tests/test-des.c: Use new namespace.
4353 2007-03-15 Bruno Haible <bruno@clisp.org>
4355 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
4356 Reported by James Youngman <jay@gnu.org>.
4358 2007-03-15 Bruno Haible <bruno@clisp.org>
4360 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
4361 declared prototype. Needed with cc on OSF/1 5.1.
4363 2007-03-15 Bruno Haible <bruno@clisp.org>
4365 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
4366 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
4367 (struct gl_list_implementation): Add dispose_fn argument to the
4368 'create_empty', 'create' methods.
4369 (struct gl_list_impl_base): Add field 'dispose_fn'.
4370 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
4372 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
4373 dispose_fn argument.
4374 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
4375 dispose_fn on the dropped values.
4376 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
4377 dispose_fn argument.
4378 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
4380 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
4381 (gl_tree_remove_node): Call dispose_fn on the dropped value.
4382 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
4383 (gl_tree_remove_node): Call dispose_fn on the dropped value.
4384 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
4386 (gl_tree_list_free): Call dispose_fn on the dropped values.
4387 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
4389 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
4390 Add dispose_fn argument.
4391 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
4392 Call dispose_fn on the dropped values.
4393 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
4394 Add dispose_fn argument.
4395 (gl_sublist_create): Initialize the 'dispose_fn' field.
4396 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
4397 * tests/test-array_list.c (main): Update.
4398 * tests/test-carray_list.c (main): Update.
4399 * tests/test-avltree_list.c (main): Update.
4400 * tests/test-rbtree_list.c (main): Update.
4401 * tests/test-avltreehash_list.c (main): Update.
4402 * tests/test-rbtreehash_list.c (main): Update.
4403 * tests/test-linked_list.c (main): Update.
4404 * tests/test-linkedhash_list.c (main): Update.
4405 * tests/test-array_oset.c (main): Update.
4407 2007-03-15 Bruno Haible <bruno@clisp.org>
4409 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
4410 (gl_oset_create_empty): Add dispose_fn argument.
4411 (struct gl_oset_implementation): Add dispose_fn argument to
4412 'create_empty' method.
4413 (struct gl_oset_impl_base): Add dispose_fn field.
4414 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
4415 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
4416 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
4418 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
4419 (gl_tree_oset_free): Call dispose_fn on the dropped values.
4420 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
4422 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
4424 * tests/test-array_oset.c (main): Update.
4425 * tests/test-avltree_oset.c (main): Update.
4426 * tests/test-rbtree_oset.c (main): Update.
4427 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
4429 2007-03-13 Bruno Haible <bruno@clisp.org>
4431 * tests/test-stdbool.c (i): Update after last patch.
4433 2007-03-12 Bruno Haible <bruno@clisp.org>
4435 * lib/quotearg.c: Include <wctype.h> early, before the definition of
4436 the iswprint macro. Needed on Solaris 2.5.1.
4438 2007-03-12 Bruno Haible <bruno@clisp.org>
4440 * tests/test-printf-frexp.c (main): Declare x as volatile.
4442 2007-03-12 Simon Josefsson <simon@josefsson.org>
4444 * doc/gnulib.texi (Build robot for gnulib): New section.
4446 2007-03-12 Jim Meyering <jim@meyering.net>
4448 * build-aux/bootstrap: New file.
4449 * build-aux/bootstrap.conf: New file, from coreutils.
4451 2007-03-11 Bruno Haible <bruno@clisp.org>
4453 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
4455 2007-03-12 Simon Josefsson <simon@josefsson.org>
4457 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
4458 avoid collisions with 'des_setkey'. Reported by Bruno Haible
4459 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
4461 2007-03-11 Bruno Haible <bruno@clisp.org>
4463 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
4464 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
4466 2007-03-11 Bruno Haible <bruno@clisp.org>
4468 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
4469 formula. Needed for SunPRO C 5.0.
4471 2007-03-11 Bruno Haible <bruno@clisp.org>
4473 * modules/long-options (Depends-on): Add getopt.
4475 2007-03-11 Bruno Haible <bruno@clisp.org>
4477 * modules/modechange (Depends-on): Add stdbool.
4479 2007-03-11 Bruno Haible <bruno@clisp.org>
4481 * modules/i-ring (Depends-on): Add stdbool.
4483 2007-03-11 Bruno Haible <bruno@clisp.org>
4485 * modules/gc-des (Depends-on): Add stdbool.
4487 2007-03-11 Bruno Haible <bruno@clisp.org>
4489 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
4491 2007-03-11 Bruno Haible <bruno@clisp.org>
4493 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
4495 2007-03-11 Bruno Haible <bruno@clisp.org>
4497 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
4499 2007-03-11 Bruno Haible <bruno@clisp.org>
4501 * lib/vasnprintf.c (sprintf): Undefine.
4503 2007-03-11 Bruno Haible <bruno@clisp.org>
4505 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
4506 initializers in SunPRO C and Compaq C compilers.
4508 2007-03-11 Bruno Haible <bruno@clisp.org>
4510 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
4511 decrementing code ANSI C compliant.
4513 2007-03-11 Bruno Haible <bruno@clisp.org>
4515 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
4516 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
4518 2007-03-11 Bruno Haible <bruno@clisp.org>
4520 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
4521 <stdbool.h> substitute doesn't pass.
4523 2007-03-11 Bruno Haible <bruno@clisp.org>
4525 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
4527 2007-03-11 Bruno Haible <bruno@clisp.org>
4529 * gnulib-tool (func_create_megatestdir): Create also an autobuild
4530 script, for submission to autobuild.josefsson.org.
4532 2007-03-10 Bruno Haible <bruno@clisp.org>
4534 * modules/canonicalize-lgpl-tests: New file.
4535 * tests/test-canonicalize-lgpl.sh: New file.
4536 * tests/test-canonicalize-lgpl.c: New file.
4538 * modules/c-strcase-tests: New file.
4539 * tests/test-c-strcase.sh: New file.
4540 * tests/test-c-strcasecmp.c: New file.
4541 * tests/test-c-strncasecmp.c: New file.
4543 * modules/atexit-tests: New file.
4544 * tests/test-atexit.sh: New file.
4545 * tests/test-atexit.c: New file.
4547 2007-03-10 Bruno Haible <bruno@clisp.org>
4549 * tests/test-binary-io.sh: Use temporary filenames that are not so
4550 likely to clash with those of other tests (in a parallel make).
4551 * tests/test-binary-io.c: Likewise.
4553 2007-03-10 Bruno Haible <bruno@clisp.org>
4555 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
4556 fallback; use #error instead.
4557 Suggested by Simon Josefsson.
4559 2007-03-10 Bruno Haible <bruno@clisp.org>
4561 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
4562 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
4565 2007-03-10 Bruno Haible <bruno@clisp.org>
4567 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
4569 2007-03-10 Bruno Haible <bruno@clisp.org>
4571 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
4573 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
4574 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
4575 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
4577 2007-03-10 Bruno Haible <bruno@clisp.org>
4579 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
4581 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
4584 2007-03-09 Eric Blake <ebb9@byu.net>
4585 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
4587 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
4588 types are not being provided by gnulib.
4589 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
4590 types are supported.
4592 2007-03-10 Bruno Haible <bruno@clisp.org>
4594 * lib/stdio_.h (__attribute__): New macro.
4595 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
4596 vsprintf): Specify __attribute__ __format__ for GCC.
4597 Suggested by Eric Blake.
4599 2007-03-09 Bruno Haible <bruno@clisp.org>
4601 * modules/printf-posix-tests: New file.
4602 * tests/test-printf-posix.sh: New file.
4603 * tests/test-printf-posix.c: New file.
4605 * modules/printf-posix: New file.
4606 * lib/printf.c: New file.
4607 * m4/printf-posix-rpl.m4: New file.
4608 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
4610 * lib/stdio_.h (printf): New declaration.
4611 (format, __format__, ____printf____, ____scanf____, ____strftime____,
4612 ____strfmon____): New macros.
4613 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
4616 2007-03-09 Bruno Haible <bruno@clisp.org>
4618 * tests/test-vasnprintf-posix2.sh: New file.
4619 * tests/test-vasnprintf-posix2.c: New file.
4620 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
4621 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
4622 (Makefile.am): Activate test-vasnprintf-posix2.sh.
4624 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
4625 a locale dependent decimal point, rather than always '.'.
4627 2007-03-09 Eric Blake <ebb9@byu.net>
4629 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
4630 spite of platforms like Tandem/NSK that define it to -1.
4632 2007-03-08 Bruno Haible <bruno@clisp.org>
4634 * modules/vprintf-posix-tests: New file.
4635 * tests/test-vprintf-posix.sh: New file.
4636 * tests/test-vprintf-posix.c: New file.
4637 * tests/test-printf-posix.h: New file.
4639 * modules/vprintf-posix: New file.
4640 * lib/vprintf.c: New file.
4641 * m4/vprintf-posix.m4: New file.
4642 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
4644 * lib/stdio_.h (vprintf): New declaration.
4645 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
4648 2007-03-08 Bruno Haible <bruno@clisp.org>
4650 * modules/fprintf-posix-tests: New file.
4651 * tests/test-fprintf-posix.sh: New file.
4652 * tests/test-fprintf-posix.c: New file.
4654 * modules/fprintf-posix: New file.
4655 * lib/fprintf.c: New file.
4656 * m4/fprintf-posix.m4: New file.
4657 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
4659 * lib/stdio_.h (fprintf): New declaration.
4660 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
4663 2007-03-08 Bruno Haible <bruno@clisp.org>
4665 * modules/vfprintf-posix-tests: New file.
4666 * tests/test-vfprintf-posix.sh: New file.
4667 * tests/test-vfprintf-posix.c: New file.
4668 * tests/test-fprintf-posix.h: New file.
4669 * tests/test-fprintf-posix.out: New file.
4671 * modules/vfprintf-posix: New file.
4672 * lib/vfprintf.c: New file.
4673 * m4/vfprintf-posix.m4: New file.
4674 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
4676 * lib/stdio_.h (vfprintf): New declaration.
4677 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
4680 2007-03-08 Bruno Haible <bruno@clisp.org>
4682 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
4684 2007-03-08 Bruno Haible <bruno@clisp.org>
4686 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
4687 instead of 'expr' invocations.
4688 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
4689 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
4690 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
4691 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
4692 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
4693 Suggested by Paul Eggert.
4695 2007-03-08 Bruno Haible <bruno@clisp.org>
4697 * modules/fseterr-tests: New file.
4698 * tests/test-fseterr.c: New file.
4700 * modules/fseterr: New file.
4701 * lib/fseterr.h: New file.
4702 * lib/fseterr.c: New file.
4704 2007-03-08 Bruno Haible <bruno@clisp.org>
4706 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
4707 * lib/getopt_.h: Likewise.
4708 * lib/mbswidth.h: Likewise.
4709 * lib/setenv.h: Likewise.
4710 * lib/vasnprintf.h: Likewise.
4711 * lib/vasprintf.h: Likewise.
4712 * lib/verror.h: Likewise.
4713 * lib/xsetenv.h: Likewise.
4714 * lib/xvasprintf.h: Likewise.
4716 2007-03-08 Jim Meyering <jim@meyering.net>
4718 * users.txt: Add parted.
4720 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
4722 2007-03-07 Bruno Haible <bruno@clisp.org>
4724 * m4/printf.m4: Make the shell script snippets copy&pastable.
4726 2007-03-02 Bruno Haible <bruno@clisp.org>
4728 * lib/netinet_in_.h: New file.
4729 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
4730 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
4731 * modules/netinet_in (Files): Add lib/netinet_in_.h.
4732 (Depends-on): Add absolute-header.
4733 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
4736 2007-03-03 Bruno Haible <bruno@clisp.org>
4738 * lib/sys_select_.h: New file.
4739 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
4740 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
4741 * modules/sys_select (Files): Add lib/sys_select_.h.
4742 (Depends-on): Add absolute-header.
4743 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
4746 2007-03-02 Bruno Haible <bruno@clisp.org>
4748 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
4749 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
4751 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
4752 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
4753 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
4754 * modules/sys_socket (Depends-on): Add absolute-header.
4755 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
4756 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
4757 (Include): Remove requirement of inclusion of <sys/types.h>.
4759 2007-03-02 Bruno Haible <bruno@clisp.org>
4761 * lib/byteswap_.h (bswap_32): Fix formula.
4763 2007-03-06 Bruno Haible <bruno@clisp.org>
4765 * modules/sprintf-posix-tests: New file.
4766 * tests/test-sprintf-posix.c: New file.
4768 * modules/sprintf-posix: New file.
4769 * lib/sprintf.c: New file.
4770 * m4/sprintf-posix.m4: New file.
4771 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
4773 * lib/stdio_.h (sprintf): New declaration.
4774 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
4777 2007-03-06 Bruno Haible <bruno@clisp.org>
4779 * modules/vsprintf-posix-tests: New file.
4780 * tests/test-vsprintf-posix.c: New file.
4781 * tests/test-sprintf-posix.h: New file.
4783 * modules/vsprintf-posix: New file.
4784 * lib/vsprintf.c: New file.
4785 * m4/vsprintf-posix.m4: New file.
4786 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
4788 * lib/stdio_.h (vsprintf): New declaration.
4789 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
4792 2007-03-06 Bruno Haible <bruno@clisp.org>
4794 * modules/vsnprintf (Depend-on): Remove minmax.
4796 2007-03-06 Bruno Haible <bruno@clisp.org>
4798 * modules/snprintf-posix-tests: New file.
4799 * tests/test-snprintf-posix.c: New file.
4801 * modules/snprintf-posix: New file.
4802 * m4/snprintf-posix.m4: New file.
4803 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
4805 (gl_FUNC_SNPRINTF): Invoke it.
4806 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
4807 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
4809 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
4811 2007-03-06 Bruno Haible <bruno@clisp.org>
4813 * modules/vsnprintf-posix-tests: New file.
4814 * tests/test-vsnprintf-posix.c: New file.
4815 * tests/test-snprintf-posix.h: New file.
4817 * modules/vsnprintf-posix: New file.
4818 * m4/vsnprintf-posix.m4: New file.
4819 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
4821 (gl_FUNC_VSNPRINTF): Invoke it.
4822 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
4823 * lib/stdio_.h (vsnprintf): Define as a replacement if
4824 REPLACE_VSNPRINTF is set.
4825 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
4827 2007-03-06 Bruno Haible <bruno@clisp.org>
4829 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
4830 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
4832 2007-03-06 Bruno Haible <bruno@clisp.org>
4834 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
4835 (asinl): Declare also if HAVE_DECL_ASINL is set.
4836 (atanl): Declare also if HAVE_DECL_ATANL is set.
4837 (ceill): Declare also if HAVE_DECL_CEILL is set.
4838 (cosl): Declare also if HAVE_DECL_COSL is set.
4839 (expl): Declare also if HAVE_DECL_EXPL is set.
4840 (floorl): Declare also if HAVE_DECL_FLOORL is set.
4841 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
4842 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
4843 (logl): Declare also if HAVE_DECL_LOGL is set.
4844 (sinl): Declare also if HAVE_DECL_SINL is set.
4845 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
4846 (tanl): Declare also if HAVE_DECL_TANL is set.
4847 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
4848 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
4849 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
4850 declaration of frexpl, ldexpl.
4851 * modules/printf-frexpl (Depends-on): Add math.
4852 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
4854 2007-03-05 Bruno Haible <bruno@clisp.org>
4856 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
4857 frexpl and ldexpl are declared.
4858 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
4860 2007-03-05 Bruno Haible <bruno@clisp.org>
4862 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
4863 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
4865 2007-03-05 Bruno Haible <bruno@clisp.org>
4867 * lib/stdio_.h: Include <stddef.h>.
4869 2007-03-05 Bruno Haible <bruno@clisp.org>
4871 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
4873 2007-03-05 Bruno Haible <bruno@clisp.org>
4875 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
4876 NetBSD 4, from Ralf Wildenhues.
4878 2007-03-04 Bruno Haible <bruno@clisp.org>
4880 * lib/vasprintf.h: Update #if logic for the case when the functions
4881 exist but are overridden.
4883 2007-03-04 Bruno Haible <bruno@clisp.org>
4885 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
4886 implementations: glibc-2.4 and MacOS X 10.3.
4887 * tests/test-vasnprintf-posix.c (test_function): Test also the case
4888 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
4889 * tests/test-vasprintf-posix.c (test_function): Likewise.
4891 2007-03-04 Bruno Haible <bruno@clisp.org>
4893 * modules/vasprintf-posix-tests: New file.
4894 * tests/test-vasprintf-posix.c: New file.
4896 * modules/vasprintf-posix: New file.
4897 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
4899 * m4/vasprintf-posix.m4: New file.
4900 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
4902 (gl_FUNC_VASPRINTF): Invoke it.
4903 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
4905 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
4907 2007-03-04 Bruno Haible <bruno@clisp.org>
4909 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
4910 REPLACE_GETTIMEOFDAY.
4911 * modules/sys_time (Makefile.am): Likewise.
4912 * m4/sys_time_h.m4: Likewise.
4913 * m4/gettimeofday.m4: Likewise.
4915 2007-03-04 Bruno Haible <bruno@clisp.org>
4917 * modules/vasnprintf-posix-tests: New file.
4918 * tests/test-vasnprintf-posix.c: New file.
4920 * modules/vasnprintf-posix: New file.
4921 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
4923 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
4924 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
4925 REPLACE_VASNPRINTF is defined.
4926 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
4928 (gl_FUNC_VASNPRINTF): Invoke it.
4929 * m4/vasnprintf-posix.m4: New file.
4930 * m4/printf.m4: New file.
4932 2007-03-04 Bruno Haible <bruno@clisp.org>
4934 Compile progreloc.c only if --enable-relocatable is specified.
4935 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
4936 if --enable-relocatable was specified.
4937 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
4940 2007-03-04 Jim Meyering <jim@meyering.net>
4942 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
4943 Use it consistently, rather than enumerating errno constants.
4945 2007-03-04 Bruno Haible <bruno@clisp.org>
4947 * modules/xvasprintf-tests: New file.
4948 * tests/test-xvasprintf.c: New file.
4950 * modules/vasprintf-tests: New file.
4951 * tests/test-vasprintf.c: New file.
4953 * modules/vasnprintf-tests: New file.
4954 * tests/test-vasnprintf.c: New file.
4956 * modules/vsnprintf-tests: New file.
4957 * tests/test-vsnprintf.c: New file.
4959 * modules/snprintf-tests: New file.
4960 * tests/test-snprintf.c: New file.
4962 2007-03-04 Bruno Haible <bruno@clisp.org>
4964 Compile relocatable.c only if --enable-relocatable is specified.
4965 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
4966 gl_RELOCATABLE_LIBRARY.
4967 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
4968 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
4969 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
4970 gl_RELOCATABLE_LIBRARY.
4971 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
4972 (Makefile.am): Remove lib_SOURCES.
4973 * modules/relocatable-lib-lgpl (configure.ac): Invoke
4974 gl_RELOCATABLE_LIBRARY.
4975 (Makefile.am): Remove lib_SOURCES.
4976 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
4978 * modules/relocatable-prog-wrapper (configure.ac): Invoke
4979 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
4981 2007-03-04 Bruno Haible <bruno@clisp.org>
4983 * modules/argmatch-tests: New file.
4984 * tests/test-argmatch.c: New file.
4986 * tests/test-allocsa.c (main): Halve the number of loop runs.
4988 * modules/alloca-opt-tests: New file.
4989 * tests/test-alloca-opt.c: New file.
4991 2007-03-04 Jim Meyering <jim@meyering.net>
4993 Work around difference between Linux ACLs and Solaris 10 ZFS.
4994 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
4997 2007-03-03 Bruno Haible <bruno@clisp.org>
4999 * modules/relocatable-prog (Depends-on): Add back progreloc's
5000 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
5002 2007-03-03 Bruno Haible <bruno@clisp.org>
5004 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
5005 * modules/relocatable-lib: New file.
5007 2007-03-03 Bruno Haible <bruno@clisp.org>
5009 * modules/relocatable-prog: Renamed from modules/relocatable.
5010 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
5012 2007-03-03 Bruno Haible <bruno@clisp.org>
5014 * modules/relocatable-script (Files): Add doc/relocatable.texi,
5015 m4/relocatable-lib.m4.
5016 (Depends-on): Remove 'relocatable'.
5017 (configure.ac): Add gl_RELOCATABLE_NOP.
5019 2007-03-03 Bruno Haible <bruno@clisp.org>
5021 * modules/relocatable-prog-wrapper: New file.
5022 * modules/relocatable (Depends-on): Add it. Remove all other
5023 dependencies except progname.
5024 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
5026 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
5027 (gl_FUNC_STRERROR): Nop.
5028 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
5030 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
5031 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
5033 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
5034 (gl_FUNC_READLINK): Update.
5036 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
5038 2007-03-03 Bruno Haible <bruno@clisp.org>
5040 * lib/xreadlink.c: Include <unistd.h> unconditionally.
5041 * modules/xreadlink (Depends-on): Add unistd.
5042 * modules/xreadlink-with-size (Depends-on): Likewise.
5044 2007-03-03 Bruno Haible <bruno@clisp.org>
5046 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
5047 extracted from gt_FUNC_SETENV.
5048 (gt_FUNC_SETENV): Remove macro.
5049 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
5050 remove gt_FUNC_SETENV.
5052 2007-03-03 Bruno Haible <bruno@clisp.org>
5054 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
5055 ENABLE_RELOCATABLE here.
5056 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
5058 2007-03-03 Bruno Haible <bruno@clisp.org>
5060 * modules/rbtreehash-list-tests (Depends-on): Add progname.
5061 * tests/test-rbtreehash_list.c: Include progname.h.
5062 (main): Call set_program_name.
5064 * modules/rbtree-oset-tests (Depends-on): Add progname.
5065 * tests/test-rbtree_oset.c: Include progname.h.
5066 (main): Call set_program_name.
5068 * modules/rbtree-list-tests (Depends-on): Add progname.
5069 * tests/test-rbtree_list.c: Include progname.h.
5070 (main): Call set_program_name.
5072 * modules/linked-list-tests (Depends-on): Add progname.
5073 * tests/test-linked_list.c: Include progname.h.
5074 (main): Call set_program_name.
5076 2007-03-03 Bruno Haible <bruno@clisp.org>
5078 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
5079 All uses of __restrict changed to _Restrict_.
5080 * lib/glob_.h (__restrict): Remove macro.
5082 2007-03-02 Bruno Haible <bruno@clisp.org>
5084 * modules/gettext (configure.ac): Require gettext infrastructure
5085 from version 0.16.1.
5087 2007-03-02 Bruno Haible <bruno@clisp.org>
5089 * modules/linkedhash-list-tests (Depends-on): Add progname.
5090 * tests/test-linkedhash_list.c: Include progname.h.
5091 (main): Call set_program_name.
5093 * modules/carray-list-tests (Depends-on): Add progname.
5094 * tests/test-carray_list.c: Include progname.h.
5095 (main): Call set_program_name.
5097 * modules/avltreehash-list-tests (Depends-on): Add progname.
5098 * tests/test-avltreehash_list.c: Include progname.h.
5099 (main): Call set_program_name.
5101 * modules/avltree-oset-tests (Depends-on): Add progname.
5102 * tests/test-avltree_oset.c: Include progname.h.
5103 (main): Call set_program_name.
5105 * modules/avltree-list-tests (Depends-on): Add progname.
5106 * tests/test-avltree_list.c: Include progname.h.
5107 (main): Call set_program_name.
5109 * modules/array-oset-tests (Depends-on): Add progname.
5110 * tests/test-array_oset.c: Include progname.h.
5111 (main): Call set_program_name.
5113 * modules/array-list-tests (Depends-on): Add progname.
5114 * tests/test-array_list.c: Include progname.h.
5115 (main): Call set_program_name.
5117 * modules/argp-tests (Depends-on): Add progname.
5118 * tests/test-argp.c: Include argp.h first. Include progname.h.
5119 (main): Call set_program_name.
5121 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
5123 * doc/gnulib-tool.texi (Initial import): Reword description of
5124 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
5125 limited effect even if defined after the first system include.
5127 2007-03-01 Bruno Haible <bruno@clisp.org>
5129 * build-aux/config.libpath: Update to libtool-1.5.22.
5130 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5132 2007-03-01 Bruno Haible <bruno@clisp.org>
5134 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
5136 Reported by Ralf Wildenhues.
5138 2007-03-01 Bruno Haible <bruno@clisp.org>
5140 * build-aux/install-reloc: Remove object files left over by some
5142 Reported by Ralf Wildenhues.
5144 2007-03-01 Bruno Haible <bruno@clisp.org>
5146 * build-aux/install-reloc: Break long lines.
5148 2007-03-01 Bruno Haible <bruno@clisp.org>
5150 * doc/relocatable.texi: Document that it may not work on OpenBSD.
5151 Reported by Ralf Wildenhues.
5153 2007-03-01 Bruno Haible <bruno@clisp.org>
5155 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
5156 include ordering constraints.
5158 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
5160 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
5161 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
5162 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
5164 * lib/time_.h: Fix misspelling.
5165 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
5166 Require gl_HEADER_TIME_H_DEFAULTS.
5167 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
5168 * m4/time_r.m4 (gl_TIME_R): Likewise.
5169 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
5171 2007-03-01 Bruno Haible <bruno@clisp.org>
5173 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
5174 * m4/utimens.m4 (gl_UTIMENS): Likewise.
5176 2007-03-01 Jim Meyering <jim@meyering.net>
5178 * modules/xreadlink (Maintainer): Add my name.
5179 * modules/xreadlink-with-size (Depends-on): Alphabetize.
5181 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
5182 Bruno Haible <bruno@clisp.org>
5184 * build-aux/install-reloc: Compile also c-ctype.c.
5185 * build-aux/relocatable.sh.in: New file.
5186 * doc/relocatable.texi: New file.
5187 * doc/relocatable-maint.texi: New file.
5188 * doc/gnulib.texi: Include relocatable-maint.texi.
5189 * lib/progreloc.c: Include unistd.h unconditionally.
5190 * lib/relocwrapper.c: Include unistd.h unconditionally.
5192 (add_dotbin): Use c_tolower.
5193 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
5194 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
5195 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
5196 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
5197 to m4/relocatable-lib.m4.
5198 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
5199 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
5200 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
5201 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
5202 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
5203 * modules/relocatable: New file.
5204 * modules/relocatable-lib: New file.
5205 * modules/relocatable-script: New file.
5207 2007-02-28 Bruno Haible <bruno@clisp.org>
5209 Import --enable-relocatable infrastructure.
5210 * build-aux/config.libpath: New file, from GNU gettext.
5211 * build-aux/install-reloc: New file, from GNU gettext.
5212 * build-aux/reloc-ldflags: New file, from GNU gettext.
5213 * lib/relocatable.h: New file, from GNU gettext.
5214 * lib/relocatable.c: New file, from GNU gettext.
5215 * lib/relocwrapper.c: New file, from GNU gettext.
5216 * m4/relocatable.m4: New file, from GNU gettext.
5218 2007-02-28 Bruno Haible <bruno@clisp.org>
5220 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
5222 * modules/xreadlink: New file, from GNU gettext with modifications.
5223 * lib/xreadlink.c: New file, from GNU gettext.
5224 * lib/xreadlink.h: Add comments.
5225 (xreadlink): New declaration.
5227 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
5228 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
5229 lib/xreadlink-with-size.c.
5230 (configure.ac): Remove gl_XREADLINK invocation.
5231 (Makefile.am): Augment lib_SOURCES.
5232 * m4/xreadlink.m4: Remove file.
5233 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
5234 (xreadlink_with_size): Renamed from xreadink.
5235 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
5236 * modules/canonicalize (Depends-on): Replace xreadlink with
5237 xreadlink-with-size.
5238 * lib/canonicalize.c (canonicalize_filename_mode): Update.
5240 2007-02-25 Jim Meyering <jim@meyering.net>
5242 * build-aux/announce-gen: When complaining about excess arguments,
5245 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
5247 * README: Document signed integer overflow situation more
5250 2007-02-25 Bruno Haible <bruno@clisp.org>
5252 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
5253 'a' or 'A' conversion.
5255 2007-02-25 Bruno Haible <bruno@clisp.org>
5257 * modules/filename: Renamed from modules/pathname.
5258 (Files): Replace lib/pathname.h with lib/filename.h. Replace
5259 lib/concatpath.c with lib/concat-filename.c.
5260 (Makefile.am): Update.
5261 (Include): Replace pathname.h with filename.h.
5262 * lib/filename.h: Renamed from lib/pathname.h.
5263 (concatenated_filename): Renamed from concatenated_pathname.
5264 * lib/concat-filename.c: Renamed from lib/concatpath.c.
5265 (concatenated_filename): Renamed from concatenated_pathname.
5266 * lib/findprog.c: Include filename.h instead of pathname.h.
5267 (find_in_path): Update.
5268 * lib/javacomp.c: Include filename.h instead of pathname.h.
5269 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
5270 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
5271 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
5272 is_oldgcj_14_13_usable, is_javac_usable): Update.
5273 * lib/javaexec.c: Include filename.h instead of pathname.h.
5274 (execute_java_class): Update.
5275 * modules/findprog: Update.
5276 * modules/javacomp: Update.
5277 * modules/javaexec: Update.
5278 * MODULES.html.sh (File system functions): Add 'filename', remove
5281 2007-02-25 Bruno Haible <bruno@clisp.org>
5283 * modules/printf-frexpl-tests: New file.
5284 * tests/test-printf-frexpl.c: New file.
5286 * modules/printf-frexpl: New file.
5287 * lib/printf-frexpl.h: New file.
5288 * lib/printf-frexpl.c: New file.
5289 * m4/printf-frexpl.m4: New file.
5291 2007-02-25 Bruno Haible <bruno@clisp.org>
5293 * modules/printf-frexp-tests: New file.
5294 * tests/test-printf-frexp.c: New file.
5296 * modules/printf-frexp: New file.
5297 * lib/printf-frexp.h: New file.
5298 * lib/printf-frexp.c: New file.
5299 * m4/printf-frexp.m4: New file.
5301 2007-02-25 Bruno Haible <bruno@clisp.org>
5303 Assume automake >= 1.10 for the tests.
5304 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
5305 * modules/arctwo-tests: Likewise.
5306 * modules/argp-tests: Likewise.
5307 * modules/avltree-list-tests: Likewise.
5308 * modules/avltree-oset-tests: Likewise.
5309 * modules/avltreehash-list-tests: Likewise.
5310 * modules/carray-list-tests: Likewise.
5311 * modules/crc-tests: Likewise.
5312 * modules/des-tests: Likewise.
5313 * modules/gc-arcfour-tests: Likewise.
5314 * modules/gc-arctwo-tests: Likewise.
5315 * modules/gc-des-tests: Likewise.
5316 * modules/gc-hmac-md5-tests: Likewise.
5317 * modules/gc-hmac-sha1-tests: Likewise.
5318 * modules/gc-md2-tests: Likewise.
5319 * modules/gc-md4-tests: Likewise.
5320 * modules/gc-md5-tests: Likewise.
5321 * modules/gc-pbkdf2-sha1-tests: Likewise.
5322 * modules/gc-rijndael-tests: Likewise.
5323 * modules/gc-sha1-tests: Likewise.
5324 * modules/gc-tests: Likewise.
5325 * modules/getaddrinfo-tests: Likewise.
5326 * modules/hmac-md5-tests: Likewise.
5327 * modules/hmac-sha1-tests: Likewise.
5328 * modules/linked-list-tests: Likewise.
5329 * modules/linkedhash-list-tests: Likewise.
5330 * modules/lock-tests: Likewise.
5331 * modules/md2-tests: Likewise.
5332 * modules/md4-tests: Likewise.
5333 * modules/md5-tests: Likewise.
5334 * modules/rbtree-list-tests: Likewise.
5335 * modules/rbtree-oset-tests: Likewise.
5336 * modules/rbtreehash-list-tests: Likewise.
5337 * modules/read-file-tests: Likewise.
5338 * modules/rijndael-tests: Likewise.
5339 * modules/stdint-tests: Likewise.
5340 * modules/tls-tests: Likewise.
5342 2007-02-24 Bruno Haible <bruno@clisp.org>
5344 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
5345 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
5346 function; instead check whether isnan with a double argument links.
5347 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
5348 function; instead check whether isnan with a 'long double' argument
5350 Reported by Eric Blake <ebb9@byu.net>.
5352 2007-02-24 Bruno Haible <bruno@clisp.org>
5354 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
5356 * lib/isnanl.c: Remove all code. Just include isnan.c.
5357 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
5359 2007-02-25 Jim Meyering <jim@meyering.net>
5361 Avoid conflicting types for 'unsetenv' on FreeBSD.
5362 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
5363 conflicting with FreeBSD's (5.0 and 6.1) function declaration
5366 2007-02-24 Bruno Haible <bruno@clisp.org>
5368 * modules/isnanl-nolibm-tests: New file.
5369 * tests/test-isnanl.c: New file.
5371 * modules/isnanl-nolibm: New file.
5372 * lib/isnanl.h: New file.
5373 * lib/isnanl.c: New file.
5374 * m4/isnanl.m4: New file.
5376 2007-02-24 Bruno Haible <bruno@clisp.org>
5378 * modules/isnan-nolibm-tests: New file.
5379 * tests/test-isnan.c: New file.
5381 * modules/isnan-nolibm: New file.
5382 * lib/isnan.h: New file.
5383 * lib/isnan.c: New file.
5384 * m4/isnan.m4: New file.
5386 2007-02-24 Bruno Haible <bruno@clisp.org>
5388 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
5389 assume that an exponent fits in 20 bits.
5391 2007-02-24 Jim Meyering <jim@meyering.net>
5393 * m4/regex.m4: Update the description of the configure-time option,
5394 --without-included-regex, to state accurately what the defaults are,
5395 and perhaps to give people an idea why using this option is risky.
5397 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
5399 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
5400 loops on small arguments. This attempts to avoid the problem
5401 Bruno Haible reported for AIX 4.3.2 in
5402 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
5404 2007-02-23 Bruno Haible <bruno@clisp.org>
5406 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
5407 Needed for help2man.
5409 2007-02-23 Karl Berry <karl@gnu.org>
5411 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
5412 exists, foo.h should be cvs-ignored, not committed.
5414 2007-02-23 Eric Blake <ebb9@byu.net>
5416 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
5417 * lib/stat-time.h (includes): Likewise.
5418 * lib/utimecmp.c (includes): Likewise.
5419 * lib/utimens.h (includes): Likewise.
5420 * lib/getdate.y (includes): Also include "timespec.h" for use
5421 internal to the module.
5422 * modules/utimens (Depends-on): Revert yesterday's patch.
5423 * modules/nanosleep (Depends-on): Add missing dependency.
5425 2007-02-22 Bruno Haible <bruno@clisp.org>
5427 * lib/glob.c: Don't include getlogin_r.h.
5429 2007-02-22 Jim Meyering <jim@meyering.net>
5431 * modules/utimens (Depends-on): Add timespec, required for
5432 utimens.h's inclusion of timespec.h.
5434 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
5436 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
5437 long unreadable paths in GNU/Linux. Problem reported by Andreas
5439 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
5440 I'll try to think of a better way to fix the Solaris problem.
5442 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
5443 like glibc; on Solaris 10, it fails with errno == EINVAL.
5444 POSIX says the behavior is unspecified if the first argument is NULL,
5445 so play it safe and never pass NULL to the system getcwd.
5447 2007-02-21 Jim Meyering <jim@meyering.net>
5449 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
5450 of gettimeofday. It would conflict with the one now always
5451 provided via sys_time_.h. Reported by Matthew Woehlke, as
5452 an IRIX 6.5 build failure.
5454 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
5456 Minor fixups to port to Solaris 10 with Sun C 5.8.
5457 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
5458 * modules/getcwd (Depends-on): Add dirfd.
5459 * lib/putenv.c (putenv): #undef it.
5460 (rpl_putenv): New decl.
5461 (malloc, free): Include <stdlib.h> rather than prototyping separately.
5463 2007-02-20 Bruno Haible <bruno@clisp.org>
5465 * modules/stdio-tests: New file.
5466 * tests/test-stdio.c: New file.
5468 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
5469 (Depends-on): Add stdio.
5470 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
5471 (Include): Use <stdio.h> instead of vsnprintf.h.
5472 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
5473 HAVE_DECL_VSNPRINTF.
5474 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
5476 * modules/snprintf (Files): Remove lib/snprintf.h.
5477 (Depends-on): Add stdio.
5478 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
5479 (Include): Use <stdio.h> instead of snprintf.h.
5480 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
5482 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
5483 * lib/getaddrinfo.c: Likewise.
5485 * modules/stdio: New file.
5486 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
5487 * lib/snprintf.h: Remove file.
5488 * lib/vsnprintf.h: Remove file.
5489 * lib/.cppi-disable: Remove snprintf.h.
5490 * m4/stdio_h.m4: New file.
5491 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
5493 2007-02-20 Jim Meyering <jim@meyering.net>
5495 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
5496 used by e.g., mingw. From Bruno Haible.
5498 2007-02-19 Bruno Haible <bruno@clisp.org>
5500 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
5502 Reported by Ben Pfaff <blp@cs.stanford.edu>.
5504 2007-02-19 Bruno Haible <bruno@clisp.org>
5506 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
5509 2007-02-19 Bruno Haible <bruno@clisp.org>
5511 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
5513 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
5515 2007-02-19 Jim Meyering <jim@meyering.net>
5517 Don't use FD after a successful "fdopendir (fd)".
5518 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
5519 Reset it by calling dirfd on the just-obtained DIR*.
5521 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
5522 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
5524 2007-02-18 Bruno Haible <bruno@clisp.org>
5526 * lib/readlink.c: Include <unistd.h>.
5527 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
5529 * modules/readlink (Depends-on): Add unistd.
5530 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5531 (Include): Add <unistd.h>.
5533 * lib/getlogin_r.h: Remove file.
5534 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
5535 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
5536 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
5537 HAVE_DECL_GETLOGIN_R.
5538 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
5539 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5540 (Include): Use <unistd.h> instead of getlogin_r.h.
5542 * lib/getcwd.h: Remove file.
5543 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
5544 * lib/xgetcwd.c: Likewise.
5545 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
5546 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
5547 * modules/getcwd (Files): Remove lib/getcwd.h.
5548 (Depends-on): Add unistd.
5549 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5550 (Include): Use <unistd.h> instad of getcwd.h.
5552 * lib/ftruncate.c: Include <unistd.h> first.
5553 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
5555 * modules/ftruncate (Depends-on): Add unistd.
5556 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5558 * lib/fchdir.c: Include <unistd.h> first.
5559 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
5560 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
5561 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
5562 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5563 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
5565 * lib/dup2.c: Include <unistd.h> first.
5566 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
5568 * modules/dup2 (Depends-on): Add unistd.
5569 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5571 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
5572 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
5573 REPLACE_CHOWN. Don't define chown as a macro here.
5574 * modules/chown (Depends-on): Add unistd.
5575 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5577 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
5578 Add definition for GL_LINK_WARNING.
5579 (chown, dup2): New declarations.
5580 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
5582 (ftruncate): New declaration.
5583 (getcwd): New declaration, taken from old getcwd.h.
5584 (getlogin_r): New declaration, taken from old getlogin_r.h.
5585 (readlink): New declaration.
5586 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
5587 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
5588 (gl_PREREQ_UNISTD): Remove macro.
5589 (gl_UNISTD_MODULE_INDICATOR): New macro.
5590 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
5591 many new variables. Don't set UNISTD_H.
5592 * modules/unistd (Description): Change.
5593 (Depends-on): Add link-warning.
5594 (configure.ac): Update.
5595 (Makefile.am): Create unistd.h always. Substitute many new variables
5598 2007-02-18 Bruno Haible <bruno@clisp.org>
5600 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
5601 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
5603 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
5604 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
5605 * lib/getsubopt.h: Remove file.
5606 * modules/getsubopt (Files): Remove lib/getsubopt.h.
5607 (Depends-on): Add stdlib.
5608 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5609 (Includes): Use <stdlib.h> instead of getsubopt.h.
5610 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
5612 * lib/getsubopt.c: Don't include getsubopt.h.
5614 2007-02-18 Bruno Haible <bruno@clisp.org>
5616 * modules/fchdir (Depends-on): Add dup2.
5618 2007-02-18 Bruno Haible <bruno@clisp.org>
5620 * lib/stdlib_.h: Handle glibc's special invocation convention
5623 2007-02-18 Bruno Haible <bruno@clisp.org>
5625 * modules/stdlib-tests: New file.
5626 * tests/test-stdlib.c: New file.
5628 * modules/mkstemp (Files): Remove lib/mkstemp.h.
5629 (Depends-on): Add stdlib.
5630 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5631 (Includes): Use <stdlib.h> instead of mkstemp.h.
5632 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
5633 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
5634 * lib/mkstemp.c: Don't include mkstemp.h.
5635 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
5636 * lib/stdlib--.h: Don't include mkstemp.h.
5638 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
5639 (Depends-on): Add stdlib.
5640 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5641 (Includes): Use <stdlib.h> instead of mkdtemp.h.
5642 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
5644 * lib/mkdtemp.c: Don't include mkdtemp.h.
5645 * lib/clean-temp.c: Don't include mkdtemp.h.
5647 * modules/exit (Files): Remove lib/exit.h.
5648 (Depends-on): Add stdlib.
5649 (Makefile.am): Remove lib_SOURCES.
5650 (Include): Use <stdlib.h> instead of exit.h.
5651 * lib/argmatch.c: Don't include exit.h.
5652 * lib/execute.c: Likewise.
5653 * lib/pagealign_alloc.c: Likewise.
5654 * lib/pipe.c: Likewise.
5655 * lib/wait-process.c: Likewise.
5656 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
5657 * lib/exitfail.c: Likewise.
5658 * lib/savewd.c: Likewise.
5659 * lib/xsetenv.c: Likewise.
5661 * modules/stdlib: New file.
5662 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
5663 and extra comments about mkstemp().
5664 * lib/exit.h: Remove file.
5665 * lib/mkdtemp.h: Remove file.
5666 * lib/mkstemp.h: Remove file.
5667 * m4/stdlib_h.m4: New file.
5668 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
5670 2007-02-18 Bruno Haible <bruno@clisp.org>
5672 * modules/math-tests: New file.
5673 * tests/test-math.c: New file.
5675 * modules/math: New file.
5676 * modules/mathl (Files): Remove lib/mathl.h.
5677 (Depends-on): Add math.
5678 (Makefile.am): Don't mention mathl.h.
5679 (Include): Use <math.h> instead of mathl.h.
5680 * lib/math_.h: New file.
5681 * lib/mathl.h: Remove file.
5682 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
5684 * lib/asinl.c: Likewise.
5685 * lib/atanl.c: Likewise.
5686 * lib/ceill.c: Likewise.
5687 * lib/cosl.c: Likewise.
5688 * lib/expl.c: Likewise.
5689 * lib/floorl.c: Likewise.
5690 * lib/frexpl.c: Likewise.
5691 * lib/ldexpl.c: Likewise.
5692 * lib/logl.c: Likewise.
5693 * lib/sincosl.c: Likewise.
5694 * lib/sinl.c: Likewise.
5695 * lib/sqrtl.c: Likewise.
5696 * lib/tanl.c: Likewise.
5697 * lib/trigl.c: Likewise.
5698 * m4/math_h.m4: New file.
5699 * MODULES.html.sh (Mathematics): Add math.
5701 2007-02-17 Bruno Haible <bruno@clisp.org>
5703 * modules/wctype-tests: New file.
5704 * tests/test-wctype.c: New file.
5706 * modules/wchar-tests: New file.
5707 * tests/test-wchar.c: New file.
5709 * modules/unistd-tests: New file.
5710 * tests/test-unistd.c: New file.
5712 * modules/time-tests: New file.
5713 * tests/test-time.c: New file.
5715 * modules/sysexits-tests: New file.
5716 * tests/test-sysexits.c: New file.
5718 * modules/sys_time-tests: New file.
5719 * tests/test-sys_time.c: New file.
5721 * modules/sys_stat-tests: New file.
5722 * tests/test-sys_stat.c: New file.
5724 * modules/sys_socket-tests: New file.
5725 * tests/test-sys_socket.c: New file.
5727 * modules/sys_select-tests: New file.
5728 * tests/test-sys_select.c: New file.
5730 * modules/string-tests: New file.
5731 * tests/test-string.c: New file.
5733 * modules/stdbool-tests: New file.
5734 * tests/test-stdbool.c: New file.
5736 * modules/netinet_in-tests: New file.
5737 * tests/test-netinet_in.c: New file.
5739 * modules/inttypes-tests: New file.
5740 * tests/test-inttypes.c: New file.
5742 * modules/fcntl-tests: New file.
5743 * tests/test-fcntl.c: New file.
5745 * modules/byteswap-tests: New file.
5746 * tests/test-byteswap.c: New file.
5748 * modules/arpa_inet-tests: New file.
5749 * tests/test-arpa_inet.c: New file.
5751 2007-02-17 Bruno Haible <bruno@clisp.org>
5753 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
5754 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
5755 if the corresponding module is not enabled. Emit link warnings if
5756 the function is used nevertheless.
5757 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
5758 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
5759 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
5760 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
5761 * modules/inttypes (Depends-on): Add link-warning.
5762 (Makefile.am): Copy the contents of build-aux/link-warning.h into
5763 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
5764 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
5765 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
5766 * modules/imaxdiv (configure.ac): Likewise.
5767 * modules/strtoimax (configure.ac): Likewise.
5768 * modules/strtoumax (configure.ac): Likewise.
5770 2007-02-17 Bruno Haible <bruno@clisp.org>
5772 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
5773 gl_STRING_MODULE_INDICATOR_DEFAULTS.
5774 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
5775 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
5777 2007-02-17 Bruno Haible <bruno@clisp.org>
5779 * modules/link-warning: New file.
5780 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
5781 * lib/string_.h (GL_LINK_WARNING): Remove definition.
5782 * modules/string (Depends-on): Add link-warning.
5783 (Makefile.am): Copy the contents of build-aux/link-warning.h into
5785 * MODULES.html.sh (Support for building libraries and executables): Add
5788 2007-02-17 Bruno Haible <bruno@clisp.org>
5790 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
5791 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
5792 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
5795 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
5796 Bruno Haible <bruno@clisp.org>
5798 * modules/tmpfile: New file.
5799 * lib/tmpfile.c: New file.
5800 * m4/tmpfile.m4: New file.
5801 * MODULES.html.sh (func_all_modules): New section "Input/output".
5803 2007-02-15 Bruno Haible <bruno@clisp.org>
5805 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
5806 (supports_delete_on_close): New function.
5807 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
5809 2007-02-14 Bruno Haible <bruno@clisp.org>
5811 * modules/mbspcasecmp-tests: New file.
5812 * tests/test-mbspcasecmp.sh: New file.
5813 * tests/test-mbspcasecmp.c: New file.
5815 New module mbspcasecmp.
5816 * modules/mbspcasecmp: New file.
5817 * lib/mbspcasecmp.c: New file.
5818 * lib/string_.h (strncasecmp): Change warning message.
5819 (mbspcasecmp): New declaration.
5820 * m4/mbspcasecmp.m4: New file.
5821 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5823 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
5824 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
5826 2007-02-14 Bruno Haible <bruno@clisp.org>
5828 * modules/mbsncasecmp-tests: New file.
5829 * tests/test-mbsncasecmp.sh: New file.
5830 * tests/test-mbsncasecmp.c: New file.
5832 New module mbsncasecmp.
5833 * modules/mbsncasecmp: New file.
5834 * lib/mbsncasecmp.c: New file.
5835 * lib/string_.h (mbsncasecmp): New declaration.
5836 * m4/mbsncasecmp.m4: New file.
5837 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5839 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
5840 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
5842 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
5844 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
5845 Verify that it doesn't overlap with our flags.
5846 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
5847 do not have the desired effect in multibyte locales; instead, use
5849 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
5850 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
5851 we don't require GNU fnmatch ourselves (if our users require it, they
5852 should do so explicitly).
5854 Fix regex code so it doesn't rely on strcasecmp.
5855 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
5856 Otherwise, include gnulib's langinfo.h.
5857 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
5858 undesirable behavior in non-C locales. Instead, rely on localecharset.
5859 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
5860 * modules/regex (FILES): Remove m4/codeset.m4.
5861 (Depends-on): Add localcharset. Remove strcase.
5863 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5865 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
5866 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
5868 2007-02-13 Bruno Haible <bruno@clisp.org>
5870 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
5871 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5873 2007-02-12 Bruno Haible <bruno@clisp.org>
5875 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
5876 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
5877 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
5878 time warning rather than a link error.
5880 2007-02-12 Bruno Haible <bruno@clisp.org>
5882 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
5883 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
5884 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5886 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
5888 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
5891 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
5893 New module 'time', so that apps can include <time.h> as per
5894 POSIX and GNU instead of separate include files like time_r.h
5895 and timegm.h. This implementation tries out a simpler approach
5896 for replacing decls in standard include files (as compared to
5897 the string module), somewhat as an experiment.
5899 * config/srclist.txt: Comment out mktime.c for now.
5900 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
5901 since it doesn't apply any more. Use generic wording instead.
5902 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
5904 * lib/time_.h, m4/time_h.m4, modules/time: New files.
5905 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
5906 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
5907 Don't include <sys/types.h>; no longer needed since we assume C89.
5908 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
5909 * lib/strftime.c: Likewise.
5910 * lib/time_r.c: Likewise.
5911 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
5912 * lib/nanosleep.c: Include <time.h> first, to check interface.
5913 * lib/strptime.c: Likewise.
5914 * lib/time_r.c: Likewise.
5915 * lib/timegm.c: Likewise.
5916 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
5918 * lib/timegm.c: Don't include timegm.h; no longer needed.
5919 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
5920 time.h now handles any problems in that area.
5921 (struct timespec, nanosleep): Remove; time.h now arranges for these.
5922 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
5923 that time.h defines struct timespec.
5924 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
5925 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
5927 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
5928 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
5929 needed. Set REPLACE_LOCALTIME.
5930 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
5931 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
5932 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
5933 nanosleep; time_h.m4 now does that. Don't require
5934 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
5935 module handles this now.
5936 * modules/getdate (Depends-on): Remove timespec. Add time.
5937 * modules/nanosleep (Depends-on): Likewise.
5938 * modules/stat-time (Depends-on): Likewise.
5939 * modules/nanosleep (Include): Include time.h, not timespec.h.
5940 * modules/strptime (Files): Remove lib/strptime.h.
5941 (Depends-on): Add extensions, time.
5942 (Include): Include time.h, not strptime.h.
5943 * modules/time_r (Files): Remove lib/time_r.h.
5944 (Depends-on): Add time.
5945 (Include): Include time.h, not time_r.h.
5946 * modules/timegm: Likewise.
5947 * modules/timespec (Description): Now does timespec-related decls
5948 of our own, instead of struct timespec itself.
5949 (Depends-on): Add time; remove extensions.
5950 (Maintainer): Add self.
5951 * modules/utimecmp (Depends-on): Add time; remove timespec.
5952 * modules/utimens (Depends-on): Likewise.
5953 * modules/xnanosleep (Depends-on): Likewise.
5955 2007-02-11 Bruno Haible <bruno@clisp.org>
5957 * lib/c-strstr.c: Include allocsa.h.
5958 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
5959 * lib/c-strcasestr.c: Include allocsa.h.
5960 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
5961 * lib/strcasestr.c: Include allocsa.h.
5962 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
5963 * lib/mbsstr.c: Include allocsa.h.
5964 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
5965 allocsa/freesa instead of malloc/free.
5966 * lib/mbscasestr.c: Include allocsa.h.
5967 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
5968 allocsa/freesa instead of malloc/free.
5969 * modules/c-strstr (Depends-on): Add allocsa.
5970 * modules/c-strcasestr (Depends-on): Likewise.
5971 * modules/strcasestr (Depends-on): Likewise.
5972 * modules/mbsstr (Depends-on): Likewise.
5973 * modules/mbscasestr (Depends-on): Likewise.
5975 2007-02-11 Bruno Haible <bruno@clisp.org>
5977 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
5979 * modules/mbsspn-tests: New file.
5980 * tests/test-mbsspn.sh: New file.
5981 * tests/test-mbsspn.c: New file.
5983 2007-02-11 Bruno Haible <bruno@clisp.org>
5985 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
5987 * modules/mbspbrk-tests: New file.
5988 * tests/test-mbspbrk.sh: New file.
5989 * tests/test-mbspbrk.c: New file.
5991 2007-02-11 Bruno Haible <bruno@clisp.org>
5993 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
5996 * modules/mbscspn-tests: New file.
5997 * tests/test-mbscspn.sh: New file.
5998 * tests/test-mbscspn.c: New file.
6000 2007-02-11 Bruno Haible <bruno@clisp.org>
6002 * modules/mbscasecmp-tests: New file.
6003 * tests/test-mbscasecmp.sh: New file.
6004 * tests/test-mbscasecmp.c: New file.
6006 2007-02-11 Bruno Haible <bruno@clisp.org>
6008 Ensure O(n) worst-case complexity of mbscasestr.
6009 * lib/mbscasestr.c: Include stdbool.h.
6010 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
6012 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
6013 the bookkeeping indicates that it's worth it.
6014 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
6016 * modules/mbscasestr-tests: New file.
6017 * tests/test-mbscasestr1.c: New file.
6018 * tests/test-mbscasestr2.sh: New file.
6019 * tests/test-mbscasestr2.c: New file.
6020 * tests/test-mbscasestr3.sh: New file.
6021 * tests/test-mbscasestr3.c: New file.
6022 * tests/test-mbscasestr4.sh: New file.
6023 * tests/test-mbscasestr4.c: New file.
6024 * m4/locale-tr.m4: New file.
6026 2007-02-11 Bruno Haible <bruno@clisp.org>
6028 Ensure O(n) worst-case complexity of mbsstr.
6029 * lib/mbsstr.c: Include stdbool.h.
6030 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
6032 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
6033 bookkeeping indicates that it's worth it.
6034 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
6036 * modules/mbsstr-tests: New file.
6037 * tests/test-mbsstr1.c: New file.
6038 * tests/test-mbsstr2.sh: New file.
6039 * tests/test-mbsstr2.c: New file.
6040 * tests/test-mbsstr3.sh: New file.
6041 * tests/test-mbsstr3.c: New file.
6042 * m4/locale-fr.m4: New file.
6044 2007-02-11 Bruno Haible <bruno@clisp.org>
6046 * lib/mbsrchr.c (mbsrchr): Fix bug.
6048 * modules/mbsrchr-tests: New file.
6049 * tests/test-mbsrchr.sh: New file.
6050 * tests/test-mbsrchr.c: New file.
6052 2007-02-11 Bruno Haible <bruno@clisp.org>
6054 * lib/mbschr.c (mbschr): Fix bug.
6056 * modules/mbschr-tests: New file.
6057 * tests/test-mbschr.sh: New file.
6058 * tests/test-mbschr.c: New file.
6059 * m4/locale-zh.m4: New file.
6061 2007-02-11 Bruno Haible <bruno@clisp.org>
6063 Support for copying multibyte string iterators.
6064 * lib/mbiter.h: Include <string.h>.
6065 (mbiter_multi_copy): New function.
6066 (mbi_copy): New macro.
6067 * lib/mbuiter.h: Include <string.h>.
6068 (mbuiter_multi_copy): New function.
6069 (mbui_copy): New macro.
6071 2007-02-11 Bruno Haible <bruno@clisp.org>
6074 * modules/mbslen: New file.
6075 * lib/mbslen.c: New file.
6076 * lib/string_.h (mbslen): New declaration.
6077 * m4/mbslen.m4: New file.
6078 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6080 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
6081 * MODULES.html.sh (Internationalization functions): Add mbslen.
6083 2007-02-11 Bruno Haible <bruno@clisp.org>
6085 Ensure O(n) worst-case complexity of strcasestr substitute.
6086 * lib/strcasestr.c: Include stdbool.h.
6087 (knuth_morris_pratt): New function.
6088 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
6089 bookkeeping indicates that it's worth it.
6090 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
6092 * modules/strcasestr-tests: New file.
6093 * tests/test-strcasestr.c: New file.
6095 2007-02-11 Bruno Haible <bruno@clisp.org>
6097 Ensure O(n) worst-case complexity of c_strcasestr.
6098 * lib/c-strcasestr.c: Include stdbool.h, string.h.
6099 (knuth_morris_pratt): New function.
6100 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
6101 the bookkeeping indicates that it's worth it.
6102 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
6104 * modules/c-strcasestr-tests: New file.
6105 * tests/test-c-strcasestr.c: New file.
6107 2007-02-11 Bruno Haible <bruno@clisp.org>
6109 Ensure O(n) worst-case complexity of c_strstr.
6110 * lib/c-strstr.c: Include stdbool.h, string.h.
6111 (knuth_morris_pratt): New function.
6112 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
6113 bookkeeping indicates that it's worth it.
6114 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
6116 * lib/c-strstr.c: Complete rewrite for maintainability.
6118 * modules/c-strstr-tests: New file.
6119 * tests/test-c-strstr.c: New file.
6121 2007-02-11 Bruno Haible <bruno@clisp.org>
6123 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
6124 5.2.1 and earlier, whereby \055 was treated just like the range
6126 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
6128 2007-02-08 Bruno Haible <bruno@clisp.org>
6130 * modules/regex (Depends-on): Add stdbool.
6131 Reported by Dalibor Topic <robilad@kaffe.org>.
6133 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
6135 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
6136 Prefer returning from main to exiting from it.
6137 Remove unnecessary parens after sizeof.
6139 2007-02-05 Bruno Haible <bruno@clisp.org>
6142 * modules/mbssep: New file.
6143 * lib/mbssep.c: New file.
6144 * lib/string_.h (strsep): Add a conditional link warning.
6145 (mbssep): New declaration.
6146 * m4/mbssep.m4: New file.
6147 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6149 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
6150 * MODULES.html.sh (Internationalization functions): Add mbssep.
6152 2007-02-05 Bruno Haible <bruno@clisp.org>
6154 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
6155 Optimize search in case of 1 delimiter.
6157 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
6159 * lib/acl.h: Include sys/types.h before sys/acl.h.
6161 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
6163 Merge upstream fix for glibc bugzilla #3957:
6165 2007-02-05 Jakub Jelinek <jakub@redhat.com>
6167 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
6168 bit for RE_HAT_LISTS_NOT_NEWLINE.
6169 (build_charclass_op): Remove bogus comment.
6171 2007-02-05 Simon Josefsson <simon@josefsson.org>
6173 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
6175 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
6177 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
6178 * lib/memmem.c [!defined _LIBC]: Include config.h.
6180 2007-02-04 Bruno Haible <bruno@clisp.org>
6182 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
6185 2007-02-04 Bruno Haible <bruno@clisp.org>
6187 New module mbstok_r.
6188 * modules/mbstok_r: New file.
6189 * lib/mbstok_r.c: New file.
6190 * lib/string_.h (strtok_r): Change argument names to match the
6191 comments. Add a conditional link warning.
6192 (mbstok_r): New declaration.
6193 * m4/mbstok_r.m4: New file.
6194 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6196 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
6197 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
6199 2007-02-04 Bruno Haible <bruno@clisp.org>
6202 * modules/mbsspn: New file.
6203 * lib/mbsspn.c: New file.
6204 * lib/string_.h (strspn): Add a conditional link warning.
6205 (mbsspn): New declaration.
6206 * m4/mbsspn.m4: New file.
6207 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6209 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
6210 * MODULES.html.sh (Internationalization functions): Add mbsspn.
6212 2007-02-04 Bruno Haible <bruno@clisp.org>
6215 * modules/mbspbrk: New file.
6216 * lib/mbspbrk.c: New file.
6217 * lib/string_.h (strpbrk): Add a conditional link warning.
6218 (mbspbrk): New declaration.
6219 * m4/mbspbrk.m4: New file.
6220 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6222 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
6223 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
6225 2007-02-04 Bruno Haible <bruno@clisp.org>
6228 * modules/mbscspn: New file.
6229 * lib/mbscspn.c: New file.
6230 * lib/string_.h (strcspn): Add a conditional link warning.
6231 (mbscspn): New declaration.
6232 * m4/mbscspn.m4: New file.
6233 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6235 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
6236 * MODULES.html.sh (Internationalization functions): Add mbscspn.
6238 2007-02-04 Bruno Haible <bruno@clisp.org>
6240 New module mbscasestr, reduced goal of strcasestr.
6241 * modules/mbscasestr: New file.
6242 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
6243 (mbscasestr): Renamed from strcasestr.
6244 * lib/strcasestr.c: Don't include mbuiter.h.
6245 (strcasestr): Remove support for multibyte locales.
6246 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
6247 Change the conditional link warning.
6248 (mbscasestr): New declaration.
6249 * m4/mbscasestr.m4: New file.
6250 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
6251 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
6253 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
6254 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6255 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
6256 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
6257 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
6258 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
6259 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
6260 (Depends-on): Remove mbuiter.
6261 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
6263 2007-02-04 Bruno Haible <bruno@clisp.org>
6265 Simplify handling of strncasecmp.
6266 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
6267 the conditional link warning.
6268 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6269 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
6270 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
6271 * modules/strcase (configure.ac): Don't invoke
6272 gl_STRING_MODULE_INDICATOR.
6273 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
6275 2007-02-04 Bruno Haible <bruno@clisp.org>
6277 New module mbscasecmp, reduced goal of strcasecmp.
6278 * modules/mbscasecmp: New file.
6279 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
6280 (mbscasecmp): Renamed from strcasecmp.
6281 * lib/strcasecmp.c: Don't include mbuiter.h.
6282 (strcasecmp): Remove support for multibyte locales.
6283 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
6284 Change the conditional link warning.
6285 (mbscasecmp): New declaration.
6286 * m4/mbscasecmp.m4: New file.
6287 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
6288 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
6290 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
6291 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6293 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
6294 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
6295 * modules/strcase (Files): Remove m4/mbrtowc.m4.
6296 (Depends-on): Remove mbuiter.
6297 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
6299 2007-02-04 Bruno Haible <bruno@clisp.org>
6301 New module mbsstr. Remove module strstr.
6302 * modules/mbsstr: New file.
6303 * modules/strstr: Remove file.
6304 * lib/mbsstr.c: Renamed from lib/strstr.c.
6305 (mbsstr): Renamed from strstr.
6306 * lib/string_.h (strstr): Remove declaration. Change the conditional
6308 (mbsstr): New declaration.
6309 * m4/mbsstr.m4: New file.
6310 * m4/strstr.m4: Remove file.
6311 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
6313 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
6314 Don't initialize GNULIB_STRSTR.
6315 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
6316 substitute GNULIB_STRSTR and REPLACE_STRSTR.
6317 * MODULES.html.sh (Internationalization functions): Add mbsstr.
6318 (Support for systems lacking ANSI C 89): Remove strstr.
6320 2007-02-04 Bruno Haible <bruno@clisp.org>
6323 * modules/mbsrchr: New file.
6324 * lib/mbsrchr.c: New file.
6325 * lib/string_.h (strrchr): Add a conditional link warning.
6326 (mbsrchr): New declaration.
6327 * m4/mbsrchr.m4: New file.
6328 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6330 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
6331 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
6333 2007-02-04 Bruno Haible <bruno@clisp.org>
6336 * modules/mbschr: New file.
6337 * lib/mbschr.c: New file.
6338 * lib/string_.h (strchr): Add a conditional link warning.
6339 (mbschr): New declaration.
6340 * m4/mbschr.m4: New file.
6341 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6343 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
6344 * MODULES.html.sh (Internationalization functions): Add mbschr.
6346 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
6348 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
6350 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
6352 2007-02-04 Bruno Haible <bruno@clisp.org>
6354 New module description section 'configure.ac-early'.
6355 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
6356 (func_get_autoconf_early_snippet): New function.
6357 (func_import, func_create_testdir): Use it. Remove special cases for
6358 modules 'extensions' and 'lock'.
6359 * modules/extensions (configure.ac-early): Require
6360 gl_USE_SYSTEM_EXTENSIONS.
6361 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
6363 2007-02-04 Bruno Haible <bruno@clisp.org>
6365 Make use of gcj-4.3's -fsource and -ftarget option.
6366 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
6367 and if so try the options -fsource and -ftarget.
6368 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
6369 source_version, ftarget_option, target_version arguments.
6370 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
6371 (is_envjavac_oldgcj_14_14_usable): Renamed from
6372 is_envjavac_gcj_14_14_usable.
6373 (is_envjavac_oldgcj_14_13_usable): Renamed from
6374 is_envjavac_gcj_14_13_usable.
6375 (is_gcj_present): Update.
6376 (is_gcj_43, is_gcj43_usable): New functions.
6377 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
6378 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
6379 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
6380 try the options -fsource and -ftarget.
6382 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
6384 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
6385 checking code. Set N = ceil (1.5 * N) rather than to a slightly
6388 2007-02-03 Jim Meyering <jim@meyering.net>
6390 Give tools a better chance to allocate space for very large buffers.
6391 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
6393 Make pwd and readlink work also when run with an unreadable parent dir
6394 on systems with openat support.
6395 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
6396 provided getcwd function, even when we have openat support.
6397 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
6399 2007-02-02 Bruno Haible <bruno@clisp.org>
6401 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
6402 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
6403 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
6404 portability problems if one of these functions is only used on specific
6406 Reported by Paul Eggert.
6408 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
6410 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
6411 is causing more trouble than it's curing.
6412 * lib/regex_internal.h (__mempcpy): Remove.
6413 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
6414 (and make the code a tad smaller to boot).
6415 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
6417 2007-02-02 Jim Meyering <jim@meyering.net>
6419 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
6420 section, not in the Makefile.am: one.
6422 2007-02-02 Eric Blake <ebb9@byu.net>
6424 * lib/strchrnul.c: Always include config.h first.
6426 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
6427 gnulib strstr is not necessary here.
6429 2007-02-02 Simon Josefsson <simon@josefsson.org>
6431 * m4/socklen.m4: Fix typo.
6433 2007-02-02 Eric Blake <ebb9@byu.net>
6435 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
6436 * modules/netinet_in (Makefile.am): Likewise.
6438 2007-02-01 Bruno Haible <bruno@clisp.org>
6440 * lib/string_.h (GL_LINK_WARNING): New macro.
6441 (strcasecmp, strstr, strcasestr): If provided by the system,
6442 conditionally define as a macro that leads to a warning instead of to
6444 (strncasecmp): Conditionally define as a macro that leads to a warning.
6446 2007-02-01 Karl Berry <karl@gnu.org>
6448 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
6450 2007-02-01 Bruno Haible <bruno@clisp.org>
6452 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
6455 2007-02-01 Eric Blake <ebb9@byu.net>
6457 * modules/regex (Depends-on): Revert dependence on mempcpy.
6458 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
6459 module's definition of mempcpy.
6460 Reported by Paul Eggert.
6462 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
6464 * lib/string_.h: If the gnulib module XYZ is not present, undefine
6465 the symbol XYZ before redefining it. This fixes a problem with
6466 programs that don't use XYZ, when compiled on systems that define
6467 XYZ to something else.
6469 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
6471 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
6472 occurs when "mkdir -m foo" creates a setgid directory that is (1)
6473 writeable to group or other and (2) is intended to have a special
6474 mode bit that is set or cleared. In such a case, the directory
6475 should be neither group- nor other-writeable until the special
6476 mode bits are right.
6478 2007-01-31 Eric Blake <ebb9@byu.net>
6480 * modules/mountlist (Depends-on): Add strstr.
6482 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
6484 * modules/string (Makefile.am): Remove redundant replacement.
6485 * modules/regex (Depends-on): Add mempcpy.
6487 2007-01-31 Bruno Haible <bruno@clisp.org>
6489 New module description field 'Link'.
6490 * gnulib-tool (func_usage): Document --extract-link-directive.
6491 (sed_extract_prog): Recognize 'Link' directive.
6492 (func_get_link_directive): New function.
6493 (func_import): Show summary of link directives.
6494 Handle --extract-link-directive option.
6495 * modules/acl (Link): New section.
6496 * modules/clock-time (Link): New section.
6497 * modules/euidaccess (Link): New section.
6498 * modules/gettext (Link): New section.
6499 * modules/iconv (Link): New section.
6500 * modules/lock (Link): New section.
6501 * modules/nanosleep (Link): New section.
6502 * modules/readline (Link): New section.
6504 2007-01-27 Bruno Haible <bruno@clisp.org>
6506 Enforce the use of gnulib modules for unportable <string.h> functions.
6507 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
6508 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
6509 (gl_HEADER_STRING_H_BODY): Require it.
6510 * lib/string_.h: If the gnulib module XYZ is not present, redefine
6511 the symbol XYZ to one that gives a link error.
6512 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
6513 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
6514 * modules/mempcpy (configure.ac): Likewise.
6515 * modules/memrchr (configure.ac): Likewise.
6516 * modules/stpcpy (configure.ac): Likewise.
6517 * modules/stpncpy (configure.ac): Likewise.
6518 * modules/strcase (configure.ac): Likewise.
6519 * modules/strcasestr (configure.ac): Likewise.
6520 * modules/strchrnul (configure.ac): Likewise.
6521 * modules/strdup (configure.ac): Likewise.
6522 * modules/strndup (configure.ac): Likewise.
6523 * modules/strnlen (configure.ac): Likewise.
6524 * modules/strpbrk (configure.ac): Likewise.
6525 * modules/strsep (configure.ac): Likewise.
6526 * modules/strstr (configure.ac): Likewise.
6527 * modules/strtok_r (configure.ac): Likewise.
6529 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
6531 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
6533 2007-01-30 Jim Meyering <jim@meyering.net>
6535 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
6537 2007-01-29 Bruno Haible <bruno@clisp.org>
6539 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
6540 * lib/execute.c: Likewise.
6541 * lib/pipe.c: Likewise.
6542 * lib/printf-args.h: Likewise.
6543 * lib/printf-args.c: Likewise.
6544 * lib/printf-parse.c: Likewise.
6545 * lib/vasnprintf.c: Likewise.
6547 2007-01-29 Eric Blake <ebb9@byu.net>
6549 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
6552 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
6554 * lib/strptime.h (strptime): Use 'restrict' for args where
6555 POSIX requires this.
6556 * lib/strptime.c (strptime): Likewise.
6557 Change license notice from LGPL to GPL, since gnulib-tool will
6558 change this as needed.
6559 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
6561 Include "strptime.h" first, to check interface.
6562 Do not #undef _LIBC and _NL_CURRENT.
6563 Do not include <stdlib.h>; no longer needed.
6564 Include "time_r.h" and declare ptime_locale_status
6565 only if _LIBC is not defined.
6566 (__P): Remove unused macro.
6567 (match_string): Bring back glibc version, but use it only if _LIBC
6569 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
6570 Remove unnecessary assertion and abort() call.
6571 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
6572 * m4/strptime.m4: Fix serial number comment.
6573 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
6574 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
6575 (Depends-on): Add time_r.
6577 2007-01-29 Bruno Haible <bruno@clisp.org>
6579 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
6581 * modules/strptime (Depends-on): Add stdbool.
6582 * lib/strptime.h: Include <time.h> always. Add comments.
6584 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
6586 * modules/strptime: New file.
6587 * lib/strptime.h: New file.
6588 * lib/strptime.c: New file.
6589 * m4/strptime.m4: New file.
6591 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
6593 * MODULES.html.sh: New module mpsort.
6594 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
6596 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
6597 a circularity problem with HP-UX ia64 reported by Bob Proulx in
6598 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
6600 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
6602 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
6604 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
6605 the parameter matches the prototype.
6607 2007-01-28 Jim Meyering <jim@meyering.net>
6609 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
6610 sys/time.h here, reverting that part of the previous patch:
6611 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
6613 2007-01-28 Bruno Haible <bruno@clisp.org>
6615 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
6616 value of $(SYS_TIME_H).
6617 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
6618 remove it conditionally, too. [added by Jim Meyering]
6619 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
6620 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
6621 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
6622 GETTIMEOFDAY_REPLACEMENT to 1.
6624 2007-01-28 Bruno Haible <bruno@clisp.org>
6626 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
6627 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
6628 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
6629 Set UNISTD_H instead of UNISTD_H2.
6630 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
6632 2007-01-28 Bruno Haible <bruno@clisp.org>
6634 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
6635 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
6637 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6639 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
6640 (func_create_testdir): Ensure C locale for `grep' and `tr'
6642 (func_create_megatestdir): Avoid one `grep'. Fix bug in
6643 ACLOCAL_AMFLAGS parsing state machine.
6645 2007-01-27 Bruno Haible <bruno@clisp.org>
6647 * modules/unistr/base: Update.
6649 2007-01-27 Bruno Haible <bruno@clisp.org>
6651 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
6652 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
6653 * modules/unistr/u32-mbtouc-unsafe: Renamed from
6654 modules/unistr/u32-mbtouc.
6655 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
6656 * lib/unistr.h: Update.
6657 * lib/linebreak.c: Update.
6658 * modules/unistr/u32-mbtouc: Renamed from
6659 modules/unistr/u32-mbtouc-safe.
6660 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
6661 * lib/unistr.h: Update.
6662 * lib/unistr/u32-to-u8.c: Update.
6663 * lib/unistr/u32-to-u16.c: Update.
6665 2007-01-27 Bruno Haible <bruno@clisp.org>
6667 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
6668 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
6669 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
6670 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
6671 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
6672 * modules/unistr/u16-mbtouc-unsafe: Renamed from
6673 modules/unistr/u16-mbtouc.
6674 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
6675 * lib/unistr.h: Update.
6676 * lib/linebreak.c: Update.
6677 * modules/linebreak: Update.
6678 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
6679 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
6680 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
6681 * modules/unistr/u16-mbtouc: Renamed from
6682 modules/unistr/u16-mbtouc-safe.
6683 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
6684 * lib/unistr.h: Update.
6685 * lib/unistr/u16-to-u8.c: Update.
6686 * modules/unistr/u16-to-u8: Update.
6687 * lib/unistr/u16-to-u32.c: Update.
6688 * modules/unistr/u16-to-u32: Update.
6690 2007-01-27 Bruno Haible <bruno@clisp.org>
6692 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
6693 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
6694 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
6695 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
6696 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
6697 * modules/unistr/u8-mbtouc-unsafe: Renamed from
6698 modules/unistr/u8-mbtouc.
6699 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
6700 * lib/unistr.h: Update.
6701 * lib/striconveh.c: Update.
6702 * modules/striconveh: Update.
6703 * lib/linebreak.c: Update.
6704 * modules/linebreak: Update.
6705 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
6706 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
6707 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
6708 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
6709 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
6710 * lib/unistr.h: Update.
6711 * lib/striconveh.c: Update.
6712 * modules/striconveh: Update.
6713 * lib/unistr/u8-to-u16.c: Update.
6714 * modules/unistr/u8-to-u16: Update.
6715 * lib/unistr/u8-to-u32.c: Update.
6716 * modules/unistr/u8-to-u32: Update.
6718 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6721 * lib/argz.c: Do not include strings.h nor memory.h, include
6722 string.h unconditionally. Patch by Simon Josefsson.
6724 2007-01-27 Bruno Haible <bruno@clisp.org>
6726 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
6727 from gl_HEADER_STRING_H_BODY.
6728 (gl_HEADER_STRING_H_BODY): Require it.
6729 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
6730 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
6731 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
6732 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
6733 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
6734 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
6735 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
6736 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
6737 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
6738 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
6739 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
6740 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
6741 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
6742 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
6743 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
6745 2007-01-27 Bruno Haible <bruno@clisp.org>
6747 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
6748 check_PROGRAMS into noinst_PROGRAMS.
6749 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
6750 check_PROGRAMS in this case.
6751 (func_import): Set for_test to false.
6752 (func_create_testdir): Set for_test to true.
6754 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
6755 Bruno Haible <bruno@clisp.org>
6757 * modules/strcasestr (Files): Remove lib/strcasestr.h.
6758 (Depends-on): Add string.
6759 (Includes): Use <string.h> instead of strcasestr.h.
6760 * modules/string (Makefile.am): Also substitute the value of
6762 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
6763 assume strcasestr is declared in <string.h> not <strings.h>. Also
6764 set REPLACE_STRCASESTR.
6765 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
6767 * lib/strcasestr.h: Remove file.
6768 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
6769 * lib/string_.h (strcasestr): New declaration.
6771 2007-01-27 Bruno Haible <bruno@clisp.org>
6773 * lib/string_.h: Use 'extern'.
6775 2007-01-27 Jim Meyering <jim@meyering.net>
6777 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
6778 of set-but-not-used local, "q".
6780 * lib/mempcpy.c: Include <config.h> before <string.h>.
6781 This fixes a compilation error on HP-UX, due to the system's
6782 "restrict"-using mempcpy prototype.
6784 2007-01-26 Bruno Haible <bruno@clisp.org>
6787 * lib/javacomp.c: Include c-strstr.h.
6788 (is_envjavac_gcj): Use c_strstr instead of strstr.
6789 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
6791 2007-01-26 Bruno Haible <bruno@clisp.org>
6793 * MODULES.html.sh (Unicode string functions): Add the new modules.
6795 * modules/uniconv/u32-strconv-to-locale: New file.
6796 * lib/uniconv/u32-strconv-to-locale.c: New file.
6798 * modules/uniconv/u16-strconv-to-locale: New file.
6799 * lib/uniconv/u16-strconv-to-locale.c: New file.
6801 * modules/uniconv/u8-strconv-to-locale: New file.
6802 * lib/uniconv/u8-strconv-to-locale.c: New file.
6804 * modules/uniconv/u32-strconv-from-locale: New file.
6805 * lib/uniconv/u32-strconv-from-locale.c: New file.
6807 * modules/uniconv/u16-strconv-from-locale: New file.
6808 * lib/uniconv/u16-strconv-from-locale.c: New file.
6810 * modules/uniconv/u8-strconv-from-locale: New file.
6811 * lib/uniconv/u8-strconv-from-locale.c: New file.
6813 * modules/uniconv/u32-strconv-to-enc: New file.
6814 * lib/uniconv/u32-strconv-to-enc.c: New file.
6815 * modules/uniconv/u32-strconv-to-enc-tests: New file.
6816 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
6818 * modules/uniconv/u16-strconv-to-enc: New file.
6819 * lib/uniconv/u16-strconv-to-enc.c: New file.
6820 * lib/uniconv/u-strconv-to-enc.h: New file.
6821 * modules/uniconv/u16-strconv-to-enc-tests: New file.
6822 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
6824 * modules/uniconv/u8-strconv-to-enc: New file.
6825 * lib/uniconv/u8-strconv-to-enc.c: New file.
6826 * modules/uniconv/u8-strconv-to-enc-tests: New file.
6827 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
6829 * modules/uniconv/u32-strconv-from-enc: New file.
6830 * lib/uniconv/u32-strconv-from-enc.c: New file.
6831 * modules/uniconv/u32-strconv-from-enc-tests: New file.
6832 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
6834 * modules/uniconv/u16-strconv-from-enc: New file.
6835 * lib/uniconv/u16-strconv-from-enc.c: New file.
6836 * modules/uniconv/u16-strconv-from-enc-tests: New file.
6837 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
6839 * modules/uniconv/u8-strconv-from-enc: New file.
6840 * lib/uniconv/u8-strconv-from-enc.c: New file.
6841 * lib/uniconv/u-strconv-from-enc.h: New file.
6842 * modules/uniconv/u8-strconv-from-enc-tests: New file.
6843 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
6845 * modules/uniconv/u32-conv-from-enc: New file.
6846 * lib/uniconv/u32-conv-from-enc.c: New file.
6847 * modules/uniconv/u32-conv-from-enc-tests: New file.
6848 * tests/uniconv/test-u32-conv-from-enc.c: New file.
6850 * modules/uniconv/u16-conv-from-enc: New file.
6851 * lib/uniconv/u16-conv-from-enc.c: New file.
6852 * lib/uniconv/u-conv-from-enc.h: New file.
6853 * modules/uniconv/u16-conv-from-enc-tests: New file.
6854 * tests/uniconv/test-u16-conv-from-enc.c: New file.
6856 * modules/uniconv/u8-conv-from-enc: New file.
6857 * lib/uniconv/u8-conv-from-enc.c: New file.
6858 * modules/uniconv/u8-conv-from-enc-tests: New file.
6859 * tests/uniconv/test-u8-conv-from-enc.c: New file.
6861 * modules/uniconv/base: New file.
6862 * lib/uniconv.h: New file.
6864 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
6866 * doc/gnulib-tool.texi (Initial import): Update to match current
6867 behavior with strdup module.
6868 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
6869 * lib/memmem.h: Remove; all uses removed. This is now done
6871 * lib/mempcpy.h: Likewise.
6872 * lib/memrchr.h: Likewise.
6873 * lib/stpcpy.h: Likewise.
6874 * lib/stpncpy.h: Likewise.
6875 * lib/strcase.h: Likewise.
6876 * lib/strchrnul.h: Likewise.
6877 * lib/strdup.h: Likewise.
6878 * lib/strndup.h: Likewise.
6879 * lib/strnlen.h: Likewise.
6880 * lib/strpbrk.h: Likewise.
6881 * lib/strsep.h: Likewise.
6882 * lib/strstr.h: Likewise.
6883 * lib/strtok_r.h: Likewise.
6884 * lib/string_.h: New file.
6885 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
6886 Rely on <string.h> instead.
6887 * lib/canon-host.c: Likewise.
6888 * lib/chdir-long.c: Likewise.
6889 * lib/concatpath.c: Likewise.
6890 * lib/exclude.c: Likewise.
6891 * lib/fchdir.c: Likewise.
6892 * lib/getaddrinfo.c: Likewise.
6893 * lib/getcwd.c: Likewise.
6894 * lib/getsubopt.c: Likewise.
6895 * lib/glob.c: Likewise.
6896 * lib/hard-locale.c: Likewise.
6897 * lib/iconvme.c: Likewise.
6898 * lib/javacomp.c: Likewise.
6899 * lib/mempcpy.c: Likewise.
6900 * lib/memrchr.c: Likewise.
6901 * lib/regex_internal.h: Likewise.
6902 * lib/stpncpy.c: Likewise.
6903 * lib/strcasecmp.c: Likewise.
6904 * lib/strchrnul.c: Likewise.
6905 * lib/strdup.c: Likewise.
6906 * lib/striconv.c: Likewise.
6907 * lib/striconveh.c: Likewise.
6908 * lib/striconveha.c: Likewise.
6909 * lib/strncasecmp.c: Likewise.
6910 * lib/strndup.c: Likewise.
6911 * lib/strnlen.c: Likewise.
6912 * lib/strsep.c: Likewise.
6913 * lib/strstr.c: Likewise.
6914 * lib/strtok_r.c: Likewise.
6915 * lib/userspec.c: Likewise.
6916 * lib/w32spawn.h: Likewise.
6917 * lib/xstrndup.c: Likewise.
6918 * lib/mountlist.c (strstr): Remove decl.
6919 * m4/string_h.m4: New file.
6920 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
6921 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
6922 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
6923 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
6924 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
6925 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
6926 Set REPLACE_STRCASECMP if necessary.
6927 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
6928 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
6929 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
6930 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
6931 HAVE_DECL_STRDUP if necessary.
6932 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
6933 since gl_FUNC_STRNDUP does that now.
6934 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
6935 Check for decl here...
6936 (gl_PREREQ_STRNLEN): ... not here.
6937 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
6938 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
6939 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
6940 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
6942 * modules/string: New file.
6943 * modules/memmem (Files): Remove special-purpose include file.
6944 (Depends-on): Add string.
6945 (Include): Include <string.h>, not the removed file.
6946 * modules/mempcpy: Likewise.
6947 * modules/memrchr: Likewise.
6948 * modules/stpcpy: Likewise.
6949 * modules/stpncpy: Likewise.
6950 * modules/strcase: Likewise.
6951 * modules/strchrnul: Likewise.
6952 * modules/strdup: Likewise.
6953 * modules/strndup: Likewise.
6954 * modules/strnlen: Likewise.
6955 * modules/strpbrk: Likewise.
6956 * modules/strsep: Likewise.
6957 * modules/strstr: Likewise.
6958 * modules/strtok_r: Likewise.
6959 * tests/test-dirname.c: Don't include "strdup.h", since
6960 <string.h> now suffices.
6961 * tests/test-memmem.c: Don't include "memmem.h", since
6962 <string.h> now suffices.
6964 2007-01-25 Bruno Haible <bruno@clisp.org>
6966 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
6969 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
6970 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
6971 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
6972 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
6974 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
6975 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
6976 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
6977 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
6978 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
6979 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
6981 2007-01-24 Bruno Haible <bruno@clisp.org>
6983 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
6984 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
6985 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
6986 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
6988 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
6989 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
6990 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
6991 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
6992 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
6993 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
6995 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
6997 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
6998 Reported by Ralf Wildenhues.
7000 2007-01-24 Bruno Haible <bruno@clisp.org>
7002 Drop AC_REQUIRE calls that are redundant with the module dependencies.
7003 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
7005 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
7006 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
7007 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
7009 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
7011 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
7012 Don't use 'exit'; just return from 'main'.
7013 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
7015 * lib/fnmatch_.h: Readjust white space and comments to match
7016 glibc, to avoid spurious diffs.
7018 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
7020 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
7021 2004-12-01 change by Jakub Jelinek, since this code won't compile
7022 if !LIBC. Problem reported by Bob Proulx.
7024 2007-01-23 Bruno Haible <bruno@clisp.org>
7026 * lib/striconveh.c: Include c-strcaseeq.h.
7027 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
7028 * modules/striconveh (Depends-on): Add c-strcaseeq.
7030 2007-01-23 Bruno Haible <bruno@clisp.org>
7032 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
7034 * modules/c-strcaseeq: New file.
7035 * lib/c-strcaseeq.h: New file.
7037 * modules/streq: New file.
7038 * lib/streq.h: New file.
7040 2007-01-23 Bruno Haible <bruno@clisp.org>
7042 * modules/striconveha-tests: New file.
7043 * tests/test-striconveha.c: New file.
7045 * lib/striconveha.h: Include <stdbool.h>.
7046 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
7047 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
7048 (mem_iconveha_notranslit): Renamed from mem_iconveha.
7049 (mem_iconveha): New function.
7050 (str_iconveha_notranslit): Renamed from str_iconveha.
7051 (str_iconveha): New function.
7052 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
7055 2007-01-23 Bruno Haible <bruno@clisp.org>
7057 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
7058 encodings without forgiving before trying any encoding with handler.
7059 (str_iconveha): Try all encodings without forgiving before trying any
7060 encoding with handler.
7062 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
7064 Import the following changes from libc.
7066 2005-10-14 Ulrich Drepper <drepper@redhat.com>
7068 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
7070 2004-12-01 Jakub Jelinek <jakub@redhat.com>
7072 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
7073 normal_bracket label.
7075 2004-09-01 Jakub Jelinek <jakub@redhat.com>
7078 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
7079 to normal_bracket after fetching the next character.
7081 2007-01-22 Bruno Haible <bruno@clisp.org>
7083 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
7085 * lib/striconveh.c (iconv_carefully_1): New function.
7086 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
7088 (str_cd_iconveh): Update.
7089 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
7090 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
7091 * tests/test-striconveh.c (MAGIC): New macro.
7092 (new_offsets): New function.
7093 (main): Test call with and without offsets.
7095 2007-01-22 Bruno Haible <bruno@clisp.org>
7097 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
7098 * modules/sys_select (Makefile.am): Likewise.
7099 * modules/sys_socket (Makefile.am): Likewise.
7100 * modules/sys_time (Makefile.am): Likewise.
7102 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
7104 * modules/gettimeofday (License): Change from GPL to LGPL, since
7105 gettimeofday is a library function.
7107 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
7109 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
7111 2007-01-21 Bruno Haible <bruno@clisp.org>
7113 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
7115 2007-01-21 Bruno Haible <bruno@clisp.org>
7117 * modules/striconveha: New file.
7118 * lib/striconveha.h: New file.
7119 * lib/striconveha.c: New file.
7120 * MODULES.html.sh (Internationalization functions): Add striconveha.
7121 * lib/striconv.c (str_iconv): Optimize the case of an empty input
7123 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
7125 2007-01-21 Bruno Haible <bruno@clisp.org>
7127 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
7128 * lib/striconveh.c (str_iconveh): Likewise.
7130 2007-01-21 Bruno Haible <bruno@clisp.org>
7132 * lib/striconveh.h (mem_iconveh): New declaration.
7133 * lib/striconveh.c (mem_iconveh): New function.
7134 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
7136 2007-01-21 Bruno Haible <bruno@clisp.org>
7138 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
7140 * lib/striconveh.h (mem_cd_iconveh): Change specification.
7141 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
7142 original result buffer.
7143 (str_cd_iconveh): Update.
7144 * tests/test-striconveh.c (main): Update.
7146 * lib/striconv.h (mem_cd_iconv): Change specification.
7147 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
7149 (str_cd_iconv): Update.
7150 * tests/test-striconv.c (main): Update.
7152 2007-01-21 Bruno Haible <bruno@clisp.org>
7154 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
7156 2007-01-20 Jim Meyering <jim@meyering.net>
7158 * lib/userspec.c (parse_with_separator): If a user or group string
7159 starts with "+", skip the corresponding name-to-ID look-up, since
7160 such a look-up must fail: user and group names may not include "+".
7162 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
7164 * lib/poll.c: Include sys/time.h and time.h unconditionally,
7165 since we now assume the sys_time module.
7166 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
7167 check for sys/time.h; no longer needed.
7168 * modules/poll (Depends-on): Depend on sys_time.
7170 2007-01-18 Bruno Haible <bruno@clisp.org>
7172 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
7173 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
7175 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
7178 * tests/test-gettimeofday.c: Include <time.h>.
7179 (dummy): Remove variable.
7181 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
7182 gl_HEADER_SYS_TIME_H.
7183 (gl_HEADER_SYS_TIME_H): New macro.
7185 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
7186 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
7187 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
7188 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
7189 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
7190 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
7191 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
7192 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
7193 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
7194 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
7195 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
7197 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
7198 last change; it caused a compilation error when cross-compiling to
7201 2007-01-18 Jim Meyering <jim@meyering.net>
7203 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
7204 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
7205 than the race-prone "test -d sys || mkdir sys".
7206 (configure.ac): Use AC_PROG_MKDIR_P.
7207 * modules/sys_select: Likewise.
7208 * modules/sys_socket: Likewise.
7209 * modules/sys_time: Likewise.
7211 2007-01-18 Eric Blake <ebb9@byu.net>
7213 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
7214 replace gettimeofday.
7215 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
7216 name, to avoid infinite recursion.
7218 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
7220 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
7222 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
7223 assume timespec.h defines struct timeval.
7224 * lib/settime.c: Likewise.
7225 * lib/utimens.c: Likewise.
7226 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
7227 since we now assume the gettimeofday module.
7228 * lib/tempname.c (__gen_tempname): Likewise.
7229 * lib/gettimeofday.h: Remove.
7230 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
7231 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
7232 Include <time.h>, for 'time()'.
7233 (localtime_buffer_addr): Also use this workaround if
7234 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
7235 to simplify the uses. All uses changed.
7236 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
7237 that #undef is inside {}, and 'const' follows type name consistently.
7238 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
7239 (gettimeofday): Do not use the maximum possible value for
7240 tv->tv_usec, since that might break usages other than ls.c.
7241 Instead, we'll leave ls.c alone. This undoes today's patch
7242 by Bruno. Add a compile-time warning for 1s-clock resolution;
7243 we've never observed the problem but might as well keep the
7245 * lib/nanosleep.c: Include timespec.h first, for interface check.
7246 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
7247 now assume the sys_time module.
7248 * lib/tempname.c: Likewise.
7249 * lib/timespec.h: Likewise.
7250 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
7252 * lib/strftime.c: Likewise.
7253 * lib/timespec.h: Likewise.
7254 * lib/posixtm.c: Include posixtm.h first, for interface check.
7255 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
7256 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
7257 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
7258 * lib/sys_time_.h: New file.
7259 * lib/timespec.h (struct timespec): Use long int, not long.
7260 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
7261 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
7262 Remove obsolescent call to AC_HEADER_TIME.
7263 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
7264 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7265 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
7266 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
7268 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
7269 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
7270 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
7271 into the sys_time module. Check for gettimeofday just once.
7272 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
7273 for gettimeofday signature to just check the signature. Merely
7274 compile it, since linking doesn't test signature. Improve test for
7275 whether gettimeofday.o is actually needed.
7276 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
7277 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
7278 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
7279 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
7280 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
7281 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
7282 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
7283 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
7284 than worrying about sys/time.h.
7285 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
7286 Don't bother worrying about TIME_WITH_SYS_TIME.
7287 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
7288 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
7289 * m4/sys_time_h.m4: New file.
7290 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
7291 Don't include sys/time.h. Return from main rather than exiting.
7292 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
7294 * modules/gethrxtime (Depends-on): Add sys_time.
7295 * modules/gettime (Depends-on): Likewise.
7296 * modules/gettimeofday (Depends-on): Likewise.
7297 * modules/nanosleep (Depends-on): Likewise.
7298 * modules/settime (Depends-on): Likewise.
7299 * modules/tempname (Depends-on): Likewise.
7300 * modules/utimens (Depends-on): Likewise.
7301 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
7302 (Include:) Change back to <sys/time.h>.
7303 (Maintainer:) Add self.
7304 * modules/sys_time: New file.
7305 * modules/tempname (Depends-on): Add gettimeofday.
7306 * tests/test-gettimeofday.c: Include <sys/time.h>
7307 rather than gettimeofday.h.
7309 2007-01-17 Bruno Haible <bruno@clisp.org>
7311 * gnulib-tool (func_get_license): Revert last patch. Instead, let
7312 the license default to GPL.
7313 (func_create_testdir): Don't complain if a module is LGPL and its
7314 tests module depends on GPLed modules.
7316 2007-01-17 Bruno Haible <bruno@clisp.org>
7318 * lib/gettimeofday.c (gettimeofday): Add code for the case
7319 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
7320 maximum possible value for tv->tv_usec, rather than the minimum one.
7322 2005-10-08 Martin Lambers <marlam@marlam.de>
7323 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
7324 2007-01-16 Bruno Haible <bruno@clisp.org>
7326 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
7327 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
7328 gl_FUNC_GETTIMEOFDAY.
7329 (Include): Add gettimeofday.h.
7330 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
7331 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
7332 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
7333 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
7334 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
7335 * lib/gettimeofday.h: New file.
7336 * lib/gettimeofday.c: Include <sys/timeb.h>.
7337 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
7338 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
7339 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
7340 fall back on time().
7342 * tests/test-gettimeofday.c: New file.
7343 * modules/gettimeofday-tests: New file.
7345 2007-01-16 Eric Blake <ebb9@byu.net>
7347 * modules/fnmatch (Depends-on): Depend on wchar.
7348 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
7349 * m4/fnmatch.m4: Likewise.
7350 * modules/mbchar (Makefile.am): Assume <wchar.h>.
7351 * m4/mbchar.m4: Likewise.
7352 * modules/mbswidth (Depends-on): Depend on wchar.
7353 * lib/mbswidth.c: Assume <wchar.h>.
7354 * m4/mbswidth.m4: Likewise.
7355 * modules/quotearg (Depends-on): Depend on wchar.
7356 * lib/quotearg.c: Assume <wchar.h>.
7357 * m4/quotearg.m4: Likewise.
7358 * modules/regex (Depends-on): Depend on wchar.
7359 * lib/regex_internal.h: Assume <wchar.h>.
7360 * m4/regex.m4: Likewise.
7361 * modules/stdint (Depends-on): Depend on wchar.
7362 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
7363 * m4/stdint.m4: Likewise.
7364 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
7365 * modules/strftime (Depends-on): Depend on wchar.
7366 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
7367 * modules/strtol (Depends-on): Depend on wchar.
7368 * lib/strtol.c: Assume <wchar.h>.
7369 * modules/wcwidth (Depends-on): Depend on wchar.
7370 * lib/wcwidth.h: Assume <wchar.h>.
7371 * m4/wcwidth.m4: Likewise.
7373 2007-01-16 Bruno Haible <bruno@clisp.org>
7375 * modules/csharpexec-script: New, created from...
7376 * modules/csharpexec: ... this.
7378 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
7380 * modules/javaexec-script: New, created from...
7381 * modules/javaexec: ... this.
7383 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
7385 * modules/poll (Dependencies): Add sys_select.
7387 2007-01-15 Jim Meyering <jim@meyering.net>
7389 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
7390 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
7391 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
7392 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
7394 2007-01-15 Bruno Haible <bruno@clisp.org>
7396 * modules/striconveh: New file.
7397 * lib/striconveh.h: New file.
7398 * lib/striconveh.c: New file.
7399 * MODULES.html.sh (Internationalization functions): Add striconveh.
7401 * modules/striconveh-tests: New file.
7402 * tests/test-striconveh.c: New file.
7404 2007-01-15 Bruno Haible <bruno@clisp.org>
7406 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
7407 not from GNU libiconv or GNU libc.
7409 2007-01-15 Bruno Haible <bruno@clisp.org>
7411 * doc/gnulib-intro.texi (Copyright): Explain the different license
7412 terms for module descriptions, autoconf macros, tests, documentation.
7414 2007-01-14 Bruno Haible <bruno@clisp.org>
7416 * modules/striconv-tests: New file.
7417 * tests/test-striconv.c: New file.
7419 2007-01-14 Bruno Haible <bruno@clisp.org>
7421 * modules/iconv-tests: New file.
7422 * tests/test-iconv.c: New file.
7424 2007-01-14 Bruno Haible <bruno@clisp.org>
7426 * gnulib-tool (func_get_license): For test modules, use the license of
7429 2007-01-14 Bruno Haible <bruno@clisp.org>
7431 * modules/iconv (Include): Clarify that <iconv.h> can only be included
7432 if iconv is found to exist.
7434 2007-01-14 Bruno Haible <bruno@clisp.org>
7436 * modules/c-ctype-tests: New file.
7437 * tests/test-c-ctype.c: New file.
7439 2007-01-14 Bruno Haible <bruno@clisp.org>
7441 * modules/binary-io-tests: New file.
7442 * tests/test-binary-io.sh: New file.
7443 * tests/test-binary-io.c: New file.
7445 2007-01-14 Bruno Haible <bruno@clisp.org>
7447 * modules/array-oset-tests: New file.
7448 * tests/test-array_oset.c: New file.
7450 2007-01-14 Bruno Haible <bruno@clisp.org>
7452 * modules/array-list-tests: New file.
7453 * tests/test-array_list.c: New file.
7455 2007-01-14 Bruno Haible <bruno@clisp.org>
7457 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
7459 Reported by Simon Josefsson in
7460 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
7462 2007-01-14 Bruno Haible <bruno@clisp.org>
7464 * modules/allocsa-tests: New file.
7465 * tests/test-allocsa.c: New file.
7467 2007-01-14 Bruno Haible <bruno@clisp.org>
7469 * modules/fchdir (Depends-on): Add absolute-header.
7470 * modules/unistd (Depends-on): Likewise.
7472 2006-12-30 Bruno Haible <bruno@clisp.org>
7474 * modules/fchdir: New file.
7475 * modules/unistd (Files): Add lib/unistd_.h.
7476 (Makefile.am): Generate unistd.h from unistd_.h.
7477 * lib/fchdir.c: New file.
7478 * lib/dirent_.h: New file.
7479 * lib/unistd_.h: New file.
7480 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
7481 * m4/fchdir.m4: New file.
7482 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
7483 (gl_HEADER_UNISTD): Invoke it.
7484 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
7486 * lib/backupfile.c (opendir, closedir): Undefine.
7487 * lib/chown.c (open, close): Undefine.
7488 * lib/clean-temp.c (open, close): Undefine.
7489 * lib/copy-file.c (open, close): Undefine.
7490 * lib/execute.c (open, close): Undefine.
7491 * lib/fsusage.c (open, close): Undefine.
7492 * lib/gc-gnulib.c (open, close): Undefine.
7493 * lib/getcwd.c (opendir, closedir): Undefine.
7494 * lib/glob.c (opendir, closedir): Undefine.
7495 * lib/javacomp.c (open, close): Undefine.
7496 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
7497 * lib/openat-proc.c (open, close): Undefine.
7498 * lib/pagealign_alloc.c (open, close): Undefine.
7499 * lib/pipe.c (open, close): Undefine.
7500 * lib/progreloc.c (open, close): Undefine.
7501 * lib/savedir.c (opendir, closedir): Undefine.
7502 * lib/utime.c (open, close): Undefine.
7503 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
7505 2007-01-10 Bruno Haible <bruno@clisp.org>
7507 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
7509 2007-01-12 Eric Blake <ebb9@byu.net>
7511 Provide a robust <wchar.h>. Further simplifications are now
7512 possible in other modules, but not included here.
7513 * modules/wchar: New module.
7514 * m4/wchar.m4: New file.
7515 * lib/wchar_.h: Likewise.
7516 * modules/mbchar (Depends-on): Depend on wchar, as the first use
7518 * MODULES.html.sh (Extended multibyte and wide character utilities):
7521 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
7523 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
7524 to a reasonable default for memory allocation.
7525 (xreadlink): Don't allocate a huge buffer, to work around a buggy
7526 file system that reports garbage st_size values for symlinks.
7527 Problem reported by Liyang Hu.
7529 2007-01-11 Simon Josefsson <simon@josefsson.org>
7531 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
7532 Emacs .#* auto-save files).
7534 2007-01-11 Bruno Haible <bruno@clisp.org>
7536 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
7539 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
7541 Use @...@ consistently in lib/wctype_.h.
7542 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
7543 on it being set to 1 or 0.
7544 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
7545 go back to AC_SUBSTing it.
7546 * modules/wctype (Makefile.am): Undo previous change.
7548 2007-01-10 Eric Blake <ebb9@byu.net>
7550 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
7551 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
7552 * modules/wctype (Makefile.am): Likewise.
7553 Reported by Chris McGuire.
7555 2007-01-10 Jim Meyering <jim@meyering.net>
7557 fts.c: a small readability/maintainability improvement
7558 * lib/fts.c (fts_read): Make this code slightly more readable and
7559 maintainable by hoisting the "sp->fts_cur = p" assignments to
7560 immediately follow the statements that set P. Derived from
7561 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
7563 2007-01-10 Eric Blake <ebb9@byu.net>
7565 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
7566 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
7567 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
7568 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
7569 Reported by Chris McGuire.
7571 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7573 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
7576 2007-01-09 Bruno Haible <bruno@clisp.org>
7578 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
7579 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
7581 (func_module): Use them.
7583 2007-01-09 Bruno Haible <bruno@clisp.org>
7585 * modules/unistr/base: New file.
7586 * lib/unistr.h: New file.
7588 * modules/unistr/u8-to-u16: New file.
7589 * lib/unistr/u8-to-u16.c: New file.
7591 * modules/unistr/u8-to-u32: New file.
7592 * lib/unistr/u8-to-u32.c: New file.
7594 * modules/unistr/u16-to-u8: New file.
7595 * lib/unistr/u16-to-u8.c: New file.
7597 * modules/unistr/u16-to-u32: New file.
7598 * lib/unistr/u16-to-u32.c: New file.
7600 * modules/unistr/u32-to-u8: New file.
7601 * lib/unistr/u32-to-u8.c: New file.
7603 * modules/unistr/u32-to-u16: New file.
7604 * lib/unistr/u32-to-u16.c: New file.
7606 * modules/unistr/u8-check: New file.
7607 * modules/unistr/u16-check: New file.
7608 * modules/unistr/u32-check: New file.
7609 * lib/unistr/u8-check.c: New file.
7610 * lib/unistr/u16-check.c: New file.
7611 * lib/unistr/u32-check.c: New file.
7613 * modules/unistr/u8-chr: New file.
7614 * modules/unistr/u16-chr: New file.
7615 * modules/unistr/u32-chr: New file.
7616 * lib/unistr/u8-chr.c: New file.
7617 * lib/unistr/u16-chr.c: New file.
7618 * lib/unistr/u32-chr.c: New file.
7620 * modules/unistr/u8-cmp: New file.
7621 * modules/unistr/u16-cmp: New file.
7622 * modules/unistr/u32-cmp: New file.
7623 * lib/unistr/u8-cmp.c: New file.
7624 * lib/unistr/u16-cmp.c: New file.
7625 * lib/unistr/u32-cmp.c: New file.
7627 * modules/unistr/u8-cpy: New file.
7628 * modules/unistr/u16-cpy: New file.
7629 * modules/unistr/u32-cpy: New file.
7630 * lib/unistr/u8-cpy.c: New file.
7631 * lib/unistr/u16-cpy.c: New file.
7632 * lib/unistr/u32-cpy.c: New file.
7633 * lib/unistr/u-cpy.h: New file.
7635 * modules/unistr/u8-cpy-alloc: New file.
7636 * modules/unistr/u16-cpy-alloc: New file.
7637 * modules/unistr/u32-cpy-alloc: New file.
7638 * lib/unistr/u8-cpy-alloc.c: New file.
7639 * lib/unistr/u16-cpy-alloc.c: New file.
7640 * lib/unistr/u32-cpy-alloc.c: New file.
7641 * lib/unistr/u-cpy-alloc.h: New file.
7643 * modules/unistr/u8-endswith: New file.
7644 * modules/unistr/u16-endswith: New file.
7645 * modules/unistr/u32-endswith: New file.
7646 * lib/unistr/u8-endswith.c: New file.
7647 * lib/unistr/u16-endswith.c: New file.
7648 * lib/unistr/u32-endswith.c: New file.
7649 * lib/unistr/u-endswith.h: New file.
7651 * modules/unistr/u8-mblen: New file.
7652 * modules/unistr/u16-mblen: New file.
7653 * modules/unistr/u32-mblen: New file.
7654 * lib/unistr/u8-mblen.c: New file.
7655 * lib/unistr/u16-mblen.c: New file.
7656 * lib/unistr/u32-mblen.c: New file.
7658 * modules/unistr/u8-mbtouc: New file.
7659 * modules/unistr/u16-mbtouc: New file.
7660 * modules/unistr/u32-mbtouc: New file.
7661 * lib/unistr/u8-mbtouc.c: New file.
7662 * lib/unistr/u16-mbtouc.c: New file.
7663 * lib/unistr/u32-mbtouc.c: New file.
7665 * modules/unistr/u8-mbtouc-safe: New file.
7666 * modules/unistr/u16-mbtouc-safe: New file.
7667 * modules/unistr/u32-mbtouc-safe: New file.
7668 * lib/unistr/u8-mbtouc-safe.c: New file.
7669 * lib/unistr/u16-mbtouc-safe.c: New file.
7670 * lib/unistr/u32-mbtouc-safe.c: New file.
7672 * modules/unistr/u8-move: New file.
7673 * modules/unistr/u16-move: New file.
7674 * modules/unistr/u32-move: New file.
7675 * lib/unistr/u8-move.c: New file.
7676 * lib/unistr/u16-move.c: New file.
7677 * lib/unistr/u32-move.c: New file.
7678 * lib/unistr/u-move.h: New file.
7680 * modules/unistr/u8-next: New file.
7681 * modules/unistr/u16-next: New file.
7682 * modules/unistr/u32-next: New file.
7683 * lib/unistr/u8-next.c: New file.
7684 * lib/unistr/u16-next.c: New file.
7685 * lib/unistr/u32-next.c: New file.
7687 * modules/unistr/u8-prev: New file.
7688 * modules/unistr/u16-prev: New file.
7689 * modules/unistr/u32-prev: New file.
7690 * lib/unistr/u8-prev.c: New file.
7691 * lib/unistr/u16-prev.c: New file.
7692 * lib/unistr/u32-prev.c: New file.
7694 * modules/unistr/u8-set: New file.
7695 * modules/unistr/u16-set: New file.
7696 * modules/unistr/u32-set: New file.
7697 * lib/unistr/u8-set.c: New file.
7698 * lib/unistr/u16-set.c: New file.
7699 * lib/unistr/u32-set.c: New file.
7700 * lib/unistr/u-set.h: New file.
7702 * modules/unistr/u8-startswith: New file.
7703 * modules/unistr/u16-startswith: New file.
7704 * modules/unistr/u32-startswith: New file.
7705 * lib/unistr/u8-startswith.c: New file.
7706 * lib/unistr/u16-startswith.c: New file.
7707 * lib/unistr/u32-startswith.c: New file.
7708 * lib/unistr/u-startswith.h: New file.
7710 * modules/unistr/u8-stpcpy: New file.
7711 * modules/unistr/u16-stpcpy: New file.
7712 * modules/unistr/u32-stpcpy: New file.
7713 * lib/unistr/u8-stpcpy.c: New file.
7714 * lib/unistr/u16-stpcpy.c: New file.
7715 * lib/unistr/u32-stpcpy.c: New file.
7716 * lib/unistr/u-stpcpy.h: New file.
7718 * modules/unistr/u8-stpncpy: New file.
7719 * modules/unistr/u16-stpncpy: New file.
7720 * modules/unistr/u32-stpncpy: New file.
7721 * lib/unistr/u8-stpncpy.c: New file.
7722 * lib/unistr/u16-stpncpy.c: New file.
7723 * lib/unistr/u32-stpncpy.c: New file.
7724 * lib/unistr/u-stpncpy.h: New file.
7726 * modules/unistr/u8-strcat: New file.
7727 * modules/unistr/u16-strcat: New file.
7728 * modules/unistr/u32-strcat: New file.
7729 * lib/unistr/u8-strcat.c: New file.
7730 * lib/unistr/u16-strcat.c: New file.
7731 * lib/unistr/u32-strcat.c: New file.
7732 * lib/unistr/u-strcat.h: New file.
7734 * modules/unistr/u8-strchr: New file.
7735 * modules/unistr/u16-strchr: New file.
7736 * modules/unistr/u32-strchr: New file.
7737 * lib/unistr/u8-strchr.c: New file.
7738 * lib/unistr/u16-strchr.c: New file.
7739 * lib/unistr/u32-strchr.c: New file.
7741 * modules/unistr/u8-strcmp: New file.
7742 * modules/unistr/u16-strcmp: New file.
7743 * modules/unistr/u32-strcmp: New file.
7744 * lib/unistr/u8-strcmp.c: New file.
7745 * lib/unistr/u16-strcmp.c: New file.
7746 * lib/unistr/u32-strcmp.c: New file.
7748 * modules/unistr/u8-strcpy: New file.
7749 * modules/unistr/u16-strcpy: New file.
7750 * modules/unistr/u32-strcpy: New file.
7751 * lib/unistr/u8-strcpy.c: New file.
7752 * lib/unistr/u16-strcpy.c: New file.
7753 * lib/unistr/u32-strcpy.c: New file.
7754 * lib/unistr/u-strcpy.h: New file.
7756 * modules/unistr/u8-strcspn: New file.
7757 * modules/unistr/u16-strcspn: New file.
7758 * modules/unistr/u32-strcspn: New file.
7759 * lib/unistr/u8-strcspn.c: New file.
7760 * lib/unistr/u16-strcspn.c: New file.
7761 * lib/unistr/u32-strcspn.c: New file.
7762 * lib/unistr/u-strcspn.h: New file.
7764 * modules/unistr/u8-strdup: New file.
7765 * modules/unistr/u16-strdup: New file.
7766 * modules/unistr/u32-strdup: New file.
7767 * lib/unistr/u8-strdup.c: New file.
7768 * lib/unistr/u16-strdup.c: New file.
7769 * lib/unistr/u32-strdup.c: New file.
7770 * lib/unistr/u-strdup.h: New file.
7772 * modules/unistr/u8-strlen: New file.
7773 * modules/unistr/u16-strlen: New file.
7774 * modules/unistr/u32-strlen: New file.
7775 * lib/unistr/u8-strlen.c: New file.
7776 * lib/unistr/u16-strlen.c: New file.
7777 * lib/unistr/u32-strlen.c: New file.
7778 * lib/unistr/u-strlen.h: New file.
7780 * modules/unistr/u8-strmblen: New file.
7781 * modules/unistr/u16-strmblen: New file.
7782 * modules/unistr/u32-strmblen: New file.
7783 * lib/unistr/u8-strmblen.c: New file.
7784 * lib/unistr/u16-strmblen.c: New file.
7785 * lib/unistr/u32-strmblen.c: New file.
7787 * modules/unistr/u8-strmbtouc: New file.
7788 * modules/unistr/u16-strmbtouc: New file.
7789 * modules/unistr/u32-strmbtouc: New file.
7790 * lib/unistr/u8-strmbtouc.c: New file.
7791 * lib/unistr/u16-strmbtouc.c: New file.
7792 * lib/unistr/u32-strmbtouc.c: New file.
7794 * modules/unistr/u8-strncat: New file.
7795 * modules/unistr/u16-strncat: New file.
7796 * modules/unistr/u32-strncat: New file.
7797 * lib/unistr/u8-strncat.c: New file.
7798 * lib/unistr/u16-strncat.c: New file.
7799 * lib/unistr/u32-strncat.c: New file.
7800 * lib/unistr/u-strncat.h: New file.
7802 * modules/unistr/u8-strncmp: New file.
7803 * modules/unistr/u16-strncmp: New file.
7804 * modules/unistr/u32-strncmp: New file.
7805 * lib/unistr/u8-strncmp.c: New file.
7806 * lib/unistr/u16-strncmp.c: New file.
7807 * lib/unistr/u32-strncmp.c: New file.
7809 * modules/unistr/u8-strncpy: New file.
7810 * modules/unistr/u16-strncpy: New file.
7811 * modules/unistr/u32-strncpy: New file.
7812 * lib/unistr/u8-strncpy.c: New file.
7813 * lib/unistr/u16-strncpy.c: New file.
7814 * lib/unistr/u32-strncpy.c: New file.
7815 * lib/unistr/u-strncpy.h: New file.
7817 * modules/unistr/u8-strnlen: New file.
7818 * modules/unistr/u16-strnlen: New file.
7819 * modules/unistr/u32-strnlen: New file.
7820 * lib/unistr/u8-strnlen.c: New file.
7821 * lib/unistr/u16-strnlen.c: New file.
7822 * lib/unistr/u32-strnlen.c: New file.
7823 * lib/unistr/u-strnlen.h: New file.
7825 * modules/unistr/u8-strpbrk: New file.
7826 * modules/unistr/u16-strpbrk: New file.
7827 * modules/unistr/u32-strpbrk: New file.
7828 * lib/unistr/u8-strpbrk.c: New file.
7829 * lib/unistr/u16-strpbrk.c: New file.
7830 * lib/unistr/u32-strpbrk.c: New file.
7831 * lib/unistr/u-strpbrk.h: New file.
7833 * modules/unistr/u8-strrchr: New file.
7834 * modules/unistr/u16-strrchr: New file.
7835 * modules/unistr/u32-strrchr: New file.
7836 * lib/unistr/u8-strrchr.c: New file.
7837 * lib/unistr/u16-strrchr.c: New file.
7838 * lib/unistr/u32-strrchr.c: New file.
7840 * modules/unistr/u8-strspn: New file.
7841 * modules/unistr/u16-strspn: New file.
7842 * modules/unistr/u32-strspn: New file.
7843 * lib/unistr/u8-strspn.c: New file.
7844 * lib/unistr/u16-strspn.c: New file.
7845 * lib/unistr/u32-strspn.c: New file.
7846 * lib/unistr/u-strspn.h: New file.
7848 * modules/unistr/u8-strstr: New file.
7849 * modules/unistr/u16-strstr: New file.
7850 * modules/unistr/u32-strstr: New file.
7851 * lib/unistr/u8-strstr.c: New file.
7852 * lib/unistr/u16-strstr.c: New file.
7853 * lib/unistr/u32-strstr.c: New file.
7854 * lib/unistr/u-strstr.h: New file.
7856 * modules/unistr/u8-strtok: New file.
7857 * modules/unistr/u16-strtok: New file.
7858 * modules/unistr/u32-strtok: New file.
7859 * lib/unistr/u8-strtok.c: New file.
7860 * lib/unistr/u16-strtok.c: New file.
7861 * lib/unistr/u32-strtok.c: New file.
7862 * lib/unistr/u-strtok.h: New file.
7864 * modules/unistr/u8-uctomb: New file.
7865 * modules/unistr/u16-uctomb: New file.
7866 * modules/unistr/u32-uctomb: New file.
7867 * lib/unistr/u8-uctomb.c: New file.
7868 * lib/unistr/u16-uctomb.c: New file.
7869 * lib/unistr/u32-uctomb.c: New file.
7871 * MODULES.html.sh (Unicode string functions): Add the new modules.
7873 2007-01-08 Bruno Haible <bruno@clisp.org>
7875 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
7876 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
7879 2007-01-08 Karl Berry <karl@gnu.org>
7881 * doc/error.texi: mention that main() fns must set program_name
7882 when progname is used.
7884 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
7886 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
7887 WCTYPE_H is empty, for the benefit of builds from non-distclean
7888 directories. Problem reported by Eric Blake in
7889 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
7891 2007-01-08 Bruno Haible <bruno@clisp.org>
7893 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
7894 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
7895 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
7896 PROVIDE_CANONICALIZE_FILENAME_MODE.
7897 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
7899 2007-01-08 Bruno Haible <bruno@clisp.org>
7901 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
7902 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
7903 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
7904 * lib/fts.c: Likewise.
7905 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
7907 2006-12-25 Bruno Haible <bruno@clisp.org>
7909 * modules/utf8-ucs4-safe: New file.
7910 * lib/utf8-ucs4-safe.h: New file.
7911 * lib/unistr/utf8-ucs4-safe.c: New file.
7913 * modules/utf16-ucs4-safe: New file.
7914 * lib/utf16-ucs4-safe.h: New file.
7915 * lib/unistr/utf16-ucs4-safe.c: New file.
7917 * MODULES.html.sh (Unicode string functions): Add the new modules.
7919 2007-01-08 Bruno Haible <bruno@clisp.org>
7921 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
7922 (Depends-on): Add unitypes.
7923 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
7924 (u8_mbtouc_aux): Move out to separate file.
7925 (u8_mbtouc): Use ucs4_t, uint8_t types.
7926 * lib/unistr/utf8-ucs4.c: New file.
7928 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
7929 (Depends-on): Add unitypes.
7930 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
7931 (u16_mbtouc_aux): Move out to separate file.
7932 (u16_mbtouc): Use ucs4_t, uint16_t types.
7933 * lib/unistr/utf16-ucs4.c: New file.
7935 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
7936 (Depends-on): Add unitypes.
7937 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
7938 (u8_uctomb_aux): Move out to separate file.
7939 (u8_uctomb): Use ucs4_t, uint8_t types.
7940 * lib/unistr/ucs4-utf8.c: New file.
7942 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
7943 (Depends-on): Add unitypes.
7944 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
7945 (u16_uctomb_aux): Move out to separate file.
7946 (u16_uctomb): Use ucs4_t, uint16_t types.
7947 * lib/unistr/ucs4-utf16.c: New file.
7949 2006-12-25 Bruno Haible <bruno@clisp.org>
7951 * modules/unitypes: New file.
7952 * lib/unitypes.h: New file.
7953 * MODULES.html.sh (func_all_modules): New section "Unicode string
7954 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
7955 this section. Add unitypes.
7957 2007-01-08 Bruno Haible <bruno@clisp.org>
7959 Avoid variable names that conflict with those from libtool.
7960 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
7961 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
7962 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
7963 library_names_spec to acl_library_names_spec, hardcode_* to
7965 Reported by Ralf Wildenhues.
7967 2007-01-08 Bruno Haible <bruno@clisp.org>
7969 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
7971 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
7973 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
7974 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
7976 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
7978 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
7979 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
7980 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
7981 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
7983 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
7985 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
7986 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
7988 * lib/gc-libgcrypt.c: Likewise.
7989 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
7990 * modules/gc-arctwo (configure.ac): Likewise.
7991 * modules/gc-des (configure.ac): Likewise.
7992 * modules/gc-hmac-md5 (configure.ac): Likewise.
7993 * modules/gc-hmac-sha1 (configure.ac): Likewise.
7994 * modules/gc-md2 (configure.ac): Likewise.
7995 * modules/gc-md4 (configure.ac): Likewise.
7996 * modules/gc-md5 (configure.ac): Likewise.
7997 * modules/gc-random (configure.ac): Likewise.
7998 * modules/gc-rijndael (configure.ac): Likewise.
7999 * modules/gc-sha1 (configure.ac): Likewise.
8001 2007-01-08 Bruno Haible <bruno@clisp.org>
8003 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
8005 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
8007 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
8009 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
8010 * modules/fcntl-safer (configure.ac): Likewise.
8011 * modules/fopen-safer (configure.ac): Likewise.
8012 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
8013 GNULIB_FWRITEERROR macro definition.
8015 2007-01-08 Bruno Haible <bruno@clisp.org>
8017 * m4/gnulib-common.m4: New file.
8018 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
8019 (func_get_filelist): Add m4/gnulib-common.m4.
8021 2007-01-08 Bruno Haible <bruno@clisp.org>
8023 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
8026 2007-01-08 Jim Meyering <jim@meyering.net>
8028 Use a more robust test for a "can't happen" condition.
8029 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
8030 narrowed the st_size value. Presuming the "can't happen" condition
8031 is true, that narrowing could conceivably convert an invalid st_size
8032 value into a valid one. Instead, use a change based on Matthew
8033 Woehlke's original patch.
8035 Slight readability improvement: use an assert-like macro
8036 in place of literal "abort ()" uses.
8037 * lib/fts.c (fts_assert): Define.
8038 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
8039 Use this macro instead of a bare 'abort'.
8041 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
8043 Don't worry about using IRIX 5.3's wctype.h broken definitions;
8044 simply work around them.
8045 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
8046 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
8047 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
8049 Don't bother to define as macros, since the standard doesn't require it.
8050 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
8051 longer worry about IRIX 5.3.
8052 (HAVE_WCTYPE_CTMP_BUG): Remove.
8054 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
8056 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
8057 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
8058 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
8059 Problems reported by Georg Schwarz for IRIX 5.3.
8061 * gnulib-tool (autoconf_minversion): Take the maximum version number
8062 found, not the minimum. Problem reported by James Youngman.
8064 2007-01-03 Karl Berry <karl@gnu.org>
8066 * doc/error.texi: new file, explaining interaction with progname.
8067 * doc/gnulib.texi: include it. Update copyright.
8069 2007-01-03 Simon Josefsson <simon@josefsson.org>
8071 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
8072 AC_CANONICAL_HOST, to improve autobuild outputs.
8074 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
8075 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
8077 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
8078 sockets, server sockets, and other file descriptors. Count errors
8079 to compute the return value. Reorder the code a bit to be easier
8080 to follow. Don't set event bits that were not requested (except
8081 POLLERR and POLLHUP).
8083 2007-01-01 Bruno Haible <bruno@clisp.org>
8085 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
8087 2007-01-03 Jim Meyering <jim@meyering.net>
8089 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
8091 2007-01-02 Bruno Haible <bruno@clisp.org>
8093 * modules/settime (Include): Require timespec.h.
8094 * modules/nanosleep (Include): Likewise.
8096 2007-01-01 Bruno Haible <bruno@clisp.org>
8098 * gnulib-tool (func_emit_copyright_notice): Bump year.
8099 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
8101 2007-01-01 Bruno Haible <bruno@clisp.org>
8103 Improve support for OpenBSD.
8104 * build-aux/config.rpath (libname_spec): Export.
8105 (library_names_spec): New variable. Export.
8106 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
8107 library_names_spec from the config.rpath output. Locate shared library
8108 through the name pattern in library_names_spec.
8110 2007-01-01 Eric Blake <ebb9@byu.net>
8112 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
8114 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
8116 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
8117 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
8118 assume the C locale, and avoid an "eval" that could cause trouble.
8119 Problem with SORT reported by Bob Proulx.
8121 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
8122 Define. Trivial patch from Henning Nielsen Lund, originally
8123 sent to bug-grep@gnu.org today.
8125 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
8127 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
8128 struct stat. Problem reported by Henning Nielsen Lund.
8129 * lib/acl.c: Include acl.h first, to check interface. Don't
8130 bother to include sys/types.h and sys/stat.h again.
8132 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
8134 Import the following change from libc; problem reported by
8137 2005-10-13 Ulrich Drepper <drepper@redhat.com>
8140 * lib/argp.h: Remove __NTH for __argp_usage inline function.
8142 2006-12-28 Jim Meyering <jim@meyering.net>
8144 * build-aux/announce-gen: Do not assume that the package
8145 builds any of tar.gz, tar.bz2, and .xdelta files.
8146 Suggestion from Simon Josefsson.
8148 2006-12-28 Simon Josefsson <simon@josefsson.org>
8150 * modules/announce-gen: New file.
8152 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
8154 * lib/mbchar.h: Just include <wctype.h>; the wctype module
8155 handles its gotchas now.
8156 * lib/mbswidth.c: Likewise.
8157 * lib/wcwidth.h: Likewise.
8158 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
8159 and iswcntrl; the wctype module does this stuff now.
8160 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
8161 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8162 * modules/mbchar (Depends-on): Add wctype.
8163 * modules/mbswidth (Depends-on): Likewise.
8164 * modules/wcwidth (Depends-on): Likewise.
8166 2006-12-27 Eric Blake <ebb9@byu.net>
8168 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
8169 module uses more than what <wctype.h> is required to provide.
8171 2006-12-26 Eric Blake <ebb9@byu.net>
8173 * gnulib-tool (sed_extract_prog): Avoid space-tab.
8175 2006-12-26 Eric Blake <ebb9@byu.net>
8177 * modules/absolute-header: New module.
8178 * modules/fcntl (Depends-on): Depend on it.
8179 * modules/inttypes (Depends-on): Likewise.
8180 * modules/stdint (Depends-on): Likewise.
8181 * modules/sys_stat (Depends-on): Likewise.
8182 * modules/wctype (Depends-on): Likewise.
8183 * MODULES.html.sh (Support for building libraries and
8184 executables): Document it.
8186 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
8188 * gnulib-tool (SED): Remove, undoing previous change.
8189 The problem was that it broke coreutils on Solaris, because
8190 "sed --posix" leaked into a makefile.
8191 (sed): New alias, if 'alias' and GNU sed.
8193 2006-12-24 Jim Meyering <jim@meyering.net>
8195 Work around an fchownat bug in glibc-2.4:
8196 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
8197 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
8198 in spite of the -P option.
8199 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
8201 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
8202 * modules/openat (Files): Add lib/fchownat.c.
8203 * lib/openat.c (fchownat): Don't define here. Move to...
8204 * lib/fchownat.c: ...this new file.
8206 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
8208 Fix bug reported by Bruno Haible in
8209 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
8210 where quotearg.c didn't compile on Mac OS X 10.2 because it
8211 lacks <wchar.h> and wint_t.
8212 * lib/wctype_.h (__wctype_wint_t): New type.
8213 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
8214 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
8215 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
8216 Arg is now of type __wctype_wint_t, not wint_t.
8217 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
8218 substitute HAVE_WINT_T.
8219 * modules/wctype (Files): Add m4/wint_t.m4.
8220 (wctype.h): Substitute HAVE_WINT_T.
8222 2006-12-23 Bruno Haible <bruno@clisp.org>
8224 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
8226 2006-12-23 Bruno Haible <bruno@clisp.org>
8228 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
8230 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
8233 2006-12-22 Bruno Haible <bruno@clisp.org>
8235 * lib/copy-file.c: Include acl.h.
8236 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
8237 Close the file descriptors only after being done with copy_acl.
8238 * modules/copy-file (Depends-on): Add acl.
8240 2006-12-22 Bruno Haible <bruno@clisp.org>
8242 * gnulib-tool (SED): New variable.
8243 Use $SED instead of sed everywhere.
8245 2006-12-22 Bruno Haible <bruno@clisp.org>
8247 * modules/no-c++: New file.
8248 * m4/no-c++.m4: New file.
8249 * MODULES.html.sh (Support for building libraries and executables):
8252 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
8254 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
8255 Include <limits.h>, and use its INT_MAX to rewrite the
8256 j loop so that it does not overflow 'int'. Problem reported by
8258 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
8259 Play it safe by shifting left by 1 rather than multiplying by 2,
8260 as GCC is less likely to optimize this away when the value
8261 is signed (when it assumes overflow leads to undefined behavior).
8262 Also, don't assume time_t uses two's complement.
8264 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
8266 * MODULES.html.sh: New module wctype.
8267 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
8268 * lib/fnmatch.c: Don't bother to include <wchar.h> before
8269 <wctype.h>, since the new wctype module should fix this.
8270 * lib/quotearg.c: Include <wctype.h> unconditionally, since
8271 the wctype module should arrange for it.
8272 * lib/regex_internal.h: Likewise.
8273 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
8274 since the wctype module should handle this now.
8275 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
8276 * modules/fnmatch (Depends-on): Add wctype.
8277 * modules/quotearg (Depends-on): Likewise.
8278 * modules/regex (Depends-on): Likewise.
8280 2006-12-19 Bruno Haible <bruno@clisp.org>
8282 * lib/strdup.h [C++]: Wrap definitions in extern "C".
8283 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
8285 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8287 * modules/savewd (Depends-on): Fix dependency on fcntl.
8289 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
8291 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
8292 conforms to C99, rather than relying on the user's environment
8293 setting of STDINT_H.
8295 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
8296 and Eric Blake <ebb9@byu.net>
8298 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
8299 This is more consistent with the other defines here.
8300 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
8301 Port to z/OS. Problem reported by Paul Gilmartin.
8302 Change local vars to use gl_ prefix rather than ac_.
8303 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
8305 * modules/double-slash-root: New module.
8306 * modules/dirname (Files): Remove m4/double-slash-root.m4.
8307 (Depends-on): Add double-slash-root.
8308 * MODULES.html.sh (File system functions): Mention new module.
8310 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
8312 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
8313 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
8314 This is for the benefit of gzip, which doesn't do i18n.
8316 2006-12-12 Jim Meyering <jim@meyering.net>
8318 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
8319 Reported by Andreas Schwab <schwab@suse.de>.
8321 2006-12-12 Bruno Haible <bruno@clisp.org>
8323 Merge these changes.
8324 2006-09-05 Bruno Haible <bruno@clisp.org>
8325 * lib/iconvme.c (iconv_string): No need to save and restore errno when
8326 iconv_alloc succeeded.
8327 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
8328 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
8329 test for " && dest " at the end - dest is always != NULL there. Call
8330 iconv with 4xNULL arguments initially, to reset the state. Call iconv
8331 with 2xNULL arguments, also to flush the state storage. Handle the
8332 IRIX iconv behaviour. Realloc the final result, to throw away unused
8335 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
8337 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
8338 and fchmodat unconditionally, since glibc 2.4 has them.
8339 Problem reported by Arkadiusz Miskiewicz.
8341 2006-12-10 Bruno Haible <bruno@clisp.org>
8343 * gnulib-tool (func_import): Show the include files only for those
8344 modules that are copied and specified.
8345 Reported by Karl Berry.
8347 2006-12-08 Jim Meyering <jim@meyering.net>
8349 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
8350 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
8352 * build-aux/announce-gen: Add two new options, both optional:
8353 --bootstrap-tools=TOOL_LIST
8354 a comma-separated list of tools, e.g.,
8355 autoconf,automake,bison,gnulib
8356 --gnulib-snapshot-date=DATE
8357 if gnulib is in the bootstrap tool list,
8358 then report this as the snapshot date.
8359 If not specified, use the current date/time.
8360 If you specify a date here, be sure it's UTC.
8362 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8364 * tests/test-argp-2.sh: Fix test to match actual output.
8365 (func_compare): Fix sed script to be portable.
8367 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
8369 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
8370 workaround for this case. It is not autoconfigured now; offhand
8371 it's hard to see how to autoconfigure it.
8373 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
8375 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
8376 a directory that is about to be chowned. Such a directory's
8377 initial file permissions should permit the owner only and this
8378 should not be changed until after the chown, since the group and
8379 other bits would be incorrect if they granted permission before
8382 Fix porting problem for iswctype reported by Georg Schwarz in:
8383 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
8384 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
8385 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
8386 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
8387 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
8389 2006-12-03 Jim Meyering <jim@meyering.net>
8391 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
8392 p->fts_statp may not yet be defined.
8393 (fts_read): Instead, set it in the caller, once p->fts_statp is
8394 sure to be defined, and corresponds to a top-level directory.
8395 This bug made du -x fail. Here's the coreutils test case:
8396 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
8397 Reported by Mike Frysinger.
8399 2006-12-01 Jim Meyering <jim@meyering.net>
8401 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
8402 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
8403 Reported by Simon Josefsson.
8405 2006-11-30 Jim Meyering <jim@meyering.net>
8407 * m4/warning.m4: Use the all-permissive copyright notice
8408 recommended by RMS (rather than LGPL).
8409 * m4/vararrays.m4: Likewise.
8410 * m4/flexmember.m4: Likewise.
8412 2006-11-29 Bruno Haible <bruno@clisp.org>
8414 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
8415 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
8417 Reported by Simon Josefsson <simon@josefsson.org>.
8419 2006-11-28 James Youngman <jay@gnu.org>
8421 * README: Advise users that they might find the bug-gnulib@gnu.org
8422 and autotools-announce@gnu.org mailing lists useful.
8424 2006-11-28 Bruno Haible <bruno@clisp.org>
8426 * m4/ptrdiff_max.m4: Remove file.
8428 2006-11-21 Bruno Haible <bruno@clisp.org>
8430 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
8432 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
8433 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
8435 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
8436 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
8438 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
8440 2006-11-28 Jim Meyering <jim@meyering.net>
8442 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
8443 warning from "gcc -Wshadow" about shadowing the builtin.
8445 2006-11-27 Bruno Haible <bruno@clisp.org>
8447 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
8449 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
8451 2006-11-27 Bruno Haible <bruno@clisp.org>
8452 Paul Eggert <eggert@cs.ucla.edu>
8454 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
8456 2006-11-26 Bruno Haible <bruno@clisp.org>
8458 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
8461 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
8462 Bruno Haible <bruno@clisp.org>
8464 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
8465 if compiling with "gcc -ansi".
8467 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
8469 Fix some incompatibilities with gcc -ansi -pedantic.
8470 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
8471 if compiling pedantically with GCC, unless it's C99 or later.
8472 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
8473 it mishandles gcc -ansi -pedantic as well.
8474 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
8476 * lib/regexec.c (check_node_accept_bytes): Don't use auto
8477 initializers for struct if -pedantic, unless it's C99 or later.
8479 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
8481 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
8482 Don't close an fd more than once. Identical atimes indicate
8483 success, not failure.
8485 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
8487 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
8489 2006-11-23 Jim Meyering <jim@meyering.net>
8491 * build-aux/announce-gen: New file. From coreutils.
8493 2006-11-22 Jim Meyering <jim@meyering.net>
8495 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
8496 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
8497 (fts_read): Use a temporary to narrow the overused st_size member
8498 before using it in a switch statement. Reported by Matthew Woehlke.
8500 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
8501 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
8503 2006-11-20 Bruno Haible <bruno@clisp.org>
8505 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
8506 changequote instead of pairs of brackets.
8507 Reported by Andreas Schwab <schwab@suse.de>.
8509 2006-11-21 Jim Meyering <jim@meyering.net>
8511 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
8512 so as to remain compatible with older compilers.
8513 Patch from Michael Deutschmann.
8515 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
8517 * MODULES.html.sh (File system functions): Add openat.
8519 * lib/openat.h (rpl_fstatat): New macro, if
8520 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
8521 (fstatat): Define to rpl_fstatat under the same conditions,
8522 unless COMPILING_FSTATAT.
8523 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
8524 seems to have the bug.
8525 * lib/fstatat.c: New file.
8526 * modules/openat (Files): Add it.
8528 2006-11-20 Bruno Haible <bruno@clisp.org>
8530 * Makefile: New file.
8532 2006-11-20 Jim Meyering <jim@meyering.net>
8534 The beginnings of syntax-related checks for gnulib.
8535 * lib/Makefile: New file.
8536 * lib/t-idcache: New script. Ensure that the two halves of
8537 idcache.c stay in sync.
8539 * lib/idcache.c: Adjust comments in user- and group- portions to
8540 be more accurate, and to be consistent with one another.
8542 2006-11-20 Jim Meyering <jim@meyering.net>
8544 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
8545 continue using the flexible array member (thus, this module performs
8546 half as many malloc calls), with the addition that...
8547 (getgroup, getuser): Consistently record a non-match via an empty
8548 "name" string, and map an empty string match to a NULL return value.
8549 * modules/idcache (Depends-on): Re-add flexmember.
8551 * lib/idcache.c (getuser): Remove all uses of the register keyword.
8552 (getuidbyname, getgroup, getgidbyname): Likewise.
8554 Use cleaner syntax: NULL rather than 0.
8555 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
8557 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
8559 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
8560 It mishandled the case where the group was missing.
8561 Problem reported by Greg Schafer.
8562 * modules/idcache: Likewise.
8564 2006-11-18 Jim Meyering <jim@meyering.net>
8566 * check-module (%exempt_header): Add exception for some
8567 conditionally-included headers.
8569 * modules/i-ring (Depends-on): Add verify.
8570 (License): Change to LGPL.
8572 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
8574 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
8575 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
8576 and inttostr.h. Use snprintf rather than uinttostr, so that
8577 LGPLed code doesn't depend on GPLed.
8579 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
8581 * modules/inline (License): Change from GPL to LGPL.
8583 2006-11-17 Jim Meyering <jim@meyering.net>
8585 * modules/d-type (License): Switch to LGPL.
8587 2006-11-15 Bruno Haible <bruno@clisp.org>
8589 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
8591 2006-11-15 Eric Blake <ebb9@byu.net>
8593 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
8594 the module dependency.
8596 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
8597 Bruno Haible <bruno@clisp.org>
8599 * gnulib-tool (func_create_testdir): Add license consistency check.
8601 2006-11-15 Eric Blake <ebb9@byu.net>
8603 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
8604 random "(cached)" in configure output.
8606 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8608 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
8609 test for conforming inttypes.h is both announced and cached.
8611 * MODULES.html.sh (seen_modules, seen_files): New variables.
8612 (func_module): Rewrite to use a few less gnulib-tool and sed
8613 invocations. Avoid a couple of quadratic algorithms for ...
8614 (missed_modules, missed_files): ... these, with ...
8615 (func_append, func_tmpdir): ... these new functions, from
8616 gnulib-tool. Analogously, install traps for cleanup.
8618 * tests/test-gc.c (main): Remove unused variables.
8619 * tests/test-read-file.c: Include stdlib.h, for 'free'.
8621 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
8623 * modules/inttostr (License): Change to LGPL.
8625 2006-11-14 Eric Blake <ebb9@byu.net>
8627 * modules/tempname (License): Change to LGPL.
8629 2006-11-14 Eric Blake <ebb9@byu.net>
8631 * doc/functions.texi (Function Portability): *printf functions on
8632 Cygwin now understand all POSIX size specifiers.
8634 2006-11-14 Bruno Haible <bruno@clisp.org>
8636 * modules/c-ctype (License): Change to LGPL.
8638 2006-11-12 Bruno Haible <bruno@clisp.org>
8640 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
8641 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
8642 for GNOME libraries, for which the include files are installed in
8643 subdirectories of $prefix/include.
8645 2006-11-12 Bruno Haible <bruno@clisp.org>
8647 * m4/lib-link.m4: Require at least autoconf-2.54.
8648 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
8649 name to underscores for the --with option.
8651 2006-11-13 Bruno Haible <bruno@clisp.org>
8653 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
8654 the tests directory.
8655 Reported by Ralf Wildenhues.
8657 2006-11-13 Bruno Haible <bruno@clisp.org>
8659 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
8660 (func_emit_initmacro_end): Undo the override here.
8661 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
8662 Works around the famous automake error in coreutils.
8664 2006-11-13 Eric Blake <ebb9@byu.net>
8666 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
8667 element, not its node.
8669 2006-11-12 Bruno Haible <bruno@clisp.org>
8671 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
8672 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
8674 2006-11-12 Bruno Haible <bruno@clisp.org>
8676 * gnulib-tool: New option --local-symlink.
8677 (func_usage): Document it.
8678 (lsymbolic): New variable.
8679 (func_import, func_create_testdir): If --symlink was not specified,
8680 test whether --local-symlink was specified and the file comes from
8681 the local_gnulib_dir.
8683 2006-11-12 Bruno Haible <bruno@clisp.org>
8685 * gnulib-tool (func_ln): New function.
8686 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
8688 2006-11-12 Bruno Haible <bruno@clisp.org>
8690 Finish support for source files in subdirectories.
8691 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
8692 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
8694 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
8696 2006-11-12 Bruno Haible <bruno@clisp.org>
8698 * gnulib-tool (func_get_automake_snippet): Synthesize also an
8699 EXTRA_lib_SOURCES augmentation.
8700 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
8702 2006-11-12 Jim Meyering <jim@meyering.net>
8704 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
8705 file descriptors. This also averts a failure on systems with
8706 native openat support when a traversed directory lacks "x" access.
8707 * lib/fts_.h: Include "i-ring.h"
8708 (struct FTS) [fts_fd_ring]: New member.
8709 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
8710 (FCHDIR): Add parentheses.
8711 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
8712 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
8713 When descending, rather than simply closing the previous
8714 fts_cwd_fd value, push that file descriptor onto the ring.
8715 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
8716 (fts_open): Initialize the new fd_ring member.
8717 (fts_close): Clear the ring.
8718 (fts_safe_changedir): When possible, use our new fd_ring to skip
8719 the diropen and fstat and dev/ino comparison that would normally
8720 accompany a virtual `chdir ("..")'.
8722 * modules/fts (Depends-on): Add i-ring.
8723 * modules/i-ring: New module.
8724 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
8725 * m4/i-ring.m4: New file.
8727 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8729 * gnulib-tool (func_create_testdir): Fix replacement of
8730 `build-aux' in configure.ac. Run autotools in gltests
8732 (func_create_testdir, func_create_megatestdir, test): There is
8733 no need for '--force' in most autotool invocations in a new
8734 tree. Actually fail the whole test if any of the tools, or the
8735 configure or make stages fail.
8738 * build-aux/gnupload: Revert last change. Add pointer to upload
8739 instructions of the GNU Maintenance Instructions.
8740 Suggestion by Karl Berry.
8742 2006-11-10 Jim Meyering <jim@meyering.net>
8744 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
8746 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
8748 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
8749 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
8750 (bind_textdomain_codeset) [! ENABLE_NLS]:
8751 Evaluate all the arguments. That way, callers get compatible behavior
8752 if the arguments have side effects. Also, it avoids some GCC
8753 diagnostics in some cases; Joel E. Denny reported problems when Bison
8754 was configured with --enable-gcc-warnigs.
8756 2006-11-10 Jim Meyering <jim@meyering.net>
8758 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
8759 relevant options in CFLAGS (like -O, -fno-inline) are taken into
8762 2006-11-10 Jim Meyering <jim@meyering.net>
8764 * modules/inline: New file/module.
8765 * modules/xalloc (Files): Remove m4/inline.m4.
8766 (Depends-on): Add inline, instead.
8767 * modules/oset: Likewise.
8768 * modules/list: Likewise.
8770 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
8772 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
8773 Problem reported by Matthew Woehlke.
8775 2006-11-09 Bruno Haible <bruno@clisp.org>
8777 * lib/tempname.c (gen_tempname): Remove variant that invokes
8779 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
8782 2006-11-08 Bruno Haible <bruno@clisp.org>
8784 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
8785 to 'yes' instead of 'cross-compiling'.
8787 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
8789 * lib/quotearg.h (quotearg_free): New decl.
8790 * lib/quotearg.c (quotearg_free): New function.
8791 (slot0, nslots, slotvec0, slotvec):
8792 Now file-scope so that quotearg_free can get at them.
8794 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8797 * build-aux/gnupload: Add missing 'gnu' to example URL.
8798 Report by Karl Berry.
8800 2006-11-08 Bruno Haible <bruno@clisp.org>
8802 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
8803 Suggested by Paul Eggert.
8805 2006-11-08 Jim Meyering <jim@meyering.net>
8807 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
8808 It's already included if !_LIBC.
8809 (fts_safe_changedir): Add a comment.
8811 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
8813 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
8814 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
8817 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
8818 definitions up, to avoid colliding with change below.
8819 (static_inline) [HAVE_INLINE]: New macro.
8820 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
8821 Provide extern decls when !HAVE_INLINE. Do not define unless
8822 static_inline is defined, either by us or by xmalloc.c. Use
8823 static_inline rather than static inline.
8824 (XCALLOC): Optimize sizeof(T) = 1 case.
8825 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
8827 2006-11-07 Bruno Haible <bruno@clisp.org>
8829 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
8830 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
8832 * modules/xalloc (Files): Add m4/inline.m4.
8834 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8837 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
8838 (Miscellanous Notes): ...from this.
8840 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
8842 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
8843 Mention that offsetof should be used instead of sizeof.
8846 2006-11-07 Bruno Haible <bruno@clisp.org>
8848 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
8850 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
8852 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
8853 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
8854 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
8855 (gl_tree_add_before, gl_tree_add_after):
8856 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
8857 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
8858 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
8859 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
8860 (gl_linked_add_after, gl_linked_add_at): Likewise.
8861 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
8862 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
8863 (gl_tree_add_before, gl_tree_add_after): Likewise.
8864 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
8865 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
8866 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
8868 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8870 * lib/gl_oset.h: Use C comment style, not C++ comment style.
8872 2006-11-06 Bruno Haible <bruno@clisp.org>
8874 * m4/inline.m4: New file.
8875 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
8876 * modules/list (Files): Add m4/inline.m4.
8877 * modules/oset (Files): Likewise.
8879 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
8881 * lib/idcache.c: Include <stddef.h>, for offsetof.
8882 (struct userid.name): Change from char * to a flexible array member.
8884 * modules/idcache (Depends-on): Add flexmember.
8886 * MODULES.html.sh (Core language properties): New module flexmember.
8887 * modules/flexmember, m4/flexmember.m4: New files.
8889 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
8890 inline functions that are identical with the old xnmalloc_inline,
8891 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
8892 that we can avoid some unnecessary integer multiplications and
8893 divisions in the common case where the element size is known at
8895 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
8897 (xnboundedmalloc): Remove.
8898 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
8899 arguments, for consistency with rest of this header.
8900 (xcharalloc): Rewrite using XNMALLOC.
8901 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
8902 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
8903 versions have been moved to lib/xalloc.h and renamed to be the
8904 non-*_inline versions.
8905 (xmalloc, xrealloc): Implement without reference to the xnmalloc
8906 and xnrealloc functions, since those functions are now inline and
8908 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
8909 renaming described above.
8910 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
8911 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
8912 captures the dependency in AC_C_INLINE.
8914 New module canonicalize-lgpl, proposed by Charles Wilson in
8915 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
8916 with a few small changes afterwards.
8917 * MODULES.html.sh (File system functions): New module
8919 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
8920 and canonicalize_file_name.
8921 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
8922 * modules/canonicalize-lgpl: New files.
8924 2006-11-05 Bruno Haible <bruno@clisp.org>
8926 * gnulib-tool (func_import, func_create_testdir): Create directories
8927 also for files in subdirectories of lib/.
8929 2006-11-05 Bruno Haible <bruno@clisp.org>
8931 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
8934 2006-11-03 Bruno Haible <bruno@clisp.org>
8936 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
8937 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
8938 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
8939 (xnboundedmalloc): New inline function.
8940 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
8941 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
8943 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
8945 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
8946 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
8947 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
8949 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
8950 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
8952 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
8953 gl_tree_add_after): Use XMALLOC instead of xmalloc.
8954 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
8956 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
8957 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
8958 gl_tree_add_after): Use XMALLOC instead of xmalloc.
8959 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
8960 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
8961 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
8962 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
8964 2006-11-03 Bruno Haible <bruno@clisp.org>
8966 * lib/c-ctype.h [C++]: Define functions without name mangling.
8967 * lib/fwriteerror.h [C++]: Likewise.
8968 * lib/gcd.h [C++]: Likewise.
8969 * lib/linebreak.h [C++]: Likewise.
8971 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
8973 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
8974 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
8975 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
8976 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
8977 Check for functions and headers just once.
8978 Check for declaration of canonicalize_file_name.
8979 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
8981 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
8983 * gnulib-tool (func_import): Fix typo in actioncmd.
8985 2006-11-02 Bruno Haible <bruno@clisp.org>
8987 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
8988 newline sequence in the Makefile.am snippet as a space, like "make"
8990 Reported by Roger Persson <perrog@gmail.com>.
8992 2006-11-01 Bruno Haible <bruno@clisp.org>
8994 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
8995 already declared in <string.h>.
8996 * lib/strcase.h (strncasecmp): Don't declare it if yes.
8998 2006-11-01 Bruno Haible <bruno@clisp.org>
9000 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
9001 * lib/strcase.h: Include <string.h>.
9002 (strcasecmp): Define to rpl_strcasecmp here.
9004 2006-11-01 Bruno Haible <bruno@clisp.org>
9006 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
9008 2006-11-01 Eric Blake <ebb9@byu.net>
9010 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
9012 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
9014 2006-10-29 Bruno Haible <bruno@clisp.org>
9016 Make it compile in C++ mode.
9017 * lib/full-write.c (full_rw): Add a cast.
9019 2006-11-01 Bruno Haible <bruno@clisp.org>
9021 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
9023 Reported by Roger Persson <perrog@gmail.com>.
9025 2006-11-01 Eric Blake <ebb9@byu.net>
9027 * lib/getopt_.h: Fix comments.
9029 2006-10-31 Eric Blake <ebb9@byu.net>
9031 * modules/tmpdir (Depends-on): Add sys_stat.
9032 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
9033 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
9034 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
9035 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
9038 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
9040 Avoid some C++ diagnostics reported by Bruno Haible.
9041 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
9043 (quotearg_alloc): Use xcharalloc rather than xmalloc.
9044 (struct slotvec): Move to top level.
9045 (quotearg_n_options): Rewrite to avoid xmalloc.
9046 * lib/xalloc.h (xcharalloc): New function.
9047 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
9048 [defined __cplusplus]: Add function template that provides result
9049 type propagation. This part of the change is from Bruno Haible.
9051 2006-10-29 Bruno Haible <bruno@clisp.org>
9053 Make it compile in C++ mode.
9054 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
9055 * lib/strnlen1.c (strnlen1): Cast memchr result.
9056 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
9057 * lib/clean-temp.c (string_equals, string_hash): Add casts.
9058 (create_temp_dir): Rename local variable 'template'.
9059 (compile_csharp_using_sscli): Add cast.
9060 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
9061 * lib/findprog.c (find_in_path): Likewise.
9062 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
9063 * lib/wait-process.c (register_slave_subprocess): Likewise.
9065 2006-10-22 Bruno Haible <bruno@clisp.org>
9067 * modules/tsearch: New file.
9068 * lib/tsearch.h: New file.
9069 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
9070 * m4/tsearch.m4: New file.
9071 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
9073 2006-10-29 Eric Blake <ebb9@byu.net>
9075 * lib/arcfour.c: Assume config.h.
9076 * lib/arctwo.c: Likewise.
9077 * lib/base64.c: Likewise.
9078 * lib/check-version.c: Likewise.
9079 * lib/crc.c: Likewise.
9080 * lib/des.c: Likewise.
9081 * lib/gc-gnulib.c: Likewise.
9082 * lib/gc-libgcrypt.c: Likewise.
9083 * lib/gc-pbkdf2-sha1.c: Likewise.
9084 * lib/getaddrinfo.c: Likewise.
9085 * lib/getdelim.c: Likewise.
9086 * lib/getline.c: Likewise.
9087 * lib/hmac-md5.c: Likewise.
9088 * lib/hmac-sha1.c: Likewise.
9089 * lib/iconvme.c: Likewise.
9090 * lib/md2.c: Likewise.
9091 * lib/md4.c: Likewise.
9092 * lib/memxor.c: Likewise.
9093 * lib/read-file.c: Likewise.
9094 * lib/readline.c: Likewise.
9095 * lib/rijndael-alg-fst.c: Likewise.
9096 * lib/rijndael-api-fst.c: Likewise.
9097 * lib/xgetdomainname.c: Likewise.
9099 2006-10-28 Eric Blake <ebb9@byu.net>
9101 * lib/xstrndup.c: Assume config.h.
9103 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
9105 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
9106 stat-macros.h is now for our own macros, whereas stat_h is for
9107 macros in the <sys/stat.h> name space.
9108 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
9109 (STAT_MACROS_H): Remove.
9110 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
9111 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
9112 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
9113 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
9114 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
9115 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
9116 Move these macros to ...
9117 * lib/stat_.h: here. Don't include stat-macros.h.
9118 * lib/canonicalize.c: Don't include stat-macros.h.
9119 * lib/chown.c: Likewise.
9120 * lib/euidaccess.c: Likewise.
9121 * lib/file-type.c: Likewise.
9122 * lib/filemode.c: Likewise.
9123 * lib/glob.c: Likewise.
9124 * lib/isapipe.c: Likewise.
9125 * lib/lchown.c: Likewise.
9126 * lib/lstat.c: Likewise.
9127 * lib/mkdir-p.c: Likewise.
9128 * lib/rmdir.c: Likewise.
9129 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
9130 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
9131 unless mkdir isn't declared, to speed up 'configure'.
9132 Always create sys/stat.h, since it's unlikely any real sys/stat.h
9133 would define all the S_* symbols.
9134 * modules/canonicalize (Depends-on):
9135 Depend on sys_stat, not stat-macros.
9136 * modules/chown: Likewise.
9137 * modules/euidaccess: Likewise.
9138 * modules/filemode: Likewise.
9139 * modules/file-type: Likewise.
9140 * modules/glob: Likewise.
9141 * modules/isapipe: Likewise.
9142 * modules/lchown: Likewise.
9143 * modules/lstat: Likewise.
9144 * modules/mkancesdirs: Likewise.
9145 * modules/rmdir: Likewise.
9146 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
9147 * modules/modechange: Likewise.
9148 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
9149 (configure.ac): Remove gl_STAT_MACROS.
9150 * modules/sys_stat (Depends-on): Remove stat-macros.
9152 2006-10-27 Bruno Haible <bruno@clisp.org>
9154 * m4/signed.m4: Remove file.
9155 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
9157 * modules/vasnprintf (Files): Remove m4/signed.m4.
9159 2006-10-27 Bruno Haible <bruno@clisp.org>
9161 Update to GNU gettext 0.16.
9162 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
9163 m4/inttypes-h.m4, m4/signed.m4.
9164 * m4/gettext.m4: Update to GNU gettext 0.16.
9165 * m4/intl.m4: New file, from GNU gettext.
9166 * m4/intldir.m4: New file, from GNU gettext.
9167 * config/srclist.txt: Update
9169 2006-10-27 Eric Blake <ebb9@byu.net>
9171 * MODULES.html.sh: Document tempname.
9172 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
9174 (Files): Move lib/tempname.c...
9175 * modules/tempname: ...to this new module.
9176 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
9177 (gl_PREREQ_TEMPNAME): Move...
9178 * m4/tempname.m4: ...to this new file.
9179 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
9180 * modules/sys_stat (Depends-on): Add stat-macros.
9181 * lib/stat_.h (includes): Pick up stat macros.
9182 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
9183 if stat macros are broken.
9184 * lib/tempname.c (includes): No need to include "stat-macros.h".
9185 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
9186 (direxists, __path_search) [!_LIBC]: Don't compile these in
9187 gnulib; the tmpdir module covers that.
9188 * lib/tempname.h: New file.
9190 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
9192 * COPYING: Explain how gnulib-tool converts licence headers.
9193 Almost all wording by Eric Blake.
9195 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
9197 * lib/mbchar.h (is_basic_table): Make read-only.
9198 * lib/mbchar.c (is_basic_table): Likewise.
9199 Reported by John Darrington.
9201 2006-10-25 Bruno Haible <bruno@clisp.org>
9203 * lib/progname.h (set_program_name): Undefine before defining.
9205 2006-10-25 Bruno Haible <bruno@clisp.org>
9207 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
9208 false for non-gcc C++ compilers.
9209 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
9211 2006-10-24 Bruno Haible <bruno@clisp.org>
9213 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
9214 iconv implementations like Irix iconv.
9216 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
9218 * modules/vararrays: New file.
9219 * m4/vararrays.m4: New file, taken from diffutils.
9220 * MODULES.html.sh: New module vararrays.
9222 2006-10-24 Karl Berry <karl@gnu.org>
9224 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
9225 Don't call GNU Unix.
9227 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9229 * users.txt: Add Libtool.
9233 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
9235 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
9236 to gnulib's policy of including config.h unconditionally.
9238 2006-10-24 Bruno Haible <bruno@clisp.org>
9240 * modules/wcwidth (Files): Add m4/wint_t.m4.
9241 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
9242 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
9244 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
9246 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
9247 to pacify GCC with some -W flags enabled. Problem reported by
9250 2006-10-24 Jim Meyering <jim@meyering.net>
9252 * MODULES.html.sh: Remove uinttostr. It's not a module.
9253 Reported by Karl Berry.
9255 2006-10-23 Bruno Haible <bruno@clisp.org>
9257 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
9259 2006-10-24 Bruno Haible <bruno@clisp.org>
9261 * lib/gl_list.h: Use C comment style, not C++ comment style.
9263 2006-10-23 Eric Blake <ebb9@byu.net>
9265 * lib/getaddrinfo.c (includes): Add missing include.
9267 2006-10-23 Bruno Haible <bruno@clisp.org>
9268 Paul Eggert <eggert@cs.ucla.edu>
9270 Ability to rename obstack_free.
9271 * lib/obstack.h (__obstack_free): New macro. Declare instead of
9273 (obstack_free): Invoke the __obstack_free macro.
9274 * lib/obstack.c (obstack_free): Use __obstack_free macro.
9276 2006-10-23 Bruno Haible <bruno@clisp.org>
9277 Paul Eggert <eggert@cs.ucla.edu>
9279 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
9280 __argc, __argv from the declaration. (They are defined as macros on
9283 2006-10-22 Bruno Haible <bruno@clisp.org>
9285 * doc/gnulib-intro.texi: New file.
9286 * doc/gnulib.texi: Include it.
9288 2006-10-21 Bruno Haible <bruno@clisp.org>
9290 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
9291 "Introduction", "Miscellanous Notes", "Particular Modules".
9293 2006-10-21 Bruno Haible <bruno@clisp.org>
9295 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9296 Change mostlyclean-local rule to avoid sh syntax error from bash
9297 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
9299 2006-10-23 Jim Meyering <jim@meyering.net>
9301 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
9302 in place of snprintf.
9304 * modules/inttostr (Files): Add lib/uinttostr.c.
9305 * lib/uinttostr.c (inttostr): New file/function.
9306 * lib/inttostr.h (uinttostr): Declare.
9307 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
9308 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
9310 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
9312 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
9314 * lib/canonicalize.c (ELOOP): Define if not already defined.
9315 Problem reported by Bruno Haible in
9316 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
9318 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
9320 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
9321 Problem reported by Perry Smith and Ville Laurikari.
9323 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
9326 2006-10-19 Bruno Haible <bruno@clisp.org>
9328 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
9331 2006-10-19 Bruno Haible <bruno@clisp.org>
9333 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
9336 2006-10-19 Bruno Haible <bruno@clisp.org>
9338 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
9340 2006-10-19 Bruno Haible <bruno@clisp.org>
9342 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
9345 2006-10-19 Bruno Haible <bruno@clisp.org>
9347 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
9350 2006-10-19 Bruno Haible <bruno@clisp.org>
9352 * gnulib-tool (func_create_testdir): Don't include ftruncate and
9353 mountlist by default.
9355 2006-10-16 Bruno Haible <bruno@clisp.org>
9357 * lib/c-strstr.c: Include c-strstr.h.
9359 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
9361 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
9364 2006-10-18 Bruno Haible <bruno@clisp.org>
9366 * lib/lock.h [C++]: Wrap definitions in extern "C".
9368 2006-10-18 Bruno Haible <bruno@clisp.org>
9370 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
9373 2006-10-18 Bruno Haible <bruno@clisp.org>
9375 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
9377 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
9379 * lib/xstrtol.h: Include gettext.h.
9380 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
9381 Problem reported by Eric Blake.
9382 * modules/xstrtol (Depends-on): Add gettext-h.
9384 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
9386 * lib/strftime.c (advance): New macro.
9387 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
9388 incomplete type, so you can't add 0 to it. Problem and patch
9389 reported by Eelco Dolstra for dietlibc.
9391 2006-10-18 Jim Meyering <jim@meyering.net>
9393 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
9394 type for a local, and rename it: s/up/user_proc/.
9396 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
9398 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
9399 READ_UTMP_USER_PROCESS.
9400 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
9402 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
9404 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
9405 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
9407 2006-10-17 Eric Blake <ebb9@byu.net>
9409 * lib/sigprocmask.c (sigprocmask): Fix typo.
9411 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
9413 * modules/clean-temp (Makefile.am): Don't add to make output...
9414 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
9417 2006-10-17 Bruno Haible <bruno@clisp.org>
9419 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
9420 differently if DEFAULT_TEXT_DOMAIN is set.
9422 2006-10-16 Bruno Haible <bruno@clisp.org>
9424 * lib/clean-temp.c: Include fwriteerror.h.
9426 2006-10-16 Bruno Haible <bruno@clisp.org>
9428 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
9430 2006-10-16 Bruno Haible <bruno@clisp.org>
9432 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
9433 * lib/sigprocmask.h: Include <sys/types.h>.
9434 (sigset_t): Use the system's definition if present.
9436 2006-10-17 Eric Blake <ebb9@byu.net>
9438 * lib/xvasprintf.c (includes): Assume config.h.
9439 * lib/xasprintf.c (includes): Likewise.
9441 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
9443 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
9444 at least as wide as intmax_t.
9446 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
9448 (Imported from Automake.)
9449 * build-aux/gnupload: Update to version 1.1 of directive file.
9451 2006-10-16 Eric Blake <ebb9@byu.net>
9453 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
9454 match Automake 1.10a.
9456 2006-10-14 Bruno Haible <bruno@clisp.org>
9458 * modules/sigprocmask: New file.
9459 * lib/sigprocmask.h: New file.
9460 * lib/sigprocmask.c: New file.
9461 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
9462 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
9463 request sigprocmask.o.
9464 (gl_PREREQ_SIGPROCMASK): New macro.
9465 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
9466 (Depends-on): Add sigprocmask.
9467 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
9468 gt_SIGNALBLOCKING. Test for 'raise' only once.
9469 * lib/fatal-signal.c: Include sigprocmask.h.
9470 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
9471 unblock_fatal_signals): Define always.
9472 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
9475 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
9478 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
9479 which incorrectly sets the mode of an existing destination
9480 directory. In some cases the unpatched install-sh could do the
9481 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
9482 system. We hope this is rare in practice, but it's clearly worth
9483 fixing. Problem reported by Alex Unleashed in
9484 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
9485 Also, don't bother to check for -m bugs unless we're using -m;
9486 suggested by Stepan Kasal.
9488 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9491 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
9492 `-c' flag, so they appear at the same position as in %FASTDEP%
9493 mode in depend2.am. Fixes build failure for FreeBSD's c89,
9494 which ignores unknown options only after the first non-option.
9495 Bug report against M4 by Nelson H. F. Beebe.
9497 2006-10-13 Jim Meyering <jim@meyering.net>
9499 Fix a bug in yesterday's change.
9500 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
9501 p->fts_statp->st_dev would be used uninitialized.
9502 Ensures that we always call fts_stat on the very first entry.
9503 Miklos Szeredi reported that find -xdev stopped working.
9505 2006-10-12 Bruno Haible <bruno@clisp.org>
9507 * gnulib-tool (func_get_automake_snippet): Append an automatically
9508 computed EXTRA_DIST augmentation.
9509 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
9510 * modules/alloca-opt (Makefile.am): Likewise.
9511 * modules/allocsa (Makefile.am): Likewise.
9512 * modules/arcfour (Makefile.am): Likewise.
9513 * modules/arctwo (Makefile.am): Likewise.
9514 * modules/argmatch (Makefile.am): Likewise.
9515 * modules/argz (Makefile.am): Likewise.
9516 * modules/atexit (Makefile.am): Likewise.
9517 * modules/backupfile (Makefile.am): Likewise.
9518 * modules/byteswap (Makefile.am): Likewise.
9519 * modules/c-strtod (Makefile.am): Likewise.
9520 * modules/c-strtold (Makefile.am): Likewise.
9521 * modules/calloc (Makefile.am): Likewise.
9522 * modules/canon-host (Makefile.am): Likewise.
9523 * modules/canonicalize (Makefile.am): Likewise.
9524 * modules/chdir-long (Makefile.am): Likewise.
9525 * modules/chdir-safer (Makefile.am): Likewise.
9526 * modules/check-version (Makefile.am): Likewise.
9527 * modules/chown (Makefile.am): Likewise.
9528 * modules/cloexec (Makefile.am): Likewise.
9529 * modules/close-stream (Makefile.am): Likewise.
9530 * modules/closeout (Makefile.am): Likewise.
9531 * modules/crc (Makefile.am): Likewise.
9532 * modules/csharpexec (Makefile.am): Likewise.
9533 * modules/cycle-check (Makefile.am): Likewise.
9534 * modules/des (Makefile.am): Likewise.
9535 * modules/dev-ino (Makefile.am): Likewise.
9536 * modules/dirfd (Makefile.am): Likewise.
9537 * modules/dirname (Makefile.am): Likewise.
9538 * modules/dup2 (Makefile.am): Likewise.
9539 * modules/eealloc (Makefile.am): Likewise.
9540 * modules/error (Makefile.am): Likewise.
9541 * modules/euidaccess (Makefile.am): Likewise.
9542 * modules/exclude (Makefile.am): Likewise.
9543 * modules/exitfail (Makefile.am): Likewise.
9544 * modules/fcntl-safer (Makefile.am): Likewise.
9545 * modules/fcntl (Makefile.am): Likewise.
9546 * modules/file-type (Makefile.am): Likewise.
9547 * modules/fileblocks (Makefile.am): Likewise.
9548 * modules/filemode (Makefile.am): Likewise.
9549 * modules/filenamecat (Makefile.am): Likewise.
9550 * modules/fnmatch (Makefile.am): Likewise.
9551 * modules/fopen-safer (Makefile.am): Likewise.
9552 * modules/fpending (Makefile.am): Likewise.
9553 * modules/fprintftime (Makefile.am): Likewise.
9554 * modules/free (Makefile.am): Likewise.
9555 * modules/fsusage (Makefile.am): Likewise.
9556 * modules/ftruncate (Makefile.am): Likewise.
9557 * modules/fts (Makefile.am): Likewise.
9558 * modules/gc-arcfour (Makefile.am): Likewise.
9559 * modules/gc-des (Makefile.am): Likewise.
9560 * modules/gc-hmac-md5 (Makefile.am): Likewise.
9561 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
9562 * modules/gc-md4 (Makefile.am): Likewise.
9563 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
9564 * modules/gc-sha1 (Makefile.am): Likewise.
9565 * modules/gc (Makefile.am): Likewise.
9566 * modules/getaddrinfo (Makefile.am): Likewise.
9567 * modules/getcwd (Makefile.am): Likewise.
9568 * modules/getdelim (Makefile.am): Likewise.
9569 * modules/getdomainname (Makefile.am): Likewise.
9570 * modules/getgroups (Makefile.am): Likewise.
9571 * modules/gethostname (Makefile.am): Likewise.
9572 * modules/gethrxtime (Makefile.am): Likewise.
9573 * modules/getline (Makefile.am): Likewise.
9574 * modules/getloadavg (Makefile.am): Likewise.
9575 * modules/getlogin_r (Makefile.am): Likewise.
9576 * modules/getndelim2 (Makefile.am): Likewise.
9577 * modules/getopt (Makefile.am): Likewise.
9578 * modules/getpagesize (Makefile.am): Likewise.
9579 * modules/getpass-gnu (Makefile.am): Likewise.
9580 * modules/getpass (Makefile.am): Likewise.
9581 * modules/getsubopt (Makefile.am): Likewise.
9582 * modules/gettime (Makefile.am): Likewise.
9583 * modules/gettimeofday (Makefile.am): Likewise.
9584 * modules/getugroups (Makefile.am): Likewise.
9585 * modules/getusershell (Makefile.am): Likewise.
9586 * modules/glob (Makefile.am): Likewise.
9587 * modules/group-member (Makefile.am): Likewise.
9588 * modules/hard-locale (Makefile.am): Likewise.
9589 * modules/hash (Makefile.am): Likewise.
9590 * modules/hmac-md5 (Makefile.am): Likewise.
9591 * modules/hmac-sha1 (Makefile.am): Likewise.
9592 * modules/human (Makefile.am): Likewise.
9593 * modules/idcache (Makefile.am): Likewise.
9594 * modules/imaxabs (Makefile.am): Likewise.
9595 * modules/imaxdiv (Makefile.am): Likewise.
9596 * modules/inet_ntop (Makefile.am): Likewise.
9597 * modules/inet_pton (Makefile.am): Likewise.
9598 * modules/intprops (Makefile.am): Likewise.
9599 * modules/inttostr (Makefile.am): Likewise.
9600 * modules/inttypes (Makefile.am): Likewise.
9601 * modules/isapipe (Makefile.am): Likewise.
9602 * modules/javaversion (Makefile.am): Likewise.
9603 * modules/lchmod (Makefile.am): Likewise.
9604 * modules/lchown (Makefile.am): Likewise.
9605 * modules/localcharset (Makefile.am): Likewise.
9606 * modules/long-options (Makefile.am): Likewise.
9607 * modules/lstat (Makefile.am): Likewise.
9608 * modules/malloc (Makefile.am): Likewise.
9609 * modules/mathl (Makefile.am): Likewise.
9610 * modules/mbchar (Makefile.am): Likewise.
9611 * modules/md2 (Makefile.am): Likewise.
9612 * modules/md4 (Makefile.am): Likewise.
9613 * modules/md5 (Makefile.am): Likewise.
9614 * modules/memcasecmp (Makefile.am): Likewise.
9615 * modules/memchr (Makefile.am): Likewise.
9616 * modules/memcmp (Makefile.am): Likewise.
9617 * modules/memcoll (Makefile.am): Likewise.
9618 * modules/memcpy (Makefile.am): Likewise.
9619 * modules/memmem (Makefile.am): Likewise.
9620 * modules/memmove (Makefile.am): Likewise.
9621 * modules/mempcpy (Makefile.am): Likewise.
9622 * modules/memrchr (Makefile.am): Likewise.
9623 * modules/memset (Makefile.am): Likewise.
9624 * modules/memxor (Makefile.am): Likewise.
9625 * modules/mkancesdirs (Makefile.am): Likewise.
9626 * modules/mkdir-p (Makefile.am): Likewise.
9627 * modules/mkdir (Makefile.am): Likewise.
9628 * modules/mkdtemp (Makefile.am): Likewise.
9629 * modules/mkstemp (Makefile.am): Likewise.
9630 * modules/mktime (Makefile.am): Likewise.
9631 * modules/modechange (Makefile.am): Likewise.
9632 * modules/mountlist (Makefile.am): Likewise.
9633 * modules/nanosleep (Makefile.am): Likewise.
9634 * modules/obstack (Makefile.am): Likewise.
9635 * modules/openat (Makefile.am): Likewise.
9636 * modules/pagealign_alloc (Makefile.am): Likewise.
9637 * modules/pathmax (Makefile.am): Likewise.
9638 * modules/physmem (Makefile.am): Likewise.
9639 * modules/poll (Makefile.am): Likewise.
9640 * modules/posixtm (Makefile.am): Likewise.
9641 * modules/posixver (Makefile.am): Likewise.
9642 * modules/putenv (Makefile.am): Likewise.
9643 * modules/quote (Makefile.am): Likewise.
9644 * modules/quotearg (Makefile.am): Likewise.
9645 * modules/raise (Makefile.am): Likewise.
9646 * modules/read-file (Makefile.am): Likewise.
9647 * modules/readline (Makefile.am): Likewise.
9648 * modules/readlink (Makefile.am): Likewise.
9649 * modules/readtokens (Makefile.am): Likewise.
9650 * modules/readutmp (Makefile.am): Likewise.
9651 * modules/realloc (Makefile.am): Likewise.
9652 * modules/regex (Makefile.am): Likewise.
9653 * modules/rename-dest-slash (Makefile.am): Likewise.
9654 * modules/rename (Makefile.am): Likewise.
9655 * modules/rijndael (Makefile.am): Likewise.
9656 * modules/rmdir (Makefile.am): Likewise.
9657 * modules/rpmatch (Makefile.am): Likewise.
9658 * modules/safe-read (Makefile.am): Likewise.
9659 * modules/safe-write (Makefile.am): Likewise.
9660 * modules/same-inode (Makefile.am): Likewise.
9661 * modules/same (Makefile.am): Likewise.
9662 * modules/save-cwd (Makefile.am): Likewise.
9663 * modules/savedir (Makefile.am): Likewise.
9664 * modules/setenv (Makefile.am): Likewise.
9665 * modules/settime (Makefile.am): Likewise.
9666 * modules/sha1 (Makefile.am): Likewise.
9667 * modules/sig2str (Makefile.am): Likewise.
9668 * modules/snprintf (Makefile.am): Likewise.
9669 * modules/stat-macros (Makefile.am): Likewise.
9670 * modules/stat-time (Makefile.am): Likewise.
9671 * modules/stdbool (Makefile.am): Likewise.
9672 * modules/stdint (Makefile.am): Likewise.
9673 * modules/stdlib-safer (Makefile.am): Likewise.
9674 * modules/stpcpy (Makefile.am): Likewise.
9675 * modules/stpncpy (Makefile.am): Likewise.
9676 * modules/strcase (Makefile.am): Likewise.
9677 * modules/strcasestr (Makefile.am): Likewise.
9678 * modules/strchrnul (Makefile.am): Likewise.
9679 * modules/strcspn (Makefile.am): Likewise.
9680 * modules/strdup (Makefile.am): Likewise.
9681 * modules/strerror (Makefile.am): Likewise.
9682 * modules/strftime (Makefile.am): Likewise.
9683 * modules/strndup (Makefile.am): Likewise.
9684 * modules/strnlen (Makefile.am): Likewise.
9685 * modules/strpbrk (Makefile.am): Likewise.
9686 * modules/strsep (Makefile.am): Likewise.
9687 * modules/strstr (Makefile.am): Likewise.
9688 * modules/strtod (Makefile.am): Likewise.
9689 * modules/strtoimax (Makefile.am): Likewise.
9690 * modules/strtok_r (Makefile.am): Likewise.
9691 * modules/strtol (Makefile.am): Likewise.
9692 * modules/strtoll (Makefile.am): Likewise.
9693 * modules/strtoul (Makefile.am): Likewise.
9694 * modules/strtoull (Makefile.am): Likewise.
9695 * modules/strtoumax (Makefile.am): Likewise.
9696 * modules/strverscmp (Makefile.am): Likewise.
9697 * modules/sys_socket (Makefile.am): Likewise.
9698 * modules/sys_stat (Makefile.am): Likewise.
9699 * modules/sysexits (Makefile.am): Likewise.
9700 * modules/time_r (Makefile.am): Likewise.
9701 * modules/timegm (Makefile.am): Likewise.
9702 * modules/timespec (Makefile.am): Likewise.
9703 * modules/tmpfile-safer (Makefile.am): Likewise.
9704 * modules/trim (Makefile.am): Likewise.
9705 * modules/unistd-safer (Makefile.am): Likewise.
9706 * modules/unlinkdir (Makefile.am): Likewise.
9707 * modules/unlocked-io (Makefile.am): Likewise.
9708 * modules/userspec (Makefile.am): Likewise.
9709 * modules/utime (Makefile.am): Likewise.
9710 * modules/utimecmp (Makefile.am): Likewise.
9711 * modules/utimens (Makefile.am): Likewise.
9712 * modules/vasnprintf (Makefile.am): Likewise.
9713 * modules/vasprintf (Makefile.am): Likewise.
9714 * modules/vsnprintf (Makefile.am): Likewise.
9715 * modules/xalloc (Makefile.am): Likewise.
9716 * modules/xgetcwd (Makefile.am): Likewise.
9717 * modules/xnanosleep (Makefile.am): Likewise.
9718 * modules/xreadlink (Makefile.am): Likewise.
9719 * modules/xstrtod (Makefile.am): Likewise.
9720 * modules/xstrtol (Makefile.am): Likewise.
9721 * modules/xstrtold (Makefile.am): Likewise.
9722 * modules/yesno (Makefile.am): Likewise.
9723 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
9725 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
9727 * modules/error (Makefile.am): Distribute files through
9728 EXTRA_DIST, not lib_SOURCES.
9730 2006-10-12 Eric Blake <ebb9@byu.net>
9732 * modules/error (Makefile.am): Distribute files in /lib.
9733 * modules/obstack (Makefile.am): Likewise.
9735 2006-10-12 Bruno Haible <bruno@clisp.org>
9737 * modules/acl (Makefile.am): Distribute all files in lib/ through
9739 * modules/arcfour (Makefile.am): Likewise.
9740 * modules/arctwo (Makefile.am): Likewise.
9741 * modules/argmatch (Makefile.am): Likewise.
9742 * modules/argz (Makefile.am): Likewise.
9743 * modules/atexit (Makefile.am): Likewise.
9744 * modules/backupfile (Makefile.am): Likewise.
9745 * modules/c-strtod (Makefile.am): Likewise.
9746 * modules/c-strtold (Makefile.am): Likewise.
9747 * modules/calloc (Makefile.am): Likewise.
9748 * modules/canon-host (Makefile.am): Likewise.
9749 * modules/canonicalize (Makefile.am): Likewise.
9750 * modules/chdir-long (Makefile.am): Likewise.
9751 * modules/chdir-safer (Makefile.am): Likewise.
9752 * modules/check-version (Makefile.am): Likewise.
9753 * modules/chown (Makefile.am): Likewise.
9754 * modules/cloexec (Makefile.am): Likewise.
9755 * modules/close-stream (Makefile.am): Likewise.
9756 * modules/closeout (Makefile.am): Likewise.
9757 * modules/crc (Makefile.am): Likewise.
9758 * modules/cycle-check (Makefile.am): Likewise.
9759 * modules/des (Makefile.am): Likewise.
9760 * modules/dirfd (Makefile.am): Likewise.
9761 * modules/dirname (Makefile.am): Likewise.
9762 * modules/dup2 (Makefile.am): Likewise.
9763 * modules/euidaccess (Makefile.am): Likewise.
9764 * modules/exclude (Makefile.am): Likewise.
9765 * modules/exitfail (Makefile.am): Likewise.
9766 * modules/fcntl-safer (Makefile.am): Likewise.
9767 * modules/file-type (Makefile.am): Likewise.
9768 * modules/fileblocks (Makefile.am): Likewise.
9769 * modules/filemode (Makefile.am): Likewise.
9770 * modules/filenamecat (Makefile.am): Likewise.
9771 * modules/fnmatch (Makefile.am): Likewise.
9772 * modules/fopen-safer (Makefile.am): Likewise.
9773 * modules/fpending (Makefile.am): Likewise.
9774 * modules/fprintftime (Makefile.am): Likewise.
9775 * modules/free (Makefile.am): Likewise.
9776 * modules/fsusage (Makefile.am): Likewise.
9777 * modules/ftruncate (Makefile.am): Likewise.
9778 * modules/fts (Makefile.am): Likewise.
9779 * modules/gc (Makefile.am): Likewise.
9780 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
9781 * modules/getaddrinfo (Makefile.am): Likewise.
9782 * modules/getcwd (Makefile.am): Likewise.
9783 * modules/getdelim (Makefile.am): Likewise.
9784 * modules/getdomainname (Makefile.am): Likewise.
9785 * modules/getgroups (Makefile.am): Likewise.
9786 * modules/gethostname (Makefile.am): Likewise.
9787 * modules/gethrxtime (Makefile.am): Likewise.
9788 * modules/getline (Makefile.am): Likewise.
9789 * modules/getloadavg (Makefile.am): Likewise.
9790 * modules/getlogin_r (Makefile.am): Likewise.
9791 * modules/getopt (Makefile.am): Likewise.
9792 * modules/getpass (Makefile.am): Likewise.
9793 * modules/getpass-gnu (Makefile.am): Likewise.
9794 * modules/getsubopt (Makefile.am): Likewise.
9795 * modules/gettime (Makefile.am): Likewise.
9796 * modules/gettimeofday (Makefile.am): Likewise.
9797 * modules/getugroups (Makefile.am): Likewise.
9798 * modules/getusershell (Makefile.am): Likewise.
9799 * modules/glob (Makefile.am): Likewise.
9800 * modules/group-member (Makefile.am): Likewise.
9801 * modules/hard-locale (Makefile.am): Likewise.
9802 * modules/hash (Makefile.am): Likewise.
9803 * modules/hmac-md5 (Makefile.am): Likewise.
9804 * modules/hmac-sha1 (Makefile.am): Likewise.
9805 * modules/human (Makefile.am): Likewise.
9806 * modules/idcache (Makefile.am): Likewise.
9807 * modules/imaxabs (Makefile.am): Likewise.
9808 * modules/imaxdiv (Makefile.am): Likewise.
9809 * modules/inet_ntop (Makefile.am): Likewise.
9810 * modules/inet_pton (Makefile.am): Likewise.
9811 * modules/inttostr (Makefile.am): Likewise.
9812 * modules/isapipe (Makefile.am): Likewise.
9813 * modules/lchown (Makefile.am): Likewise.
9814 * modules/long-options (Makefile.am): Likewise.
9815 * modules/lstat (Makefile.am): Likewise.
9816 * modules/malloc (Makefile.am): Likewise.
9817 * modules/mathl (Makefile.am): Likewise.
9818 * modules/mbchar (Makefile.am): Likewise.
9819 * modules/md2 (Makefile.am): Likewise.
9820 * modules/md4 (Makefile.am): Likewise.
9821 * modules/md5 (Makefile.am): Likewise.
9822 * modules/memcasecmp (Makefile.am): Likewise.
9823 * modules/memchr (Makefile.am): Likewise.
9824 * modules/memcmp (Makefile.am): Likewise.
9825 * modules/memcoll (Makefile.am): Likewise.
9826 * modules/memcpy (Makefile.am): Likewise.
9827 * modules/memmem (Makefile.am): Likewise.
9828 * modules/memmove (Makefile.am): Likewise.
9829 * modules/mempcpy (Makefile.am): Likewise.
9830 * modules/memrchr (Makefile.am): Likewise.
9831 * modules/memset (Makefile.am): Likewise.
9832 * modules/memxor (Makefile.am): Likewise.
9833 * modules/mkancesdirs (Makefile.am): Likewise.
9834 * modules/mkdir (Makefile.am): Likewise.
9835 * modules/mkdir-p (Makefile.am): Likewise.
9836 * modules/mkdtemp (Makefile.am): Likewise.
9837 * modules/mkstemp (Makefile.am): Likewise.
9838 * modules/mktime (Makefile.am): Likewise.
9839 * modules/modechange (Makefile.am): Likewise.
9840 * modules/mountlist (Makefile.am): Likewise.
9841 * modules/nanosleep (Makefile.am): Likewise.
9842 * modules/openat (Makefile.am): Likewise.
9843 * modules/pagealign_alloc (Makefile.am): Likewise.
9844 * modules/physmem (Makefile.am): Likewise.
9845 * modules/poll (Makefile.am): Likewise.
9846 * modules/posixtm (Makefile.am): Likewise.
9847 * modules/posixver (Makefile.am): Likewise.
9848 * modules/putenv (Makefile.am): Likewise.
9849 * modules/quote (Makefile.am): Likewise.
9850 * modules/quotearg (Makefile.am): Likewise.
9851 * modules/raise (Makefile.am): Likewise.
9852 * modules/read-file (Makefile.am): Likewise.
9853 * modules/readline (Makefile.am): Likewise.
9854 * modules/readlink (Makefile.am): Likewise.
9855 * modules/readtokens (Makefile.am): Likewise.
9856 * modules/readutmp (Makefile.am): Likewise.
9857 * modules/realloc (Makefile.am): Likewise.
9858 * modules/regex (Makefile.am): Likewise.
9859 * modules/rename (Makefile.am): Likewise.
9860 * modules/rename-dest-slash (Makefile.am): Likewise.
9861 * modules/rijndael (Makefile.am): Likewise.
9862 * modules/rmdir (Makefile.am): Likewise.
9863 * modules/rpmatch (Makefile.am): Likewise.
9864 * modules/safe-read (Makefile.am): Likewise.
9865 * modules/safe-write (Makefile.am): Likewise.
9866 * modules/same (Makefile.am): Likewise.
9867 * modules/save-cwd (Makefile.am): Likewise.
9868 * modules/savedir (Makefile.am): Likewise.
9869 * modules/setenv (Makefile.am): Likewise.
9870 * modules/settime (Makefile.am): Likewise.
9871 * modules/sha1 (Makefile.am): Likewise.
9872 * modules/sig2str (Makefile.am): Likewise.
9873 * modules/snprintf (Makefile.am): Likewise.
9874 * modules/stdlib-safer (Makefile.am): Likewise.
9875 * modules/stpcpy (Makefile.am): Likewise.
9876 * modules/stpncpy (Makefile.am): Likewise.
9877 * modules/strcase (Makefile.am): Likewise.
9878 * modules/strcasestr (Makefile.am): Likewise.
9879 * modules/strchrnul (Makefile.am): Likewise.
9880 * modules/strcspn (Makefile.am): Likewise.
9881 * modules/strdup (Makefile.am): Likewise.
9882 * modules/strerror (Makefile.am): Likewise.
9883 * modules/strftime (Makefile.am): Likewise.
9884 * modules/strndup (Makefile.am): Likewise.
9885 * modules/strnlen (Makefile.am): Likewise.
9886 * modules/strpbrk (Makefile.am): Likewise.
9887 * modules/strsep (Makefile.am): Likewise.
9888 * modules/strstr (Makefile.am): Likewise.
9889 * modules/strtod (Makefile.am): Likewise.
9890 * modules/strtoimax (Makefile.am): Likewise.
9891 * modules/strtok_r (Makefile.am): Likewise.
9892 * modules/strtol (Makefile.am): Likewise.
9893 * modules/strtoll (Makefile.am): Likewise.
9894 * modules/strtoul (Makefile.am): Likewise.
9895 * modules/strtoull (Makefile.am): Likewise.
9896 * modules/strtoumax (Makefile.am): Likewise.
9897 * modules/strverscmp (Makefile.am): Likewise.
9898 * modules/time_r (Makefile.am): Likewise.
9899 * modules/timegm (Makefile.am): Likewise.
9900 * modules/tmpfile-safer (Makefile.am): Likewise.
9901 * modules/unistd-safer (Makefile.am): Likewise.
9902 * modules/unlinkdir (Makefile.am): Likewise.
9903 * modules/userspec (Makefile.am): Likewise.
9904 * modules/utime (Makefile.am): Likewise.
9905 * modules/utimecmp (Makefile.am): Likewise.
9906 * modules/utimens (Makefile.am): Likewise.
9907 * modules/vasnprintf (Makefile.am): Likewise.
9908 * modules/vasprintf (Makefile.am): Likewise.
9909 * modules/vsnprintf (Makefile.am): Likewise.
9910 * modules/xalloc (Makefile.am): Likewise.
9911 * modules/xgetcwd (Makefile.am): Likewise.
9912 * modules/xnanosleep (Makefile.am): Likewise.
9913 * modules/xreadlink (Makefile.am): Likewise.
9914 * modules/xstrtod (Makefile.am): Likewise.
9915 * modules/xstrtol (Makefile.am): Likewise.
9916 * modules/xstrtold (Makefile.am): Likewise.
9917 * modules/yesno (Makefile.am): Likewise.
9919 2006-10-12 Jim Meyering <jim@meyering.net>
9921 * m4/getloadavg.m4: Revert the change below.
9923 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
9924 lib/getloadavg.c using "ls -L", not "test -f". The latter would
9925 fail with a symlink, which is what coreutils' ./bootstrap now
9928 2006-10-12 Bruno Haible <bruno@clisp.org>
9930 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
9932 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
9933 MSVC and mingw explicitly.
9935 2006-10-11 Simon Josefsson <jas@extundo.com>
9936 Bruno Haible <bruno@clisp.org>
9938 Add support for multiple gnulib-tool invocations in the scope of a
9939 single configure.ac file.
9940 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
9941 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
9942 with the same contents as the _LIBADD variable.
9943 (func_emit_initmacro_start, func_emit_initmacro_end,
9944 func_emit_initmacro_done): New functions.
9945 (func_import, func_create_testdir): Invoke them. Allow the identifiers
9946 gl_LIBOBJS and gl_LTLIBOBJS.
9948 2006-10-11 Bruno Haible <bruno@clisp.org>
9950 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
9951 (func_create_testdir): Don't create po/Makefile.am, don't invoke
9952 autoreconf. Instead, invoke autopoint explicitly but move back the
9953 *.m4 files from gnulib.
9955 2006-10-11 Bruno Haible <bruno@clisp.org>
9957 * gnulib-tool (func_usage): Make module names after --create-testdir
9959 (func_create_testdir): If no module was specified, use nearly all
9962 2006-10-12 Jim Meyering <jim@meyering.net>
9964 Big performance improvement for fts-based tools that use FTS_NOSTAT.
9965 Avoid spurious inode-mismatch problems on non-POSIX file systems.
9966 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
9967 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
9968 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
9969 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
9970 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
9971 (fts_set_stat_required): New function.
9972 (fts_open): Defer the calls to fts_stat, if possible or requested.
9973 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
9974 into fts_stat itself.
9975 (fts_read): Perform any required (deferred) fts_stat call.
9976 (fts_build): Likewise, for the directory we're about to open and read.
9977 In the readdir loop, carefully decide whether each entry will require
9978 an eventual call to fts_stat, using dirent.d_type info if available.
9979 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
9980 a command line argument into this function. Update all callers.
9981 Map a return value of FTS_DOT to FTS_D for a command line argument.
9982 * modules/fts (Depends-on): Add d-type. Alphabetize.
9983 Thanks to Miklos Szeredi for his tenacity and for the initial
9984 bug report about "find" failing on a FUSE-based file system.
9986 * lib/fts.c (fts_open): Use consistent indentation.
9988 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
9990 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
9991 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
9992 reported by Jim Meyering. All uses of cache variables renamed
9993 to match Autoconf's.
9994 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
9997 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
9998 Fix misspelling in diagnostic.
10000 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
10002 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
10003 defined. Problem reported by Matthew Woehlke.
10005 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
10006 Add support for Tandem NonStop R series.
10007 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
10010 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
10011 (has_trailing_slash): Omit size arg; all callers changed.
10012 Omit 'inline', since it doesn't help performance and we'd
10013 need to configure it.
10014 Don't count //, ///, etc. as having a trailing slash.
10015 As a side effect, this removes a C99ism reported by Matthew Woehlke.
10016 (rpl_rename_dest_slash): On failure, use rename's errno rather
10017 than (in some cases) an incorrect or junk errno.
10018 Simplify code by removing need to compute length; this does
10019 cause it to make two passes instead of one over the file name,
10022 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
10023 change, since Autoconf's version may no longer be appropriate now
10024 that we are using CVS Autoconf's version. Add support for Tandem.
10026 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
10027 Bruno Haible <bruno@clisp.org>
10029 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
10030 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
10031 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
10032 gl_AC_TYPE_LONG_LONG.
10034 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
10035 instead of HAVE_LONG_LONG.
10036 * lib/printf-args.c (printf_fetchargs): Likewise.
10037 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
10038 * lib/vasnprintf.c (VASNPRINTF): Likewise.
10039 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
10040 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
10041 gl_AC_TYPE_LONG_LONG.
10043 2006-10-11 Bruno Haible <bruno@clisp.org>
10045 * m4/longlong.m4: Add comments.
10046 * m4/ulonglong.m4: Likewise.
10048 2006-10-10 Bruno Haible <bruno@clisp.org>
10050 Make it possible to #define stpcpy, strdup to aliases.
10051 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
10052 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
10054 2006-10-10 Bruno Haible <bruno@clisp.org>
10056 Make it possible to #define gcd to an alias.
10057 * lib/gcd.c: Include config.h.
10059 2006-10-10 Bruno Haible <bruno@clisp.org>
10061 Make it possible to #define c_isascii to an alias.
10062 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
10063 defined. Undefine the macros before defining them, to avoid gcc
10065 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
10066 define NO_C_CTYPE_MACROS early.
10068 2006-10-10 Bruno Haible <bruno@clisp.org>
10070 Make it possible to #define set_program_name to an alias.
10071 * lib/progname.c: Don't undefine set_program_name; instead, undefine
10072 ENABLE_RELOCATABLE early.
10074 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
10076 Port to Tandem NSK OSS, which has 64-bit signed int but at most
10077 32-bit unsigned int. Problem reported by Matthew Woehlke in:
10078 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
10079 More generally, don't assume that 64-bit signed int is available
10080 if unsigned int is, and vice versa.
10081 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
10082 unsigned symbols, not on their signed counterparts.
10083 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
10084 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
10085 (UINT64_C, UINTMAX_C):
10087 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
10088 unsigned counterparts.
10089 (Have_long_long, Unsigned): New macros.
10090 (Int): Renamed from INT.
10091 (strtoimax): Use the new macros.
10092 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
10093 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
10094 * modules/inttypes (inttypes.h): Substitute
10095 HAVE_UNSIGNED_LONG_LONG_INT.
10096 * modules/stdint (stdint.h): Likewise.
10097 (Files): Add m4/ulonglong.m4.
10099 2006-10-10 Bruno Haible <bruno@clisp.org>
10101 Fix a gcc -Wshadow warning.
10102 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
10104 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
10105 gl_linked_indexof_from_to): Likewise.
10106 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
10108 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
10110 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
10111 Reported by Eric Blake.
10113 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
10115 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
10116 for NetBSD. Problem reported by Bruno Haible.
10118 2006-10-09 Jim Meyering <jim@meyering.net>
10120 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
10121 Patch from Bruno Haible.
10123 2006-10-09 Jim Meyering <jim@meyering.net>
10125 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
10126 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
10127 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
10129 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
10131 Don't include <config.h> twice; this doesn't work in some cases,
10132 e.g., when config.h has "#define intmax_t long long int" and
10133 we include <config.h>, <inttypes.h>, <config.h> in that order.
10134 Problem reported by Matthew Woehlke in:
10135 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
10136 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
10137 * lib/fts-cycle.c: Don't include config.h.
10138 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
10139 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
10140 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
10141 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
10143 * lib/xstrtoumax.c: Likewise.
10144 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
10145 __strtol and the like, so that this module is more like its siblings.
10146 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
10147 Remove; no longer needed now that we assume gnulib inttypes.h.
10149 2006-10-08 Bruno Haible <bruno@clisp.org>
10151 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
10154 2006-10-07 Jim Meyering <jim@meyering.net>
10156 * modules/inttypes (inttypes.h): Revert what seems to have been
10157 an inadvertent part of today's change: use "|", not "/" in the
10158 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
10160 2006-10-07 Bruno Haible <bruno@clisp.org>
10162 * modules/sublist: New file.
10164 2006-10-07 Bruno Haible <bruno@clisp.org>
10166 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
10167 * modules/argz (argz.h): Likewise.
10168 * modules/arpa_inet (arpa/inet.h): Likewise.
10169 * modules/byteswap (byteswap.h): Likewise.
10170 * modules/configmake (configmake.h): Likewise.
10171 * modules/fcntl (fcntl.h): Likewise.
10172 * modules/fnmatch (fnmatch.h): Likewise.
10173 * modules/getopt (getopt.h): Likewise.
10174 * modules/glob (glob.h): Likewise.
10175 * modules/inttypes (inttypes.h): Likewise.
10176 * modules/netinet_in (netinet/in.h): Likewise.
10177 * modules/poll (poll.h): Likewise.
10178 * modules/stdbool (stdbool.h): Likewise.
10179 * modules/stdint (stdint.h): Likewise.
10180 * modules/sys_select (sys/select.h): Likewise.
10181 * modules/sys_socket (sys/socket.h): Likewise.
10182 * modules/sys_stat (sys/stat.h): Likewise.
10183 * modules/sysexits (sysexits.h): Likewise.
10184 * modules/unistd (unistd.h): Likewise.
10185 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
10186 Add a "DO NOT EDIT" comment to the generated file.
10187 (func_import): Likewise for gnulib-comp.m4.
10189 2006-10-07 Bruno Haible <bruno@clisp.org>
10191 * lib/gl_sublist.h: New file.
10192 * lib/gl_sublist.c: New file.
10194 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
10196 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
10197 name (relative to the original working directory) and the file
10198 name component (relative to the temporary working directory). All
10200 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
10201 * lib/mkdir-p.c (make_dir_parents): Likewise.
10202 * lib/mkdir-p.h (make_dir_parents): Likewise.
10204 2006-10-06 Eric Blake <ebb9@byu.net>
10206 Define several macros for use by the clean-temp module.
10207 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
10208 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
10209 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
10211 * lib/clean-temp.h (close_stream_temp): New declaration.
10212 * lib/clean-temp.c (includes): Pull in headers according to what
10213 other modules are in use.
10214 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
10216 2006-10-06 Bruno Haible <bruno@clisp.org>
10218 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
10219 instead of fopen, fwriteerror.
10221 2006-10-06 Bruno Haible <bruno@clisp.org>
10223 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
10224 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
10226 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
10227 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
10228 Return an error indicator.
10229 Suggested by Eric Blake.
10231 2006-10-06 Bruno Haible <bruno@clisp.org>
10233 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
10234 Reported by Eric Blake.
10236 2006-10-06 Bruno Haible <bruno@clisp.org>
10238 * modules/closeout (Description): Mention stderr too.
10240 2006-10-06 Bruno Haible <bruno@clisp.org>
10241 and Paul Eggert <eggert@cs.ucla.edu>
10243 * lib/closeout.c (close_stdout): Also close stderr.
10244 * lib/closeout.h: Update comment.
10246 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
10248 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
10249 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
10250 * lib/dirchownmod.c: Include lchown.h.
10251 * lib/lchown.c: Don't include files that lchown.h now includes.
10252 Don't declare chown, since lchown.h now does that.
10253 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
10254 (lchown): Define to rpl_chown if lchown is declared but
10255 does not exist. Declare using a prototype if lchown is not
10256 declared. Add a copyright notice.
10257 * lib/mkstemp.h: Include <unistd.h>.
10258 * lib/openat.c: Include lchown.h.
10260 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
10261 we now test for that separately.
10262 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
10263 rather than O_NOFOLLOW, when testing whether it's possible to
10264 avoid a race condition reliably.
10265 * lib/savewd.c (savewd_chdir): Likewise.
10267 Remove macros that are no longer needed now that stdint.h is
10269 * lib/fsusage.c (UINTMAX_MAX): Remove.
10270 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
10271 * lib/utimecmp.c (SIZE_MAX): Remove.
10273 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
10275 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
10276 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
10279 2006-10-05 Bruno Haible <bruno@clisp.org>
10281 * lib/gl_list.h (gl_sortedlist_search_from_to,
10282 gl_sortedlist_indexof_from_to): New declarations.
10283 (gl_list_implementation): New fields sortedlist_search_from_to,
10284 sortedlist_indexof_from_to.
10285 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
10287 * lib/gl_list.c (gl_sortedlist_search_from_to,
10288 gl_sortedlist_indexof_from_to): New functions.
10289 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
10291 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
10292 (gl_array_sortedlist_search_from_to): New function.
10293 (gl_array_list_implementation): Update.
10294 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
10296 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
10297 (gl_carray_sortedlist_search_from_to): New function.
10298 (gl_carray_list_implementation): Update.
10299 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
10300 gl_linked_sortedlist_indexof_from_to): New functions.
10301 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
10302 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
10303 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
10304 gl_tree_sortedlist_indexof_from_to): New functions.
10305 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
10306 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
10308 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
10309 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
10312 2006-10-05 Bruno Haible <bruno@clisp.org>
10314 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
10315 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
10316 (struct gl_list_implementation): Add fields search_from_to,
10317 indexof_from_to. Remove fields search, indexof.
10318 (gl_list_search): Use the search_from_to method.
10319 (gl_list_search_from, gl_list_search_from_to): New functions.
10320 (gl_list_indexof): Use the indexof_from_to method.
10321 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
10322 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
10323 (gl_list_search_from, gl_list_search_from_to): New functions.
10324 (gl_list_indexof): Use the indexof_from_to method.
10325 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
10326 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
10327 gl_array_indexof. Add start_index, end_index arguments.
10328 (gl_array_search_from_to): Renamed from gl_array_search. Add
10329 start_index, end_index arguments.
10330 (gl_array_remove, gl_array_list_implementation): Update.
10331 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
10332 gl_carray_indexof. Add start_index, end_index arguments.
10333 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
10334 start_index, end_index arguments.
10335 (gl_carray_remove, gl_carray_list_implementation): Update.
10336 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
10337 gl_linked_search. Add start_index, end_index arguments.
10338 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
10339 start_index, end_index arguments.
10340 (gl_linked_remove): Update.
10341 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
10342 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
10343 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
10345 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
10346 gl_tree_search. Add start_index, end_index arguments.
10347 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
10348 start_index, end_index arguments.
10349 (gl_tree_remove): Update.
10350 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
10351 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
10352 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
10354 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
10355 gl_tree_search. Add start_index, end_index arguments.
10356 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
10357 start_index, end_index arguments.
10358 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
10360 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
10362 2006-10-05 Bruno Haible <bruno@clisp.org>
10364 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
10366 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
10367 fwriteerror_temp): New declarations.
10368 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
10369 (descriptors): New variable.
10370 (cleanup): First, close the descriptors.
10371 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
10372 fclose_temp, fwriteerror_temp): New functions.
10374 2006-10-04 Jim Meyering <jim@meyering.net>
10376 * lib/fts.c (fts_open): Tiny comment change.
10378 2006-10-04 Bruno Haible <bruno@clisp.org>
10380 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
10381 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
10383 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
10384 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
10385 gl_LOCK_EARLY_BODY.
10386 (gl_LOCK): Require gl_LOCK_BODY.
10388 2006-10-04 Bruno Haible <bruno@clisp.org>
10390 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
10391 (gl_oset_search_atleast): New declaration.
10392 (struct gl_oset_implementation): Add field 'search_atleast'.
10393 (gl_oset_search_atleast): New inline function.
10394 * lib/gl_oset.c (gl_oset_search_atleast): New function.
10395 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
10396 (gl_array_oset_implementation): Update.
10397 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
10398 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
10399 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
10401 2006-10-04 Bruno Haible <bruno@clisp.org>
10403 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
10405 2006-10-03 Bruno Haible <bruno@clisp.org>
10407 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
10408 from gl_avltreehash_list_implementation.
10410 2006-10-03 Bruno Haible <bruno@clisp.org>
10412 * lib/gl_oset.c (gl_oset_add): Fix return type.
10414 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
10416 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
10418 2006-10-02 Eric Blake <ebb9@byu.net>
10420 * modules/strnlen (Depends-on): Add extensions.
10422 2006-10-02 Eric Blake <ebb9@byu.net>
10424 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
10425 definition in 2.60+.
10427 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
10429 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
10432 2006-10-02 Bruno Haible <bruno@clisp.org>
10434 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
10435 to the AUTOMAKE_OPTIONS.
10436 Reported by Jim Meyering.
10438 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
10440 Work around bug in Solaris 10 /proc file system:
10441 /proc/self/fd/NNN/.. isn't the parent directory of
10442 the directory whose file descriptor is NNN. This needs to
10443 be worked around at run time, not compile time, since a
10444 program might be built on Solaris 8, where things work, and
10446 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
10447 to use the following interface instead:
10448 (OPENAT_BUFFER_SIZE): New macro.
10449 (openat_proc_name): New function.
10450 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
10451 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
10453 * lib/openat-proc.c: New file.
10454 * modules/openat (Files): Add lib/openat-proc.c.
10455 (Depends-on): Add same-inode, stdbool.
10456 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
10458 2006-09-29 Bruno Haible <bruno@clisp.org>
10460 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
10461 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
10462 argument. Set stdout_closed before testing for ferror, not after.
10463 (fwriteerror, fwriteerror_no_ebadf): New functions.
10465 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10467 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
10469 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
10471 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
10472 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
10474 2006-09-28 Jim Meyering <jim@meyering.net>
10476 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
10477 Include <unistd.h>.
10479 2006-09-28 Bruno Haible <bruno@clisp.org>
10481 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
10482 * modules/linkedhash-list (Depends-on): Likewise.
10483 * modules/rbtreehash-list (Depends-on): Likewise.
10485 2006-09-28 Bruno Haible <bruno@clisp.org>
10487 * lib/strndup.h: Simplify the redefinition of strndup.
10488 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
10489 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
10491 2006-09-28 Bruno Haible <bruno@clisp.org>
10493 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
10494 * lib/gl_linkedhash_list.c: Likewise.
10495 * lib/gl_rbtreehash_list.c: Likewise.
10497 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
10499 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
10502 * lib/__fpending.h: Don't include <stdio_ext.h> unless
10503 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
10504 it causes <stdio_ext.h> to cause a compile-time error.
10505 Problem reported by Nelson H. F. Beebe.
10506 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
10507 of HAVE_DECL___PENDING.
10509 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
10510 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
10513 2006-09-27 Jim Meyering <jim@meyering.net>
10515 This file could end up with a definition for a function
10516 named __strndup, rather than rpl_strndup on a system with
10517 incomplete weak_alias support.
10518 * lib/strndup.c (strndup): Rename from __strndup.
10519 Remove #defines that used to map __strndup to strndup.
10520 Don't use K&R prototypes.
10521 Remove LIBC-related code, since this file is not sync'd with glibc.
10522 * lib/strndup.h: Revamp, accordingly.
10523 * m4/strndup.m4: Modernize.
10525 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
10527 * modules/savewd (Depends-on): Add 'raise'.
10528 * lib/savewd.c: Include <signal.h>, for 'raise'.
10530 2006-09-26 Jim Meyering <jim@meyering.net>
10532 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
10533 when we detect Darwin 8.7.0's acl_get_file bug.
10534 Rearrange to perform the new (below) run-test while $LIBS
10535 contains any acl-related library. Set USE_ACL at the end.
10536 (gl_ACL_GET_FILE): New function.
10538 2006-09-26 Eric Blake <ebb9@byu.net>
10540 * lib/verror.c: Include <config.h> unconditionally.
10542 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
10544 * modules/clock-time (Maintainer): Add self.
10545 * modules/getlogin_r (Depends-on): Add extensions.
10547 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10549 * modules/clock-time: New module.
10550 * modules/nanosleep (Depends-on): Add clock-time.
10551 * modules/gethrxtime (Depends-on): Likewise.
10552 * modules/gettime (Depends-on): Likewise.
10553 * modules/settime (Depends-on): Likewise.
10555 * modules/fts-lgpl: Depend on openat.
10556 * modules/mkancesdirs: Depend on savewd.
10557 * modules/mkdir-p: Likewise.
10559 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10561 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
10563 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
10564 `gl_have_arbitrary_file_name_length_limit' to
10565 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
10566 actually works between configure runs.
10568 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10569 Bruno Haible <bruno@clisp.org>
10571 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
10573 2006-09-25 Jim Meyering <jim@meyering.net>
10575 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
10576 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
10578 2006-09-25 Eric Blake <ebb9@byu.net>
10580 * gnulib-tool (func_import, func_create_testdir): Fix typos in
10581 exec's in 2006-09-18 patch when shuffling fds.
10583 2006-09-25 Bruno Haible <bruno@clisp.org>
10585 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
10586 Reported by Jim Meyering.
10588 2006-09-24 Jim Meyering <jim@meyering.net>
10590 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
10591 compare a pointer against a literal "0". That caused failures with
10592 at least HP-UX's hpcc.
10594 2006-09-22 Simon Josefsson <jas@extundo.com>
10598 * modules/gc-hmac-sha1:
10599 * modules/gc-hmac-md5:
10601 * modules/gc-arcfour: Distribute more files.
10603 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10605 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
10606 (gl_linked_iterator_from_to): Initialize struct completely.
10607 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
10608 (gl_tree_iterator_from_to): Likewise
10609 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
10610 * lib/gl_array_list.c [lint] (gl_array_iterator)
10611 (gl_array_iterator_from_to): Likewise.
10612 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
10613 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
10614 (gl_carray_iterator_from_to): Likewise.
10616 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
10617 * lib/md4.c (md4_process_block): Remove unused variable.
10618 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
10619 parentheses for clarity.
10621 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10623 * modules/bison-i18n (Depends-on): Add gettext.
10625 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10627 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
10628 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
10629 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
10630 also add missing comma that caused broken test.
10631 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
10632 stdlib.h, for `abort'.
10633 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
10635 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
10636 include unistd.h if present, for `rmdir'.
10637 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
10639 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
10640 in the process include standard headers for prototypes.
10641 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
10642 gets declared on GNU/Linux.
10643 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
10644 unistd.h, for `rmdir'.
10645 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
10647 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
10649 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
10651 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
10653 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10655 * gnulib-tool (func_version): Create output all at once. This
10656 may help avoid triggering unnecessary SIGPIPEs, and at any
10657 rate it doesn't hurt.
10659 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10660 Bruno Haible <bruno@clisp.org>
10662 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
10663 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
10664 * m4/signed.m4 (bh_C_SIGNED): Likewise.
10666 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
10667 (gl_FUNC_VASPRINTF): Invoke it.
10669 2006-09-22 Bruno Haible <bruno@clisp.org>
10671 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
10672 getloadavg.c as first argument.
10674 2006-09-22 Bruno Haible <bruno@clisp.org>
10676 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
10677 at the beginning of the gl_INIT macro.
10678 * modules/getloadavg (configure.ac): Pass $gl_source_base to
10681 2006-09-22 Bruno Haible <bruno@clisp.org>
10683 * gnulib-tool (func_create_megatestdir): Don't include the config-h
10685 Suggested by Ralf Wildenhues.
10687 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
10689 Import this patch from libc:
10691 2006-09-06 Jakub Jelinek <jakub@redhat.com>
10693 * lib/regex_internal.c (re_string_reconstruct): Handle
10694 offset < pstr->valid_raw_len && pstr->offsets_needed case.
10695 Ensure no bytes read before raw_mbs array. Pass a saved copy of
10696 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
10697 re_string_context_at.
10699 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
10701 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
10702 gl_REGEX now does it for us.
10703 (gl_REGEX): Add test taken from
10704 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
10706 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
10707 Check that large offsets work. Modernize Autoconf usages.
10708 Prefer "yes" to mean a good thing rather than a bad.
10709 Don't put "#define mkstemp" in config.h, as this might interfere
10710 with standard system headers that "#define mkstemp mkstemp64".
10712 * modules/mkstemp (Depends-on): Add extensions, so that
10713 mkstemp is visible on some platforms.
10714 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
10715 (Include): Change to "mkstemp.h" from <stdlib.h>.
10716 (Files): Add mkstemp.h.
10718 * lib/mkstemp.h: New file, since some standard headers
10720 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
10721 Include "mkstemp.h".
10722 Make the _LIBC code resemble glibc original more,
10723 e.g., use K&R style.
10724 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
10725 (mkstemp): Remove, since mkstemp.h does this for us.
10726 * lib/stdlib--.h: Include mkstemp.h.
10728 Import this patch from libc:
10730 2006-04-07 Ulrich Drepper <drepper@redhat.com>
10732 * lib/tempname.c (__gen_tempname): Change attempts_min
10733 into a macro. Use preprocessor to decide how to initialize
10734 attempts [Coverity CID 67].
10736 2006-09-20 Bruno Haible <bruno@clisp.org>
10738 * lib/mkdtemp.c: Import from libc.
10739 2006-04-07 Ulrich Drepper <drepper@redhat.com>
10740 * sysdeps/posix/tempname.c (__gen_tempname): Change
10741 attempts_min into a macro. Use preprocessor to decide how to
10742 initialize attempts [Coverity CID 67].
10743 2001-11-27 Paul Eggert <eggert@twinsun.com>
10744 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
10745 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
10747 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10749 * gnulib-tool (func_exit): New function, to allow to pass the
10750 exit status portably through the trap. Use everywhere.
10751 (--help, --version): Signal a write error.
10752 (trap): catch SIGPIPE, for write errors.
10753 Exit at the end of the trap, with the correct exit status.
10755 2006-09-19 Karl Berry <karl@gnu.org>
10757 * doc/gnulib.texi: note about the license texinfo files.
10759 2006-09-19 Eric Blake <ebb9@byu.net>
10761 * gnulib-tool: Avoid space-tab.
10763 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
10765 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
10766 that prevented coreutils 6.1 from building. Problem reported
10767 by Petter Reinholdtsen.
10769 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
10771 * gnulib-tool (avoidlist): Fix typo that broke options like
10772 --avoid=lock that are used by coreutils bootstrap.
10774 2006-09-18 Mark D. Baushke <mdb@gnu.org>
10776 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
10777 more systematically.
10779 2006-09-18 Jim Meyering <jim@meyering.net>
10781 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
10783 2006-09-18 Bruno Haible <bruno@clisp.org>
10785 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
10787 2006-09-18 Bruno Haible <bruno@clisp.org>
10789 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
10790 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
10791 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
10792 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
10793 * m4/gettext.m4: Require autoconf >= 2.52.
10794 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
10795 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
10796 of gl_cv_header_inttypes_h.
10798 2006-09-18 Bruno Haible <bruno@clisp.org>
10800 * lib/javaversion.c: Include configmake.h.
10802 2006-09-18 Bruno Haible <bruno@clisp.org>
10804 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
10805 avoid that the while loops be executed in a subshell.
10807 2006-09-18 Bruno Haible <bruno@clisp.org>
10809 * MODULES.html.sh (func_module): Break long lines.
10810 Suggested by Bruce Korb <bkorb@gnu.org>.
10812 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10814 Speed up by a factor of 1.12.
10815 * gnulib-tool (nl): New variable.
10816 (func_import): Rewrite include directive extraction to only read each
10819 2006-09-17 Bruno Haible <bruno@clisp.org>
10821 * modules/javaversion (Makefile.am): Remove DEFS setting.
10822 (Depends-on): Add configmake, for PKGDATADIR definition.
10824 2006-09-17 Bruno Haible <bruno@clisp.org>
10826 * gnulib-tool (func_create_testdir): Rewrite all files at once.
10828 2006-09-17 Bruno Haible <bruno@clisp.org>
10830 * gnulib-tool (func_append): New function, stolen from libtool.m4.
10831 (func_modules_transitive_closure, func_modules_add_dummy,
10832 func_modules_to_filelist, func_import, func_create_testdir,
10833 func_create_megatestdir, ...): Use it wherever possible.
10834 Suggested by Ralf Wildenhues.
10836 2006-09-16 Karl Berry <karl@gnu.org>
10838 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
10839 to avoid sectioning errors.
10840 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
10841 [ifinfo]: blank line after @center-ed titles.
10842 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
10843 Spell FSF address consistently with others.
10844 (These changes approved by rms.)
10846 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10848 Speed up by a factor of 1.61.
10849 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
10850 already checked module names again.
10852 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10854 Speed up by a factor of 1.13.
10855 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
10856 for new_files, and the input to func_add_or_update.
10858 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10860 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
10861 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
10863 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
10865 * modules/mkancesdirs (Depends-on): Add fcntl.
10866 * modules/savewd: New file.
10867 * MODULES.html.sh (File system functions): Add savewd.
10869 * modules/configmake (Makefile.am): Add support for the
10870 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
10872 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
10874 * m4/savewd.m4: New file.
10876 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
10878 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
10879 (dirchownmod): New arg FD. All callers changed.
10880 Use FD rather than opening the directory ourself, as opening is
10881 now the caller's responsibility.
10882 * lib/dirchownmod.h: Likewise.
10883 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
10884 hosts that require <sys/types.h> before <sys/stat.h>. Include
10885 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
10886 (test_dir): Remove.
10887 (mkancesdirs): Return length of prefix of FILE that has already
10888 been made, or -2 if there is a child doing the work. Redo
10889 algorithm so that it is O(N) rather than O(N**2). Optimize away
10890 ".", and treat ".." specially since it might stray back into
10891 already-created areas. Use a subprocess if necessary. New arg
10892 WD; all users changed. MAKE_DIR function should now return 1
10893 if it creates a directory that is not readable. Return -2 if
10894 a child process is spun off.
10895 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
10896 Adjust signature to match code.
10897 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
10898 (make_dir_parents): Use a subprocess if necessary. New arg WD;
10900 * lib/savewd.c, lib/savewd.h: New files.
10902 2006-09-15 Jim Meyering <jim@meyering.net>
10904 * modules/rename-dest-slash: New module.
10905 * MODULES.html.sh (posix_compat): Add it here.
10907 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
10909 2006-09-15 Jim Meyering <jim@meyering.net>
10911 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
10914 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
10916 2006-09-15 Jim Meyering <jim@meyering.net>
10918 * lib/rename-dest-slash.c (has_trailing_slash): Use
10919 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
10920 (rpl_rename_dest_slash): Perform the cheaper trailing slash
10921 test before testing whether SRC is a directory.
10922 Suggestions from Bruno Haible.
10924 Avoid a warning about an unused variable.
10925 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
10926 into the #ifdef block where it's used.
10928 * lib/rename-dest-slash.c: New file.
10930 2006-09-14 Bruno Haible <bruno@clisp.org>
10932 * lib/allocsa.c: Include <config.h> unconditionally.
10933 * lib/asnprintf.c: Likewise.
10934 * lib/asprintf.c: Likewise.
10935 * lib/c-strcasecmp.c: Likewise.
10936 * lib/c-strcasestr.c: Likewise.
10937 * lib/c-strncasecmp.c: Likewise.
10938 * lib/c-strstr.c: Likewise.
10939 * lib/classpath.c: Likewise.
10940 * lib/clean-temp.c: Likewise.
10941 * lib/concatpath.c: Likewise.
10942 * lib/copy-file.c: Likewise.
10943 * lib/csharpcomp.c: Likewise.
10944 * lib/csharpexec.c: Likewise.
10945 * lib/execute.c: Likewise.
10946 * lib/fatal-signal.c: Likewise.
10947 * lib/findprog.c: Likewise.
10948 * lib/fwriteerror.c: Likewise.
10949 * lib/gl_array_list.c: Likewise.
10950 * lib/gl_array_oset.c: Likewise.
10951 * lib/gl_avltree_list.c: Likewise.
10952 * lib/gl_avltree_oset.c: Likewise.
10953 * lib/gl_avltreehash_list.c: Likewise.
10954 * lib/gl_carray_list.c: Likewise.
10955 * lib/gl_linked_list.c: Likewise.
10956 * lib/gl_linkedhash_list.c: Likewise.
10957 * lib/gl_list.c: Likewise.
10958 * lib/gl_oset.c: Likewise.
10959 * lib/gl_rbtree_list.c: Likewise.
10960 * lib/gl_rbtree_oset.c: Likewise.
10961 * lib/gl_rbtreehash_list.c: Likewise.
10962 * lib/imaxabs.c: Likewise.
10963 * lib/imaxdiv.c: Likewise.
10964 * lib/javacomp.c: Likewise.
10965 * lib/javaexec.c: Likewise.
10966 * lib/javaversion.c: Likewise.
10967 * lib/linebreak.c: Likewise.
10968 * lib/localcharset.c: Likewise.
10969 * lib/lock.c: Likewise.
10970 * lib/mbchar.c: Likewise.
10971 * lib/mbswidth.c: Likewise.
10972 * lib/mkdtemp.c: Likewise.
10973 * lib/pipe.c: Likewise.
10974 * lib/printf-args.c: Likewise.
10975 * lib/printf-parse.c: Likewise.
10976 * lib/progname.c: Likewise.
10977 * lib/progreloc.c: Likewise.
10978 * lib/readlink.c: Likewise.
10979 * lib/sh-quote.c: Likewise.
10980 * lib/stpcpy.c: Likewise.
10981 * lib/stpncpy.c: Likewise.
10982 * lib/strcasecmp.c: Likewise.
10983 * lib/strcasestr.c: Likewise.
10984 * lib/strcspn.c: Likewise.
10985 * lib/striconv.c: Likewise.
10986 * lib/strncasecmp.c: Likewise.
10987 * lib/strnlen1.c: Likewise.
10988 * lib/strstr.c: Likewise.
10989 * lib/strtok_r.c: Likewise.
10990 * lib/tls.c: Likewise.
10991 * lib/tmpdir.c: Likewise.
10992 * lib/unicodeio.c: Likewise.
10993 * lib/unsetenv.c: Likewise.
10994 * lib/vasnprintf.c: Likewise.
10995 * lib/vasprintf.c: Likewise.
10996 * lib/wait-process.c: Likewise.
10997 * lib/xallocsa.c: Likewise.
10998 * lib/xsetenv.c: Likewise.
10999 * lib/xstriconv.c: Likewise.
11001 2006-09-13 Simon Josefsson <jas@extundo.com>
11003 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
11004 that internally, suggested by Ralf Wildenhues
11005 <Ralf.Wildenhues@gmx.de>.
11007 2006-09-13 Simon Josefsson <jas@extundo.com>
11009 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
11011 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11013 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
11015 * lib/_fpending.c: Include <config.h> unconditionally, since we no
11016 longer worry about uses that don't define HAVE_CONFIG_H.
11017 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
11018 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
11019 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
11020 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
11021 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
11022 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
11023 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
11024 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
11025 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
11026 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
11027 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
11028 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
11029 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
11030 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
11031 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
11032 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
11033 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
11034 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
11035 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
11036 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
11037 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
11038 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
11039 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
11040 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
11041 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
11042 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
11043 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
11044 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
11045 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
11046 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
11047 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
11048 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
11049 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
11050 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
11051 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
11052 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
11053 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
11054 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
11055 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
11056 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
11057 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
11060 2006-09-13 Eric Blake <ebb9@byu.net>
11062 * lib/getopt.c: Fix typo in last commit.
11064 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
11066 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
11069 2006-09-12 Jim Meyering <jim@meyering.net>
11071 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
11072 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
11073 Reported by Nelson H. F. Beebe.
11075 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
11077 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
11078 program_invocation_name and program_invocation_short_name are
11080 * lib/argp-namefrob.h: Move declarations of program_invocation_name
11081 and program_invocation_short_name to argp.h, so they are visible
11083 * lib/argp.h: Likewise
11085 2006-09-10 Bruno Haible <bruno@clisp.org>
11087 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
11088 m4/inttypes_h.m4, m4/uintmax_t.m4.
11090 2006-09-10 Bruno Haible <bruno@clisp.org>
11092 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
11093 gl_AC_TYPE_UINTMAX_T.
11095 2006-09-10 Bruno Haible <bruno@clisp.org>
11097 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
11099 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
11101 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
11102 convention. Text proposed by Bruno Haible.
11103 (struct argp_option): Document the use of N_() wrappers.
11105 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
11106 '\v', and translate the two parts separately, instead of feeding
11107 the whole string to gettext. This allows to exclude
11108 '\v' from the strings visible to the translator by writing doc
11109 strings as N_("..") "\v" N_("..").
11111 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
11113 * config/srclist.txt: Undo latest change; the bug was fixed.
11115 2006-09-09 Bruno Haible <bruno@clisp.org>
11117 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
11118 assignments if building a library without libtool.
11119 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
11120 in func_emit_lib_Makefile_am.
11121 (func_import): When building a static library libfoo.a, arrange to
11122 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
11123 (func_create_testdir): Likewise.
11124 * modules/gc (configure.ac, Makefile.am): If building statically,
11125 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
11126 * modules/iconvme (configure.ac, Makefile.am): Likewise.
11127 * modules/striconv (configure.ac, Makefile.am): Likewise.
11128 Based on a suggestion by Ralf Wildenhues.
11130 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
11132 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
11133 Check for unistd.h too, since Autoconf doesn't assume POSIX.
11136 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
11137 Add year_2050_test to catch glibc bug 2821
11138 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
11140 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
11141 Prefer #ifdef to #if.
11143 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
11144 Return from 'main' instead of calling 'exit'.
11146 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
11148 * lib/mktime.c (guess_time_tm): Fix bug where mktime
11149 returned the maximum time_t value rather than (time_t) -1.
11150 Problem originally reported by William Bardwell
11151 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
11153 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
11155 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
11158 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
11160 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
11163 2006-09-08 Jim Meyering <jim@meyering.net>
11165 Don't make generated files read-only. That would bother too many
11166 people. However, do retain the ability to work when targets are
11167 read-only: remove the destination and temporary files before writing
11168 them (when generated via sed or echo), or by using the -f option for
11169 both cp and mv commands. Suggestion to use -f from Paul Eggert.
11170 * modules/alloca-opt, modules/argz, modules/arpa_inet:
11171 * modules/byteswap, modules/configmake, modules/fcntl:
11172 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
11173 * modules/localcharset, modules/netinet_in, modules/poll:
11174 * modules/stdbool, modules/stdint, modules/sys_select:
11175 * modules/sys_socket, modules/sys_stat, modules/sysexits:
11177 2006-09-08 Jim Meyering <jim@meyering.net>
11179 Avoid new build failure on FreeBSD 6.0.
11180 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
11181 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
11182 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
11184 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11186 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
11188 2006-09-07 Jim Meyering <jim@meyering.net>
11190 Fix global typo in last change: use chmod u-w, not chmod u-x.
11191 Spotted by Paul Eggert and Bruce Korb.
11192 * modules/alloca-opt, modules/argz, modules/arpa_inet:
11193 * modules/byteswap, modules/configmake, modules/fcntl:
11194 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
11195 * modules/localcharset, modules/netinet_in, modules/poll:
11196 * modules/stdbool, modules/stdint, modules/sys_select:
11197 * modules/sys_socket, modules/sys_stat, modules/sysexits:
11199 2006-09-06 Jim Meyering <jim@meyering.net>
11201 Make generated files be read-only.
11202 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
11203 Ensure that each generated file is now read-only.
11204 * modules/argz: Likewise.
11205 * modules/arpa_inet: Likewise.
11206 * modules/byteswap: Likewise.
11207 * modules/configmake: Likewise.
11208 * modules/fcntl: Likewise.
11209 * modules/fnmatch: Likewise.
11210 * modules/getopt: Likewise.
11211 * modules/glob: Likewise.
11212 * modules/inttypes: Likewise.
11213 * modules/netinet_in: Likewise.
11214 * modules/poll: Likewise.
11215 * modules/stdbool: Likewise.
11216 * modules/stdint: Likewise.
11217 * modules/sys_select: Likewise.
11218 * modules/sys_socket: Likewise.
11219 * modules/sys_stat: Likewise.
11220 * modules/sysexits: Likewise.
11221 * modules/localcharset: Same as above, but continue using temporary
11222 file named "t-$@" (why different?) rather than the "$@-t" used
11225 * modules/sysexits (Makefile.am): Replace literal occurrences
11226 of "sysexit.h" more readable, and more consistent, "$@".
11228 2006-09-06 Bruno Haible <bruno@clisp.org>
11230 * modules/striconv: New file.
11231 * modules/xstriconv: New file.
11232 * MODULES.html.sh (Internationalization functions): Add striconv,
11235 2006-09-06 Bruno Haible <bruno@clisp.org>
11237 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
11238 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
11239 not using libtool correctly.
11241 2006-09-06 Bruno Haible <bruno@clisp.org>
11243 * lib/striconv.h: New file.
11244 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
11246 * lib/xstriconv.h: New file.
11247 * lib/xstriconv.c: New file.
11249 2006-09-06 Bruno Haible <bruno@clisp.org>
11251 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
11254 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11256 * lib/argz_.h: Sync from Libtool.
11258 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
11259 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11261 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
11263 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
11265 * modules/trim: New file.
11267 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
11269 * lib/trim.h: New file.
11270 * lib/trim.c: New file.
11272 2006-09-05 Bruno Haible <bruno@clisp.org>
11274 * MODULES.html.sh (String handling): Add trim.
11276 2006-09-04 Karl Berry <karl@gnu.org>
11278 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
11279 until next release.
11281 2006-09-03 Bruno Haible <bruno@clisp.org>
11283 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
11286 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
11288 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
11289 not gl_GETLOADAVG. Omit unneeded semicolons.
11290 Problems reported by Ralf Wildenhues in
11291 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
11292 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
11293 at the end, which is the usual gnulib style.
11295 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
11296 of doing all the work ourselves.
11297 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
11298 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
11300 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
11302 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
11303 Problem reported by Ralf Wildenhues in
11304 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
11306 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
11307 HAVE_STRUCT_STATFS_F_FSTYPENAME.
11309 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
11311 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
11312 yesterday's patch by changing test -n to test -z.
11314 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
11316 * modules/getloadavg (Files): Add m4/getloadavg.m4.
11317 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
11318 the former is now obsolescent.
11320 * modules/chdir-long (Depends-on): Add fcntl.
11322 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
11324 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
11325 obsolescent, and programs should use gnulib instead.
11326 * m4/getloadavg.m4: New file, with contents taken from Autoconf
11327 but with prefixes changed.
11329 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
11331 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
11332 or stdbool.h, because they might not exist while configuring.
11334 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
11335 Don't include unistd.h or limits.h; not needed, since chdir-long.h
11337 (O_DIRECTORY): Remove.
11339 2006-08-31 Eric Blake <ebb9@byu.net>
11341 * gnulib-tool: Don't let emacs change spaces to TAB.
11343 2006-08-31 Bruno Haible <bruno@clisp.org>
11345 * gnulib-tool: When calling func_import more than once, do it in a
11347 Reported by Eric Blake <ebb9@byu.net>.
11349 2006-08-31 Bruno Haible <bruno@clisp.org>
11351 * gnulib-tool (nl): Remove variable.
11352 (sed_transform_lib_file): Use more robust test for config-h module.
11353 (func_import): Fix typo in 2006-08-25 patch.
11355 2006-08-31 Bruno Haible <bruno@clisp.org>
11357 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
11358 specified, augment Makefile.am variables instead of assigning them.
11360 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
11362 Work around a bug in both the Linux and SunOS 64-bit kernels:
11363 nanosleep mishandles sleeps for longer than 2**31 seconds.
11364 Problem reported by Frank v Waveren in
11365 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
11366 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
11367 Check for nanosleep bug.
11368 (LIB_NANOSLEEP): Append clock_gettime library if needed.
11370 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
11372 Work around a bug in both the Linux and SunOS 64-bit kernels:
11373 nanosleep mishandles sleeps for longer than 2**31 seconds.
11374 Problem reported by Frank v Waveren in
11375 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
11376 * lib/nanosleep.c (BILLION): New constant.
11377 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
11378 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
11381 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
11383 * modules/nanosleep (Depends-on): Add gettime.
11385 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
11386 and Simon Josefsson <jas@extundo.com>
11387 and Oskar Liljeblad <oskar@osk.mine.nu>
11389 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
11390 * gnulib-tool (func_import): New license type 'unmodifiable license
11392 * modules/fdl: Use it. Longer description.
11393 * module/gpl, module/lgpl: New files.
11395 2006-08-30 Jim Meyering <jim@meyering.net>
11397 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
11398 shadowing the parameter.
11400 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11404 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11406 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
11407 sharing with gnulib. Report by Eric Blake.
11409 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
11411 * modules/isapipe: New file.
11412 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
11414 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
11416 * modules/configmake (Makefile.am): Add a comment, and omit
11417 the CONFIGMAKE_ prefix from generated macro names. Suggested
11420 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
11422 * m4/isapipe.m4: New file.
11424 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
11426 * lib/isapipe.c, lib/isapipe.h: New files.
11428 2006-08-29 Jim Meyering <jim@meyering.net>
11430 * modules/configmake (Makefile.am): Make configmake.h depend on
11431 Makefile. Otherwise, a stale configmake.h could hang around.
11433 2006-08-29 Eric Blake <ebb9@byu.net>
11435 * lib/error.c (error_at_line, print_errno_message): Match libc, after
11436 resolution of upstream bug 3044.
11438 2006-08-29 Bruno Haible <bruno@clisp.org>
11440 * modules/localcharset (Depends-on): Add configmake.
11441 (Makefile.am): Remove setting of LIBDIR through DEFS.
11443 2006-08-29 Bruno Haible <bruno@clisp.org>
11445 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
11448 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
11450 * modules/fcntl: New file.
11451 * modules/chdir-safer (Depends-on): Add fcntl.
11452 * modules/fts: Likewise.
11453 * modules/mkdir-p: Likewise.
11455 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
11456 This undoes the most recent change, since we're now addressing the
11457 problem in a different way.
11459 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
11460 into output, since the output might be called Makefile.am even
11461 if $makefile_name is something different.
11462 (func_import): Use $makefile_am rather than
11463 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
11466 * modules/inttypes (Files): Add m4/inttypes-h.m4.
11468 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
11470 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
11471 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
11472 recent change to stdint.m4, since we're now addressing the problem in a
11475 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
11477 * m4/fcntl_h.m4: New file.
11479 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
11481 * lib/fcntl_.h: New file.
11482 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
11484 * lib/dirchownmod.c: Likewise.
11485 * lib/fts.c: Likewise.
11487 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
11488 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
11489 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
11490 just before including <inttypes.h>, to avoid circular inclusion.
11492 2006-08-28 Jim Meyering <jim@meyering.net>
11494 * doc/visibility.texi: Actually read and correct the grammar of the
11495 sentence affected by yesterday's change.
11497 2006-08-28 Eric Blake <ebb9@byu.net>
11499 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
11502 2006-08-28 Eric Blake <ebb9@byu.net>
11504 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
11506 2006-08-28 Eric Blake <ebb9@byu.net>
11508 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
11510 2006-08-28 Bruno Haible <bruno@clisp.org>
11512 * modules/c-strstr: New file, from GNU gettext.
11513 * MODULES.html.sh (String handling): Add c-strstr.
11515 2006-08-28 Bruno Haible <bruno@clisp.org>
11517 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
11519 Reported by Eric Blake.
11521 2006-08-28 Bruno Haible <bruno@clisp.org>
11523 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
11524 (VASNPRINTF): Return a string of length > INT_MAX without failing.
11525 * lib/vasprintf.c: Include errno.h, limits.h.
11526 (EOVERFLOW): New fallback definition.
11527 (vasprintf): Test here whether the string length is > INT_MAX.
11528 * lib/vsnprintf.c: Include errno.h, limits.h.
11529 (EOVERFLOW): New fallback definition.
11530 (vsnprintf): Fix bug when generated string was too long for the buffer.
11531 Test here whether the string length is > INT_MAX.
11533 2006-08-28 Bruno Haible <bruno@clisp.org>
11535 * lib/inttypes_.h (SCNX*): Remove definitions.
11536 Reported by Eric Blake.
11538 2006-08-28 Bruno Haible <bruno@clisp.org>
11540 * lib/c-strstr.h: New file, from GNU gettext.
11541 * lib/c-strstr.c: New file, from GNU gettext.
11543 2006-08-28 Bruno Haible <bruno@clisp.org>
11545 * gnulib-tool: Reorder some statements.
11547 2006-08-28 Bruno Haible <bruno@clisp.org>
11549 * gnulib-tool: New option --makefile-name.
11550 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
11552 (func_import): Write $makefile_name to the cache file, and read it from
11553 there unless explicitly specified. Use $makefile_name as file name
11554 instead of Makefile.am. Adjust the recommendations accordingly.
11556 2006-08-28 Bruno Haible <bruno@clisp.org>
11558 * gnulib-tool (func_verify_module): Check against misapplying patch.
11560 2006-08-28 Bruno Haible <bruno@clisp.org>
11562 * gnulib-tool (func_relativize, func_relconcat): New functions.
11563 Give an error if --local-dir is given with --update.
11564 Remove trailing slashes from $local_gnulib_dir.
11565 (func_import): Store the relativized $local_gnulib_dir in
11566 gnulib-cache.m4, and read it from there if not specified explicitly.
11568 2006-08-28 Bruno Haible <bruno@clisp.org>
11570 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
11571 is the current directory. Respect also $local_gnulib_dir.
11573 2006-08-28 Bruno Haible <bruno@clisp.org>
11574 Simon Josefsson <jas@extundo.com>
11577 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
11579 2006-08-27 Jim Meyering <jim@meyering.net>
11581 * doc/visibility.texi: Remove duplicate word: "pointer".
11583 2006-08-26 Bruno Haible <bruno@clisp.org>
11585 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
11586 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
11587 (Makefile.am): Create inttypes.h from inttypes_.h.
11588 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
11590 * modules/imaxabs: New file.
11592 * modules/imaxdiv: New file.
11594 2006-08-26 Bruno Haible <bruno@clisp.org>
11596 * m4/inttypes.m4: New file.
11597 * m4/_inttypes_h.m4: Remove file.
11598 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
11600 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
11602 * m4/imaxabs.m4: New file.
11604 * m4/imaxdiv.m4: New file.
11606 2006-08-26 Bruno Haible <bruno@clisp.org>
11608 * lib/inttypes_.h: New file.
11609 * lib/inttypes.h: Remove file.
11610 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
11612 * lib/imaxabs.c: New file.
11614 * lib/imaxdiv.c: New file.
11616 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
11618 New config-h module, so that "make" output needn't be cluttered
11619 by -DHAVE_CONFIG_H.
11620 * MODULES.html.sh (Support for building libraries and executables):
11622 * modules/config-h: New file.
11623 * gnulib-tool (nl, sed_transform_lib_file): New vars.
11624 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
11625 the config-h module is used.
11627 New configmake module, so that "make" output needn't be cluttered
11628 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
11629 * MODULES.html.sh (Support for building libraries and executables):
11631 * modules/configmake: New file.
11633 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
11635 * m4/config-h.m4: New file.
11637 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
11639 * config/srclist.txt: Add elisp-comp.
11641 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
11643 * MODULES.html.sh (Support for building libraries and executables):
11645 * build-aux/elisp-comp: New file.
11646 * modules/elisp-comp: New file.
11648 2006-08-24 Bruno Haible <bruno@clisp.org>
11650 * gnulib-tool (func_create_testdir): Use non-default values of
11651 sourcebase and m4base.
11653 2006-08-24 Bruno Haible <bruno@clisp.org>
11655 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
11658 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
11660 * modules/openat (Depends-on): Add lchown.
11662 2006-08-23 Bruno Haible <bruno@clisp.org>
11664 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
11665 of gl_LOCK_EARLY instead of gl_LOCK.
11667 2006-08-23 Bruno Haible <bruno@clisp.org>
11669 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
11671 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
11673 2006-08-23 Bruno Haible <bruno@clisp.org>
11675 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
11678 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
11679 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
11680 (gl_LOCK): New macro.
11682 2006-08-22 Simon Josefsson <jas@extundo.com>
11684 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
11687 2006-08-22 Simon Josefsson <jas@extundo.com>
11689 * MODULES.html.sh: Add "Support for maintaining and release
11692 * build-aux/gnupload: New file, from coreutils.
11694 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
11696 Avoid the need for AC_LIBSOURCES in m4 macros.
11697 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
11698 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
11699 * modules/check-version (EXTRA_DIST): Add check-version.h.
11700 * modules/crc (EXTRA_DIST): Add crc.h.
11701 * modules/des (EXTRA_DIST): Add des.h.
11702 * modules/gc (EXTRA_DIST): Add gc.h.
11703 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
11704 * modules/getline (EXTRA_DIST): Add getline.h.
11705 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
11706 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
11707 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
11708 * modules/md2 (EXTRA_DIST): Add md2.h.
11709 * modules/md4 (EXTRA_DIST): Add md4.h.
11710 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
11711 * modules/read-file (EXTRA_DIST): Add read-file.h.
11712 * modules/readline (EXTRA_DIST): Add readline.h.
11713 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
11714 rijndael-api-fst.h.
11716 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
11718 * m4/rijndael.m4 (gl_ARCFOUR):
11719 * m4/arctwo.m4 (gl_ARCTWO):
11720 * m4/check-version.m4 (gl_CHECK_VERSION):
11721 * m4/crc.m4 (gl_CRC):
11722 * m4/des.m4 (gl_DES):
11723 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
11724 * m4/gc.m4 (gl_GC):
11725 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
11726 * m4/getline.m4 (gl_FUNC_GETLINE):
11727 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
11728 * m4/hmac-md5.m4 (gl_HMAC_MD5):
11729 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
11730 * m4/md2.m4 (gl_MD2):
11731 * m4/md4.m4 (gl_MD4):
11732 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
11733 * m4/read-file.m4 (gl_FUNC_READ_FILE):
11734 * m4/readline.m4 (gl_FUNC_READLINE):
11735 * m4/rijndael.m4 (gl_RIJNDAEL):
11736 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
11737 to get the necessary .h files and whatnot.
11739 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
11741 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
11742 gnulib rather than the other way around.
11743 * config/srclistvars.sh (COREUTILS): Remove.
11745 2006-08-22 Jim Meyering <jim@meyering.net>
11747 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
11749 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
11751 2006-08-22 Eric Blake <ebb9@byu.net>
11753 * modules/regexprops-generic: New file.
11754 * MODULES.html.sh (Support for building documentation): List it.
11756 2006-08-22 Eric Blake <ebb9@byu.net>
11758 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
11759 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
11760 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
11761 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
11763 2006-08-22 Bruno Haible <bruno@clisp.org>
11765 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
11766 and lib_LTLIBRARIES like the other lib_* variables.
11768 2006-08-22 Bruno Haible <bruno@clisp.org>
11770 * build-aux/x-to-1.in: New file, from GNU gettext.
11772 2006-08-22 Bruno Haible <bruno@clisp.org>
11774 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
11777 2006-08-22 Bruno Haible <bruno@clisp.org>
11779 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
11782 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
11785 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
11787 Problem reported by Bruno Haible.
11789 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
11791 Avoid the need for AC_LIBSOURCES in m4 macros.
11792 * modules/acl (EXTRA_DIST): Add acl.h.
11793 * modules/argmatch (Files): Add m4/argmatch.m4.
11794 (configure.ac): Add gl_ARGMATCH.
11795 (EXTRA_DIST): Renamed from lib_SOURCES, for
11796 consistency with the other modules. Remove argmatch.c.
11797 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
11798 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
11799 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
11800 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
11801 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
11802 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
11803 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
11804 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
11805 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
11806 * modules/closeout (EXTRA_DIST): Add closeout.h.
11807 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
11808 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
11809 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
11810 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
11811 dirname.h; remove basename.c and stripslash.c.
11812 * modules/exclude (EXTRA_DIST): Add exclude.h.
11813 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
11814 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
11815 * modules/file-type (EXTRA_DIST): Add file-type.h.
11816 * modules/filemode (EXTRA_DIST): Add filemode.h.
11817 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
11818 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
11819 * modules/fpending (EXTRA_DIST): Add __fpending.h.
11820 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
11821 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
11822 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
11823 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
11824 * modules/getdate (EXTRA_DIST): Add getdate.c.
11825 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
11826 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
11827 * modules/getpass (EXTRA_DIST): Add getpass.h.
11828 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
11829 * modules/group-member (EXTRA_DIST): Add group-member.h.
11830 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
11831 * modules/hash (EXTRA_DIST): Add hash.h.
11832 * modules/human (EXTRA_DIST): Add human.h.
11833 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
11834 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
11835 * modules/lchown (EXTRA_DIST): Add lchown.h.
11836 * modules/long-options (EXTRA_DIST): Add long-options.h.
11837 * modules/lstat (EXTRA_DIST): Add lstat.h.
11838 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
11839 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
11840 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
11841 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
11842 * modules/memxor (EXTRA_DIST): Add memxor.h.
11843 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
11844 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
11845 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
11846 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
11847 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
11848 * modules/physmem (EXTRA_DIST): Add physmem.h.
11849 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
11850 * modules/posixver (EXTRA_DIST): Add posixver.h.
11851 * modules/quote (EXTRA_DIST): Add quote.h.
11852 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
11853 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
11854 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
11855 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
11856 regex_internal.h regexec.c.
11857 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
11858 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
11859 * modules/same (EXTRA_DIST): Add same.h.
11860 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
11861 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
11862 * modules/savedir (EXTRA_DIST): Add savedir.h.
11863 * modules/sha1 (EXTRA_DIST): Add sha1.h.
11864 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
11865 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
11866 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
11867 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
11868 * modules/strdup (EXTRA_DIST): Add strdup.h.
11869 * modules/strftime (EXTRA_DIST): Add strftime.h.
11870 * modules/strndup (EXTRA_DIST): Add strndup.h.
11871 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
11872 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
11873 * modules/time_r (EXTRA_DIST): Add time_r.h.
11874 * modules/timespec (EXTRA_DIST): Add timespec.h.
11875 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
11876 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
11877 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
11878 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
11879 * modules/userspec (EXTRA_DIST): Add userspec.h.
11880 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
11881 * modules/utimens (EXTRA_DIST): Add utimens.h.
11882 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
11883 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
11884 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
11885 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
11886 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
11887 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
11888 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
11889 * modules/yesno (EXTRA_DIST): Add yesno.h.
11891 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
11893 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
11895 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
11896 * m4/dev-ino.m4, same-inode.m4: Remove.
11898 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
11899 * m4/acl.m4 (AC_FUNC_ACL):
11900 * m4/backupfile.m4 (gl_BACKUPFILE):
11901 * m4/c-strtod.m4 (gl_C99_STRTOLD):
11902 * m4/canon-host.m4 (gl_CANON_HOST):
11903 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
11904 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
11905 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
11906 * m4/cloexec.m4 (gl_CLOEXEC):
11907 * m4/close-stream.m4 (gl_CLOSE_STREAM):
11908 * m4/closeout.m4 (gl_CLOSEOUT):
11909 * m4/dirfd.m4 (gl_FUNC_DIRFD):
11910 * m4/dirname.m4 (gl_DIRNAME):
11911 * m4/exclude.m4 (gl_EXCLUDE):
11912 * m4/exitfail.m4 (gl_EXITFAIL):
11913 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
11914 * m4/file-type.m4 (gl_FILE_TYPE):
11915 * m4/filemode.m4 (gl_FILEMODE):
11916 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
11917 * m4/fpending.m4 (gl_FUNC_FPENDING):
11918 * m4/fprintftime.m4 (gl_FPRINTFTIME):
11919 * m4/fts.m4 (gl_FUNC_FTS):
11920 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
11921 * m4/getdate.m4 (gl_GETDATE):
11922 * m4/gethrxtime.m4 (gl_GETHRXTIME):
11923 * m4/getpagesize.m4 (gl_GETPAGESIZE):
11924 * m4/getpass.m4 (gl_FUNC_GETPASS):
11925 * m4/gettime.m4 (gl_GETTIME):
11926 * m4/getugroups.m4 (gl_GETUGROUPS):
11927 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
11928 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
11929 * m4/hard-locale.m4 (gl_HARD_LOCALE):
11930 * m4/hash.m4 (gl_HASH):
11931 * m4/idcache.m4 (gl_IDCACHE):
11932 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
11933 * m4/lchown.m4 (gl_FUNC_LCHOWN):
11934 * m4/long-options.m4 (gl_LONG_OPTIONS):
11935 * m4/lstat.m4 (gl_FUNC_LSTAT):
11936 * m4/md5.m4 (gl_MD5):
11937 * m4/memcasecmp.m4 (gl_MEMCASECMP):
11938 * m4/memcoll.m4 (gl_MEMCOLL):
11939 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
11940 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
11941 * m4/memxor.m4 (gl_MEMXOR):
11942 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
11943 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
11944 * m4/modechange.m4 (gl_MODECHANGE):
11945 * m4/mountlist.m4 (gl_MOUNTLIST):
11946 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
11947 * m4/openat.m4 (gl_FUNC_OPENAT):
11948 * m4/pathmax.m4 (gl_PATHMAX):
11949 * m4/physmem.m4 (gl_PHYSMEM):
11950 * m4/posixtm.m4 (gl_POSIXTM):
11951 * m4/posixver.m4 (gl_POSIXVER):
11952 * m4/quote.m4 (gl_QUOTE):
11953 * m4/quotearg.m4 (gl_QUOTEARG):
11954 * m4/readtokens.m4 (gl_READTOKENS):
11955 * m4/readutmp.m4 (gl_READUTMP):
11956 * m4/regex.m4 (gl_REGEX):
11957 * m4/safe-read.m4 (gl_SAFE_READ):
11958 * m4/safe-write.m4 (gl_SAFE_WRITE):
11959 * m4/same.m4 (gl_SAME):
11960 * m4/save-cwd.m4 (gl_SAVE_CWD):
11961 * m4/savedir.m4 (gl_SAVEDIR):
11962 * m4/settime.m4 (gl_SETTIME):
11963 * m4/sha1.m4 (gl_SHA1):
11964 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
11965 * m4/stat-macros.m4 (gl_STAT_MACROS):
11966 * m4/stat-time.m4 (gl_STAT_TIME):
11967 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
11968 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
11969 * m4/strdup.m4 (gl_FUNC_STRDUP):
11970 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
11971 * m4/strndup.m4 (gl_FUNC_STRNDUP):
11972 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
11973 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
11974 * m4/time_r.m4 (gl_TIME_R):
11975 * m4/timespec.m4 (gl_TIMESPEC):
11976 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
11977 * m4/unlinkdir.m4 (gl_UNLINKDIR):
11978 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
11979 * m4/userspec.m4 (gl_USERSPEC):
11980 * m4/utimecmp.m4 (gl_UTIMECMP):
11981 * m4/utimens.m4 (gl_UTIMENS):
11982 * m4/xalloc.m4 (gl_XALLOC):
11983 * m4/xgetcwd.m4 (gl_XGETCWD):
11984 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
11985 * m4/xreadlink.m4 (gl_XREADLINK):
11986 * m4/xstrtod.m4 (gl_XSTRTOD):
11987 * m4/yesno.m4 (gl_YESNO):
11988 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
11989 to get the necessary .h files and whatnot.
11991 2006-08-21 Mark D. Baushke <mdb@gnu.org>
11992 Bruno Haible <bruno@clisp.org>
11994 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
11995 /bin/sh understanding of '!' conditional negation.
11997 2006-08-21 Jim Meyering <jim@meyering.net>
11999 * modules/openat (Depends-on): Really alphabetize.
12001 * modules/acl (Depends-on): Add error and quote.
12003 * check-module (find_included_lib_files): Add at-func.c to the
12004 ok-to-include-more-than-once white list.
12006 * modules/openat (Depends-on): Add lstat. Alphabetize.
12008 2006-08-21 Bruno Haible <bruno@clisp.org>
12010 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
12011 Emit a pkgdata_DATA variable only if some snippets add contents to it.
12012 Reported by Martin Lambers <marlam@marlam.de>.
12014 2006-08-21 Bruno Haible <bruno@clisp.org>
12016 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
12017 specify an installation location, don't emit a noinst_LIBRARIES or
12018 noinst_LTLIBRARIES assignment.
12020 2006-08-21 Bruno Haible <bruno@clisp.org>
12023 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
12024 BeOS has mbrtowc() but no <wctype.h>.
12026 2006-08-21 Bruno Haible <bruno@clisp.org>
12029 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
12032 2006-08-21 Bruno Haible <bruno@clisp.org>
12035 * lib/mbchar.h: Include <wctype.h> only if it exists.
12037 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
12039 Remove files that are no longer needed by their respective modules.
12040 * m4/obstack.m4: Remove.
12041 * m4/strerror_r.m4: Remove.
12042 * m4/uint32_t.m4: Remove.
12043 * m4/uintptr_t.m4: Remove.
12044 * m4/ullong_max.m4: Remove.
12045 * m4/xstrtoimax.m4: Remove.
12046 * m4/xstrtoumax.m4: Remove.
12048 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
12049 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
12050 dependencies now capture this.
12052 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
12053 Do not use AC_LIBSOURCES, since gnulib modules now do this.
12054 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
12055 * m4/human.m4 (gl_HUMAN): Likewise.
12056 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
12057 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
12059 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
12061 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
12062 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
12064 * m4/human.m4 (gl_HUMAN): Likewise.
12065 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
12066 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
12067 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
12068 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
12069 * m4/xstrtol (gl_XSTRTOL): Likewise.
12071 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
12072 AC_TYPE_LONG_LONG_INT.
12073 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
12074 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
12075 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
12076 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
12078 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
12081 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
12082 (gl_PREREQ_XSTRTOUL): Remove.
12084 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
12086 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
12089 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
12091 Add and change modules to make it easier for coreutils to use
12093 * modules/backupfile (Files): Remove m4/d-ino.m4.
12094 (Depends-on): Add d-ino.
12095 * modules/cycle-check (Depends-on): Add stdint.
12096 (lib_SOURCES): Add cycle-check.h.
12097 * modules/d-ino: New module.
12098 * modules/d-type: New module.
12099 * modules/error (Files): Remove m4/strerror_r.m4.
12100 * modules/filemode (Files): Add m4/st_dm_mode.m4.
12101 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
12102 m4/inttypes_h.m4, m4/uintmax_t.m4.
12103 (Depends-on): Add stdint.
12104 (lib_SOURCES): Add fsusage.h.
12105 * modules/getcwd (Files): Remove d-ino.m4.
12106 (Depends-on): Add d-ino.
12107 * modules/getndelim2 (Depends-on): Add stdint.
12108 * modules/glob (Files): Remove m4/d-type.m4.
12109 (Depends-on): Add d-type.
12110 * modules/host-os: New module.
12111 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
12112 m4/inttypes_h.m4, m4/uintmax_t.m4.
12113 * Depends-on: Add stdint.
12114 (lib_SOURCES): Add human.h.
12115 * modules/inttostr (Files): Remove m4/intmax_t.m4,
12116 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
12117 m4/uintmax_t.m4, m4/ulonglong.m4.
12118 (Depends-on): Add stdint.
12119 (EXTRA_DIST): Add inttostr.h.
12120 * modules/lchmod: New module.
12121 * modules/link-follow: New module.
12122 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
12123 (Depends-on): Add lchmod.
12124 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
12125 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
12126 (Depends-on): Add stdint.
12127 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
12128 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
12129 (Depends-on): Add stdint.
12130 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
12131 * modules/perl: New module.
12132 * modules/regex (Depends-on): Add stdint.
12133 * modules/rmdir-errno: New module.
12134 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
12136 (Depends-on): Add stdint.
12137 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
12139 (Depends-on): Add stdint.
12140 * modules/unlink-busy: New module.
12141 * modules/utimecmp (Depends-on): Add stdint.
12142 * modules/uptime: New module.
12143 * modules/winsz-ioctl: New module.
12144 * modules/winsz-termios: New module.
12145 * modules/xnanosleep (Depends-on): Add nanosleep.
12146 * modules/ullong_max: Remove.
12147 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
12148 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
12149 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
12150 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
12151 (Depends-on): Add inttypes.
12152 (lib_SOURCES): Add xstrtol.h.
12153 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
12154 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
12155 * MODULES.html.sh: Move 'assert' into the assert section.
12156 Move 'dummy' into the linking section.
12158 Add section for compatibility checks for POSIX:2001 functions,
12159 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
12160 winsz-ioctl, and winsz-termios into it.
12162 Add top-level Misc section and put host-os, perl, and uptime
12165 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
12167 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
12168 now assume the stdint module. Do not include inttypes.h.
12169 * lib/fsusage.h: Likewise.
12170 * lib/getndelim2.c: Likewise.
12171 * lib/human.h: Likewise.
12172 * lib/inttostr.h: Likewise.
12173 * lib/obstack.c: Likewise.
12174 * lib/regex_internal.h: Likewise.
12175 * lib/tempname.c: Likewise.
12176 * lib/utimecmp.c: Likewise.
12177 * lib/xstrtol.h: Likewise.
12179 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
12181 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
12182 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
12183 * lib/xtime.h: Likewise.
12185 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
12187 * modules/openat (Files): Add lib/fchmodat.c.
12188 Fixes problem reported by Jay Youngman.
12190 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
12192 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
12193 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
12195 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
12196 Bruno Haible <bruno@clisp.org>
12198 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
12199 and is a script that invokes bison. Tighten the code. Add comments.
12201 2006-08-18 Jim Meyering <jim@meyering.net>
12203 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
12204 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
12205 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
12206 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
12208 2006-08-18 Bruno Haible <bruno@clisp.org>
12210 * modules/bison-i18n: New file.
12211 * MODULES.html.sh (Internationalization functions): Add it.
12213 2006-08-18 Bruno Haible <bruno@clisp.org>
12215 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
12216 sys/statvfs.h. When getmntinfo was found, check its declaration and
12217 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
12219 2006-08-18 Bruno Haible <bruno@clisp.org>
12221 * m4/bison-i18n.m4: New file, from bison.
12223 2006-08-18 Bruno Haible <bruno@clisp.org>
12225 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
12226 (ME_DUMMY): Treat "kernfs" as a dummy.
12227 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
12229 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
12231 Update from coreutils.
12233 2006-08-15 Jim Meyering <jim@meyering.net>
12235 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
12237 2006-01-17 Jim Meyering <jim@meyering.net>
12239 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
12241 2006-01-11 Jim Meyering <jim@meyering.net>
12243 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
12244 Check for the lchmod function.
12246 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
12248 Update from coreutils.
12250 * lib/__fpending.h: Add copyright notice.
12251 * lib/fprintftime.h: Likewise.
12252 * lib/savedir.c: Use (C) in copyright notice.
12253 * lib/savedir.h: Likewise.
12255 2006-08-15 Jim Meyering <jim@meyering.net>
12257 * lib/at-func.c: New file, with the logic of all emulated at-functions.
12258 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
12259 in support of the EXPECTED_ERRNO macro.
12260 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
12261 definitions. Instead, define the appropriate symbols and include
12263 * lib/mkdirat.c (mkdirat): Likewise.
12264 * lib/fchmodat.c (fchmodat): Likewise.
12265 (ENOSYS): Remove definition.
12266 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
12267 it. Don't include "unistd--.h" -- it wasn't ever used.
12269 2006-01-17 Jim Meyering <jim@meyering.net>
12271 Rewrite fts.c not to change the current working directory,
12272 by using openat, fstatat, fdopendir, etc..
12274 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
12275 (HAVE_OPENAT_SUPPORT): Define.
12276 [_LIBC] (fchdir): Don't undef or define; no longer used.
12277 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
12278 Now, this `function' always succeeds, and consumes its file descriptor
12279 parameter -- so callers must not close such FDs. Update callers.
12280 (diropen_fd, opendirat, cwd_advance_fd): New functions.
12281 (diropen): Add parameter, SP. Adjust all callers.
12282 Implement using diropen_fd, rather than open.
12283 (fts_open): Initialize new member, fts_cwd_fd.
12284 Remove fts_rft-setting code.
12285 (fts_close): Close fts_cwd_fd, if necessary.
12286 (__opendir2): Define in terms of opendir or opendirat,
12287 depending on whether the FST_NOCHDIR flag is set.
12288 (fts_build): Since fts_safe_changedir consumes its FD, and since
12289 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
12290 and close the dup'd file descriptor upon failure.
12291 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
12292 (fts_safe_changedir): Tweak semantics to reflect that this function
12293 now calls cwd_advance_fd and hence consumes its FD argument.
12294 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
12295 [struct FTS] (fts_rft): Remove now-unused member.
12296 [struct FTS] (fts_cycle.state): Improve comment.
12298 * lib/openat.c (openat_needs_fchdir): New function.
12299 * lib/openat.h (openat_needs_fchdir): Declare it.
12301 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
12303 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
12304 Problem and fix reported by Pádraig Brady in
12305 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
12307 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
12309 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
12311 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
12313 * lib/memcoll.c (memcoll): Optimize for the common case where the
12314 arguments are bytewise equal.
12316 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
12318 * doc/regexprops-generic.texi: Add a copyright notice.
12320 2006-08-15 Bruno Haible <bruno@clisp.org>
12322 * modules/tmpdir (License): Change to LGPL.
12324 2006-08-15 Bruno Haible <bruno@clisp.org>
12326 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
12329 2006-08-14 Simon Josefsson <jas@extundo.com>
12331 * config/srclist.txt: Add gnupload.
12333 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
12335 Change copyright notice from LGPL 2 to GPL 2, since that's the
12336 standard form used in the gnulib repository.
12337 * tests/test-lock.c: Likewise.
12338 * tests/test-stdint.c: Likewise.
12339 * tests/test-tls.c: Likewise.
12341 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
12342 prelude-manager. User shorter URLs for GNU projects, without '?'.
12343 Add copyright notice.
12345 * check-module: Add copyright notice. Output a copyright
12346 notice if "--version" is specified.
12347 * modules/COPYING: New file.
12348 * tests/test-getaddrinfo.c: Add copyright notice.
12349 * tests/test-verify.c: Likewise.
12351 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
12353 Change copyright notice from LGPL 2 to GPL 2, since that's the
12354 standard form used in the gnulib repository.
12355 * lib/lock.c: LGPL -> GPL.
12356 * lib/lock.h: Likewise.
12357 * lib/strnlen1.c: Likewise.
12358 * lib/strnlen1.h: Likewise.
12359 * lib/tls.c: Likewise.
12360 * lib/tls.h: Likewise.
12361 * lib/tmpdir.c: Likewise.
12363 * lib/TODO: Remove; this belongs only in coreutils.
12365 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
12367 Add copyright notices to long-enough files that lack them, since
12368 otherwise the files aren't clearly free. Use the same notice that
12369 getdate.texi already uses.
12370 * doc/alloca-opt.texi: Add copyright notice.
12371 * doc/alloca.texi: Likewise.
12372 * doc/ctime.texi: Likewise.
12373 * doc/functions.texi: Likewise.
12374 * doc/gcd.texi: Likewise.
12375 * doc/gnulib-tool.texi: Likewise.
12376 * doc/inet_ntoa.texi: Likewise.
12377 * doc/visibility.texi: Likewise.
12379 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
12380 * doc/quote.texi: Add copyright notice.
12382 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
12383 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
12384 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
12385 Mention SunOS 5.11. Mention that everything before SunOS 5.7
12386 is now obsolete, and give a pointer to the Sun list.
12387 Add copyright notice.
12389 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
12391 * config/srclistvars.sh: Add copyright notice.
12393 2006-08-14 Eric Blake <ebb9@byu.net>
12395 Import the following change from libc:
12397 2006-08-12 Ulrich Drepper <drepper@redhat.com>
12400 * lib/misc/error.c: Add space between program name and message if file
12403 2006-08-12 Karl Berry <karl@gnu.org>
12405 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
12406 remove, these originate in gnulib now.
12408 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12410 * doc/Makefile (standards.info standards.html standards.dvi):
12411 Also depend on make-stds.texi.
12413 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
12415 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
12416 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
12418 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
12419 in wchar_t. Problem reported by Eric Blake.
12421 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
12422 LEN is smaller than SIZE. Suggested by Bruno Haible.
12423 Also, help the compiler to keep LEN in a register.
12425 2006-08-11 Eric Blake <ebb9@byu.net>
12427 * users.txt: Sort. Add tar.
12429 2006-08-11 Bruno Haible <bruno@clisp.org>
12431 * users.txt: New file.
12433 2006-08-11 Bruno Haible <bruno@clisp.org>
12435 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
12436 before <wchar.h>. Needed for OSF/1 and BSD/OS.
12438 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
12440 * modules/snprintf (Depends-on): Remove minmax.
12441 (Maintainer): Add self and Bruno.
12443 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
12445 * lib/.cppi-disable: Add snprintf.h, socket_.h.
12446 * lib/snprintf.c: Include <errno.h> and <limits.h>.
12447 (EOVERFLOW): Define if the system does not.
12448 Do not include "minmax.h"; it wasn't used.
12449 (snprintf): Don't assume size_t promotes to an unsigned type.
12450 Fix bug when generated string was too long for the buffer: the
12451 buffer's contents are supposed to be the initial prefix of the
12452 output. Don't assume vasnprintf returns EOVERFLOW if the size
12453 exceeds INT_MAX; do the check ourselves.
12455 Import the following changes from libc:
12457 2006-06-02 Jakub Jelinek <jakub@redhat.com>
12459 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
12460 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
12461 set wc to the byte which couldn't be converted.
12462 (re_string_reconstruct): Don't clear valid_raw_len before calling
12463 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
12464 tip_context using re_string_context_at.
12466 2006-05-02 Ulrich Drepper <drepper@redhat.com>
12468 * lib/posix/regex.h: g++ still cannot handled [restrict].
12470 2006-04-21 Ulrich Drepper <drepper@redhat.com>
12472 * lib/posix/regex.h: Remove special handling for VMS.
12474 2006-08-10 Jim Meyering <jim@meyering.net>
12476 * modules/same-inode: New module.
12477 * modules/dev-ino: New module.
12478 * modules/cycle-check: Depend on these modules, rather than simply
12479 including their .h files.
12480 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
12481 required via m4/cycle-check.m4.
12482 * modules/same: Depend on new same-inode module, rather than
12483 including same-inode.h.
12484 * modules/chdir-safer: New file.
12486 * modules/chown (Depends-on): Add stat-macros.
12488 2006-08-10 Jim Meyering <jim@meyering.net>
12490 * m4/cycle-check.m4: New file.
12491 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
12492 * m4/dev-ino.m4, m4/same-inode.m4: New files.
12494 2006-08-10 Eric Blake <ebb9@byu.net>
12496 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
12497 in from original proposal.
12499 2006-08-10 Eric Blake <ebb9@byu.net>
12500 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12502 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
12505 2006-08-10 Bruno Haible <bruno@clisp.org>
12507 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
12510 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
12512 Sync from coreutils.
12514 2006-07-19 Mike Frysinger <vapier@gentoo.org>
12516 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
12517 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
12519 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
12521 * modules/restrict: Remove; no longer needed now that we assume
12522 Autoconf 2.59 or later.
12523 * MODULES.html.sh: Remove 'restrict'.
12524 * modules/argp (Depends-on): Remove 'restrict'.
12525 * modules/base64 (Depends-on): Likewise.
12526 * modules/gc (Depends-on): Likewise.
12527 * modules/getaddrinfo (Depends-on): Likewise.
12528 * modules/glob (Depends-on): Likewise.
12529 * modules/inet_ntop (Depends-on): Likewise.
12530 * modules/inet_pton (Depends-on): Likewise.
12531 * modules/memxor (Depends-on): Likewise.
12532 * modules/regex (Depends-on): Likewise.
12533 * modules/strtok_r (Depends-on): Likewise.
12534 * modules/time_r (Depends-on): Likewise.
12536 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
12538 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
12539 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
12540 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
12541 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
12542 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
12543 * m4/memxor.m4 (gl_MEMXOR): Likewise.
12544 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
12545 gl_C_RESTRICT replaced by AC_C_RESTRICT.
12547 Merge from coreutils.
12548 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
12549 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
12550 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
12551 * m4/time_r.m4 (gl_TIME_R): Likewise.
12553 2006-08-09 Karl Berry <karl@gnu.org>
12555 * config/srclist.txt: no more gettext-tools, per Bruno.
12557 2006-08-08 Eric Blake <ebb9@byu.net>
12559 * modules/verror: New module.
12560 * MODULES.html.sh: Document it.
12562 2006-08-08 Eric Blake <ebb9@byu.net>
12564 * lib/verror.h, lib/verror.c: New files.
12566 2006-08-08 Eric Blake <ebb9@byu.net>
12568 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
12569 verror_at_line output complies with GNU Coding Standards even when
12572 2006-08-07 Bruno Haible <bruno@clisp.org>
12574 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
12576 Reported by Ralf Wildenhues.
12578 2006-08-07 Bruno Haible <bruno@clisp.org>
12580 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
12581 in an AC_DEFUN. Needed so that the autoconf snippets can use
12584 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12586 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
12587 Initialize pkgdata_DATA.
12588 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
12591 2006-08-06 Eric Blake <ebb9@byu.net>
12593 * lib/error.h: Fold in some upstream changes from glibc.
12594 * lib/error.c: Likewise.
12596 2006-08-04 Bruno Haible <bruno@clisp.org>
12598 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
12599 Make the mostlyclean-local rule depend on mostlyclean-generic.
12600 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
12602 2006-07-31 Bruno Haible <bruno@clisp.org>
12604 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
12605 <stdlib.h>, <string.h>.
12607 2006-07-30 Bruno Haible <bruno@clisp.org>
12609 * modules/readlink (License): Change to LGPL.
12611 2006-07-30 Bruno Haible <bruno@clisp.org>
12613 * modules/javaversion (Makefile.am): Distribute javaversion.java and
12614 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
12615 set PKGDATADIR to point to it.
12617 2006-07-30 Bruno Haible <bruno@clisp.org>
12619 * modules/csharpexec (configure.ac): Comment out macro invocation.
12620 * modules/javaexec (configure.ac): Likewise.
12621 * modules/javacomp-script (configure.ac): Likewise.
12623 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
12625 2006-07-30 Bruno Haible <bruno@clisp.org>
12627 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
12630 2006-07-30 Bruno Haible <bruno@clisp.org>
12632 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
12634 2006-07-30 Bruno Haible <bruno@clisp.org>
12636 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
12637 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
12640 2006-07-29 Bruno Haible <bruno@clisp.org>
12642 Make it possible for gnulib-tool to work with locally modified or
12643 augmented gnulib repositories.
12644 * gnulib-tool (func_usage): Document --local-dir option.
12645 (local_gnulib_dir): New variable.
12646 Handle --local-dir option.
12647 (func_lookup_file): New function.
12648 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
12649 (func_get_description, func_get_filelist, func_get_description,
12650 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
12651 func_get_automake_snippet, func_get_include_directive,
12652 func_get_license, func_get_maintainer): Use func_lookup_file.
12653 (func_import, func_create_testdir): Use func_lookup_file.
12655 2006-07-29 Bruno Haible <bruno@clisp.org>
12657 * modules/setenv (Depends-on): Add unistd.
12659 2006-07-29 Bruno Haible <bruno@clisp.org>
12661 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
12663 2006-07-29 Bruno Haible <bruno@clisp.org>
12665 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
12667 2006-07-29 Bruno Haible <bruno@clisp.org>
12669 * gnulib-tool (import, update): If there is no Makefile.am, look at
12670 aclocal.m4, instead of bailing out.
12672 2006-07-29 Bruno Haible <bruno@clisp.org>
12674 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
12675 Categorize the options by when they are useful.
12677 2006-07-29 Bruno Haible <bruno@clisp.org>
12679 * gnulib-tool (func_usage): Document option --no-libtool.
12680 Handle option --no-libtool.
12681 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
12682 for changed semantics of $libtool variable.
12683 (func_import): Likewise. If libtool is not used, show this through
12684 an option --no-libtool.
12685 (func_create_testdir): Update.
12687 2006-07-29 Bruno Haible <bruno@clisp.org>
12689 * gnulib-tool (func_import): Extend error message about missing
12692 2006-07-29 Bruno Haible <bruno@clisp.org>
12694 * gnulib-tool (func_import): Don't create the $docbase directory if
12695 there is no file to store there.
12697 2006-07-29 Bruno Haible <bruno@clisp.org>
12699 * gnulib-tool (autoconf_minversion): If a --dir option is given and
12700 relevant, look for configure.ac there, not in the current directory.
12701 Also use a simple search for AC_PREREQ, not "autoconf --trace".
12703 2006-07-29 Bruno Haible <bruno@clisp.org>
12705 * gnulib-tool (SORT): New variable.
12706 (func_usage): Undocument --assume-autoconf option.
12707 Remove --assume-autoconf option handling.
12708 (autoconf_minversion): Determine from the contents of configure.ac.
12709 (func_import): Remove autoconf_minversion handling.
12710 Suggested by Eric Blake.
12712 2006-07-29 Bruno Haible <bruno@clisp.org>
12714 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
12716 2006-07-29 Bruno Haible <bruno@clisp.org>
12718 * config/srclist.txt (*setenv.[ch]): Remove rules.
12720 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12722 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
12724 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12726 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
12729 2006-07-28 Simon Josefsson <jas@extundo.com>
12731 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
12732 * modules/inet_pton (Depends-on): Likewise.
12734 2006-07-28 Simon Josefsson <jas@extundo.com>
12736 * m4/netinet_in_h.m4: New file.
12738 2006-07-28 Simon Josefsson <jas@extundo.com>
12740 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
12743 2006-07-28 Simon Josefsson <jas@extundo.com>
12745 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
12748 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
12750 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
12751 setgid on directories only if they set these bits.
12752 * lib/modechange.h: Remove obsolete comment about masks.
12754 2006-07-28 Eric Blake <ebb9@byu.net>
12756 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
12759 2006-07-28 Bruno Haible <bruno@clisp.org>
12761 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
12763 2006-07-28 Bruno Haible <bruno@clisp.org>
12765 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
12767 2006-07-28 Bruno Haible <bruno@clisp.org>
12769 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
12770 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
12772 Avoids link error on FreeBSD 4.x.
12773 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
12775 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
12777 * lib/mbswidth.c (iswcntrl): Likewise.
12779 2006-07-27 Bruno Haible <bruno@clisp.org>
12781 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
12784 2006-07-27 Bruno Haible <bruno@clisp.org>
12786 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
12787 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
12790 2006-07-26 Eric Blake <ebb9@byu.net>
12792 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
12794 2006-07-26 Eric Blake <ebb9@byu.net>
12796 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
12797 like mingw that lack mkstemp.
12798 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
12799 avoid compilation warning on mingw.
12801 2006-07-26 Bruno Haible <bruno@clisp.org>
12803 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
12804 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
12805 INT_FAST*_MIN, INTPTR_MIN.
12807 2006-07-25 Bruno Haible <bruno@clisp.org>
12809 * modules/version-etc (Depends-on): Add stdarg.
12811 2006-07-25 Bruno Haible <bruno@clisp.org>
12813 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
12816 2006-07-25 Bruno Haible <bruno@clisp.org>
12818 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
12819 defined in <stdarg.h> or config.h.
12821 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
12823 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
12824 (gl_STDIO_SAFER): Remove.
12826 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
12828 * MODULES.html.sh (File stream based Input/Output):
12829 Add fopen-safer, tmpfile-safer; remove stdio-safer.
12830 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
12831 * modules/fopen-safer, modules/tmpfile-safer: New files.
12832 * modules/stdio-safer: Remove.
12834 2006-07-24 Bruno Haible <bruno@clisp.org>
12836 * modules/tmpdir: New file.
12837 * MODULES.html.sh (File system functions): Add it.
12839 2006-07-24 Bruno Haible <bruno@clisp.org>
12841 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
12842 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
12844 2006-07-24 Bruno Haible <bruno@clisp.org>
12846 * modules/clean-temp: New file.
12848 2006-07-24 Bruno Haible <bruno@clisp.org>
12850 * m4/tmpdir.m4: New file, from GNU gettext.
12852 2006-07-24 Bruno Haible <bruno@clisp.org>
12854 * lib/tmpdir.h: New file, from GNU gettext.
12855 * lib/tmpdir.c: New file, from GNU gettext.
12857 2006-07-24 Bruno Haible <bruno@clisp.org>
12859 * lib/clean-temp.h: New file, from GNU gettext.
12860 * lib/clean-temp.c: New file, from GNU gettext.
12862 2006-07-23 Eric Blake <ebb9@byu.net>
12864 * modules/stdio-safer (Files): Add tmpfile-safer.c.
12865 (Depends-on): Add binary-io.
12867 2006-07-23 Eric Blake <ebb9@byu.net>
12869 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
12871 2006-07-23 Eric Blake <ebb9@byu.net>
12873 * lib/tmpfile-safer.c: New file.
12874 * lib/stdio-safer.h (fopen_safer): Add prototype.
12875 * lib/stdio--.h (tmpfile): Make safer.
12877 2006-07-23 Bruno Haible <bruno@clisp.org>
12879 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
12880 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
12881 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
12882 gl_linked_remove_at): Use it.
12884 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12885 and Simon Josefsson <jas@extundo.com>
12887 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
12889 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
12891 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
12893 * modules/close-stream: New file.
12894 * modules/closeout (Description): Make it clear that it exits
12895 with a diagnostic on error.
12896 (Depends-on): Add close-stream. Remove fpending, stdbool.
12897 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
12899 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
12901 * m4/close-stream.m4: New file.
12903 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
12905 * lib/close-stream.c, lib/close-stream.h: New files.
12907 2006-07-22 Bruno Haible <bruno@clisp.org>
12909 Merge from GNU gettext 0.15.
12911 2006-05-01 Bruno Haible <bruno@clisp.org>
12913 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
12915 2006-07-22 Bruno Haible <bruno@clisp.org>
12917 * modules/javaversion: New file.
12918 * MODULES.html.sh (Java): Add javaversion.
12920 2006-03-12 Bruno Haible <bruno@clisp.org>
12922 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
12924 2005-12-04 Bruno Haible <bruno@clisp.org>
12926 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
12929 2006-06-21 Bruno Haible <bruno@clisp.org>
12931 Avoid warnings from recent versions of mcs.
12932 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
12933 -o, -L, -r any more. Use options documented since mcs-1.0
12934 instead. Similarly for -g.
12936 2005-12-04 Bruno Haible <bruno@clisp.org>
12938 * build-aux/csharpcomp.sh.in: Suffix for resources is
12939 .resources, not .resource.
12941 2005-07-09 Bruno Haible <bruno@clisp.org>
12943 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
12945 Reported by Mark Junker <mjscod@gmx.de>.
12947 2006-07-22 Bruno Haible <bruno@clisp.org>
12949 * modules/gettext: Upgrade to gettext-0.15.
12950 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
12952 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
12954 2006-07-22 Bruno Haible <bruno@clisp.org>
12956 Merge from GNU gettext 0.15.
12958 2006-03-25 Bruno Haible <bruno@clisp.org>
12960 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
12962 2006-07-21 Bruno Haible <bruno@clisp.org>
12964 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
12967 2006-05-09 Bruno Haible <bruno@clisp.org>
12969 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
12970 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
12971 for the conftestver execution.
12973 2006-05-01 Bruno Haible <bruno@clisp.org>
12975 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
12976 optional target-version argument. Verify that the compiler
12977 groks source of the specified source-version, or add -source
12978 option as necessary. Verify that the compiler produces
12979 bytecode in the specified target-version, or add -target and
12980 -source options as necessary. Make the result of the test
12981 available as variable CONF_JAVAC. Also log error output in
12984 2006-03-11 Bruno Haible <bruno@clisp.org>
12986 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
12988 2006-05-09 Bruno Haible <bruno@clisp.org>
12990 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
12991 CLASSPATH_SEPARATOR to a semicolon.
12993 2006-03-12 Bruno Haible <bruno@clisp.org>
12995 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
12996 available as variable CONF_JAVA, for subsequent autoconf
12997 tests. Also log error output in config.log.
12999 2006-07-19 Bruno Haible <bruno@clisp.org>
13001 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
13002 that getline works on glibc2 systems. Needed to avoid trouble
13004 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
13006 2005-12-04 Bruno Haible <bruno@clisp.org>
13008 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
13009 launcher (untested).
13011 2005-12-04 Bruno Haible <bruno@clisp.org>
13013 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
13015 2006-07-22 Bruno Haible <bruno@clisp.org>
13017 * gettext.m4: Update from GNU gettext-0.15.
13018 * nls.m4: Likewise.
13020 * inttypes-pri.m4: Likewise.
13021 * inttypes-h.m4: Renamed from inttypes.m4.
13022 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
13024 2006-07-22 Bruno Haible <bruno@clisp.org>
13026 Merge from GNU gettext 0.15.
13028 2005-07-05 Bruno Haible <bruno@clisp.org>
13030 * printf-args.c (printf_fetchargs): Work around broken
13031 definition of wint_t on mingw.
13033 2005-02-12 Bruno Haible <bruno@clisp.org>
13035 * xallocsa.h: Add extern "C" for C++.
13037 2006-05-17 Bruno Haible <bruno@clisp.org>
13039 Cygwin portability.
13040 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
13042 2006-04-30 Bruno Haible <bruno@clisp.org>
13044 * progreloc.c: Include <mach-o/dyld.h> if available.
13045 (find_executable): Use _NSGetExecutablePath when possible.
13047 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
13049 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
13052 2005-12-29 Bruno Haible <bruno@clisp.org>
13054 * progreloc.c (set_program_name_and_installdir): Fix
13057 2005-12-04 Bruno Haible <bruno@clisp.org>
13059 Cygwin portability.
13060 * progreloc.c: Include <windows.h> also on Cygwin.
13061 (find_executable): Add support for Cygwin.
13062 (set_program_name_and_installdir): Handle also platforms with
13065 2006-07-11 Bruno Haible <bruno@clisp.org>
13067 * javacomp.c: Fix a comment.
13068 Reported by Jim Meyering.
13070 2006-04-30 Bruno Haible <bruno@clisp.org>
13072 * javacomp.h (compile_java_class): Add source_version,
13073 target_version arguments.
13074 * javacomp.c: Rewritten to choose only a compiler that
13075 respects the specified source_version and target_version.
13077 2006-06-27 Bruno Haible <bruno@clisp.org>
13079 Assume correct S_ISDIR macro.
13080 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
13082 2006-07-22 Bruno Haible <bruno@clisp.org>
13084 * javaversion.h: New file, from GNU gettext.
13085 * javaversion.c: New file, from GNU gettext.
13086 * javaversion.java: New file, from GNU gettext.
13087 * javaversion.class: New file, from GNU gettext.
13089 2006-05-17 Bruno Haible <bruno@clisp.org>
13091 Cygwin portability.
13092 * javaexec.c (execute_java_class): Test for jview program
13095 2006-04-09 Bruno Haible <bruno@clisp.org>
13097 * fatal-signal.c: Don't include string.h.
13098 (at_fatal_signal): Use a copying loop instead of memcpy.
13100 2005-12-04 Bruno Haible <bruno@clisp.org>
13102 * csharpexec.c: Add support for 'clix' launcher (untested).
13103 (execute_csharp_using_sscli): New function.
13104 (execute_csharp_program): Call it.
13106 2006-06-21 Bruno Haible <bruno@clisp.org>
13108 Avoid warnings from recent versions of mcs.
13109 * csharpcomp.c (compile_csharp_using_mono): Don't use options
13110 -o, -L, -r any more. Use options documented since mcs-1.0
13111 instead. Similarly for -g.
13113 2005-07-09 Bruno Haible <bruno@clisp.org>
13115 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
13117 Reported by Mark Junker <mjscod@gmx.de>.
13119 2006-06-17 Bruno Haible <bruno@clisp.org>
13121 * config.charset: Update for NetBSD 3.0.
13123 2006-05-17 Bruno Haible <bruno@clisp.org>
13125 Cygwin portability.
13126 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
13128 2006-05-16 Bruno Haible <bruno@clisp.org>
13130 * localcharset.c [CYGWIN]: Include <windows.h>.
13131 (get_charset_aliases): For Cygwin, return the same CPxxx
13132 aliases list as under WIN32.
13133 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
13134 the environment variables. Fall back to GetACP().
13136 2006-04-05 Bruno Haible <bruno@clisp.org>
13138 * config.charset: Update Juan Manuel Guerrero's address.
13140 2005-02-12 Bruno Haible <bruno@clisp.org>
13142 * allocsa.h: Add extern "C" for C++.
13144 2005-02-10 Bruno Haible <bruno@clisp.org>
13146 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
13147 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
13149 2006-07-22 Bruno Haible <bruno@clisp.org>
13151 * gettext.h: Update to GNU gettext-0.15.
13153 2006-07-22 Bruno Haible <bruno@clisp.org>
13155 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
13156 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
13157 lib-prefix.m4, longdouble.m4, ssize_t.m4.
13159 2006-07-21 Eric Blake <ebb9@byu.net>
13161 * modules/stdlib-safer: New file.
13162 * MODULES.html.sh (File stream based Input/Output): Add
13165 2006-07-21 Eric Blake <ebb9@byu.net>
13167 * lib/stdlib-safer.h: New file from coreutils, required by
13170 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
13172 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
13174 2006-07-20 Bruno Haible <bruno@clisp.org>
13176 * gnulib-tool: Recognize new option --assume-autoconf.
13177 (autoconf_minversion): New variable.
13178 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
13180 2006-07-20 Bruno Haible <bruno@clisp.org>
13182 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
13184 2006-07-19 Derek R. Price <derek@ximbiot.com>
13186 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
13187 Reindent and repaginate.
13189 2006-07-19 Derek Price <derek@ximbiot.com>
13191 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
13194 2006-07-17 Bruno Haible <bruno@clisp.org>
13196 * modules/list: New file.
13197 * modules/array-list: New file.
13198 * modules/carray-list, modules/carray-list-tests: New files.
13199 * modules/linked-list, modules/linked-list-tests: New files.
13200 * modules/avltree-list, modules/avltree-list-tests: New files.
13201 * modules/rbtree-list, modules/rbtree-list-tests: New files.
13202 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
13203 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
13204 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
13205 * modules/oset: New file.
13206 * modules/array-oset: New file.
13207 * modules/avltree-oset, modules/avltree-oset-tests: New files.
13208 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
13209 * tests/test-carray_list.c: New file.
13210 * tests/test-linked_list.c: New file.
13211 * tests/test-avltree_list.c: New file.
13212 * tests/test-rbtree_list.c: New file.
13213 * tests/test-linkedhash_list.c: New file.
13214 * tests/test-avltreehash_list.c: New file.
13215 * tests/test-rbtreehash_list.c: New file.
13216 * tests/test-avltree_oset.c: New file.
13217 * tests/test-rbtree_oset.c: New file.
13218 * MODULES.html.sh (Container data structures): New section.
13220 2006-07-17 Bruno Haible <bruno@clisp.org>
13222 * m4/gl_list.m4: New file.
13224 2006-07-17 Bruno Haible <bruno@clisp.org>
13226 * lib/gl_list.h: New file.
13227 * lib/gl_list.c: New file.
13228 * lib/gl_array_list.h: New file.
13229 * lib/gl_array_list.c: New file.
13230 * lib/gl_carray_list.h: New file.
13231 * lib/gl_carray_list.c: New file.
13232 * lib/gl_linked_list.h: New file.
13233 * lib/gl_linked_list.c: New file.
13234 * lib/gl_anylinked_list1.h: New file.
13235 * lib/gl_anylinked_list2.h: New file.
13236 * lib/gl_avltree_list.h: New file.
13237 * lib/gl_avltree_list.c: New file.
13238 * lib/gl_anyavltree_list1.h: New file.
13239 * lib/gl_anyavltree_list2.h: New file.
13240 * lib/gl_rbtree_list.h: New file.
13241 * lib/gl_rbtree_list.c: New file.
13242 * lib/gl_anyrbtree_list1.h: New file.
13243 * lib/gl_anyrbtree_list2.h: New file.
13244 * lib/gl_anytree_list1.h: New file.
13245 * lib/gl_anytree_list2.h: New file.
13246 * lib/gl_linkedhash_list.h: New file.
13247 * lib/gl_linkedhash_list.c: New file.
13248 * lib/gl_anyhash_list1.h: New file.
13249 * lib/gl_anyhash_list2.h: New file.
13250 * lib/gl_avltreehash_list.h: New file.
13251 * lib/gl_avltreehash_list.c: New file.
13252 * lib/gl_rbtreehash_list.h: New file.
13253 * lib/gl_rbtreehash_list.c: New file.
13254 * lib/gl_anytreehash_list1.h: New file.
13255 * lib/gl_anytreehash_list2.h: New file.
13257 * lib/gl_oset.h: New file.
13258 * lib/gl_oset.c: New file.
13259 * lib/gl_array_oset.h: New file.
13260 * lib/gl_array_oset.c: New file.
13261 * lib/gl_avltree_oset.h: New file.
13262 * lib/gl_avltree_oset.c: New file.
13263 * lib/gl_rbtree_oset.h: New file.
13264 * lib/gl_rbtree_oset.c: New file.
13265 * lib/gl_anytree_oset.h: New file.
13267 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
13269 * m4/mkancesdirs.m4: New file.
13270 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
13271 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
13272 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
13275 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
13277 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
13278 * lib/mkancesdirs.h: New files.
13279 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
13280 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
13281 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
13282 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
13283 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
13284 callers changed. Revamp internals significantly, by not
13285 attempting to create directories that are temporarily more
13286 permissive than the final results. Do not attempt to use
13287 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
13288 This removes some race conditions, fixes some bugs, and simplifies
13289 things. Use new dirchownmod function to do owner and mode changes.
13290 * lib/mkdir-p.h: Likewise.
13291 * lib/modechange.c (octal_to_mode): New function.
13292 (struct mode_change): New member mentioned.
13293 (make_node_op_equals): New arg mentioned. All callers changed.
13294 (mode_compile): Keep track of which mode bits the user has explicitly
13296 (mode_adjust): New arg DIR, so that we implement the X op correctly.
13297 New arg PMODE_BITS, to keep track of which mode bits the user
13298 mentioned; it treats S_ISUID and S_ISGID speciall.
13299 All callers changed.
13300 * lib/modechange.h: Likewise.
13302 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
13304 * MODULES.html.sh: Add mkancestors.
13305 * modules/mkancesdirs: New module.
13306 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
13307 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
13308 The chdir-safer and afs files are now orphans; I'll remove them
13309 unless someone speaks up.
13310 Add lib/dirchownmod.c, lib/dirchownmod.h.
13311 (Depends-on): Remove alloca, chown, save-cwd, dirname.
13312 Add lchown, mkancesdirs.
13313 (Maintainer): Add self.
13315 2006-07-15 Karl Berry <karl@gnu.org>
13317 * gnulib-tool: help message wording/arrangement.
13319 2006-07-14 Simon Josefsson <jas@extundo.com>
13321 * doc/gnulib.texi (Libtool and Windows): New section.
13323 2006-07-12 Simon Josefsson <jas@extundo.com>
13325 * modules/gendocs (License): Fix license, approved by Karl.
13327 2006-07-12 Eric Blake <ebb9@byu.net>
13329 * MODULES.html.sh: Add gendocs.
13331 2006-07-11 Eric Blake <ebb9@byu.net>
13333 * modules/fdl: New module, to install doc/fdl.texi.
13334 * MODULES.html.sh: Add new section for documentation modules.
13335 * gnulib-tool: Avoid space-tab.
13336 (--doc-base): New option, to manage files from doc.
13338 2006-07-11 Eric Blake <ebb9@byu.net>
13340 * m4/absolute-header.m4: Fix comments to match recent change.
13342 2006-07-11 Eric Blake <ebb9@byu.net>
13344 * gnulib-tool: List --doc-base before --tests-base.
13346 2006-07-11 Derek R. Price <derek@ximbiot.com>
13348 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
13350 2006-07-11 Bruno Haible <bruno@clisp.org>
13352 * README: Mention where to put documentation.
13354 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13356 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
13358 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
13360 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
13363 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
13365 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
13366 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
13367 "no/such/file/stdint.h" when there is no such file, so that
13368 the resulting C code can be parsed by dodgy compilers.
13369 Problems reported by Bob Proulx.
13371 2006-07-10 Derek R. Price <derek@ximbiot.com>
13373 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
13374 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
13375 macros into the GNU _D_EXACT_NAMLEN.
13376 * lib/savedir.c: Likewise.
13377 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
13379 2006-07-10 Derek R. Price <derek@ximbiot.com>
13380 and Paul Eggert <eggert@cs.ucla.edu>
13382 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
13384 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
13385 macros into the GNU _D_EXACT_NAMLEN.
13387 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
13389 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
13390 around the absolute name, to work around a problem with the HP-UX
13391 11.23 native C compiler, reported by Bob Proulx.
13393 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
13395 * doc/maintain.texi, make-stds.texi: Sync from
13396 <http://savannah.gnu.org/projects/gnustandards>.
13398 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
13400 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
13402 2006-07-09 Jim Meyering <jim@meyering.net>
13404 * m4/glob.m4: Remove a doubled word in a comment.
13406 2006-07-09 Jim Meyering <jim@meyering.net>
13408 * lib/argp-pv.c: Remove a doubled word in a comment.
13409 * lib/check-version.c (check_version): Likewise.
13410 * lib/javacomp.c (compile_java_class): Likewise.
13412 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
13414 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
13415 for the benefit of people using Autoconf 2.60. If you want to
13416 support older Autoconf versions you can copy m4/onceonly_2_57.m4
13417 (or m4/onceonly.m4, if pre-2.57) manually.
13419 2006-07-08 Jim Meyering <jim@meyering.net>
13421 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
13423 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
13424 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
13427 2006-07-08 Jim Meyering <jim@meyering.net>
13429 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
13431 2006-07-07 Simon Josefsson <jas@extundo.com>
13433 * tests/test-crc.c: Change expected crc value, the test vector
13434 were probably computed using the old broken crc.c?
13436 2006-07-06 Simon Josefsson <jas@extundo.com>
13438 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
13439 now the canonical place for the M4 file).
13441 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
13442 from the sys_socket dependency now.
13444 * modules/inet_pton (Files): Ditto.
13446 * modules/inet_ntop (Files): Ditto.
13448 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
13450 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
13451 not gl_PREREQ_GETUSERSHELL.
13453 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13455 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
13456 with only one argument, for Autoconf 2.60.
13457 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
13458 expand to nothing, so add a shell command to avoid syntax error.
13459 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
13461 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13463 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
13465 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
13467 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
13468 no longer needed. Check for isblank decl.
13469 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
13470 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
13473 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
13475 * lib/getloadavg.c: Use __VMS, not VMS.
13476 * lib/getopt.c: Likewise.
13477 * lib/getpagesize.h: Likewise.
13478 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
13479 and probably does not work.
13481 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
13483 * lib/.cppi-disable: Add wcwidth.
13484 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
13485 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
13486 (ISGRAPH): Remove. All uses changed to isgraph.
13487 (FOLD) [!defined _LIBC]: Remove special case.
13488 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
13489 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
13491 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
13494 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
13496 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
13497 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
13498 brackets. Other minor changes to suppress some compiler
13501 2006-07-06 Derek R. Price <derek@ximbiot.com>
13502 and Paul Eggert <eggert@cs.ucla.edu>
13504 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
13505 of invoking obsolescent AC_HEADER_DIRENT macro.
13506 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
13507 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
13508 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
13509 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
13510 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
13511 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
13512 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
13513 * m4/readdir.m4: Remove; no longer needed.
13515 2006-07-06 Derek R. Price <derek@ximbiot.com>
13516 and Paul Eggert <eggert@cs.ucla.edu>
13518 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
13519 Don't worry about this obsolete case any more.
13520 (HAVE_DIR): Remove. All uses removed; we now assume you can read
13522 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
13523 worry about this obsolete case any more.
13524 * lib/fts.c: Likewise.
13525 * lib/getcwd.c: Likewise.
13526 * lib/glob.h: Likewise.
13527 * lib/savedir.c: Likewise.
13529 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
13531 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
13532 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
13533 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
13536 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
13537 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
13538 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
13540 * m4/getdate.m4 (gl_GETDATE): Likewise.
13541 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
13542 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
13543 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
13544 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
13545 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
13546 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
13547 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
13550 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
13552 * lib/memcasecmp.c: Include <limits.h>.
13553 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
13554 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
13555 Don't assume isdigit succeeds only on '0' through '9'.
13557 2006-07-05 Eric Blake <ebb9@byu.net>
13559 * modules/getaddrinfo (Depends-on): Add snprintf.
13561 2006-07-05 Eric Blake <ebb9@byu.net>
13563 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
13564 to avoid 'header present but could not be compiled' on cygwin.
13566 2006-07-05 Eric Blake <ebb9@byu.net>
13568 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
13569 missing from netdb.h.
13570 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
13572 2006-07-05 Derek R. Price <derek@ximbiot.com>
13574 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
13576 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
13577 * m4/getdate.m4 (gl_GETDATE): Likewise.
13578 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
13579 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
13580 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
13581 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
13582 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
13584 2006-07-05 Derek R. Price <derek@ximbiot.com>
13586 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
13587 All uses of is_space replaced by isspace.
13588 * lib/exit.h: Don't talk about STDC_HEADERS.
13589 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
13590 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
13591 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
13592 replaced by isprint etc.
13593 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
13594 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
13595 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
13596 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
13597 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
13598 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
13600 2006-07-05 Bruno Haible <bruno@clisp.org>
13602 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
13603 the function exists, before testing against AIX.
13604 Reported by Martin Lambers <marlam@marlam.de>.
13606 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
13608 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
13609 From Mark D. Baushke.
13611 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
13613 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
13614 to the absolute name, not just one, to bypass Sun C 5.8's
13615 "warning: #include of /usr/include/... may be non-portable".
13617 2006-07-04 Eric Blake <ebb9@byu.net>
13619 * modules/dirname-tests: New test module.
13620 * tests/test-dirname.c: New file, replacing dirname.c
13621 TEST_DIRNAME section that was recently deleted.
13623 2006-07-04 Bruno Haible <bruno@clisp.org>
13625 Assume ANSI C header files and <ctype.h> functions.
13626 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
13627 (mbsnwidth): Use isprint, iscntrl instead.
13629 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
13631 Merge from coreutils.
13632 * MODULES.html.sh: Add xstrtold.
13633 * modules/xstrtold: New file.
13634 * modules/cycle-check (Files): Add lib/same-inode.h.
13635 * modules/dirname (Files): Add m4/double-slash-root.m4.
13636 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
13637 * modules/mkdir-p (Files): Add lib/same-inode.h.
13638 * modules/same (Files): Add lib/same-inode.h.
13640 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
13642 * m4/absolute-header.m4: Renamed from full-header-path.m4.
13643 This is to keep the terminology clean; POSIX talks about
13644 "absolute pathnames", not "full pathnames", but the GNU
13645 Coding Standards say to use "path" for something else;
13646 so use "absolute" to keep both sides happy.
13647 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
13648 Set gl_absolute_header, not gl_full_header_path.
13649 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
13650 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
13653 Merge from coreutils.
13655 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
13657 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
13658 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
13659 want to require the building of c-strtod.o.
13660 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
13661 needs -lm directly.
13662 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
13664 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
13666 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
13667 --as-needed option if available. Problem reported by Albert Chin in
13668 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
13669 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
13670 cc merely issues a bunch of annoying warnings for --as-needed
13671 (this problem was reported by Bob Proulx). Also, try linking with
13672 -lm to detect a bug in binutils 2.16 (this problem was reported
13673 by Ralf Wildenhues).
13675 2006-06-18 Jim Meyering <jim@meyering.net>
13677 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
13678 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
13680 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
13681 also check for glibc-2.4's abort-inducing bug.
13683 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
13684 Low-probability clean-up should be to use rmdir to get rid of
13685 the just-created directory, not unlink.
13687 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
13688 configure fail, and request a bug report to inform us about it.
13689 Add a comment that, barring reports to the contrary, in 2007 we'll
13690 assume ftruncate is universally available.
13692 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
13694 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
13696 2006-03-12 Jim Meyering <jim@meyering.net>
13698 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
13699 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
13700 * m4/same.m4 (gl_SAME): Likewise.
13701 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
13703 2006-03-11 Eric Blake <ebb9@byu.net>
13705 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
13706 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
13707 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
13708 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
13710 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
13712 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
13713 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
13714 reported by Mark D. Baushke, one in
13715 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
13717 Merge from coreutils.
13719 * lib/.cppi-disable: Add stdint_.h.
13720 * lib/.cvsignore: Add stdint.h.
13722 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
13724 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
13725 both double and long double versions.
13726 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
13727 * lib/xstrtold.c: New file.
13728 * lib/xstrtod.h (xstrtold): New decl.
13730 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
13732 * lib/filemode.c (setst): Remove.
13733 (strmode): Rewrite to avoid setst. This makes the code shorter,
13734 (arguably) clearer, and the generated code is a bit smaller on my
13735 Debian GNU/Linux stable x86 host.
13737 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
13739 * lib/filemode.c: Include "filemode.h" first, to test the interface.
13740 Assume that filemode.h includes sys/types.h and sys/stat.h.
13741 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
13742 (ftypelet): Reorder to put common cases first, for efficiency.
13743 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
13745 (strmode): Renamed from mode_string, and now stores 12 bytes instead
13746 of 10, for compatibility with FreeBSD. All callers changed.
13747 (filemodestring): Now stores 12 bytes instead of 10, and sets file
13748 types that can't be deduced solely from st_mode. First arg is now a
13750 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
13751 (strmode): Renamed from mode_string.
13752 (filemodestring): New decl.
13753 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
13754 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
13756 (S_ISPORT, S_ISWHT): New macros, if not already defined.
13758 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
13760 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
13761 fsusage.h now does that. Include fsusage.h first, to test interface.
13762 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
13763 at most one method (the old code could have generated decls that
13764 didn't conform to C89, not that this was ever exercised).
13765 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
13767 2006-03-19 Jim Meyering <jim@meyering.net>
13769 Work even in a chroot where d_ino values for entries in "/"
13770 don't match the stat.st_ino values for the same names.
13771 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
13772 number, iterate through all entries again, using lstat instead.
13773 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
13774 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
13776 * lib/getcwd.c (__getcwd): Clarify a comment.
13777 Use memcpy in place of a call to strcpy.
13779 2006-03-12 Jim Meyering <jim@meyering.net>
13781 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
13782 matches that of the current directory (which we're about to chdir ".."
13783 out of), then save the dev-ino of the parent, instead.
13785 * lib/same-inode.h (SAME_INODE): New file/macro.
13786 * lib/chdir-safer.c (SAME_INODE): Remove definition.
13787 Include "same-inode.h", instead.
13788 * lib/same.c: Likewise.
13789 * lib/cycle-check.h: Include "same-inode.h".
13790 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
13791 * lib/cycle-check.c (SAME_INODE): Remove definition.
13792 * lib/root-dev-ino.h: Include "same-inode.h".
13794 2006-03-11 Eric Blake <ebb9@byu.net>
13796 * lib/same.c (same_name): s/base_name/last_component/
13797 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
13798 * lib/filenamecat.c (file_name_concat): Likewise.
13800 2006-03-11 Eric Blake <ebb9@byu.net>,
13801 Paul Eggert <eggert@cs.ucla.edu>
13803 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
13804 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
13806 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
13807 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
13808 (last_component): New method.
13809 * lib/dirname.c (dir_len): Determine when drive letters need a
13810 subsequent slash. Preserve // when it is special.
13811 (dir_name): Don't append dot when drive letter is absolute.
13812 [TEST_DIRNAME]: Move into a full-blown gnulib test.
13813 * lib/basename.c (base_name): New semantics - malloc the result.
13814 Preserve // when it is special. Preserve relative files that look
13815 like drive letters.
13816 (base_len): Preserve // when it is special.
13817 (last_component): New method, similar to old base_name semantics.
13818 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
13819 base_name. Strip redundant slashes from ///.
13821 2006-07-03 Jim Meyering <jim@meyering.net>
13823 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
13824 macro is used before the first cycle_check call.
13826 2006-07-03 Eric Blake <ebb9@byu.net>
13828 * modules/dirname (Depends-on): Add xstrndup.
13830 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
13832 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
13833 test cases, so that config.log is a bit easier to follow.
13835 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
13837 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
13838 both are 64 bits, since this seems to be the tradition, and this
13839 prevents gcc -Wformat from warning about usages with PRIuMAX. If
13840 we ever run into a host that prefers long long to long in this
13841 case, we'll need another configure-time test. Problem reported by
13844 2006-07-02 Eric Blake <ebb9@byu.net>
13846 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
13848 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
13850 * modules/inttypes (Depends-on): No longer depends on stdint.
13851 * modules/stdint (Description): Say more about assumptions.
13852 Say that the fast types might differ. Say macros are used.
13853 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
13854 (Makefile.am): Revise list of substituted symbols to match
13856 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
13857 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
13858 * tests/test-stdint.c (verify_same_types)
13859 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
13860 the code conforms to C99/C89.
13861 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
13862 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
13864 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
13866 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
13867 but fix a bug, by requiring at least 64 bits.
13868 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
13869 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
13870 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
13871 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
13873 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
13874 changes. Make 2.59 a prerequisite. Check and substitute for
13875 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
13876 inttypes.h. Do not use special include files; just use the
13877 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
13878 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
13879 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
13880 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
13881 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
13882 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
13883 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
13884 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
13885 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
13886 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
13887 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
13888 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
13889 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
13890 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
13891 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
13892 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
13893 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
13894 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
13895 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
13896 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
13897 WINT_MAX. Check for C99 conformance more strictly, by detecting
13898 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
13899 not check for things that C99 does not require, e.g., int8_t. If
13900 a test isn't needed unless <stdint.h> isn't working, and is
13901 unlikely to be needed for any other reason, then don't do it
13902 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
13903 size_t, since we assume C89 freestanding at least. Do not check
13904 for sig_atomic_t, wchar_t, or wint_t, since the code now does
13905 the right thing even if the types are not defined. Instead use:
13906 (gl_STDINT_TYPE_PROPERTIES): New macro.
13907 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
13908 testing whether <sys/types.h> clashes, as Autoconf does this for
13909 us now. All uses removed.
13910 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
13911 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
13912 (gl_CHECK_TYPE_SAME):
13913 Remove; no longer needed.
13914 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
13915 exists, since we'll return 0 anyway in that case.
13916 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
13918 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
13920 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
13921 possible collision with system files.
13922 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
13923 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
13924 WCHAR_MIN and WCHAR_MAX in this case.
13925 (<stddef.h>): Do not include; no longer needed.
13926 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
13927 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
13928 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
13929 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
13930 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
13931 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
13932 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
13933 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
13934 !defined(__c99))]: Include in this case too, since it's harmless
13936 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
13937 dangerous to do so.
13938 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
13939 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
13940 (_STDINT_MIN, _STDINT_MAX): New macros.
13941 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
13942 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
13943 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
13944 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
13945 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
13946 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
13947 macros, not typedefs; this simplifies things quite a bit.
13948 Use long int for all types narrower than int64_t.
13949 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
13950 Define in terms of long long int or int64_t or long int,
13951 not int64_t or int32_t. This saves some compile-time testing.
13952 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
13953 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
13954 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
13955 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
13956 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
13957 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
13958 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
13959 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
13960 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
13961 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
13962 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
13963 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
13964 undef any previous version and define our own version, for
13965 simplicity and consistency with the new macros for types.
13966 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
13967 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
13968 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
13969 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
13970 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
13971 @WINT_T_SUFFIX@ to keep things simple here.
13972 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
13973 Simplify by assuming typical 8/16/32/64 host, since we're
13974 already doing that elsewhere anyway.
13975 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
13976 and assume long long int is 64 bits if available. This
13977 speeds up 'configure'.
13979 2006-07-01 Eric Blake <ebb9@byu.net>
13981 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
13982 Reported by Andreas Buening.
13984 2006-07-01 Eric Blake <ebb9@byu.net>
13986 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
13988 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
13990 * lib/getaddrinfo.c: fixed typo
13992 2006-06-29 Jim Meyering <jim@meyering.net>
13994 * modules/strftime (Maintainer): Add my name, since with the
13995 FPRINTFTIME changes strftime.c has forked from glibc.
13997 2006-06-29 Eric Blake <ebb9@byu.net>
13999 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
14001 2006-06-29 Eric Blake <ebb9@byu.net>
14003 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
14005 2006-06-29 Eric Blake <ebb9@byu.net>
14007 * lib/stat_.h: New file.
14009 2006-06-29 Eric Blake <ebb9@byu.net>
14011 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
14012 unused static function.
14014 2006-06-29 Eric Blake <ebb9@byu.net>
14016 * doc/functions.texi (Function Portability): Document missing lstat
14019 2006-06-29 Eric Blake <ebb9@byu.net>
14021 * MODULES.html.sh: Add sys_stat.
14022 * modules/sys_stat: New module.
14023 * modules/mkstemp (Depends-on): Add sys_stat.
14025 2006-06-29 Derek R. Price <derek@ximbiot.com>
14027 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
14029 2006-06-29 Derek R. Price <derek@ximbiot.com>
14031 * m4/c-bs-a.m4: Removed.
14033 2006-06-29 Derek R. Price <derek@ximbiot.com>
14035 * lib/strftime.c: Assume strftime() exists.
14037 2006-06-29 Derek Price <derek@ximbiot.com>
14039 * modules/c-bs-a: Removed - \a is C89.
14040 * MODULES.html.sh: Remove c-bs-a.
14042 2006-06-29 Bruno Haible <bruno@clisp.org>
14044 * modules/wcwidth (License): Change to LGPL.
14046 2006-06-28 Simon Josefsson <jas@extundo.com>
14048 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
14051 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
14054 2006-06-28 Simon Josefsson <jas@extundo.com>
14056 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
14058 2006-06-28 Simon Josefsson <jas@extundo.com>
14060 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
14061 functions there. It will succeed on Windows XP, but on Windows
14062 2000 and (presumably) earlier, it will fail, and use the internal
14064 (use_win32_p): New function.
14065 (getaddrinfo): Use strtoul on servname, to support numeric ports.
14066 Support AI_NUMERICSERV to disable getservbyname.
14067 (getnameinfo): New function, only supports
14068 NI_NUMERICHOST|NI_NUMERICSERV for now.
14070 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
14071 only have some of them. Add AI_NUMERICSERV. Add prototype for
14074 2006-06-28 Eric Blake <ebb9@byu.net>
14076 * modules/wcwidth: New file.
14077 * modules/mbchar (Depends-on): Add wcwidth.
14078 * modules/mbswidth (Depends-on): Add wcwidth.
14079 * MODULES.html.sh: Add wcwidth.
14081 2006-06-28 Eric Blake <ebb9@byu.net>
14083 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
14084 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
14086 2006-06-28 Eric Blake <ebb9@byu.net>
14088 * lib/xvasprintf.h: Fix comments.
14090 2006-06-28 Eric Blake <ebb9@byu.net>
14092 * lib/mbchar.h (wcwidth): Include wcwidth.h.
14093 * lib/mbswidth.c (wcwidth): Move from here...
14094 * lib/wcwidth.h: ...to this new file.
14096 2006-06-28 Derek R. Price <derek@ximbiot.com>
14098 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
14100 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
14102 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
14104 2006-06-28 Derek R. Price <derek@ximbiot.com>
14106 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
14107 Autoconf 2.60 says this stuff was obsolete.
14109 2006-06-28 Bruno Haible <bruno@clisp.org>
14111 * modules/wcwidth (Files): Add m4/wchar_t.m4.
14113 2006-06-28 Bruno Haible <bruno@clisp.org>
14115 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
14118 2006-06-28 Bruno Haible <bruno@clisp.org>
14120 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
14121 declaration for wcwidth.
14122 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
14124 2006-06-28 Bruno Haible <bruno@clisp.org>
14126 * lib/mkdtemp.c [MINGW]: Include <io.h>.
14127 (mkdir): Define using _mkdir.
14129 2006-06-28 Bruno Haible <bruno@clisp.org>
14131 * lib/getaddrinfo.h: Fix POSIX URL.
14132 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
14134 (use_win32_p): Make static.
14135 (getaddrinfo): Reject service name if it is empty or does not consist
14136 solely of decimal digits, or if its value is > 65535.
14137 (getnameinfo): Remove useless casts.
14139 2006-06-27 Simon Josefsson <jas@extundo.com>
14141 * modules/sys_select: New file, suggested by Bruno Haible, Paul
14142 Eggert and Martin Lambers.
14144 2006-06-27 Simon Josefsson <jas@extundo.com>
14146 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
14147 Eggert and Martin Lambers.
14149 2006-06-27 Bruno Haible <bruno@clisp.org>
14151 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
14152 result to 0, not to empty.
14153 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
14155 2006-06-27 Bruno Haible <bruno@clisp.org>
14157 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
14159 2006-06-26 Simon Josefsson <jas@extundo.com>
14161 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
14164 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
14166 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
14167 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
14168 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
14170 2006-06-26 Mark D. Baushke <mdb@gnu.org>
14172 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
14174 2006-06-26 Bruno Haible <bruno@clisp.org>
14176 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
14178 2006-06-26 Bruno Haible <bruno@clisp.org>
14180 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
14182 2006-06-26 Bruno Haible <bruno@clisp.org>
14184 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
14185 SGI C compiler in pre-C99 mode.
14186 Suggested by Mark D. Baushke and Larry Jones.
14188 2006-06-26 Bruno Haible <bruno@clisp.org>
14190 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
14192 Reported by Mark D. Baushke and Larry Jones.
14194 2006-06-26 Bruno Haible <bruno@clisp.org>
14196 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
14198 Suggested by Mark D. Baushke and Larry Jones.
14200 2006-06-23 Simon Josefsson <jas@extundo.com>
14201 Bruno Haible <bruno@clisp.org>
14203 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
14204 Emit mostlyclean-local rule.
14205 (func_emit_tests_Makefile_am): Likewise.
14206 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
14208 2006-06-23 Mark D. Baushke <mdb@gnu.org>
14210 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
14212 2006-06-23 Bruno Haible <bruno@clisp.org>
14214 * tests/test-stdint.c: Update to match ISO C 99 Technical
14217 2006-06-23 Bruno Haible <bruno@clisp.org>
14219 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
14221 2006-06-23 Bruno Haible <bruno@clisp.org>
14223 * lib/stdint_.h: Treat IRIX like OpenBSD.
14225 2006-06-23 Bruno Haible <bruno@clisp.org>
14227 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
14228 ISO C 99 Technical Corrigendum 1.
14230 2006-06-22 Simon Josefsson <jas@extundo.com>
14232 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
14235 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
14237 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
14238 needed. Some compiler complained about some of them. Problem reported
14240 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
14242 2006-06-21 Simon Josefsson <jas@extundo.com>
14244 * tests/test-getaddrinfo.c: New file.
14246 * modules/getaddrinfo-tests: New file.
14248 * MODULES.html.sh: Add inet_pton.
14250 * modules/inet_pton: New file.
14252 2006-06-21 Simon Josefsson <jas@extundo.com>
14254 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
14255 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
14256 of using the (limited) gnulib implementation on Windows XP.
14258 * m4/inet_pton.m4: New file.
14260 2006-06-21 Simon Josefsson <jas@extundo.com>
14262 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
14265 * lib/socket_.h: Don't define WINVER.
14267 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
14268 slightly modified to work in gnulib.
14270 2006-06-21 Simon Josefsson <jas@extundo.com>
14272 * doc/gnulib.texi (Windows sockets): Add.
14274 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
14276 * lib/read-file.c (fread_file): Start with buffer allocation of
14277 0 bytes rather than 1 byte; this simplifies the code.
14278 Don't invoke feof; it's not needed. Refactor to avoid duplicate
14279 code to free buffer and save/restore errno.
14280 (internal_read_file): Remove unused local.
14282 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
14284 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
14285 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
14286 Problem reported by Denis Excoffier in
14287 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
14289 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
14291 * modules/sys_socket, modules/socklen: Include sys/types since
14292 FreeBSD 4.x's sys/socket.h needs it.
14294 2006-06-19 Simon Josefsson <jas@extundo.com>
14296 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
14298 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
14300 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
14302 2006-06-19 Bruno Haible <bruno@clisp.org>
14304 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
14305 and FULL_PATH_INTTYPES_H in angle brackets.
14306 Reported by Mark D. Baushke <mdb@gnu.org>.
14308 2006-06-17 Eric Blake <ebb9@byu.net>
14310 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
14313 2006-06-17 Bruno Haible <bruno@clisp.org>
14315 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
14318 2006-06-17 Bruno Haible <bruno@clisp.org>
14320 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
14321 whether errno is declared. Assume <errno.h> declares errno.
14323 2006-06-17 Bruno Haible <bruno@clisp.org>
14325 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
14327 2006-06-17 Bruno Haible <bruno@clisp.org>
14329 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
14330 problem on Solaris 2.5.1.
14332 2006-06-16 Eric Blake <ebb9@byu.net>
14334 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
14335 * lib/unicodeio.c [!defined errno]: Likewise.
14336 * lib/strtol.c [!defined errno]: Likewise.
14337 * lib/strtod.c [!defined errno]: Likewise.
14339 2006-06-15 Eric Blake <ebb9@byu.net>
14341 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
14343 2006-06-15 Eric Blake <ebb9@byu.net>
14345 * config/srclist.txt (ssize_t.m4): Lose sync.
14347 2006-06-15 Bruno Haible <bruno@clisp.org>
14349 * modules/stdint (Files): Include m4/full-header-path.m4,
14350 m4/size_max.m4, m4/wchar_t.m4.
14351 (Makefile.am): Many more substitutions.
14352 * modules/stdint-tests: New file.
14353 * tests/test-stdint.c: New file.
14355 2006-06-15 Bruno Haible <bruno@clisp.org>
14357 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
14358 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
14359 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
14360 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
14361 gl_CHECK_TYPE_SAME): New macros.
14363 2006-06-15 Bruno Haible <bruno@clisp.org>
14365 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
14367 2006-06-15 Bruno Haible <bruno@clisp.org>
14369 * lib/stdint_.h: Rewritten to be fully auto-configured.
14370 Fixes bug on HP-UX/IA64.
14372 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
14374 * lib/getdate.y (__attribute__): Don't define if already defined.
14375 Problem reported by Larry Jones.
14376 * lib/utimens.c (__attribute__): Likewise.
14378 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
14380 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
14381 reported by Andreas Schwab.
14383 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14384 Bruno Haible <bruno@clisp.org>
14386 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
14387 check for the declaration of strnlen and a run test that exposes the
14388 AIX 5.1 strnlen bug. In the failure case, #define strndup to
14391 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14392 Bruno Haible <bruno@clisp.org>
14394 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
14396 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14398 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
14399 compile test, for Tru64 4.0D.
14401 2006-05-28 Karl Berry <karl@gnu.org>
14403 * config/srclist.txt (printf-args.c): lose sync.
14405 2006-05-26 Martin Lambers <marlam@marlam.de>
14407 * lib/getpass.c: Updates the test for the native W32 API, and adds
14408 missing includes, thus fixing compilation warnings.
14410 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
14412 * lib/exclude.c (exclude_fnmatch): New function.
14413 (excluded_file_name): Call exclude_fnmatch.
14414 * lib/exclude.h (excluded_file_name): New prototype
14416 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
14418 * lib/tempname.c (small_open, large_open): New macros.
14419 (__open, __open64) [!_LIBC]: Remove.
14420 (__gen_tempname): Use small_open and large_open instead of __open
14421 and __open64. This fixes a portability bug on HP-UX 11.11i
14422 reported by Simon Wing-Tang in
14423 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
14425 2006-05-24 Bruno Haible <bruno@clisp.org>
14427 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
14428 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
14429 Reported by Thorsten Maerz <torte@netztorte.de> via
14430 Aaron Stone <aaron@serendipity.cx>.
14432 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
14434 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
14435 gl_ rather than jm_. Link, don't run, so that cross-compiles are
14436 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
14437 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
14438 not really conditional on the cache.
14439 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
14441 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
14443 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
14444 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
14445 (my_usleep): Don't mishandle maximum value.
14447 2006-05-19 Jim Meyering <jim@meyering.net>
14449 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
14451 2006-05-17 Bruno Haible <bruno@clisp.org>
14453 Cygwin portability.
14454 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
14456 2006-05-17 Bruno Haible <bruno@clisp.org>
14458 * lib/stdint_.h: Fix recognition of Cygwin.
14460 2006-05-15 Bruno Haible <bruno@clisp.org>
14462 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
14463 on libtool patch by Ralf Wildenhues.
14465 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
14467 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
14468 test for C99 conformance; (bool) 0.5 is an integer constant
14469 expression, but (bool) -0.5 is not. Problem reported by Fedor
14470 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
14472 2006-05-11 Simon Josefsson <jas@extundo.com>
14474 * m4/xvasprintf.m4: Fix obvious typo.
14476 2006-05-11 Jim Meyering <jim@meyering.net>
14478 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
14481 2006-05-10 Simon Josefsson <jas@extundo.com>
14483 * lib/md4.c: Typo fix, update copyright years.
14484 (K1, K2): Don't use L because it turn computations into 64-bit on
14487 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
14489 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
14490 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
14491 unwanted sign propagation, e.g., on hosts with 64-bit int.
14492 There still are some problems with reeelly weird theoretical hosts
14493 (e.g., 33-bit int) but it's not worth worrying about now.
14494 * lib/sha1.c (rol): Likewise.
14495 (K1, K2, K3, K4): Remove unnecessary L suffix.
14497 2006-05-10 Bruno Haible <bruno@clisp.org>
14499 * lib/des.c: Cast to avoid warnings.
14501 2006-05-09 Bruno Haible <bruno@clisp.org>
14503 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
14504 (Depends-on): Depend also on xsize, stdarg.
14505 (configure.ac): Add gl_XVASPRINTF.
14507 2006-05-09 Bruno Haible <bruno@clisp.org>
14509 * m4/xvasprintf.m4: New file.
14511 2006-05-09 Bruno Haible <bruno@clisp.org>
14513 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
14514 (EOVERFLOW): Define fallback value.
14515 (xstrcat): New function.
14516 (xvasprintf): Recognize the special case of a string concatenation.
14518 2006-05-08 Eric Blake <ebb9@byu.net>
14520 * gnulib-tool (func_version): Base copyright year on CVS date.
14521 (func_emit_copyright_notice): New function.
14522 (func_emit_lib_Makefile_am): Use it.
14523 (func_emit_tests_Makefile_am): Likewise.
14524 (func_import): Likewise.
14526 2006-05-08 Bruno Haible <bruno@clisp.org>
14528 * modules/stdarg: New file.
14529 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
14531 2006-05-08 Bruno Haible <bruno@clisp.org>
14533 * m4/stdarg.m4: New file, from GNU gettext.
14535 2006-05-08 Bruno Haible <bruno@clisp.org>
14537 * config/srclist.txt (build-aux/config.rpath): different from latest
14540 2006-05-08 Bruno Haible <bruno@clisp.org>
14542 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
14544 2006-05-05 Jim Meyering <jim@meyering.net>
14546 * m4/warning.m4: New file, derived from bison's file by the same name.
14548 2006-05-03 Bruno Haible <bruno@clisp.org>
14550 * lib/stdint_.h: Shorter URL.
14551 * lib/inttypes.h: Likewise.
14553 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
14555 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
14557 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
14559 * lib/verify.h: Document the internals better. Most of this change
14560 was written by Bruno Haible.
14562 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
14564 * doc/verify.texi: New file, partly based on a proposal by
14567 2006-05-02 Bruno Haible <bruno@clisp.org>
14569 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
14571 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
14573 2006-04-29 Bruno Haible <bruno@clisp.org>
14575 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
14576 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
14578 2006-04-29 Bruno Haible <bruno@clisp.org>
14580 * gnulib-tool: Make --update option actually work.
14582 2006-04-29 Bruno Haible <bruno@clisp.org>
14584 * doc/gcd.texi: New file.
14585 * doc/gnulib.texi: Include it.
14587 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
14589 * lib/getdate.y (get_date): When adding relative date, start with the
14590 initial time, not with the result of the first mktime call.
14592 2006-04-25 Bruno Haible <bruno@clisp.org>
14594 * gnulib-tool (func_import): Output the include directives in three
14595 blocks, sorted separately.
14596 Reported by Ben Pfaff <blp@cs.stanford.edu>.
14598 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
14600 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
14601 to define main with arguments, for C++. Reported by Eric Blake.
14602 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
14603 Prefer 'int main ()' to 'int main (void)', for C++.
14604 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14605 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
14606 for 'main', for C99 and C++.
14608 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
14610 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
14611 Don't assume that exit status -1 is valid.
14612 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14613 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
14614 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
14615 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
14616 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
14617 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
14618 not AC_TRY_RUN. Use return, not exit. Don't assume that
14619 functions can be used without declaring them, or that you can
14620 exit with status -1.
14621 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
14623 2006-04-24 Karl Berry <karl@gnu.org>
14625 * config/srclist.txt (longdouble.m4): sync lost.
14627 2006-04-24 Eric Blake <ebb9@byu.net>
14629 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
14631 2006-04-24 Bruno Haible <bruno@clisp.org>
14633 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
14634 poll() implementation in AIX.
14635 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14637 2006-04-24 Bruno Haible <bruno@clisp.org>
14639 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
14640 assigned exactly once.
14642 2006-04-23 Claudio Fontana <claudio@gnu.org>
14643 Bruno Haible <bruno@clisp.org>
14645 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
14646 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
14649 2006-04-23 Bruno Haible <bruno@clisp.org>
14651 * modules/copy-file: Depend on unistd.
14652 * modules/execute: Likewise.
14653 * modules/fatal-signal: Likewise.
14654 * modules/findprog: Likewise.
14655 * modules/mkdtemp : Likewise.
14656 * modules/pipe: Likewise.
14657 * modules/wait-process: Likewise.
14659 2006-04-23 Bruno Haible <bruno@clisp.org>
14661 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
14662 condition was already detected.
14663 Reported by Ben Pfaff <blp@cs.stanford.edu>.
14665 2006-04-23 Bruno Haible <bruno@clisp.org>
14667 * lib/copy-file.c: Include <unistd.h> unconditionally.
14668 * lib/execute.c: Likewise.
14669 * lib/fatal-signal.c: Likewise.
14670 * lib/findprog.c: Likewise.
14671 * lib/mkdtemp.c: Likewise.
14672 * lib/pipe.h: Likewise.
14673 * lib/pipe.c: Likewise.
14674 * lib/wait-process.h: Likewise.
14676 2006-04-23 Bruno Haible <bruno@clisp.org>
14678 * gnulib-tool (func_usage): Fix --import description. Document
14680 (func_import): Create temporary file in a temporary directory, if
14681 --dry-run is specified. Silence errors from 'grep' when there are no
14682 m4 files in $m4dir.
14683 (func_create_testdir): Silence errors from 'grep' when there are no
14684 m4 files in $m4dir.
14685 Reported by Karl Berry <karl@freefriends.org>.
14687 2006-04-20 Bruno Haible <bruno@clisp.org>
14689 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
14690 one argument, so that the code will be portable to Autoconf 2.60.
14691 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
14692 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
14693 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
14695 2006-04-19 Derek Price <derek@ximbiot.com>
14696 Eric Blake <ebb9@byu.net>
14698 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
14699 rather than "/full/path.h". Update comment to match. Shorten &
14700 generalize m4_translit call via AS_TR_CPP.
14702 2006-04-19 Derek Price <derek@ximbiot.com>
14703 Eric Blake <ebb9@byu.net>
14705 * lib/inttypes.h: Correct grammar in comment.
14707 2006-04-18 Derek Price <derek@ximbiot.com>
14708 Paul Eggert <eggert@cs.ucla.edu>
14710 * modules/inttypes: New file.
14711 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
14713 2006-04-18 Derek Price <derek@ximbiot.com>
14714 Paul Eggert <eggert@cs.ucla.edu>
14716 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
14719 2006-04-18 Derek Price <derek@ximbiot.com>
14720 Paul Eggert <eggert@cs.ucla.edu>
14722 * lib/inttypes.h: New file.
14723 * lib/strtoimax.c: Assume <inttypes.h>.
14725 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
14727 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
14728 isn't mounted. Problem reported by Kir Kolyshkin.
14730 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
14732 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
14733 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
14735 * lib/regex.h (RE_DUP_MAX): Update comment to match current
14738 2006-04-12 Eric Blake <ebb9@byu.net>
14740 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
14741 is now done automatically by the corresponding Autoconf macro.
14743 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
14745 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
14748 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
14750 Merge regex changes from libc, removing some of our
14751 POSIX-conformance changes that were rejected and redoing them in a
14752 less-intrusive way.
14754 * lib/regcomp.c (re_compile_internal, init_dfa):
14755 Length arg is now size_t, not Idx. All uses changed.
14756 (peek_token): Forward decl now says internal_function.
14757 (__re_error_msgid, __re_error_msgid_idx):
14758 Now static rather than extern with attribute_hidden.
14759 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
14760 For some reason libc prefers K&R style defns for external functions.
14761 (regerror) [!defined _LIBC]: Likewise.
14762 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
14763 (seek_collating_symbol_entry, lookup_collation_sequence_value):
14764 (build_range_exp, build_collating_symbol):
14765 Use K&R-style defn.
14766 (re_compile_fastmap): Use '\0' to memset, not 0.
14767 (utf8_sb_map): Make the calculations more obvious.
14768 (init_dfa, parse_bracket_exp, build_charclass_op):
14769 Call calloc and cast result, as glibc does.
14770 (init_word_char, fetch_token, peek_token, peek_token_bracket):
14771 (build_range_exp, build_collating_symbol):
14772 Now internal functions.
14774 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
14776 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
14777 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
14778 Don't depend on VMS; depend on __VMS instead, for POSIX
14779 namespace cleanness.
14780 (regoff_t): Define to ssize_t, not long int.
14782 Remove the REG_ macros named below. Instead, make the old names
14783 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
14785 (REG_BACKSLASH_ESCAPE_IN_LISTS):
14786 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
14787 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
14788 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
14789 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
14790 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
14791 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
14792 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
14793 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
14794 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
14795 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
14796 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
14797 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
14798 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
14799 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
14800 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
14801 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
14803 Remove. All uses replaced by the old RE_* names.
14804 (RE_BACKSLASH_ESCAPE_IN_LISTS):
14805 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
14806 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
14807 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
14808 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
14809 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
14810 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
14811 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
14812 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
14813 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
14814 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
14815 Don't bother having these macros be independent of each others'
14816 values, since they no longer exist in the POSIX name space.
14818 Rename the following member names back to their old names,
14819 unless !__USE_GNU_REGEX. All uses changed back.
14820 (buffer): Renamed from re_buffer.
14821 (allocated): Renamed from re_allocated.
14822 (used): Renamed from re_used.
14823 (syntax): Renamed from re_syntax.
14824 (fastmap): Renamed from re_fastmap.
14825 (translate): Renamed from re_translate.
14826 (can_be_null): Renamed from re_can_be_null.
14827 (regs_allocated): Renamed from re_regs_allocated.
14828 (fastmap_accurate): Renamed from re_fastmap_accurate.
14829 (no_sub): Renamed from re_no_sub.
14830 (not_bol): Renamed from re_not_bol.
14831 (not_eol): Renamed from re_not_eol.
14832 (newline_anchor): Renamed from re_newline_anchor.
14833 (num_regs): Renamed from rm_num_regs.
14834 (start): Renamed from rm_start.
14835 (end): Renamed from rm_end.
14837 (free_state): Move up a bit.
14839 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
14840 #define to be empty.
14841 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
14842 when that is what is intended.
14843 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
14844 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
14846 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
14847 All uses changed back to re_malloc, etc. It's now the caller's
14848 responsibility to check for overflow; all callers changed.
14849 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
14850 (re_x2nrealloc): Remove.
14851 (free_state): Remove decl.
14853 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
14854 (re_set_registers, re_exec):
14855 Use K&R-style defn.
14857 2006-01-31 Roland McGrath <roland@redhat.com>
14859 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
14860 Reported by Mike Frysinger <vapier@gentoo.org>.
14862 2006-01-15 Andreas Jaeger <aj@suse.de>
14865 * lib/regex_internal.c (re_string_reconstruct): Adjust for
14866 build_wcs_upper_buffer change.
14867 (build_wcs_upper_buffer): Change return type.
14869 2005-12-10 Ulrich Drepper <drepper@redhat.com>
14871 * lib/regex_internal.h: Include <stdint.h> if available.
14873 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
14875 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
14877 2005-10-14 Ulrich Drepper <drepper@redhat.com>
14879 * lib/regcomp.c: Adjust for changed secondary hash function.
14881 2005-09-30 Ulrich Drepper <drepper@redhat.com>
14883 * lib/regex.h: Pretty printing.
14884 Clean up namespace a bit.
14886 2005-09-30 Jakub Jelinek <jakub@redhat.com>
14888 * lib/regexec.c (update_cur_sifted_state, check_arrival,
14889 check_arrival_add_next_nodes): Avoid using uninitialized variable.
14891 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
14892 Ulrich Drepper <drepper@redhat.com>
14895 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
14897 (bitset_word_t): Renamed from bitset_word. All uses changed.
14899 2005-09-22 Ulrich Drepper <drepper@redhat.com>
14902 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
14903 * lib/regcomp.c: Remove unnecessary uses of
14904 unsigned RE_TRANSLATE_TYPE.
14905 * lib/regex_internal.h: Likewise.
14906 * lib/regex_internal.c: Likewise.
14907 * lib/regexec.c: Likewise.
14908 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
14910 2005-09-07 Ulrich Drepper <drepper@redhat.com>
14912 * lib/regexec.c (find_recover_state): Remove unnecessary
14914 (transit_state_bkref): Make DFA a const pointer.
14915 (get_subexp): Likewise.
14916 (check_arrival): Likewise.
14917 (update_cur_sifted_state): Likewise.
14918 (re_search_internal): Likewise.
14919 (prune_impossible_nodes): Likewise.
14920 (acquire_init_state_context): Likewise.
14921 (proceed_next_node): Likewise.
14922 (set_regs): Likewise.
14923 (free_fail_stack_return): Likewise.
14924 (check_arrival_expand_ecl): Mark DFA parameter as const.
14925 (check_arrival_expand_ecl_sub): Likewise.
14926 (check_subexp_limits): Likewise.
14927 (sub_epsilon_src_nodes): Likewise.
14928 (add_epsilon_src_nodes): Likewise.
14929 (merge_state_array): Likewise.
14930 (update_regs): Likewise.
14931 (build_trtable): Likewise.
14932 (sift_states_backward): Mark MCTX parameter as const.
14933 (build_sifted_states): Likewise.
14934 (update_cur_sifted_state): Likewise.
14935 (sift_states_mkref): Likewise.
14936 (check_arrival_expand_ecl): Mark eclosure as const.
14937 (check_dst_limits_calc_pos_1): Likewise.
14938 * lib/regex_internal.h (re_match_context_t): Make dfa a const
14941 2005-09-06 Ulrich Drepper <drepper@redhat.com>
14943 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
14944 (transit_state_sb): Likewise.
14945 (transit_state_mb): Likewise.
14946 (sift_states_iter_mb): Likewise.
14947 (check_arrival_add_next_nodes): Likewise.
14948 (check_node_accept_bytes): Change first parameter to pointer-to-const.
14949 [_LIBC] (re_search_2_stub): Use mempcpy.
14951 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
14952 mbrtowc for very simple UTF-8 case.
14954 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
14955 a pointer-to-const.
14956 (re_acquire_state_context): Likewise.
14957 * lib/regex_internal.h: Adjust prototypes.
14959 * lib/regex.c: Prevent using C++ compilers.
14961 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
14962 (re_acquire_state_context): Likewise.
14964 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
14966 * modules/regex (Depends-on): Add ssize_t.
14968 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
14970 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
14973 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
14975 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
14977 2006-03-29 Mark D. Baushke <mdb@gnu.org>
14978 Bruno Haible <bruno@clisp.org>
14980 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
14981 <sys/types.h> and <inttypes.h>.
14983 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14985 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
14986 `__error_t_defined', so argp.h will not typedef the former.
14988 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
14990 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
14991 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
14992 glibc names. Even if glibc is changed to conform to POSIX, the
14993 traditional names will be available anyway, since regex depends on
14994 the extensions module. Also, fix a longstanding typo in the
14995 implementation of Spencer ERE test #75 from grep 2.3. Problems
14996 reported by Emanuele Giaquinta. Also, change sense of cached
14997 variable, so that the message makes sense.
14999 2006-03-24 Simon Josefsson <jas@extundo.com>
15001 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
15002 including some doc fixes.
15003 (base64_encode_alloc): Fix +1 bug on allocation failures.
15005 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15007 * lib/base64.c (base64_encode): Do not read past end of array with
15008 unsanitized input on systems with CHAR_BIT > 8.
15010 2006-03-24 Eric Blake <ebb9@byu.net>
15012 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
15014 2006-03-22 Karl Berry <karl@gnu.org>
15016 * config/srclist.txt (*setenv.[ch]): get from coreutils.
15017 * config/srclistvars.sh (COREUTILS): new var.
15019 2006-03-17 Jim Meyering <jim@meyering.net>
15021 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
15022 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
15024 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
15026 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
15027 no longer needs it. Instead, check that regoff_t is as least
15028 as wide as ptrdiff_t.
15030 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
15031 so that our regex.h stays compatible with the installed regex.
15032 This is helpful for installers who configure --without-included-regex.
15033 Problem reported by Emanuele Giaquinta.
15035 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
15037 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
15038 Typedef to long int, not to off_, as POSIX will likely change
15041 2006-03-15 Eric Blake <ebb9@byu.net>
15043 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
15045 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
15047 * lib/argp-help.c (validate_uparams): Fix typo
15048 * lib/argp-parse.c (argp_default_options): Consistently begin help
15049 messages with a lowercase letter.
15051 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
15053 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
15054 overrun buffers and shouldn't be used (much as gets shouldn't be
15056 * lib/time_r.c (asctime_r, ctime_r): Likewise.
15058 2006-03-08 Simon Josefsson <jas@extundo.com>
15060 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
15061 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15063 2006-03-08 Simon Josefsson <jas@extundo.com>
15065 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
15066 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15068 2006-03-08 Simon Josefsson <jas@extundo.com>
15070 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
15071 signal that configure disabled the device.
15073 2006-03-08 Simon Josefsson <jas@extundo.com>
15075 * build-aux/maint.mk: Fix refresh-po, to handle no translated
15078 2006-03-07 Simon Josefsson <jas@extundo.com>
15080 * modules/getopt (Depends-on): Add unistd.
15082 * modules/unistd: New file.
15084 2006-03-07 Simon Josefsson <jas@extundo.com>
15086 * modules/gc-random: New file.
15088 2006-03-07 Simon Josefsson <jas@extundo.com>
15090 * m4/unistd_h.m4: New file.
15092 2006-03-07 Simon Josefsson <jas@extundo.com>
15094 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
15095 test to be side-effect free by storing the result in the cache
15096 variable gl_cv_lib_readline, and moving the assignment of
15097 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
15098 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15100 2006-03-07 Simon Josefsson <jas@extundo.com>
15102 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
15103 error on missing devices (the functions will return an error).
15105 * m4/gc.m4: Move random stuff to gc-random.m4
15107 2006-03-07 Simon Josefsson <jas@extundo.com>
15109 * lib/unistd_.h: New file.
15111 2006-03-07 Simon Josefsson <jas@extundo.com>
15113 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
15115 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
15117 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
15118 Problem reported by Juan Manuel Guerrero.
15120 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
15122 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
15124 * lib/getlogin_r.c: Likewise.
15125 * lib/getlogin_r.h: Likewise.
15126 * lib/glob.c: Likewise.
15127 * lib/pagealign_alloc.c: Likewise.
15128 * lib/unistd_.h: Remove; no longer needed.
15130 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
15132 * MODULES.html.sh (Support for systems lacking POSIX:2001):
15134 * modules/c-stack (Depends-on): Add unistd.
15135 * modules/getlogin_r: Likewise.
15136 * modules/glob: Likewise.
15137 * modules/pagealign_alloc: Likewise.
15138 * modules/unistd (Files): Remove lib/unistd_.h.
15139 (EXTRA_DIST): Remove.
15140 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
15142 (MOSTLYCLEANFILES): Remove unistd.h-t.
15144 2006-03-03 Simon Josefsson <jas@extundo.com>
15146 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
15148 2006-03-03 Simon Josefsson <jas@extundo.com>
15150 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
15153 2006-03-03 Simon Josefsson <jas@extundo.com>
15155 * build-aux/maint.mk: Add indent target.
15157 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
15159 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
15160 our replacement poll.h in any case, to avoid a differing
15161 declaration from a system header. Seen on AIX.
15163 2006-03-01 Simon Josefsson <jas@extundo.com>
15165 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
15168 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
15170 * modules/gettime (Depends-on): Add extensions module.
15171 * modules/nanosleep (Depends-on): Likewise.
15172 * modules/settime (Depends-on): Likewise.
15174 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
15176 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
15177 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
15179 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15180 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
15182 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
15183 not "==". Reported by Ralf Wildenhues.
15185 2006-03-01 Karl Berry <karl@gnu.org>
15187 * doc/Copyright/request-*: new files, synced from gnuorg.
15189 2006-03-01 Karl Berry <karl@gnu.org>
15191 * config/srclist.txt (Copyright/*): new entries.
15193 2006-02-28 Simon Josefsson <jas@extundo.com>
15195 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
15197 2006-02-27 Simon Josefsson <jas@extundo.com>
15199 * lib/base64.h: Indent #define's. From Jim Meyering
15200 <jim@meyering.net>.
15202 2006-02-27 Jim Meyering <jim@meyering.net>
15204 Revert the change of 2006-02-24, so these files can continue
15205 to be sync'd from gettext.
15206 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
15209 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
15211 * modules/intprops: New file.
15212 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
15214 * modules/getloadavg (Files): Remove lib/intprops.h.
15215 (Depends-on): Add intprops.
15216 * modules/human: Likewise.
15217 * modules/inttostr: Likewise.
15218 * modules/openat: Likewise.
15219 * modules/sig2str: Likewise.
15220 * modules/userspec: Likewise.
15221 * modules/utimecmp: Likewise.
15222 * modules/xnanosleep: Likewise.
15223 * modules/xstrtol: Likewise.
15225 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
15227 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
15228 * modules/lock-tests (TESTS): Use $(EXEEXT).
15229 * modules/tls-tests: Likewise.
15230 * modules/argp-tests: Likewise.
15231 (check_PROGRAMS): New var, replacing...
15232 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
15234 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15236 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
15239 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
15241 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
15243 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15245 Sync from coreutils.
15246 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
15249 2006-02-22 Jim Meyering <jim@meyering.net>
15251 Sync from coreutils.
15252 * m4/chdir-safer.m4: New file.
15254 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
15256 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
15257 AT_FDCWD exceeds INT_MAX.
15258 * lib/openat.h (AT_FDCWD): Likewise.
15260 2006-02-17 Eric Blake <address@hidden>
15262 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
15264 2006-02-16 Simon Josefsson <jas@extundo.com>
15266 * modules/getaddrinfo (Depends-on): Add sys_socket.
15268 2006-02-15 Simon Josefsson <jas@extundo.com>
15270 * build-aux/maint.mk: Add dsyntax-check rule.
15272 2006-02-15 Eric Blake <ebb9@byu.net>
15274 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
15275 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
15276 'present but cannot compile' warnings on cygwin.
15277 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
15278 use ws2tcpip.h if sys/socket.h works.
15279 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
15280 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
15282 2006-02-14 Simon Josefsson <jas@extundo.com>
15284 * modules/maintainer-makefile (Files): Rename.
15286 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
15287 and (the local) Makefile.cfg to maint-cfg.mk.
15289 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
15292 * modules/maintainer-makefile: New module.
15294 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
15295 severaly stripped to make it possible to build it up from scratch
15296 with reliable tests.
15298 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
15299 fixes to permit overriding the default actions when configure and
15300 makefile are not available.
15302 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
15304 Sync from coreutils.
15305 * modules/lstat (Depends-on): Don't depend on xalloc.
15306 (License): Change from GPL to LGPL, since this is now simply a
15307 replacement for a libc function.
15309 2006-02-14 Jim Meyering <jim@meyering.net>
15311 Sync from coreutils.
15313 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
15314 failure on deficient systems, and simplify gnulib lgpl dependencies.
15315 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
15316 xmalloc/lstat combination. Based on a patch from Bruno Haible.
15318 * lib/xalloc-die.c: Remove unused definition of N_.
15320 2006-02-14 Jim Meyering <jim@meyering.net>
15322 Sync from coreutils.
15323 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
15324 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
15325 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
15326 double-quote uses of that variable, to accommodate the rare case in
15327 which getmntent is available in none of the libraries checked. This
15328 happens at least on FreeBSD 5.0.
15330 2006-02-13 Simon Josefsson <jas@extundo.com>
15332 * gnulib-tool (Usage): Fix --import, from
15333 karl@freefriends.org (Karl Berry).
15335 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
15337 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
15339 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
15341 * lib/argp-namefrob.h: Restore changes accidentally lost during the
15342 "autoupdate" on 2005-12-12.
15344 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
15346 * modules/closeout (Depends-on): Remove atexit.
15348 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
15350 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
15351 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
15353 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
15355 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
15356 __EXTENSIONS__ if this causes compilation to fail. Problem
15357 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
15358 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
15360 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
15362 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
15363 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
15364 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
15367 2006-01-26 Simon Josefsson <jas@extundo.com>
15369 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
15370 prototype is visible on mingw32.
15372 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
15375 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
15378 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
15380 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
15381 attempt to open for write; this always fails, at least on POSIX
15382 hosts. This reinstates the 2006-01-09 change, which was
15383 inadvertently removed.
15385 2006-01-26 Bruno Haible <bruno@clisp.org>
15387 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
15388 Reported by Paul Eggert.
15390 2006-01-26 Bruno Haible <bruno@clisp.org>
15391 Paul Eggert <eggert@cs.ucla.edu>
15393 * lib/stdbool_.h (_Bool)
15394 [(! (defined __cplusplus || defined __BEOS__)
15395 && !defined __GNUC__
15396 && !(defined __HP_cc || defined __xlc__
15397 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
15398 || defined __sgi))]:
15399 #define to signed char in these cases too; this simplifies
15400 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
15401 etc., separately) and makes it more conservative.
15403 2006-01-25 Simon Josefsson <jas@extundo.com>
15405 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
15406 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
15407 ws2tcpip.h with WINVER=0x0501. All for mingw32.
15409 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
15411 * lib/argp-namefrob.h: Bugfix. Remove stray #
15413 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
15415 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
15416 so that we test the test.
15417 Check for yet another HP-UX cc bug involving *bool |= bool.
15419 2006-01-25 Karl Berry <karl@gnu.org>
15421 * config/srclist.txt (vasnprintf.c): sync lost.
15423 2006-01-25 Jim Meyering <jim@meyering.net>
15425 Sync from the stable (b5) branch of coreutils:
15427 * lib/fts.c (fts_children): Don't let close() clobber errno from
15430 * lib/fts.c (fts_stat): When following a symlink-to-directory,
15431 don't necessarily interpret stat-fails+lstat-succeeds as indicating
15432 a dangling symlink. That can also happen at least for ELOOP.
15433 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
15434 FYI, this bug predates the inclusion of fts.c in coreutils.
15436 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
15437 in their own block, so pre-c99 compilers don't object.
15439 Avoid the double-free (first in fts_read, second in fts_close) that
15440 would occur when an `active' directory is made inaccessible (e.g.,
15441 via chmod a-x) during a traversal.
15442 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
15443 before returning. Reproduce this failure by
15444 mkdir -p a/b; cd a; chmod a-x . b
15445 Reported by Stavros Passas.
15447 2006-01-25 Jim Meyering <jim@meyering.net>
15449 * lib/fileblocks.c: Remove more useless parentheses.
15450 * lib/readutmp.h: Likewise.
15452 2006-01-25 Bruno Haible <bruno@clisp.org>
15454 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
15456 Reported by Paul Eggert.
15458 2006-01-25 Bruno Haible <bruno@clisp.org>
15460 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
15461 rid of a trap command. For Solaris sh.
15462 Reported by Mark D. Baushke <mdb@gnu.org>.
15464 2006-01-24 Simon Josefsson <jas@extundo.com>
15466 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
15469 2006-01-24 Karl Berry <karl@gnu.org>
15471 * config/srclist.txt (argp-namefrob.h): sync lost.
15473 2006-01-24 Jim Meyering <jim@meyering.net>
15475 * modules/openat (Files): Add lib/intprops.h.
15476 From Mark D. Baushke.
15478 2006-01-24 Jim Meyering <jim@meyering.net>
15480 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
15481 Reported by Mark D. Baushke.
15483 2006-01-24 Jim Meyering <jim@meyering.net>
15485 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
15487 2006-01-24 Bruno Haible <bruno@clisp.org>
15489 * modules/strnlen (Maintainer): Change from glibc to all.
15491 2006-01-24 Bruno Haible <bruno@clisp.org>
15493 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
15494 Patch by Paul Eggert.
15496 2006-01-24 Bruno Haible <bruno@clisp.org>
15498 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
15500 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
15503 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
15504 'signed char' to avoid problems with the built-in _Bool type.
15505 Reported by Paul Eggert on 2005-11-26.
15507 2006-01-24 Bruno Haible <bruno@clisp.org>
15509 * gnulib-tool (func_import): Avoid constructing complicated sed
15510 expressions inside backquote.
15511 Report and solution by Mark D. Baushke <mdb@gnu.org>.
15513 2006-01-23 Ulrich Drepper <drepper@redhat.com>
15515 These changes imported from libc.
15516 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
15517 test and two separate function calls.
15518 * lib/strndup.c (__strndup): Add libc_hidden_def.
15520 2006-01-23 Simon Josefsson <jas@extundo.com>
15522 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
15523 Remove the test_*_SOURCES variable: automake infers it by default.
15524 * modules/tls-tests: Likewise.
15526 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
15528 Work around porting bugs reported by Dieter in
15529 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
15530 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
15531 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
15532 Include "getopt.h" first, to check interface.
15533 (getenv): Declare only if defined HAVE_DECL_GETENV &&
15535 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
15536 (__strndup): Revert to K&R-style function dfns, the glibc style.
15537 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
15538 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
15539 Include strnlen.h first, to get prototype properly.
15540 (strnlen): Renamed from __strnlen.
15543 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
15545 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
15547 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
15549 * config/srclist.txt: Adjust to reflect glibc reorganization.
15550 This affects only comments.
15552 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
15554 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
15555 Reported by Bruce Korb <bkorb@gnu.org>.
15557 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
15559 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
15560 to pacify gcc -Wswitch-default.
15562 2006-01-22 Bruno Haible <bruno@clisp.org>
15564 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
15565 temporary buffer for sprintf, take into account the precision also
15566 for 'd', 'i', 'u', 'o', 'x', 'X'.
15568 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
15570 * modules/argp-tests: New module
15571 * tests/test-argp.c: New file
15572 * tests/test-argp-2.sh: New file
15574 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
15576 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
15577 (__argp_base_name): Removed
15578 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
15580 (__argp_base_name): Provide macro definition or extern declaration
15581 depending on the configuration
15583 2006-01-20 Simon Josefsson <jas@extundo.com>
15585 * modules/inet_ntop (Depends-on): Depend on sys_socket.
15587 2006-01-20 Simon Josefsson <jas@extundo.com>
15589 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
15591 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
15593 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
15594 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
15595 Suggested by Bruno Haible.
15597 2006-01-20 Karl Berry <karl@gnu.org>
15599 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
15600 until changes propagate, I guess.
15602 2006-01-19 Simon Josefsson <jas@extundo.com>
15604 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
15606 2006-01-19 Simon Josefsson <jas@extundo.com>
15608 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
15610 2006-01-19 Simon Josefsson <jas@extundo.com>
15612 * gnulib-tool: Set check_PROGRAMS.
15614 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
15615 modules/des-tests, modules/gc-arcfour-tests,
15616 modules/gc-arctwo-tests, modules/gc-des-tests,
15617 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
15618 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
15619 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
15620 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
15621 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
15622 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
15623 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
15626 2006-01-18 Simon Josefsson <jas@extundo.com>
15628 * modules/socklen (Depends-on): Depend on sys_socket.
15630 2006-01-18 Simon Josefsson <jas@extundo.com>
15632 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
15633 modules/des-tests, modules/gc-arcfour-tests,
15634 modules/gc-arctwo-tests, modules/gc-des-tests,
15635 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
15636 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
15637 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
15638 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
15639 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
15640 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
15641 $(EXEEXT) to automake TESTS variable, for mingw32.
15643 2006-01-17 Simon Josefsson <jas@extundo.com>
15645 * modules/socklen (Include): Need sys/socket.h.
15647 2006-01-17 Bruno Haible <bruno@clisp.org>
15649 * modules/ssize_t (Include): Add <sys/types.h>.
15651 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
15653 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
15654 it's not portable and it doesn't work with cross-compiles.
15655 Problem reported by Bruno Haible. Fix missing-$ typo in
15656 'test "gl_cv_ignore_unused_libraries" ...' that prevented
15657 -zignore from being used with Sun's C compiler.
15659 2006-01-12 Simon Josefsson <jas@extundo.com>
15661 * lib/base64.c: Fix warning, reported by Bruno Haible
15662 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
15664 2006-01-12 Bruno Haible <bruno@clisp.org>
15666 * modules/ldd: New file.
15667 * build-aux/ldd.sh.in: New file.
15668 * MODULES.html.sh (Support for building libraries and executables): Add
15671 2006-01-12 Bruno Haible <bruno@clisp.org>
15673 * m4/ldd.m4: New file.
15675 2006-01-12 Bruno Haible <bruno@clisp.org>
15677 * gnulib-tool (func_import, func_create_testdir): Don't go into an
15678 endless loop while replacing $auxdir with build-aux.
15680 2006-01-11 Simon Josefsson <jas@extundo.com>
15682 * lib/stdint_.h (SIZE_MAX): Add missing (.
15684 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
15686 Sync from coreutils.
15687 * lib/md5.c: Fix commentary typos.
15688 (alignof, UNALIGNED_P): No need for a GCC-specific version.
15689 * lib/md5.h (__attribute__): Remove; unused.
15690 * lib/sha1.c: Fix commentary to match md5 better.
15691 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
15692 so that we don't need to worry about alignment. All uses changed.
15693 This merges the 2005-10-28 md5 change into sha1.
15695 2006-01-11 Jim Meyering <jim@meyering.net>
15697 Sync from coreutils.
15698 * lib/md5.c (OP): Fix spacing.
15700 2006-01-11 Bruno Haible <bruno@clisp.org>
15702 Ensure automatic ordering between gl_LOCK and gl_ARGP.
15703 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
15704 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
15706 2006-01-11 Bruno Haible <bruno@clisp.org>
15708 Ensure automatic ordering between gl_LOCK and gl_ARGP.
15709 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
15710 the "early" section as well.
15712 2006-01-11 Bruno Haible <bruno@clisp.org>
15714 Avoid "ar: no archive members specified" error on MacOS X.
15715 * gnulib-tool (func_modules_add_dummy): New function.
15716 (func_import, func_create_testdir): Invoke it.
15718 2006-01-11 Bruno Haible <bruno@clisp.org>
15720 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
15721 with $auxdir in AC_CONFIG_FILES statements.
15723 2006-01-11 Bruno Haible <bruno@clisp.org>
15725 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
15726 Initialize also noinst_HEADERS to empty.
15728 2006-01-11 Bruno Haible <bruno@clisp.org>
15730 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
15732 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
15735 2006-01-11 Bruno Haible <bruno@clisp.org>
15737 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
15738 overridable by the user.
15739 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15741 2006-01-10 Simon Josefsson <jas@extundo.com>
15743 * modules/sys_socket: New file.
15745 2006-01-10 Simon Josefsson <jas@extundo.com>
15747 * m4/sys_socket_h.m4: New file.
15749 2006-01-10 Simon Josefsson <jas@extundo.com>
15751 * lib/socket_.h: New file.
15753 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
15755 * modules/readutmp (Maintainer): Add myself.
15757 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
15759 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
15760 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
15761 People who are still concerned with buggy memcmp implementations
15762 can invoke gl_FUNC_MEMCMP themselves.
15764 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
15766 * lib/regex_internal.h (BITSET_WORD_BITS):
15767 Work around a bug in 64-bit PGC (before version 6.1-2), where the
15768 preprocessor mishandles large unsigned values as if they were signed.
15769 Problem reported by Claudio Fontana in
15770 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
15772 2006-01-10 Jim Meyering <jim@meyering.net>
15774 Avoid the double-free (first in fts_read, second in fts_close) that
15775 would occur when an `active' directory is made inaccessible (e.g.,
15776 via chmod a-x) during a traversal.
15777 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
15778 before returning. Reproduce this failure by
15779 mkdir -p a/b; cd a; chmod a-x . b
15780 Reported by Stavros Passas.
15782 Sync from coreutils.
15783 * lib/sha1.c: Tweak grammar in a comment.
15785 2006-01-10 Jim Meyering <jim@meyering.net>
15787 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
15788 Patch by Joerg Sonnenberger.
15790 2006-01-10 Bruno Haible <bruno@clisp.org>
15792 * modules/readutmp: Depend on module free.
15793 * modules/strtok_r: Depend on module restrict.
15795 2006-01-10 Bruno Haible <bruno@clisp.org>
15797 * modules/gettext (configure.ac): Add an invocation of
15798 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
15800 2006-01-10 Bruno Haible <bruno@clisp.org>
15802 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
15803 Reported by Werner Lemberg <wl@gnu.org>.
15805 2006-01-10 Bruno Haible <bruno@clisp.org>
15807 * lib/localcharset.c: Update from GNU gettext.
15809 2006-01-10 Bruno Haible <bruno@clisp.org>
15811 * lib/argp.h (__const): Remove macro. Use const instead.
15812 * lib/argp-fmtstream.h (__const): Likewise.
15813 * lib/glob_.h (__const): Remove macro.
15814 * lib/glob-libc.h: Use const instead of __const.
15816 2006-01-10 Bruno Haible <bruno@clisp.org>
15818 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
15820 Needed to avoid an automake error regarding the 'gettext' module.
15822 2006-01-09 Simon Josefsson <jas@extundo.com>
15824 * modules/inet_ntop (Depends-on): Add restrict.
15826 2006-01-09 Simon Josefsson <jas@extundo.com>
15828 * modules/gc-rijndael-tests (License): Put under LGPL.
15830 * modules/gc-des-tests (License): Likewise.
15832 * modules/gc-arcfour-tests (License): Likewise.
15834 * modules/gc-arctwo-tests (License): Likewise.
15836 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
15838 * modules/gc-hmac-sha1-tests (Files): Likewise.
15840 * modules/gc-hmac-md5-tests (License): Likewise.
15842 * modules/gc-sha1-tests (License): Likewise.
15844 * modules/gc-md5-tests (License): Likewise.
15846 * modules/gc-md4-tests (License): Likewise.
15848 * modules/gc-md2-tests (License): Likewise.
15850 * modules/gc-tests (License): Likewise.
15852 * modules/des-tests (License): Likewise.
15854 * modules/md4-tests (License): Likewise.
15856 * modules/md2-tests (License): Likewise.
15858 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
15860 Sync from coreutils:
15862 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
15863 * modules/lib-ignore: New file.
15864 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
15865 chdir-safer.m4, lchmod.m4.
15866 * modules/openat: Add mkdirat.c, openat-priv.h.
15868 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
15870 Sync from coreutils.
15871 * m4/lib-ignore.m4: New file.
15872 * m4/lchmod.m4: New file.
15874 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
15876 Sync from coreutils.
15877 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
15878 for write access: POSIX says that must fail.
15879 * lib/fts.c (diropen): Likewise.
15880 * lib/save-cwd.c (save_cwd): Likewise.
15881 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
15882 well, for minor improvements on hosts that lack O_DIRECTORY.
15883 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
15884 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
15885 Fall back on chown if open failed with EACCES.
15887 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
15888 Report an error at compile-time if only a 1-second nominal clock
15889 resolution is found.
15891 * lib/lchmod.h: New file.
15892 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
15893 (make_dir_parents): Use lchown rather than chown, and
15894 lchmod rather than chmod.
15896 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
15897 dummies too. Problem with "none" reported by Bob Proulx. Problem with
15898 "proc" reported by n0dalus.
15900 * lib/mountlist.c: Include <limits.h>.
15901 (dev_from_mount_options)
15902 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
15903 New function. It no longer assumes "dev=" has the System V meaning
15904 on Linux (since it doesn't). It also parses "dev=" more carefully.
15905 (read_file_system_list)
15906 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
15907 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
15910 * lib/posixtm.h (PDS_PRE_2000): New macro.
15911 * lib/posixtm.c (year): Arg is now syntax_bits rather than
15912 allow_century. All usages changed. Reject dates outside the range
15913 1969-1999 if PDS_PRE_2000 is used.
15915 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
15917 Sync from coreutils.
15918 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
15919 (Time of day items): Mention the possibility of leap seconds.
15920 Problem reported by Dr. David Alan Gilbert.
15922 2006-01-09 Jim Meyering <jim@meyering.net>
15924 Sync from coreutils.
15926 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
15928 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
15930 * lib/modechange.c (mode_compile): Reject an invalid mode string
15931 that starts with an octal digit. From Andreas Gruenbacher.
15933 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
15934 and dup to open_safer and dup_safer, respectively.
15935 (openat_permissive): Fix typo in comment.
15937 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
15938 "gettext.h"; either no longer needed or are guaranteed by openat.h.
15939 (_): Remove; no longer needed.
15940 (openat): Renamed from rpl_openat; no need for rpl_openat
15941 since openat.h renames openat for us.
15942 Replace most of the body with a call to openat_permissive,
15943 to avoid duplicate code.
15944 Port to (probably hypothetical) environments were mode_t is
15946 (openat_permissive): Require mode arg, so that we can check
15947 types better. Put it just after flags. Change cwd failure
15948 indicator from pointer-to-bool to pointer-to-errno-value.
15949 All callers changed.
15950 Invoke openat_save_fail and/or openat_restore_fail if
15951 cwd_errno is null, so that openat can call us.
15952 (openat_permissive, fdopendir, fstatat, unlinkat):
15953 Simplify errno handling to avoid some duplicate code,
15954 as it's OK to set errno on success.
15955 * lib/openat.h: Revamp code so that function macros depend on
15956 __OPENAT_PREFIX only, not also on AT_FDCWD.
15957 (openat_ro): Remove. Caller changed to use openat_permissive.
15958 (openat_permissive): Now a macro, if not a function.
15959 (openat_restore_fail, openat_save_fail): Now always functions,
15960 since mkdirat needs them even if __OPENAT_PREFIX is defined.
15962 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
15964 * lib/mkdirat.c: Include openat-priv.h.
15965 Remove definitions of macros defined therein.
15966 * lib/openat.c: Likewise.
15968 * lib/mkdirat.c (mkdirat): New file and function.
15969 * lib/openat.h (mkdirat): Declare.
15971 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
15973 * lib/openat.h (openat_permissive): Declare.
15974 (openat_ro): Define.
15976 * lib/openat.c (EXPECTED_ERRNO): New macro.
15977 (openat_permissive): New function -- used in remove.c rewrite.
15978 (all functions): Set errno just before returning, only if there
15979 was an actual failure.
15980 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
15982 Emulate openat-family functions using Linux's procfs, if possible.
15983 Idea and some code based on Ulrich Drepper's glibc changes.
15985 * lib/openat.c: (BUILD_PROC_NAME): New macro.
15986 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
15987 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
15988 before falling back on save_cwd and restore_cwd.
15989 (fdopendir, fstatat, unlinkat): Likewise.
15991 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
15992 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
15994 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
15995 as second argument to va_arg. Otherwise, some versions of gcc
15996 warn that `if this code is reached, the program will abort'.
15998 2006-01-09 Jim Meyering <jim@meyering.net>
16000 Sync from coreutils.
16001 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
16002 Require openat-priv.h.
16004 2006-01-09 Bruno Haible <bruno@clisp.org>
16006 * modules/strnlen (Include): Use strnlen.h.
16008 2006-01-09 Bruno Haible <bruno@clisp.org>
16010 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
16012 2006-01-09 Bruno Haible <bruno@clisp.org>
16014 * lib/sysexit_.h (EX_OK): New macro.
16015 Suggested by Martin Lambers <marlam@marlam.de>.
16017 2006-01-09 Bruno Haible <bruno@clisp.org>
16019 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
16020 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
16022 2006-01-09 Bruno Haible <bruno@clisp.org>
16024 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
16027 2006-01-09 Bruno Haible <bruno@clisp.org>
16029 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
16030 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
16031 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
16032 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
16034 2006-01-09 Bruno Haible <bruno@clisp.org>
16036 * build-aux/javacomp.sh.in: New file, moved from lib/.
16037 * modules/javacomp-script (Files): Update.
16038 (configure.ac): Add AC_CONFIG_FILES invocation.
16039 (EXTRA_DIST): Remove variable.
16041 * build-aux/javaexec.sh.in: New file, moved from lib/.
16042 * modules/javaexec (Files): Update.
16043 (configure.ac): Add AC_CONFIG_FILES invocation.
16044 (EXTRA_DIST): Remove javaexec.sh.in.
16046 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
16047 * modules/csharpcomp-script (Files): Update.
16048 (configure.ac): Add AC_CONFIG_FILES invocation.
16049 (EXTRA_DIST): Remove variable.
16051 * build-aux/csharpexec.sh.in: New file, moved from lib/.
16052 * modules/csharpexec (Files): Update.
16053 (configure.ac): Add AC_CONFIG_FILES invocation.
16054 (EXTRA_DIST): Remove csharpexec.sh.in.
16056 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
16058 Sync from coreutils.
16060 Add POSIX ACL support
16061 * lib/acl.h (copy_acl, set_acl): Add declarations.
16062 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
16063 systems other than Linux.
16064 (chmod_or_fchmod): New function: use fchmod when possible,
16065 and chmod otherwise.
16066 (file_has_acl): Add a POSIX ACL implementation, with a
16067 Linux-specific subcase.
16068 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
16069 S_ISVTX from one file to another. Fall back to fchmod/chmod when
16070 acls are unsupported.
16071 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
16072 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
16075 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
16077 Sync from coreutils.
16078 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
16080 2006-01-07 Bruno Haible <bruno@clisp.org>
16082 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
16085 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
16087 * lib/strftime.c (tzname): Don't declare if it is already #defined.
16088 Problem reported for Mingw by Mark Junker.
16090 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
16092 * README: Gnulib normally doesn't generate a tarball.
16094 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
16096 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
16097 long int, not int, for nanosecond counts, so that people who are
16098 used to POSIX struct timespec won't be surprised. Reported by Jim
16101 2005-12-28 Bruno Haible <bruno@clisp.org>
16103 * build-aux/config.rpath: Update from GNU gettext.
16105 2005-12-16 Jim Meyering <jim@meyering.net>
16107 * modules/fprintftime: New module.
16108 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
16110 2005-12-16 Jim Meyering <jim@meyering.net>
16112 * m4/fprintftime.m4: New file.
16114 2005-12-16 Jim Meyering <jim@meyering.net>
16116 * lib/fprintftime.c, lib/fprintftime.h: New files.
16118 2005-12-15 Simon Josefsson <jas@extundo.com>
16120 * modules/socklen (configure.ac): Fix M4 macro name, to align with
16123 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
16125 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
16126 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
16128 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
16130 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
16131 * lib/argp-help.c (fill_in_uparams): Check if the constructed
16132 struct uparams is valid. Fall back to the default values if it is
16135 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
16137 * modules/argp (Files): Add argp-pin.c
16138 (Depends-on): dirname
16139 (lib_SOURCES): Add argp-pin.c
16141 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
16143 * m4/argp.m4: Check if program_invocation_name and
16144 program_invocation_short_name are declared and define appropriate
16145 macros if they are not.
16147 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
16149 * lib/argp-help.c (__argp_base_name): New function
16150 (__argp_short_program_name): Rewrite using __argp_base_name
16151 * lib/argp-namefrob.h: Define program_invocation_name and
16152 program_invocation_short_name if requested
16153 (__argp_base_name): Add prototype
16154 * lib/argp-parse.c (argp_def): Use gettext wrappers
16155 (argp_default_parser): Use __argp_base_name
16156 * lib/argp-pin.c: New file. Defines program_invocation_name and
16157 program_invocation_short_name on systems that lack them.
16159 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
16161 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
16162 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
16163 porting problem reported by Georg Schwarz in
16164 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
16166 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
16168 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
16169 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
16170 porting problem reported by Georg Schwarz in
16171 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
16173 2005-12-05 Bruno Haible <bruno@clisp.org>
16175 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
16176 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
16177 Reported by Mark Junker <mjscod@gmx.de>.
16179 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
16181 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
16182 Use implementation from Albert Chin, with some
16183 comments/corrections by Stepan Kasal and myself.
16185 2005-12-02 Bruno Haible <bruno@clisp.org>
16187 * gnulib-tool (func_import): Accept GPLed build tool modules when
16189 * modules/csharpcomp-script: New file.
16190 * modules/csharpcomp: Depend on it.
16191 * modules/javacomp-script: New file.
16192 * modules/javacomp: Depend on it.
16193 Suggested by Simon Josefsson.
16195 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
16197 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
16198 statement, to work around an HP-UX 10.20 compiler bug reported by
16201 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
16203 * modules/savedir (Depends-on): Add openat.
16205 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
16207 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
16208 (uintmax_t) [defined uintmax_t]: Do not declare.
16209 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
16210 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
16211 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
16212 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
16213 sake of portability to weird hosts that C allows (though we don't
16214 know of any practical examples).
16216 * lib/savedir.h (fdsavedir): New decl.
16217 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
16218 contains most of the former guts of savedir.
16219 (savedir): Use savedirstream.
16220 Include "openat.h".
16222 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
16224 * modules/obstack (Files): Add m4/ulonglong.m4.
16225 Problem reported by Davide Angelocola.
16227 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
16229 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
16230 coreutils no longer futzes with rounding modes.
16232 2005-11-14 Jim Meyering <jim@meyering.net>
16234 * lib/mkstemp-safer.c: Include <config.h>, required for possible
16235 replacement of mkstemp.
16237 2005-11-10 Simon Josefsson <jas@extundo.com>
16239 * lib/readline.c: Remove EOL.
16241 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
16243 * modules/gethrxtime (Depends-on): Add gettime.
16245 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
16247 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
16248 or gettimeofday; no longer needed.
16250 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
16252 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
16254 (gethrxtime) [! (HAVE_NANOUPTIME
16255 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
16256 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
16257 our own approximation.
16259 2005-11-08 Eric Blake <ebb9@byu.net>
16261 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
16263 2005-11-08 Eric Blake <ebb9@byu.net>
16265 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
16267 2005-11-04 Bruno Haible <bruno@clisp.org>
16269 * gnulib-tool: Implement --update mode.
16271 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
16273 Fix porting problem reported by Theodoros V. Kalamatianos.
16274 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
16275 Don't assume that futimes failing means we must fail.
16277 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
16279 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
16280 variables to suggest the intended function of the PATH_MAX check.
16282 2005-10-30 Kean Johnston <jkj@sco.com>
16284 Trivial changes to support SCO systems.
16285 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
16287 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
16288 where __ptr is null when no I/O is pending.
16290 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
16292 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
16293 leave errno alone. Problem reported by Dmitry V. Levin.
16295 2005-10-28 Simon Josefsson <jas@extundo.com>
16297 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
16300 * tests/test-gc-md2.c, tests/test-md2.c: New files.
16302 * modules/md2, modules/md2-tests: New files.
16304 2005-10-28 Simon Josefsson <jas@extundo.com>
16306 * m4/inet_ntop.m4: More tests.
16308 * m4/gc-md2.m4, md2.m4: New file.
16310 2005-10-28 Simon Josefsson <jas@extundo.com>
16312 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
16313 "restrict" keywords, as per POSIX. Protect the function
16314 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
16315 Don't use K&R prototypes. Check the sprintf return values.
16316 Re-define EAFNOSUPPORT if not present. Indent.
16318 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
16319 suggested by Bruno Haible <bruno@clisp.org>.
16321 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
16323 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
16325 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
16328 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
16330 * lib/md2.h, lib/md2.c: New files.
16332 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
16334 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
16335 errno alone. Problem reported by Frederic Jolliton.
16337 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
16339 * modules/verify (License): Change from GPL to LGPL. This is a
16340 tiny module and there are apparently near-equivalents that are
16341 under the BSD license.
16343 2005-10-24 Simon Josefsson <jas@extundo.com>
16345 * modules/sha1: Relicense to LGPL.
16347 2005-10-24 Simon Josefsson <jas@extundo.com>
16349 * lib/md4.h: Shrink buffer size, now that we changed the type.
16351 2005-10-23 Simon Josefsson <jas@extundo.com>
16353 * gnulib-tool (func_import): Fix --tests-base.
16355 2005-10-22 Simon Josefsson <jas@extundo.com>
16357 * modules/arcfour (Depends-on): Need stdint.
16359 2005-10-22 Simon Josefsson <jas@extundo.com>
16361 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
16362 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
16364 2005-10-22 Simon Josefsson <jas@extundo.com>
16366 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
16367 suggested by Bruno Haible <bruno@clisp.org>.
16369 2005-10-22 Simon Josefsson <jas@extundo.com>
16371 * lib/crc.h: Include stddef.h, for size_t.
16373 2005-10-22 Simon Josefsson <jas@extundo.com>
16375 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
16376 arcfour_context struct (simplify test vector testing in GNU
16379 2005-10-21 Simon Josefsson <jas@extundo.com>
16381 * modules/des, modules/des-tests: New files.
16383 * modules/gc-des, modules/gc-des-tests: New files.
16385 * tests/test-des.c, tests/test-gc-des.c: New file.
16387 2005-10-21 Simon Josefsson <jas@extundo.com>
16389 * modules/arctwo, modules/arctwo-tests: New files.
16391 * tests/test-arctwo.c: New file.
16393 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
16395 * tests/test-gc-arctwo.c: New file.
16397 2005-10-21 Simon Josefsson <jas@extundo.com>
16399 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
16400 Bruno Haible <bruno@clisp.org>.
16402 * m4/gc-des.m4: New file.
16404 2005-10-21 Simon Josefsson <jas@extundo.com>
16406 * m4/arctwo.m4: New file.
16408 * m4/gc-arctwo.m4: New file.
16410 2005-10-21 Simon Josefsson <jas@extundo.com>
16412 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
16415 2005-10-21 Simon Josefsson <jas@extundo.com>
16417 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
16420 * lib/hmac-sha1.c (hmac_sha1): Likewise.
16422 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
16423 Bruno Haible <bruno@clisp.org>.
16425 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
16428 2005-10-21 Simon Josefsson <jas@extundo.com>
16430 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
16432 2005-10-21 Simon Josefsson <jas@extundo.com>
16434 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
16436 2005-10-21 Simon Josefsson <jas@extundo.com>
16438 * lib/des.h, lib/des.c: New files.
16440 * lib/gc-gnulib.c: Support DES.c
16442 2005-10-21 Simon Josefsson <jas@extundo.com>
16444 * lib/arctwo.h, lib/arctwo.c: New files.
16446 * lib/gc-gnulib.c: Support ARCTWO.
16448 2005-10-21 Simon Josefsson <jas@extundo.com>
16450 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
16451 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16453 2005-10-21 Simon Josefsson <jas@extundo.com>
16455 * gnulib-tool (func_import, func_create_testdir): Define automake
16456 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
16457 Makefile.am snippet),
16458 suggested by Bruno Haible <bruno@clisp.org>.
16460 * modules/gc (Makefile.am): Use it.
16462 2005-10-21 Bruno Haible <bruno@clisp.org>
16464 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
16467 2005-10-19 Simon Josefsson <jas@extundo.com>
16469 * tests/test-gc-rijndael.c: New file.
16471 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
16473 2005-10-19 Simon Josefsson <jas@extundo.com>
16475 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
16478 2005-10-19 Simon Josefsson <jas@extundo.com>
16480 * tests/test-gc-arcfour.c: New file.
16482 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
16484 2005-10-19 Simon Josefsson <jas@extundo.com>
16486 * modules/gc-md4, modules/gc-md4-tests: New file.
16488 * tests/test-gc-md4.c: New file.
16490 2005-10-19 Simon Josefsson <jas@extundo.com>
16492 * m4/gc-md4.m4: New file.
16494 2005-10-19 Simon Josefsson <jas@extundo.com>
16496 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
16497 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
16500 2005-10-19 Simon Josefsson <jas@extundo.com>
16502 * m4/gc-arcfour.m4: New file.
16504 * m4/gc-rijndael.m4: New file.
16506 2005-10-19 Simon Josefsson <jas@extundo.com>
16508 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
16510 2005-10-19 Simon Josefsson <jas@extundo.com>
16512 * lib/gc-gnulib.c: Support ARCFOUR.
16514 2005-10-19 Simon Josefsson <jas@extundo.com>
16516 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
16519 * lib/gc.h: Add ECB enum type.
16521 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
16523 2005-10-18 Simon Josefsson <jas@extundo.com>
16525 * tests/test-md5.c: New file.
16527 * modules/md5-tests: New file.
16529 2005-10-18 Simon Josefsson <jas@extundo.com>
16531 * tests/test-md4.c: New file.
16533 * modules/md4, modules/md4-tests: New files.
16535 2005-10-18 Simon Josefsson <jas@extundo.com>
16537 * m4/md4.m4: New file.
16539 2005-10-18 Simon Josefsson <jas@extundo.com>
16541 * lib/md4.h, lib/md4.c: New files, based on md5.?.
16543 2005-10-17 Stepan Kasal <kasal@ucw.cz>
16545 * gnulib-tool (func_create_testdir): Omit the second check whether
16546 BUILT_SOURCES in nonempty.
16548 2005-10-17 Simon Josefsson <jas@extundo.com>
16550 * tests/test-rijndael.c: New file.
16552 2005-10-17 Simon Josefsson <jas@extundo.com>
16554 * modules/sha1: Depend on stdint instead of md5.
16556 * modules/md5: Depend on stdint, remove uint32_t.
16558 2005-10-17 Simon Josefsson <jas@extundo.com>
16560 * modules/gc-sha1-tests: New file.
16562 * tests/test-gc-sha1.c: New file.
16564 2005-10-17 Simon Josefsson <jas@extundo.com>
16566 * m4/md5.m4: Remove call to uint32_t.m4.
16568 2005-10-17 Simon Josefsson <jas@extundo.com>
16570 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
16572 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
16575 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
16577 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
16579 2005-10-17 Simon Josefsson <jas@extundo.com>
16581 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
16583 2005-10-17 Simon Josefsson <jas@extundo.com>
16585 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
16587 2005-10-17 Simon Josefsson <jas@extundo.com>
16589 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
16591 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
16593 2005-10-17 Bruno Haible <bruno@clisp.org>
16595 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
16596 that it can also be used in a test.
16598 2005-10-16 Bruno Haible <bruno@clisp.org>
16600 * gnulib-tool (func_emit_tests_Makefile_am): Also define
16601 TESTS_ENVIRONMENT, so that individual tests can augment it.
16603 * gnulib-tool (func_create_testdir): Use an intermediate target for
16604 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
16605 macros, like $(ALLOCA_H), which cannot be passed through the command
16608 2005-10-15 Simon Josefsson <jas@extundo.com>
16610 * modules/rijndael-tests: New file.
16612 * modules/rijndael: New file.
16614 2005-10-15 Simon Josefsson <jas@extundo.com>
16616 * m4/rijndael.m4: New file.
16618 2005-10-15 Simon Josefsson <jas@extundo.com>
16620 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
16622 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
16624 2005-10-14 Simon Josefsson <jas@extundo.com>
16626 * tests/test-arcfour.c: New file.
16628 * modules/arcfour, modules/arcfour-tests: New files.
16630 2005-10-14 Simon Josefsson <jas@extundo.com>
16632 * m4/arcfour.m4: New file.
16634 2005-10-14 Simon Josefsson <jas@extundo.com>
16636 * lib/arcfour.h, lib/arcfour.c: New files.
16638 2005-10-14 Roland McGrath <roland@redhat.com>
16640 Import from libc. [BZ #1331]
16641 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
16643 Reported by Matej Vela <vela@debian.org>.
16645 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
16647 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
16648 include <wchar.h>; no longer needed.
16650 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
16652 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
16654 2005-10-14 Jakub Jelinek <jakub@redhat.com>
16655 and Ulrich Drepper <drepper@redhat.com>
16658 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
16659 instead of inline stream orientation test and two separate
16660 function calls. Pay no attention to USE_IN_LIBIO.
16662 2005-10-13 Simon Josefsson <jas@extundo.com>
16664 * modules/gc-hmac-md5-tests: New file.
16666 * tests/test-gc-hmac-sha1.c: New file.
16668 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
16670 * modules/gc-hmac-md5-tests: New file.
16672 * tests/test-gc-md5.c: New file.
16674 * modules/gc-md5-tests: New file.
16676 2005-10-13 Simon Josefsson <jas@extundo.com>
16678 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
16679 Move memory allocation outside of loop.
16681 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
16683 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
16684 intermediate directory is in a read-only file system. Problem
16685 reported by Eric Blake.
16687 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
16689 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
16691 2005-10-12 Simon Josefsson <jas@extundo.com>
16693 * tests/test-hmac-sha1.c: New file.
16695 * modules/hmac-sha1-tests: New file.
16697 * modules/hmac-sha1: New file.
16699 2005-10-12 Simon Josefsson <jas@extundo.com>
16701 * modules/gc-sha1: New file.
16703 2005-10-12 Simon Josefsson <jas@extundo.com>
16705 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
16707 * tests/test-gc-pbkdf2-sha1.c: New file.
16709 2005-10-12 Simon Josefsson <jas@extundo.com>
16711 * modules/gc-md5, modules/gc-hmac-md5: New files.
16713 * modules/gc (Files): Remove md5, memxor and hmac files.
16715 2005-10-12 Simon Josefsson <jas@extundo.com>
16717 * m4/gc-pbkdf2-sha1.m4: New file.
16719 * m4/gc-hmac-sha1.m4: New file.
16721 * m4/gc-sha1: New file.
16723 * m4/hmac-sha1.m4: New file.
16725 2005-10-12 Simon Josefsson <jas@extundo.com>
16727 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
16729 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
16731 2005-10-12 Simon Josefsson <jas@extundo.com>
16733 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
16734 suggested by Bruno Haible <bruno@clisp.org>.
16736 2005-10-12 Simon Josefsson <jas@extundo.com>
16738 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
16740 2005-10-12 Simon Josefsson <jas@extundo.com>
16742 * lib/gc-pbkdf2-sha1.c: New file.
16744 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
16746 2005-10-12 Simon Josefsson <jas@extundo.com>
16748 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
16750 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
16752 2005-10-12 Simon Josefsson <jas@extundo.com>
16754 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
16755 GC_USE_HMAC_MD5, respectively.
16757 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
16758 (gc_md5): Fix typo.
16760 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
16762 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
16764 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
16766 2005-10-12 Bruno Haible <bruno@clisp.org>
16768 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
16769 Reported by Stepan Kasal <kasal@ucw.cz>.
16771 2005-10-11 Simon Josefsson <jas@extundo.com>
16773 * tests/test-crc.c: New file.
16775 * modules/crc, modules/crc-tests: New files.
16777 2005-10-11 Simon Josefsson <jas@extundo.com>
16779 * m4/crc.m4: New file.
16781 2005-10-11 Simon Josefsson <jas@extundo.com>
16783 * lib/gc.h: Add gc_hash and gc_hash_buffer.
16785 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
16787 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
16789 2005-10-11 Simon Josefsson <jas@extundo.com>
16791 * lib/crc.h, lib/crc.c: New files.
16793 * lib/gc.h (gc_hash_buffer): Add doc.
16795 2005-10-11 Bruno Haible <bruno@clisp.org>
16797 * modules/c-strcasestr: New file.
16798 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
16800 2005-10-11 Bruno Haible <bruno@clisp.org>
16802 * modules/c-strcase: New file.
16803 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
16805 2005-10-11 Bruno Haible <bruno@clisp.org>
16807 * lib/strcasecmp.c: Include limits.h.
16808 (strcasecmp): Avoid integer overflow on exotic platforms.
16809 * lib/strncasecmp.c: Include limits.h.
16810 (strncasecmp): Avoid integer overflow on exotic platforms.
16811 Reported by Paul Eggert.
16813 2005-10-11 Bruno Haible <bruno@clisp.org>
16815 * lib/c-strcasestr.h: New file, from GNU gettext.
16816 * lib/c-strcasestr.c: New file, from GNU gettext.
16818 2005-10-11 Bruno Haible <bruno@clisp.org>
16820 * lib/c-strcase.h: New file, from GNU gettext.
16821 * lib/c-strcasecmp.c: New file, from GNU gettext.
16822 * lib/c-strncasecmp.c: New file, from GNU gettext.
16824 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
16826 * modules/mempcpy (License): GPL -> LGPL.
16827 * modules/strchrnul (License): Likewise.
16828 * modules/sysexits (License): Likewise.
16830 2005-10-08 Simon Josefsson <jas@extundo.com>
16832 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
16834 2005-10-07 Simon Josefsson <jas@extundo.com>
16836 * m4/memxor.m4: Remove gl_C_RESTRICT call.
16838 2005-10-06 Simon Josefsson <jas@extundo.com>
16840 * tests/test-hmac-md5.c: New file.
16842 * modules/hmac-md5-tests: New file.
16844 * modules/hmac-md5: New file.
16846 2005-10-06 Simon Josefsson <jas@extundo.com>
16848 * m4/hmac-md5.m4: New file.
16850 * m4/memxor.m4: Require gl_C_RESTRICT.
16852 2005-10-06 Simon Josefsson <jas@extundo.com>
16854 * lib/memxor.c (memxor): Avoid casts and warnings.
16856 2005-10-06 Simon Josefsson <jas@extundo.com>
16858 * lib/hmac-md5.c: New file.
16860 * lib/hmac.h: New file.
16862 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
16864 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
16865 promotes to int, not unsigned int, to catch the AIX 5.3
16868 2005-10-05 Simon Josefsson <jas@extundo.com>
16870 * modules/memxor: New file.
16872 * modules/iconv (Files): Move config.rpath to havelib, it is used
16875 * modules/havelib (Files): Add config.rpath.
16877 2005-10-05 Simon Josefsson <jas@extundo.com>
16879 * m4/memxor.m4: New file.
16881 2005-10-05 Simon Josefsson <jas@extundo.com>
16883 * lib/memxor.c (memxor): Fix compiler error.
16885 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
16886 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
16888 * lib/memxor.h, lib/memxor.c: New files.
16890 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
16891 we assume all systems have it, suggested by Jim Meyering
16892 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
16893 any systems lack sys/socket.h; mingw32 is known to lack it, but we
16894 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
16897 2005-10-05 Simon Josefsson <jas@extundo.com>
16899 * config/srclist.txt: Add glibc bug 1423 for md5.h.
16901 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
16903 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
16904 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
16905 needed, since the source code now assumes these .h files.
16907 2005-10-05 Derek Price <derek@ximbiot.com>
16909 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
16911 2005-10-05 Bruno Haible <bruno@clisp.org>
16913 * modules/stdint (License): Change to LGPL.
16915 2005-10-04 Simon Josefsson <jas@extundo.com>
16917 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
16918 D. Baushke" <mdb@gnu.org>.
16920 2005-10-04 Bruno Haible <bruno@clisp.org>
16922 * lib/verify.h (verify_true): Provide alternative definition for C++.
16924 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
16926 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
16927 (SSIZE_MAX): New macro, if not already defined.
16928 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
16931 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
16933 Sync from coreutils.
16934 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
16935 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
16936 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
16937 ULLONG_MAX doesn't work with 2.7.2.1.
16939 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
16941 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
16944 * modules/exclude (Depends-on): Depend on verify.
16945 * modules/strtoimax (Depends-on): Likewise.
16946 * modules/utimecmp (Depends-on): Likewise.
16948 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
16950 * lib/exclude.c: Include verify.h.
16951 (verify): Remove. All callers changed to use verify.h's version.
16952 * lib/strtoimax.c: Likewise.
16953 * lib/utimecmp.c: Likewis.e
16955 Sync from coreutils.
16956 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
16957 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
16958 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
16959 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
16960 bother returning ENOSYS if settimeofday or stime fails; just let
16961 them return whatever errno they want to return.
16962 * lib/utimens.c: Include unistd.h, for dup2.
16963 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
16964 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
16966 2005-10-02 Jim Meyering <jim@meyering.net>
16968 Sync from coreutils.
16969 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
16970 from glibc-2.2.5 that fails for read-only files.
16972 2005-10-02 Jim Meyering <jim@meyering.net>
16974 Sync from coreutils.
16975 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
16976 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
16977 `#if HAVE_CONFIG_H'.
16978 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
16979 Remove AT_FDCWD test.
16980 Do not consume the fd unless successful.
16981 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
16982 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
16983 block, so that we don't even try to compile it if settimeofday is
16984 available. This works around a compilation failure on OSF1 V5.1,
16985 due to stime requiring a `long int*' while tv_sec is `int'.
16987 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
16989 Sync from coreutils.
16990 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
16991 against `yes', rather than just testing for nonempty.
16993 2005-10-01 Simon Josefsson <jas@extundo.com>
16995 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
16998 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
16999 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
17000 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
17001 freeaddrinfo and gai_strerror are declared by the POSIX headers.
17002 Check if struct addrinfo is declared.
17004 2005-10-01 Simon Josefsson <jas@extundo.com>
17006 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
17007 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
17008 AI_* and EAI_* definitions. Protect function declarations.
17010 2005-10-01 Jim Meyering <jim@meyering.net>
17012 Sync from coreutils.
17014 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
17015 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
17016 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
17017 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
17018 in the inet and nsl libraries. Required on Solaris 5.7.
17020 2005-10-01 Jim Meyering <jim@meyering.net>
17022 Sync from coreutils.
17023 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
17024 in the inet and nsl libraries. Required on Solaris 5.7.
17026 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
17028 * lib/getdelim.c (getdelim): Remove unused variables.
17030 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
17032 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
17033 so that the code works even with ancient cpp. Portability problem
17034 with GCC 2.7.2.1 reported by Thomas M.Ott.
17036 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
17038 * modules/regex (Depends-on): Add strcase.
17040 * modules/gethostname (Licence): Change from GPL to LGPL, since
17041 gethostname.c is a trivial implementation of a standard library
17043 * modules/poll (License): Change from GPL to LGPL, since it's
17044 derived from LGPL code.
17046 2005-09-27 Jim Meyering <jim@meyering.net>
17048 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
17051 * lib/intprops.h (signed_type_or_expr__): Define.
17052 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
17053 for unsigned types.
17055 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
17057 * lib/verify.h (verify_expr): Remove, replacing with:
17058 (verify_true): New macro that returns true instead of void.
17059 (verify_type__): Remove.
17060 (verify): Use verify_true rather than verify_type__.
17062 2005-09-26 Bruno Haible <bruno@clisp.org>
17064 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
17066 (lib_SOURCES): Remove mbchar.c.
17067 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
17068 (Files): Add m4/mbrtowc.m4.
17069 * modules/mbiter: Likewise.
17070 * modules/mbuiter: Likewise.
17072 2005-09-26 Bruno Haible <bruno@clisp.org>
17074 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
17075 compile mbchar.c if they are not both present.
17076 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
17077 * m4/mbiter.m4 (gl_MBITER): Likewise.
17078 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
17079 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
17080 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
17082 2005-09-25 Jim Meyering <jim@meyering.net>
17084 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
17085 also uses socklen_t.
17087 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
17089 * lib/utimens.c (ENOSYS): Define if not already defined.
17090 (futimens): Support having a null PATH if the file descriptor
17093 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
17095 (__attribute): Define to empty unless GCC 3.1 or later.
17096 This works around a core dump on OpenBSD 3.4, which has GCC
17097 2.95.3, which dumps core when given __attribute__(()). It also
17098 simplifies other tests, since we really don't want to bother with
17099 worrying about which ancient version of GCC supported what.
17100 Original problem reported by Yoann Vandoorselaere, with part of
17101 the fix suggested by Derek Price.
17103 2005-09-24 Jim Meyering <jim@meyering.net>
17105 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
17106 so we can once again use a positive bitfield width of 1 -- now we
17107 don't have to explain why we were using a bitfield width of 2.
17109 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
17111 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
17112 and similarly for the other external symbols. Problem reported
17115 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
17116 bug reported by Jim Meyering.
17118 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
17119 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
17120 not needed, since socklen is a prerequisite module.
17122 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
17124 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
17125 Problem reported by Eric Blake.
17126 (getaddrinfo): Initialize se so that it's not garbage.
17127 Redo internal storage allocation so that it doesn't make unportable
17128 assumptions about alignment.
17131 * lib/utimens.c (futimens): Use futimesat if available.
17132 Prefer it to futimes since it doesn't have the futimes bug.
17134 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
17135 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
17136 Instead, declare a function that returns a pointer to an array,
17137 and use verify_type__ to declare the size of the array.
17138 Problem and germ of a solution reported by Bruno Haible.
17139 (verify_type__): Use 2, not 1, for bitfield size, to avoid
17140 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
17142 2005-09-23 Jim Meyering <jim@meyering.net>
17144 Sync from coreutils.
17145 Correct build failure (socklen_t not defined) on at least
17146 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
17147 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
17149 2005-09-23 Jim Meyering <jim@meyering.net>
17151 * modules/getaddrinfo (Depends-on): Add socklen.
17153 2005-09-23 Bruno Haible <bruno@clisp.org>
17155 * tests/test-verify.c: New file.
17157 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
17159 Sync from coreutils.
17161 * modules/argmatch (Depends-on): Add verify.
17162 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
17164 * modules/save-cwd (Depends-on): Likewise.
17166 * modules/openat (Files): Add lib/openat-die.c.
17167 (Depends-on): Remove error, exitfail.
17170 * modules/verify: New file.
17171 * MODULES.html.sh (Diagnostics <assert.h>): New section,
17172 with "verify" module.
17174 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
17176 Sync from coreutils.
17178 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
17179 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
17180 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
17181 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
17182 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
17183 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
17184 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
17185 Don't bother checking for string.h, stdlib.h, unistd.h.
17186 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
17187 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
17189 * m4/jm-macros.m4 (gl_MACROS): Likewise.
17190 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
17192 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
17193 (gl_GETDATE): Use it.
17195 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
17197 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
17199 Sync from coreutils.
17201 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
17203 * lib/argmatch.h: Include verify.h
17204 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
17205 (ARGMATCH_ASSERT): Remove; unused.
17206 * lib/canonicalize.c: Assume STDC_HEADERS.
17207 * lib/exclude.c: Include "strcase.h".
17208 * lib/regex_internal.h [!defined _LIBC]: Likewise.
17209 * lib/getusershell.c: Include stdio--.h rather than stdio.h
17211 (getusershell): Call fopen, not fopen_safer.
17212 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
17213 Do not include unistd-safer.h.
17214 (save_cwd): Don't call fd_safer; no longer needed
17215 now that we include fcntl--.h.
17217 * lib/getdate.y (relative_time): New type.
17218 (RELATIVE_TIME_0): New constant.
17219 (parser_control): Use relative_time instead of doing it ourselves.
17220 (%union): Add new relative_time rel member.
17221 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
17223 (relunit, relunit_snumber): Now of type rel.
17224 (zone, rel, relunit, get_date): Adjust to above changes.
17226 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
17227 Do not include unistd-safer.h.
17228 (getloadavg): Don't call fd_safer; no longer needed
17229 now that we include fcntl--.h.
17231 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
17232 (make_dir_parents): Treat ENOSYS like EEXIST.
17234 Improve quality of diagnostics on restore_cwd failure.
17235 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
17236 (make_dir_parents): Last arg is now int * (for errno), not bool *.
17237 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
17238 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
17239 each time through the loop. Do not diagnose restore_cwd failure;
17240 that is the caller's job (and perhaps the caller does not care).
17242 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
17243 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
17244 If the file already exists but is not a directory, don't bother
17245 to try to make its parents.
17246 Close potential file descriptor leak if we can't chdir("/") (!).
17247 Don't always return true if chdir($PWD) fails; return true only
17248 if the requested action was done successfully (except for the
17250 Don't log final directory unless we actually made it.
17251 Refactor to avoid duplicate code to fix up permissions.
17252 Don't attempt to fix up parent permissions if chdir($PWD) fails.
17254 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
17255 to make it a bit faster and (I hope) clearer.
17256 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
17257 Fix bug in formats like %2N.
17259 * lib/verify.h: New file.
17261 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
17263 Sync from coreutils.
17264 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
17266 2005-09-22 Jim Meyering <jim@meyering.net>
17268 Sync from coreutils.
17270 * m4/lstat.m4 (gl_FUNC_LSTAT):
17271 Use AC_LIBSOURCES to require lstat.c and lstat.h.
17272 Remove obsolete comment.
17273 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
17274 * m4/xstrtod.m4: Likewise.
17276 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
17278 2005-09-22 Jim Meyering <jim@meyering.net>
17280 Sync from coreutils.
17282 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
17284 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
17285 the .tm_year member, since otherwise gcc-4.0 would now warn about
17286 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
17288 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
17289 order to avoid an unsuppressible warning from gcc on 64-bit systems.
17291 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
17292 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
17293 when run in a time zone for which daylight savings time is in effect
17294 for the starting date.
17296 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
17297 stop us from restricting permissions of just-created absolute-named
17299 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
17300 to restore initial working directory.
17301 * lib/mkdir-p.c (make_dir_parents): New parameter:
17302 different_working_dir, to tell caller if/when we change the working
17303 directory and are unable to return to the initial one.
17304 * lib/mkdir-p.h (make_dir_parents): Update prototype.
17305 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
17306 `return false'. This fixes a bug introduced on 2004-07-30.
17308 * lib/openat.c (fdopendir): Be sure to close the supplied
17309 file descriptor before returning. This makes our replacement
17310 implementation a little closer to Solaris's, where fdopendir
17311 ties the file descriptor to the returned DIR* pointer.
17312 * lib/openat.c (unlinkat): New function.
17313 * lib/openat.h (unlinkat): Add prototype.
17314 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
17315 (openat_restore_fail): Rename from openat_restore_die.
17316 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
17318 Provide an alternative to exiting immediately upon save_cwd or
17319 restore_cwd failure. Now, an application can arrange e.g.,
17320 to perform a longjump in that case.
17321 * lib/openat.c: Include dirname.h.
17322 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
17323 (rpl_openat, fdopendir, fstatat): Call openat_save_die
17324 and openat_restore_die rather than calling error directly.
17325 Don't include "error.h" or "exitfail.h"; they're no longer needed.
17327 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
17328 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
17331 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
17332 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
17333 int utc, int nanoseconds);
17335 date should not have to allocate a megabyte of virtual memory to
17336 handle a format argument like +%1048575T. When implemented with
17337 strftime, it must allocate such a buffer, use strftime to fill it
17338 in, print it, then free it.
17339 With fprintftime, it simply prints everything and exits.
17340 With no need for memory allocation, that's one fewer way to fail.
17341 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
17342 optional field width, not before, so we accept %9:z, not %:9z.
17343 (my_strftime): Be sure to use L_('x') for literals.
17345 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
17346 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
17347 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
17348 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
17349 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
17350 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
17351 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
17352 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
17353 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
17354 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
17355 * lib/xgethostname.c, lib/xreadlink.c:
17356 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
17358 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
17359 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
17360 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
17361 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
17362 and don't include <sys/file.h>).
17364 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
17366 Sync from coreutils.
17368 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
17369 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
17370 [!LDAV_DONE]: Avoid unused variable warning.
17372 2005-09-21 Bruno Haible <bruno@clisp.org>
17374 * lib/unicodeio.h (unicode_to_mb): New declaration.
17376 2005-09-20 Derek Price <derek@ximbiot.com>
17378 * lib/getaddrinfo.c: Don't include <netdb.h> included from
17381 2005-09-20 Bruno Haible <bruno@clisp.org>
17383 * gnulib-tool: Remove trailing slashes from the values specified for
17384 --source-base, --m4-base, --tests-base, --aux-dir.
17385 Suggested by Simon Josefsson <jas@extundo.com>.
17387 2005-09-20 Bruno Haible <bruno@clisp.org>
17389 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
17390 func_modules_to_filelist, func_import, func_create_testdir): Make all
17391 sorting results locale-independent, so that gnulib-cache.m4 doesn't
17392 change when gnulib-tool is invoked in a different locale.
17394 2005-09-19 Simon Josefsson <jas@extundo.com>
17396 * m4/socklen.m4: Fix typo.
17398 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17400 Use a consistent style for including <config.h>.
17401 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
17402 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
17403 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
17404 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
17405 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
17406 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
17407 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
17408 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
17409 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
17410 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
17411 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
17412 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
17413 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
17414 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
17415 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
17416 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
17417 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
17418 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
17419 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
17420 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
17421 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
17422 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
17423 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
17424 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
17425 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
17426 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
17427 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
17428 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
17429 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
17430 lib/xstrtoumax.c, lib/yesno.c:
17431 Standardize inclusion of config.h.
17432 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
17433 lib/inttostr.h: Removed inclusion of config.h from header files.
17434 * lib/inttostr.c: Adjusted in-tree users.
17435 * lib/timespec.h: Remove superfluous warning to include config.h.
17436 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
17437 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
17438 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
17439 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
17440 config.h with HAVE_CONFIG_H.
17442 2005-09-19 Jim Meyering <jim@meyering.net>
17444 * modules/pathmax (License): Change to LGPL.
17446 2005-09-19 Derek Price <derek@ximbiot.com>
17448 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
17450 2005-09-19 Bruno Haible <bruno@clisp.org>
17452 * gnulib-tool (import): Provide default for --tests-base.
17454 2005-09-19 Bruno Haible <bruno@clisp.org>
17456 * doc/quote.texi: New file, extracted from gnulib.texi.
17457 * doc/ctime.texi: New file, extracted from gnulib.texi.
17458 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
17459 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
17460 * doc/gnulib.texi: Include them.
17462 2005-09-18 Bruno Haible <bruno@clisp.org>
17465 * gnulib-tool (func_readlink): New function.
17466 (func_ln_if_changed): Use it.
17468 2005-09-18 Bruno Haible <bruno@clisp.org>
17470 * gnulib-tool: Support --with-tests also with --import.
17471 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
17472 (func_import): Use variables $testsbase and $inctests. Emit a
17473 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
17474 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
17475 SUBDIRS += $testsdir.
17476 (func_create_testdir): Update.
17478 2005-09-18 Bruno Haible <bruno@clisp.org>
17480 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
17481 instead of $dry_run.
17482 (func_cp_if_changed, func_mv_if_changed): Remove functions.
17483 (func_ln_if_changed): Don't handle dry-run here.
17484 (func_import): In dry-run mode, detect more precisely which actions
17485 would be performed, and don't use "...ing" verbs.
17487 2005-09-18 Bruno Haible <bruno@clisp.org>
17489 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
17490 (func_import): Use join on two temporary files instead of three nested
17491 loops, in order to determine which files are new or old.
17493 2005-09-18 Bruno Haible <bruno@clisp.org>
17495 * gnulib-tool (func_import): Comment out code that spits out the
17496 new files with --dry-run.
17498 2005-09-18 Bruno Haible <bruno@clisp.org>
17500 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
17502 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
17504 * lib/stat-time.h: New file.
17505 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
17506 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
17507 in a different way.
17508 (timespec_cmp): New function.
17509 * lib/utimecmp.c: Include stat-time.h.
17510 (SYSCALL_RESOLUTION): Depend on whether various struct stat
17511 members exist, not on the obsolescent ST_MTIM_NSEC.
17512 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
17514 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
17516 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
17518 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
17520 * MODULES.html.sh (File system functions): Add stat-time.
17521 * modules/stat-time: New file.
17522 * modules/timespec (Files): Remove m4/st_mtim.m4; this
17523 is now done in a different way, by the stat-time module.
17524 * modules/utimecmp (Depends-on): Add stat-time.
17526 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
17528 * m4/st_mtim.m4: Remove. Superseded by...
17529 * m4/stat-time.m4: New file.
17530 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
17531 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
17533 2005-09-15 Derek Price <derek@ximbiot.com>
17535 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
17537 2005-09-15 Derek Price <derek@ximbiot.com>
17539 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
17540 * lib/regex_internal.c: Ditto, using this...
17541 (__GNUC_PREREQ): ...new macro.
17542 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
17544 (__GNUC_PREREQ): ...this new macro.
17546 * lib/strstr.h: Include string.h. Define strstr as a macro here.
17548 2005-09-15 Derek Price <derek@ximbiot.com>
17549 Paul Eggert <eggert@cs.ucla.edu>
17551 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
17552 changes, consolidating in...
17553 * lib/regex_internal.h: ...this file.
17555 2005-09-13 Jim Meyering <jim@meyering.net>
17557 * lib/canon-host.c: Filter through gnu indent and reword comments
17559 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
17561 2005-09-13 Derek Price <derek@ximbiot.com>
17563 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
17565 Reported by Jim Meyering <jim@meyering.net>.
17567 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
17569 * lib/base64.c: Typo.
17570 (base64_encode): Put b64str in initialized data section.
17572 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
17574 Merge glibc and coreutils changes into gnulib, plus a few
17576 * lib/md5.c: Use #error rather than a string.
17577 (CYCLIC): New macro, from glibc source. Use it instead of rol.
17578 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
17579 (__attribute__): Define to empty for non recent-GCC.
17580 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
17581 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
17582 Renamed from their non-__ counterparts, with new macros replacing
17583 them if not _LIBC. Add __THROW attribute.
17585 (struct md5_ctx): Align buffer if using GCC.
17586 * lib/sha1.h (struct sha1_ctx): Likewise.
17587 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
17588 The old name was backwards.
17589 (NOTSWAP): Remove; not used.
17590 (rol): New macro, moved here from md5.h.
17591 (sha1_process_block): Remove a FIXME that doesn't make sense.
17593 2005-09-12 Derek Price <derek@ximbiot.com>
17595 Return usable errors from canon-host.
17596 * lib/canon-host.h: New file.
17597 * lib/canon-host.c (canon_host): Wrap...
17598 (canon_host_r): ...this new function, which now relies exclusively on
17600 (ch_strerror): New function.
17601 (last_cherror): New global.
17602 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
17604 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
17606 (freeaddrinfo): Free ai->ai_canonname when set.
17608 2005-09-12 Derek Price <derek@ximbiot.com>
17610 Make canon-host require getaddrinfo.
17611 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
17612 AC_LIBSOURCE canon-host.h. Call...
17613 (gl_PREREQ_CANON_HOST): ...this new function, which requires
17615 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
17617 2005-09-12 Derek Price <derek@ximbiot.com>
17619 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
17621 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
17623 2005-09-12 Derek Price <derek@ximbiot.com>
17625 * lib/gai_strerror.c: Include config.h when available. Include
17626 getaddrinfo.h before other headers to test interface.
17627 Reported by Larry Jones <lawrence.jones@ugs.com>.
17629 2005-09-12 Derek Price <derek@ximbiot.com>
17630 Paul Eggert <eggert@cs.ucla.edu>
17632 * modules/glob (Files): Add glob-libc.h.
17634 2005-09-12 Derek Price <derek@ximbiot.com>
17635 Paul Eggert <eggert@cs.ucla.edu>
17637 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
17638 glob_.h, glob-libc.h.
17639 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
17641 2005-09-12 Derek Price <derek@ximbiot.com>
17642 Paul Eggert <eggert@cs.ucla.edu>
17644 * lib/glob-libc.h: Renamed from glob_.h. The new version is
17645 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
17646 protecting things that should be done only in gnulib contexts.
17647 * lib/glob_.h: New file, containing only the glob things needed for
17649 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
17650 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
17651 (glob, globfree, glob_pattern_p): Now defined simply in terms of
17652 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
17653 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
17654 and to respect the namespace rules better.
17656 2005-09-08 Simon Josefsson <jas@extundo.com>
17658 * modules/socklen: New file.
17660 2005-09-08 Simon Josefsson <jas@extundo.com>
17662 * m4/socklen.m4: New file.
17664 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
17666 * modules/utimens (Files): Add m4/utimbuf.m4, since
17667 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
17668 Reported by Sergey Poznyakoff.
17670 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
17672 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
17673 definitions, since that's the preferred style in glibc.
17674 Fix a minor spacing issue, and update copyright notice to match
17677 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
17679 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
17681 2005-09-06 Simon Josefsson <jas@extundo.com>
17683 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
17684 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
17686 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
17688 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
17691 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
17693 * config/srclist.txt: Add glibc bug 1302.
17695 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
17697 Change bitset word type from unsigned int to unsigned long int,
17698 as this has better performance on typical 64-bit hosts.
17699 Port bitset code to hosts with unusual word sizes.
17700 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
17701 (build_collating_symbol):
17702 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
17703 argument is a bitset. This is merely a style issue, but it makes
17704 it clearer that an entire array is expected.
17705 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
17706 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
17707 Port to the case where bitset_word is not the same as unsigned int.
17708 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
17709 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
17711 * lib/regexec.c (check_dst_limits_calc_pos_1,
17712 check_subexp_matching_top):
17713 (build_trtable, group_nodes_into_DFAstates):
17715 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
17716 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
17717 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
17718 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
17719 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
17720 * lib/regcomp.c (optimize_subexps, lower_subexp):
17721 Work even if bitset_word has holes in its bitwise representation.
17722 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
17723 * lib/regexec.c (check_dst_limits_calc_pos_1,
17724 check_subexp_matching_top):
17726 * lib/regex_internal.c (re_string_reconstruct):
17727 Don't assume UCHAR_MAX == 255.
17728 * lib/regex_internal.h (bitset_set_all): Likewise.
17729 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
17731 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
17732 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
17734 (BITSET_WORD_MAX): New macro.
17735 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
17736 (bitset_set_all, bitset_copy): Now inline functions, not macros.
17737 (bitset_empty, bitset_copy):
17738 Prefer sizeof (bitset) to multiplying it out ourselves.
17739 (bitset_not_merge): Remove; unused.
17740 (bitset_contain): Return bool, not unsigned int with one bit on.
17741 All callers changed.
17742 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
17743 alignment than re_node_set; do this by defining a new internal
17744 type struct dests_alloc and using it to allocate memory.
17746 2005-09-05 Bruno Haible <bruno@clisp.org>
17748 * gnulib-tool (func_import): Fix comparison in handling of symbolic
17751 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
17753 * modules/size_max (Makefile.am): Add size_max.h
17755 2005-09-04 Derek Price <derek@ximbiot.com>
17757 * gnulib-tool (func_import): Fix reversed $symbolic logic.
17759 2005-09-03 Simon Josefsson <jas@extundo.com>
17761 * gnulib-tool: Fix typo.
17763 2005-09-03 Simon Josefsson <jas@extundo.com>
17765 * config/srclist.txt: Add glibc bug 1293.
17767 2005-09-03 Derek Price <derek@ximbiot.com>
17769 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
17770 From Larry Jones <lawrence.jones@ugs.com>.
17772 2005-09-02 Simon Josefsson <jas@extundo.com>
17774 * modules/socklen: New file.
17776 2005-09-02 Simon Josefsson <jas@extundo.com>
17778 * modules/havelib: New module.
17780 * modules/gettext, modules/iconv, modules/lock, modules/readline:
17783 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
17785 Check for arithmetic overflow when calculating sizes, to prevent
17786 some buffer-overflow issues. These patches are conservative, in the
17787 sense that when I couldn't determine whether an overflow was possible,
17788 I inserted a run-time check.
17789 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
17791 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
17792 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
17793 (re_xnrealloc, re_x2nrealloc): New inline functions.
17794 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
17795 parse_bracket_exp):
17796 (build_equiv_class, build_charclass): Check for arithmetic overflow
17797 in size expression calculations.
17798 * lib/regex_internal.c (re_string_realloc_buffers):
17799 (build_wcs_upper_buffer, re_node_set_add_intersect):
17800 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
17801 (re_dfa_add_node, register_state): Likewise.
17802 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
17803 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
17804 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
17805 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
17807 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
17809 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
17810 m4/ulonglong.m4. Problem reported by Martin Lambers.
17812 2005-09-02 Bruno Haible <bruno@clisp.org>
17814 Support for lib vs. lib64 distinction on biarch platforms.
17815 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
17816 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
17817 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
17819 2005-09-02 Bruno Haible <bruno@clisp.org>
17821 * gnulib-tool (import): In the other first-use case, provide defaults
17824 2005-09-02 Bruno Haible <bruno@clisp.org>
17826 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
17827 patches not yet found in the latest gettext release.
17829 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
17831 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
17832 to avoid a collision with bits/local_lim.h in glibc.
17833 All uses changed. Problem reported by Dmitry V. Levin in
17834 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
17836 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
17837 bugs in int versus size_t comparisons.
17838 (re_string_context_at): Fix bug where the code assumed that
17841 Use bool where appropriate.
17842 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
17843 All callers changed.
17844 (calc_eclosure_iter): Likewise, for ROOT arg.
17845 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
17846 (build_charclass_op): Likewise, for NON_MATCH arg.
17847 * lib/regex_internal.c (re_string_allocate, re_string_construct):
17848 (re_string_construct_common): Likewise, for ICASE arg.
17849 * lib/regexec.c (re_search_2_stub, re_search_stub):
17850 Likewise, for RET_LEN arg.
17851 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
17852 (set_regs): Likewise, for FL_BACKTRACK arg.
17853 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
17854 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
17855 (calc_eclosure_iter, parse_bracket_exp):
17856 Use bool for internal variables that are booleans.
17857 * lib/regexec.c (re_search_internal, check_matching,
17858 proceed_next_node):
17859 (set_regs, build_sifted_states, sift_states_bkref):
17860 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
17861 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
17862 (find_collation_sequence_value):
17864 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
17865 (re_node_set_compare):
17866 Return bool, not int. All callers changed.
17867 * lib/regexec.c (check_halt_node_context, check_dst_limits):
17868 (build_trtable, check_node_accept): Likewise.
17869 * lib/regex_internal.h: Include stdbool.h.
17871 Fix bugs uncovered when converting to bool.
17872 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
17873 failure instead of charging ahead blindly.
17874 * lib/regex_internal.c (register_state): Likewise.
17875 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
17876 for freeing internal storage.
17877 (group_nodes_into_DFA_states): Use unsigned int, not int, for
17878 bitset pieces used as boolean, to avoid undefined behavior
17879 on hosts that do int overflow checking.
17881 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
17883 * config/srclist.txt: Add glibc bugs 1285-1287.
17885 2005-09-01 Jim Meyering <jim@meyering.net>
17887 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
17888 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
17889 Require gl_STAT_MACROS, too.
17891 2005-09-01 Bruno Haible <bruno@clisp.org>
17893 * gnulib-tool (import): In the first-use case, provide defaults.
17895 2005-09-01 Bruno Haible <bruno@clisp.org>
17897 * gnulib-tool (func_import): Remove the .tmp files.
17899 2005-09-01 Bruno Haible <bruno@clisp.org>
17901 * gnulib-tool (func_import): Fix handling of symbolic links.
17903 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
17905 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
17906 old glibc regex code mishandles strings longer than 2**31 bytes.
17907 This patch fixes this when the regex code is used in gnulib
17908 (i.e., outside glibc).
17910 This patch should not affect the use of the regex code inside
17911 glibc. No doubt this problem also needs to be handled for glibc
17912 as well, but the result will be an incompatible change to the
17913 glibc ABI, and the old ABI will have to be supported too. That
17914 can be the the subject for another patch.
17916 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
17917 governing whether the rest of this patch is active. By default,
17918 the macro is disabled and the patch has no effect.
17919 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
17920 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
17921 (struct re_pattern_buffer, re_search, re_search_2, re_match):
17922 (re_match_2, re_set_registers): Use the new types.
17923 * lib/regex_internal.h (Idx, re_hashval_t): New types.
17924 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
17926 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
17927 (re_string_context_at, bin_tree_t, re_dfastate_t):
17928 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
17929 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
17930 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
17931 (re_string_char_size_at, re_string_wchar_at):
17932 (re_string_elem_size_at):
17933 Use the new types and macros to port to 64-bit hosts.
17934 Use unsigned types for internal values, so that the code
17935 mostly works even for arrays larger than SSIZE_MAX.
17936 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
17937 (search_duplicated_node, calc_eclosure_iter, fetch_number):
17938 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
17939 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
17940 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
17941 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
17942 (calc_inveclosure, parse_dup_op, build_range_exp):
17943 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
17944 (fetch_number, create_token_tree, mark_opt_subexp):
17946 * lib/regex_internal.c (re_string_construct_common,
17947 create_ci_newstate):
17948 (create_cd_newstate, re_string_allocate, re_string_construct):
17949 (re_string_realloc_buffers, build_wcs_upper_buffer):
17950 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
17951 (re_string_reconstruct, re_string_peek_byte_case):
17952 (re_string_fetch_byte_case, re_string_context_at):
17953 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
17954 (re_node_set_init_copy, re_node_set_add_intersect):
17955 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
17956 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
17957 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
17958 (re_acquire_state, re_acquire_state_context, register_state):
17960 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
17961 search_cur_bkref_entry):
17962 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
17963 (re_search_internal, re_search_2_stub, re_search_stub)
17964 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
17965 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
17966 (update_cur_sifted_state, check_dst_limits):
17967 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
17968 (check_subexp_limits, sift_states_bkref, merge_state_array):
17969 (check_subexp_matching_top, get_subexp, get_subexp_sub):
17970 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
17971 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
17972 (expand_bkref_cache, check_node_accept_bytes):
17973 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
17974 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
17975 (acquire_init_state_context, check_halt_node_context):
17976 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
17977 (sift_states_backward, clean_state_log_if_needed):
17978 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
17979 (find_recover_state, transit_state_sb, transit_state_mb):
17980 (transit_state_bkref, build_trtable, match_ctx_clean):
17982 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
17983 to work around an assumption that REG_MISSING is negative.
17985 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
17986 (seek_collating_symbol_entry) [defined _LIBC]:
17987 (lookup_collation_sequence_value) [defined _LIBC]:
17988 (build_range_exp, build_collating_symbol) [defined _LIBC]:
17989 Use prototypes rather than old-style function definitions.
17990 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
17991 (transit_state_sb) [0]:
17992 (find_collation_sequence_value) [defined _LIBC]: Likewise.
17994 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
17997 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
17998 (optimize_subexps, lower_subexp):
17999 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
18000 since the signed shift might overflow. Use 1u<<31 instead.
18001 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
18003 * lib/regexec.c (check_dst_limits_calc_pos_1,
18004 check_subexp_matching_top): Likewise.
18006 * lib/regcomp.c (optimize_subexps, lower_subexp):
18007 Use CHAR_BIT rather than 8, for clarity.
18008 * lib/regexec.c (check_dst_limits_calc_pos_1):
18009 (check_subexp_matching_top): Likewise.
18010 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
18011 have to worry about portability issues when shifting it left.
18012 Remove no-longer-needed test for table_size > 0.
18013 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
18014 in a word, as the resulting behavior is undefined.
18015 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
18016 in one case, a <= should have been an <, and in another case the
18017 whole test was missing.
18018 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
18019 the standard name CHAR_BIT.
18020 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
18021 this is not true on one's complement and signed-magnitude hosts.
18023 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
18025 (struct re_dfa_t): Remove unused member states_alloc.
18026 * lib/regcomp.c (init_dfa): Don't initialize unused members.
18028 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
18030 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
18031 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
18032 and large-file glibc and in 32-bit large-file Solaris.
18034 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
18036 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
18037 lengths fit in regoff_t; this isn't true if regoff_t is the same
18039 * lib/regex.c (re_search_internal): 5th arg is LAST_START
18040 (= START + RANGE) instead of RANGE. This avoids overflow
18041 problems when regoff_t is the same width as size_t.
18042 All callers changed.
18043 (re_search_2_stub): Check for overflow when adding the
18044 sizes of the two strings.
18045 (re_search_stub): Check for overflow when adding START
18046 to RANGE; if it occurs, substitute the extreme value.
18048 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
18050 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
18052 2005-08-31 Jim Meyering <jim@meyering.net>
18054 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
18055 a pointer-to-const.
18056 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
18057 (register_state): Likewise.
18058 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
18059 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
18060 (group_nodes_into_DFAstates): Likewise.
18062 2005-08-31 Jim Meyering <jim@meyering.net>
18064 * check-module: Add a FIXME comment.
18066 2005-08-31 Eric Blake <ebb9@byu.net>
18068 * modules/unistd-safer (Files): Add unistd--.h.
18069 * modules/stdio-safer (Files): Add stdio--.h.
18071 2005-08-31 Derek Price <derek@ximbiot.com>
18073 * lib/getdelim.c (getdelim): Return EOF on EOF.
18074 Reported by Larry Jones <lawrence.jones@ugs.com>.
18076 2005-08-31 Bruno Haible <bruno@clisp.org>
18078 Avoid unnecessary diffs in the generated lib/Makefile.am.
18079 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
18080 the generated files.
18081 (func_import): Don't set cmd.
18083 2005-08-31 Bruno Haible <bruno@clisp.org>
18085 * lib/strstr.c: Include <stddef.h>, for NULL.
18086 * lib/strcasestr.c: Likewise.
18087 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
18089 2005-08-31 Bruno Haible <bruno@clisp.org>
18091 * gnulib-tool: New option --macro-prefix.
18092 (func_import): Use macro_prefix.
18093 (import): Handle option --macro-prefix.
18095 2005-08-31 Bruno Haible <bruno@clisp.org>
18097 * gnulib-tool (import): Rename most ac_* variables to cached_*.
18098 Also use new variables cached_lgpl, cached_libtool.
18100 2005-08-31 Bruno Haible <bruno@clisp.org>
18102 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
18103 always instantiating them.
18105 2005-08-31 Bruno Haible <bruno@clisp.org>
18107 * gnulib-tool (func_import): Read the previous cached settings
18108 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
18109 earlier added by gnulib but are now dropped. Warn when a gnulib file
18110 overwrites a non-gnulib file.
18112 2005-08-31 Bruno Haible <bruno@clisp.org>
18114 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
18115 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
18116 projects that don't keep autogenerated files in CVS. Put into
18117 actioncmd only the specified modules, not the transitive closure.
18119 2005-08-31 Bruno Haible <bruno@clisp.org>
18121 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
18122 Create directories that shall be filled.
18123 (import): Don't look for gl_* macros in configure.ac. Recurse across
18124 all directories containing a gnulib-cache.m4 files, if meaningful.
18126 2005-08-31 Bruno Haible <bruno@clisp.org>
18128 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
18129 (import): Set seen_libtool when we see gl_LIBTOOL.
18131 2005-08-31 Bruno Haible <bruno@clisp.org>
18133 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
18134 declaration macro definitions from generated gnulib.m4.
18136 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
18138 * lib/iconvme.h: Add prototype for iconv_alloc.
18140 2005-08-29 Simon Josefsson <jas@extundo.com>
18142 * lib/iconvme.c: Fix errno.
18144 2005-08-29 Bruno Haible <bruno@clisp.org>
18146 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
18147 that it works when the directory contains spaces.
18149 2005-08-29 Bruno Haible <bruno@clisp.org>
18151 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
18153 2005-08-29 Bruno Haible <bruno@clisp.org>
18155 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
18158 2005-08-29 Bruno Haible <bruno@clisp.org>
18159 and Stepan Kasal <kasal@ucw.cz>
18161 * check-module: If more parameters are given, check each of them
18162 separately; add more exceptions, as noted by Jim Meyering.
18163 (check_module): New procedure.
18164 (%exempt_header): Now contains all exceptions.
18166 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
18168 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
18170 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
18172 * lib/iconvme.c: Split iconv_string into iconv_alloc.
18174 2005-08-28 Bruno Haible <bruno@clisp.org>
18176 * m4/gnulib-tool.m4: New file.
18178 2005-08-27 Jim Meyering <jim@meyering.net>
18180 * modules/unistd-safer (Files): Add pipe-safer.c.
18181 * modules/fcntl-safer (Files): Add creat-safer.c.
18183 2005-08-27 Jim Meyering <jim@meyering.net>
18185 * m4/stdlib-safer.m4: New file. From coreutils.
18186 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
18187 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
18188 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
18189 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
18190 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
18192 2005-08-27 Jim Meyering <jim@meyering.net>
18194 * lib/fopen-safer.c: Merge minor changes from coreutils.
18195 * lib/dup-safer.c: Likewise.
18196 * lib/fd-safer.c: Likewise.
18198 Merge from coreutils.
18199 * lib/stdio--.h: New file.
18200 * lib/stdlib--.h: New file.
18201 * lib/mkstemp-safer.c: New file.
18203 GNU tar needs these.
18204 * lib/pipe-safer.c: New file.
18205 * lib/creat-safer.c: New file.
18206 * lib/fcntl--.h (creat): Define to creat_safer.
18207 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
18208 * lib/unistd--.h (pipe): Define to pipe_safer.
18209 * lib/unistd-safer.h: Declare pipe_safer.
18211 2005-08-26 Simon Josefsson <jas@extundo.com>
18213 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
18214 Haible <bruno@clisp.org>.
18216 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
18218 * lib/regex_internal.h: Remove all references to
18219 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
18221 (bitset_not, bitset_merge, bitset_not_merge):
18222 (bitset_mask, re_string_allocate, re_string_construct):
18223 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
18224 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
18225 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
18226 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
18227 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
18228 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
18229 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
18230 (re_acquire_state_context):
18231 Remove unnecessary forward decls.
18232 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
18233 Put __attribute at function definition,
18234 now that the function decl has been removed.
18235 * lib/regex_internal.c (re_string_peek_byte_case):
18236 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
18239 2005-08-25 Stepan Kasal <kasal@ucw.cz>
18241 * m4/regex.m4: Add AC_PREREQ(2.50).
18242 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
18244 2005-08-25 Simon Josefsson <jas@extundo.com>
18246 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
18249 2005-08-25 Simon Josefsson <jas@extundo.com>
18251 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
18252 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
18253 GLIBC specific code.
18255 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
18257 Make regex safe for g++. This fixes one real bug (an "err"
18258 that should have been "*err"). g++ problem reported by
18260 * lib/regex_internal.h (re_calloc): New macro, consistent with
18261 re_malloc etc. All callers of calloc changed to use re_calloc.
18262 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
18263 not int. All callers changed.
18264 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
18265 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
18266 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
18267 (find_recover_state): Change "err" to "*err"; this fixes what
18268 appears to be a real bug.
18269 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
18272 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
18274 * modules/regex (Depends-on): Add malloc, since the code
18275 assumes that !malloc(0) means failure.
18277 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
18279 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
18281 alloca modernization/simplification for regex.
18282 * lib/regex.c: Remove portability cruft for alloca. This no longer
18283 needs to be at the start of the file, and can be moved into
18284 regex_internal.h and simplified.
18285 * lib/regex_internal.h: Include <alloca.h>.
18286 (__libc_use_alloca) [!defined _LIBC]: New macro.
18287 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
18288 now works outside glibc.
18290 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
18292 * config/srclist.txt: Add glibc bugs 1241, 1245.
18294 2005-08-25 Jim Meyering <jim@meyering.net>
18296 * lib/open-safer.c: Include <config.h>.
18297 Otherwise, we'd lose LARGEFILE support in any file using
18300 2005-08-25 Bruno Haible <bruno@clisp.org>
18302 * m4/minmax.m4: Require autoconf 2.52.
18303 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
18304 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
18305 alternatives of translit over the alphabet.
18306 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
18308 2005-08-24 Simon Josefsson <jas@extundo.com>
18310 * tests/test-getpass.c: New file.
18312 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
18314 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
18315 for GNU regex features.
18317 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
18319 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
18320 * lib/regex.h (regerror): Likewise.
18322 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
18323 requires this. (The code never needed it.)
18325 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
18326 All uses of recently-renamed identifiers changed to use the new,
18327 POSIX-compliant names. The code will build and run just fine
18328 without these changes, but it's better to eat our own dog food
18329 and use the standard-conforming names.
18331 * lib/regex.h: Fix a multitude of POSIX name space violations.
18332 These changes have an effect only for programs that define
18333 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
18334 do not change anything for programs compiled in the normal way.
18335 Also, there is no effect on the ABI.
18337 (_REGEX_SOURCE): New macro.
18338 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
18339 defined and _GNU_SOURCE is not; this fixes a name space violation.
18341 Rename the following macros to obey POSIX requirements.
18342 The old names are still visible as macros if _REGEX_SOURCE is defined.
18343 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
18344 RE_BACKSLASH_ESCAPE_IN_LISTS.
18345 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
18346 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
18347 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
18348 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
18349 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
18350 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
18351 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
18352 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
18353 (REG_INTERVALS): renamed from RE_INTERVALS.
18354 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
18355 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
18356 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
18357 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
18358 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
18359 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
18360 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
18361 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
18362 RE_UNMATCHED_RIGHT_PAREN_ORD.
18363 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
18364 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
18365 (REG_DEBUG): renamed from RE_DEBUG.
18366 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
18367 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
18368 unusual, since we can't clash with the POSIX REG_ICASE.
18369 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
18370 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
18371 (REG_NO_SUB): renamed from RE_NO_SUB.
18372 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
18373 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
18374 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
18375 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
18376 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
18377 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
18378 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
18379 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
18380 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
18381 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
18382 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
18383 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
18384 RE_SYNTAX_POSIX_MINIMAL_BASIC.
18385 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
18386 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
18387 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
18388 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
18389 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
18390 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
18391 (REG_FIXED): Renamed from REGS_FIXED.
18392 (REG_NREGS): Renamed from RE_NREGS.
18394 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
18395 of other REG_* macros, since POSIX says the user is allowed to
18396 #undef these macros selectively.
18398 (reg_errcode_t): Update comment stating what other tables need
18401 Rename the following enum values to obey POSIX requirements.
18402 The old names are still visible as macros.
18403 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
18404 is not defined, since GNU is supposed to be a superset of POSIX as
18405 much as possible, and since we want reg_errcode_t to be a signed
18406 type for implementation consistency.
18407 (_REG_NOERROR): Renamed from REG_NOERROR.
18408 (_REG_NOMATCH): Renamed from REG_NOMATCH.
18409 (_REG_BADPAT): Renamed from REG_BADPAT.
18410 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
18411 (_REG_ECTYPE): Renamed from REG_ECTYPE.
18412 (_REG_EESCAPE): Renamed from REG_EESCAPE.
18413 (_REG_ESUBREG): Renamed from REG_ESUBREG.
18414 (_REG_EBRACK): Renamed from REG_EBRACK.
18415 (_REG_EPAREN): Renamed from REG_EPAREN.
18416 (_REG_EBRACE): Renamed from REG_EBRACE.
18417 (_REG_BADBR): Renamed from REG_BADBR.
18418 (_REG_ERANGE): Renamed from REG_ERANGE.
18419 (_REG_ESPACE): Renamed from REG_ESPACE.
18420 (_REG_BADRPT): Renamed from REG_BADRPT.
18421 (_REG_EEND): Renamed from REG_EEND.
18422 (_REG_ESIZE): Renamed from REG_ESIZE.
18423 (_REG_ERPAREN): Renamed from REG_ERPAREN.
18424 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
18425 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
18426 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
18427 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
18429 (_REG_RE_NAME, _REG_RM_NAME): New macros.
18430 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
18431 changed. But support the old name if the new one is not defined
18432 and if _REGEX_SOURCE.
18434 Change the following member names in struct re_pattern_buffer.
18435 The old names are still supported if !_REGEX_SOURCE.
18436 The new names are always supported, regardless of _REGEX_SOURCE.
18437 (re_buffer): Renamed from buffer.
18438 (re_allocated): Renamed from allocated.
18439 (re_used): Renamed from used.
18440 (re_syntax): Renamed from syntax.
18441 (re_fastmap): Renamed from fastmap.
18442 (re_translate): Renamed from translate.
18443 (re_can_be_null): Renamed from can_be_null.
18444 (re_regs_allocated): Renamed from regs_allocated.
18445 (re_fastmap_accurate): Renamed from fastmap_accurate.
18446 (re_no_sub): Renamed from no_sub.
18447 (re_not_bol): Renamed from not_bol.
18448 (re_not_eol): Renamed from not_eol.
18449 (re_newline_anchor): Renamed from newline_anchor.
18451 Change the following member names in struct re_registers.
18452 The old names are still supported if !_REGEX_SOURCE.
18453 The new names are always supported, regardless of _REGEX_SOURCE.
18454 (rm_num_regs): Renamed from num_regs.
18455 (rm_start): Renamed from start.
18456 (rm_end): Renamed from end.
18458 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
18459 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
18460 Prepend __ to parameter names.
18462 Undo yesterday's changes.
18464 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
18466 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
18467 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
18470 2005-08-24 Jim Meyering <jim@meyering.net>
18472 Sync from coreutils.
18473 * m4/fcntl-safer.m4: New file.
18475 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
18476 and object files for this module.
18478 2005-08-24 Jim Meyering <jim@meyering.net>
18480 Sync from coreutils.
18481 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
18483 2005-08-24 Jim Meyering <jim@meyering.net>
18485 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
18486 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
18488 2005-08-24 Jim Meyering <jim@meyering.net>
18490 * modules/fcntl-safer: New module.
18491 * modules/fts (Depends-on): Add fcntl-safer.
18492 * MODULES.html.sh (File descriptor based Input/Output):
18495 2005-08-24 Bruno Haible <bruno@clisp.org>
18497 Support for unit test modules.
18498 * modules/README: Mention tests modules.
18499 * modules/TEMPLATE-TESTS: New file.
18500 * gnulib-tool: New options --extract-tests-module, --with-tests and
18501 --tests-base (unused for the moment).
18502 (testsbase, inctests): New variables.
18503 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
18504 (func_verify_module): Exclude TEMPLATE-TESTS.
18505 (func_verify_nontests_module, func_verify_tests_module): New functions.
18506 (func_get_dependencies): Add implicit dependency for tests modules.
18507 (func_get_tests_module): New function.
18508 (func_modules_transitive_closure): When --with-tests was specified,
18509 include the unit tests as well, unless explicitly avoided.
18510 (func_emit_lib_Makefile_am): Ignore the tests modules here.
18511 (func_emit_tests_Makefile_am): New function.
18512 (func_create_testdir): When --with-tests was specified, emit a
18514 * MODULES.html.sh (Future developments): Update.
18516 2005-08-24 Bruno Haible <bruno@clisp.org>
18518 * modules/tls-tests: New file.
18519 * tests/test-tls.c: New file, from GNU gettext.
18521 2005-08-24 Bruno Haible <bruno@clisp.org>
18523 * modules/lock-tests: New file.
18524 * tests/test-lock.c: New file, from GNU gettext.
18526 2005-08-24 Bruno Haible <bruno@clisp.org>
18528 * lib/lock.h: Add multiple inclusion guard.
18529 * lib/tls.h: Add multiple inclusion guard.
18531 2005-08-24 Bruno Haible <bruno@clisp.org>
18533 * gnulib-tool: Add support for the --aux-dir option to
18534 --create-testdir, --create-megatestdir, --test, --megatest.
18535 (func_create_testdir, func_create_megatestdir): Optionally emit a
18536 AC_CONFIG_AUX_DIR directive.
18537 (create-testdir, create-megatestdir, test, megatest): Provide a
18538 default value for $auxdir.
18540 2005-08-24 Bruno Haible <bruno@clisp.org>
18542 * gnulib-tool (import): Use compound statement instead of subshell
18545 2005-08-24 Bruno Haible <bruno@clisp.org>
18547 * gnulib-tool (import): Change --aux-dir default to "build-aux".
18549 2005-08-24 Bruno Haible <bruno@clisp.org>
18551 * gnulib-tool (func_version): Update.
18553 2005-08-24 Bruno Haible <bruno@clisp.org>
18555 * gnulib-tool (func_import, func_create_testdir,
18556 func_create_megatestdir): Quote all autoconf macro arguments.
18558 2005-08-24 Bruno Haible <bruno@clisp.org>
18560 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
18561 option --force, because --force causes the aclocal.m4 of each
18562 subdirectory to be newer than the corresponding config.h.in.
18564 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
18566 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
18567 All contents moved to gl_REGEX.
18568 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
18569 assume that it does.
18571 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
18573 * lib/regex.h (REG_NOSYS)
18574 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
18575 Define, since POSIX requires it as of 2001.
18577 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
18578 New private symbol, used to keep the enum signed in all cases.
18579 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
18581 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
18583 * lib/regex_internal.c (re_string_skip_chars, register_state):
18585 Remove forward decls; no longer needed now that we use prototypes.
18586 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
18587 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
18588 (clean_state_log_if_needed): Likewise.
18590 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
18592 * config/srclist.txt: Add glibc bugs 1231-1233.
18594 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
18596 Fix problems reported by Sam Steingold in
18597 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
18598 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
18599 assumed that reg_errcode_t is a signed type, which is not
18600 necessarily true if _XOPEN_SOURCE is not defined.
18601 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
18602 since some compilers warn about it otherwise.
18604 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
18606 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
18607 (init_word_char, create_initial_state, duplicate_node_closure):
18608 (fetch_token, peek_token_bracket, build_range_exp):
18609 (build_collating_symbol): Remove forward decls; no longer needed
18610 now that we use prototypes.
18613 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
18614 (re_compile_fastmap_iter, regcomp, regerror, regfree):
18615 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
18616 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
18617 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
18618 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
18619 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
18620 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
18621 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
18622 (build_range_exp, build_collating_symbol, parse_bracket_exp):
18623 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
18624 (build_charclass, build_charclass_op, fetch_number, create_tree):
18625 (create_token_tree, mark_opt_subexp, duplicate_tree):
18626 Use prototypes rather than old-style definitions.
18628 * lib/regex_internal.c:
18629 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
18630 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
18631 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
18632 (re_string_reconstruct, re_string_peek_byte_case):
18633 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
18634 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
18635 (re_node_set_init_copy, re_node_set_add_intersect):
18636 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
18637 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
18638 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
18639 (re_acquire_state, re_acquire_state_context, register_state):
18640 (create_ci_newstate, create_cd_newstate, free_state):
18642 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
18644 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
18645 (re_search_internal, prune_impossible_nodes):
18646 (acquire_init_state_context, check_matching, static):
18647 (check_halt_node_context, check_halt_state_context, proceed_next_node):
18648 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
18649 (update_regs, sift_states_backward, build_sifted_states):
18650 (clean_state_log_if_needed, merge_state_array):
18651 (update_cur_sifted_state, add_epsilon_src_nodes):
18652 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
18653 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
18654 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
18655 (find_recover_state, check_subexp_matching_top, transit_state_mb):
18656 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
18657 (check_arrival, check_arrival_add_next_nodes):
18658 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
18659 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
18660 (check_node_accept_bytes, check_node_accept, extend_buffers):
18661 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
18662 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
18666 * lib/regex_internal.h:
18667 (re_string_allocate, re_string_construct, re_string_reconstruct):
18668 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
18669 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
18670 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
18671 (re_string_context_at, re_string_peek_byte_case):
18672 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
18673 is defined, since we now use prototypes always.
18675 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
18676 C89 or better. All uses removed.
18678 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
18680 * config/srclist.txt: Add glibc bugs 1220-1227.
18682 2005-08-20 Jim Meyering <jim@meyering.net>
18684 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
18685 of unused local, dfa.
18687 2005-08-20 Bruno Haible <bruno@clisp.org>
18689 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
18691 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
18693 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
18694 (re_node_set_insert_last, re_dfa_add_node):
18695 Rename local variables to avoid GCC shadowing warnings.
18697 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
18699 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
18700 [defined lint]: Suppress bogus uninitialized-variable warnings.
18702 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
18703 and let the caller return REG_ESPACE if out of space. This
18704 removes an uninitialied-variable warning with GCC 4.0.1, and also
18705 avoids taking the address of a local variable. All callers
18708 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
18710 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
18711 $LIBCSRC/posix/regexec.c.
18712 Add glibc bug 1217 for regcomp.c.
18714 2005-08-19 Jim Meyering <jim@meyering.net>
18716 * lib/regexec.c (proceed_next_node): Redo local variables to
18717 avoid GCC shadowing warnings.
18719 2005-08-18 Bruno Haible <bruno@clisp.org>
18721 * lib/strstr.c (strstr): Fix return value in multibyte case.
18722 * lib/strcasestr.c (strcasestr): Likewise.
18724 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
18726 * lib/regex.h: Remove useless space-before-tab. From coreutils.
18728 2005-08-17 Jim Meyering <jim@meyering.net>
18730 Make the %s format (seconds since the epoch) work for a negative
18731 number and when used with a zero-padded field width, e.g. %015s.
18733 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
18734 label so that it precedes the code to set `digits'. Otherwise,
18735 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
18736 print `00-22'. Now, it prints `-0022', as it should.
18738 2005-08-17 Bruno Haible <bruno@clisp.org>
18740 * modules/strstr (Files): Add m4/mbrtowc.m4.
18741 (Depends-on): Add mbuiter.
18743 2005-08-17 Bruno Haible <bruno@clisp.org>
18745 * modules/strcasestr: New file.
18746 * MODULES.html.sh (String handling, based on ANSI C 89): Add
18749 2005-08-17 Bruno Haible <bruno@clisp.org>
18751 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
18753 2005-08-17 Bruno Haible <bruno@clisp.org>
18755 * modules/mbuiter: New file.
18756 * MODULES.html.sh (Extended multibyte and wide character utilities):
18759 2005-08-17 Bruno Haible <bruno@clisp.org>
18761 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
18762 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
18764 2005-08-17 Bruno Haible <bruno@clisp.org>
18766 * m4/strcasestr.m4: New file.
18768 2005-08-17 Bruno Haible <bruno@clisp.org>
18770 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
18771 * lib/strstr.c: Completely rewritten, with multibyte locale support.
18773 2005-08-17 Bruno Haible <bruno@clisp.org>
18775 * lib/strcasestr.h: New file.
18776 * lib/strcasestr.c: New file.
18778 2005-08-17 Bruno Haible <bruno@clisp.org>
18780 * lib/strcasecmp.c: Use mbuiter.h.
18782 2005-08-17 Bruno Haible <bruno@clisp.org>
18784 * lib/mbuiter.h: New file.
18786 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
18788 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
18789 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
18790 and gl_GETOPT are both invoked via different paths (as happens
18791 with GNU tar CVS because it uses both argp and getopt), the former
18794 2005-08-16 Bruno Haible <bruno@clisp.org>
18796 * modules/tls: New file.
18797 * MODULES.html.sh (Multithreading): Add tls.
18799 2005-08-16 Bruno Haible <bruno@clisp.org>
18801 * modules/strnlen1: New file.
18802 * MODULES.html.sh (String handling): Add strnlen1.
18804 2005-08-16 Bruno Haible <bruno@clisp.org>
18806 * modules/strcase (Files): Add m4/mbrtowc.m4.
18807 (Depends-on): Add strnlen1, mbchar.
18809 2005-08-16 Bruno Haible <bruno@clisp.org>
18811 * modules/mbiter: New file.
18812 * MODULES.html.sh (Extended multibyte and wide character utilities):
18815 2005-08-16 Bruno Haible <bruno@clisp.org>
18817 * modules/mbfile: New file.
18818 * MODULES.html.sh (Extended multibyte and wide character utilities):
18821 2005-08-16 Bruno Haible <bruno@clisp.org>
18823 * modules/mbchar: New file.
18824 * MODULES.html.sh (Extended multibyte and wide character utilities):
18827 2005-08-16 Bruno Haible <bruno@clisp.org>
18829 * m4/tls.m4: New file, from GNU gettext.
18831 2005-08-16 Bruno Haible <bruno@clisp.org>
18833 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
18835 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
18837 2005-08-16 Bruno Haible <bruno@clisp.org>
18839 * m4/mbiter.m4: New file.
18841 2005-08-16 Bruno Haible <bruno@clisp.org>
18843 * m4/mbfile.m4: New file.
18845 2005-08-16 Bruno Haible <bruno@clisp.org>
18847 * m4/mbchar.m4: New file.
18849 2005-08-16 Bruno Haible <bruno@clisp.org>
18851 * lib/tls.h: New file, from GNU gettext.
18852 * lib/tls.c: New file, from GNU gettext.
18854 2005-08-16 Bruno Haible <bruno@clisp.org>
18856 * lib/strnlen1.h: New file.
18857 * lib/strnlen1.c: New file.
18859 2005-08-16 Bruno Haible <bruno@clisp.org>
18861 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
18862 (mbi_init): Update.
18863 (mbi_avail, mbi_advance): Let the iteration end before the terminating
18864 NUL byte, not after it.
18866 2005-08-16 Bruno Haible <bruno@clisp.org>
18868 * lib/strcase.h (strcasecmp): Add note in comments.
18869 * lib/strncasecmp.c: Use code from strcasecmp.c.
18870 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
18871 (strcasecmp): Work correctly in multibyte locales.
18873 2005-08-16 Bruno Haible <bruno@clisp.org>
18875 * lib/mbiter.h: New file.
18877 2005-08-16 Bruno Haible <bruno@clisp.org>
18879 * lib/mbfile.h: New file.
18881 2005-08-16 Bruno Haible <bruno@clisp.org>
18883 * lib/mbchar.h: New file.
18884 * lib/mbchar.c: New file.
18886 2005-08-16 Bruno Haible <bruno@clisp.org>
18888 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
18889 the valid ones. Makes the comparison operations transitive:
18890 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
18891 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
18893 2005-08-15 Simon Josefsson <jas@extundo.com>
18895 * modules/ssize_t (License): Change to 'unlimited'.
18897 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
18899 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
18901 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
18902 Add comments for each pending glibc patch.
18904 2005-08-15 Bruno Haible <bruno@clisp.org>
18906 * lib/regex.h (__restrict_arr): Don't define to __restrict if
18907 __cplusplus is defined.
18909 2005-08-14 Jim Meyering <jim@meyering.net>
18911 Sync from coreutils.
18913 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
18914 Use the hash-table-based cycle-detection code not just when
18915 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
18916 Reported by James Youngman in
18917 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
18918 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
18919 FTS_TIGHT_CYCLE_CHECK.
18920 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
18921 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
18923 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
18924 * lib/fts.c (fd_safer): Remove decl.
18925 Include fcntl--.h rather than unistd-safer.h
18926 (fts_safe_changedir): Don't call fd_safer; no longer needed
18927 now that we include fcntl--.h.
18929 2005-08-12 Simon Josefsson <jas@extundo.com>
18931 * modules/getndelim2: Use ssize_t module.
18932 * modules/getnline: Likewise.
18933 * modules/safe-read: Likewise.
18934 * modules/xreadlink: Likewise.
18936 * modules/ssize_t: New file.
18938 2005-08-12 Simon Josefsson <jas@extundo.com>
18940 * m4/readline.m4: Look for termcap, curses or ncurses if required.
18942 2005-08-12 Simon Josefsson <jas@extundo.com>
18944 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18947 2005-08-12 Simon Josefsson <jas@extundo.com>
18949 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
18950 readline, getdelim and check_version.
18951 (Support for systems lacking ISO C 99: Sizes of integer types):
18954 2005-08-12 Bruno Haible <bruno@clisp.org>
18956 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
18958 2005-08-11 Simon Josefsson <jas@extundo.com>
18960 * modules/readline: New file.
18962 * modules/strnlen (Files): Add strnlen.h.
18964 2005-08-11 Simon Josefsson <jas@extundo.com>
18966 * m4/readline.m4: New file.
18968 2005-08-11 Simon Josefsson <jas@extundo.com>
18970 * lib/readline.h, readline.c: New file.
18972 2005-08-11 Simon Josefsson <jas@extundo.com>
18974 * doc/gnulib.texi (Initial import, Finishing touches): Mention
18977 2005-08-11 Bruno Haible <bruno@clisp.org>
18979 * lib/strnlen.h (strnlen): Change parameter name to match comment.
18981 2005-08-10 Stepan Kasal <kasal@ucw.cz>
18983 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
18985 2005-08-10 Simon Josefsson <jas@extundo.com>
18987 * tests/test-iconvme.c: New file.
18989 2005-08-10 Simon Josefsson <jas@extundo.com>
18991 * m4/strnlen.m4: New file.
18993 * m4/strndup.m4: Don't check for strnlen declaration, done in
18996 2005-08-10 Simon Josefsson <jas@extundo.com>
18998 * lib/strndup.c: Use strnlen.h.
19000 * lib/strnlen.h: New file.
19002 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
19006 2005-08-02 Simon Josefsson <jas@extundo.com>
19008 * modules/readline: New file.
19010 2005-08-02 Simon Josefsson <jas@extundo.com>
19012 * modules/getdelim: New file.
19014 * modules/getline: Rewrite, don't use getndelim2.
19016 2005-08-02 Simon Josefsson <jas@extundo.com>
19018 * m4/getline.m4: Separate out getdelim stuff into separate module.
19020 * m4/getdelim.m4: New file.
19022 2005-08-02 Simon Josefsson <jas@extundo.com>
19024 * lib/getline.h, getline.c: Rewrite.
19026 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
19028 2005-07-31 Bruno Haible <bruno@clisp.org>
19030 * lib/lock.h (gl_lock_initializer): New macro.
19031 (gl_lock_define_initialized): Use it.
19032 (gl_rwlock_initializer): New macro.
19033 (gl_rwlock_define_initialized): Use it.
19034 (gl_recursive_lock_initializer): New macro.
19035 (gl_recursive_lock_define_initialized): Use it.
19037 2005-07-30 Karl Berry <karl@gnu.org>
19039 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
19040 Report from Ben Pfaff, regarding getopt.
19042 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
19044 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
19046 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
19047 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
19048 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
19049 (gl_GETOPT): Use the new macros. Most of the implementation
19050 is moved to the new macros. This is for programs like Emacs
19051 that don't want all the functionality of gl_GETOPT.
19053 2005-07-26 Bruno Haible <bruno@clisp.org>
19055 * m4/lock.m4: Update from GNU gettext.
19057 2005-07-26 Bruno Haible <bruno@clisp.org>
19059 * lib/lock.h: Update from GNU gettext.
19060 * lib/lock.c: Update from GNU gettext.
19062 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
19064 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
19065 obsolescent AC_TRY_RUN. Include the default includes files, for
19068 2005-07-24 Bruno Haible <bruno@clisp.org>
19070 * modules/visibility: New file.
19071 * MODULES.html.sh (Misc): Add visibility.
19073 2005-07-24 Bruno Haible <bruno@clisp.org>
19075 * m4/visibility.m4: New file.
19077 2005-07-24 Bruno Haible <bruno@clisp.org>
19079 * doc/visibility.texi: New file.
19081 2005-07-22 Bruno Haible <bruno@clisp.org>
19083 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
19084 $(ALLOCA_H), redundant through BUILT_SOURCES.
19085 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
19086 redundant through BUILT_SOURCES.
19087 * modules/byteswap (Makefile.am): Remove explicit dependency on
19088 $(BYTESWAP_H), redundant through BUILT_SOURCES.
19089 * modules/fnmatch (Makefile.am): Remove explicit dependency on
19090 $(FNMATCH_H), redundant through BUILT_SOURCES.
19091 * modules/getopt (Makefile.am): Remove explicit dependency on
19092 $(GETOPT_H), redundant through BUILT_SOURCES.
19093 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
19094 redundant through BUILT_SOURCES.
19095 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
19096 redundant through BUILT_SOURCES.
19097 * modules/stdbool (Makefile.am): Remove explicit dependency on
19098 $(STDBOOL_H), redundant through BUILT_SOURCES.
19099 * modules/stdint (Makefile.am): Remove explicit dependency on
19100 $(STDINT_H), redundant through BUILT_SOURCES.
19101 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
19102 Remove explicit dependency on $(SYSEXITS_H).
19103 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
19105 2005-07-18 Simon Josefsson <jas@extundo.com>
19107 * lib/check-version.c (check_version): Accept identical versions too.
19109 2005-07-18 Bruno Haible <bruno@clisp.org>
19111 * modules/lock: New file.
19112 * MODULES.html.sh (Multithreading): New section.
19114 2005-07-18 Bruno Haible <bruno@clisp.org>
19116 * m4/lock.m4: New file, from GNU gettext.
19118 2005-07-18 Bruno Haible <bruno@clisp.org>
19120 * lib/lock.h: New file, from GNU gettext.
19121 * lib/lock.c: New file, from GNU gettext.
19123 2005-07-18 Bruno Haible <bruno@clisp.org>
19125 * lib/lock.h (gl_once_t): New type.
19126 (gl_once_define, gl_once): New macros.
19127 * lib/lock.c (fresh_once): New variable.
19128 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
19131 2005-07-16 Simon Josefsson <jas@extundo.com>
19133 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
19134 workaround, suggested by Bruno.
19136 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
19138 * modules/xalloc (Depends-on): Add xalloc-die.
19139 * modules/xvasprintf (Depends-on): Add xalloc-die.
19141 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
19143 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
19144 with a minor change.
19146 2005-07-15 Bruno Haible <bruno@clisp.org>
19148 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
19149 When using lib/poll.c, define poll as rpl_poll.
19151 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
19153 * modules/argp (Depends-on): Remove unlocked-io.
19155 2005-07-14 Derek Price <derek@ximbiot.com>
19157 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
19158 for glob symlink bug.
19160 2005-07-14 Bruno Haible <bruno@clisp.org>
19162 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
19163 Instead, test for *_unlocked function declarations directly.
19165 2005-07-11 Simon Josefsson <jas@extundo.com>
19167 * modules/size_max: New file.
19169 * modules/xsize: Depend on size_max module for size_max.m4.
19171 2005-07-11 Simon Josefsson <jas@extundo.com>
19173 * lib/size_max.h: New file.
19175 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
19177 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
19178 copyright symbol and the year.
19179 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
19180 (version_etc_va): Use parameterized copyright notice.
19181 Reword to conform to the current GNU coding standards.
19183 2005-07-11 Karl Berry <karl@gnu.org>
19185 * doc/gnulib.texi (Quoting): new node.
19186 (Initial import): more info, from Patrice.
19188 2005-07-11 Bruno Haible <bruno@clisp.org>
19190 * gnulib-tool (func_usage): Document option --avoid.
19191 (Command line options): Handle --avoid.
19192 (func_acceptable): New function.
19193 (func_modules_transitive_closure): Use it.
19195 2005-07-11 Bruno Haible <bruno@clisp.org>
19197 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
19198 Reported by Jim Meyering.
19200 2005-07-10 Bruno Haible <bruno@clisp.org>
19202 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
19203 Needed when size_t is smaller than 'unsigned int'.
19204 Reported by Paul Eggert.
19206 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
19208 * modules/argp (Depends-on): Add unlocked-io
19210 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
19212 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
19215 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
19217 * config/srclist.txt: Comment out regcomp.c, since we have a porting
19220 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
19221 and Paul Eggert <eggert@cs.ucla.edu>
19223 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
19224 in wint_t, not wchar_t. Remove now-unnecessary cast.
19226 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
19228 * modules/regex (Files): Add lib/regex_internal.c,
19229 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
19230 (Depends-on): Add extensions.
19231 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
19233 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
19235 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
19237 * m4/same.m4 (gl_SAME): Likewise.
19238 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
19240 * m4/regex.m4: Adjust to new libc regex implementation.
19241 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
19242 all the .c and .h parts of (the new) regex.
19243 Quote the m4 stuff better.
19244 Check for RE_ICASE bug of old gnulib.
19245 Check for REG_STARTEND of recent libc.
19246 Rename local variables from jm_* to gl_*.
19247 Quote operand of "test -f".
19248 Say "recent enough" version of libc, not "version 2".
19249 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
19250 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
19251 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
19252 Remove check for btowc, isascii.
19253 Require AM_LANGINFO_CODESET.
19255 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
19257 * lib/regex.c, regex.h: Sync from libc.
19258 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
19260 New files, synced from libc, except that regex_internal.h
19261 currently has a small porting fix.
19263 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
19265 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
19266 regex_internal.c, regexec.c.
19267 Add regex_internal.h too, but as a comment, since the libc version
19268 is currently broken in gnulib mode.
19270 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
19272 Support programs like Emacs that use gnulib but not gettext.
19273 * MODULES.html.sh (Internationalization functions): Add gettext-h.
19274 * modules/gettext-h: New file.
19275 * modules/gettext (Files): Remove lib/gettext.h.
19276 (Depends-on): Add gettext-h.
19277 (Makefile.am): Remove lib_SOURCES.
19278 * modules/argmatch, modules/c-stack, modules/closeout:
19279 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
19280 * modules/execute, modules/file-type, modules/getaddrinfo:
19281 * modules/getopt, modules/human, modules/javacomp:
19282 * modules/javaexec, modules/mkdir-p, modules/obstack:
19283 * modules/openat, modules/pagealign_alloc, modules/pipe:
19284 * modules/quotearg, modules/regex, modules/rpmatch:
19285 * modules/unicodeio, modules/userspec, modules/version-etc:
19286 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
19288 Depend on gettext-h, not gettext.
19290 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
19292 * gnulib-tool (func_import): Add support for 'public domain' license.
19293 * modules/alloca, modules/atexit, modules/memmove:
19294 Now public domain, not GPL.
19295 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
19296 * modules/realloc, modules/strerror, modules/strtod:
19299 2005-07-05 Bruno Haible <bruno@clisp.org>
19301 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
19302 autoconf CVS. Needed for mingw.
19304 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
19306 Remove the dependency of the strftime module on the tzset module.
19307 * modules/strftime (Depends-on): Remove dependency on tzset.
19309 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
19311 Remove the dependency of the strftime module on the tzset module.
19312 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
19313 gl_FUNC_TZSET_CLOBBER.
19315 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
19317 Remove the dependency of the strftime module on the tzset module.
19318 * lib/strftime.c (my_strftime)
19319 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
19320 Copy the input structure, to work around some of the bug with
19321 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
19322 Solaris releases, you should also use the tzset module, but we won't
19323 require it as a dependency any more since we don't want LGPLed code
19324 to depend on GPLed code.
19326 2005-07-02 Jim Meyering <jim@meyering.net>
19328 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
19329 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
19330 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
19331 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
19333 2005-07-02 Jim Meyering <jim@meyering.net>
19335 * lib/backupfile.c (backup_args): Change a `0' to NULL.
19337 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
19339 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
19340 declares only 'struct timespec;' (!).
19342 2005-07-01 Jim Meyering <jim@meyering.net>
19344 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
19345 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
19346 * lib/save-cwd.c, tempname.c:
19347 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
19348 and don't include <sys/file.h>).
19350 2005-06-29 Jim Meyering <jim@meyering.net>
19352 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
19353 type name. Use the variable name instead.
19354 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
19357 2005-06-28 Simon Josefsson <jas@extundo.com>
19359 * modules/check-version (Files): Add check-version.m4.
19361 2005-06-28 Simon Josefsson <jas@extundo.com>
19363 * m4/check-version.m4: New file, suggested by Jim Meyering
19364 <jim@meyering.net>.
19366 2005-06-28 Simon Josefsson <jas@extundo.com>
19368 * lib/check-version.h, lib/check-version.c: New files.
19370 2005-06-28 Simon Josefsson <jas@extundo.com>
19372 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
19373 collision with global variable. Better indentation. Don't
19374 increment buffer pointer beyond buffer end. Based on comments
19375 from Paul Eggert <eggert@cs.ucla.edu>.
19377 * lib/base64.h: Indent.
19379 2005-06-28 Simon Josefsson <jas@extundo.com>
19381 * doc/gnulib.texi (Library version handling): New section.
19383 2005-06-28 Jim Meyering <jim@meyering.net>
19385 * check-module (find_included_lib_files): Hard-code another
19386 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
19387 but modules/fts-lgpl (correctly) does not list those files.
19389 * modules/canonicalize (Files): Add lib/pathmax.h.
19391 2005-06-25 Simon Josefsson <jas@extundo.com>
19393 * modules/check-version: New file.
19395 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
19397 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
19398 initializer of struct addrinfo, as an indication that we don't
19399 care how many members the structure has.
19401 2005-06-24 Derek Price <derek@ximbiot.com>
19402 and Bruno Haible <bruno@clisp.org>
19404 Remove stat module & update lstat.
19405 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
19406 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
19407 * m4/stat.m4: Remove this file.
19409 2005-06-24 Derek Price <derek@ximbiot.com>
19410 and Bruno Haible <bruno@clisp.org>
19412 Remove stat module & update lstat.
19413 * lib/stat.c: Remove this file...
19414 (slash_aware_lstat): ...moving this content and its support...
19415 * lib/lstat.c (rpl_lstat): ...into here.
19416 * lib/lstat.h: New file.
19418 2005-06-24 Derek Price <derek@ximbiot.com>
19419 and Bruno Haible <bruno@clisp.org>
19421 Remove stat module & update lstat.
19422 * config/srclist.txt (libc sources): Remove stat.
19424 2005-06-24 Derek Price <derek@ximbiot.com>
19425 and Bruno Haible <bruno@clisp.org>
19427 Remove stat module & update lstat.
19428 * MODULES.html.sh (stat): Remove.
19429 * MODULES.html: Regenerated.
19430 * modules/lstat (Description): Correct function name.
19431 (Files): Add "lstat.h".
19432 (Depends-on): Remove stat, add xalloc, stat-macros.
19433 * modules/stat: Remove this file.
19434 (Include): Add "lstat.h", remove <sys/stat.h>.
19436 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
19438 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
19439 (ranged_convert): Don't save conversion in a temporary struct.
19440 This causes a warning with GCC 4.0.0, and anyway in the typical
19441 case it's not worth the extra 100 bytes or so of code.
19442 (ranged_convert, __mktime_internal): When calling a function via a
19443 pointer P, use P () rather than (*P) (), as we now assume C89 or
19446 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
19448 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
19449 "who -r" failed to give output. Problem reported by Tim Waugh.
19451 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
19452 (xcalloc): Use it to avoid needless tests.
19453 Problem reported by Jim Meyering.
19455 2005-06-20 Derek Price <derek@ximbiot.com>
19457 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
19458 unnecessary for Autoconfs > 2.59c.
19460 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
19462 * lib/argp.h (__option_is_short): Check upper limit of
19463 __key. Isprint() requires its argument to have the value
19464 of an unsigned char or EOF.
19466 2005-06-16 Jim Meyering <jim@meyering.net>
19468 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
19469 when either N or S is zero.
19471 2005-06-16 Derek Price <derek@ximbiot.com>
19473 * m4/bison.m4: Declare YACC & YFLAGS precious.
19475 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
19477 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
19478 multibyte string or pattern, fall back on unibyte matching.
19479 Problem reported by James Youngman.
19481 2005-06-08 Bruno Haible <bruno@clisp.org>
19483 * modules/csharpcomp: New file.
19484 * MODULES.html.sh (C#): Add csharpcomp.
19486 2005-06-08 Bruno Haible <bruno@clisp.org>
19488 * m4/csharpcomp.m4: New file, from GNU gettext.
19490 2005-06-08 Bruno Haible <bruno@clisp.org>
19492 * lib/csharpcomp.h: New file, from GNU gettext.
19493 * lib/csharpcomp.c: New file, from GNU gettext.
19494 * lib/csharpcomp.sh.in: New file, from GNU gettext.
19496 2005-06-08 Bruno Haible <bruno@clisp.org>
19498 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
19501 2005-06-07 Derek Price <derek@ximbiot.com>
19504 * lib/glob_.h: Indent nested #ifdef.
19506 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
19508 Sync from coreutils.
19509 Use "file name" when talking about file names, instead of "filename"
19510 or "path", as per the GNU coding standards.
19511 * lib/mkdir-p.c: Renamed from makepath.c.
19512 (make_dir_parents): Renamed from make_path. All callers changed.
19513 * lib/mkdir-p.h: Likewise. All includers changed.
19514 * lib/filenamecat.c: Renamed from path-concat.c.
19515 (file_name_concat): Renamed from path_concat. All callers changed.
19516 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
19517 * lib/filenamecat.h: Likewise. All includers changed.
19518 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
19519 in comments or local variable names.
19520 * lib/basename.c: Likewise.
19521 * lib/canonicalize.c, canonicalize.h: Likewise.
19522 * lib/dirname.c, dirname.h: Likewise.
19523 * lib/euidaccess.c: Likewise.
19524 * lib/exclude.c: Likewise
19525 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
19526 * lib/fsusage.c, fsuage.h: Likewise.
19527 * lib/fts.c, fts_.h: Likewise.
19528 * lib/getcwd.c: Likewise.
19529 * lib/getloadavg.c: Likewise.
19530 * lib/mkstemp.c: Likewise.
19531 * lib/mountlist.c, mountlist.h: Likewise.
19532 * lib/openat.c, openat.h: Likewise.
19533 * lib/readlink-stub.c: Likewise.
19534 * lib/readutmp.c, readutmp.h: Likewise.
19535 * lib/rename.c: Likewise.
19536 * lib/rmdir.c: Likewise.
19537 * lib/same.c: Likewise.
19538 * lib/savedir.c: Likewise.
19539 * lib/stripslash.c: Likewise.
19540 * lib/tempname.c: Likewise.
19541 * lib/xreadlink.c: Likewise.
19542 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
19544 * lib/exclude.h: Likewise.
19546 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
19547 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
19548 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
19549 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
19550 * lib/pathmax.h: Include <limits.h> unconditionally, since other
19551 files have been getting away with it for years (MORE/BSD 4.3
19553 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
19554 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
19556 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
19557 Define to 256, not 255, as per modern POSIX.
19559 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
19561 Sync from coreutils.
19562 Use "file name" when talking about file names, instead of "filename"
19563 or "path", as per the GNU coding standards.
19564 * MODULES.html.sh: mkdir-p renamed from makepath.
19565 filenamecat renamed from path-concat.
19566 * modules/filenamecat: Renamed from modules/path-concat.
19567 (Files): filenamecat.h and filenamecat.c renamed from
19568 path-concat.h and path-concat.c.
19569 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
19570 (Include): filenamecat.h, not path-concat.h.
19571 * modules/mkdir-p: Renamed from modules/makepath.
19572 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
19574 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
19575 (Include): mkdir-p.h, not makepath.h.
19577 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
19579 Sync from coreutils.
19580 * m4/mkdir-p.m4: Renamed from makepath.m4.
19581 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
19582 Rename files from makepath.c to mkdir-p.c, and from
19583 makepath.h to mkdir-p.h.
19584 * m4/filenamecat.m4: Renamed from path-concat.m4.
19585 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
19586 Rename files from path-concat.c to filenamecat.c,
19587 and from path-concat.h to filenamecat.h.
19588 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
19589 "file name" in local variables or comments.
19590 * m4/rename.m4: Likewise.
19592 2005-06-01 Bruno Haible <bruno@clisp.org>
19594 * modules/csharpexec: New file.
19595 * MODULES.html.sh (C#): New section.
19597 2005-06-01 Bruno Haible <bruno@clisp.org>
19599 * m4/csharp.m4: New file, from GNU gettext.
19600 * m4/csharpexec.m4: New file, from GNU gettext.
19602 2005-06-01 Bruno Haible <bruno@clisp.org>
19604 * lib/csharpexec.h: New file, from GNU gettext.
19605 * lib/csharpexec.c: New file, from GNU gettext.
19606 * lib/csharpexec.sh.in: New file, from GNU gettext.
19608 2005-05-31 Derek Price <derek@ximbiot.com>
19609 Paul Eggert <eggert@cs.ucla.edu>
19612 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
19614 2005-05-31 Derek Price <derek@ximbiot.com>
19615 Paul Eggert <eggert@cs.ucla.edu>
19618 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
19620 2005-05-29 Derek Price <derek@ximbiot.com>
19622 * config/srclist.txt (glob_.h, glob.c): Add these files.
19624 2005-05-29 Derek Price <derek@ximbiot.com>
19626 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
19627 * modules/glob: New file.
19628 * modules/getlogin_r: Add link to POSIX spec in description.
19630 2005-05-29 Derek Price <derek@ximbiot.com>
19631 Paul Eggert <eggert@cs.ucla.edu>
19633 * m4/glob.m4: New file.
19635 2005-05-29 Derek Price <derek@ximbiot.com>
19636 Paul Eggert <eggert@cs.ucla.edu>
19638 * lib/glob_.h, lib/glob.c: New files.
19640 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
19642 * modules/fts (Files): Remove m4/inttypes-pri.m4.
19643 * modules/fts-lgpl (Depends-on): Remove gettext.
19645 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
19647 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
19648 and don't require gt_INTTYPES_PRI.
19650 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
19652 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
19654 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
19655 the configuration hassle isn't worth it.
19656 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
19657 (LONGEST_MODIFIER, PRIuMAX): Remove.
19659 2005-05-27 Bruno Haible <bruno@clisp.org>
19661 * lib/getlogin_r.h: Remove second include of <stddef.h>.
19663 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
19665 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
19666 _POSIX_PTHREAD_SEMANTICS for Solaris.
19668 2005-05-25 Derek Price <derek@ximbiot.com>
19670 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
19672 2005-05-25 Derek Price <derek@ximbiot.com>
19673 Paul Eggert <eggert@cs.ucla.edu>
19675 * modules/getlogin_r, m4/getlogin_r.m4: New files.
19676 * lib/getlogin_r.c, getlogin_r.h: New files.
19678 2005-05-25 Bruno Haible <bruno@clisp.org>
19679 Derek Price <derek@ximbiot.com>
19681 * lib/getlogin_r.h: Simplify API documentation.
19683 2005-05-23 Derek Price <derek@ximbiot.com>
19685 * modules/minmax (Files): Add m4/minmax.m4.
19686 (configure.ac): Add gl_MINMAX.
19688 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
19690 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
19691 so that unistd-safer.h (GPL'ed code) need not be included.
19693 2005-05-22 Bruno Haible <bruno@clisp.org>
19695 * m4/minmax.m4: New file.
19696 Based on a patch by Derek Price <derek@ximbiot.com>.
19698 2005-05-22 Bruno Haible <bruno@clisp.org>
19700 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
19701 (INT64_MIN): Fix definition.
19702 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
19704 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
19705 NEED_SIGNED_INT_TYPES.
19707 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
19708 HAVE_SYSTEM_INTTYPES.
19710 2005-05-22 Bruno Haible <bruno@clisp.org>
19712 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
19713 Also include <sys/param.h> if it defines MIN, MAX.
19714 Based on a patch by Derek Price <derek@ximbiot.com>.
19716 2005-05-21 Jim Meyering <jim@meyering.net>
19718 * modules/fts (Files): Add m4/inttypes-pri.m4.
19719 (Depends-on): Add lstat and remove gettext. Alphabetize.
19721 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
19724 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
19725 (setup_dir, free_dir): New functions.
19726 (enter_dir, leave_dir): Define trivial
19727 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
19728 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
19729 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
19730 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
19731 Move to fts-cycle.c.
19732 (fts_open): Use setup_dir.
19733 (fts_close): Use free_dir.
19734 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
19735 This adds a label and some gotos, but the alternatives were messier.
19736 Check for memory allocation failure when entering a dir.
19737 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
19738 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
19739 (FTS): New member fts_cycle, that is a union that contains the
19740 old active_dir_ht and cycle_state. All uses changed to mention
19741 fts_cycle.ht and fts_cycle.state.
19742 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
19743 fts.c, with the following changes:
19744 (setup_dir, free_dir): New functions.
19745 (enter_dir): Now returns bool. Return true if successful, false
19746 if memory exhausted. All callers changed.
19747 Do not bother partly cleaning up on
19748 memory allocation failure; that is free_dir's job.
19749 However, free ad if hash_insert fails, to avoid memory leak.
19750 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
19751 fts->fts_options to see which union member to use.
19753 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
19755 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
19756 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
19758 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
19760 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
19762 2005-05-20 Jim Meyering <jim@meyering.net>
19764 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
19765 Now a macro, to pacify GCC.
19767 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
19769 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
19772 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
19774 * lib/chown.c (rpl_chown): Return -1 on failure.
19776 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
19778 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
19779 Don't check for stddef.h.
19780 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
19781 don't use its results.
19782 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
19783 since we include them unconditionally. Don't require
19784 AM_STDBOOL_H, since stdbool is a prerequisite.
19785 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
19786 since we assume C89 or better.
19787 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
19788 as we don't use their results.
19789 Don't check for fchdir, memmove, memset, strrchr, as we use
19790 them unconditionally.
19791 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
19792 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
19794 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
19796 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
19797 Include <stddef.h> unconditionally, since we assume C89 now.
19798 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
19799 * lib/fts.c: Include fts_.h first, to check interface.
19800 Do not include intprops.h; no longer needed.
19801 Include cycle-check.h and hash.h, since fts_.h no longer does.
19802 Remove unnecessary casts of closedir to void.
19803 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
19804 decide whether to decrement nlinks.
19805 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
19806 (FTS): Use struct hash_table * instead of Hash_table, so that
19807 we no longer need to include hash.h here.
19809 2005-05-18 Jim Meyering <jim@meyering.net>
19811 * modules/dirfd (License): Change to LGPL. Most of the code
19812 is already in the public domain.
19814 2005-05-18 Jim Meyering <jim@meyering.net>
19816 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
19817 Reported by Yoann Vandoorselaere.
19819 2005-05-17 Jim Meyering <jim@meyering.net>
19821 * m4/fts.m4: New file, from coreutils.
19823 2005-05-17 Jim Meyering <jim@meyering.net>
19825 * lib/fts.c, lib/fts_.h: New files, from coreutils.
19827 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
19829 Sync from coreutils.
19830 * m4/unlinkdir.m4: New file.
19832 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
19834 Sync from coreutils.
19835 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
19836 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
19837 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
19838 White space changes only.
19839 * lib/makepath.c (make_path): Port to hosts where leading "//" is
19841 * lib/yesno.c: Include getline.h, not ctype.h.
19842 (yesno): Don't remove leading white space; POSIX doesn't allow it.
19843 Use getline to remove arbitrary restriction on response length.
19845 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
19847 * config/srclist-update: Spell out "Street" in FSF postal
19848 mail address; this is the style the FSF seems to prefer.
19850 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
19851 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
19852 this updates FSF postal mail address.
19854 Sync from coreutils.
19855 * modules/unlinkdir: New file.
19856 * modules/yesno (Depends-on): Add getline.
19857 * MODULES.html.sh (File system functions): Add unlinkdir.
19859 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
19861 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
19863 Change the initial comment to refer to GPL, not LGPL.
19864 gnulib-tool will change it to LGPL as needed.
19866 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
19867 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
19868 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
19869 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
19870 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
19871 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
19872 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
19873 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
19874 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
19875 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
19876 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
19877 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
19878 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
19879 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
19880 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
19881 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
19882 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
19883 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
19884 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
19885 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
19886 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
19887 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
19888 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
19889 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
19890 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
19891 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
19892 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
19893 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
19894 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
19895 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
19896 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
19897 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
19898 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
19899 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
19900 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
19901 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
19902 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
19903 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
19904 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
19905 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
19906 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
19907 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
19908 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
19909 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
19910 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
19911 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
19912 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
19913 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
19914 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
19915 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
19916 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
19917 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
19918 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
19919 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
19920 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
19921 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
19922 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
19923 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
19924 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
19925 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
19926 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
19927 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
19928 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
19929 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
19930 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
19931 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
19932 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
19933 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
19934 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
19935 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
19936 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
19937 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
19938 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
19939 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
19940 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
19941 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
19942 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
19943 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
19944 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
19945 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
19946 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
19947 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
19948 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
19949 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
19950 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
19951 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
19952 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
19953 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
19954 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
19955 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
19956 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
19957 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
19958 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
19959 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
19960 lib/yesno.c, lib/yesno.h:
19961 Update FSF postal mail address.
19963 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
19965 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
19966 tests/test-memmem.c, tests/test-stpncpy.c:
19967 Update FSF postal mail address.
19969 2005-05-13 Bruno Haible <bruno@clisp.org>
19971 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
19972 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
19973 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
19974 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
19975 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
19976 Add support for 64-bit integers in the MSVC compiler.
19978 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
19980 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
19982 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
19984 * gnulib-tool (func_import): Sort and uniquify recommended includes.
19986 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
19988 * doc/getdate.texi (General date syntax): Don't say that date
19989 date --iso-8601=ns generates acceptable dates; it doesn't yet.
19990 Problem reported by Nic Ferrier.
19992 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19994 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
19995 specified in ai_socktype. Fix invalid ai_protocol
19996 check. ai_protocol is usually set to 0 or depending on
19997 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
19998 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
19999 ai_socktype / ai_protocol in the returned addrinfo structure.
20001 2005-05-10 Simon Josefsson <jas@extundo.com>
20003 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
20004 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20006 2005-05-10 Karl Berry <karl@gnu.org>
20008 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
20009 (from http://www.gnu.org/licenses).
20010 * doc/COPYING.LIB: also rename to COPYING.LESSER.
20011 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
20014 2005-05-10 Karl Berry <karl@gnu.org>
20016 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
20017 (COPYING.DOC): remove.
20019 * config/srclist-update: new FSF address.
20021 2005-05-10 Derek Price <derek@ximbiot.com>
20023 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
20026 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20027 Bruno Haible <bruno@clisp.org>
20029 * modules/inet_ntop: New file.
20030 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20033 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20034 Bruno Haible <bruno@clisp.org>
20036 * m4/inet_ntop.m4: New file.
20038 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20039 Bruno Haible <bruno@clisp.org>
20041 * lib/inet_ntop.h: New file.
20042 * lib/inet_ntop.c: New file, from glibc with modifications.
20044 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
20046 * modules/time_r (License): Change to LGPL.
20047 * modules/extensions (License): Change to LGPL. Actually,
20048 the license is more permissive than that, but currently gnulib-tool
20049 doesn't know how to handle more-permissive licenses.
20051 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
20052 Problem reported by Dave Love.
20054 2005-05-08 Jim Meyering <jim@meyering.net>
20056 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
20059 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
20061 * modules/argmatch (Depends-on): Add stdbool.
20062 * modules/backupfile (Depends-on): Likewise.
20063 * modules/chdir-long (Depends-on): Likewise.
20064 * modules/closeout (Depends-on): Likewise.
20065 * modules/cycle-check (Depends-on): Likewise.
20066 * modules/dirname (Depends-on): Likewise.
20067 * modules/fnmatch (Depends-on): Likewise.
20068 * modules/fsusage (Depends-on): Likewise.
20069 * modules/fwriteerror (Depends-on): Likewise.
20070 * modules/getcwd (Depends-on): Likewise.
20071 * modules/getloadavg (Depends-on): Likewise.
20072 * modules/hard-locale (Depends-on): Likewise.
20073 * modules/makepath (Depends-on): Likewise.
20074 * modules/mountlist (Depends-on): Likewise.
20075 * modules/nanosleep (Depends-on): Likewise.
20076 * modules/posixtm (Depends-on): Likewise.
20077 * modules/quotearg (Depends-on): Likewise.
20078 * modules/readtokens (Depends-on): Likewise.
20079 * modules/readtokens0 (Depends-on): Likewise.
20080 * modules/readutmp (Depends-on): Likewise.
20081 * modules/save-cwd (Depends-on): Likewise.
20082 * modules/strftime (Depends-on): Likewise.
20083 * modules/userspec (Depends-on): Likewise.
20084 * modules/utimecmp (Depends-on): Likewise.
20085 * modules/xgetcwd (Depends-on): Likewise.
20086 * modules/xnanosleep (Depends-on): Likewise.
20087 * modules/xstrtod (Depends-on): Likewise.
20088 * modules/yesno (Depends-on): Likewise.
20090 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
20092 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
20095 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
20097 Merge from coreutils. Among other things,
20098 add bulletproofing for cases where stdin, stdout, or stderr are closed.
20099 * lib/fd-safer.c: New file.
20100 * lib/fcntl-safer.h, open-safer.c: Remove.
20101 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
20102 * lib/dup-safer.c: Include unistd-safer.h first.
20103 Don't include errno.h.
20104 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
20105 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
20106 * lib/file-type.c: Rely on file-type.h change.
20107 * lib/getloadavg.c: Include unistd-safer.h.
20108 (getloadavg): Use safer open.
20109 * lib/getusershell.c: Include "stdio-safer.h".
20110 (getusershell): Use safer fopen.
20111 * lib/long-options.c (long_options): Use NULL rather than 0.
20112 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
20114 * lib/modechange.c: Likewise.
20115 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
20116 (MODE_DONE): New constant.
20117 (struct mode_change): Remove 'next' member.
20118 (make_node_op_equals): New function; like the old one of the
20119 same name, except it allocates an array.
20120 (mode_compile, mode_create_from_ref): Use it.
20121 (mode_compile): Allocate result as an array, not a linked list.
20122 Parse octal string ourself, so that we catch mistakes like "+0".
20123 (mode_adjust): Arg is an array, not a linked list.
20124 * lib/modechange.c: Include stat-macros.h, xalloc.h.
20125 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
20126 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
20127 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
20128 Remove. This is now stat-macros.h's job.
20129 (talloc): Remove. All callers replaced by xalloc, so that
20130 our invokers don't have to worry about reporting memory failures.
20131 (make_node_op_equals): Remove.
20132 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
20134 (struct mode_change): Moved here from modechange.h.
20135 (mode_append_entry): Remove.
20136 (mode_compile): Remove MASKED_OPS arg, since it encouraged
20137 apps to have incorrect behavior. Use simpler algorithm for head
20138 and tail. Don't futz with umask; that's now the job of mode_adjust.
20139 Detect more invalid usages rather than having somewhat-random behavior.
20140 Don't insert an "a=" action, as that leads to incorrect behavior.
20141 (mode_compile, mode_create_from_ref): Return NULL on error instead
20142 of an enum, since now there's only one way to have an error. All
20144 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
20145 at the correct time. Simplify calculation of "+u" and its ilk.
20146 Don't mishandle "+X".
20147 (mode_free): Remove "register" and localize decls.
20148 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
20149 (struct mode_change): Move to modechange.c; callers don't
20150 need to see this stuff.
20151 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
20152 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
20153 (mode_change, mode_adjust): Reflect the new signatures noted above.
20154 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
20155 that might redefine system include files.
20156 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
20157 (my_usleep): Use NULL rather than (void *) 0.
20158 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
20159 Use siginterrupt to specify that system calls should be interrupted.
20160 (rpl_nanosleep): Move initialization of suspended closer to call of
20162 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
20163 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
20164 (desirable_utmp_entry): New function.
20165 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
20166 using x2nrealloc, to simplify logic.
20167 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
20168 size calculation. Do not assume utmp file is a regular file.
20169 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
20170 (READ_UTMP_CHECK_PIDS): New constant.
20171 * lib/save-cwd.c: Include unistd-safer.h.
20172 (save_cwd): Use fd_safer.
20173 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
20174 [!_LIBC] Include "stat-macros.h" instead.
20175 * lib/unistd-safer.h (fd_safer): New decl.
20177 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
20179 * modules/getloadavg (Depends-on): Add unistd-safer.
20180 * modules/getusershell (Depends-on): Add stdio-safer.
20181 * modules/lstat (Depends-on): Remove xalloc.
20182 * modules/mkstemp (Depends-on): Add stat-macros.
20183 * modules/modechange (Depends-on): Remove xstrtol.
20184 Add stat-macros, xalloc.
20185 * modules/save-cwd (Depends-on): Add unistd-safer.
20186 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
20187 * modules/unistd-safer (Files): Add lib/fd-safer.c
20188 (Makefile.am): Remove lib_SOURCES.
20190 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
20191 Remove fcntl-safer; unistd-safer supersedes it.
20193 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
20195 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
20197 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
20198 (gl_PREREQ_CHOWN): Remove.
20199 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
20200 it. Don't require AC_HEADER_STAT.
20201 (gl_PREREQ_LSTAT): Remove.
20202 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
20203 Don't require AC_HEADER_STAT.
20204 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
20205 (gl_PREREQ_RMDIR): Remove.
20206 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
20207 mention stat-macros.h or AC_HEADER_STAT, since we'll make
20208 the stat-macros module a prerequisite.
20209 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
20210 * m4/filemode.m4 (gl_FILEMODE): Likewise.
20211 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
20212 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
20213 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
20215 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
20216 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
20218 * m4/fcntl-safer.m4: Remove.
20219 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
20220 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
20221 Invoke gl_PREREQ_FD_SAFER.
20222 (gl_PREREQ_FD_SAFER): New macro.
20223 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
20224 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
20225 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
20226 Remove duplicate call to AC_LIBOBJ(readutmp).
20227 (gl_PREREQ_READUTMP): Remove. All uses inlined.
20229 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
20230 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
20232 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
20234 * MODULES.html.sh (Misc): Add byteswap.
20236 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
20238 * modules/getcwd (Depends-on): Add extensions.
20239 * modules/openat (Depends-on): Likewise.
20241 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
20243 * modules/byteswap: New file.
20245 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
20247 * m4/byteswap.m4: New file.
20249 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
20251 * lib/byteswap_.h: New file.
20253 2005-04-25 Karl Berry <karl@gnu.org>
20255 * m4/gettext.m4: Update from GNU gettext 0.14.4.
20257 2005-04-25 Albert Chin <china@thewrittenword.com>
20259 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
20262 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
20264 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
20265 (func_ln_if_changed) Remove forcibly for no error message
20266 in case file does not exist.
20268 2005-04-19 Simon Josefsson <jas@extundo.com>
20270 * gnulib-tool (Options): Make --symlink mean --symbolic.
20272 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
20274 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
20276 2005-04-16 Simon Josefsson <jas@extundo.com>
20278 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
20280 2005-04-15 Simon Josefsson <jas@extundo.com>
20282 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
20284 2005-04-15 Simon Josefsson <jas@extundo.com>
20286 * gnulib-tool: Rename --symlink to --symbolic.
20288 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
20290 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
20291 symbolic links to files instead of copying/moving. Add --aux-dir,
20292 specifying directory relative --dir where auxiliary build tools
20295 2005-04-14 Bruno Haible <bruno@clisp.org>
20297 * modules/allocsa (License): Change to LGPL.
20298 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20300 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
20302 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
20303 that "UTC +1 second" continues to work. Problem reported
20304 by Dmitry V. Levin.
20305 (relunit_snumber): New rule.
20308 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
20310 * lib/getdate.y (universal_time_zone_table): New constant.
20311 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
20312 universal_time_zone_table.
20313 (lookup_zone): Prefer universal_time_zone_table to
20314 local_time_zone_table, so that "GMT" time stamps are allowed in
20315 London during the summer. Problem reported by Ian Abbott.
20317 2005-04-12 Jim Meyering <jim@meyering.net>
20319 * lib/human.c (humblock): Set *options even when returning due to
20320 xstrtoumax conversion failure. Thanks to a used-uninitialized
20321 warning from gcc-4.
20323 2005-04-09 Jim Meyering <jim@meyering.net>
20325 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
20326 -Wuninitialized: initialize tm0.tm_year.
20328 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
20330 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
20331 count, since there's no maximum. All uses changed.
20332 Add member dsts_seen.
20333 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
20335 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
20336 Use pc_rels_seen to decide whther a date is absolute.
20338 * lib/getdate.y (number): Don't overwrite year.
20339 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
20342 2005-04-02 Simon Josefsson <jas@extundo.com>
20344 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
20345 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
20347 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
20349 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
20350 where no absolute path name can be longer than PATH_MAX.
20352 2005-03-27 Jim Meyering <jim@meyering.net>
20354 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
20356 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
20358 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
20359 "one's complement" -> "ones' complement" in comment, as per Knuth.
20360 "value of type" -> "type or expression" in comment.
20361 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
20363 2005-03-26 Jim Meyering <jim@meyering.net>
20366 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
20367 Correct typos: s/or/of/.
20369 2005-03-26 Jim Meyering <jim@meyering.net>
20371 * modules/check-include-files: Move to ../ and rename to...
20372 * check-module: ...this.
20374 2005-03-25 Jim Meyering <jim@meyering.net>
20376 * modules/xvasprintf (Files): Add xalloc.h.
20378 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
20380 * modules/gettext (Files): config/config.rpath ->
20381 build-aux/config.rpath
20382 * modules/iconv (Files): Likewise.
20383 Problem reported by Oskar Liljeblad.
20385 2005-03-23 Jim Meyering <jim@meyering.net>
20387 * modules/check-include-files: New script to check for
20388 missing dependencies, multiple includes, etc.
20390 * modules/c-strtold (Depends-on): Add xalloc.
20391 * modules/c-strtod (Depends-on): Add xalloc.
20392 * modules/hash (Depends-on): Add xalloc.
20393 (Files): Remove lib/xalloc.h.
20395 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
20396 * modules/userspec (Files): Add lib/inttostr.h.
20398 2005-03-23 Jim Meyering <jim@meyering.net>
20400 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
20402 2005-03-22 Jim Meyering <jim@meyering.net>
20404 * modules/stat-macros: New module.
20405 * modules/canonicalize, modules/euidaccess, modules/file-type,
20406 * modules/filemode, modules/lchown, modules/makepath,
20407 * modules/rmdir, modules/stat: Depend on new stat-macros module
20408 rather than listing lib/stat-macros.h manually.
20409 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
20411 2005-03-22 Jim Meyering <jim@meyering.net>
20413 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
20415 2005-03-22 Bruno Haible <bruno@clisp.org>
20417 * config/srclist.txt: Replace target directory 'config' with
20419 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
20420 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
20423 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
20425 * modules/chdir-long (Depends-on): Add mempcpy.
20427 * modules/acl, modules/backupfile, modules/c-strtod,
20428 modules/c-strtold, modules/canon-host, modules/canonicalize,
20429 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
20430 modules/exclude, modules/exitfail, modules/file-type,
20431 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
20432 modules/getdate, modules/getline, modules/getpagesize,
20433 modules/getpass, modules/getugroups, modules/group-member,
20434 modules/hard-locale, modules/hash, modules/human, modules/idcache,
20435 modules/inttostr, modules/long-options, modules/makepath,
20436 modules/md5, modules/memcasecmp, modules/memcoll,
20437 modules/modechange, modules/mountlist, modules/path-concat,
20438 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
20439 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
20440 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
20441 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
20442 modules/strftime, modules/strndup, modules/strverscmp,
20443 modules/timespec, modules/unlocked-io, modules/userspec,
20444 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
20446 Remove lib_SOURCES line from Makefile.am section, as this is now
20447 done automatically by the corresponding Autoconf macro.
20449 2005-03-21 Jim Meyering <jim@meyering.net>
20451 Changes imported from coreutils.
20453 * lib/cycle-check.c: Don't include xalloc.h.
20455 * lib/path-concat.c: Don't include assert.h.
20456 (path_concat): Remove assertion that would have triggered
20457 for ABASE starting with more than one slash.
20458 Reported by Andreas Schwab.
20460 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
20461 properly when ABASE is an absolute file name.
20462 Correct the description of this function.
20463 Include <assert.h>.
20464 Add an assertion and a test driver.
20465 This fixes a bug introduced on 2004-07-02.
20466 Andreas Schwab reported the resulting failure of cp --parents:
20467 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
20469 2005-03-21 Jim Meyering <jim@meyering.net>
20471 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
20472 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
20474 2005-03-21 Jim Meyering <jim@meyering.net>
20475 and Paul Eggert <eggert@cs.ucla.edu>
20477 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
20478 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
20479 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
20480 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
20481 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
20482 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
20483 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
20484 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
20485 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
20486 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
20487 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
20488 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
20489 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
20490 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
20491 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
20492 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
20493 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
20496 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
20498 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
20499 (which shouldn't happen), generate nothing instead of returning 0
20500 immediately, so that nstrftime (NULL, ...) doesn't return 0.
20502 2005-03-16 Bruno Haible <bruno@clisp.org>
20504 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
20505 HAVE_LONGLONG_64BIT.
20507 2005-03-16 Bruno Haible <bruno@clisp.org>
20509 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
20510 HAVE_LONGLONG_64BIT.
20512 2005-03-16 Bruno Haible <bruno@clisp.org>
20514 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
20515 HAVE_LONGLONG_64BIT.
20517 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
20519 * lib/strftime.c (my_strftime): Prepend space to format so that we can
20520 reliably distinguish strftime failure from empty output on POSIX
20523 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
20525 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
20526 (iconv_string): Don't guess a size-zero buffer, as that might cause
20527 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
20528 result would be 'too large', where 'too large' is (heuristically)
20529 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
20530 overflow concerns. This will prevent some unwanted malloc failures
20531 when the inputs are very large.
20533 2005-03-15 Karl Berry <karl@gnu.org>
20535 * config/srclist.txt (config.rpath): from gettext.
20536 * config/config.rpath: update.
20538 2005-03-15 Bruno Haible <bruno@clisp.org>
20540 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
20543 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
20546 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
20549 2005-03-14 Simon Josefsson <jas@extundo.com>
20551 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
20554 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
20556 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
20557 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
20559 * lib/strtol.c: Likewise.
20561 2005-03-14 Jim Meyering <jim@meyering.net>
20563 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
20564 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
20565 to be nonzero so that we (and caller) can detect the difference
20566 between a valid zero-length expansion and an error return, even
20567 when the underlying strftime fails before writing anything into
20570 2005-03-14 Bruno Haible <bruno@clisp.org>
20572 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
20573 Update from GNU gettext 0.14.3.
20575 2005-03-10 Jim Meyering <jim@meyering.net>
20577 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
20579 2005-03-10 Jim Meyering <jim@meyering.net>
20581 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
20582 so that this module works on systems without fchdir.
20584 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
20586 Factor int-properties macros into a single file, except for
20587 glibc-related files.
20588 * lib/intprops.h: New file.
20589 * lib/getloadavg.c: Include it instead of limits.h.
20590 (INT_STRLEN_BOUND): Remove.
20591 * lib/human.c: Include intprops.h.
20592 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
20593 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
20595 * lib/inttostr.h: Include intprops.h instead of limits.h.
20596 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
20597 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
20598 for consistency with intprops.h.
20599 (time_t_is_integer, twos_complement_arithmetic): Use them.
20600 * lib/sig2str.h: Include <signal.h>, intprops.h.
20601 (INT_STRLEN_BOUND): Remove.
20602 * lib/strftime.c (TYPE_SIGNED): Remove.
20603 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
20604 * lib/strtol.c: Adjust comments to match intprops.h.
20605 * lib/userspec.c: Include intprops.h.
20606 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
20607 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
20608 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
20609 instead of rolling our own expressions.
20610 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
20612 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
20614 (my_strftime): Do not mishandle years close to INT_MAX, by doing
20615 the right thing even if adding 1900 would overflow. Similarly
20616 for tm_mon + 1 and tm_yday + 1.
20617 Make %Y always equivalent to %C%y, and similarly for %G and %g.
20618 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
20619 (DO_SIGNED_NUMBER): New macro.
20620 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
20622 2005-03-07 Bruno Haible <bruno@clisp.org>
20624 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
20626 2005-03-07 Bruno Haible <bruno@clisp.org>
20628 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
20630 2005-03-04 Derek R. Price <derek@ximbiot.com>
20632 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
20633 (func_import): Only replace files via --import when they have actually
20636 2005-03-03 Derek R. Price <derek@ximbiot.com>
20638 * m4/mmap-anon.m4: New file.
20639 * m4/pagealign_alloc.m4: New file.
20641 2005-03-03 Derek R. Price <derek@ximbiot.com>
20642 Bruno Haible <bruno@clisp.org>
20644 * modules/pagealign_alloc: New file.
20645 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
20647 2005-03-03 Derek R. Price <derek@ximbiot.com>
20648 Bruno Haible <bruno@clisp.org>
20650 * lib/pagealign_alloc.h: New file.
20651 * lib/pagealign_alloc.c: New file.
20653 2005-03-03 Bruno Haible <bruno@clisp.org>
20655 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
20656 Use an all-permissive copyright notice, recommended by RMS.
20658 2005-03-02 Bruno Haible <bruno@clisp.org>
20660 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
20661 of AIX, the replacement has to be done only after <string.h> is
20662 included, therefore not in config.h. stpncpy.h does the replacement,
20663 and stpncpy.c uses it.
20665 2005-03-02 Bruno Haible <bruno@clisp.org>
20667 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
20670 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
20672 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
20673 The workaround isn't strictly needed for POSIX conformance, and
20674 it's too much of a pain to configure and maintain. We'll ask
20675 people to fix their kernels instead.
20676 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
20677 (NANOSLEEP_BUG_WORKAROUND): Remove.
20678 (xnanosleep): Remove the workaround.
20680 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
20682 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
20683 Reported by Derek Price.
20684 (Include): Add "timespec.h".
20686 * modules/xnanosleep (Depends-on): Remove gethrxtime.
20688 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
20690 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
20691 to detect nanosleep bug.
20693 2005-03-01 Bruno Haible <bruno@clisp.org>
20695 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
20697 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
20699 * modules/gethrxtime: New file.
20700 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
20701 (Depends-on): Add gethrxtime.
20702 (configure.ac): Add gl_XNANOSLEEP.
20703 (Makefile.am): Remove lib_SOURCES line.
20705 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
20707 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
20708 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
20710 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
20712 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
20713 * lib/timespec.h (gettime): Return void, since it always
20714 succeeds now. All uses changed.
20715 * lib/gettime.c (gettime) Likewise.
20716 [HAVE_NANOTIME]: Prefer nanotime.
20717 Assume gettimeofday succeeds, as POSIX requires.
20718 Assime time () succeeds, since other code already does.
20719 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
20720 (timespec_subtract): Remove.
20721 (NANOSLEEP_BUG_WORKAROUND): New constant.
20722 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
20723 things considerably. Use it only on GNU/Linux hosts, since the
20724 workaround shouldn't be needed elsewhere.
20726 2005-02-24 Bruno Haible <bruno@clisp.org>
20728 * modules/gettext (Files): Add m4/glibc2.m4.
20730 2005-02-24 Bruno Haible <bruno@clisp.org>
20732 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
20733 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
20735 Update from GNU gettext 0.14.2.
20736 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
20738 2005-02-24 Bruno Haible <bruno@clisp.org>
20740 * lib/localcharset.c: Update from GNU gettext 0.14.2.
20741 * lib/config.charset: Update from GNU gettext 0.14.2.
20743 2005-02-24 Bruno Haible <bruno@clisp.org>
20745 * lib/gettext.h: Update from GNU gettext 0.14.2.
20747 2005-02-23 Simon Josefsson <jas@extundo.com>
20749 * m4/iconvme.m4: New file.
20751 2005-02-23 Jim Meyering <jim@meyering.net>
20753 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
20755 Thanks to Bruno Haible for catching it.
20757 2005-02-22 Simon Josefsson <jas@extundo.com>
20759 * modules/iconvme: New file.
20761 * MODULES.html.sh: Add iconvme.
20763 2005-02-22 Simon Josefsson <jas@extundo.com>
20765 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
20767 2005-02-22 Simon Josefsson <jas@extundo.com>
20769 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
20771 2005-02-22 Jim Meyering <jim@meyering.net>
20773 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
20776 2005-02-20 Neil Conway <neilc@samurai.com>
20778 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
20779 returned by OSX/Darwin if the specified buffer is not large
20780 enough for the hostname.
20782 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
20784 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
20785 pass it to _help, otherwise the latter coredumps trying to
20786 dereference state.root_argp.
20788 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
20790 * modules/chdir-long (Depends-on): Add memrchr.
20791 * modules/memrchr (Files): Add lib/memrchr.h.
20792 (Include): "memrchr.h".
20794 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
20796 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
20798 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
20800 * lib/memrchr.h: New file.
20801 * lib/chdir-long.c: Include it.
20802 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
20803 Don't bother including stddef.h.
20805 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
20807 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
20809 Include <sys/types.h>, for dev_t.
20810 (ME_DUMMY, ME_REMOTE): Move from here....
20811 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
20812 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
20814 Include mountlist.h first, to test the interface.
20816 2005-01-29 Bruno Haible <bruno@clisp.org>
20818 * lib/progname.c (program_name): Initialize.
20819 Needed when linking statically on MacOS X.
20821 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
20823 Sync from coreutils.
20824 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
20825 (Depends-on): Add c-strtod.
20826 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
20828 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
20830 Sync from coreutils.
20831 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
20833 Remove files that are specific to coreutils.
20834 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
20836 2005-01-28 Bruno Haible <bruno@clisp.org>
20838 * modules/javacomp: New file.
20839 * MODULES.html.sh (Java): Add javacomp.
20841 2005-01-28 Bruno Haible <bruno@clisp.org>
20843 * m4/javacomp.m4: New file, from GNU gettext.
20845 2005-01-28 Bruno Haible <bruno@clisp.org>
20847 * lib/javacomp.sh.in: New file, from GNU gettext.
20848 * lib/javacomp.h: New file, from GNU gettext.
20849 * lib/javacomp.c: New file, from GNU gettext.
20851 2005-01-26 Simon Josefsson <jas@extundo.com>
20853 * lib/gai_strerror.c: Use GPL in header.
20855 2005-01-26 Bruno Haible <bruno@clisp.org>
20857 * modules/javaexec: New file.
20858 * MODULES.html.sh (Java): Add javaexec.
20860 2005-01-26 Bruno Haible <bruno@clisp.org>
20862 * m4/javaexec.m4: New file, from GNU gettext.
20864 2005-01-26 Bruno Haible <bruno@clisp.org>
20866 * lib/javaexec.sh.in: New file, from GNU gettext.
20867 * lib/javaexec.h: New file, from GNU gettext.
20868 * lib/javaexec.c: New file, from GNU gettext.
20870 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
20872 * modules/lchown (Depends-on): Remove lchown.h
20874 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
20876 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
20877 must be defined if the header file was not found, in order
20878 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
20880 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
20882 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
20883 initializers for struct pentry_state.
20884 (__argp_error): Check return value of __asprintf
20885 (__argp_failure): Translate error message
20887 * lib/argp-parse.c: Removed braces around the expansion of N_()
20889 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
20891 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
20892 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
20893 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
20894 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
20895 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
20896 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
20897 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
20898 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
20899 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
20900 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
20901 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
20902 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
20903 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
20904 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
20905 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
20906 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
20907 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
20908 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
20909 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
20910 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
20911 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
20912 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
20913 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
20914 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
20915 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
20916 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
20917 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
20918 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
20919 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
20920 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
20921 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
20922 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
20923 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
20924 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
20925 xstrtol.m4, xstrtoumax.m4, yesno.m4:
20926 Use an all-permissive copyright notice, recommended by RMS.
20928 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
20930 * modules/chdir-long (Depends-on): Remove mempcpy.
20932 2005-01-21 Jim Meyering <jim@meyering.net>
20934 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
20935 same value as for Solaris 9.
20937 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
20938 component length. This included changing the parameter to be
20939 of type `char *' rather than `char const *'.
20940 * lib/chdir-long.h (chdir_long): Update prototype.
20942 * lib/openat.c (fdopendir, fstatat): New functions.
20943 * lib/openat.h: Include headers required for use of DIR and struct
20945 [AT_SYMLINK_NOFOLLOW]: Define.
20946 (fdopendir, fstatat): Add prototypes.
20948 2005-01-21 Bruno Haible <bruno@clisp.org>
20950 * modules/classpath: New file.
20951 * MODULES.html.sh (Java): Add classpath.
20953 2005-01-21 Bruno Haible <bruno@clisp.org>
20955 * lib/classpath.h: New file, from GNU gettext.
20956 * lib/classpath.c: New file, from GNU gettext.
20958 2005-01-20 Simon Josefsson <jas@extundo.com>
20960 * modules/version-etc-fsf: New file.
20962 2005-01-20 Simon Josefsson <jas@extundo.com>
20964 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
20965 * lib/version-etc.c: Remove version_etc_copyright.
20966 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
20967 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
20969 2005-01-20 Simon Josefsson <jas@extundo.com>
20971 * lib/base64.h (isbase64): Add.
20973 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
20974 using a unsigned prototype, don't inline.
20975 (base64_decode): Use it.
20977 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
20979 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
20982 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
20984 * lib/save-cwd.c (save_cwd): Remove code to support the case
20985 where fchdir is missing or flaky.
20987 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
20989 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
20991 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
20993 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
20994 AC_LIBSOURCES now does this.
20995 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
20996 with new ullong_max module.
20998 2005-01-19 Bruno Haible <bruno@clisp.org>
21000 * modules/sh-quote: New file.
21001 * MODULES.html.sh (Executing programs): Add sh-quote.
21003 2005-01-19 Bruno Haible <bruno@clisp.org>
21005 * lib/sh-quote.h: New file, from GNU gettext.
21006 * lib/sh-quote.c: New file, from GNU gettext.
21008 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
21010 Merge from coreutils.
21011 * m4/ullong_max.m4: New file.
21012 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
21013 (gl_MACROS): Assume localeconv exists.
21015 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
21017 Merge changes from coreutils, as described below in several
21018 changelogs dated today.
21020 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
21021 (O_DIRECTORY): Remove; not needed here, since "." must be
21022 a directory. All uses removed.
21023 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
21024 universal on Suns, and we also need to test for IRIX.
21025 Revamp code to use 'if' rather than '#if'.
21026 Avoid unnecessary comparison of cwd->desc to 0.
21028 * lib/utimens.c (futimens): Robustify the previous patch, by checking
21029 for known valid error numbers rather than observed invalid ones.
21031 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
21033 * modules/ullong_max: New file.
21035 * modules/chdir-long, modules/openat: New files.
21036 * modules/save-cwd (Depends-on): Depend on chdir-long.
21037 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
21039 2005-01-18 Jim Meyering <jim@meyering.net>
21041 Merge from coreutils.
21042 * m4/chdir-long.m4, m4/openat.m4: New files.
21043 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
21044 save-cwd.h. Add AC_LIBOBJ for save-cwd.
21045 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
21046 is sane and DOES follow symlinks. Besides, testing 20 different
21047 systems found no broken chown implementations.
21048 Prompted by a change in rsync's copy of this macro.
21049 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
21051 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
21053 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
21054 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
21055 NULL-means-set-to-current-time semantics.
21056 Remove temporary file immediately, rather than waiting
21057 for configure's at-exit trap code to do it.
21059 2005-01-18 Jim Meyering <jim@meyering.net>
21061 * lib/version-etc.c (version_etc_copyright): Update copyright date.
21063 * lib/utimens.c (futimens): Account for the fact that futimes
21064 can also fail with errno == ENOSYS or errno == ENOENT.
21065 Patch from Dmitry V. Levin.
21067 Change the name of the robust chdir function from chdir to chdir_long.
21068 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
21069 (restore_cwd): Use chdir_long, not chdir.
21070 * lib/chdir-long.c: Renamed from chdir.c.
21071 * lib/chdir-long.h: Renamed from chdir.h.
21072 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
21075 2005-01-18 Bruno Haible <bruno@clisp.org>
21077 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
21078 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
21079 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
21080 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
21081 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
21082 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
21083 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
21084 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
21085 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
21086 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
21087 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
21088 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
21089 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
21090 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
21091 Use an all-permissive copyright notice, recommended by RMS.
21093 2005-01-18 Bob Proulx <bob@proulx.com>
21095 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
21096 simplify offsetof() macro construct to avoid compile failure with
21097 native HP-UX 11.0 ANSI C compiler.
21099 2005-01-17 Bruno Haible <bruno@clisp.org>
21101 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
21102 redundant because stpncpy.m4 takes care of it.
21104 2005-01-17 Bruno Haible <bruno@clisp.org>
21106 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
21108 2005-01-17 Bruno Haible <bruno@clisp.org>
21110 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
21113 2005-01-17 Bruno Haible <bruno@clisp.org>
21115 * lib/fwriteerror.h (fwriteerror): Change specification to include
21117 * lib/fwriteerror.c: Include <stdbool.h>.
21118 (fwriteerror): At the end, close the file stream. Record whether
21119 stdout was already closed.
21121 2005-01-17 Bruno Haible <bruno@clisp.org>
21123 * lib/execute.c (environ): Declare if needed.
21124 * lib/pipe.c (environ): Likewise.
21125 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
21127 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
21129 * modules/argp: Depend on vsnprintf
21131 2005-01-10 Jim Meyering <jim@meyering.net>
21133 * modules/closeout (Depends-on): Add atexit.
21135 2005-01-06 Bruno Haible <bruno@clisp.org>
21137 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
21139 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
21141 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
21142 definitions to be after all include files, to avoid collisions.
21143 Problem reported by Bob Proulx.
21145 2005-01-04 Jim Meyering <jim@meyering.net>
21147 Changes imported from coreutils.
21148 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
21149 as the mkstemp template, use a temporary directory and an
21150 8.3-friendly template to avoid trouble on systems like DJGPP.
21151 Reported by Juan M. Guerrero via Stepan Kasal.
21152 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
21153 close. Remove the temporary directory right away, rather than waiting
21154 for configure's at-exit trap code to do it.
21155 Suggestion from Stepan Kasal.
21157 2005-01-01 Simon Josefsson <jas@extundo.com>
21159 * gnulib-tool: Print #include directives when --import'ing.
21161 2004-12-28 Simon Josefsson <jas@extundo.com>
21163 * tests/test-base64.c: Include required header files. Remove
21166 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
21168 * modules/error (Depends-on): Remove gettext.
21170 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
21172 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
21173 not needed. This removes a dependency on the gettext module.
21174 [defined _LIBC]: Do not include <libintl.h>; not needed.
21176 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
21178 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
21179 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
21181 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
21183 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
21186 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
21188 * modules/getdate (Depends-on): Remove alloca-opt.
21190 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
21192 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
21194 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
21196 * lib/argp-parse.c: Include <stddef.h>.
21197 (alignof, alignto): New macros.
21198 (parser_init): Don't assume that void * is aligned sufficiently
21201 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
21202 need to extend the stack.
21203 (YYINITDEPTH): New macro, so that the initial stack isn't overly
21206 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
21208 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
21210 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
21212 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
21213 (2004-10-24) change. Apparently this was a false alarm.
21215 * modules/getdate: Depend on alloca-opt, not alloca.
21217 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
21219 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
21220 Remove now-obsolete comment about AIX.
21221 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
21222 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
21223 (YYMAXDEPTH): New macro.
21225 2004-12-18 Simon Josefsson <jas@extundo.com>
21227 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
21229 2004-12-18 Bruno Haible <bruno@clisp.org>
21231 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
21233 2004-12-18 Bruno Haible <bruno@clisp.org>
21235 * lib/fatal-signal.c (fatal_signals): Make non-const.
21236 (init_fatal_signals): New function.
21237 (uninstall_handlers, install_handlers): Ignore signals that were set to
21239 (at_fatal_signal): Call init_fatal_signals.
21240 (init_fatal_signal_set): Likewise. Ignore signals that were set to
21242 Reported by Paul Eggert.
21244 2004-12-18 Bruno Haible <bruno@clisp.org>
21246 * doc/alloca.texi: New file.
21247 * doc/alloca-opt.texi: New file.
21249 2004-12-17 Jim Meyering <jim@meyering.net>
21251 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
21252 Otherwise, install-sh could exit with improper exit status when
21253 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
21255 2004-12-16 Simon Josefsson <jas@extundo.com>
21257 * tests/test-base64.c: Add license.
21259 2004-12-15 Stepan Kasal <address@hidden>
21261 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
21263 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
21265 * modules/getcwd (Files): Add m4/d-ino.m4.
21266 Suggested by Mark D. Baushke.
21268 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
21270 * lib/getdate.y (textint): New member "negative".
21271 (time_zone_hhmm): New function.
21272 Expect 14 shift-reduce conflicts, not 13.
21273 (o_colon_minutes): New rule.
21274 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
21275 (yylex): Set the "negative" member of signed numbers.
21277 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
21279 * doc/getdate.texi (Time of day items, Time zone items):
21280 Describe new formats +00:00, UTC+00:00.
21282 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
21284 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
21285 spurious "-l"s. Problem reported by Stepan Kasal.
21287 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
21289 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
21290 in Autoconf 2.59. Problem reported by Mark D. Baushke.
21292 2004-12-04 Simon Josefsson <jas@extundo.com>
21294 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
21295 Vandoorselaere <yoann@prelude-ids.org>.
21297 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
21299 Changes imported from coreutils.
21300 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
21302 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
21304 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
21306 Changes imported from coreutils.
21307 * lib/hard-locale.c: Assume <locale.h> exists.
21308 Include "strdup.h".
21309 (GLIBC_VERSION): New macro.
21310 (hard_locale): Assume setlocale exists.
21311 Rewrite to avoid #ifdef.
21312 Use strdup rather than malloc + strcpy.
21313 * lib/human.c: Assume <locale.h> exists.
21314 (human_readable): Assume localeconv exists.
21316 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
21318 * modules/hard-locale (Depends-on): Add strdup.
21320 2004-12-01 Jakub Jelinek <jakub@redhat.com>
21322 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
21323 convert T2, not T. (Imported from libc.)
21325 2004-11-30 Simon Josefsson <jas@extundo.com>
21327 * modules/restrict (License): Change to LGPL.
21329 2004-11-30 Simon Josefsson <jas@extundo.com>
21331 * m4/restrict.m4: Add copyright and copying conditions.
21333 2004-11-30 Simon Josefsson <jas@extundo.com>
21335 * m4/base64.m4: New file.
21337 2004-11-30 Simon Josefsson <jas@extundo.com>
21339 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
21342 * tests/test-base64.c: New file.
21344 * modules/base64: New file.
21346 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
21348 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
21349 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
21351 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
21353 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
21355 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
21356 (__getcwd.c): Don't restore errno; glibc doesn't.
21357 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
21358 first, falling back to our code only if its results look suspicious.
21359 Ensure that the resulting buffer is only as large as necessary.
21361 * lib/readutmp.c: Include readutmp.h first.
21362 Include <errno.h>, since readutmp.h no longer does that.
21363 * lib/readutmp.h: Don't include <errno.h>,
21364 <sys/param.h>, <time.h>; not needed to establish interface.
21365 (errno): Remove decl.
21366 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
21367 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
21368 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
21370 2004-11-28 Simon Josefsson <jas@extundo.com>
21372 * lib/base64.h, base64.c: New file.
21374 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
21376 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
21378 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
21380 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
21381 (Depends-on): Remove pathmax, same. Add mempcpy.
21382 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
21383 (Makefile.am): Append getcwd.h to lib_SOURCES.
21384 (Include): Add getcwd.h.
21385 (Maintainer): Change from Jim Meyering to "all, glibc",
21386 since getdate now uses intended-for-glibc code.
21387 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
21388 (Depends-on): Depend on getcwd. Do not depend on pathmax.
21390 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
21392 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
21393 HP's ANSI C compiler.
21394 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
21395 Declaring int functions causes warnings on some modern systems and
21396 shouldn't be needed to compile on ancient ones.
21397 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
21400 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
21401 with the following changes.
21402 (__set_errno): Parenthesize properly.
21403 Include <stdbool.h>.
21404 (MIN, MAX, MATCHING_INO): New macros.
21405 (__getcwd): Define with prototype, not K&R form.
21406 Use heuristics to allocate default buffer on stack if possible.
21407 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
21408 behavior, and to avoid the PATH_MAX limit when computing
21410 Use MATCHING_INO to compare inode number to file.
21411 Check for arithmetic overflow in size calculations.
21412 Fix bug in reallocation of dot array that caused getcwd to fail
21413 on directories nested deeper than 75.
21414 Be more careful about saving errno on error.
21415 Do not use realloc; use only free+malloc, as this is a bit
21416 more flexible and avoids a needless copy operation.
21417 Do not inspect st_dev and st_ino for symbolic links; POSIX
21418 doesn't specify the latter.
21419 Check for closedir errors.
21420 Avoid needless casts.
21421 Use "#ifdef weak_alias" around weak_alias, to be like other
21423 The following changes to getcwd.c have effect only when used in
21424 gnulib; they have no effect inside glibc proper.
21425 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
21426 as alloca isn't used.
21427 (alloca, __alloca): Likewise.
21428 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
21429 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
21430 unconditionally, as gnulib assumes C89 or better.
21431 Do not include <sys/param.h>.
21432 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
21433 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
21435 (NULL) [!defined NULL]: Remove; we assume C89 or better.
21436 Include <dirent.h> in a way that is compatible with modern Autoconf.
21437 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
21438 New macros, if not already defined.
21439 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
21440 Use "_LIBC", not "defined _LIBC", for consistency.
21441 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
21443 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
21444 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
21445 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
21446 credit only to Jim Meyering and adjust the copyright dates.
21447 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
21448 <stdlib.h>, <unistd.h>, "pathmax.h".
21449 Instead, include "xgetcwd.h" (first) and "getcwd.h".
21450 (INITIAL_BUFFER_SIZE): Remove.
21451 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
21453 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
21455 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
21456 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
21457 Use the _ONCE methods, for efficiency.
21458 Check for fcntl.h. In test program, include <errno.h>
21459 and <fcntl.h> if available. Remove old K&R cruft from
21460 test program. Check for common errors in GNU/Linux,
21461 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
21462 don't do AC_LIBOBJ, as that's getcwd.m4's job.
21463 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
21464 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
21466 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
21467 accommodate new getcwd.c.
21468 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
21469 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
21470 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
21471 that's all we need now.
21473 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
21475 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
21476 argp-parse.c depends on getopt internals, that means we should
21477 always use our getopt, to be on the safe side.
21478 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
21479 order not to spoil the result of an eventual previous invocation
21480 of gl_GETOPT_SUBSTITUTE.
21482 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
21484 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
21485 redefinition warnings. To avoid them, include the defines
21486 in `#if !defined __need_getopt ... #endif'. The only place
21487 where __getopt_argv_const is used is in definitions
21488 of getopt_long and getopt_long_only below, which are as well
21489 protected by `#ifndef __need_getopt'.
21490 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
21491 __need_getopt after including <stdio.h> and <unistd.h> These
21492 headers might have defined it.
21494 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
21496 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
21498 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
21500 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
21501 (futimens): New function, which uses futimes if available.
21502 (futimens, utimens): Support timespec==NULL, with same semantics
21503 as utime and utimens.
21504 * lib/utimens.h (futimens): New decl.
21506 2004-11-23 Jim Meyering <jim@meyering.net>
21508 * lib/getopt_.h: Remove trailing blanks.
21510 2004-11-23 Jim Meyering <jim@meyering.net>
21512 * lib/__fpending.c: Add comment.
21514 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
21516 * modules/canonicalize (Depends-on): Add xreadlink.
21517 Problem reported by James Youngman.
21519 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
21521 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
21523 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
21524 optopt): Use them instead of invoking ## directly; otherwise, the
21525 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
21527 2004-11-19 Bruno Haible <bruno@clisp.org>
21529 * lib/strtok_r.c: Move comments from here...
21530 * lib/strtok_r.h: ... to here.
21532 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
21534 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
21535 implementations that mishandle size_t overflow.
21537 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
21539 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
21540 might fail. Problem reported by Yoann Vandoorselaere.
21541 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
21542 implementations that mishandle size_t overflow.
21544 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
21546 * modules/canon-host (Depends-on): Add strdup.
21548 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
21550 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
21552 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
21554 * lib/canon-host.c: Include "strdup.h".
21555 (canon_host): Use getaddrinfo if available, so that IPv6 works.
21556 Use strdup instead of malloc/strcpy to duplicate strings.
21558 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
21559 (human_space_before_unit): New constant.
21560 * lib/human.c (human_readable): Support it.
21562 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
21563 (xgetcwd): Set errno correctly when failing.
21564 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
21565 the failure is actually due to a PATH_MAX problem.
21567 Further getopt changes to make it more likely that glibc will
21568 buy the changes back.
21569 * lib/getopt.c (POSIXLY_CORRECT): New constant.
21570 (getopt): Use it, so to preserve glibc semantic
21571 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
21572 when compiling for libc.
21573 * lib/getopt_.h (__getopt_argv_const): Bring it back.
21574 (getopt_long, getopt_long_only): Use it.
21576 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
21577 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
21578 (getopt): Argv is now char * const *, as per standard.
21579 (_getopt_internal_r, _getopt_internal): Argv is now char **,
21580 not char *__getopt_argv_const *.
21581 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
21582 _getopt_long_only_r): Likewise.
21583 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
21584 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
21585 _getopt_long_r, _getopt_long_only_r): Likewise.
21586 * lib/getopt_.h (__getopt_argv_const): Remove.
21587 (getopt): Argv is now char * const *, as per standard.
21589 * lib/getdate.y (tORDINAL): New token.
21590 (day, relunit): Allow it for relative times.
21591 (relative_time_table): Use tORDINAL for ordinals.
21593 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
21595 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
21596 Document that "second" isn't allowed as an ordinal number.
21598 2004-11-16 Jim Meyering <jim@meyering.net>
21600 * modules/closeout (Depends-on): Add fpending.
21602 2004-11-15 Jim Meyering <jim@meyering.net>
21604 * lib/closeout.c: Include "__fpending.h" once again.
21605 Include <stdbool.h>.
21606 (close_stdout): Don't fail just because stdout was closed initially,
21607 since some programs don't write to stdout in the normal course of
21608 operation (other than --version and --help), and we don't want this
21609 function to make e.g. `touch file >&-' fail.
21610 But do fail if it was closed and someone has tried to write to it.
21611 E.g., `printf foo >&-' must fail.
21613 2004-11-13 Jim Meyering <jim@meyering.net>
21615 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
21617 2004-11-12 Simon Josefsson <jas@extundo.com>
21619 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
21620 small doc fix is still pending.
21622 2004-11-11 Simon Josefsson <jas@extundo.com>
21624 * modules/strtok_r: New file.
21626 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21629 2004-11-11 Simon Josefsson <jas@extundo.com>
21631 * m4/strtok_r.m4: New file.
21633 * m4/getopt.m4: Replace opterr.
21635 2004-11-11 Simon Josefsson <jas@extundo.com>
21637 * lib/strtok_r.h, strtok_r.c: New file.
21639 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
21641 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
21642 of replacing opterr, getopt, etc. This should handle the
21643 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
21645 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
21647 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
21648 we can stop lying to compilers about the constness of argv when we
21649 are compiled outside glibc.
21650 (getopt, getopt_long, getopt_long_only): Use it.
21651 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
21652 _getopt_internal, getopt): Likewise.
21653 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
21654 _getopt_long_only_r): Likewise.
21655 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
21656 _getopt_long_r, _getopt_long_only_r): Likewise.
21658 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
21659 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
21660 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
21661 the other external symbols.
21662 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
21663 declaration, since the above renaming now works around collisions.
21665 2004-11-11 Jim Meyering <jim@meyering.net>
21667 * lib/linebreak.c: Remove trailing blanks.
21668 * lib/alloca_.h: Likewise.
21669 * lib/acosl.c: Likewise.
21670 * lib/euidaccess.c: Likewise.
21671 * lib/allocsa.h: Likewise.
21673 2004-11-10 Simon Josefsson <jas@extundo.com>
21675 * m4/getaddrinfo.m4: New file.
21677 2004-11-10 Simon Josefsson <jas@extundo.com>
21679 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
21681 2004-11-10 Simon Josefsson <jas@extundo.com>
21683 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21686 * modules/getaddrinfo: New file.
21688 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
21690 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
21692 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
21694 * lib/mktime.c (SHR): New macro, which is a portable
21695 substitute for >> that should work even on Crays.
21696 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
21697 Problem reported by Mark D. Baushke in
21698 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
21699 * lib/getdate.y (SHR): Likewise.
21701 * lib/strftime.c (SHR): Likewise.
21703 * lib/quotearg.c (struct quoting_options): Use unsigned int for
21704 quote_these_too, so that right shifts are well defined. All uses
21707 2004-11-10 Jim Meyering <jim@meyering.net>
21709 Ensure that no close failure goes unreported.
21710 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
21711 return early when it seems there's nothing to flush.
21712 Don't include __fpending.h.
21714 2004-11-10 Jim Meyering <jim@meyering.net>
21716 * modules/closeout (Depends-on): Remove fpending.
21718 2004-11-10 Jim Meyering <jim@meyering.net>
21720 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
21722 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
21724 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
21726 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
21727 and AC_REQUIRE when possible, to avoid duplicate checks.
21728 Check for <wchar.h>.
21730 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
21732 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
21734 2004-11-09 Bruno Haible <bruno@clisp.org>
21736 * m4/sockpfaf.m4: New file.
21738 2004-11-05 Bruno Haible <bruno@clisp.org>
21740 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
21741 Reported by Mark D. Baushke <mdb@cvshome.org>.
21743 2004-11-04 Bruno Haible <bruno@clisp.org>
21745 2004-09-11 Bruno Haible <bruno@clisp.org>
21746 * allocsa.valgrind: New file.
21747 2004-02-06 Bruno Haible <bruno@clisp.org>
21748 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
21749 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
21750 Reported by Christopher Seip <chris.seip@hp.com>.
21752 2004-11-04 Bruno Haible <bruno@clisp.org>
21754 * modules/allocsa (Files): Add lib/allocsa.valgrind.
21755 (Makefile.am): Distribute it.
21757 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
21759 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
21760 with errno == ERANGE if the buffer is too small.
21761 Problem reported by Mark D. Baushke.
21763 2004-11-03 Albert Chin <china@thewrittenword.com>
21764 Paul Eggert <eggert@cs.ucla.edu>
21766 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
21767 equivalent, substitute $ac_type for equivalent type rather than
21768 blindly using uint32_t *always* which won't work if uint32_t is not
21769 available. Define _UINT32_T to work around typedef of uint32_t if
21770 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
21773 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
21775 * m4/jm-macros.m4: Sync from coreutils.
21776 (gl_MACROS): Check for mbrlen, for pathchk.
21777 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
21779 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
21781 * lib/xreadlink.c (MAXSIZE): New macro.
21782 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
21783 size does not exceed MAXSIZE. Avoid cast.
21784 As suggested by Mark D. Baushke in
21785 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
21786 if readlink fails with buffer size just under MAXSIZE, try again
21789 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
21791 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
21793 2004-11-02 Derek R. Price <derek@ximbiot.com>
21794 and Paul Eggert <eggert@cs.ucla.edu>
21796 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
21797 (get_date): Overparenthesize to avoid GCC warning.
21799 2004-11-02 Bruno Haible <bruno@clisp.org>
21801 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
21804 2004-11-02 Bruno Haible <bruno@clisp.org>
21806 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
21807 function returns void.
21809 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
21811 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
21812 fflush_unlocked, flockfile, funlockfile, funlockfile,
21813 fputs_unlocked, putc_unlocked.
21815 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
21817 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
21818 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
21821 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
21823 * modules/getdate (Files): Add doc/getdate.texi.
21824 (Depends-on): Add setenv, xalloc.
21826 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
21828 * lib/getdate.y: Add support for TZ="foo" within a date string.
21829 Fix some bugs near time_t boundaries. Reject dates with
21830 out-of-range components, e.g., "Sept 31".
21831 Include <stdlib.h>, "setenv.h", "xalloc.h".
21832 (ISDIGIT_LOCALE): Remove; unused.
21833 Note that the TZ and time functions used here are not reentrant.
21834 (mktime_ok, get_tz): New functions.
21835 (TZBUFSIZE): New constant.
21836 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
21837 This requires that we sometimes generate our own TZ="XXX..." setting.
21839 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
21841 * doc/getdate.texi: New file, from coreutils with modifications for
21842 the new TZ parsing.
21844 2004-10-27 Derek R. Price <derek@ximbiot.com>
21846 * lib/mktime.c (not_equal_tm): Remove redundant check.
21848 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
21850 * modules/regex (lib_SOURCES): Add regex.c.
21851 Reported by James Youngman in
21852 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
21854 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
21856 * lib/getdate.y: Use Bison 1.875 features, and some minor
21857 code cleanups. This change does not affect semantics.
21858 Don't include <stdlib.h>; no longer needed.
21859 Don't include unlocked-io.h; only the "#if TEST" code uses
21860 stdio, and performance isn't crucial there.
21861 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
21862 Bison 1.875 features as described below.
21863 All uses of "PC." replaced by "pc->".
21864 (YYSTYPE): Add a forward declaration.
21865 (yylex, yyerror): Use full prototypes in forward decls.
21866 Use "%pure-parser" rather than obsolescent "%pure_parser".
21867 Use %parse-param and %lex-param instead of obsolescent
21868 YYPARSE_PARAM and YYLEX_PARAM.
21869 (meridian_table, month_and_day_table, time_units_table,
21870 relative_time_table, time_zone_table, military_table,
21871 lookup_zone, lookup_word, get_date):
21872 Use NULL instead of 0 where appropriate.
21873 (to_hour): Avoid abort (), to avoid a dependency on
21875 (yyerror, yylex): Now accepts parser_control * arg.
21876 (main) [TEST]: Use '\0' rather than 0 for char.
21878 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
21880 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
21882 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
21884 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
21885 It's now the caller's responsibility to handle the case where
21886 !HAVE_GETPAGESIZE && !defined getpagesize.
21888 * lib/mktime.c (leapyear): Arg is long int, not int.
21890 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
21892 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
21894 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
21896 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
21897 missing. Problem reported by James Youngman.
21899 2004-10-16 Simon Josefsson <jas@extundo.com>
21901 * gnulib-tool: Fix comments. Fix parse problem.
21902 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
21904 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
21906 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
21907 implementation of getopt_long. Problem reported by Alexander Taler in:
21908 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
21910 2004-10-15 Bruno Haible <bruno@clisp.org>
21912 * gnulib-tool: Untabify. Initialize supplied_libname.
21913 (func_usage): More homogenous output.
21914 (func_modules_transitive_closure, func_modules_to_filelist,
21915 func_emit_lib_Makefile_am): New functions.
21916 (func_import): New function, extracted from big case statement. Use
21917 func_get_license, func_modules_transitive_closure,
21918 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
21919 opt_lgpl. Don't use test -a, as it's not portable.
21920 (func_create_testdir): Use func_modules_transitive_closure,
21921 func_modules_to_filelist, func_emit_lib_Makefile_am.
21923 2004-10-15 Bruno Haible <bruno@clisp.org>
21925 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
21927 2004-10-15 Bruno Haible <bruno@clisp.org>
21929 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
21930 the portions belonging to each module.
21931 Suggested by Derek Robert Price <derek@ximbiot.com>.
21933 2004-10-12 Simon Josefsson <jas@extundo.com>
21935 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
21936 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
21939 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
21941 * modules/vsnprintf: New file.
21943 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
21945 * m4/vsnprintf.m4: New file.
21947 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
21949 * lib/vsnprintf.h: New file.
21950 * lib/vsnprintf.c: New file.
21952 2004-10-11 Bruno Haible <bruno@clisp.org>
21954 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
21957 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
21959 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
21961 2004-10-07 Bruno Haible <bruno@clisp.org>
21963 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
21964 fits into the provided buffer.
21966 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
21968 * lib/diacrit.c, diacrit.h: Add GPL notice.
21970 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
21972 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
21973 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
21974 This avoids a potential constant-folding bug.
21976 2004-10-05 Bruno Haible <bruno@clisp.org>
21978 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
21979 for the declaration of strsep.
21981 2004-10-05 Bruno Haible <bruno@clisp.org>
21983 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
21985 2004-10-04 Simon Josefsson <jas@extundo.com>
21987 * modules/memmem: New file.
21988 * tests/test-memmem.c: New file.
21989 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
21991 2004-10-04 Simon Josefsson <jas@extundo.com>
21993 * m4/memmem.m4: New file.
21995 2004-10-04 Simon Josefsson <jas@extundo.com>
21997 * lib/memmem.h: New file.
21998 * lib/memmem.c: New file, taken from glibc.
22000 2004-10-04 Simon Josefsson <jas@extundo.com>
22002 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
22003 '#ifdef USE_UNLOCKED_IO'.
22005 2004-10-04 Simon Josefsson <jas@extundo.com>
22007 * config/srclist.txt: Add memmem from glibc.
22009 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
22011 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
22013 * modules/argmatch, modules/argp, modules/closeout, modules/error,
22014 modules/exclude, modules/getdate, modules/getline,
22015 modules/getndelim2, modules/getpass, modules/getpass-gnu,
22016 modules/getusershell, modules/linebuffer, modules/md5,
22017 modules/mountlist, modules/posixtm, modules/readtokens,
22018 modules/readutmp, modules/regex, modules/sha1,
22019 modules/version-etc, modules/yesno:
22020 Remove dependency on unlocked-io.
22022 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
22024 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
22026 * m4/unlocked-io.m4: Add copyright notice.
22027 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
22029 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
22031 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
22032 * lib/xmalloc.c (xmemdup): Likewise.
22033 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
22034 XFREE): Remove these long-obsolescent macros.
22035 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
22036 * lib/xstrdup.c: Remove.
22038 * lib/regex.c (re_comp): Cast gettext return value to char *,
22039 Problem reported by Martin Neitzel via Mark D. Baushke.
22041 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
22043 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
22044 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
22045 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
22046 regex.c, sha1.c, version-etc.c, yesno.c:
22047 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
22048 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
22049 the includer's responsibility.
22051 Sync from coreutils.
22053 * lib/modechange.c (mode_compile): Don't decrement a pointer that
22054 points to the start of a string, as the C Standard says the
22055 resulting behavior is undefined.
22057 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
22058 simple -> simple_backups, numbered_existing ->
22059 numbered_existing_backups, numbered -> numbered_backups
22060 to avoid shadowing problems. All uses changed.
22061 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
22062 * lib/backupfile.c (check_extension, numbered_backup):
22063 Rename locals to avoid shadowing 'basename'.
22064 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
22067 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
22068 * lib/.cvsignore: Add getopt.h.
22070 2004-10-04 Bruno Haible <bruno@clisp.org>
22072 * modules/README: New file.
22073 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
22076 2004-10-02 Jim Meyering <jim@meyering.net>
22078 * lib/dirfd.h, getpagesize.h: Add copyright notice.
22080 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
22082 * modules/strsep: New file.
22084 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
22086 * m4/strsep.m4: New file.
22088 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
22090 * lib/strsep.h: New file.
22091 * lib/strsep.c: New file.
22093 2004-10-01 Simon Josefsson <jas@extundo.com>
22095 * lib/snprintf.c (snprintf): Handle size==0.
22097 2004-10-01 Simon Josefsson <jas@extundo.com>
22098 Bruno Haible <bruno@clisp.org>
22100 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
22101 (snprintf): Declare 'args'.
22103 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
22105 * lib/snprintf.c: Remove comments as to why each header is needed.
22107 2004-10-01 Bruno Haible <bruno@clisp.org>
22109 * MODULES.html.sh: Add strsep.
22111 2004-09-30 Simon Josefsson <jas@extundo.com>
22113 * modules/snprintf: New file.
22115 2004-09-30 Simon Josefsson <jas@extundo.com>
22117 * m4/snprintf.m4: New file.
22119 2004-09-30 Simon Josefsson <jas@extundo.com>
22121 * lib/snprintf.h, lib/snprintf.c: New files.
22123 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
22125 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
22126 (hol_entry_help): Never translate an empty string.
22127 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
22128 * lib/argp.h (OPTION_NO_TRANS): New option.
22130 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
22132 * modules/argp (Maintainer): Replace Simon Josefsson
22133 by Sergey Poznyakoff.
22135 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
22137 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
22138 changes merged back into glibc.
22140 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
22142 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
22144 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
22146 * lib/xvasprintf.c: Include xalloc.h.
22147 (xvasprintf): Use xalloc_die, not xmalloc_die.
22149 2004-09-29 Bruno Haible <bruno@clisp.org>
22151 * modules/alloca-opt: New file, derived from modules/alloca.
22152 * modules/allocsa: Depend on alloca-opt instead of alloca.
22153 * modules/setenv: Likewise.
22154 * modules/vasnprintf: Likewise.
22155 * MODULES.html.sh: Add alloca-opt.
22157 2004-09-28 Simon Josefsson <jas@extundo.com>
22159 * gnulib-tool: New parameter --lgpl, to asseert that modules are
22160 LGPL, and to replace license template from GPL to LGPL.
22162 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
22164 * modules/dummy: Change license to LGPL.
22166 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
22168 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
22170 2004-09-24 Simon Josefsson <jas@extundo.com>
22172 * modules/minmax (License): Change from GPL to LGPL.
22174 2004-09-23 Simon Josefsson <jas@extundo.com>
22176 * gnulib-tool (--import): Typo.
22178 2004-09-23 Simon Josefsson <jas@extundo.com>
22180 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
22182 2004-09-22 Bruno Haible <bruno@clisp.org>
22184 * modules/*: Add 'License' field.
22185 * gnulib-tool: Accept --extract-license option.
22186 (func_get_license): New function.
22188 2004-09-21 Bruno Haible <bruno@clisp.org>
22190 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
22191 Reported by Simon Josefsson.
22193 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
22195 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
22196 gl_AC_TYPE_LONG_LONG.
22198 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
22200 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
22202 2004-09-18 Simon Josefsson <jas@extundo.com>
22203 and Paul Eggert <eggert@cs.ucla.edu>
22205 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
22206 calls with autoreconf. Define GL_LIB.
22208 2004-09-14 Karl Berry <karl@gnu.org>
22210 * config/srclist.txt: unsync setenv.c, sigh.
22212 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
22214 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
22215 Problem reported by Bruno Haible in:
22216 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
22218 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
22220 * config/srclist.txt: Comment out argp-pvh.c.
22222 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
22224 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
22225 in case some system header has #define'd it. Problem reported by
22226 Soeren D. Schulze in
22227 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
22229 2004-09-09 Karl Berry <karl@gnu.org>
22231 * regex.[ch]: delete from the root. These were supposed to be
22232 synced with emacs cvs, but this has not happened for about
22233 a year, and anyway nothing else uses emacs regex.[ch].
22234 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
22235 lib/regex[.ch] is untouched.
22237 2004-09-09 Bruno Haible <bruno@clisp.org>
22239 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
22241 2004-09-09 Bruno Haible <bruno@clisp.org>
22243 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
22245 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
22247 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
22249 * modules/xvasprintf: New file.
22250 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
22252 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
22254 * lib/xvasprintf.h: New file.
22255 * lib/xvasprintf.c: New file.
22256 * lib/xasprintf.c: New file.
22258 2004-09-08 Bruno Haible <bruno@clisp.org>
22260 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
22262 2004-09-08 Bruno Haible <bruno@clisp.org>
22264 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
22265 length is > INT_MAX.
22266 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
22269 2004-09-08 Bruno Haible <bruno@clisp.org>
22271 * lib/stdint_.h: New file, taken from GNU clisp.
22273 2004-09-08 Bruno Haible <bruno@clisp.org>
22274 Oskar Liljeblad <oskar@osk.mine.nu>
22276 * modules/stdint: New file.
22277 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
22279 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
22281 Import from coreutils.
22282 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
22283 strings on unbounded length. alloca's performance benefits aren't
22284 that important here.
22285 (V_STRDUP): Remove.
22286 (parse_with_separator): New function, with most of the internals
22287 of the old parse_user_spec. Allow user to omit both user and group,
22288 for compatibility with FreeBSD.
22289 Clone only the user name, not the entire spec.
22290 Do not set *uid, *gid unless entirely successful.
22291 Avoid memory leak in some failing cases.
22292 Fix regression for USER.GROUP reported by Dmitry V. Levin in
22293 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
22294 (parse_user_spec): Rewrite to use parse_with_separator.
22296 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
22298 * modules/userspec: Don't depend on alloca.
22300 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
22302 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
22304 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
22306 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
22307 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
22308 utimecmp, utimens, xnanosleep. Rename sha to sha1.
22310 2004-08-16 Simon Josefsson <jas@extundo.com>
22312 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
22313 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
22314 Add --dry-run for --import.
22315 Let user provided command line parameters override configure.ac
22318 2004-08-12 Simon Josefsson <jas@extundo.com>
22320 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
22321 as discussed with Paul Eggert in threads rooted at
22322 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
22324 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
22325 Before, the test was empty, and relied on ELIDE_CODE in source
22327 (gl_PREREQ_GETOPT): New macro.
22328 (gl_GETOPT): Use them.
22330 2004-08-12 Simon Josefsson <jas@extundo.com>
22332 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
22333 * lib/getopt_.h: Renamed from getopt.h.
22335 2004-08-12 Simon Josefsson <jas@extundo.com>
22337 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
22338 Change default library name from libfoo to libgnu.
22339 Now, if you have a configure.ac that says:
22342 gl_MODULES(error getopt etcetera)
22344 you can import all you need by running:
22345 ../gnulib/gnulib-tool --import
22347 * modules/getopt (Files): Rename getopt.h to getopt_.h.
22348 (Makefile.am): Rewrite, use logic from argz.
22349 (Include): Use <getopt.h> instead of "getopt.h".
22351 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
22353 * modules/argp (Files): Add m4/unlocked-io.m4.
22354 (Depends-on): Add extensions.
22356 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
22358 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
22359 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
22360 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
22361 Check for program_invocation_name, program_invocation_short_name,
22362 flockfile, funlockfile, features.h, _getopt_long_only_r.
22364 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
22366 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
22367 its complicated substitute.
22368 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
22369 and program_invocation_name.
22370 (__argp_basename) [!_LIBC]: Remove; the only use was
22371 replaced by its body.
22372 (__argp_short_program_name): Change condition from
22373 !defined __argp_short_program_name to
22374 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
22375 to match argp-namefrob.h.
22376 (__argp_failure): Don't assume strerror_r returns char *.
22377 * lib/argp-parse.c (N_): Define unconditionally.
22378 (argp_default_options): Fill out initializers with 0 to avoid
22381 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
22383 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
22386 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
22388 Merge from coreutils.
22390 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
22392 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
22393 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
22395 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
22397 Merge from coreutils.
22399 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
22400 wmemchr or wmemcpy. Problem reported by Robert Dahlem
22401 for Reliant Unix 5.43.
22403 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
22404 (union fooround): Use uintmax_t, not long int.
22405 The rest is a merge from libc:
22406 [defined _LIBC]: Include <shlib-compat.h>.
22407 (_obstack) [defined _LIBC]: Remove after 2.3.4.
22409 * lib/settime.c (settime): Recode to avoid warning with
22412 * lib/strverscmp.c: Convert to UTF-8.
22414 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
22416 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
22419 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
22421 * modules/xalloc-die: New file.
22422 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
22424 * modules/md5 (Files): Add m4/uint32_t.m4.
22425 * modules/sha1: Renamed from modules/sha.
22427 Rename lib/sha.h to lib/sha1.h.
22428 Rename lib/sha.c to lib/sha1.c.
22429 Rename m4/sha.m4 to m4/sha1.m4.
22430 (lib_SOURCES): Likewise.
22431 (configure.ac): Rename gl_SHA to gl_SHA1.
22432 (Include): sha.h -> sha1.h.
22434 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
22436 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
22437 * m4/sha1.m4: Renamed from sha.m4.
22438 (gl_SHA1): Renamed from gl_SHA. All uses changed.
22440 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
22442 * lib/obstack.h (obstack_empty_p):
22443 Don't assume that chunk->contents is suitably aligned.
22444 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
22445 Likewise. Problem reported by Benno in
22446 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
22448 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
22449 readable. This could be improved further but it'd take some work.
22451 2004-08-08 Simon Josefsson <jas@extundo.com>
22453 * modules/xgethostname (Depends-on): Remove exit and error (not
22456 * modules/getpass-gnu: Add getpass.h.
22457 (Depends-on): Add stdbool.
22458 * modules/getpass: Add getpass.h.
22460 2004-08-08 Simon Josefsson <jas@extundo.com>
22462 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
22463 Check getpass declaration.
22465 2004-08-08 Simon Josefsson <jas@extundo.com>
22467 * lib/xgethostname.c: Don't include error.h (not used).
22469 * lib/getpass.h: Add.
22470 * lib/getpass.c: Include getpass.h first.
22472 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
22474 * lib/xalloc-die.c: New file.
22475 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
22477 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
22478 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
22480 (_, N_, xalloc_die): Move to xalloc-die.c.
22481 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
22482 so that we needn't mess with xalloc_msg_memory_exhausted.
22484 * lib/sha1.h: Renamed from sha.h.
22485 (SHA1_H): Renamed from _SHA_H.
22486 (sha1_ctx): Renamed from sha_ctx.
22487 (sha1_init_ctx): Renamed from sha_init_ctx.
22488 (sha1_process_block): Renamed from sha_process_block.
22489 (sha1_process_bytes): Renamed from sha_process_bytes.
22490 (sha1_finish_ctx): Renamed from sha_finish_ctx.
22491 (sha1_read_ctx): Renamed from sha_read_ctx.
22492 (sha1_stream): Renamed from sha_stream.
22493 (sha1_buffer): Renamed from sha_buffer.
22494 * lib/sha1.c: Likewise; renamed from sha.c.
22495 Do not include <sys/types.h>.
22496 Include <stddef.h> rather than <stdlib.h>.
22498 2004-08-08 Bruno Haible <bruno@clisp.org>
22500 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
22501 FILESYSTEM_PREFIX_LEN.
22502 * lib/progreloc.c: Likewise.
22503 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
22505 2004-08-06 Simon Josefsson <jas@extundo.com>
22507 * modules/progname (Depends-on): Don't depend on stdbool.
22509 2004-08-06 Simon Josefsson <jas@extundo.com>
22511 * modules/getsubopt: New file.
22512 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22515 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
22517 More merge from coreutils.
22519 * m4/utimens.m4, m4/utimecmp.m4: New files.
22520 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
22521 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
22522 prereq.m4, sha.m4: Import changes from coreutils.
22524 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
22526 More merge from coreutils.
22527 * modules/raise, modules/readtokens0, modules/utimens:
22528 * modules/utimecmp, module/xnanosleep: New files.
22529 * modules/strftime: Add lib/strftime.h.
22530 Change include from <time.h> to "strftime.h".
22531 * modules/yesno: Add lib/yesno.h.
22532 * modules/backupfile: Remove lib/addext.c.
22533 * modules/euidaccess: Add stat-macros.h.
22534 * modules/canonicalize, modules/euidaccess,
22535 modules/filemode, modules/lchown, modules/makepath,
22536 modules/rmdir, modules/stat: Likewise.
22538 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
22541 * lib/argp-help.c (make_hol, hol_append): Don't assume that
22542 SIZE_MAX is a valid preprocessor constant.
22543 (__argp_basename): Change from "#ifndef _LIBC"
22544 to "#ifndef __argp_short_program_name", so that
22545 we don't compile these functions for tar.
22547 More merges from coreutils.
22548 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
22549 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
22550 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
22551 * lib/addext.c: Remove; no longer needed.
22552 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
22553 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
22554 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
22555 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
22556 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
22557 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
22558 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
22559 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
22560 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
22561 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
22562 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
22563 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
22564 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
22565 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
22566 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
22567 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
22568 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
22569 Import changes from coreutils.
22571 2004-08-05 Simon Josefsson <jas@extundo.com>
22573 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
22575 2004-08-05 Simon Josefsson <jas@extundo.com>
22577 * m4/getsubopt.m4: New file.
22579 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
22581 Merge from coreutils.
22583 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
22584 * m4/getcwd-path-max.m4: New files.
22586 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
22587 FILESYSTEM_PREFIX_LEN ->
22588 FILE_SYSTEM_PREFIX_LEN.
22589 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
22590 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
22591 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
22592 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
22594 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
22595 prerequisite modules now handle the DOS stuff.
22596 Don't check for unistd.h.
22598 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
22600 Merge from coreutils.
22602 * lib/.gdb-history: Remove; this doesn't belong here.
22604 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
22605 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
22606 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
22607 * lib/getcwd.c: New files.
22609 * lib/dirname.h: Include <stdbool.h>.
22610 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
22611 for consistency with POSIX terminology. All uses changed.
22612 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
22613 (strip_trailing_slashes): Use bool for booleans.
22614 * lib/stripslash.c (strip_trailing_slashes): Likewise.
22616 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
22617 sometimes returns a positive errno value even when it succeeds.
22618 (print_errno_message) [!LIBC]: Fall back on strerror if
22619 __strerror_r fails.
22621 * lib/path-concat.c (mempcpy): Don't define if a system header defines
22622 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
22623 (longest_relative_suffix): New function.
22624 (path_concat): Use it. Assume first argument is not NULL.
22625 Port to DOS. Omit redundant separators.
22626 Report an error instead of returning NULL.
22627 Use mempcpy instead of memcpy.
22628 (xpath_concat): Remove: not declared or used.
22630 * lib/same.h: Include <stdbool.h>
22631 (same_name): Return bool, not int.
22632 * lib/same.c (same_name): Likewise.
22633 (errno): Don't declare; we assume C89 or better now.
22635 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
22636 if not already defined.
22638 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
22639 * lib/dup-safer.c (errno): Likewise.
22641 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
22643 Merge from coreutils.
22644 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
22645 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
22646 * modules/path-concat: Don't depend on strdup.
22648 2004-08-03 Simon Josefsson <jas@extundo.com>
22650 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
22651 * lib/progname.h: Don't include stdbool.h.
22653 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
22655 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
22656 * MODULES.html.sh (func_all_modules): Remove fatal.
22658 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
22660 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
22662 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
22664 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
22667 2004-08-02 Simon Josefsson <jas@extundo.com>
22669 * lib/getsubopt.h: New file, with comments from Bruno Haible.
22670 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
22671 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
22673 2004-08-01 Simon Josefsson <jas@extundo.com>
22675 * lib/xgetdomainname.c: Include stdlib.h, for free().
22677 2004-07-19 Bruno Haible <bruno@clisp.org>
22679 * MODULES.html.sh (func_all_modules): Add dummy.
22681 2004-07-16 Simon Josefsson <jas@extundo.com>
22683 * modules/dummy: New file.
22685 2004-07-16 Simon Josefsson <jas@extundo.com>
22687 * lib/dummy.c: New file.
22689 2004-07-16 Bruno Haible <bruno@clisp.org>
22691 * lib/backupfile.h: Add extern "C" for C++.
22692 * lib/closeout.h: Likewise.
22693 * lib/copy-file.h: Likewise.
22694 * lib/findprog.h: Likewise.
22695 * lib/full-write.h: Likewise.
22696 * lib/pathname.h: Likewise.
22697 * lib/progname.h: Likewise.
22698 * lib/stpcpy.h: Likewise.
22699 * lib/stpncpy.h: Likewise.
22700 * lib/strcase.h: Likewise.
22701 * lib/strstr.h: Likewise.
22702 * lib/xalloc.h: Likewise.
22704 * lib/mbswidth.h: Add extern "C" for C++.
22705 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
22707 2004-07-13 Robert Millan <robertmh@gnu.org>
22709 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
22711 2004-07-09 Simon Josefsson <jas@extundo.com>
22713 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
22714 failed without this.)
22716 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
22718 * modules/chown (Files): Add lib/fchown-stub.c, since
22719 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
22721 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
22723 * lib/fchown-stub.c: New file.
22725 2004-06-24 Jim Meyering <jim@meyering.net>
22727 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
22729 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
22731 * modules/argz: Omit "#include".
22733 * MODULES.html.sh (func_all_modules): Add calloc, to match
22734 2004-06-01 addition of calloc module.
22736 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
22738 * m4/argz.m4: New file, which is autoupdated from libtool.
22740 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
22742 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
22745 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
22747 * config/srclist-update: Don't insist on "USA." before the
22748 close-comment, as libtool omits the period and puts the */ on a
22750 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
22751 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
22753 2004-06-22 Gary V. Vaughan <gary@gnu.org>
22755 * modules/argz: New file.
22756 * MODULES.html.sh (func_all_modules): Add argz.
22758 2004-06-12 Jim Meyering <jim@meyering.net>
22759 and Paul Eggert <eggert@cs.ucla.edu>
22761 * modules/hash (Files): Add lib/xalloc.h.
22762 * modules/pipe (Depends-on): Add wait-process.
22763 * modules/stat (Depends-on): Add xalloc.
22764 * modules/userspec (Files): Add lib/userspec.h.
22767 Upgrade from gettext-0.13.
22768 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
22769 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
22770 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
22772 2004-06-10 Jim Meyering <jim@meyering.net>
22774 * lib/calloc.c: New file.
22776 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
22778 * lib/getdate.y (yylex): Allow space between sign and number.
22779 Problem reported by Dan Jacobson.
22781 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
22783 Merge from coreutils CVS.
22785 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
22786 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
22787 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
22788 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
22789 xstrtol.m4: Fix copyright date and/or serial number.
22791 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
22792 See if we need an fchown replacement.
22793 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
22794 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
22795 and use the replacement function if we detect either defect.
22797 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
22800 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
22801 and Jim Meyering <jim@meyering.net>
22803 Merge from coreutils CVS.
22805 * lib/stat-macros.h: New file, with contents from file-type.h
22806 and coreutils' system.h.
22807 * lib/file-type.c: Include "stat-macros.h".
22808 * lib/file-type.h (file_type): Move all macro definitions to new file,
22811 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
22812 Wrap old code with this conditional.
22813 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
22814 function that does not dereference symlinks.
22815 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
22817 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
22818 dependency problems.
22819 (xreadlink): Accept new arg SIZE, for efficiency.
22820 All decls and uses changed.
22821 * lib/xreadlink.h: Include <stddef.h>, for size_t.
22823 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
22824 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
22826 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
22829 2004-06-01 Jim Meyering <jim@meyering.net>
22831 * m4/calloc.m4: New file.
22833 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
22835 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
22836 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
22837 Also, fix a typo in a diagnostic.
22839 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
22841 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
22842 or AC_FUNC_REALLOC.
22844 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
22846 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
22847 macros to be defined.
22848 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
22849 the allocator returns NULL because the requested size is zero.
22851 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
22853 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
22854 var. Add comment explaining why libc still defines it. This
22855 merges the following patch from glibc:
22856 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
22858 2004-05-20 Andreas Schwab <schwab@suse.de>
22860 * m4/free.m4: Replace free if it not known to work, not the other
22863 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
22865 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
22866 present in glibc since revision 1.1 of this file.
22867 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
22868 obstack_alignment_mask, obstack_alloc, obstack_base,
22869 obstack_blank, obstack_blank_fast, obstack_chunk_size,
22870 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
22871 obstack_grow0, obstack_init, obstack_int_grow,
22872 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
22873 obstack_next_free, obstack_object_size, obstack_ptr_grow,
22874 obstack_ptr_grow_fast, obstack_room): Remove declarations of
22875 nonexistent functions.
22877 2004-05-18 Karl Berry <karl@gnu.org>
22879 * config/srclist.txt: break link for vasnprintf.c.
22881 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
22883 Port obstack to the AS/400, where pointers are 16 bytes wide and
22884 you cannot cast an integer to a valid pointer. This patch is
22885 currently waiting to be integrated into glibc; see
22886 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
22888 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
22889 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
22890 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
22891 (struct obstack): temp member is now a union of a pointer and
22892 an integer, instead of an integer. All integer uses changed.
22893 This does not affect the physical layout of struct obstack,
22894 except on hosts (like the AS/400) where the size or alignment of
22895 void * is greater than that of ptrdiff_t.
22896 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
22897 __STDC__)]: Store temporary in pointer member of union, not
22899 * lib/obstack.c: Include <stddef.h>, for offsetof.
22900 (struct fooalign): Remove; it doesn't need a name.
22901 (union fooround): Change double to long double, and add void *.
22902 (DEFAULT_ALIGNMENT): Use offsetof to compute.
22903 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
22904 not a macro. Hence the values are always int; so remove all
22905 casts-to-int in uses.
22907 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
22909 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
22910 we can get this patch merged into glibc.
22912 2004-05-17 Derek R. Price <derek@ximbiot.com>
22913 Paul Eggert <eggert@cs.ucla.edu>
22915 * m4/argp: Depend on alloca.
22917 2004-05-17 Derek R. Price <derek@ximbiot.com>
22918 Paul Eggert <eggert@cs.ucla.edu>
22920 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
22923 2004-05-17 Bruno Haible <bruno@clisp.org>
22925 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
22926 precision that consists of a '.' followed by an empty digit string.
22927 Patch by Tor Lillqvist <tml@iki.fi>.
22929 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
22931 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
22932 for backward compatibility with older code. We need our own
22933 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
22934 it under some other name, and our alloca.h will define it.
22936 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
22937 Derek Price <derek@ximbiot.com>
22939 * lib/alloca.c: Include <alloca.h>, to get our interface.
22940 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
22941 include <alloca.h> first. Use C89 prototype for alloca; this
22942 requires including <stddef.h> for size_t. Use extern "C" if C++.
22943 Use #elif for simplicity, since we can assume C89 now.
22944 Don't try to source the system alloca.h since it will not be found
22945 and to prevent recursively including its replacement.
22946 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
22947 * lib/regex.c: Likewise.
22949 2004-05-16 Derek Price <derek@ximbiot.com>
22950 Paul Eggert <eggert@cs.ucla.edu>
22952 getline cleanup. This changes the getndelim2 API: both order of
22953 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
22956 * lib/getline.c: Don't include stddef.h or stdio.h, since our
22957 interface does that.
22958 (getline): Always use getdelim, so that we don't have two
22959 copies of this code.
22960 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
22962 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
22963 (GETNDELIM2_MAXIMUM): New macro.
22964 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
22965 instead of the old practice of delim2==0. All callers changed.
22966 Return -1 on overflow, instead of returning junk.
22967 Do not set *linesize unless allocation succeeds.
22968 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
22969 that we include sys/types.h.
22970 * lib/getnline.h: Likewise.
22971 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
22972 (getndelim2): Reorder arguments.
22973 * lib/getnline.c (getnline, getndelim):
22974 Don't discard the NMAX argument.
22975 (getnline): Invoke getndelim, to avoid code duplication.
22976 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
22977 of (size_t) -1 by callers of the getnline family.
22979 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
22981 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
22982 Check for gettimeofday.
22983 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
22984 Check for settimeofday, stime.
22986 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
22988 * lib/nanosleep.c (suspended): Change its type from int to
22989 sig_atomic_t volatile.
22990 (first_call): Make it private to rpl_nanosleep, and have it
22991 be zero initially as that's a bit faster.
22992 (my_usleep): Round up fractional times instead of truncating them,
22993 as this is the usual meaning for 'sleep'.
22995 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
22997 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
22998 (ENOSYS): Define if not defined.
22999 (settime): Fall back on stime if it exists and settimeofday fails.
23000 But don't bother with fallbacks if a method fails with errno == EPERM.
23002 2004-05-11 Jim Meyering <jim@meyering.net>
23004 Prior to this change, the save_cwd caller required read access to the
23005 current directory on most systems (ones with the fchdir function).
23007 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
23008 fails, try write-only, and finally, resort to using xgetcwd.
23010 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
23012 * lib/obstack.c, obstack.h: Import changes from libc.
23014 2004-04-28 Bruno Haible <bruno@clisp.org>
23016 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
23017 also implicitly appends .exe to executables.
23018 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
23019 accepts Windows pathnames.
23020 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
23021 Treat Cygwin like Windows, since it now accepts Windows pathnames.
23022 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
23023 Treat Cygwin like Windows, since it now accepts Windows pathnames.
23024 Reported by Derek Robert Price <derek@ximbiot.com>.
23026 2004-04-21 Karl Berry <karl@gnu.org>
23028 * config/srclist.txt (localcharset.c): break sync.
23030 2004-04-20 Paul Eggert <eggert@twinsun.com>
23032 * m4/host-os.m4: Add a copyright notice.
23034 2004-04-20 Jim Meyering <jim@meyering.net>
23036 Change UTILS_ to gl_ in AC_DEFINE'd names.
23037 Change utils_- and jm_-prefixed variables, too.
23038 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
23039 UTILS_FUNC_MKDIR_TRAILING_SLASH.
23040 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
23042 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
23043 Don't emit trailing blanks.
23044 Also rename jm_-prefixed variables to have gl_ prefix.
23046 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
23047 Also rename jm_-prefixed variables to have gl_ prefix.
23049 * m4/jm-macros.m4: Reflect the renamings.
23050 * m4/prereq.m4: Likewise.
23052 2004-04-20 Jim Meyering <jim@meyering.net>
23054 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
23057 2004-04-20 Jim Meyering <jim@meyering.net>
23058 Bruno Haible <bruno@clisp.org>
23060 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
23061 memory when realloc fails.
23063 2004-04-19 Jim Meyering <jim@meyering.net>
23065 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
23066 now that readutmp.c may call `free (0)'.
23068 2004-04-19 Bruno Haible <bruno@clisp.org>
23070 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
23071 * m4/inttypes_h.m4: Likewise.
23072 * m4/stdint_h.m4: Likewise.
23073 * m4/intmax_t.m4: Likewise.
23074 * m4/uintmax_t.m4: Likewise.
23076 2004-04-18 Jim Meyering <jim@meyering.net>
23078 * m4/prereq.m4: Don't forbid jm_ prefix.
23080 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
23081 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
23082 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
23083 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
23084 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
23085 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
23086 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
23087 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
23088 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
23089 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
23090 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
23091 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
23092 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
23093 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
23094 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
23095 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
23096 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
23097 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
23098 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
23100 2004-04-18 Jim Meyering <jim@meyering.net>
23102 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
23103 failure, don't leak memory and do call END_UTMP_ENT.
23105 2004-04-16 Jim Meyering <jim@meyering.net>
23107 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
23108 coreutils' stat program.
23109 (gl_PREREQ): Don't require jm_PREREQ_STAT.
23111 2004-04-11 Paul Eggert <eggert@twinsun.com>
23113 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
23115 (CHAR_BIT): Remove, since we assume C89.
23116 Include <stdint.h> if available, as per current Autoconf CVS advice.
23118 2004-03-31 Jim Meyering <jim@meyering.net>
23120 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
23121 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
23122 * m4/xalloc.m4: Likewise.
23124 2004-03-30 Paul Eggert <eggert@twinsun.com>
23126 Merge from coreutils.
23128 * m4/inttostr.m4: New file.
23129 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
23130 Require AM_STDBOOL_H and gl_TIMESPEC instead.
23131 Require gl_CLOCK_TIME.
23132 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
23134 2004-03-30 Paul Eggert <eggert@twinsun.com>
23136 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
23137 not bool, to be more consistent with Unix conventions.
23138 Suggested by Bruno Haible.
23140 Merge from coreutils.
23142 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
23143 * lib/umaxtostr.c: New files.
23145 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
23146 the usual <time.h> dance.
23147 (get_date): Change signature to support fractional time stamps.
23148 All callers changed.
23149 * lib/getdate.y: Include "getdate.h" first, as we can now
23150 assume C89 and don't need to worry about 'const'.
23151 Similarly, include "unlocked-io.h" near start, not in middle.
23152 Include <limits.h>.
23153 (textint.value): Use long int rather than int.
23154 (textint.digits): Use size_t rather than int.
23155 (BILLION, LOG10_BILLION): New constants.
23156 (parser_control): New member rel_ns. Members day_ordinal,
23157 time_zone, month, day, hour, minutes, rel_year, rel_month,
23158 rel_day, rel_hour, rel_minutes, rel_seconds
23159 are now long int, not int. Member seconds is now struct timespec,
23160 not int. New member timespec_seen. Members dates_seen, days_seen,
23161 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
23163 (%union.intval): Now long int, not int.
23164 New member timespec.
23165 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
23166 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
23167 (spec): Now is a timespec or an item list.
23168 (timespec, items): New nonterminals.
23169 (time, rel, relunit, number, get_date):
23170 Add support for fractional seconds.
23171 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
23172 (gmtime, localtime, mktime): Remove decls; not needed with C89.
23173 (to_hour): First arg is now long int, not int.
23174 (to_year): Returns long int, not int.
23175 Don't treat year -70 like 70.
23176 (tm_diff): Returns long int, not int.
23177 (lookup_word): Use bool instead of int when appropriate.
23178 (yylex): Use size_t for count, not int.
23179 Detect overflow when parsing large integer constants.
23180 Add support for fractions.
23181 (get_date): Make pointers 'const' if possible.
23182 Use more-portable code to detect integer overflow.
23183 (main) [TEST]: Adjust to above changes. Test for localtime failure.
23184 Don't use ctime; it's not reliable if the year has >4 digits.
23186 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
23187 This is for compatibility with BSD.
23189 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
23190 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
23191 From coreutils' system.h.
23193 * lib/userspec.c: Don't include "posixver.h".
23194 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
23195 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
23196 compatible extension. Simplify code by removing a boolean int
23197 that was always nonzero if a string was nonnull.
23199 2004-03-30 Jim Meyering <jim@meyering.net>
23201 Merge from coreutils.
23203 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
23204 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
23205 on some systems one must include <grp.h> before it.
23206 Reported by Christian Krackowizer.
23208 2004-03-30 Jim Meyering <jim@meyering.net>
23210 Merge from coreutils.
23212 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
23214 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
23215 an empty input stream.
23217 * lib/readtokens.c: Include <stdbool.h>.
23218 (readtoken): Use `size_t' rather than int/long.
23219 All callers adjusted.
23220 Use `bool' rather than `int' where appropriate.
23221 Use memset rather than an explicit loop.
23222 Use x2nrealloc rather than xrealloc.
23223 Allow the use of `\0' as a delimiter.
23224 (readtokens): Likewise.
23225 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
23227 2004-03-30 Jim Meyering <jim@meyering.net>
23229 * m4/realloc.m4: Remove file, since now it does no more than
23230 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
23231 the `configure.ac' section of module/realloc.
23232 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
23234 2004-03-30 Bruno Haible <bruno@clisp.org>
23236 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
23239 2004-03-29 Paul Eggert <eggert@twinsun.com>
23241 Merge changes to getloadavg.c from coreutils and Emacs.
23243 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
23244 Define to an expression, not to the empty string.
23245 Include cloexec.h and xalloc.h.
23246 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
23247 Use set_cloexec_flag rather than rolling our own.
23248 * lib/cloexec.c, lib/cloexec.h: New files.
23250 2004-03-29 Paul Eggert <eggert@twinsun.com>
23252 * m4/cloexec.m4: New file.
23254 2004-03-18 Paul Eggert <eggert@twinsun.com>
23256 * lib/getopt.h: Sync with libc CVS.
23258 2004-03-18 Paul Eggert <eggert@twinsun.com>
23259 Bruno Haible <bruno@clisp.org>
23261 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
23264 2004-03-18 Paul Eggert <eggert@twinsun.com>
23265 Bruno Haible <bruno@clisp.org>
23267 * lib/mbswidth.h: Include <wchar.h> only if
23268 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
23270 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
23272 2004-03-09 Paul Eggert <eggert@twinsun.com>
23274 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
23275 Sync with libc CVS.
23276 * lib/getopt_int.h: New file, also synced from libc.
23278 2004-03-09 Paul Eggert <eggert@twinsun.com>
23280 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
23281 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
23282 Bring back getopt.c, getopt.h, getopt1.c.
23284 2004-03-07 Paul Eggert <eggert@twinsun.com>
23286 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
23287 All uses changed. Check for sa_sigaction member; this fixes
23288 a bug first reported by Jason Andrade in
23289 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
23291 2004-03-07 Paul Eggert <eggert@twinsun.com>
23293 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
23294 '#if' expressions. Unlike the code it replaces, it does not
23295 depend on (defined _SC_PAGESIZE). However, it does depend on
23296 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
23297 first reported by Jason Andrade in
23298 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
23300 2004-02-25 Simon Josefsson <jas@extundo.com>
23302 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
23304 2004-02-25 Simon Josefsson <jas@extundo.com>
23306 * lib/strdup.h: New file.
23307 * lib/strdup.c: Include it.
23308 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
23309 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
23311 2004-02-23 Karl Berry <karl@gnu.org>
23313 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
23314 (from fencepost.gnu.org:/gd/gnuorg).
23316 2004-02-23 Karl Berry <karl@gnu.org>
23318 * config/srclistvars.sh (GNUORG) [karl]: redefine.
23319 * config/srclist.txt: add maintain/standards documents.
23321 2004-02-18 Bruno Haible <bruno@clisp.org>
23323 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
23324 Reported by Derek Robert Price <derek@ximbiot.com>.
23326 2004-02-16 Karl Berry <karl@gnu.org>
23328 * config/mkinstalldirs, install-sh: update from automake.
23330 2004-02-06 Karl Berry <karl@gnu.org>
23332 * m4/po.m4: update from gettext 0.14.1.
23334 2004-02-06 Karl Berry <karl@gnu.org>
23336 * lib/config.charset: update from gettext 0.14.1.
23338 2004-02-05 Paul Eggert <eggert@twinsun.com>
23340 Add comments and code, prompted by suggestions from Bruno Haible
23342 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
23343 describing the enum quoting_style values.
23344 * lib/quotearg.c (quotearg_alloc): New function.
23345 (quotearg_buffer_restyled): Treat lone { and } as special.
23346 Treat = as special. Work around bug with older shells
23347 that "see" a '\' that is really the 2nd byte of a multibyte char.
23348 Quote empty string with shell_quoting_style.
23350 2004-02-03 Bruno Haible <bruno@clisp.org>
23352 * m4/pipe.m4: New file, from GNU gettext.
23354 2004-02-03 Bruno Haible <bruno@clisp.org>
23356 * lib/pipe.h: New file, from GNU gettext.
23357 * lib/pipe.c: New file, from GNU gettext.
23359 2004-01-27 Bruno Haible <bruno@clisp.org>
23361 * m4/execute.m4: New file, from GNU gettext.
23363 2004-01-27 Bruno Haible <bruno@clisp.org>
23365 * lib/execute.h: New file, from GNU gettext.
23366 * lib/execute.c: New file, from GNU gettext.
23367 * lib/w32spawn.h: New file, from GNU gettext.
23369 2004-01-24 Paul Eggert <eggert@twinsun.com>
23371 Merge from diffutils.
23373 * lib/file-type.c (file_type): Add typed memory objects.
23374 * lib/file-type.h (S_TYPEISTMO): New macro.
23376 * lib/c-stack.h (c_stack_action): Remove argv argument.
23377 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
23378 (die): Don't calculate message unless segv_action returns.
23379 (get_stack_location, min_address_from_argv, max_address_from_argv,
23380 volatile stack_base, volatile_stack_size): Remove.
23381 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
23382 that every segmentation violation is a stack overflow. (Ouch!)
23383 See Debian bug 136249 (still outstanding) for more info about why
23384 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
23386 2004-01-24 Paul Eggert <eggert@twinsun.com>
23388 Exit-status fix from coreutils.
23390 Use exit_failure consistently in place of EXIT_FAILURE,
23391 so that program exit statuses are consistent on failure.
23393 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
23394 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
23395 * lib/argmatch.h: Comment fix to match the above.
23396 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
23397 Now a macro referring to exit_failure, instead of a separate
23398 variable. Include "exitfail.h" to get it.
23399 * lib/xstrtol.h: Include "exitfail.h".
23400 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
23402 * lib/long-options.c (parse_long_options): Use prototype
23403 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
23406 2004-01-21 Jim Meyering <jim@meyering.net>
23408 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
23409 so as not to conflict with a different-sized __mktime_internal
23410 function in GNU libc.
23411 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
23412 Problem building statically-linked `ls' reported by Michael Brunnbauer.
23414 2004-01-20 Karl Berry <karl@gnu.org>
23416 * config/config.guess: update from config.
23418 * config/srclistvars.sh: GNUWWWLICENSES for karl.
23420 2004-01-20 Bruno Haible <bruno@clisp.org>
23422 Safer stack allocation.
23423 * lib/setenv.c: Include allocsa.h.
23424 (alloca): Remove fallback definition.
23425 (freea): Remove macro.
23426 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
23429 2004-01-20 Bruno Haible <bruno@clisp.org>
23431 * m4/eealloc.m4: New file, from GNU gettext.
23433 2004-01-20 Bruno Haible <bruno@clisp.org>
23435 * m4/allocsa.m4: New file, from GNU gettext.
23437 2004-01-20 Bruno Haible <bruno@clisp.org>
23439 * lib/xallocsa.h: New file, from GNU gettext.
23440 * lib/xallocsa.c: New file, from GNU gettext.
23442 2004-01-20 Bruno Haible <bruno@clisp.org>
23444 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
23446 2004-01-20 Bruno Haible <bruno@clisp.org>
23448 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
23449 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
23452 2004-01-20 Bruno Haible <bruno@clisp.org>
23454 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
23457 2004-01-20 Bruno Haible <bruno@clisp.org>
23459 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
23461 2004-01-20 Bruno Haible <bruno@clisp.org>
23463 * lib/eealloc.h: New file.
23465 2004-01-20 Bruno Haible <bruno@clisp.org>
23467 * lib/binary-io.h: Avoid warnings on Cygwin.
23469 2004-01-20 Bruno Haible <bruno@clisp.org>
23471 * lib/allocsa.h: New file, from GNU gettext.
23472 * lib/allocsa.c: New file, from GNU gettext.
23474 2004-01-18 Karl Berry <karl@gnu.org>
23476 * doc/gpl.texi, doc/lgpl.texi: new files.
23478 2004-01-18 Karl Berry <karl@gnu.org>
23480 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
23481 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
23483 2004-01-15 Paul Eggert <eggert@twinsun.com>
23485 Merge from coreutils.
23487 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
23488 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
23489 (gl_DEFAULT_POSIX2_VERSION): Move
23490 the documentation from 'configure' into 'config.hin',
23491 so that 'configure --help' isn't burdened by it and
23492 we don't have to worry about its formatting there.
23493 Reword the documentation so that it's more succinct
23494 and can be run together into a single paragraph.
23495 * m4/same.m4 (gl_SAME): Check for pathconf.
23497 2004-01-15 Paul Eggert <eggert@twinsun.com>
23499 Merge from coreutils.
23501 * lib/posixver.c: Include posixver.h.
23503 * lib/same.c: Include <stdbool.h>, <limits.h>.
23504 (_POSIX_NAME_MAX): Define if not defined.
23506 (same_name): If file names are silently truncated, report
23507 that the file names are the same if they are the same after
23508 the silent truncation.
23510 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
23511 conversion function.
23512 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
23513 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
23516 2004-01-15 Jim Meyering <jim@meyering.net>
23518 Merge from coreutils.
23520 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
23521 if no library is required.
23522 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
23523 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
23524 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
23525 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
23526 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
23527 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
23528 value, $ac_cv_search_crypt, if it's "none required".
23529 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
23530 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
23531 not gl_FUNC_GETLOADAVG.
23532 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
23533 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
23535 2004-01-15 Jim Meyering <jim@meyering.net>
23537 Merge from coreutils.
23539 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
23540 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
23541 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
23543 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
23544 optional configure-time default.
23546 * lib/version-etc.c (version_etc_copyright): Update copyright date.
23548 * lib/xreadlink.c (xreadlink): Correct outdated comment.
23550 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
23552 Merge from coreutils.
23554 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
23555 value, $ac_cv_search_nanosleep, if it's "none required".
23557 2004-01-14 Paul Eggert <eggert@twinsun.com>
23559 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
23560 with like-named macro in fnmatch.c.
23561 (EXT): Use an internal constant instead.
23563 Merge fnmatch patches from glibc.
23564 * lib/fnmatch.c (mbsinit): Remove define.
23565 Add libc_hidden_ver (__fnmatch, fnmatch).
23566 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
23567 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
23569 2004-01-14 Karl Berry <karl@gnu.org>
23571 * config/install-sh: update from automake.
23573 2004-01-13 Karl Berry <karl@gnu.org>
23575 * config/install-sh: update from automake.
23577 2004-01-09 Karl Berry <karl@gnu.org>
23579 * config/install-sh: update from automake.
23581 2004-01-05 Karl Berry <karl@gnu.org>
23583 * config/config.{sub,guess}: update from config.
23585 2003-12-31 Karl Berry <karl@gnu.org>
23587 * config/depcomp: update from automake.
23589 2003-12-14 Karl Berry <karl@gnu.org>
23591 * lib/config.charset: update from gettext-runtime.
23593 2003-12-03 Paul Eggert <eggert@twinsun.com>
23595 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
23596 Bug reported by Alfred M. Szmidt.
23598 2003-12-03 Bruno Haible <bruno@clisp.org>
23600 * m4/gettext.m4: Upgrade from gettext-0.13.
23601 * m4/po.m4: Upgrade from gettext-0.13.
23602 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
23603 * m4/intmax.m4: New file, from gettext-0.13.
23604 * m4/printf-posix.m4: New file, from gettext-0.13.
23606 2003-11-29 Karl Berry <karl@gnu.org>
23608 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
23610 2003-11-25 Paul Eggert <eggert@twinsun.com>
23611 Bruno Haible <bruno@clisp.org>
23613 * lib/printf-parse.h: Don't include sys/types.h.
23614 (ARG_NONE): New macro.
23615 (char_directive): Change type of *arg_index fields to size_t.
23616 * lib/printf-parse.c: Don't include sys/types.h.
23617 (SSIZE_MAX): Remove macro.
23618 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
23619 Remove unnecessary overflow check.
23620 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
23623 2003-11-25 Bruno Haible <bruno@clisp.org>
23625 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
23627 2003-11-25 Bruno Haible <bruno@clisp.org>
23629 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
23632 2003-11-24 Paul Eggert <eggert@twinsun.com>
23634 * modules/alloca: Remove dependency on xalloc.
23636 2003-11-24 Paul Eggert <eggert@twinsun.com>
23638 * lib/alloca.c: Remove dependency on xalloc module.
23639 (xalloc_die): Remove.
23640 (memory_full) [!defined emacs]: New macro.
23641 [!defined emacs]: Don't include xalloc.h.
23642 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
23643 address arithmetic overflows. Change datatypes a bit to avoid
23646 2003-11-22 Jim Meyering <jim@meyering.net>
23648 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
23651 2003-11-21 Karl Berry <karl@gnu.org>
23653 * config/config.{sub,guess}: update from config.
23655 2003-11-18 Karl Berry <karl@gnu.org>
23657 * config/config.{sub,guess}: update from config.
23659 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
23661 2003-11-17 Paul Eggert <eggert@twinsun.com>
23663 * README: Mention that S+T cannot overflow if S is the size of
23664 an existing object and T is sufficiently small.
23666 2003-11-17 Jim Meyering <jim@meyering.net>
23668 On systems without utime and without a utimes function capable of
23669 dealing with a NULL struct utimbuf* argument, this utime replacement
23670 could -- in unusual circumstances -- leak a file descriptor.
23671 * lib/utime.c: Include <unistd.h> and <errno.h>.
23672 (utime_null): Be sure to close `fd' and to preserve errno.
23673 Reported by Geoff Collyer via Arnold Robbins.
23675 2003-11-17 Bruno Haible <bruno@clisp.org>
23677 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
23678 (Depends-on): Add xsize.
23680 2003-11-17 Bruno Haible <bruno@clisp.org>
23682 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
23684 2003-11-17 Bruno Haible <bruno@clisp.org>
23686 * lib/vasnprintf.c (alloca): Remove fallback definition.
23687 (freea): Remove definition.
23688 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
23689 Reported by Paul Eggert.
23691 2003-11-16 Paul Eggert <eggert@twinsun.com>
23692 Bruno Haible <bruno@clisp.org>
23694 Protect against address arithmetic overflow.
23695 * lib/printf-args.h: Include stddef.h.
23696 (arguments): Change type of field 'count' to size_t.
23697 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
23698 'unsigned int' where appropriate.
23699 * lib/printf-parse.h: Include sys/types.h.
23700 (char_directive): Change type of *arg_index fields to ssize_t.
23701 (char_directives): Change type of fields 'count', max_*_length to
23703 * lib/printf-parse.c: Include sys/types.h and xsize.h.
23704 (SSIZE_MAX): Define fallback value.
23705 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
23706 instead of 'int' where appropriate. Check a_allocated, d_allocated
23707 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
23708 * lib/vasnprintf.c: Include xsize.h.
23709 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
23710 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
23711 overflow. Avoid wraparound when converting a width or precision from
23714 2003-11-16 Bruno Haible <bruno@clisp.org>
23716 Update from GNU gettext.
23717 * lib/printf-parse.c: Generalize to it can be compiled for wide
23719 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
23720 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
23721 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
23722 SNPRINTF): New macros.
23723 Don't include <alloca.h> if the file is used inside libintl.
23724 (local_wcslen): New function, for Solaris 2.5.1.
23725 (VASNPRINTF): Use it instead of wcslen.
23727 2003-11-16 Bruno Haible <bruno@clisp.org>
23729 * lib/xsize.h (xmax): New function.
23730 (xsum, xsum3, xsum4): Declare as "pure" functions.
23732 2003-11-12 Paul Eggert <eggert@twinsun.com>
23734 * modules/xalloc (Files): Undo latest change, since xalloc.h
23735 no longer needs SIZE_MAX or PTRDIFF_MAX.
23737 2003-11-12 Paul Eggert <eggert@twinsun.com>
23739 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
23742 2003-11-12 Paul Eggert <eggert@twinsun.com>
23744 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
23745 "return", to pacify some unknown compiler. Problem reported
23746 by Joerg Schilling.
23748 2003-11-12 Paul Eggert <eggert@twinsun.com>
23750 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
23751 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
23752 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
23753 heuristic is just as accurate as far as we know, and it removes a
23754 dependency on size_max.m4 and ptrdiff_max.m4.
23756 2003-11-11 Bruno Haible <bruno@clisp.org>
23758 * modules/xsize (Files): Add m4/size_max.m4.
23759 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
23761 2003-11-11 Bruno Haible <bruno@clisp.org>
23763 * m4/size_max.m4: New file.
23764 * m4/ptrdiff_max.m4: New file.
23765 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
23766 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
23767 (gl_XALLOC): Invoke it.
23769 2003-11-11 Bruno Haible <bruno@clisp.org>
23771 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
23772 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
23775 2003-11-10 Paul Eggert <eggert@twinsun.com>
23777 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
23778 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
23779 rejected some allocations of exactly SIZE_MAX - 2 bytes.
23781 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
23782 not (size_t) -1, since it's defined here.
23784 2003-11-09 Karl Berry <karl@gnu.org>
23786 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
23788 2003-11-06 Paul Eggert <eggert@twinsun.com>
23790 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
23791 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
23792 Reject sizes of exactly SIZE_MAX bytes.
23793 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
23794 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
23796 2003-11-05 Bruno Haible <bruno@clisp.org>
23798 * lib/xsize.h: Include limits.h, to avoid a possible collision with
23799 SIZE_MAX defined in <limits.h> on Solaris.
23801 2003-11-04 Jim Meyering <jim@meyering.net>
23803 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
23804 variable names, rather than @VAR@.
23805 * modules/poll: Likewise.
23807 2003-11-04 Bruno Haible <bruno@clisp.org>
23809 * modules/xsize: New file.
23810 * modules/linebreak: Depend on xsize.
23811 * MODULES.html.sh (func_all_modules): Add xsize.
23813 2003-11-04 Bruno Haible <bruno@clisp.org>
23815 * m4/xsize.m4: New file.
23817 2003-11-04 Bruno Haible <bruno@clisp.org>
23819 * lib/xsize.h: New file.
23820 * lib/linebreak.c: Include xsize.h.
23821 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
23822 argument for overflow.
23823 Suggested by Paul Eggert.
23825 2003-11-03 Karl Berry <karl@gnu.org>
23827 * config/config.{guess,sub}: update from config.
23829 2003-11-03 Jim Meyering <jim@meyering.net>
23831 * modules/userspec (lib_SOURCES): Add userspec.h.
23832 (Include): Add "userspec.h".
23833 Improve description.
23835 2003-11-03 Jim Meyering <jim@meyering.net>
23837 * lib/userspec.c: Include "userspec.h".
23838 * lib/userspec.h: New file.
23840 2003-11-03 Bruno Haible <bruno@clisp.org>
23842 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
23844 2003-11-03 Bruno Haible <bruno@clisp.org>
23846 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
23847 available, to avoid (extremely rare) race condition.
23848 Suggested by Paul Eggert.
23850 2003-11-02 Karl Berry <karl@gnu.org>
23852 * config/srclist.txt (vasprintf.c): sync broken, sigh.
23854 2003-10-31 Paul Eggert <eggert@twinsun.com>
23856 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
23857 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
23858 (read_filesystem_list): Set and use me_type_malloced.
23859 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
23860 whatever the type happens to be), for brevity and consistency.
23861 Check for size calculation overflow on Alphas running OSF/1.
23863 2003-10-31 Jim Meyering <jim@meyering.net>
23865 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
23867 * lib/linebuffer.c: Include <string.h> for declaration of memset.
23869 2003-10-30 Paul Eggert <eggert@twinsun.com>
23870 Bruno Haible <bruno@clisp.org>
23872 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
23873 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
23875 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
23877 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
23878 netbsd*-gnu*. Suggested by Robert Millan.
23880 2003-10-29 Paul Eggert <eggert@twinsun.com>
23882 * modules/group-member: Depend on stdbool.
23884 2003-10-29 Paul Eggert <eggert@twinsun.com>
23886 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
23888 2003-10-29 Paul Eggert <eggert@twinsun.com>
23890 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
23891 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
23892 after the 'gnu' in these cases. This fixes some bugs in the
23893 previous change, and is based on suggestions by Robert Millan.
23895 2003-10-29 Paul Eggert <eggert@twinsun.com>
23897 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
23898 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
23900 * lib/quotearg.c (quotearg_n_options): Use it.
23901 * lib/group-member.c: Include <stdbool.h>.
23902 (free_group_info): Arg is now const *; don't free arg.
23903 (get_group_info): Now returns bool and accepts struct group_info *,
23904 rather than returning a malloc'ed struct group_info *.
23905 All uses changed. Check for overflow in internal size calculation.
23907 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
23908 rather than xmalloc/xrealloc.
23909 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
23910 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
23911 conformance bug: the old code used a pointer after freeing the
23912 storage that it addressed.
23913 * lib/hash.c (hash_initialize): Simplify the code by using
23914 xalloc_oversized rather than doing it by hand.
23915 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
23916 the buffer preserved. Use free and xmalloc instead.
23917 * lib/quotearg.c (quotearg_n_options): Likewise.
23918 Use a simpler test for size overflow. Don't use xalloc_oversized
23919 because unsigned int might be wider than size_t (!); this suggests
23920 that we should switch from unsigned int to size_t for slot numbers.
23922 2003-10-28 Paul Eggert <eggert@twinsun.com>
23924 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
23925 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
23926 NetBSD kernels. Requested by Richard Stallman.
23928 2003-10-27 Paul Eggert <eggert@twinsun.com>
23930 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
23931 to allocate the returned structure. Do not allocate a subarray,
23932 as x2nrealloc will do that.
23933 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
23934 instead of xnrealloc.
23935 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
23937 2003-10-27 Bruno Haible <bruno@clisp.org>
23939 * lib/stdbool_.h: Better support for BeOS.
23941 2003-10-26 Paul Eggert <eggert@twinsun.com>
23943 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
23946 2003-10-26 Paul Eggert <eggert@twinsun.com>
23948 * lib/xalloc.h (xalloc_oversized): New static inline function, for
23949 callers that want to do their own size-overflow checking. Include
23950 <stdbool.h>, since xalloc_oversized returns bool.
23951 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
23952 to use xalloc_oversized.
23954 Add two functions x2realloc, x2nrealloc, for programs that grow
23955 arrays dynamically by doubling their sizes.
23956 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
23957 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
23960 Port to C99 semantics for 'inline' of external functions.
23961 Bug reported by Bruno Haible.
23962 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
23963 with the old contents of xnmalloc.
23964 (xnmalloc, xmalloc): Use it.
23965 (xnrealloc_inline): New static inline function,
23966 with the old contents of xnrealloc.
23967 (xnrealloc, xrealloc): Use it.
23969 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
23972 2003-10-26 Karl Berry <karl@gnu.org>
23974 * config/srclist.txt (COPYING.DOC): no longer available from
23975 /gd/gnuorg; don't know where the ultimate source is.
23977 2003-10-25 Paul Eggert <eggert@twinsun.com>
23979 Fix several address-calculation bugs in the hash modules,
23980 plus some minor code cleanup.
23982 * lib/hash.h: Include <stdbool.h>, for bool.
23983 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
23984 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
23985 hash_get_n_entries, hash_get_max_bucket_length,
23986 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
23987 hash_rehash): Use size_t rather than unsigned.
23988 * lib/hash.c (struct hash_table, hash_get_n_buckets,
23989 hash_get_n_buckets_used, hash_get_n_entries,
23990 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
23991 hash_get_entries, hash_do_for_each, hash_string, is_prime,
23992 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
23994 (SIZE_MAX): Define if not defined.
23995 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
23996 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
23998 Use const * when possible.
23999 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
24000 (check_tuning): Fix bug: if tuning parameters were very close to
24001 0 or 1, rounding errors could have caused subscript violations.
24002 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
24003 (hash_initialize): Add 'fail:' label
24004 to free table and return NULL, and use it to simplify code.
24005 Use calloc rather than clearing the storage ourself.
24006 (hash_initialize, hash_rehash): Check for arithmetic overflow in
24007 buffer size calculations.
24008 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
24009 Include <stddef.h>, for size_t.
24010 * lib/hash-pjw.c (hash_pjw): Likewise.
24011 Switch to method described by Bruno Haible.
24012 Include <limits.h>, for CHAR_BIT.
24013 (SIZE_BITS): New macro.
24015 2003-10-23 Paul Eggert <eggert@twinsun.com>
24017 * m4/getline.m4 (AM_FUNC_GETLINE):
24018 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
24019 hosts. Problem reported by Derek Robert Price in
24020 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
24021 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
24022 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
24024 2003-10-21 Paul Eggert <eggert@twinsun.com>
24026 * lib/getndelim2.c (getndelim2): When size calculation overflows,
24027 ceiling the allocation at NMAX bytes rather than silently
24028 discarding input bytes before NMAX is reached. This makes
24029 a difference only if NMAX exceeds SIZE_MAX / 2.
24031 * lib/obstack.c: Merge from glibc.
24032 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
24033 Add libc_hidden_def (_obstack_newchunk).
24034 (_obstack_free) [! defined _LIBC]: Remove.
24035 [defined _LIBC]: Make a strong alias from obstack_free, rather than
24036 a clone of the function body.
24037 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
24038 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
24040 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
24042 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
24045 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
24046 (obstack_ptr_grow_fast, obstack_int_grow_fast):
24047 Don't use lvalue casts, as GCC plans to remove support for them
24048 in GCC 3.5. Reported by Joseph S. Myers. This bug
24049 was also present in the non-GCC version, indicating that this
24050 code had always been buggy and had never been widely used.
24051 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
24052 Use the fast variant of each macro, rather than copying the
24053 definiens of the fast variant; that way, we'll be more likely to
24054 catch future bugs in the fast variants.
24056 2003-10-20 Bruno Haible <bruno@clisp.org>
24058 * modules/wait-process: New file.
24059 * MODULES.html.sh (func_all_modules): Add wait-process.
24061 2003-10-20 Bruno Haible <bruno@clisp.org>
24063 * m4/wait-process.m4: New file.
24065 2003-10-20 Bruno Haible <bruno@clisp.org>
24067 * lib/wait-process.h: New file, from GNU gettext.
24068 * lib/wait-process.c: New file, from GNU gettext.
24070 2003-10-19 Jim Meyering <jim@meyering.net>
24072 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
24075 2003-10-18 Karl Berry <karl@gnu.org>
24077 * config/config.guess: update from config.
24079 2003-10-16 Paul Eggert <eggert@twinsun.com>
24081 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
24082 (getgroups): First arg is int, not size_t.
24083 Don't let 'free' mangle errno.
24085 2003-10-16 Paul Eggert <eggert@twinsun.com>
24087 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
24089 2003-10-16 Karl Berry <karl@gnu.org>
24091 * config/config.{guess,sub}: update from config.
24093 2003-10-16 Jim Meyering <jim@meyering.net>
24095 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
24098 2003-10-15 Paul Eggert <eggert@twinsun.com>
24100 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
24101 (SIZE_MAX): Remove.
24102 (new_exclude, add_exclude_file): Initial size no longer needs to
24104 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
24105 our own address arithmetic overflow checking.
24107 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
24108 (fnmatch): Do not alloca more than 2000 wide characters;
24109 instead, use malloc for large buffers.
24110 Check for address arithmetic overflow, and return -1
24111 with errno set to ENOMEM in that case.
24112 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
24113 (NEW_PATTERN): Do not alloca more than 8000 bytes;
24114 instead, return -1. Check for address arithmetic overflow.
24116 2003-10-14 Paul Eggert <eggert@twinsun.com>
24118 Handle invalid suffixes and overflow independently, so that
24119 callers can treat them independently as needed. Fix some bugs in
24120 suffix handling, e.g., "100k@" was not diagnosed as an invalid
24121 suffix for a human-readable blocksize. The major caller-visible
24122 change is the addition of a new
24123 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
24124 that both overflow and suffix chars were found.
24126 * lib/human.c (humblock): Don't check separately for invalid suffix
24127 char; that is xstrtoumax's job (now that its bug is fixed).
24128 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
24129 INTMAX_MAX]: New macros.
24130 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
24131 TYPE_MAXIMUM): New macros.
24132 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
24133 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
24134 if overflow occurs, as it's what __strtol does and it's more useful
24136 (__xstrtol): If __strtol reports some error other than ERANGE,
24137 reflect it to the caller as LONGINT_INVALID. If it reports
24138 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
24139 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
24140 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
24142 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
24143 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
24144 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
24145 [defined UINTMAX_MAX]: New macros.
24147 2003-10-14 Bruno Haible <bruno@clisp.org>
24149 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
24151 2003-10-14 Bruno Haible <bruno@clisp.org>
24153 * m4/sig_atomic_t: New file, from GNU gettext.
24154 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
24156 2003-10-14 Bruno Haible <bruno@clisp.org>
24158 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
24159 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
24160 Also use volatile where needed.
24162 2003-10-12 Paul Eggert <eggert@twinsun.com>
24164 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
24165 Change maintainer from Bruno Haible to 'all'.
24167 2003-10-12 Paul Eggert <eggert@twinsun.com>
24169 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
24171 2003-10-12 Paul Eggert <eggert@twinsun.com>
24173 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
24174 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
24175 and define in terms of the other primitives.
24176 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
24177 (SIZE_MAX): Define if not already defined.
24178 (array_size_overflow): New function.
24179 (xalloc_die): Abort instead of exiting if 'error' returns.
24180 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
24181 (xmalloc, xrealloc): Use them.
24182 (xcalloc): Check for address arithmetic overflow.
24183 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
24184 a bit faster than strcpy.
24186 2003-10-10 Simon Josefsson <jas@extundo.com>
24188 * modules/argp (Depends-on): Add restrict and strcase.
24190 2003-10-10 Simon Josefsson <jas@extundo.com>
24192 * m4/argp.m4: Add AC_C_INLINE.
24194 2003-10-08 Paul Eggert <eggert@twinsun.com>
24196 Merge getpass from libc, plus a few fixes.
24198 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
24199 Include <stdbool.h>.
24200 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
24201 __fsetlocking to empty.
24202 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
24203 do include <bits/libc-lock.h>.
24204 Do not include <fcntl.h>; not needed.
24205 [_LIBC]: Include <wchar.h>.
24206 (NOTCANCEL_MODE): New macro.
24207 (flockfile, funlockfile) [_LIBC]: New macros.
24208 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
24209 [!_LIBC]: New macros.
24210 (call_fclose): New function.
24211 (getpass): Use it. Save tty stream separately; this simplifies the
24212 code and makes it more reliable if stdin happens to equal stdout.
24213 Invoke __fsetlocking on tty.
24214 Handle thread cancellation if needed.
24215 Namespace cleanup (use __tcgetattr, __getline).
24216 Use bool for Booleans.
24217 [USE_IN_LIBIO]: Handle wide streams.
24218 [!_LIBC]: Unconditionally do the fseek, since we don't know what
24219 stream might go where.
24221 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
24222 doesn't have to include <stdio.h> before us.
24223 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
24224 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
24225 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
24226 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
24227 if not declared, so that we can use getpass.c code from libc without
24229 (flockfile, ftrylockfile, funlockfile): New macros.
24231 2003-10-08 Paul Eggert <eggert@twinsun.com>
24233 * modules/getpass: Depend on stdbool.
24235 2003-10-08 Paul Eggert <eggert@twinsun.com>
24237 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
24239 2003-10-07 Karl Berry <karl@gnu.org>
24241 * config/config.{guess,sub}: update from config.
24243 2003-10-06 Jim Meyering <jim@meyering.net>
24244 Bruno Haible <bruno@clisp.org>
24246 This lets translators provide better translations for the
24247 "Written by ..." part of --version output.
24248 * lib/version-etc.h: Include stdarg.h.
24249 (version_etc_copyright): Declare as readonly.
24250 (version_etc): Make this function variadic with a NULL-terminated list
24251 of author name strings.
24252 (version_etc_va): New declaration.
24253 * lib/version-etc.c: Include stdarg.h, stdlib.h.
24254 (version_etc_copyright): Declare as readonly.
24255 (version_etc_va): New function. Provide a different translatable string
24256 for each possible number of authors < 10. Abbreviate when there are 10
24258 (version_etc): Make this function variadic. Call version_etc_va.
24259 Suggestion from Gary V. Vaughan.
24261 * lib/long-options.h (parse_long_options): Change prototype: the
24262 authors string is moved to the end and becomes variadic.
24263 * lib/long-options.c: Include stdarg.h.
24264 (parse_long_options): Make this function variadic, too.
24265 Call version_etc_va, not version_etc.
24267 2003-10-06 Bruno Haible <bruno@clisp.org>
24269 * modules/version-etc-2: Remove file.
24270 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
24272 2003-10-06 Bruno Haible <bruno@clisp.org>
24274 * modules/fatal-signal: New file.
24275 * MODULES.html.sh (func_all_modules): Add fatal-signal.
24277 2003-10-06 Bruno Haible <bruno@clisp.org>
24279 * m4/fatal-signal.m4: New file.
24280 * m4/signalblocking.m4: New file, from GNU gettext.
24282 2003-10-06 Bruno Haible <bruno@clisp.org>
24284 * lib/version-etc-2.h: Remove file.
24285 * lib/version-etc-2.c: Remove file.
24287 2003-10-06 Bruno Haible <bruno@clisp.org>
24289 * lib/fatal-signal.h: New file, from GNU gettext.
24290 * lib/fatal-signal.c: New file, from GNU gettext.
24292 2003-10-05 Paul Eggert <eggert@twinsun.com>
24294 * README: Rework advice for preventing empty .o files.
24295 Don't recommend ELIDE constructs. Recommend <stddef.h>,
24298 2003-10-04 Karl Berry <karl@gnu.org>
24300 * lib/argp*: update from libc.
24302 2003-10-04 Karl Berry <karl@gnu.org>
24304 * config/config.{guess,sub}: update from config.
24306 2003-10-02 Bruno Haible <bruno@clisp.org>
24308 * modules/lchown (Include): Add lchown.h.
24309 * modules/time_r (Include): Use "..." syntax.
24310 * modules/xgetdomainname (Include): Add xgetdomainname.h.
24312 2003-10-01 Simon Josefsson <jas@extundo.com>
24314 * MODULES.html.sh (func_all_modules): Move gethostname from section
24315 'based on' to section 'lacking' POSIX:2001.
24317 2003-10-01 Larry Jones <lawrence.jones@eds.com>
24319 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
24320 to output mode on the same stream.
24322 2003-09-29 Paul Eggert <eggert@twinsun.com>
24324 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
24325 Fix arg typo in previous patch.
24327 2003-09-28 Jim Meyering <jim@meyering.net>
24329 * lib/error.c: Correct cpp indentation.
24331 2003-09-27 Paul Eggert <eggert@twinsun.com>
24333 * modules/free: New file.
24335 2003-09-27 Paul Eggert <eggert@twinsun.com>
24337 * m4/free.m4: New file.
24339 2003-09-27 Paul Eggert <eggert@twinsun.com>
24341 * lib/minmax.h (MIN, MAX)
24342 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
24343 Omit the special code that used __typeof__, since we worry that
24344 it could be more trouble than it's worth. See:
24345 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
24346 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
24348 * lib/free.c: New file.
24350 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
24352 Trivial fixes to Makefile.am parts of module listings.
24353 * modules/strstr: Append strstr.h to lib_SOURCES.
24354 * modules/strcase: Likewise, for strcase.h.
24356 2003-09-27 Karl Berry <karl@gnu.org>
24358 * config/mkinstalldirs: update from automake.
24360 2003-09-26 Paul Eggert <eggert@twinsun.com>
24362 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
24363 (error_tail): Do not loop, reallocating temporary buffer, since
24364 the output cannot contain more wide characters than the input
24365 contains bytes, the size must be big enough already. This avoids
24366 one potential size overflow calculation. Check for size overflow
24367 when calculating temporary buffer size. Free temporary buffer
24368 when done, if it was allocated with malloc; this plugs a memory
24369 leak. Remove casts from void * to pointers, that are no longer
24370 needed now that we're assuming C89 or better.
24372 Merge error changes from glibc.
24374 * lib/error.c, error.h: Update copyright notice header to match glibc.
24375 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
24376 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
24377 Disable cancellation while printing error.
24378 * lib/error.h: Prepend __ to parameter names.
24380 2003-09-26 Jim Meyering <jim@meyering.net>
24382 * lib/error.c (error_tail): Move some declarations
24383 into inner scope where the local variables are used.
24385 2003-09-26 Bruno Haible <bruno@clisp.org>
24387 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
24389 Don't define stpncpy through config.h; it's now done through stpncpy.h.
24391 2003-09-26 Bruno Haible <bruno@clisp.org>
24393 * lib/stpncpy.h (gnu_stpncpy): New declaration.
24394 (stpncpy): Define as alias for gnu_stpncpy.
24395 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
24397 2003-09-25 Simon Josefsson <jas@extundo.com>
24399 * lib/xgetdomainname.h: New file.
24400 * lib/xgetdomainname.c: New file.
24402 2003-09-25 Simon Josefsson <jas@extundo.com>
24403 Bruno Haible <bruno@clisp.org>
24405 * modules/getdomainname: New file.
24406 * modules/xgetdomainname: New file.
24407 * MODULES.html.sh (func_all_modules): Add getdomainname,
24410 2003-09-25 Simon Josefsson <jas@extundo.com>
24411 Bruno Haible <bruno@clisp.org>
24413 * m4/getdomainname.m4: New file.
24415 2003-09-25 Simon Josefsson <jas@extundo.com>
24416 Bruno Haible <bruno@clisp.org>
24418 * lib/getdomainname.h: New file.
24419 * lib/getdomainname.c: New file.
24421 2003-09-25 Karl Berry <karl@gnu.org>
24423 * lib/argp-fmtstream.c, argp-help.c: update from libc.
24425 2003-09-25 Karl Berry <karl@gnu.org>
24427 * config/install-sh: update from automake.
24429 2003-09-25 Bruno Haible <bruno@clisp.org>
24431 * modules/version-etc-2: New file, from modules/version-etc with
24433 * MODULES.html.sh (func_all_modules): Add version-etc-2.
24435 2003-09-25 Bruno Haible <bruno@clisp.org>
24437 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
24438 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
24440 2003-09-24 Simon Josefsson <jas@extundo.com>
24442 * modules/xgethostname: Add xgethostname.h.
24444 2003-09-24 Paul Eggert <eggert@twinsun.com>
24446 * lib/linebuffer.c (freebuffer): Don't free the argument, just
24447 the buffer associated with the argument. Bug reported by
24450 2003-09-24 Paul Eggert <eggert@twinsun.com>
24452 * README: Document assumptions that 'int' is at least 32 bits
24453 wide, that integer arithmetic is 2's complement without overflow,
24454 that there are no holes in integer values, that adding sizes of
24455 two nonoverlapping objects can't overflow, and that all-bits-zero
24456 yields scalar zero. Fix spelling and capitalization typos.
24458 2003-09-19 Karl Berry <karl@gnu.org>
24460 * lib/argp.h: update from libc.
24462 2003-09-17 Paul Eggert <eggert@twinsun.com>
24464 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
24465 to avoid spurious warnings like "AC_RUN_IFELSE was called before
24466 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
24468 2003-09-17 Paul Eggert <eggert@twinsun.com>
24470 * gnulib-tool: Use "test -h", not "test -L", for portability
24471 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
24472 (tags_regexp): Remove, since \| doesn't conform to POSIX.
24473 (sed_extract_prog): Issue s commands one-by-one, rather than
24474 using \| in one s command.
24476 2003-09-16 Paul Eggert <eggert@twinsun.com>
24478 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
24479 input error, instead of returning NULL the next time we are called
24480 (and therefore losing track of errno).
24482 2003-09-16 Bruno Haible <bruno@clisp.org>
24484 * gnulib-tool (func_create_testdir): Warn about duplicated
24487 2003-09-15 Paul Eggert <eggert@twinsun.com>
24489 * modules/argmatch, modules/fatal, modules/obstack,
24490 modules/xalloc, modules/xgethostname: Sort dependencies by
24491 importance, not alphabetically.
24493 2003-09-15 Paul Eggert <eggert@twinsun.com>
24495 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
24496 fails, so that the caller gets the proper errno.
24498 * lib/readutmp.c (read_utmp): Likewise.
24499 Check for fstat error. Close stream and free storage
24502 2003-09-14 Karl Berry <karl@gnu.org>
24504 * config/srclist.txt (strdup.c): disable for c89 changes.
24506 2003-09-14 Jim Meyering <jim@meyering.net>
24508 * lib/getloadavg.c: Correct cpp indentation.
24509 * lib/strdup.c: Likewise.
24510 * lib/vasnprintf.c: Likewise.
24512 2003-09-14 Bruno Haible <bruno@clisp.org>
24514 * modules/fwriteerror: New file.
24515 * MODULES.html.sh (func_all_modules): Add fwriteerror.
24517 2003-09-14 Bruno Haible <bruno@clisp.org>
24519 * lib/fwriteerror.h: New file.
24520 * lib/fwriteerror.c: New file.
24522 2003-09-12 Paul Eggert <eggert@twinsun.com>
24524 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
24525 modules/xgethostname, modules/xalloc: Depend on exit.
24527 2003-09-12 Paul Eggert <eggert@twinsun.com>
24529 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
24531 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
24532 and AC_MINIX, too, so that their extensions are available.
24534 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
24535 This macro has been superseded by gl_BACKUPFILE.
24537 More patches to assume C89 or better.
24539 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
24541 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
24543 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
24544 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
24545 Include <string.h>, <stdlib.h> unconditionally.
24546 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
24547 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
24548 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
24549 headers or for string.h.
24550 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
24553 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
24555 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
24556 * m4/userspec.m4 (gl_USERSPEC): Likewise.
24557 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
24558 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
24559 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
24560 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
24562 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
24563 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
24564 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
24566 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
24567 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
24568 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
24571 2003-09-12 Paul Eggert <eggert@twinsun.com>
24573 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
24574 * lib/obstack.c [!defined _LIBC]: Likewise.
24575 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
24576 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
24577 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
24579 More changes to assume C89 or better.
24581 * lib/error.c (error_tail): Assume vprintf.
24583 * lib/argmatch.c (getenv): Remove decl.
24584 * lib/progreloc.c (get_full_program_name): Define via prototype.
24585 * lib/setenv.c (clearenv): Likewise.
24586 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
24588 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
24589 (malloc, memcpy): Remove decls.
24590 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
24591 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
24592 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
24593 (memcpy): Remove macro.
24594 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
24595 (__P): Remove. All uses removed.
24596 (PTR): Remove. All uses changed to void *.
24597 (CHAR_BIT, NULL): Remove.
24598 (spaces, zeros, memset_space, memset_zero)
24599 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
24601 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
24602 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
24603 Define with prototype.
24604 Remove now-unnecessary prototype decl.
24605 (extra_args_spec): Assume ANSI C. All uses changed.
24606 (extra_args_spec_iso): Remove.
24607 (my_strftime, emacs_strftimeu): Define via prototype.
24608 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
24610 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
24611 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
24612 (strtoul, strtol): Remove decls.
24613 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
24615 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
24616 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
24617 (LOCALE_PARAM_PROTO): New macro.
24618 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
24619 (INTERNAL (strtol), strtol): Define with a prototype.
24620 (PARAMS): Remove. All uses removed.
24621 * lib/tempname.c: Include <string.h> unconditionally.
24622 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
24623 * lib/xgethostname.c (main): Define with a prototype.
24624 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
24625 Include <stdlib.h> unconditionally.
24626 (calloc, malloc, realloc, free): Remove decls.
24627 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
24628 Include <stdlib.h> unconditionally. Sort include file names.
24630 (xstrtod): Define with a prototype.
24631 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
24632 (strtol, strtoul): Remove decls.
24634 2003-09-11 Paul Eggert <eggert@twinsun.com>
24636 More patches to assume C89 or better.
24637 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
24638 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
24639 string.h, memchr, STDC_HEADERS.
24641 2003-09-11 Paul Eggert <eggert@twinsun.com>
24643 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
24644 Include <stdlib.h>, <string.h> unconditionally.
24645 Remove now-unnecessary cast to char *.
24646 * lib/strnlen.c: Include <string.h> unconditionally.
24647 * lib/yesno.c (yesno): Define with a prototype.
24649 2003-09-11 Bruno Haible <bruno@clisp.org>
24651 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
24653 2003-09-10 Jim Meyering <jim@meyering.net>
24655 * lib/error.c: Correct indentation of cpp directives.
24657 2003-09-10 Bruno Haible <bruno@clisp.org>
24659 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
24660 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
24661 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
24662 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
24663 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
24664 <stdlib.h> and <string.h> checks.
24665 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
24666 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
24668 2003-09-10 Bruno Haible <bruno@clisp.org>
24670 * lib/strcspn.c: Include <string.h> unconditionally.
24671 * lib/strpbrk.c: Include <string.h> unconditionally.
24672 * lib/strstr.c: Include <string.h> unconditionally.
24673 * lib/unicodeio.c: Include <string.h> unconditionally.
24674 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
24675 * lib/unsetenv.c: Likewise.
24676 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
24677 * lib/yesno.c: Include <stdlib.h> unconditionally.
24678 (rpmatch): Add prototype.
24680 2003-09-09 Paul Eggert <eggert@twinsun.com>
24682 More patches to assume C89 or better.
24683 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
24684 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
24685 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
24687 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
24689 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
24691 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
24693 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
24694 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
24695 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
24697 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
24698 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
24700 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
24702 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
24703 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
24704 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
24705 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
24706 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
24707 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
24709 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
24710 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
24711 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
24712 C headers, or for string.h.
24713 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
24714 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
24715 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
24716 headers, memory.h, stdlib.h, string.h, strings.h.
24717 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
24718 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
24719 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
24721 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
24722 headers, memory.h, string.h.
24723 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
24724 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
24726 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
24728 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
24729 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
24730 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
24731 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
24732 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
24734 2003-09-09 Paul Eggert <eggert@twinsun.com>
24738 * lib/acosl.c (main): Use a prototype.
24739 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
24742 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
24744 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
24745 (getopt, etopt_long, getopt_long_only, _getopt_internal)
24746 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
24748 * lib/getopt.c (const): Remove macro.
24749 Include <string.h> unconditionally.
24750 (my_index): Remove; all uses changed to strchr.
24751 (strlen): Remove decl.
24752 (exchange): Remove forward decl; no longer needed.
24753 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
24754 Define with prototype.
24755 * lib/getopt1.c (const): Remove macro.
24756 (getopt_long, getopt_long_only, main): Define with prototype.
24758 * lib/getugroups.c: Include <string.h> unconditionally.
24760 * lib/getusershell.c: Include <stdlib.h> unconditionally.
24761 (getusershell, setusershell, endusershell, readname, main):
24762 Define with prototypes.
24764 * lib/group-member.c: Include group-member.h first.
24765 Include <stdlib.h> unconditionally.
24767 * lib/hard-locale.c: Include hard-locale.h first.
24768 Include <stdlib.h>, <string.h> unconditionally.
24770 * lib/hash.c (free, malloc): Remove decls.
24771 Include <stdlib.h> unconditionally.
24773 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
24774 (getenv): Do not declare.
24776 * lib/idcache.c: Include <string.h> unconditionally.
24778 * lib/long-options.c: Include long-options.h first, to test interface.
24779 Include <stdlib.h> unconditionally.
24781 * lib/makepath.c: Include makepath.h first, to test interface.
24782 Include <stdlib.h> and <string.h> unconditionally.
24784 * lib/linebuffer.c: Include <stdlib.h>.
24785 (free): Remove decl.
24787 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
24788 stddef.h. rpl_malloc returns void *, not char *.
24789 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
24792 * lib/md5.h: Include <limits.h> unconditionally.
24793 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
24794 (__P): Remove; all uses removed.
24795 * lib/md5.c: Include "md5.h" first.
24796 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
24797 md5_buffer, md5_process_bytes, md5_process_block):
24798 Define with prototypes.
24799 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
24800 * lib/sha.c: Include "sha.h" first.
24801 Include <stdlib.h>, <string.h> unconditionally.
24803 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
24804 * lib/memcmp.c (__ptr_t): Likewise.
24805 * lib/memrchr.c (__ptr_t): Likewise.
24806 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
24807 Include <string.h> unconditionally.
24808 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
24809 * lib/memchr.c: Include <stdlib.h> unconditionally.
24810 * lib/memchr.c (LONG_MAX): Remove.
24811 * lib/memrchr.c (LONG_MAX): Likewise.
24812 * lib/memchr.c (__memchr): Define via a prototype.
24813 * lib/memrchr.c (__memrchr): Likewise.
24814 * lib/memcmp.c (__P): Remove, and remove all uses.
24815 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
24816 Remove forward decls; no longer needed.
24817 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
24818 Use types required by C89 in prototype.
24820 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
24821 * lib/savedir.c: Likewise.
24822 * lib/mkdir.c (free): Remove decl.
24823 * lib/rmdir.c (rmdir): Define with a prototype.
24824 * lib/savedir.c: Include savedir.h first, to test interface.
24826 * lib/mktime.c (STDC_HEADERS): Remove.
24827 Include <stdlib.h>, <string.h> unconditionally.
24829 * lib/modechange.c: Include <stdlib.h> unconditionally.
24830 (malloc): Remove decl.
24832 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
24833 (free): Remove decl.
24835 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
24836 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
24837 (This type really should be intptr_t, but that's a C99ism.)
24838 (_obstack_memcpy): Remove: all uses changed to memcpy.
24839 Include <string.h> unconditionally.
24840 (struct obstack): Assume __STDC__ for types of members
24841 chunkfun, freefun, extra_arg.
24842 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
24843 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
24844 obstack_begin, obstack_specify_allocation,
24845 obstack_specify_allocation_with_arg, obstack_chunkfun,
24846 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
24847 Remove unprototyped decls and the macros that use them.
24848 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
24849 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
24850 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
24851 (defined __STDC__ && __STDC__)]:
24852 Remove nonprototyped code.
24853 Include <stdlib.h> unconditionally.
24854 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
24855 _obstack_allocated_p, _obstack_free, obstack_free,
24856 _obstack_memory_used, print_and_abort):
24857 Define using prototypes.
24858 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
24859 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
24860 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
24861 obstack_next_free, obstack_object_size, obstack_room) [0]:
24862 Remove unused, unprototyped code.
24864 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
24866 * lib/physmem.c (physmem_total, physmem_available, main): Define
24869 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
24870 (main): Define with a prototype.
24872 * lib/posixver.c (getenv): Remove decl.
24874 * lib/putenv.c (malloc): Returns void *, not char *.
24875 Include <string.h> unconditionally.
24876 (strchr, memcpy, NULL): Do not define.
24878 * lib/readtokens.c: Include readtokens.h first, to test interface.
24879 Include <stdlib.h>, <string.h> unconditionally.
24880 (init_tokenbuffer): Define with a prototype.
24882 * lib/regex.c (PARAMS): Remove. All uses removed.
24883 All uses of _RE_ARGS removed, too.
24884 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
24886 (bzero): Assume memset exists.
24887 (memcmp, memcpy, NULL): Remove.
24888 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
24889 char, or assignments to local vars of type signed char.
24890 (init_syntax_once, PREFIX(extract_number_and_incr),
24891 PREFIX(print_partial_compiled_pattern),
24892 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
24893 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
24894 PREFIX(regex_grow_registers), PREFIX(regex_compile),
24895 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
24896 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
24897 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
24898 wcs_compile_range, byte_compile_range, truncate_wchar,
24899 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
24900 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
24901 count_mbs_length, wcs_re_match_2_internal,
24902 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
24903 PREFIX(alt_match_null_string_p),
24904 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
24905 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
24906 regfree, PREFIX(extract_number)): Define with prototype. Remove
24907 now-unnecessary declaration, if any.
24908 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
24910 Remove now-unnecessary casts among pointer types.
24911 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
24913 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
24914 (free): Remove decl.
24916 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
24918 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
24919 (free): Remove decl.
24921 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
24922 * lib/xgetcwd.c: Likewise.
24924 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
24925 (free): Remove decl.
24927 * lib/strchrnul.c (strchrnul): Define with a prototype.
24928 Fix bug: c_in was not converted to char before searching.
24930 The following changes are not K&R related:
24932 * lib/group-member.h: Include <sys/types.h>, so that this file is
24934 * lib/makepath.h: Likewise.
24936 * lib/getusershell.c (readname, default_index, line_size, readname):
24937 Use size_t, not int, for sizes.
24938 (readname): If the size overflows, report an error instead of
24941 2003-09-09 Paul Eggert <eggert@twinsun.com>
24943 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
24946 2003-09-09 Paul Eggert <eggert@twinsun.com>
24948 * README: New section: portability guidelines.
24950 2003-09-09 Derek Robert Price <derek@ximbiot.com>
24952 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
24955 2003-09-09 Derek Robert Price <derek@ximbiot.com>
24957 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
24959 2003-09-08 Paul Eggert <eggert@twinsun.com>
24961 Assume C89 or better; remove K&R cruft.
24962 A few of these changes were first proposed by Derek Robert Price
24963 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
24965 * lib/addext.c: Include <string.h> unconditionally.
24966 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
24967 Don't declare getenv or malloc.
24969 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
24970 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
24972 (find_stack_direction, alloca): Use prototypes.
24974 * lib/atexit.c (atexit): Define using a prototype.
24976 * lib/basename.c, dirname.c, stripslash.c:
24977 Include <string.h> unconditionally.
24979 * lib/bcopy.c: Include <stddef.h>.
24980 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
24982 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
24984 * lib/error.h (error, error_at_line, error_print_progname)
24985 [! (defined (__STDC__) && __STDC__)]: Remove decls.
24986 * lib/error.c: Include error.h first, to check interface.
24987 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
24988 (VA_START): Remove; all uses changeed to va_start.
24989 (exit, strerror): Remove decls.
24990 (error_print_progname): Prototype uncondionally.
24991 Don't include <errno.h>; no longer needed.
24992 (private_strerror): Remove.
24993 (error_tail): Always define.
24994 (error, error_at_line): Assume C89 or better; always use prototypes.
24995 * lib/fatal.c: Include "fatal.h" first, to test interface.
24996 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
24997 (VA_START): Remove; all uses changed to va_start.
24998 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
25000 (exit): Remove decl.
25001 (fatal): Prototype unconditionally. Assume va_start works.
25002 Abort at end, to pacify gcc.
25004 * lib/euidaccess.c (main): Define with a prototype.
25006 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
25008 * lib/exitfail.c: Include <stdlib.h> unconditionally.
25010 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
25012 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
25013 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
25014 (getenv): Remove decl.
25015 (fnmatch): Define using a prototype.
25016 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
25017 (FCT): Define using a prototype.
25019 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
25021 * lib/gethostname.c: Include <stddef.h>.
25022 (gethostname): Define with prototype. Length is size_t, not int.
25024 2003-09-08 Paul Eggert <eggert@twinsun.com>
25026 Assume C89 or better; remove K&R cruft.
25027 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
25028 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
25029 string.h, getenv, malloc.
25030 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
25032 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
25033 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
25034 do not check for strerror.
25035 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
25036 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
25037 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
25038 do not check for doprnt or vprintf.
25039 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
25040 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
25042 2003-09-08 Paul Eggert <eggert@twinsun.com>
25044 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
25045 getversion.c should have been removed then, but was accidentally
25048 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
25049 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
25051 2003-09-08 Karl Berry <karl@gnu.org>
25053 * config/config.sub, config.guess, srclistvars.sh: update from savannah
25054 config, forget about prep.
25056 * config/depcomp, missing: update from automake.
25058 2003-09-07 Paul Eggert <eggert@twinsun.com>
25060 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
25061 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
25063 2003-09-07 Paul Eggert <eggert@twinsun.com>
25065 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
25066 copy_tm_result. Bug reported by Simon Josefsson in
25067 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
25069 2003-09-06 Paul Eggert <eggert@twinsun.com>
25071 * m4/time_r.m4: New file.
25072 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
25073 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
25074 is. Check for timegm declaration.
25075 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
25076 Do not check for gmtime_r.
25077 Replace mktime if __mktime_internal does not exist and if mktime
25078 hasn't been replaced already.
25080 2003-09-06 Paul Eggert <eggert@twinsun.com>
25082 * lib/time_r.c, lib/time_r.h: New files.
25084 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
25086 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
25087 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
25089 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
25091 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
25092 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
25093 Include <time_r.h>.
25095 * lib/timegm.c: Switch to glibc implementation, with the following
25097 [defined HAVE_CONFIG_H]: Include <config.h>.
25098 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
25099 (__mktime_internal) [!defined _LIBC]: New decl.
25100 (__gmtime_r) [!defined _LIBC]: New macro and function.
25101 (timegm): Use a prototype, since gnulib assumes C89.
25102 Do not bother declaring tmp to be const, as it's not really usefu.
25103 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
25104 (timegm): Declare only if HAVE_DECL_TIMEGM.
25106 2003-09-06 Paul Eggert <eggert@twinsun.com>
25108 * MODULES.html.sh (func_all_modules): Add time_r.
25109 * modules/time_r: New file.
25110 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
25111 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
25113 2003-09-03 Paul Eggert <eggert@twinsun.com>
25115 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
25116 Bug reported by Lute Kamstra in
25117 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
25119 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
25120 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
25121 course with correspondingly smaller numbers for tomorrow and
25122 yesterday. From Tadayoshi Funaba. Originally installed into
25123 sh-utils on 1999-08-07, but the patch got lost (I guess during the
25126 2003-08-31 Simon Josefsson <jas@extundo.com>
25128 * modules/timegm: New file.
25129 * MODULES.html.sh (func_all_modules): Add timegm.
25131 2003-08-31 Simon Josefsson <jas@extundo.com>
25133 * m4/timegm.m4: New file.
25135 2003-08-31 Simon Josefsson <jas@extundo.com>
25137 * lib/timegm.h: New file.
25138 * lib/timegm.c: New file. Based on
25139 wget-1.8.2/src/http.c:mktime_from_utc.
25141 2003-08-31 Karl Berry <karl@gnu.org>
25143 * lib/argp.h: update from libc.
25145 2003-08-28 Bruno Haible <bruno@clisp.org>
25147 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
25148 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
25149 followed by '#define fnmatch fnmatch_posix' gives an error.
25151 2003-08-28 Bruno Haible <bruno@clisp.org>
25153 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
25154 warning on QNX, which defines O_BINARY to 000000.
25156 2003-08-27 Jim Meyering <jim@meyering.net>
25158 * m4/mkstemp.m4: Require that the system mkstemp be able to create
25159 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
25160 would fail after 32. Reported by Danny Levinson. Details here:
25161 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
25163 2003-08-24 Bruno Haible <bruno@clisp.org>
25165 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
25166 MSVC7 <stdio.h> is included later.
25168 2003-08-22 Simon Josefsson <jas@extundo.com>
25170 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
25172 2003-08-20 Karl Berry <karl@gnu.org>
25174 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
25176 2003-08-20 Bruno Haible <bruno@clisp.org>
25178 * modules/progname: New file.
25179 * MODULES.html.sh (func_all_modules): Add progname.
25181 2003-08-20 Bruno Haible <bruno@clisp.org>
25183 * lib/progname.h: New file, from GNU gettext.
25184 * lib/progname.c: New file, from GNU gettext.
25185 * lib/progreloc.c: New file, from GNU gettext.
25187 2003-08-19 Jim Meyering <jim@meyering.net>
25189 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
25190 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
25192 2003-08-19 Bruno Haible <bruno@clisp.org>
25194 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
25197 2003-08-19 Bruno Haible <bruno@clisp.org>
25199 * lib/xstrdup.c: Assume <string.h> exists.
25201 2003-08-18 Paul Eggert <eggert@twinsun.com>
25203 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
25206 2003-08-18 Jim Meyering <jim@meyering.net>
25208 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
25209 * m4/lib-ld.m4: Likewise.
25211 2003-08-18 Jim Meyering <jim@meyering.net>
25213 * lib/setenv.h: Indent nested cpp directive.
25214 * lib/vasnprintf.c: Remove trailing blanks.
25216 2003-08-17 Simon Josefsson <jas@extundo.com>
25218 * modules/xstrndup: New file.
25219 * MODULES.html.sh (func_all_modules): Add xstrndup.
25221 2003-08-17 Simon Josefsson <jas@extundo.com>
25223 * modules/argp: Fix autoconf macro name. Add more dependencies.
25225 2003-08-17 Simon Josefsson <jas@extundo.com>
25227 * m4/xstrndup.m4: New file.
25229 2003-08-17 Simon Josefsson <jas@extundo.com>
25231 * m4/argp.m4: New file.
25233 2003-08-17 Simon Josefsson <jas@extundo.com>
25234 Bruno Haible <bruno@clisp.org>
25236 * lib/xstrndup.h: New file.
25237 * lib/xstrndup.c: New file.
25239 2003-08-17 Bruno Haible <bruno@clisp.org>
25241 * modules/strndup (Files, Include): Add lib/strndup.h.
25243 2003-08-17 Bruno Haible <bruno@clisp.org>
25245 * modules/euidaccess (Files): Add lib/euidaccess.h.
25247 2003-08-17 Bruno Haible <bruno@clisp.org>
25249 * lib/strndup.h: New file.
25251 2003-08-17 Bruno Haible <bruno@clisp.org>
25253 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
25254 like AC_GNU_SOURCE.
25255 * modules/extensions (configure.ac): Comment out the invocation of
25256 gl_USE_SYSTEM_EXTENSIONS.
25258 2003-08-16 Paul Eggert <eggert@twinsun.com>
25260 Merges from coreutils, etc.
25261 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
25262 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
25263 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
25265 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
25266 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
25268 2003-08-16 Paul Eggert <eggert@twinsun.com>
25270 Document merge from coreutils.
25271 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
25272 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
25273 * modules/utime: Add m4/utimes-null.m4.
25275 2003-08-16 Paul Eggert <eggert@twinsun.com>
25277 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
25278 space, undoing this 2003-08-12 change:
25279 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
25281 2003-08-16 Paul Eggert <eggert@twinsun.com>
25283 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
25284 strtoul.c from libc, undoing this 2003-08-12 change:
25285 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
25287 2003-08-16 Jim Meyering <jim@meyering.net>
25289 Merges from coreutils.
25290 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
25291 prefix. Adjust cache variables similarly. Create 500 rather than
25292 just 300 files, to exercise bug on Darwin6.5, too.
25293 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
25295 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
25296 AM_SYS_POSIX_TERMIOS.
25297 Reported by mkc@mathdogs.com.
25298 Also change use of $am_cv_sys_posix_termios
25299 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
25300 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
25301 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
25302 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
25303 in /proc/mounts until it finds one with matching device number. This
25304 is unnecessary when the FILE argument *is* a mount point. No stat call
25305 is necessary in that case. So, disable the statvfs-testing code on
25306 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
25307 as RedHat bug# 84846.
25308 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
25309 to 1MB, so as not to render systems with no stack size limit (e.g.,
25310 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
25311 Include <unistd.h>. On some systems,
25312 it is required for the definition of _SC_PAGESIZE.
25314 2003-08-16 Jim Meyering <jim@meyering.net>
25316 Merge from coreutils.
25317 * lib/xstrtoimax.c: #else #if -> #elif.
25318 * lib/xstrtoumax.c: Likewise.
25320 2003-08-16 Jim Meyering <jim@meyering.net>
25322 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
25323 * m4/utimes.m4: Removed.
25324 * m4/utimes-null.m4: Renamed from utimes.m4.
25326 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
25327 to 1MB, so as not to render systems with no stack size limit (e.g.,
25328 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
25329 Include <unistd.h>. On some systems,
25330 it is required for the definition of _SC_PAGESIZE.
25332 2003-08-16 Jim Meyering <jim@meyering.net>
25333 and Paul Eggert <eggert@cs.ucla.edu>
25335 Merges from coreutils, etc.
25337 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
25338 using the latest version from cvs. This avoids problems with #line
25339 directives using a vendor (Sun) compiler.
25340 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
25341 Don't set GETGROUPS_LIB here; now it's
25342 done via getgroups.m4's wrapper function.
25343 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
25344 rather than just in sh-util/configure.in, so that the
25345 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
25347 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
25348 AC_FUNC_GETLOADAVG where to find getloadavg.c.
25349 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
25350 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
25351 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
25352 Remove code that is now done by the newly-required macros.
25353 Append $(EXEEXT) to DF_PROG.
25354 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
25355 Do not invoke or require the following here,
25356 since prereq.m4 or some gnulib .m4 now does this for us:
25357 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
25358 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
25359 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
25360 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
25361 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
25362 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
25363 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
25365 Do not replace the following functions, as this is now the job
25366 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
25367 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
25368 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
25369 atexit getpass, strdup, getpagesize.
25371 Do not check for the following functions, as this is now the job
25372 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
25373 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
25375 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
25376 Check for sys/sysctl.h.
25377 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
25378 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
25379 of checking for ssize_t ourselves.
25381 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
25382 Require every macro that gnulib/modules/* suggests for us.
25383 (jm_PREREQ_ADDEXT): New macro.
25384 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
25385 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
25387 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
25388 (gl_PHYSMEM): Use it.
25389 Also check for `table' function.
25390 Check for new headers and functions.
25391 Add check for sys/sysmp.h.
25392 With suggestions from Kaveh Ghazi.
25393 Ignore headers that are present but cannot be compiled. This
25394 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
25397 2003-08-15 Paul Eggert <eggert@twinsun.com>
25399 Document merge from coreutils.
25400 * modules/userspec: Depend on posixver.
25401 * modules/strftime: Depend on tzset.
25403 2003-08-15 Paul Eggert <eggert@twinsun.com>
25405 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
25406 rather than tab, after '#' in shell-script copyright notices.
25407 Suggested by Bruno Haible.
25409 2003-08-15 Paul Eggert <eggert@twinsun.com>
25411 * config/srclist-update: Use three spaces, rather than tab, after '#'
25412 in shell-script copyright notices. Suggested by Bruno Haible.
25413 Remove unnecessary parenthesization in regular expression.
25415 2003-08-15 Jim Meyering <jim@meyering.net>
25417 Merge from coreutils.
25418 * lib/xgethostname.c: Include <stdlib.h>.
25419 (xghostname): Don't exit for anything other than memory-related
25420 failure; just return NULL.
25421 * lib/userspec.c: Include "posixver.h".
25422 (parse_user_spec): Accept `.' as a separator only
25423 in pre-POSIX-200112 mode.
25424 * lib/strtoimax.c: Use #elif rather than #else #if.
25425 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
25426 Remove function, now that we can rely on a working tzset function.
25427 [!_LIBC]: Ensure that the required autoconf test has been run.
25428 [!defined _NL_CURRENT && HAVE_STRFTIME]:
25429 Use underlying_strftime for %r.
25430 * lib/sha.c: Merge in some clean-up and optimization changes from
25432 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
25433 Ensure that it is a multiple of 64.
25434 Rearrange loop exit tests so as to avoid performing an
25435 additional fread after encountering an error or EOF.
25436 * lib/realloc.c: Update copyright date.
25438 2003-08-15 Jim Meyering <jim@meyering.net>
25439 and Paul Eggert <eggert@twinsun.com>
25441 Merge from coreutils.
25442 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
25443 member but strut utmpx does not. Needed for AIX 4.3.3.
25444 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
25446 2003-08-15 Jim Meyering <jim@meyering.net>
25447 and Paul Eggert <eggert@cs.ucla.edu>
25449 Merges from coreutils, etc.
25450 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
25451 Require gl_FUNC_TZSET_CLOBBER.
25452 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
25453 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
25456 2003-08-14 Paul Eggert <eggert@twinsun.com>
25458 Help the merge from coreutils.
25459 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
25460 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
25461 * m4/tzset.m4: Use it too.
25463 2003-08-14 Paul Eggert <eggert@twinsun.com>
25465 * modules/tzset: New file.
25467 2003-08-14 Jim Meyering <jim@meyering.net>
25469 Merges from coreutils.
25470 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
25471 variable names, rather than @FNMATCH_H@.
25472 * modules/alloca: Likewise for $(ALLOCA_H).
25474 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
25475 the three copies of the literal target, `fnmatch.h'.
25476 * modules/alloca (alloca.h): Likewise.
25478 2003-08-14 Jim Meyering <jim@meyering.net>
25480 Merge from coreutils.
25481 * m4/tzset.m4: New file.
25482 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
25483 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
25484 otherwise, AIX 5.1 systems would end up using the latter.
25485 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
25486 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
25487 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
25488 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
25490 2003-08-14 Jim Meyering <jim@meyering.net>
25492 Merge from coreutils.
25493 * lib/obstack.h: Whitespace changes.
25494 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
25495 and xcalloc return values.
25496 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
25497 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
25498 hang on OSF/1 5.1 for DIR on both local and remote file systems.
25499 Reported by (and fix confirmed by) Nelson H. F. Beebe.
25500 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
25502 Use mntctl's return value to drive the entry-processing loop, since
25503 we can't rely on the value of the vmt_length member in the last
25504 entry. On some systems doing so could result in exhausting
25505 virtual memory. Based in part on a patch from Mike Jetzer.
25507 2003-08-14 Jim Meyering <jim@meyering.net>
25508 and Paul Eggert <eggert@twinsun.com>
25510 Merges from coreutils, plus other fixes.
25511 * lib/physmem.c: Merge in portability changes from gcc/libiberty
25512 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
25513 for credits and details. Thanks to Kaveh Ghazi for helping
25514 to keep these files in sync.
25515 (ARRAY_SIZE): Define it.
25516 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
25517 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
25518 (memcasecmp): Don't assume size_t fits in unsigned int.
25519 Remove casts and duplicate code.
25520 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
25521 (memcpy): Remove definition.
25522 Merge in some clean-up and optimization changes from glibc.
25523 [BLOCKSIZE]: Move definition to top of file.
25524 Ensure that it is a multiple of 64.
25525 Rearrange loop exit tests so as to avoid performing an
25526 additional fread after encountering an error or EOF.
25527 * lib/md5.h (md5_uintptr): Define.
25528 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
25529 return to the initial working directory. Preserve errno
25531 * lib/idcache.c: Include "xalloc.h".
25532 (xmalloc, xrealloc): Remove decls.
25533 (getuser): Remove casts no longer required in C89.
25534 * lib/human.c: Include stdio.h, for sprintf.
25535 * lib/group-member.c: Include "xalloc.h".
25536 (xmalloc, xrealloc): Remove decls.
25537 (get_group_info): Remove casts no longer required in C89.
25538 * lib/getusershell.c (readname): Remove casts no longer required in
25540 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
25541 * lib/getline.c: Whitespace fix, from coreutils.
25543 2003-08-13 Paul Eggert <eggert@twinsun.com>
25545 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
25548 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
25549 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
25550 Undo previous (whitespace-only) change.
25552 2003-08-13 Paul Eggert <eggert@twinsun.com>
25554 * lib/exclude.c: Include <ctype.h>
25555 (IN_CTYPE_DOMAIN): New macro.
25556 (is_space): New fn.
25557 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
25560 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
25561 Undo previous (whitespace-only) change.
25563 2003-08-13 Paul Eggert <eggert@twinsun.com>
25565 * config/srclist-update: Change update back to the old behavior,
25566 leaving whitespace alone. Use one 'sed' command rather than a
25568 (fixlicense): Now a variable, not a function.
25569 (remove_trailing_blanks): Remove.
25570 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
25571 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
25572 Undo previous (whitespace-only) change.
25574 2003-08-12 Paul Eggert <eggert@twinsun.com>
25576 Merge from coreutils.
25577 * modules/euidaccess: Add lib_SOURCES, include for new
25580 2003-08-12 Paul Eggert <eggert@twinsun.com>
25582 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
25583 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
25584 Normalize leading white space and remove trailing white space.
25586 Merge from coreutils
25587 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
25589 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
25590 0.12.1. These files are now being upgraded automatically by
25591 ../config/srclist-update.
25593 2003-08-12 Paul Eggert <eggert@twinsun.com>
25595 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
25596 Normalize leading white space and remove trailing white space.
25597 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
25598 notice, as per ../config/srclist-update.
25600 Merge from coreutils.
25601 * lib/euidaccess.h: New file.
25602 * lib/euidaccess.c: Include it.
25603 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
25604 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
25605 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
25607 2003-08-12 Paul Eggert <eggert@twinsun.com>
25609 * config/srclist-update: Add copyright notice.
25610 (remove_id_lines, remove_trailing_blanks): New constants.
25611 (fixfile): Use them to normalize spacing a bit in copied files.
25612 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
25613 Normalize leading white space and remove trailing white space.
25615 * config/texinfo.tex: Sync with texinfo.
25617 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
25618 strtoul.c from libc, to merge coreutils whitespace changes.
25620 * config/srclist.txt: Get the following m4 files from gettext:
25621 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
25622 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
25623 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
25626 2003-08-12 Karl Berry <karl@gnu.org>
25628 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
25631 2003-08-11 Paul Eggert <eggert@twinsun.com>
25633 * modules/gnu-source, m4/gnu-source.m4:
25634 Remove; we're assuming Autoconf 2.54 or later now.
25635 Suggested by Bruno Haible.
25636 * MODULES.html.sh (func_all_modules): Remove gnu-source.
25638 2003-08-11 Bruno Haible <bruno@clisp.org>
25640 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
25642 2003-08-11 Bruno Haible <bruno@clisp.org>
25644 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
25645 (vasnprintf): Use it instead of wcslen.
25647 2003-08-11 Bruno Haible <bruno@clisp.org>
25649 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
25650 value to ensure that _Bool promotes to int. Use #define for _Bool when
25651 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
25653 2003-08-10 Karl Berry <karl@gnu.org>
25655 * lib/regex.h: update from libc (whitespace fix).
25657 2003-08-09 Paul Eggert <eggert@twinsun.com>
25659 Merge some files from coreutils. These changes were
25660 originally made by Jim Meyering.
25661 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
25662 many older Unixes require this.
25663 * lib/alloca.c (alloca): Remove cast to argument of free;
25664 no longer needed in C89.
25665 * lib/alloca_.h, regex.h: Fix white space to match
25666 what GNU indent does.
25668 2003-08-09 Paul Eggert <eggert@twinsun.com>
25670 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
25671 apparently Emacs's Unicode mode got confused before my 2003-08-05
25674 2003-08-08 Paul Eggert <eggert@twinsun.com>
25676 * m4/extensions.m4: New file.
25677 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
25678 Require gl_USE_SYSTEM_EXTENSIONS.
25679 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
25680 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
25682 2003-08-08 Paul Eggert <eggert@twinsun.com>
25684 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
25685 * modules/extensions, modules/gnu-source: New files.
25686 * modules/timespec, modules/unlocked-io: Depend on extensions.
25688 2003-08-07 Paul Eggert <eggert@twinsun.com>
25690 * modules/restrict: New file.
25691 * MODULES.html.sh (func_all_modules): Add restrict.
25692 * modules/regex: Depend on restrict.
25694 2003-08-07 Paul Eggert <eggert@twinsun.com>
25696 * m4/restrict.m4: New file.
25697 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
25699 2003-08-07 Bruno Haible <bruno@clisp.org>
25701 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
25702 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
25704 2003-08-07 Bruno Haible <bruno@clisp.org>
25706 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
25707 makes the module 'getndelim2' compatible with the module 'getline'.
25709 2003-08-05 Paul Eggert <eggert@twinsun.com>
25711 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
25712 byte with "\201" to avoid glitches when editing that source file
25713 with multi-gnome-terminal.
25715 2003-08-05 Paul Eggert <eggert@twinsun.com>
25717 * lib/bumpalloc.h: Remove.
25719 2003-08-05 Paul Eggert <eggert@twinsun.com>
25721 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
25722 * modules/bumpalloc: Remove.
25724 2003-08-04 Paul Eggert <eggert@twinsun.com>
25726 * lib/getloadavg.c: Change copyright notice and spacing to conform to
25729 Merge from coreutils.
25730 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
25732 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
25733 from Karl Berry, implemented by Jim Meyering.
25734 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
25735 from Dmitry V. Levin.
25736 Remove anachronistic cast of xrealloc.
25737 * lib/fnmatch_.h (__const): Remove. Use 'const'.
25738 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
25739 type. Otherwise, it wouldn't compile with at least /bin/cc on
25740 ymp-cray-unicos9.0.2.X.
25741 Combine two mostly-identical uses of alloca into one.
25742 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
25744 2003-08-04 Dave Love <d.love@dl.ac.uk>
25748 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
25749 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
25750 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
25751 obsolete NLIST_NAME_UNION.
25752 [__GNU__]: Undef BSD and FSCALE.
25753 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
25755 2003-08-03 Paul Eggert <eggert@twinsun.com>
25757 * lib/stdbool_.h (_Bool): Make it signed char, instead of
25758 an enum type, so that it's guaranteed to promote to int. See:
25759 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
25761 2003-08-03 Karl Berry <karl@gnu.org>
25763 * config/depcomp: update from automake.
25765 2003-07-31 Paul Eggert <eggert@twinsun.com>
25767 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
25768 (strerror): Don't assume that a printable int fits in 14 bytes.
25770 2003-07-31 Bruno Haible <bruno@clisp.org>
25772 * modules/getpass-gnu: New file.
25773 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
25775 2003-07-31 Bruno Haible <bruno@clisp.org>
25777 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
25779 2003-07-24 Karl Berry <karl@gnu.org>
25781 * config/missing: update from automake.
25783 2003-07-24 Derek Robert Price <derek@ximbiot.com>
25784 Bruno Haible <bruno@clisp.org>
25786 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
25787 * lib/getline.c (getline, getdelim): Likewise.
25788 Remove _GNU_SOURCE define; now it's defined in config.h through
25791 2003-07-23 Karl Berry <karl@gnu.org>
25793 * config/config.sub: update from prep.
25795 2003-07-22 Paul Eggert <eggert@twinsun.com>
25797 * modules/xalloc (Depends-on): Add exitfail.
25798 * modules/xmemcoll: Likewise.
25800 2003-07-22 Paul Eggert <eggert@twinsun.com>
25802 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
25803 over-parenthesization in macros.
25805 Sync with coreutils.
25807 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
25810 Use `exit_failure' for xalloc and xmemcoll instead of their own
25811 private exit-failure variables.
25812 * lib/xalloc.h (xalloc_exit_failure): Remove.
25813 * lib/xmalloc.c: Likewise. Include exitfail.h.
25814 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
25815 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
25816 * lib/xmemcoll.c: Likewise. Include exitfail.h.
25817 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
25819 2003-07-20 Jim Meyering <jim@meyering.net>
25821 * modules/closeout (Depends-on): Add exitfail.
25822 Suggestion from Bruno Haible.
25824 2003-07-19 Karl Berry <karl@gnu.org>
25826 * config/config.sub: update from prep.
25828 2003-07-18 Paul Eggert <eggert@twinsun.com>
25830 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
25832 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
25833 to test that it can stand by itself. Include "exitfail.h".
25834 Clients should set exit_failure instead.
25835 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
25837 2003-07-18 Bruno Haible <bruno@clisp.org>
25839 * modules/getndelim2: New file.
25840 * modules/getline: Share files with module getndelim2.
25841 * modules/getnline: Depend on getndelim2 instead of sharing files with
25842 it. Add getnline.c to lib_SOURCES.
25843 * MODULES.html.sh (func_all_modules): Add getndelim2.
25845 2003-07-18 Bruno Haible <bruno@clisp.org>
25847 * m4/getndelim2.m4: New file.
25848 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
25849 invoke gl_PREREQ_GETNDELIM2.
25850 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
25851 gl_PREREQ_GETNDELIM2.
25852 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
25855 2003-07-18 Bruno Haible <bruno@clisp.org>
25857 * lib/getndelim2.h: New file.
25858 * lib/getndelim2.c: Make into a module of its own. Include config.h,
25860 (getndelim2): Make non-static. Change return type to ssize_t.
25861 * lib/getline.h: Change argument names.
25862 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
25863 * lib/getnline.c: Include getndelim2.h.
25865 2003-07-18 Andreas Schwab <schwab@suse.de>
25867 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
25869 2003-07-17 Karl Berry <karl@gnu.org>
25871 * config/config.sub: update from prep.
25873 2003-07-17 Bruno Haible <bruno@clisp.org>
25875 * modules/getnline: New file.
25876 * modules/getline: Add lib/getndelim2.c to source file list.
25877 * MODULES.html.sh (func_all_modules): Add getnline.
25879 2003-07-17 Bruno Haible <bruno@clisp.org>
25881 * m4/getnline.m4: New file.
25883 2003-07-17 Bruno Haible <bruno@clisp.org>
25885 * m4/Makefile.am.in: Remove file.
25886 * m4/Makefile.am: Remove file.
25887 * m4/Makefile.in: Remove file.
25889 2003-07-17 Bruno Haible <bruno@clisp.org>
25891 * lib/getnline.h: New file.
25892 * lib/getnline.c: New file.
25893 * lib/getndelim2.c: New file, extracted from getline.c.
25894 (getndelim2): Renamed from getdelim2, with added nmax argument.
25895 * lib/getline.c: Include getndelim2.c.
25896 (getdelim2): Moved out to getndelim2.c.
25897 (getline, getdelim): Update.
25899 2003-07-17 Bruno Haible <bruno@clisp.org>
25901 * lib/Makefile.am: Remove file.
25902 * lib/Makefile.in: Remove file.
25904 2003-07-17 Bruno Haible <bruno@clisp.org>
25906 * configure.in: Remove file.
25907 * Makefile.in: Remove file.
25909 2003-07-17 Bruno Haible <bruno@clisp.org>
25911 * MODULES.html.sh: Put the </BODY> right before </HTML>.
25913 2003-07-16 Karl Berry <karl@gnu.org>
25915 * config/srclist-update: was running fixlicense twice, which caused
25916 texinfo.tex to be nullified for some reason. Simplify,
25917 $gplsrc is no longer needed as far as I can see?
25919 2003-07-16 Jim Meyering <jim@meyering.net>
25921 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
25923 2003-07-15 Paul Eggert <eggert@twinsun.com>
25925 * config/srclist.txt: Get the following files from gettext-runtime/intl
25926 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
25927 ref-del.sin. From Bruno Haible.
25928 * config/srclist-update (fixfile): Change grep pattern again, since the
25929 previous fix didn't work (there was another trailing $). Use
25930 '[$]' to escape the $s.
25932 2003-07-15 Karl Berry <karl@gnu.org>
25934 * lib/vasnprintf.c: update from gettext.
25936 2003-07-15 Karl Berry <karl@gnu.org>
25938 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
25939 gets expanded when surrounded by '$'.
25941 2003-07-15 Jim Meyering <jim@meyering.net>
25943 * modules/save-cwd: Don't depend on error. From Derek Price.
25945 2003-07-15 Jim Meyering <jim@meyering.net>
25947 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
25949 2003-07-14 Simon Josefsson <jas@extundo.com>
25951 * modules/mempcpy: New file.
25952 * MODULES.html.sh (func_all_modules): Add mempcpy.
25954 2003-07-14 Simon Josefsson <jas@extundo.com>
25956 * m4/mempcpy.m4: New file.
25958 2003-07-14 Simon Josefsson <jas@extundo.com>
25960 * lib/mempcpy.h: New file.
25961 * lib/mempcpy.c: New file.
25963 2003-07-14 Paul Eggert <eggert@twinsun.com>
25965 * modules/getdate, modules/posixtm: Depend on mktime.
25967 2003-07-14 Paul Eggert <eggert@twinsun.com>
25969 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
25970 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
25971 unicodeio.c, unicodeio.h, unlocked-io.h:
25972 Switch from LGPL to GPL.
25974 2003-07-14 Paul Eggert <eggert@twinsun.com>
25976 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
25977 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
25978 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
25979 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
25980 vasprintf.c, vasprintf.h: Regenerate. These files are now being
25981 updated automatically by ../config/srclist-update. This changes
25982 their license from LPGL to GPL.
25984 2003-07-14 Paul Eggert <eggert@twinsun.com>
25986 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
25987 assumed to refer to the root of the most recent stable gettext version.
25988 * config/srclistvars.sh: Add defaults for eggert.
25989 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
25990 Match "This program" as well as "The program". This is needed
25993 2003-07-14 Jim Meyering <jim@meyering.net>
25995 Don't emit diagnostics. Let callers do that.
25996 * lib/save-cwd.c: Don't include "error.h".
25997 (save_cwd): Don't call error. Ensure that errno is valid
25998 when returning nonzero.
26000 * lib/save-cwd.h (restore_cwd): Update prototype.
26001 * lib/save-cwd.c (restore_cwd): Remove two parameters.
26002 Simplify. Don't call error upon failure. Let callers do that.
26003 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
26004 when auditing is enabled. But don't bother updating the #if.
26006 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
26008 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
26009 it breaks C++ compilation.
26010 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
26012 2003-07-10 Simon Josefsson <jas@extundo.com>
26014 * modules/strchrnul (Makefile.am): Add strchrnul.h.
26016 2003-07-10 Jim Meyering <jim@meyering.net>
26018 * m4/clock_time.m4: Remove trailing blank.
26019 * m4/intmax_t.m4: Likewise.
26021 2003-07-10 Jim Meyering <jim@meyering.net>
26023 * lib/vasnprintf.c: Remove trailing blanks.
26024 Make cpp indentation consistent.
26026 2003-07-09 Paul Eggert <eggert@twinsun.com>
26028 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
26029 posixver.c, strftime.c, strnlen.c, strverscmp.c:
26030 Switch from LGPL to GPL.
26032 2003-07-09 Paul Eggert <eggert@twinsun.com>
26034 * config/srclist.txt: Sort sublists. Add
26035 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
26036 that differ from gnulib for one reason or another; we'd like this list
26037 to be smaller but for now let's document what we have.
26039 2003-07-08 Paul Eggert <eggert@twinsun.com>
26041 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
26042 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
26043 and sweeter "eval x=$x".
26044 * config/srclist.txt: Get lib/argp* from glibc.
26046 2003-07-07 Paul Eggert <eggert@twinsun.com>
26048 * lib/mktime.c: Fix some boundary cases and remove need for floating
26051 Issue a compile-time diagnostic if time_t is floating point, or if
26052 two's complement arithmetic is not in effect, or if arithmetic
26053 right shift does not propagate the sign. These assumptions were
26054 all in the original code but they weren't checked.
26056 (TIME_T_MIDPOINT, verify): New macros.
26057 (__isleap): Remove; it has integer overflow problems.
26058 (leapyear): New function, without those problems.
26059 (ydhms_tm_diff): Remove; splitting into two parts.
26060 (ydhms_diff): New function, containing the arithmetic part of
26061 the old ydhms_tm_diff function. Issue a compile-time
26062 diagnostic if we are not using C99 integer division.
26063 Avoid casts when possible.
26064 (guess_time_tm): New function, containing the checking part of
26065 the old ydhms_tm_diff function. Return the new value, rather than
26066 the difference between it and the old. Accept a new argument T
26067 so that *T specifies the old value. Check for overflow in the result.
26069 (__mktime_internal): Use a time_t offset, not a long int offset.
26070 This undoes the 2003-06-04 change, which is no longer needed now
26071 that we have better overflow checking.
26072 (localtime_offset): Likewise.
26074 (__mktime_internal): Avoid harmful overflow on hosts where time_t
26075 and long are 64-bit but int is only 32-bit.
26076 (ydhms_diff): Use long int to store year1 and yday1.
26077 Issue a compile-time diagnostic if long int is not wide enough.
26079 (__mktime_internal): Use long int to store adjusted year and yday.
26080 Use plain C rather than preprocessor commands, if that doesn't
26082 Check for overflow (and try to repair) after each probe
26083 rather than checking only at the very end. This avoids some bugs
26084 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
26085 does not equal GMT offset at maximum time).
26086 Use integer to check for overflow rather than floating point; this
26087 is more portable to non-IEEE hosts, and is a tad faster.
26088 When we detect that we are oscillating between two values,
26089 don't check whether tm_isdst has the requested value, since
26090 we already know the answer. When tm_isdst has the wrong value,
26091 use a different heuristic to find the right one, based on the
26092 extreme values actually observed in practice in tz2003a,
26093 rather than the (overly optimistic) "previous 3 calendar quarters".
26095 (not_equal_tm, print_tm, check_result): Use "const T" rather than
26096 "T const" to accommodate glibc style.
26097 (check_result): Use less-confusing report format. "long" -> "long int.
26099 Don't loop if the iteration overflows time_t.
26100 Allow a negative step in the iteration.
26102 2003-07-06 Karl Berry <karl@gnu.org>
26104 * config/depcomp: update from automake.
26105 * config/config.sub: update from prep.
26107 2003-07-03 Karl Berry <karl@gnu.org>
26109 * config/config.guess: update from prep.
26111 2003-07-01 Paul Eggert <eggert@twinsun.com>
26113 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
26114 xreadlink.c now includes it unconditionally.
26116 2003-07-01 Paul Eggert <eggert@twinsun.com>
26118 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
26119 having it depend on HAVE_SYS_TYPES_H.
26121 2003-07-01 Bruno Haible <bruno@clisp.org>
26123 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
26124 <sys/types.h> should be sufficient.
26125 Reported by Paul Eggert.
26127 2003-06-26 Karl Berry <karl@gnu.org>
26129 * config/depcomp: update from automake.
26131 2003-06-26 Bruno Haible <bruno@clisp.org>
26133 * modules/human: Depend on module stdbool.
26135 2003-06-25 Bruno Haible <bruno@clisp.org>
26137 * modules/readlink: New file.
26138 * modules/xreadlink: Depend on it.
26139 * MODULES.html.sh (func_all_modules): Add readlink.
26141 2003-06-25 Bruno Haible <bruno@clisp.org>
26143 * m4/readlink.m4: New file.
26145 2003-06-25 Bruno Haible <bruno@clisp.org>
26147 * lib/readlink.c: New file.
26149 2003-06-22 Karl Berry <karl@gnu.org>
26151 * config/srclist.txt: update mkinstalldirs from automake.
26152 * config/mkinstalldirs: update.
26154 2003-06-22 Bruno Haible <bruno@clisp.org>
26156 Portability to mingw32.
26157 * m4/ssize_t.m4: New file, from GNU gettext.
26158 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
26159 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
26161 2003-06-22 Bruno Haible <bruno@clisp.org>
26163 * modules/safe-read: Add m4/ssize_t.m4.
26164 * modules/xreadlink: Add m4/ssize_t.m4.
26166 2003-06-20 Bruno Haible <bruno@clisp.org>
26168 Assume C89, so PARAMS isn't needed.
26169 * lib/unicodeio.h (PARAMS): Remove.
26170 * lib/unicodeio.c: Don't use PARAMS.
26172 2003-06-18 Karl Berry <karl@gnu.org>
26174 * config/config.{guess,sub}: update from prep.
26176 2003-06-18 Jim Meyering <jim@meyering.net>
26178 Merge changes from coreutils.
26179 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
26180 Remove explicit declarations of xmalloc and realloc.
26182 (read_utmp): Remove anachronistic cast of xmalloc.
26184 2003-06-17 Paul Eggert <eggert@twinsun.com>
26186 Assume C89, so PARAMS isn't needed.
26187 * lib/backupfile.h (PARAMS): Remove. All uses removed.
26188 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
26189 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
26190 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
26191 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
26192 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
26193 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
26194 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
26195 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
26196 lib/xstrtod.h, lib/xstrtol.h: Likewise.
26197 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
26198 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
26199 no longer needed. Anyway, config.h should always be included before any
26202 2003-06-11 Simon Josefsson <jas@extundo.com>
26204 * modules/sysexits: New file.
26205 * MODULES.html.sh (func_all_modules): Add sysexits.
26207 2003-06-11 Simon Josefsson <jas@extundo.com>
26209 * lib/sysexit_.h: New file.
26211 2003-06-11 Derek Price <derek@ximbiot.com>
26213 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
26216 2003-06-11 Bruno Haible <bruno@clisp.org>
26218 * m4/sysexits.m4: New file.
26220 2003-06-10 Simon Josefsson <jas@extundo.com>
26222 * lib/argp.h: New file, from glibc.
26223 * lib/argp-ba.c: New file, from glibc.
26224 * lib/argp-eexst.c: New file, from glibc.
26225 * lib/argp-fmtstream.c: New file, from glibc.
26226 * lib/argp-fmtstream.h: New file, from glibc.
26227 * lib/argp-fs-xinl.c: New file, from glibc.
26228 * lib/argp-help.c: New file, from glibc.
26229 * lib/argp-namefrob.h: New file, from glibc.
26230 * lib/argp-parse.c: New file, from glibc.
26231 * lib/argp-pv.c: New file, from glibc.
26232 * lib/argp-pvh.c: New file, from glibc.
26233 * lib/argp-xinl.c: New file, from glibc.
26235 2003-06-10 Simon Josefsson <jas@extundo.com>
26237 * modules/strchrnul: New file.
26239 2003-06-10 Simon Josefsson <jas@extundo.com>
26241 * modules/argp: New file.
26243 2003-06-10 Simon Josefsson <jas@extundo.com>
26245 * m4/strchrnul.m4: New file.
26247 2003-06-10 Simon Josefsson <jas@extundo.com>
26249 * lib/strchrnul.h: New file.
26250 * lib/strchrnul.c: New file.
26252 2003-06-10 Bruno Haible <bruno@clisp.org>
26254 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
26256 2003-06-07 Karl Berry <karl@gnu.org>
26258 * config/config.{guess,sub}: update from prep.
26260 2003-06-07 Jim Meyering <jim@meyering.net>
26262 * modules/strtod: Use $(...) notation, not @...@ for
26263 AC_REPLACE'd variables.
26264 * modules/localcharset: Likewise.
26266 2003-06-07 Jim Meyering <jim@meyering.net>
26268 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
26269 in place of my name in the copyright comment.
26270 Remove definition and uses of __P.
26273 * lib/stat.c: Don't declare xmalloc explicitly.
26274 Instead, include "xalloc.h".
26275 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
26276 xrealloc, and xcalloc return values.
26277 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
26279 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
26281 2003-06-07 Bruno Haible <bruno@clisp.org>
26283 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
26284 avoid AC_CONFIG_LINKS.
26285 * modules/fnmatch (Makefile.am): Use explicit creation rule for
26286 fnmatch.h, to avoid AC_CONFIG_LINKS.
26287 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
26289 2003-06-07 Bruno Haible <bruno@clisp.org>
26291 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
26292 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
26293 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
26295 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
26296 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
26299 2003-06-06 Jim Meyering <jim@meyering.net>
26301 Merge from coreutils.
26302 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
26303 Consolidate declarations and initializations of *_base* locals.
26305 Merge from coreutils.
26306 This avoids a core dump on systems without GNU putenv,
26307 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
26308 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
26309 (unsetenv): New static function, from GNU libc.
26310 (rpl_putenv): Use it.
26312 * lib/modechange.c: Remove trailing blanks.
26314 Merge from coreutils.
26315 * lib/fsusage.c: Remove declaration of statfs.
26316 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
26318 * lib/posixtm.c: Include <stdbool.h> unconditionally.
26320 2003-06-06 Jim Meyering <jim@meyering.net>
26322 * lib/stdbool_.h: Renamed from stdbool.h.in.
26324 2003-06-06 Jim Meyering <jim@meyering.net>
26325 Bruno Haible <bruno@clisp.org>
26327 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
26328 Adjust Makefile.am snippet not to redirect directly to target.
26329 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
26331 2003-06-05 Paul Eggert <eggert@twinsun.com>
26333 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
26334 mismatch, look in future quarters as well as past. This fixes a
26335 bug when processing fall-backwards gaps immediately after a long
26336 period of daylight-saving time.
26338 * lib/mktime.c: Assume freestanding C89 or better.
26339 (HAVE_LIMITS_H): Remove. Assume it's 1.
26340 (__P): Remove; not used.
26341 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
26342 (mktime, not_equal_tm, print_tm, check_result,
26343 main): Use prototypes. Use const * where appropriate.
26344 (main): Fix typo in testing code that uncovered by above changes.
26345 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
26347 2003-06-04 Paul Eggert <eggert@twinsun.com>
26349 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
26350 locale.h, localeconv. This merges changes from coreutils.
26352 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
26353 It can be removed after the next Autoconf is released.
26354 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
26357 2003-06-04 Paul Eggert <eggert@twinsun.com>
26359 * lib/mktime.c: Fix Debian bug 177940
26360 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
26361 (localtime_offset): Now long int, not time_t, because we want it
26362 to be guaranteed to be signed. All uses changed.
26363 (__mktime_internal): If overflow would occur when adding offset,
26366 Merge 'human' changes from coreutils. Rewrite to support
26367 locale-specific notations like thousands separators.
26368 * lib/human.c: Simplify authorship notice.
26369 Include human.h immediately after config.h.
26370 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
26371 <limits.h>: Do not include, since human.h does.
26372 (SIZE_MAX, UINTMAX_MAX): New macros.
26373 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
26374 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
26375 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
26376 (power_letter): Renamed from suffixes.
26377 (generate_suffix_backwards): Remove.
26378 (adjust_value): Now takes int style (because of human.h changes)
26379 and long double value (for greater precision on some platforms).
26380 (group_number): New function.
26381 (human_readable): Use it. Use integer options, not enum.
26382 Put the options before the sizes in the arg list.
26383 Support all the new options.
26384 The old human_readable function has been removed;
26385 use inttostr.h instead.
26386 (human_readable, default_block_size, humblock):
26387 Use uintmax_t, not int, for block sizes.
26388 (human_readable_inexact, block_size_types): Remove.
26389 (block_size_opts): New constant.
26390 (human_options): Renamed from human_block_size, with new signature
26391 that allows block sizes up to UINTMAX_MAX. All callers changed.
26392 * lib/human.h: Add copyright and authorship notice.
26393 Include <limits.h> and <stdbool.h> unconditionally.
26394 (PARAMS): Remove. All uses removed.
26395 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
26396 (enum human_inexact_style): Remove tag; now a nameless enum.
26397 (human_floor, human_ceiling, human_round_to_even): Now have
26398 values 2, 0, 1 rather than -1, 1, 0.
26399 (human_group_digits, human_suppress_point_zero, human_autoscale,
26400 human_base_1024, human_SI, human_B): New constants.
26401 (human_readable_inexact, human_block_size): Remove.
26402 (human_readable): Size args are now uintmax_t, not int.
26403 (human_options): New decl.
26405 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
26406 unnecessary now that we assume C89 or better. This change
26407 imported from coreutils.
26409 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
26410 arbitrarily. This is the same patch as 2003-05-28, but it got lost
26411 in the 2003-05-30 sync from glibc.
26413 .h files should stand alone, but we shouldn't include <sys/types.h>
26414 if we can get away with just <stddef.h>.
26416 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
26417 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
26418 rather than <sys/types.h>, as we merely need size_t.
26419 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
26421 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
26422 Include <stdio.h>, to get FILE.
26423 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
26424 memcasecmp.h has included <stddef.h> and all we need is size_t.
26425 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
26426 our interface, instead of including <sys/types.h>
26428 2003-06-04 Paul Eggert <eggert@twinsun.com>
26430 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
26431 now, as glibc mktime is buggy on non-glibc systems.
26433 2003-06-03 Karl Berry <karl@gnu.org>
26435 * config/config.sub: update from prep.
26437 2003-06-02 Paul Eggert <eggert@twinsun.com>
26440 Fix some minor time-related bugs with POSIX time arguments.
26441 Some valid time stamps were being rejected (notably -1, and
26442 time stamps before 1900 on 64-bit hosts). And some invalid
26443 time stamps were being accepted, e.g. September 31.
26445 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
26446 that we can return (time_t) -1 successfully.
26447 * lib/posixtm.c: Likewise.
26448 [HAVE_STDBOOL_H]: Include <stdbool.h>.
26449 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
26450 (t): Remove static var.
26451 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
26452 of static var. All uses changed.
26453 (year): Do not reject years before 1900; they can occur with
26455 (posix_time_parse): Do not check for out-of-range components;
26456 that is now the caller's responsibility, since our checks were
26457 only approximations.
26458 (posixtime): Use mktime to check for out-of-range components,
26459 since it knows them exactly.
26460 If mktime returns (time_t) -1, check whether an error actually occurred
26461 by invoking localtime on -1.
26462 (main) [TEST_POSIXTIME]: Check for input data errors, and report
26463 posixtime failures better.
26464 Improve the test data (in comments only).
26466 2003-06-02 Karl Berry <karl@gnu.org>
26468 * config/mkinstalldirs (version): new variable.
26469 (--version): new option.
26470 (usage): improve message.
26472 2003-05-30 Karl Berry <karl@gnu.org>
26474 * lib/mktime.c: update from libc.
26476 2003-05-30 Bruno Haible <bruno@clisp.org>
26478 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
26479 * config/config.rpath: Upgrade to gettext-0.12.1.
26481 2003-05-30 Bruno Haible <bruno@clisp.org>
26483 * m4/gettext.m4: Upgrade to gettext-0.12.1.
26484 * m4/nls.m4: New file, from gettext-0.12.1.
26485 * m4/po.m4: New file, from gettext-0.12.1.
26486 * m4/progtest.m4: Upgrade to gettext-0.12.1.
26488 2003-05-30 Bruno Haible <bruno@clisp.org>
26490 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
26491 * lib/localcharset.h: Likewise.
26492 * lib/localcharset.c: Likewise.
26494 2003-05-29 Karl Berry <karl@gnu.org>
26496 * config/config.rpath: update from gettext.
26498 2003-05-28 Paul Eggert <eggert@twinsun.com>
26500 Assume the headers required for C89 freestanding compilers.
26501 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
26502 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
26503 * m4/human.m4 (gl_HUMAN): Likewise.
26504 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
26505 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
26506 * m4/userspec.m4 (gl_USERSPEC): Likewise.
26507 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
26508 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
26509 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
26511 2003-05-28 Paul Eggert <eggert@twinsun.com>
26513 Assume the headers required for C89 freestanding compilers.
26514 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
26515 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
26516 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
26517 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
26518 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
26519 define, since <limits.h> is guaranteed to do that.
26520 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
26521 * lib/exclude.c: Include <stdbool.h> unconditionally.
26522 * lib/tempname.c: Include <stddef.h> unconditionally.
26523 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
26524 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
26525 <stddef.h> does that.
26526 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
26527 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
26528 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
26530 * lib/xstrtol.c: Likewise.
26531 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
26532 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
26534 * lib/addext.c (addext): Use assignment rather than cast, to avoid
26535 warnings on some platforms.
26537 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
26540 2003-05-26 Jim Meyering <jim@meyering.net>
26542 Merge in a change from coreutils:
26543 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
26544 that is guaranteed to be `no'. Use `no_such_member' to indicate
26545 that condition, rather than `-1' which is slightly misleading.
26546 Change the name of the cache variable to have the gl_ prefix.
26547 Prompted by a patch from Richard Dawe for DJGPP.
26549 2003-05-24 Karl Berry <karl@gnu.org>
26551 * config/config.guess: update from prep.
26553 2003-05-22 Karl Berry <karl@gnu.org>
26555 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
26557 2003-05-20 Karl Berry <karl@gnu.org>
26559 * config/config.guess: update from prep.
26561 2003-05-18 Karl Berry <karl@gnu.org>
26563 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
26564 might actually be set by the user.
26566 * config/depcomp, install-sh, mdate-sh: update from automake.
26568 2003-05-17 Bruno Haible <bruno@clisp.org>
26570 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
26571 invalid expansion for AC_EGREP_CPP.
26572 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
26573 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
26574 Suggested by Akim Demaille <akim@epita.fr> in
26575 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
26577 2003-05-12 Jim Meyering <jim@meyering.net>
26579 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
26580 the space-padded-by-default conversion specifiers, %e, %k, %l.
26582 2003-05-12 Bruno Haible <bruno@clisp.org>
26584 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
26585 the string is longer than 4 KB.
26587 2003-05-11 Karl Berry <karl@gnu.org>
26589 * config/config.{guess,sub}: update from prep.
26591 2003-05-09 Bruno Haible <bruno@clisp.org>
26593 * modules/error: Add m4/strerror_r.m4 to file list.
26595 2003-05-03 Bruno Haible <bruno@clisp.org>
26597 Upgrade to Unicode-4.0.
26598 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
26599 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
26600 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
26601 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
26602 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
26603 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
26604 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
26605 Change width of U+E0100..U+E01EF from 1 to 0.
26607 2003-04-25 Jim Meyering <jim@meyering.net>
26609 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
26610 of type size_t, not int.
26612 2003-04-25 Bruno Haible <bruno@clisp.org>
26614 * lib/copy-file.c: Include <stddef.h>, for size_t.
26616 2003-04-21 Paul Eggert <eggert@twinsun.com>
26618 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
26619 code which expansion is under static control. Patch imported from
26620 Akim Demaille's patch to Bison; see
26621 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
26623 2003-04-14 Bruno Haible <bruno@clisp.org>
26625 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
26627 2003-04-11 Jim Meyering <jim@meyering.net>
26629 Merge changes from Coreutils.
26631 2003-03-22 Jim Meyering <jim@meyering.net>
26633 * lib/strftime.c (widen): Cast alloca return value to proper type.
26635 2003-01-19 Ulrich Drepper <drepper@redhat.com>
26638 * lib/strftime.c (my_strftime): Handle very large width
26639 specifications for numeric values correctly. Improve checks for
26642 2003-01-19 Jim Meyering <jim@meyering.net>
26644 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
26646 (nl_get_alt_digit) [! defined my_strftime]: Define.
26647 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
26648 _nl_get_alt_digit and _nl_get_walt_digit.
26650 * lib/strftime.c (my_strftime): Merge in locale-related changes from
26651 libc. These changes have no effect outside of _LIBC.
26653 2003-04-10 Bruno Haible <bruno@clisp.org>
26655 * modules/findprog: New file.
26656 * MODULES.html.sh (func_all_modules): Add it.
26658 2003-04-10 Bruno Haible <bruno@clisp.org>
26660 * m4/findprog.m4: New file.
26661 * m4/eaccess.m4: New file.
26663 2003-04-10 Bruno Haible <bruno@clisp.org>
26665 * lib/findprog.h: New file, from GNU gettext.
26666 * lib/findprog.c: New file, from GNU gettext.
26668 2003-04-05 Jim Meyering <jim@meyering.net>
26670 Merge changes from Coreutils.
26672 * lib/exclude.h (PARAMS): Remove definition and uses.
26673 * lib/exclude.c: Remove uses of `PARAMS'.
26675 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
26676 Add test-cases for DOS filenames. Declare program_name.
26677 (main): Set up program_name. Patch by Rich Dawe.
26679 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
26681 Use mntctl's return value to drive the entry-processing loop, since
26682 we can't rely on the value of the vmt_length member in the last
26683 entry. On some systems doing so could result in exhausting
26684 virtual memory. Based in part on a patch from Mike Jetzer.
26686 2003-04-04 Bruno Haible <bruno@clisp.org>
26688 * modules/linebreak: New file.
26689 * MODULES.html.sh (func_all_modules): Add it.
26691 2003-04-04 Bruno Haible <bruno@clisp.org>
26693 * m4/linebreak.m4: New file.
26695 2003-04-04 Bruno Haible <bruno@clisp.org>
26697 * lib/linebreak.h: New file, from GNU gettext.
26698 * lib/linebreak.c: New file, from GNU gettext with slight
26700 * lib/lbrkprop.h: New file, from GNU gettext.
26702 2003-04-03 Bruno Haible <bruno@clisp.org>
26704 * modules/utf8-ucs4: New file.
26705 * modules/utf16-ucs4: New file.
26706 * modules/ucs4-utf8: New file.
26707 * modules/ucs4-utf16: New file.
26708 * MODULES.html.sh (func_all_modules): Add them.
26710 2003-04-03 Bruno Haible <bruno@clisp.org>
26712 * m4/utf-ucs4.m4: New file.
26713 * m4/ucs4-utf.m4: New file.
26715 2003-04-03 Bruno Haible <bruno@clisp.org>
26717 * lib/utf8-ucs4.h: New file, from GNU gettext.
26718 * lib/utf16-ucs4.h: New file, from GNU gettext.
26719 * lib/ucs4-utf8.h: New file, from GNU gettext.
26720 * lib/ucs4-utf16.h: New file, from GNU gettext.
26722 2003-04-02 Bruno Haible <bruno@clisp.org>
26724 * modules/binary-io: New file.
26725 * MODULES.html.sh (func_all_modules): Add it.
26727 2003-04-02 Bruno Haible <bruno@clisp.org>
26729 * lib/binary-io.h: New file, from GNU gettext.
26731 2003-04-01 Bruno Haible <bruno@clisp.org>
26733 * modules/pathname: New file.
26734 * MODULES.html.sh (func_all_modules): Add it.
26736 2003-04-01 Bruno Haible <bruno@clisp.org>
26738 * lib/pathname.h: New file, from GNU gettext.
26739 * lib/concatpath.c: New file, from GNU gettext.
26741 2003-03-30 Bruno Haible <bruno@clisp.org>
26743 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
26745 2003-03-30 Bruno Haible <bruno@clisp.org>
26747 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
26748 function chown() doesn't exist.
26750 2003-03-28 Bruno Haible <bruno@clisp.org>
26752 * modules/copy-file: New file.
26753 * MODULES.html.sh (func_all_modules): Add it.
26755 2003-03-28 Bruno Haible <bruno@clisp.org>
26757 * m4/copy-file.m4: New file.
26759 2003-03-28 Bruno Haible <bruno@clisp.org>
26761 * lib/copy-file.h: New file, from GNU gettext.
26762 * lib/copy-file.c: New file, from GNU gettext.
26764 2003-03-18 Jim Meyering <jim@meyering.net>
26766 * lib/quote.c (quote_n): Fix typo in comment.
26768 2003-03-18 Bruno Haible <bruno@clisp.org>
26770 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
26772 * m4/onceonly_2_57.m4: Likewise.
26774 2003-03-17 Bruno Haible <bruno@clisp.org>
26776 * m4/onceonly.m4: Require autoconf 2.54 or newer.
26777 (m4_quote): Remove macro.
26778 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
26780 2003-03-14 Jim Meyering <jim@meyering.net>
26782 Merge changes from Coreutils.
26783 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
26784 to be const, in order to avoid warnings.
26785 (obstack_room): Likewise.
26786 (obstack_empty_p): Likewise.
26788 2003-03-14 Bruno Haible <bruno@clisp.org>
26790 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
26791 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
26793 2003-03-13 Paul Eggert <eggert@twinsun.com>
26795 Merge changes from Bison.
26796 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
26797 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
26798 when compiling Bison 1.875's `bitset bset = obstack_alloc
26799 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
26800 * lib/hash.c: Include <stdbool.h> unconditionally.
26802 2003-03-13 Paul Eggert <eggert@twinsun.com>
26804 * m4/onceonly.m4 (m4_quote): New macro.
26805 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
26806 Quote AC_FOREACH variable-expansions properly.
26808 2003-03-13 Paul Eggert <eggert@twinsun.com>
26810 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
26812 2003-03-09 Paul Eggert <eggert@twinsun.com>
26814 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
26815 Reported by Bruce Becker; see:
26816 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
26818 2003-03-03 Paul Eggert <eggert@twinsun.com>
26819 Bruno Haible <bruno@clisp.org>
26821 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
26822 Reported by John Hughes, see
26823 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
26825 2003-02-20 Bruno Haible <bruno@clisp.org>
26827 * MODULES.html.sh (func_all_modules): Add poll.
26829 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
26831 * modules/poll: New file.
26833 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
26835 * lib/poll_.h: New file.
26836 * lib/poll.c: New file.
26838 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
26840 * m4/poll.m4: New file.
26842 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
26844 * modules/mathl: New file.
26846 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
26848 * lib/mathl.h: New file.
26849 * lib/acosl.c: New file.
26850 * lib/asinl.c: New file.
26851 * lib/atanl.c: New file.
26852 * lib/ceill.c: New file.
26853 * lib/cosl.c: New file.
26854 * lib/expl.c: New file.
26855 * lib/floorl.c: New file.
26856 * lib/frexpl.c: New file.
26857 * lib/ldexpl.c: New file.
26858 * lib/logl.c: New file.
26859 * lib/sincosl.c: New file.
26860 * lib/sinl.c: New file.
26861 * lib/sqrtl.c: New file.
26862 * lib/tanl.c: New file.
26863 * lib/trigl.c: New file.
26864 * lib/trigl.h: New file.
26866 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
26868 * m4/mathl.m4: New file.
26870 2003-02-18 Bruno Haible <bruno@clisp.org>
26872 * MODULES.html.sh (func_all_modules): Add mathl.
26874 2003-02-17 Bruno Haible <bruno@clisp.org>
26876 * modules/mkdtemp: New module.
26877 * MODULES.html.sh (func_all_modules): Add it.
26879 2003-02-17 Bruno Haible <bruno@clisp.org>
26881 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
26883 2003-02-17 Bruno Haible <bruno@clisp.org>
26885 * lib/mkdtemp.h: New file, from GNU gettext.
26886 * lib/mkdtemp.c: New file, from GNU gettext.
26888 2003-02-02 Jim Meyering <jim@meyering.net>
26890 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
26893 2003-01-31 Bruno Haible <bruno@clisp.org>
26895 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
26897 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
26899 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
26901 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
26904 2003-01-31 Bruno Haible <bruno@clisp.org>
26906 * lib/rename.c: #undef rename before defining rpl_rename.
26907 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
26909 2003-01-30 Bruno Haible <bruno@clisp.org>
26911 * modules/vasnprintf, modules/vasprintf: New modules.
26912 * MODULES.html.sh (func_all_modules): Add them.
26914 2003-01-30 Bruno Haible <bruno@clisp.org>
26916 * m4/signed.m4: New file, from GNU gettext.
26917 * m4/longdouble.m4: New file, from GNU gettext.
26918 * m4/wchar_t.m4: New file, from GNU gettext.
26919 * m4/wint_t.m4: New file, from GNU gettext.
26920 * m4/vasnprintf.m4: New file.
26921 * m4/vasprintf.m4: New file.
26923 2003-01-30 Bruno Haible <bruno@clisp.org>
26925 * lib/printf-args.h: New file, from GNU gettext.
26926 * lib/printf-args.c: New file, from GNU gettext.
26927 * lib/printf-parse.h: New file, from GNU gettext.
26928 * lib/printf-parse.c: New file, from GNU gettext.
26929 * lib/vasnprintf.h: New file, from GNU gettext.
26930 * lib/vasnprintf.c: New file, from GNU gettext.
26931 * lib/asnprintf.c: New file, from GNU gettext.
26932 * lib/vasprintf.h: New file, from GNU gettext with modifications.
26933 * lib/vasprintf.c: New file, from GNU gettext.
26934 * lib/asprintf.c: New file, from GNU gettext.
26936 2003-01-29 Bruno Haible <bruno@clisp.org>
26938 * modules/stpncpy: New module.
26939 * MODULES.html.sh (func_all_modules): Add it.
26941 2003-01-29 Bruno Haible <bruno@clisp.org>
26943 * m4/stpncpy.m4: New file.
26945 2003-01-29 Bruno Haible <bruno@clisp.org>
26947 * lib/stpncpy.h: New file, from GNU gettext with modifications.
26948 * lib/stpncpy.c: New file, from GNU gettext with modifications.
26950 2003-01-28 Bruno Haible <bruno@clisp.org>
26952 * modules/c-ctype: New module.
26953 * MODULES.html.sh (func_all_modules): Add it.
26955 2003-01-28 Bruno Haible <bruno@clisp.org>
26957 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
26959 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
26962 2003-01-27 Bruno Haible <bruno@clisp.org>
26964 * modules/xsetenv: New module.
26965 * MODULES.html.sh (func_all_modules): Add it.
26967 2003-01-27 Bruno Haible <bruno@clisp.org>
26969 * lib/xsetenv.h: New file, from GNU gettext.
26970 * lib/xsetenv.c: New file, from GNU gettext.
26972 2003-01-23 Jim Meyering <jim@meyering.net>
26974 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
26975 from working on systems without dirfd (at least Irix and OSF1/Tru64).
26977 2003-01-23 Bruno Haible <bruno@clisp.org>
26979 * modules/minmax: New module.
26980 * MODULES.html.sh (func_all_modules): Add it.
26982 2003-01-23 Bruno Haible <bruno@clisp.org>
26984 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
26987 2003-01-22 Bruno Haible <bruno@clisp.org>
26989 * modules/exit: New module.
26990 * MODULES.html.sh (func_all_modules): Add it.
26992 2003-01-22 Bruno Haible <bruno@clisp.org>
26994 * lib/exit.h: New file, from GNU gettext.
26996 2003-01-19 Bruno Haible <bruno@clisp.org>
26998 * gnulib-tool: Recognize option --extract-maintainer.
26999 (func_get_maintainer): New function.
27000 * modules/*: Add Maintainer entry.
27002 2003-01-16 Jim Meyering <jim@meyering.net>
27004 * m4/regex.m4: The `regex' struct is both input and output.
27005 Initialize it before each use. Patch by Tim Waugh.
27007 2003-01-16 Bruno Haible <bruno@clisp.org>
27009 * MODULES.html.sh: Add a table of contents. Add the module name as
27010 leftmost column. Add hyperlinks.
27012 2003-01-15 Bruno Haible <bruno@clisp.org>
27014 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
27016 2003-01-15 Bruno Haible <bruno@clisp.org>
27018 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
27019 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
27022 2003-01-15 Bruno Haible <bruno@clisp.org>
27024 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
27026 2003-01-15 Bruno Haible <bruno@clisp.org>
27028 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
27029 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
27031 2003-01-14 Jim Meyering <jim@meyering.net>
27033 * lib/same.c (same_name): Tweak a comment.
27035 2003-01-14 Bruno Haible <bruno@clisp.org>
27037 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
27038 when a string comparison is sufficient.
27040 2003-01-14 Bruno Haible <bruno@clisp.org>
27042 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
27045 2003-01-14 Bruno Haible <bruno@clisp.org>
27047 * lib/hash-pjw.c: Add comment about low quality of this function.
27049 2003-01-13 Bruno Haible <bruno@clisp.org>
27051 * modules/stpcpy: Distribute lib/stpcpy.h.
27052 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
27054 2003-01-13 Bruno Haible <bruno@clisp.org>
27056 * modules/*: Add a description.
27057 * modules/strpbrk: Fix Makefile.am snippet.
27058 * modules/strtoimax: Fix dependencies.
27059 * modules/strtoumax: Likewise.
27061 2003-01-13 Bruno Haible <bruno@clisp.org>
27063 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
27064 * modules/alloca (Makefile.am): All object files depend on alloca.h.
27065 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
27067 2003-01-13 Bruno Haible <bruno@clisp.org>
27069 * gnulib-tool (func_create_testdir): Store config/* files in the main
27071 * config.rpath: Move to ...
27072 * config/config.rpath: ... here.
27073 * modules/gettext: Contains config/config.rpath, not config.rpath.
27074 * modules/iconv: Likewise.
27076 2003-01-12 Paul Eggert <eggert@twinsun.com>
27078 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
27079 to avoid collisions with libcurses and libreadline.
27081 * m4/getstr.m4: Remove.
27082 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
27084 2003-01-12 Paul Eggert <eggert@twinsun.com>
27086 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
27087 to avoid collisions with libcurses and libreadline.
27089 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
27090 * lib/getstr.h, getstr.c: Remove.
27091 * lib/getline.c: Include "getline.h", to check interface.
27092 Move body of old getstr.c here: this defines MIN_CHUNK and
27093 declares getdelim2, which is renamed from getstr.
27094 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
27096 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
27098 * lib/linebuffer.h: Likewise.
27099 (readline): Remove backward-compatibility macro.
27101 2003-01-12 Paul Eggert <eggert@twinsun.com>
27103 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
27104 to avoid collisions with libcurses and libreadline.
27106 * MODULES.html.sh: Remove getstr.
27107 * modules/getline: Depend on unlocked-io, not getstr.
27109 2003-01-12 Jim Meyering <jim@meyering.net>
27111 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
27113 2003-01-10 Bruno Haible <bruno@clisp.org>
27115 * modules/alloca: Change Makefile.am requirements. Simplify Include
27116 requirements. Add lib/alloca_.h to file list.
27118 2003-01-10 Bruno Haible <bruno@clisp.org>
27120 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
27122 2003-01-10 Bruno Haible <bruno@clisp.org>
27124 * lib/alloca_.h: New file.
27125 * lib/getdate.y: Unconditionally include alloca.h.
27126 * lib/makepath.c: Likewise.
27127 * lib/setenv.c: Likewise.
27128 * lib/userspec.c: Likewise.
27130 2003-01-09 Karl Berry <karl@gnu.org>
27132 * MODULES.html.sh: include `dirname $0` in PATH, to find
27135 2003-01-09 Bruno Haible <bruno@clisp.org>
27137 * modules/stdbool: Change configure.ac, Makefile.am requirements.
27138 Simplify Include requirements. Add lib/stdbool.h.in to file list.
27140 2003-01-09 Bruno Haible <bruno@clisp.org>
27142 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
27144 2003-01-09 Bruno Haible <bruno@clisp.org>
27146 * lib/stdbool.h.in: New file.
27148 2003-01-09 Bruno Haible <bruno@clisp.org>
27150 * gnulib-tool (func_all_modules): Ignore files ending in ~.
27151 * MODULES.html.sh: Likewise.
27153 2003-01-08 Jim Meyering <jim@meyering.net>
27155 * lib/full-write.c: Undefine and define-away `const' after inclusion
27156 of errno.h, not before. Suggestion from Bruno Haible.
27158 2003-01-08 Bruno Haible <bruno@clisp.org>
27160 * modules/full-read: Depend on full-write.
27162 2003-01-08 Bruno Haible <bruno@clisp.org>
27164 * lib/safe-read.c: Include specification header first, to ensure its
27166 * lib/full-write.c: Likewise.
27168 2003-01-07 Jim Meyering <jim@meyering.net>
27170 * lib/full-write.c: Rework so that it may serve to define full_read,
27172 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
27174 2003-01-07 Bruno Haible <bruno@clisp.org>
27176 * lib/strtoimax.c: Include <stdint.h> as an alternative to
27178 * lib/xstrtol.h: Likewise.
27179 * lib/xstrtoimax.c: Likewise.
27180 * lib/xstrtoumax.c: Likewise.
27181 * lib/human.h: Likewise.
27183 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
27184 on systems that have <inttypes.h> but not <stdint.h>.
27186 2003-01-07 Bruno Haible <bruno@clisp.org>
27188 * MODULES.html.sh: Add copyright notice.
27189 (missed_files): Omit CVS directory entries.
27190 (func_module): Make it work with sed-3.02.
27191 * MODULES.txt: Remove file.
27193 2003-01-06 Jim Meyering <jim@meyering.net>
27195 * lib/version-etc.c: Update year in translatable copyright string.
27197 2003-01-03 Karl Berry <karl@gnu.org>
27199 * config/config.{guess,sub}: update from prep.
27201 2003-01-02 Karl Berry <karl@gnu.org>
27203 * doc/COPYING.DOC: belatedly updated to 1.2.
27205 2003-01-01 Karl Berry <karl@gnu.org>
27207 * gnulib-tool (func_verify_module): report module name $module in
27208 error message, not $1.
27209 * gnulib-tool (create-testdir): don't complain if destdir couldn't
27210 be created, only if it doesn't exist.
27211 * gnulib-tool (last_checkin_date): don't expand the $Date here.
27213 2002-12-31 Paul Eggert <eggert@twinsun.com>
27215 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
27217 2002-12-31 Paul Eggert <eggert@twinsun.com>
27219 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
27220 memcmp if strcoll doesn't work.
27222 2002-12-31 Bruno Haible <bruno@clisp.org>
27224 * lib/utime.c (utime_null): No need to call ftruncate if the file was
27227 2002-12-31 Bruno Haible <bruno@clisp.org>
27229 * lib/memcoll.c (STRCOLL): New macro.
27232 2002-12-31 Bruno Haible <bruno@clisp.org>
27234 * lib/localcharset.h: New file.
27235 * lib/localcharset.c: Include it.
27236 * lib/unicodeio.c: Likewise.
27238 2002-12-31 Bruno Haible <bruno@clisp.org>
27240 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
27241 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
27243 2002-12-31 Bruno Haible <bruno@clisp.org>
27245 * lib/getline.h: Include <stddef.h>, for size_t.
27247 * lib/unicodeio.h: Include <stddef.h>, for size_t.
27248 * lib/unicodeio.c: Don't include <stddef.h>.
27250 2002-12-31 Bruno Haible <bruno@clisp.org>
27252 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
27255 2002-12-24 Karl Berry <karl@gnu.org>
27257 * config/config.guess: update from prep.
27259 2002-12-24 Bruno Haible <bruno@clisp.org>
27261 General infrasructure.
27262 * m4/README: Rewritten.
27263 * m4/onceonly.m4: New file.
27264 * m4/onceonly_2_57.m4: New file.
27267 * m4/atexit.m4: New file.
27270 * m4/strtod.m4: New file.
27273 * m4/strtol.m4: New file.
27276 * m4/strtoul.m4: New file.
27279 * m4/memchr.m4: New file.
27282 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
27283 (jm_FUNC_MEMCMP): Invoke it.
27286 * m4/memcpy.m4: New file.
27289 * m4/memmove.m4: New file.
27292 * m4/memset.m4: New file.
27295 * m4/strcspn.m4: New file.
27298 * m4/strpbrk.m4: New file.
27301 * m4/strstr.m4: New file.
27304 * m4/strerror.m4: New file.
27307 * m4/mktime.m4: Renamed from jm-mktime.m4.
27308 (gl_PREREQ_MKTIME): New macro.
27309 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
27312 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
27313 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
27314 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
27317 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
27318 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
27319 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
27322 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
27323 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
27324 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
27326 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
27329 * m4/xalloc.m4: New file.
27332 * m4/alloca.m4: New file.
27335 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
27336 (jm_FUNC_PUTENV): Invoke it.
27339 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
27340 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
27341 when invoked twice.
27342 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
27346 * m4/memrchr.m4: New file.
27349 * m4/stpcpy.m4: New file.
27352 * m4/strcase.m4: New file.
27355 * m4/strdup.m4: New file.
27358 * m4/strnlen.m4: New file.
27361 * m4/strndup.m4: New file.
27364 * m4/xstrtod.m4: New file.
27367 * m4/xstrtol.m4: New file.
27370 * m4/getdate.m4: New file.
27372 Module unlocked-io.
27373 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
27374 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
27375 * m4/jm-glibc-io.m4n: Remove file.
27377 Module long-options.
27378 * m4/long-options.m4: New file.
27381 * m4/md5.m4: New file.
27384 * m4/sha.m4: New file.
27387 * m4/getstr.m4: New file.
27390 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
27391 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
27392 <sys/types.h>, for size_t. Use the function name gnu_getline, not
27393 simply getline. Infoke gl_PREREQ_GETLINE.
27396 * m4/obstack.m4: New file.
27399 * m4/hash.m4: New file.
27402 * m4/readtokens.m4: New file.
27405 * m4/strverscmp.m4: New file.
27408 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
27412 * m4/strtoll.m4: New file.
27415 * m4/strtoull.m4: New file.
27418 * m4/strtoimax.m4: New file.
27421 * m4/strtoumax.m4: New file.
27424 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
27425 jm_AC_PREREQ_XSTRTOIMAX.
27426 Moved the strtol prerequisites to strtol.m4.
27427 Moved the strtoll prerequisites to strtoll.m4.
27428 Moved the strtoimax prerequisites to strtoimax.m4.
27431 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
27432 jm_AC_PREREQ_XSTRTOUMAX.
27433 Moved the strtoul prerequisites to strtoul.m4.
27434 Moved the strtoull prerequisites to strtoull.m4.
27435 Moved the strtoumax prerequisites to strtoumax.m4.
27438 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
27439 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
27442 * m4/dup2.m4: New file.
27445 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
27446 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
27449 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
27450 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
27452 Module gettimeofday.
27453 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
27454 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
27455 gl_PREREQ_GETTIMEOFDAY.
27458 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
27459 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
27462 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
27463 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
27464 jm_AC_TYPE_UINTMAX_T.
27465 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
27468 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
27469 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
27472 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
27473 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
27476 * m4/timespec.m4 (gl_TIMESPEC): New macro.
27477 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
27478 * m4/st_mtim.m4: Indentation.
27481 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
27482 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
27483 gl_PREREQ_NANOSLEEP.
27486 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
27487 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
27488 (gl_REGEX): New macro.
27491 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
27492 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
27495 * m4/rmdir.m4: New file.
27498 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
27499 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
27500 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
27503 * m4/dirname.m4: New file.
27506 * m4/getopt.m4: New file.
27508 Module unistd-safer.
27509 * m4/unistd-safer.m4: New file.
27512 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
27514 (gl_PREREQ_FNMATCH_EXTRA): New macro.
27515 (gl_FUNC_FNMATCH_POSIX): New macro.
27516 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
27517 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
27521 * m4/exclude.m4: New file.
27524 * m4/human.m4: New file.
27530 * m4/backupfile.m4: New file.
27531 * m4/d-ino.m4: Indentation.
27534 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
27535 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
27536 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
27539 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
27543 * m4/euidaccess.m4: New file.
27546 * m4/file-type.m4: New file.
27549 * m4/fileblocks.m4: New file.
27552 * m4/filemode.m4: New file.
27555 * m4/isdir.m4: New file.
27558 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
27559 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
27562 * m4/makepath.m4: New file.
27565 * m4/modechange.m4: New file.
27568 * m4/mountlist.m4: New file.
27569 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
27572 Module path-concat.
27573 * m4/path-concat.m4: New file.
27576 * m4/pathmax.m4: New file.
27579 * m4/same.m4: New file.
27582 * m4/save-cwd.m4: New file.
27585 * m4/savedir.m4: New file.
27588 * m4/xgetcwd.m4: New file.
27589 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
27592 * m4/xreadlink.m4: New file.
27595 * m4/safe-read.m4: New file.
27598 * m4/safe-write.m4: New file.
27601 * m4/closeout.m4: New file.
27603 Module stdio-safer.
27604 * m4/stdio-safer.m4: New file.
27607 * m4/getpass.m4: New file.
27610 * m4/getugroups.m4: New file.
27612 Module group-member.
27613 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
27614 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
27617 * m4/idcache.m4: New file.
27620 * m4/userspec.m4: New file.
27623 * m4/clock_time.m4: New file.
27624 * m4/gettime.m4: New file.
27627 * m4/settime.m4: New file.
27630 * m4/posixtm.m4: New file.
27632 Module gethostname.
27633 * m4/gethostname.m4: New file.
27636 * m4/canon-host.m4: New file.
27639 * m4/codeset.m4: New file, from gettext-0.11.5.
27640 * m4/gettext.m4: New file, from gettext-0.11.5.
27641 * m4/glibc21.m4: New file, from gettext-0.11.5.
27642 * m4/iconv.m4: New file, from gettext-0.11.5.
27643 * m4/intdiv0.m4: New file, from gettext-0.11.5.
27644 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
27645 * m4/inttypes.m4: New file, from gettext-0.11.5.
27646 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
27647 * m4/isc-posix.m4: New file, from gettext-0.11.5.
27648 * m4/lcmessage.m4: New file, from gettext-0.11.5.
27649 * m4/lib-ld.m4: New file, from gettext-0.11.5.
27650 * m4/lib-link.m4: New file, from gettext-0.11.5.
27651 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
27652 * m4/progtest.m4: New file, from gettext-0.11.5.
27653 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
27654 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
27655 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
27657 Module localcharset.
27658 * m4/localcharset.m4: New file.
27660 Module hard-locale.
27661 * m4/hard-locale.m4: New file.
27664 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
27666 * m4/mbrtowc.m4: Add comment.
27669 * m4/memcasecmp.m4: New file.
27672 * m4/memcoll.m4: New file.
27675 * m4/unicodeio.m4: New file.
27678 * m4/rpmatch.m4: New file.
27681 * m4/yesno.m4: New file.
27684 * m4/exitfail.m4: New file.
27687 * m4/c-stack.m4 (gl_C_STACK): New macro.
27688 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
27691 * m4/error.m4 (gl_ERROR): New macro.
27692 (jm_PREREQ_ERROR): Use onceonly macros.
27695 * m4/fatal.m4: New file.
27698 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
27699 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
27701 Module getpagesize.
27702 * m4/getpagesize.m4: New file.
27704 Module getusershell.
27705 * m4/getusershell.m4: New file.
27708 * m4/physmem.m4: New file.
27711 * m4/posixver.m4: New file.
27714 * m4/quotearg.m4: New file.
27717 * m4/quote.m4: New file.
27720 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
27723 * m4/sig2str.m4: New file.
27726 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
27728 * m4/intmax_t.m4: New file.
27729 * m4/d-type.m4: Indentation.
27730 * m4/jm-macros.m4: Update.
27731 * m4/prereq.m4 (jm_PREREQ): Update.
27732 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
27733 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
27734 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
27735 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
27736 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
27737 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
27738 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
27739 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
27740 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
27741 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
27742 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
27743 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
27744 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
27745 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
27746 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
27747 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
27748 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
27749 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
27750 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
27752 2002-12-24 Bruno Haible <bruno@clisp.org>
27754 * MODULES.txt: Update according to m4/ changes.
27757 * config.rpath: New file, from gettext-0.11.5.
27759 * modules/*: New module descriptions.
27760 * gnulib-tool: New file.
27761 * MODULES.html.sh: New file.
27763 2002-12-21 Karl Berry <karl@gnu.org>
27765 * doc/fdl.texi: update to version 1.2.
27767 2002-12-19 Karl Berry <karl@gnu.org>
27769 * config/config.guess: update from prep.
27771 2002-12-18 Bruno Haible <bruno@clisp.org>
27773 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
27774 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
27776 2002-12-17 Bruno Haible <bruno@clisp.org>
27778 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
27779 stdlib.h, string.h.
27781 2002-12-17 Bruno Haible <bruno@clisp.org>
27783 * lib/canon-host.c (strdup): Remove unused declaration.
27785 * lib/fsusage.c: Include full_read.h.
27786 (get_fs_usage): Use full_read instead of safe_read.
27788 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
27790 2002-12-12 Karl Berry <karl@gnu.org>
27792 * config/config.guess: update from prep.
27794 2002-12-11 Bruno Haible <bruno@clisp.org>
27796 * m4/setenv.m4: New file, from gettext-0.11.5.
27798 2002-12-11 Bruno Haible <bruno@clisp.org>
27800 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
27802 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
27805 2002-12-11 Bruno Haible <bruno@clisp.org>
27807 * setenv.c (alloca): Fall back to malloc.
27808 (freea): New macro.
27809 (setenv): Use freea() to free memory allocated with alloca().
27811 2002-11-13 Bruno Haible <bruno@clisp.org>
27813 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
27814 function declarations.
27815 * unsetenv.c (unsetenv): Likewise.
27817 2002-03-04 Bruno Haible <bruno@clisp.org>
27819 Portability to AIX 4.3.3.
27820 * unsetenv.c: New file, extracted from setenv.c.
27821 * setenv.c: Move the unsetenv() function to unsetenv.c.
27823 2001-12-20 Bruno Haible <bruno@clisp.org>
27825 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
27826 use malloc instead. For SunOS 4.
27828 2001-12-11 Bruno Haible <bruno@clisp.org>
27830 * setenv.c: Declare alloca.
27831 (compar_fn_t): New typedef.
27832 (KNOWN_VALUE, STORE_VALUE): Use it.
27834 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
27837 2002-12-10 Paul Eggert <eggert@twinsun.com>
27839 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
27840 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
27841 Choose values that are less likely to collide with system fnmatch
27843 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
27844 defined (e.g., a pure POSIX system).
27845 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
27846 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
27848 2002-12-06 Paul Eggert <eggert@twinsun.com>
27850 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
27851 a pain in practice to deal with generated m4 files. This change
27852 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
27854 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
27855 and jm-glibc-io.m4, as they are no longer a special case.
27856 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
27857 kludge and the auto-generation stuff. Check only whether the
27858 functions are declared, not whether they exist, since older hosts
27859 that don't declare the functions can't use the optimization anyway.
27861 2002-12-06 Jim Meyering <jim@meyering.net>
27863 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
27865 Merge in changes from libc's misc/error.c, in preparation
27866 for the merge of gnulib's changes back into libc.
27868 * lib/error.c (_): Define only if not already defined.
27869 Move definition to follow all #include directives.
27870 Include unlocked-io.h only if !_LIBC.
27871 [_LIBC]: Include <libio/libioP.h>.
27872 [USE_IN_LIBIO]: Include <libio/iolibio.h>
27873 (fflush): Tweak definition to use INTUSE.
27876 2002-12-05 Paul Eggert <eggert@twinsun.com>
27878 * lib/alloca.c [defined emacs]: Include "lisp.h".
27879 (xalloc_die) [defined emacs]: New macro.
27880 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
27881 [! defined emacs]: Include <xalloc.h>.
27882 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
27883 (pointer): Typedef to POINTER_TYPE *.
27884 (malloc): Remove decl; we now always use xmalloc.
27885 (alloca): Use old-style definition, since Emacs needs this.
27886 Check for arithmetic overflow when computing combined size.
27888 2002-12-04 Paul Eggert <eggert@twinsun.com>
27890 Do not generate unlocked-io.h automatically, since it's easier to
27891 maintain it by hand.
27893 * lib/unlocked-io.h: New file, from GNU diffutils,
27894 but with proper copyright notice and attribution.
27895 * lib/gen-uio: Remove.
27896 * lib/Makefile.am: Add copyright notice.
27897 (libfetish_a_SOURCES): Add unlocked-io.h.
27898 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
27899 (DISTCLEANFILES, io_functions): Remove macros.
27900 (EXTRA_DIST): Remove gen_uio.
27901 (unlocked-io.h): Remove rule.
27903 2002-12-04 Jim Meyering <jim@meyering.net>
27905 Reflect the fact that stat.c and lstat.c are no longer generated.
27906 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
27907 (DISTCLEANFILES): Likewise.
27908 (EXTRA_DIST): Likewise.
27909 (all_local): Don't depend on stat.c or lstat.c.
27910 (stat.c, lstat.c): Remove rules.
27911 (EXTRA_DIST): Remove xstat.in.
27913 * lib/xstat.in: Remove file. Contents moved into stat.c.
27914 * lib/stat.c: New file. Contents mostly from xstat.in.
27915 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
27916 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
27918 * lib/safe-read.c: Rework so that it may serve to define safe_write,
27920 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
27922 2002-12-03 Jim Meyering <jim@meyering.net>
27924 * lib/safe-read.c, safe-write.c: Change variable names and comments,
27925 but not semantics, to minimize the differences between these two files.
27926 (safe_read): Change comment to mention SAFE_READ_ERROR.
27928 * lib/safe-read.c (IS_EINTR): Define.
27929 (safe_read): Use IS_EINTR in place of in-function cpp directives.
27931 2002-12-02 Jim Meyering <jim@meyering.net>
27933 * lib/safe-read.c (EINTR): Define.
27934 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
27935 (INT_MAX): Provide fallback.
27936 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
27938 * lib/safe-read.h (SAFE_READ_ERROR): Define.
27940 2002-12-02 Bruno Haible <bruno@clisp.org>
27942 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
27943 Define, taken from safe-read.c.
27944 (INT_MAX): Provide fallback.
27945 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
27946 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
27948 * lib/safe-read.c (EINTR): Remove definition.
27949 (safe_read): Don't use EINTR if it is absent.
27951 2002-12-01 Jim Meyering <jim@meyering.net>
27953 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
27955 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
27957 2002-11-27 Paul Eggert <eggert@twinsun.com>
27959 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
27960 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
27961 with `if (! (value < limit)) abort ();', for readability.
27963 2002-11-26 Karl Berry <karl@gnu.org>
27965 * lib/strdup.c: copy from libc again, with jim's ok.
27966 * lib/.cppi-disable: re-add strdup.c
27968 2002-11-25 Karl Berry <karl@gnu.org>
27970 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
27971 instead of "strtol.c".
27973 2002-11-25 Karl Berry <karl@gnu.org>
27975 * config/install-sh: update from automake for variable quoting, $0 in
27978 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
27979 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
27982 2002-11-25 Jim Meyering <jim@meyering.net>
27984 * lib/mktime.c: Sync from libc, now that it has the latest fix.
27986 2002-11-24 Karl Berry <karl@gnu.org>
27988 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
27989 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
27991 2002-11-24 Jim Meyering <jim@meyering.net>
27993 Update from coreutils:
27995 * lib/mktime.c: Merge in changes from libc.
27997 Avoid a link-time failure on some Linux systems.
27998 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
28000 (__mon_yday): Declare with the STATIC attribute.
28001 (__mktime_internal): Likewise.
28002 Based on a report from Greg Schafer.
28004 2002-11-23 Jim Meyering <jim@meyering.net>
28006 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
28007 Use `unsigned', not `int', as type of index.
28009 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
28011 * lib/fsusage.c: Remove unneeded parentheses around operands of
28014 2002-11-22 Paul Eggert <eggert@twinsun.com>
28016 * lib/quotearg.h: Allow multiple inclusion by surrounding with
28017 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
28018 so that we can be included first.
28019 (PARAMS): Remove; we now assume C89 or later. All uses removed.
28020 * lib/quotearg.c: Include quotearg.h immediately after config.h.
28021 No need to include stddef.h or sys/types.h any more.
28022 Surround local include files with "", not "<>".
28023 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
28024 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
28025 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
28026 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
28027 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
28028 (ISPRINT): Remove; no longer needed now that we assume C89.
28030 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
28033 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
28034 quotearg_char): Use SIZE_MAX rather than
28035 (size_t) -1 when we are talking about "infinity".
28037 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
28039 2002-11-22 Paul Eggert <eggert@twinsun.com>
28041 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
28042 hint that one should use `if (! x) abort ();' rather than `assert
28043 (x);', and anyway it's one less thing to worry about configuring.
28044 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
28045 hash_rehash, hash_insert): Use abort rather than assert.
28047 2002-11-22 Bruno Haible <bruno@clisp.org>
28049 * lib/safe-read.h: Assume C89. Add comments.
28050 (safe_read): Change return type to size_t.
28051 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
28052 byte counts > SSIZE_MAX correctly.
28053 * lib/safe-write.h: New file.
28054 * lib/safe-write.c: New file.
28055 * lib/full-read.h: New file.
28056 * lib/full-read.c: New file.
28057 * lib/full-write.h: Assume C89. Add comments.
28058 * lib/full-write.c: Include safe-write.h.
28059 (full_write): Rewritten to use safe_write.
28060 Suggested by Jim Meyering and Paul Eggert.
28062 2002-11-21 Jim Meyering <jim@meyering.net>
28064 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
28066 Merge in changes from the coreutils.
28068 2002-09-25 Paul Eggert <eggert@twinsun.com>
28069 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
28071 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
28072 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
28073 int. Work more efficiently if X is the same width as uintmax_t.
28074 Do not compare X to -1, to avoid bogus compiler warning.
28075 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
28076 Don't assume that f_frsize and f_bsize are the same type.
28078 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
28079 warning on FreeBSD.
28081 * lib/makepath.c (make_path): Restore umask *before* creating the final
28083 (make_path): Minor reformatting.
28085 * lib/xmalloc.c: Adjust to work with new autoconf macros,
28086 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
28087 HAVE_MALLOC/HAVE_REALLOC.
28089 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
28090 dummy ones. At least on GNU/Linux systems, `auto' means something
28092 From Michael Stone.
28094 2002-11-21 Bruno Haible <bruno@clisp.org>
28096 Remove case insensitive option matching.
28097 * lib/argmatch.h (argcasematch): Remove declaration.
28098 (ARGCASEMATCH): Remove macro.
28099 (__xargmatch_internal): Remove case_sensitive argument.
28100 (XARGMATCH): Update.
28101 (XARGCASEMATCH): Remove macro.
28102 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
28103 case_sensitive argument.
28104 (argcasematch): Remove function.
28105 (__xargmatch_internal): Remove case_sensitive argument.
28106 (main): Use XARGMATCH instead of XARGCASEMATCH.
28108 * lib/xmalloc.c: Change compile-time error message. Add comment about
28109 required autoconf version.
28111 2002-11-20 Paul Eggert <eggert@twinsun.com>
28113 Merge argmatch cleanups from Bison. Assume C89.
28115 * lib/argmatch.c: Include config.h here, not in argmatch.h.
28116 Include stdlib.h, for EXIT_FAILURE.
28117 Always include <string.h>, since we assume C89.
28118 (EXIT_FAILURE): Remove pre-C89 bug workaround.
28119 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
28120 Include <stddef.h> instead, since it's all we need for size_t.
28121 (PARAMS): Remove. All uses removed.
28122 (ARRAY_CARDINALITY): Do not bother to #undef.
28123 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
28124 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
28125 Remove unnecessary parentheses.
28126 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
28127 Insert necessary parentheses.
28128 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
28129 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
28131 2002-11-19 Bruno Haible <bruno@clisp.org>
28133 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
28134 * lib/mbswidth.h: Include <stddef.h>, for size_t.
28136 * lib/mbswidth.h (PARAMS): Remove macro.
28137 (mbswidth, mbsnwidth): Use ANSI C function declarations.
28138 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
28140 * lib/gcd.h (PARAMS): Remove macro.
28141 (gcd): Use ANSI C function declarations.
28142 * lib/gcd.c (gcd): Likewise.
28144 2002-11-15 Bruno Haible <bruno@clisp.org>
28146 * lib/strcspn.c: Include <stddef.h>.
28147 (strcspn): Use ANSI C function declaration. Change return type to
28149 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
28150 (strpbrk): Use NULL.
28151 * lib/strpbrk.h (PARAMS): Remove macro.
28152 (strpbrk): Use ANSI C function declaration.
28153 * lib/strstr.c: Don't include <sys/types.h>.
28154 * lib/strstr.h (PARAMS): Remove macro.
28155 (strstr): Use ANSI C function declarations.
28157 2002-11-14 Karl Berry <karl@gnu.org>
28159 * config/mkinstalldirs: `do' on separate line, instead of
28162 2002-11-06 Bruno Haible <bruno@clisp.org>
28164 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
28165 * lib/gcd.c (gcd): Likewise.
28167 2002-11-05 Bruno Haible <bruno@clisp.org>
28169 * lib/gcd.h: New file, from gettext-0.11.5.
28170 * lib/gcd.c: New file, from gettext-0.11.5.
28172 2002-11-05 Bruno Haible <bruno@clisp.org>
28174 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
28175 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
28176 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
28177 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
28179 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
28181 * lib/makepath.c: Include gettext.h instead of <locale.h> and
28184 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
28185 * lib/human.c: Include gettext.h instead of <libintl.h>.
28186 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
28187 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
28188 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
28189 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
28190 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
28191 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
28192 (textdomain): Remove definition.
28193 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
28195 * lib/long-options.c: Remove include of <libintl.h> and definition of
28197 * lib/same.c: Remove include of <libintl.h> and definition of _.
28199 2002-11-04 Owen Taylor <otaylor@redhat.com>
28201 * lib/config.charset: A few additions for Solaris.
28203 2002-11-04 Bruno Haible <haible@clisp.cons.org>
28205 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
28206 * lib/localcharset.c (locale_charset): Declare as extern "C".
28208 2002-11-04 Bruno Haible <haible@clisp.cons.org>
28210 * lib/config.charset: msdos in uk_UA uses CP1125.
28212 2002-11-04 Bruno Haible <bruno@clisp.org>
28214 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
28215 * lib/strcase.h: New file, from GNU gettext-0.11.5.
28216 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
28217 * lib/strstr.h: New file, from GNU gettext-0.11.5.
28218 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
28220 2002-11-04 Bruno Haible <bruno@clisp.org>
28222 * lib/localcharset.c (locale_charset): Don't return an empty string.
28224 2002-11-04 Bruno Haible <bruno@clisp.org>
28226 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
28229 2002-11-04 Bruno Haible <bruno@clisp.org>
28231 * lib/config.charset: Update for newest glibc. Add canonical names
28232 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
28234 2002-11-04 Bruno Haible <bruno@clisp.org>
28236 * lib/config.charset: Add support for NetBSD.
28238 2002-11-04 Bruno Haible <bruno@clisp.org>
28240 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
28242 2002-11-01 Bruno Haible <bruno@clisp.org>
28244 * configure.in: Add AC_CONFIG_AUX_DIR call.
28245 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
28247 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
28249 2002-09-28 Karl Berry <karl@gnu.org>
28251 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
28252 installed automake until the next release, since changes have been
28255 2002-09-25 Karl Berry <karl@gnu.org>
28257 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
28258 * lib/getopt*: copy from libc/posix.
28259 * lib/gettext.h: copy from gettext.
28260 * lib/.cppi-disable: add strdup.c, gettext.h.
28262 2002-09-25 Karl Berry <karl@gnu.org>
28264 * config/srclist.txt: enable gettext.h check.
28265 * config/config.{guess,sub}: update from prep.
28266 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
28267 from automake 1.6.3.
28270 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
28272 * regex.c (PATFETCH): Remove the translating fetch.
28273 (PATFETCH_RAW): Rename to PATFETCH.
28274 (set_image_of_range): New fun.
28275 (SET_RANGE_TABLE_WORK_AREA): Use it.
28276 (regex_compile): Don't translate the pattern chars so eagerly.
28277 Only do it when inserting an `exactn' bytecode or when handling
28279 (mutually_exclusive_p): Avoid empty statement.
28281 2002-07-06 Jim Meyering <meyering@lucent.com>
28283 * m4/README: Don't mention Makefile.am.in.
28284 Outline how I've tested changes to .m4 files. Yep, it's a pain.
28286 2002-07-01 Jim Meyering <meyering@lucent.com>
28288 * lib/c-stack.c: Include sys/time.h.
28289 From Volker Borchert.
28291 2002-06-26 Paul Eggert <eggert@twinsun.com>
28293 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
28295 2002-06-26 Paul Eggert <eggert@twinsun.com>
28297 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
28298 New macro. Use it uniformly instead of
28299 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
28300 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
28301 reported by Vin Shelton.
28303 2002-06-22 Paul Eggert <eggert@twinsun.com>
28305 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
28306 Do not assume SA_SIGINFO behavior.
28307 Bug reported by Jim Meyering on NetBSD 1.5.2.
28309 2002-06-22 Jim Meyering <meyering@lucent.com>
28311 * m4/c-stack.m4: New file, from diffutils-2.8.2.
28312 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
28314 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
28315 now that configure.ac uses AC_GNU_SOURCE.
28316 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
28317 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
28319 Update to latest tools. Suggestions from Paul Eggert.
28320 * m4/stdbool.m4: New file, from diffutils-2.8.2.
28321 * m4/gnu-source.m4: Update from diffutils-2.8.2.
28322 * m4/fnmatch.m4: Likewise.
28323 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
28324 to AC_HEADER_STDBOOL
28326 2002-06-22 Jim Meyering <meyering@lucent.com>
28328 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
28329 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
28331 2002-06-22 Jim Meyering <meyering@lucent.com>
28333 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
28335 * lib/exitfail.c, exitfail.h: Likewise.
28336 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
28338 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
28340 (EXTRA_DIST): Add fnmatch_loop.c.
28341 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
28343 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
28344 * lib/fnmatch.c: Update from diffutils-2.8.2.
28345 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
28346 * lib/fnmatch.h: Remove file.
28348 2002-06-21 Jim Meyering <meyering@lucent.com>
28350 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
28351 * m4/mbrtowc.m4: Likewise.
28353 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
28354 * m4/mbswidth.m4: Reflect name change:
28355 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
28356 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
28358 * m4/lib-link.m4: Update from gettext-0.11.2.
28359 * m4/gettext.m4: Likewise.
28361 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
28362 From Alfred M. Szmidt.
28364 2002-06-18 Paul Eggert <eggert@twinsun.com>
28366 * lib/file-type.h: Report an error if neither S_ISREG nor
28367 S_IFREG is defined, instead of using a test specific to glibc
28368 2.2. This should be safe, since POSIX requires S_ISREG and
28369 Unix Version 7 had S_IFREG. We don't need to check for
28370 <sys/types.h> since we don't use any symbols that it defines.
28372 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
28374 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
28375 $@-t, so that each temporary file name is unique and valid in the first
28376 8 characters, for operation under DOS.
28378 2002-06-15 Paul Eggert <eggert@twinsun.com>
28380 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
28382 2002-06-15 Jim Meyering <meyering@lucent.com>
28384 Work even with DJGPP 2.03, which lacks support for symlinks.
28386 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
28388 * lib/lchown.c (S_ISLNK): Likewise.
28390 2002-06-15 Jim Meyering <meyering@lucent.com>
28392 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
28393 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
28394 have been included before this file.
28396 2002-06-14 Jim Meyering <meyering@lucent.com>
28398 * lib/file-type.h: Use the version from diffutils-2.8.2.
28399 * lib/file-type.c: Likewise.
28401 2002-06-07 Jim Meyering <meyering@lucent.com>
28403 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
28404 They're needed at least for NetBSD 1.5.2.
28405 ($statxfs_includes): Include those same headers.
28406 ($statxfs_includes): Include sys/vfs.h if available.
28407 ($statxfs_includes): Likewise for sys/statvfs.h.
28408 Check for the following members in both structs statfs and statvfs:
28409 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
28411 2002-06-01 Jim Meyering <meyering@lucent.com>
28413 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
28414 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
28416 2002-05-28 Jim Meyering <meyering@lucent.com>
28418 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
28419 Reported by Volker Borchert.
28421 2002-05-27 Jim Meyering <meyering@lucent.com>
28423 Fix a problem seen only on nonconforming systems whereby ls.c's
28424 use of localtime, and then of gettimeofday would cause trouble:
28425 the localtime call used to initialize rpl_gettimeofday's save
28426 mechanism would clobber ls's current local time information so
28427 that in any long listing the first file would always be listed
28428 with date 1970-01-01. Analysis by Volker Borchert.
28430 * lib/gettimeofday.c (localtime): Undefine.
28431 (rpl_localtime): New function.
28433 2002-05-27 Jim Meyering <meyering@lucent.com>
28435 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
28438 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
28439 use the replacement function; it wouldn't resolve at link time.
28440 Reported by Volker Borchert.
28442 2002-05-22 Jim Meyering <meyering@lucent.com>
28444 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
28446 * lib/file-type.h: New file.
28447 * lib/file-type.c (file_type): New file/function. Extracted from
28450 2002-04-30 Jim Meyering <meyering@lucent.com>
28452 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
28454 2002-04-29 Paul Eggert <eggert@twinsun.com>
28456 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
28458 2002-04-29 Paul Eggert <eggert@twinsun.com>
28460 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
28461 Do not check for alloca.h (no longer used) or stdbool.h (was never
28462 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
28464 2002-04-29 Paul Eggert <eggert@twinsun.com>
28466 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
28468 2002-04-29 Jim Meyering <meyering@lucent.com>
28470 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
28471 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
28472 Use AC_FUNC_STRNLEN here instead.
28474 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
28475 With autoconf-2.53a, it's part of AC_PROG_CC.
28477 2002-04-28 Paul Eggert <eggert@twinsun.com>
28479 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
28480 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
28482 2002-04-28 Paul Eggert <eggert@twinsun.com>
28484 * lib/sig2str.h, lib/sig2str.c: New files.
28485 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
28487 2002-04-28 Paul Eggert <eggert@twinsun.com>
28489 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
28490 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
28491 of 127, since 64 is the largest conceivable number for ancient
28493 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
28495 2002-04-28 Jim Meyering <meyering@lucent.com>
28497 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
28499 2002-04-24 Jim Meyering <meyering@lucent.com>
28501 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
28502 (jm_PREREQ): Use it.
28504 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
28505 mach/mach.h fcntl.h.
28506 Check for this function: setlocale.
28508 2002-04-24 Jim Meyering <meyering@lucent.com>
28510 * lib/gettext.h: New file, from Gettext.
28511 * lib/Makefile.am (INCLUDES): Remove -I../intl.
28512 (libfetish_a_SOURCES): Add gettext.h.
28514 2002-04-16 Jim Meyering <meyering@lucent.com>
28516 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
28517 ut_pid, ut_id, ut_exit.
28519 2002-04-16 Jim Meyering <meyering@lucent.com>
28521 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
28522 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
28523 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
28525 2002-04-12 Jim Meyering <meyering@lucent.com>
28527 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
28528 now-bogus check for f_type in sys/mount.h. Instead, just test for the
28529 existence of the getmntinfo function. Needed for Darwin 5.3.
28531 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
28532 This is necessary at least on Darwin 5.3.
28534 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
28535 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
28536 strnlen.o in the library, and that makes some versions of ranlib
28539 2002-04-12 Jim Meyering <meyering@lucent.com>
28541 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
28543 2002-04-09 Jim Meyering <meyering@lucent.com>
28545 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
28546 to be more precise. Rather than saying we're checking whether the
28547 function `works', say what we're testing.
28548 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
28549 Reported by Bruno Haible.
28551 2002-03-10 Jim Meyering <meyering@lucent.com>
28553 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
28554 Suggestion from Santiago Vila.
28556 2002-03-08 Jim Meyering <meyering@lucent.com>
28558 * lib/rename.c: Mention that this wrapper is needed also on
28559 mips-dec-ultrix4.4 systems.
28561 2002-03-02 Jim Meyering <meyering@lucent.com>
28563 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
28564 not HAVE_CLOCK_SETTIME.
28566 2002-02-27 Paul Eggert <eggert@twinsun.com>
28568 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
28569 Check for clock_settime.
28571 2002-02-27 Paul Eggert <eggert@twinsun.com>
28573 * lib/nanosleep.h: Rename to....
28574 * lib/timespec.h: New name for nanosleep.h. All uses changed.
28576 * lib/gettime.c: New file.
28577 * lib/settime.c: New file.
28578 * lib/stime.c: Remove.
28580 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
28581 timespec.h. Remove nanosleep.h.
28583 2002-02-25 Paul Eggert <eggert@twinsun.com>
28585 * m4/acl.m4: New file.
28586 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
28587 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
28589 2002-02-25 Paul Eggert <eggert@twinsun.com>
28591 * lib/acl.c, lib/acl.h: New files.
28592 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
28594 2002-02-24 Jim Meyering <meyering@lucent.com>
28596 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
28597 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
28598 cause trouble. Reported by Nelson Beebe.
28600 2002-02-23 Paul Eggert <eggert@twinsun.com>
28602 * lib/path-concat.c (xpath_concat): Reorder code to pacify
28603 compilers that don't know that xalloc_die never returns.
28605 2002-02-20 Jim Meyering <meyering@lucent.com>
28607 * lib/getdate.c: Regenerate using bison-1.33.
28609 2002-02-17 Jim Meyering <meyering@lucent.com>
28611 * config/config.guess (main): Don't use `head -1'; it's no longer
28612 portable. Use `sed 1q' instead.
28614 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
28616 * m4/codeset.m4: Upgrade to gettext-0.11.
28617 * m4/gettext.m4: Upgrade to gettext-0.11.
28618 * m4/glibc21.m4: Upgrade to gettext-0.11.
28619 * m4/iconv.m4: Upgrade to gettext-0.11.
28620 * m4/isc-posix.m4: Upgrade to gettext-0.11.
28621 * m4/lcmessage.m4: Upgrade to gettext-0.11.
28622 * m4/lib-ld.m4: New file, from gettext-0.11.
28623 * m4/lib-link.m4: New file, from gettext-0.11.
28624 * m4/lib-prefix.m4: New file, from gettext-0.11.
28625 * m4/progtest.m4: Upgrade to gettext-0.11.
28627 2002-02-15 Paul Eggert <eggert@twinsun.com>
28629 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
28630 (jm_PREREQ): Use it.
28632 2002-02-15 Paul Eggert <eggert@twinsun.com>
28634 * lib/posixver.c, lib/posixver.h: New files.
28635 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
28637 2002-02-02 Paul Eggert <eggert@twinsun.com>
28638 Bruno Haible <bruno@clisp.org>
28640 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
28641 (fwrite_success_callback): New declaration.
28642 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
28643 print_unicode_char. Call failure callback instead of error.
28644 (fwrite_success_callback): New function.
28645 (exit_failure_callback): New function.
28646 (fallback_failure_callback): New function.
28647 (print_unicode_char): Call unicode_to_mb.
28649 2002-01-26 Jim Meyering <meyering@lucent.com>
28651 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
28652 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
28654 2002-01-26 Jim Meyering <meyering@lucent.com>
28656 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
28658 2002-01-22 Paul Eggert <eggert@twinsun.com>
28660 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
28662 2002-01-22 Jim Meyering <meyering@lucent.com>
28664 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
28665 Otherwise, some versions of automake would omit the rule that makes
28666 Makefile from Makefile.in.
28668 2002-01-21 Paul Eggert <eggert@twinsun.com>
28670 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
28671 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
28672 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
28673 (memcoll): Set errno to zero if there is no error.
28675 * lib/quotearg.c (quotearg_buffer_restyled):
28676 Fix bug with quoting buffers containing NUL when backslashing escapes.
28677 This bug was exposed by the other changes in this patch.
28678 (quotearg_n_options): New arg ARGSIZE.
28679 All callers changed.
28680 (quoting_options_from_style): New function.
28681 (quotearg_n_style): Use it.
28682 (quotearg_n_style_mem): New function.
28684 * lib/quotearg.h (quotearg_n_style_mem): New function.
28686 2002-01-19 Jim Meyering <meyering@lucent.com>
28688 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
28689 Remove useless quotes: DF_PROG="df".
28690 * m4/strnlen.m4: New file.
28692 2002-01-16 Paul Eggert <eggert@twinsun.com>
28694 * lib/backupfile.c (ISDIGIT): Comment fix.
28695 * lib/getdate.y (ISDIGIT): Likewise.
28696 * lib/posixtm.c (ISDIGIT, year): Likewise.
28697 * lib/strverscmp.c (ISDIGIT): Likewise.
28698 * lib/userspec.c (ISDIGIT): Likewise.
28700 2002-01-16 Jim Meyering <meyering@lucent.com>
28702 * lib/getdate.y: Add three semicolons, each just before a closing
28703 brace. Bison (as of version 1.31) no longer papers over that mistake.
28705 2002-01-05 Jim Meyering <meyering@lucent.com>
28707 * lib/version-etc.c (version_etc_copyright): Update copyright year.
28709 2001-12-19 Paul Eggert <eggert@twinsun.com>
28711 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
28712 not silently exit merely because the output buffer happens to
28713 have nothing pending.
28715 2001-12-18 Paul Eggert <eggert@twinsun.com>
28717 See the big note in ../ChangeLog.
28718 * lib/human.c (suffixes): Prefer K to k for 1024.
28719 (generate_suffix_backwards): New function.
28720 (human_readable_inexact): Use it.
28721 * lib/xstrtol.c (__xstrtol): If there is no number but there
28722 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
28723 Accept 'K' as well as 'k'.
28725 2001-12-15 Jim Meyering <meyering@lucent.com>
28727 * lib/regex.h (__restrict_arr): Update from libc.
28729 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
28730 as `remote' if the name starts with `//'. Suggested by Michael Stone.
28733 2001-12-14 Jim Meyering <meyering@lucent.com>
28735 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
28736 Suggestion from Bruno Haible.
28738 2001-12-10 Jim Meyering <meyering@lucent.com>
28740 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
28741 xrealloc, Instead, include "xalloc.h".
28742 (initbuffer): Don't cast xmalloc return value to char*.
28743 (readline): Reword comment.
28744 Don't cast xrealloc return value to char*
28745 Return NULL, not 0.
28747 2001-12-09 Jim Meyering <meyering@lucent.com>
28749 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
28750 about `signed and unsigned type in conditional expression'.
28751 * lib/posixtm.c (posix_time_parse): Likewise.
28753 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
28755 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
28756 to avoid a pedantic warning.
28758 * lib/getstr.c: Don't include assert.h.
28759 (getstr): Remove warning-evoking assertions.
28760 Return -1 if offset parameter is out of bounds.
28761 Change the type of a local from int to size_t.
28763 * lib/strftime.c (my_strftime_localtime_r): Include this function
28764 definition in the `#if ! HAVE_TM_GMTOFF' block.
28766 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
28767 Include xalloc.h instead.
28769 2001-12-02 Jim Meyering <meyering@lucent.com>
28771 * lib/tempname.c: Don't declare getenv, thus reverting the change of
28772 2001-11-18. It's no longer necessary, now that stdlib.h is always
28775 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
28776 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
28778 2001-11-30 Akim Demaille <akim@epita.fr>
28780 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
28781 before being defined.
28783 2001-11-27 Paul Eggert <eggert@twinsun.com>
28785 * lib/quotearg.h (quotearg_n, quotearg_n_style):
28786 First arg is int, not unsigned.
28787 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
28788 (SIZE_MAX, UINT_MAX): New macros.
28789 (quotearg_n_options): Abort if N is negative.
28790 Avoid overflow check on hosts where size_t is 64 bits and int
28791 is 32 bits, as overflow is impossible there.
28792 Fix off-by-one typo that caused unnecessary reallocation.
28794 2001-11-27 Jim Meyering <meyering@lucent.com>
28796 * lib/tempname.c: Merge with version from libc.
28797 * lib/regex.c: Likewise.
28799 * lib/tempname.c: Include stdlib.h unconditionally. On some old
28800 systems for which STDC_HEADERS is 0, it was not included, resulting in
28801 a warning about an integer-to-pointer conversion problem with getenv.
28802 Reported by Volker Borchert.
28804 2001-11-26 Jim Meyering <meyering@lucent.com>
28806 * lib/gtod.h: Remove file.
28807 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
28808 * lib/gettimeofday.c: Don't include gtod.h.
28809 (GTOD_init): Remove function.
28810 (rpl_gettimeofday): Do its job here instead, rather than aborting.
28811 Suggestion from Volker Borchert.
28813 2001-11-23 Jim Meyering <meyering@lucent.com>
28815 * lib/hash.h (struct hash_table): Don't define here. Merely declare
28817 * lib/hash.c (struct hash_table): Define it here instead.
28819 2001-11-22 Jim Meyering <meyering@lucent.com>
28821 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
28823 2001-11-20 Jim Meyering <meyering@lucent.com>
28825 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
28826 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
28828 2001-11-19 Jim Meyering <meyering@lucent.com>
28830 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
28831 directory. Use "conftestXXXXXX" as the template.
28832 Suggestion from Paul Eggert.
28834 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
28835 immediately, so the test doesn't mistakenly hit the max-open-files
28838 2001-11-18 Paul Eggert <eggert@twinsun.com>
28840 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
28841 (TEMPORARIES): New macro.
28842 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
28843 removes an artificial limitation (e.g. HP-UX 10.20, where
28846 2001-11-18 Jim Meyering <meyering@lucent.com>
28848 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
28850 2001-11-18 Jim Meyering <meyering@lucent.com>
28852 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
28855 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
28856 files will be created before anything else.
28858 2001-11-17 Paul Eggert <eggert@twinsun.com>
28860 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
28861 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
28863 2001-11-17 Jim Meyering <meyering@lucent.com>
28865 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
28866 Prompted by a report from Bob Proulx.
28868 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
28869 Instead, require UTILS_FUNC_MKSTEMP.
28871 2001-11-17 Jim Meyering <meyering@lucent.com>
28873 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
28874 Now, that's done as part of AC_FUNC_STRTOD.
28876 2001-11-17 Jim Meyering <meyering@lucent.com>
28878 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
28879 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
28880 rather than group writable. Patch by Juan F. Codagnone.
28882 * lib/readtokens.c: Remove explicit declarations of xmalloc and
28883 xrealloc, Instead, include "xalloc.h".
28885 * lib/mountlist.c: Include unlocked-io.h after all system headers.
28886 Remove explicit declarations of xmalloc, xrealloc,
28887 and xstrdup. Instead, include "xalloc.h".
28889 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
28891 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
28893 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
28895 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
28896 Reported by Padraig Brady.
28898 * lib/mkstemp.c: #undef mkstemp.
28900 (rpl_mkstemp): Rename from mkstemp.
28903 2001-11-16 Jim Meyering <meyering@lucent.com>
28905 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
28906 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
28907 determine the amount of total physical memory, use pstat_getstatic.
28908 HPUX-11 doesn't define _SC_PHYS_PAGES.
28909 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
28910 If sysconf couldn't be used to determine the amount of available
28911 physical memory, use both pstat_getstatic and pstat_getdynamic.
28912 Based on a patch from Bob Proulx.
28914 2001-11-10 Jim Meyering <meyering@lucent.com>
28916 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
28917 (jm_PREREQ): Use it.
28919 2001-11-09 Jim Meyering <meyering@lucent.com>
28921 * m4/jm-macros.m4: Require autoconf-2.52f.
28922 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
28923 Use these AC_-prefixed names, not the AM_-prefixed ones.
28925 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
28927 2001-11-05 Jim Meyering <meyering@lucent.com>
28929 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
28931 2001-11-04 Jim Meyering <meyering@lucent.com>
28933 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
28936 2001-11-03 Jim Meyering <meyering@lucent.com>
28938 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
28941 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
28942 know the name of the variable in the macro definition.
28944 2001-11-03 Jim Meyering <meyering@lucent.com>
28946 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
28947 in argmatch_to_argument call.
28949 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
28952 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
28953 e.g., a fault due to an attempt to free a NULL pointer.
28955 2001-11-01 Jim Meyering <meyering@lucent.com>
28957 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
28958 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
28960 2001-11-01 Jim Meyering <meyering@lucent.com>
28962 * lib/dirfd.c, lib/dirfd.h: New files.
28963 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
28965 * lib/hash.c (hash_print) [TESTING]: Clean up.
28967 2001-10-22 Paul Eggert <eggert@twinsun.com>
28969 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
28970 to avoid a warning if -Wall.
28972 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
28975 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
28976 (per RMS's instructions, this is now the canonical source)
28977 * lgpl/, gpl/: New directories.
28979 2001-10-21 Paul Eggert <eggert@twinsun.com>
28981 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
28983 2001-10-21 Jim Meyering <meyering@lucent.com>
28985 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
28986 this code would end up calling gettext even in packages built
28987 with --disable-nls.
28988 * lib/getopt.c (_): Likewise.
28989 * lib/regex.c (_): Likewise.
28991 2001-10-20 Paul Eggert <eggert@twinsun.com>
28993 * m4/error.m4 (jm_PREREQ_ERROR):
28994 Do not invoke AC_CHECK_FUNCS with strerror_r, as
28995 AC_FUNC_STRERROR_R does that.
28996 Check for strerror declaration.
28998 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
28999 are supposed to have them these days.
29000 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
29001 Merge changes from latest Autoconf CVS.
29002 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
29003 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
29004 POSIX decided to standardize on the int flavor of strerror_r.
29006 2001-10-20 Paul Eggert <eggert@twinsun.com>
29008 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
29009 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
29010 Use strerror_r that is only a macro, even if it is not a function.
29011 (strerror): Check for HAVE_DECL_STRERROR before declaring.
29012 (private_strerror): Use prototypes, not old-style function definition.
29013 (print_errno_message): New function.
29014 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
29015 char*-flavored one.
29016 (error_tail, error, error_at_line): Use it.
29018 2001-10-11 Jim Meyering <meyering@lucent.com>
29020 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
29021 and quote_n (1, ... to avoid clobbering a buffer.
29023 2001-10-05 Jim Meyering <meyering@lucent.com>
29025 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
29027 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
29028 * lib/hash-pjw.h: New file.
29030 2001-09-30 Jim Meyering <meyering@lucent.com>
29032 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
29033 `struct fsstat' has the `f_fstypename' member.
29034 Use that to define FS_TYPE, which is now used to make
29035 the getfsstat link test tighter.
29037 2001-09-30 Jim Meyering <meyering@lucent.com>
29039 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
29040 Include <sys/ucred.h>, for Apple Darwin.
29041 Include sys/mount.h and sys/fs_types.h only if available.
29043 (read_filesystem_list): Use FS_TYPE.
29045 2001-09-29 Paul Eggert <eggert@twinsun.com>
29047 * lib/exclude.c (excluded_filename): 0 -> false, since it's
29050 2001-09-29 Jim Meyering <meyering@lucent.com>
29052 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
29053 [one-argument getmntent function]): Include stdio.h before mntent.h.
29054 SunOS 4.1.x needs it for the declaration of `FILE'.
29055 Patch by Volker Borchert.
29057 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
29058 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
29059 sys/fs_types.h, and make the link-test for getfsstat guard #include
29060 directives with appropriate #if HAVE_*_H tests so that we can
29061 detect getfsstat on Apple Darwin1.3.7 systems.
29062 Reported by Nelson Beebe.
29063 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
29065 2001-09-28 Paul Eggert <eggert@twinsun.com>
29067 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
29068 #defines strtoimax. Also treat the other strto* functions
29071 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
29072 Check for strtoul and strtoumax,
29073 as those declarations are made even in the signed case.
29074 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
29075 Likewise, for strtol and strtoimax.
29077 2001-09-28 Paul Eggert <eggert@twinsun.com>
29079 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
29080 #defines strtoimax. Also treat the other strto* functions
29083 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
29084 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
29085 (strtoimax, strtoumax): Do not declare if already defined as a macro.
29087 2001-09-26 Jim Meyering <meyering@lucent.com>
29089 Most macros in unlocked-io.h had the wrong number of arguments.
29090 * lib/gen-uio: New script.
29091 (USE_UNLOCKED_IO): Define to 1 if not already defined.
29092 * lib/unlocked-io.hin: Remove file.
29093 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
29094 rather than trying to embed it here.
29095 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
29096 Reported by Padraig Brady.
29098 2001-09-25 Volker Borchert <bt@teknon.de>
29100 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
29103 2001-09-24 Jim Meyering <meyering@lucent.com>
29105 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
29107 2001-09-23 Jim Meyering <meyering@lucent.com>
29109 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
29110 instead of the mere test for existence of mntent.h. The latter
29111 would get a false-positive on AIX 3.4 systems.
29112 In the outer getmntent if-block, don't die if neither of the getmntent
29113 tests succeeds. Instead, just fall through and continue with the
29116 2001-09-23 Jim Meyering <meyering@lucent.com>
29118 * lib/mountlist.c: Remove useless parentheses in #if directives.
29119 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
29120 the deprecated MOUNTED symbol is no longer defined in mntent.h.
29122 2001-09-22 Jim Meyering <meyering@lucent.com>
29124 * m4/gettext.m4: New file. From gettext.
29125 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
29126 * m4/progtest.m4: Likewise
29127 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
29128 * m4/glibc21.m4: Likewise.
29130 * m4/libintl.m4: Remove. No longer used.
29132 2001-09-22 Jim Meyering <meyering@lucent.com>
29134 * lib/localcharset.c: Update from latest gettext.
29135 * lib/config.charset: Likewise.
29137 2001-09-20 Jim Meyering <meyering@lucent.com>
29139 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
29141 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
29144 2001-09-20 Jim Meyering <meyering@lucent.com>
29146 * lib/xstrtol.c (strtoimax): Guard declaration with
29147 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
29148 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
29149 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
29150 (strtoumax): Likewise, for completeness (it wasn't necessary).
29152 2001-09-17 Paul Eggert <eggert@twinsun.com>
29154 * lib/strtoimax.c (HAVE_LONG_LONG):
29155 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
29156 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
29157 to work around bug in IBM C compiler.
29159 2001-09-17 Jim Meyering <meyering@lucent.com>
29161 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
29162 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
29163 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
29164 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
29165 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
29166 whenever the right hand side need not be expanded by the shell.
29168 2001-09-16 Paul Eggert <eggert@twinsun.com>
29170 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
29171 library. It's not correct, as some older glibcs are buggy.
29172 fnmatch wasn't fixed until glibc 2.2.
29174 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
29175 special shell magic here.
29177 2001-09-16 Jim Meyering <meyering@lucent.com>
29179 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
29180 * m4/jm-macros.m4: Require it.
29182 2001-09-16 Jim Meyering <meyering@lucent.com>
29184 * lib/mkdir.c: New file.
29186 2001-09-15 Jim Meyering <meyering@lucent.com>
29188 * m4/jm-macros.m4: Check for help2man.
29190 2001-09-11 Jim Meyering <meyering@lucent.com>
29192 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
29193 The body, by Paul Eggert, was moved here from configure.in.
29194 * m4/jm-macros.m4: Require UTILS_HOST_OS.
29196 2001-09-04 Paul Eggert <eggert@twinsun.com>
29198 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
29199 (jm_PREREQ): Use it.
29201 2001-09-04 Paul Eggert <eggert@twinsun.com>
29203 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
29204 Use ssize_t, not int, to store result of readlink.
29205 Check for ssize_t overflow as well as size_t overflow,
29206 as POSIX says the result of readlink is implementation-defined
29207 when ssize_t overflows.
29208 Remove unnecessary cast to char*.
29209 Use free+malloc instead of realloc, as the storage doesn't need
29210 to be preserved and it's clearer and can be more efficient that way.
29211 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
29212 * lib/xreadlink.h (xreadlink): Update prototype.
29214 2001-09-04 Paul Eggert <eggert@twinsun.com>
29216 * lib/xgetcwd.c: Revert some of the previous change; intead,
29217 fix the HAVE_GETCWD_NULL code to behave more like the
29218 !HAVE_GETCWD_NULL code used to.
29220 Include "xalloc.h".
29221 (xgetcwd): Do not return NULL when memory is exhausted; instead,
29224 2001-09-03 Paul Eggert <eggert@twinsun.com>
29226 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
29227 sys/param.h, as pathmax.h includes them.
29229 2001-09-03 Paul Eggert <eggert@twinsun.com>
29231 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
29232 (jm_PREREQ_XGETCWD): New macro.
29234 * m4/getcwd.m4: New file.
29236 2001-09-03 Paul Eggert <eggert@twinsun.com>
29238 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
29239 like the HAVE_GETCWD_NULL code.
29240 Include pathmax.h if not HAVE_GETCWD.
29241 Do not include xalloc.h.
29242 (INITIAL_BUFFER_SIZE): New symbol.
29243 Do not use xmalloc / xrealloc, since the caller is responsible for
29244 handling errors. Preserve errno around `free' during failure.
29245 Do not overrun buffer when using getwd.
29247 2001-09-03 Paul Eggert <eggert@twinsun.com>
29249 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
29250 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
29253 2001-09-03 Paul Eggert <eggert@twinsun.com>
29255 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
29256 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
29257 spotted by Jim Meyering.
29259 2001-09-03 Jim Meyering <meyering@lucent.com>
29261 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
29264 2001-09-02 Jim Meyering <meyering@lucent.com>
29266 * lib/error.c: Update from GNU libc.
29268 2001-09-01 Jim Meyering <meyering@lucent.com>
29270 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
29273 2001-09-01 Jim Meyering <meyering@lucent.com>
29275 * lib/xreadlink.c: New file.
29276 * lib/xreadlink.h: New file.
29277 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
29280 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
29281 doesn't conflict with sparc Solaris 7's definition in
29282 /usr/include/sys/int_types.h.
29284 * lib/exclude.c: Use `""', not `<>' to #include non-system header
29286 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
29287 and strncasecmp as r-values. Unixware didn't have declarations.
29289 2001-08-31 Paul Eggert <eggert@twinsun.com>
29291 * lib/xstrtol.h: Add copyright notice.
29292 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
29293 LONGINT_INVALID_SUFFIX_CHAR.
29295 2001-08-31 Paul Eggert <eggert@twinsun.com>
29297 * lib/xstrtol.c (strtoimax): New decl.
29299 2001-08-31 Paul Eggert <eggert@twinsun.com>
29301 * lib/xgetcwd.c: Don't include pathmax.h.
29302 Include stdlib.h and unistd.h if available.
29304 (xmalloc, xstrdup, free): Remove decls.
29305 (xgetcwd): Don't assume sizes fit in unsigned.
29306 Check for overflow when computing sizes.
29307 Simplify reallocation code.
29309 2001-08-31 Paul Eggert <eggert@twinsun.com>
29311 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
29312 a directory's st_size can have an arbitrary value, so the old
29313 usage could waste an arbitrary amount of memory. All uses
29315 * lib/savedir.h: Update prototype.
29317 2001-08-31 Paul Eggert <eggert@twinsun.com>
29319 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
29321 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
29324 Also, make the following further changes to make this file's
29325 configuration more similar to that of strtol.c:
29326 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
29327 (strtoumax, uintmax_t, strtoull, strtol): Remove.
29328 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
29329 (strtoimax): Renamed from strtoumax. All uses of unsigned values
29330 changed to signed values.
29332 And make the following changes as well:
29333 Fix copyright notice, as 1999 was missing.
29334 (verify): New macro.
29335 (strtoimax): Check sizes at compile-time, not run-time.
29336 Prefer strtol to strtoll if both work.
29337 (main): Remove; it was not that useful and was a pain to maintain.
29339 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
29341 2001-08-31 Jim Meyering <meyering@lucent.com>
29343 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
29344 Use an initial, malloc'd, buffer of length 128 rather than
29345 a statically allocated one of length 1024.
29347 2001-08-30 Paul Eggert <eggert@twinsun.com>
29349 Simplify code, partly by assuming autoconf 2.52 semantics.
29351 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
29353 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
29354 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
29356 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
29357 Move AC_REQUIRE to next-to-top level, to avoid confusion.
29358 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
29359 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
29360 jm_AC_HEADER_INTTYPES_H.
29361 * m4/jm-macros.m4 (jm_MACROS): Likewise.
29363 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
29365 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
29366 Quote first arg of AC_DEFUN.
29367 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
29368 since they are needed to parse the include file even if we need
29369 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
29370 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
29371 but with opposite signedness.
29373 2001-08-30 Paul Eggert <eggert@twinsun.com>
29375 Merge 'exclude' changes from tar 1.13.22.
29376 This fixes one or two unlikely storage allocation overflow bugs,
29377 but doesn't change user-visible behavior otherwise.
29379 2001-08-30 Paul Eggert <eggert@twinsun.com>
29381 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
29382 (jm_PREREQ_EXCLUDE): New macro.
29384 2001-08-30 Paul Eggert <eggert@twinsun.com>
29386 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
29389 2001-08-30 Paul Eggert <eggert@twinsun.com>
29391 * lib/hash.c: Remove '2001' from copyright notice.
29393 2001-08-30 Paul Eggert <eggert@twinsun.com>
29395 * lib/full-write.h: New file.
29396 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
29397 * lib/full-write.c: Correct credits, as cccp.c no longer
29398 exists and anyway it was so heavily changed from the old cccp
29399 code as to be unrecognizable. Include full-write.h.
29400 (full_write) Return size_t, with short writes meaning failure.
29401 All callers changed. This fixes a bug with large buffers
29403 * lib/utime.c: Include full-write.h.
29405 2001-08-30 Paul Eggert <eggert@twinsun.com>
29407 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
29408 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
29409 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
29410 Include if available.
29411 (<xalloc.h>): Include
29412 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
29413 (verify): New macro. Use it to verify that EXCLUDE macros do not
29414 collide with FNM macros.
29415 (struct patopts): New struct.
29416 (struct exclude): Use it, as exclude patterns now come with options.
29417 (new_exclude): Support above changes.
29418 (new_exclude, add_exclude_file):
29419 Initial size must now be a power of two to simplify overflow checking.
29420 (free_exclude, fnmatch_no_wildcards): New function.
29421 (excluded_filename): No longer requires options arg, as the options
29422 are determined by add_exclude. Now returns bool, not int.
29423 (excluded_filename, add_exclude):
29424 Add support for the fancy new exclusion options.
29425 (add_exclude, add_exclude_file): Now takes int options arg.
29426 Check for arithmetic overflow when computing sizes.
29427 (add_exclude_file): xrealloc might modify errno, so don't
29428 realloc until after errno might be used.
29430 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
29432 (free_exclude): New decl.
29433 (add_exclude, add_exclude_file): Now takes int options arg.
29434 (excluded_filename): No longer requires options arg, as the options
29435 are determined by add_exclude. Now returns bool, not int.
29437 2001-08-30 Paul Eggert <eggert@twinsun.com>
29439 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
29441 2001-08-27 Jim Meyering <meyering@lucent.com>
29443 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
29445 * lib/version-etc.c (N_): Remove definition.
29446 Revert most of last change.
29447 Instead, simply don't mark the `Copyright...' string for translation.
29448 Based on advice from Paul Eggert.
29450 * lib/strtoxmax.c: Tweak comment.
29452 2001-08-26 Jim Meyering <meyering@lucent.com>
29454 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
29456 * m4/xstrtoimax.m4: New file.
29457 * m4/xstrtoumax.m4: Add comments explaining why we
29458 AC_REPLACE_FUNCS(strtol).
29460 2001-08-26 Jim Meyering <meyering@lucent.com>
29462 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
29463 of copyright with `%s' so translators don't get an untranslated
29465 (COPYRIGHT_YEAR): Define.
29466 (version_etc): Use fprintf rather than fputs.
29467 Suggestion from Ulrich Drepper.
29469 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
29471 * lib/strtoll.c: New file, from GNU libc.
29472 * lib/xstrtoimax.c: New file.
29474 * lib/xstrtol.h: Add xstrtoimax.
29475 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
29476 * lib/strtoimax.c: New file. Likewise, but first define
29479 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
29481 * lib/strtoxmax.c: ... then renamed to this.
29483 2001-08-18 Paul Eggert <eggert@twinsun.com>
29485 * m4/inttypes.m4: Add AC_PREREQ(2.13).
29486 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
29487 (jm_AC_TYPE_INTMAX_T): New macro.
29488 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
29490 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
29492 * m4/longlong.m4: Renamed from ulonglong.m4.
29493 * m4/inttypes.m4: Renamed from inttypes_h.m4.
29494 * m4/uintmax_t.m4: Removed.
29496 2001-08-13 Paul Eggert <eggert@twinsun.com>
29498 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
29499 Port to Solaris 8, where 'sed' requires a space after the 'r'
29500 command, and where sh dislikes "$/". Clean up the spacing a bit.
29501 Redirect output to $tmp just once.
29503 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
29505 * lib/addext.c (<errno.h>): Include.
29506 (errno): Declare if not defined.
29507 (addext): Work correctly when pathconf returns -1 and leaves
29508 errno alone because there is no limit. Also, work even if
29509 pathconf returns a value greater than SIZE_MAX.
29511 2001-08-12 Jim Meyering <meyering@lucent.com>
29513 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
29514 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
29515 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
29516 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
29517 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
29518 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
29519 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
29520 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
29521 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
29522 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
29523 utime.m4, utimes.m4, xstrtoumax.m4:
29524 Quote the first argument in each use of AC_DEFUN.
29526 2001-08-12 Jim Meyering <meyering@lucent.com>
29528 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
29529 Simply `return getcwd (NULL, 0);'.
29530 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
29531 Use 1300 as initial value for length, not PATH_MAX.
29533 * lib/pathmax.h: Clean up cpp syntax.
29535 2001-08-12 Jim Meyering <meyering@lucent.com>
29537 * lib/gettimeofday.c: New file.
29538 * lib/gtod.h: New file.
29539 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
29541 2001-08-05 Jim Meyering <meyering@lucent.com>
29543 * m4/jm-macros.m4: Require autoconf-2.52.
29545 2001-08-04 Jim Meyering <meyering@lucent.com>
29547 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
29548 stmt, to get in sync with glibc.
29550 2001-08-03 Paul Eggert <eggert@twinsun.com>
29552 The following changes are from gettext 0.10.39 as maintained by
29555 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
29556 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
29557 with inverted sense. All uses changed.
29559 * lib/mbswidth.c: Don't include <limits.h>.
29560 Include <stdlib.h> and <string.h> unconditionally.
29561 (iswcntrl, mbsinit, ISCNTRL): New macros.
29562 (mbsnwidth): Use K&R style function declarations.
29563 Don't bother checking for MB_LEN_MAX == 1, since the compiler
29564 can optimize it when MB_CUR_MAX == 1.
29565 The width of control characters is zero, not 1.
29567 2001-08-03 Paul Eggert <eggert@twinsun.com>
29569 The following changes are from gettext 0.10.39 as maintained by
29570 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
29572 * m4/codeset.m4: Upgrade to serial AM1.
29573 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
29574 all uses changed. Quote first arg of AC_DEFUN.
29575 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
29577 * m4/iconv.m4: Upgrade to serial AM2.
29578 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
29579 Add --with-libconv-prefix.
29580 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
29581 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
29582 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
29583 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
29584 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
29586 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
29587 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
29588 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
29589 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
29590 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
29591 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
29592 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
29593 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
29594 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
29596 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
29599 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
29600 not the default value.
29602 2001-06-25 Bruno Haible <haible@clisp.cons.org>
29603 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
29604 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
29605 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
29606 Also check for iswcntrl, used for wcwidth fallback.
29607 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
29610 2001-08-03 Jim Meyering <meyering@lucent.com>
29612 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
29613 as it was in the original. Reported by Paul Eggert.
29615 2001-07-16 Jim Meyering <meyering@lucent.com>
29617 * m4/gettimeofday.m4: New file.
29618 Prompted by a report from Bernhard Baehr.
29620 2001-07-15 Jim Meyering <meyering@lucent.com>
29622 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
29623 stuff. Now it's in ../Makefile.cfg.
29625 2001-07-15 Jim Meyering <meyering@lucent.com>
29627 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
29628 (BUILT_SOURCES): Add unlocked-io.h.
29629 (io_functions): Define.
29630 (unlocked-io.h): New rule.
29631 (DISTCLEANFILES): Add unlocked-io.h.
29632 (all-local): Depend on unlocked-io.h, to ensure it is created.
29634 * lib/unlocked-io.hin: New file
29636 * lib/regex.c: Update from glibc.
29638 2001-07-05 Jim Meyering <meyering@lucent.com>
29640 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
29642 (libfetish_a_SOURCES): Put all .h files here instead.
29643 Remove a thus-exposed (better checks in automake) duplicate and
29644 two unnecessary .h files.
29646 2001-07-04 Jim Meyering <meyering@lucent.com>
29648 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
29649 that generates jm-glibc-io.m4 so that it doesn't trigger any make
29652 2001-07-02 Jim Meyering <meyering@lucent.com>
29654 The following changes were prompted by suggestions from Bruno Haible.
29656 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
29658 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
29659 definition of EXTRA_DIST.
29660 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
29661 ensure that the generated file is created/updated whenever the list
29662 of $(unlocked_functions) is changed.
29663 (jm-glibc-io.m4): New rule.
29664 (unlocked-io.h): New rule -- currently unused.
29666 2001-06-24 Jim Meyering <meyering@lucent.com>
29668 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
29669 unmatched right bracket, rather than kludging it with an extra,
29670 falsely-matching quote in a comment. Patch by Akim Demaille.
29672 2001-06-11 Jim Meyering <meyering@lucent.com>
29674 * lib/regex.c: Update from GNU libc.
29676 2001-05-27 Jim Meyering <meyering@lucent.com>
29678 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
29679 Check for ut_type in struct utmp.
29681 2001-05-27 Jim Meyering <meyering@lucent.com>
29683 * lib/readutmp.h (UT_TYPE): Define.
29685 2001-05-24 Jim Meyering <meyering@lucent.com>
29687 * lib/argmatch.c: Include "quote.h".
29688 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
29689 quote function. Reported by Göran Uddeborg.
29691 2001-05-22 Jim Meyering <meyering@lucent.com>
29693 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
29694 now that we use the package-supplied version unconditionally.
29695 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
29697 2001-05-21 Jim Meyering <meyering@lucent.com>
29699 * m4/regex.m4: Change a couple backticks to single quotes to avoid
29700 shell syntax errors.
29702 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
29704 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
29706 2001-05-20 Paul Eggert <eggert@twinsun.com>
29708 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
29709 Don't bother to check library strftime, since
29710 we'll be using our own my_strftime function anyway.
29711 Define my_strftime instead of strftime.
29713 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
29715 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
29716 which is not yet declared.
29718 2001-05-15 Jim Meyering <meyering@lucent.com>
29720 * m4/regex.m4: Use proper quoting so brackets appear in the test
29722 Reported by, and with help from, Bruno Haible.
29724 2001-05-13 Jim Meyering <meyering@lucent.com>
29726 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
29729 2001-05-11 Paul Eggert <eggert@twinsun.com>
29731 dirname code cleanup. base_name now behaves more compatibly
29732 with POSIX basename when given file names that have trailing
29733 slashes, and similarly for dir_name. Add new primitives
29734 base_len and dir_len. Put the directory-name-related decls
29737 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
29738 * lib/backupfile.c (base_name): Likewise.
29739 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
29740 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
29741 * lib/makepath.c (strip_trailing_slashes): Likewise.
29742 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
29743 ISSLASH): Likewise.
29744 * lib/rename.c (strip_trailing_slashes): Likewise.
29745 * lib/same.c (base_name): Likewise.
29746 * lib/stripslash.c (ISSLASH): Likewise.
29748 * lib/addext.c: Include <dirname.h> after size_t is defined.
29749 * lib/backupfile.c: Likewise.
29751 * lib/addext.c (addext): Use base_len to trim redundant
29752 trailing slashes instead of doing it ourselves.
29753 But do not trim the last slash if it is not redundant.
29755 * lib/backupfile.c (find_backup_file_name,
29756 max_backup_version): Use base_len instead of rolling it ourselves.
29757 Handle the case of "" and (on DOS) "C:" correctly.
29759 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
29760 needed. Include <string.h>, <dirname.h>.
29761 (base_name): Allow file names ending in slashes, other than names
29762 that are all slashes. In this case, return the basename followed
29763 by the slashes. This is more general, and can be used in places
29764 where the original base_name purposely had an assertion failure.
29765 (base_len): New function.
29767 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
29768 Do not include <assert.h>; no longer needed.
29770 (memrchr): Remove decl.
29771 (dir_name_r): Remove.
29772 (dir_len): Renamed from dirlen. All callers changed.
29773 Rewrite in terms of base_name, for simplicity and consistency.
29774 (dir_name): Never return NULL. All callers changed.
29775 Do not include <stdlib.h> in test program; no longer needed.
29776 return 0; is fine for test program.
29778 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
29780 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
29782 * lib/path-concat.c (path_concat): Use base_len to compute
29783 base length, not strlen; this means we cannot rely on memcpy
29786 * lib/same.c (STREQ): Remove.
29787 (same_name): Handle the case where the basename ends in trailing '/'.
29789 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
29790 a slash was stripped. Do not strip the last slash after a
29791 file system prefix.
29793 2001-05-11 Paul Eggert <eggert@twinsun.com>
29795 * lib/Makefile.am (libfetish_a_SOURCES):
29796 Add strftime.c, since we now compile it on all hosts.
29798 * lib/strftime.c (my_strftime):
29799 Define to nstrftime if emacs, but only if my_strftime is not defined.
29800 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
29801 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
29802 Add one more extra argument: a nanoseconds value.
29805 (my_strftime function): Add %N format.
29806 (emacs_strftimeu): Renamed from emacs_strftime,
29807 with extra ut argument.
29809 2001-05-09 Paul Eggert <eggert@twinsun.com>
29811 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
29813 2001-04-21 Jim Meyering <meyering@lucent.com>
29815 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
29818 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
29820 * m4/ftruncate.m4: Check for chsize.
29821 Link with ftruncate.o unconditionally if ftruncate is missing.
29822 This was required when cross-compiling to i586-mingw32msvc.
29824 2001-04-08 Jim Meyering <meyering@lucent.com>
29826 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
29827 recomputed; that's necessary when the offset spans a DST transition.
29828 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
29830 2001-04-02 Jim Meyering <meyering@lucent.com>
29832 * lib/regex.h, regex.c: Update from GNU libc.
29834 2001-03-24 Jim Meyering <meyering@lucent.com>
29836 * m4/jm-macros.m4: Require autoconf-2.49d.
29838 2001-03-20 Bruno Haible <haible@clisp.cons.org>
29840 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
29842 2001-03-19 Paul Eggert <eggert@twinsun.com>
29844 * lib/version-etc.c (version_etc_copyright): Update to 2001.
29846 2001-03-17 Jim Meyering <meyering@lucent.com>
29848 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
29849 now that the version in autoconf is equivalent.
29850 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
29852 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
29853 Suggestion from Akim Demaille.
29855 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
29856 (jm_PREREQ_TEMPNAME): New function.
29858 2001-03-16 Paul Eggert <eggert@twinsun.com>
29860 * lib/tempname.c (uint64_t): Define to uintmax_t if
29861 not defined, and if UINT64_MAX is not defined.
29862 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
29863 Reported by John David Anglin.
29865 2001-03-15 Bruno Haible <haible@clisp.cons.org>
29867 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
29868 resolve alias if codeset is empty.
29869 * lib/config.charset (BeOS): Use wildcard syntax.
29871 2001-03-13 Jim Meyering <meyering@lucent.com>
29873 * lib/path-concat.c (path_concat)
29874 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
29875 concatenating e.g., `C:' and `foo'.
29878 2001-03-06 Bruno Haible <haible@clisp.cons.org>
29880 * lib/localcharset.c (locale_charset): Don't use
29881 setlocale(LC_CTYPE,NULL). Don't return NULL.
29882 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
29884 2001-03-06 Bruno Haible <haible@clisp.cons.org>
29886 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
29887 support for DOS/DJGPP.
29889 2001-03-01 Paul Eggert <eggert@twinsun.com>
29891 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
29892 lacks mkstemp. Compile our own tempname.c if we compile our own
29893 mkstemp.c, as mkstemp relies on tempname.
29895 2001-03-01 Jim Meyering <meyering@lucent.com>
29897 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
29898 AH_VERBATIM really does output its argument verbatim.
29900 2001-02-28 Paul Eggert <eggert@twinsun.com>
29902 * lib/Makefile.am (libfetish_a_SOURCES):
29903 Add dup-safer.c, fopen-safer.c.
29904 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
29906 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
29907 * lib/unistd-safer.h: New files.
29909 2001-02-25 Paul Eggert <eggert@twinsun.com>
29911 The mkstemp replacement is taken from glibc 2.2.2, with some
29912 portability fixes for use outside glibc, as follows:
29914 * lib/tempname.c (struct_stat64): New macro.
29915 (direxists, __gen_tempname): Use it.
29916 This avoids a portability problem with Solaris 8.
29918 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
29919 (<stddef.h>, <stdint.h>, <string.h>):
29920 Include only if STDC_HEADERS || _LIBC.
29921 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
29922 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
29923 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
29924 (__set_errno): Define this macro if <errno.h> doesn't.
29925 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
29926 Define these macros if <stdio.h> doesn't.
29927 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
29928 Define these macros if <sys/stat.h>
29929 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
29930 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
29931 __xstat64): Define if not _LIBC.
29932 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
29933 (__gen_tempname): Invoke gettimeofday only if
29934 HAVE_GETTIMEOFDAY || _LIBC;
29935 otherwise, fall back on plain "time".
29936 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
29938 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
29940 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
29942 2001-02-18 Paul Eggert <eggert@twinsun.com>
29944 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
29946 2001-02-17 Paul Eggert <eggert@twinsun.com>
29948 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
29949 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
29950 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
29951 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
29953 2001-02-17 Paul Eggert <eggert@twinsun.com>
29955 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
29956 Remove workaround macros for hosts that have mbrtowc but not
29957 mbstate_t, as we now insist on proper declarations for both
29958 before using mbrtowc.
29960 2001-02-17 Jim Meyering <meyering@lucent.com>
29962 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
29963 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
29964 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
29967 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
29968 rather than AC_CACHE_VAL.
29970 2001-02-17 Jim Meyering <meyering@lucent.com>
29972 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
29973 around included file name.
29975 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
29977 * lib/strftime.c: Update from GNU libc (the only changes were to
29980 2001-02-17 Jim Meyering <meyering@lucent.com>
29982 * lib/regex.c: Update from libc.
29984 2001-02-17 Bruno Haible <haible@clisp.cons.org>
29986 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
29989 2001-02-16 Paul Eggert <eggert@twinsun.com>
29991 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
29992 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
29993 Reported by Mark Hounschell via Paul Eggert.
29995 2001-02-07 Jim Meyering <meyering@lucent.com>
29997 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
29999 2001-02-05 Jim Meyering <meyering@lucent.com>
30001 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
30002 it includes the patch required for `large file' support with at least
30003 HP-UX's 10.20 /bin/cc.
30005 2001-02-03 Jim Meyering <meyering@lucent.com>
30007 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
30008 AS_IF, now that it works once again (mysteriously).
30009 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
30011 2001-01-30 Jim Meyering <meyering@lucent.com>
30013 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
30014 * m4/chown.m4: Rename conftestchown to conftest.chown.
30015 * m4/rename.m4: s/conftestdir/conftest.d1/ and
30016 s/conftestdir2/conftest.d2/.
30017 * m4/utimes.m4: s/conftestdata/conftest.data/
30018 Inspired by Pavel Roskin's change in autoconf.
30020 2001-01-30 Bruno Haible <haible@clisp.cons.org>
30022 * lib/config.charset: Update for FreeBSD 4.2.
30024 2001-01-27 Jim Meyering <meyering@lucent.com>
30026 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
30028 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
30030 2001-01-26 Jim Meyering <meyering@lucent.com>
30032 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
30033 quotearg.c includes it.
30035 2001-01-26 Jim Meyering <meyering@lucent.com>
30037 * lib/quotearg.c: Include stddef.h.
30038 * lib/quote.c: Include stddef.h.
30039 Reported by Axel Kittenberger.
30041 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
30042 line in double quotes so that it evokes a better diagnostic.
30043 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
30044 Reported by Axel Kittenberger.
30046 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
30048 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
30049 as if it was a `charset'.
30051 2001-01-21 Bruno Haible <haible@clisp.cons.org>
30053 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
30056 2001-01-21 Bruno Haible <haible@clisp.cons.org>
30058 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
30059 to avoid a warning. Add back 'const' to inptr.
30061 2001-01-20 Jim Meyering <meyering@lucent.com>
30063 Be sure that headers are checked before used in code compiled
30064 for the type checks.
30065 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
30066 In place of that, invoke jm_CHECK_ALL_TYPES.
30067 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
30068 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
30069 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
30070 The check for ssize_t was mistakenly run before the test for unistd.h.
30072 The configure-time check for stdbool.h was missing.
30073 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
30074 (jm_PREREQ_HASH): New function.
30076 2001-01-17 Jim Meyering <meyering@lucent.com>
30078 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
30079 for autoconf-2.49c.
30080 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
30082 2001-01-16 Jim Meyering <meyering@lucent.com>
30084 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
30087 2001-01-14 Jim Meyering <meyering@lucent.com>
30089 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
30090 foo and bar. Create conftestdir/ in the script, not in the C code.
30091 Remove directories in the script, not in the C code.
30092 Remove conftestdir{,2} before trying to create the directory.
30093 Make the entire configure script fail if the mkdir fails.
30095 2001-01-14 Jim Meyering <meyering@lucent.com>
30097 * lib/rename.c: New file. From Volker Borchert.
30098 Include stdlib.h, string.h or strings.h, and xalloc.h.
30099 Use strip_trailing_slashes rather than open-coding it.
30101 2001-01-03 Paul Eggert <eggert@twinsun.com>
30103 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
30105 2001-01-03 Jim Meyering <meyering@lucent.com>
30107 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
30108 of local `inptr' to avoid warning with some system declarations of
30111 2001-01-02 Volker Borchert <bt@teknon.de>
30113 * m4/rename.m4: New file.
30114 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
30116 2001-01-01 Jim Meyering <meyering@lucent.com>
30118 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
30119 even on systems with utmpx.h. It's necessary for the declaration of
30120 utmp's ut_user member. Reported by Andreas Jaeger.
30122 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
30123 available. They are required for the declarations of getgrgid and
30125 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
30126 Reported by Andreas Jaeger.
30128 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
30130 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
30131 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
30132 so `make install' also works in VPATH builds.
30134 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
30136 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
30137 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
30138 can be used in subdirectories.
30140 2000-12-29 Paul Eggert <eggert@twinsun.com>
30142 * lib/modechange.c: Do not assume that mode_t uses the
30143 traditional octal encoding. E.g. "chmod 1 FOO" should set
30144 the other-execute bit of FOO even if S_IXOTH != 1.
30146 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
30147 WOTH, XOTH, ALLM): New macros.
30148 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
30149 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
30151 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
30152 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
30154 No need to use uintmax_t; unsigned long is long enough.
30155 Don't bother to get suffix since we don't use it.
30157 2000-12-26 Jim Meyering <meyering@lucent.com>
30159 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
30160 better with autoheader.
30162 2000-12-24 Jim Meyering <meyering@lucent.com>
30164 * lib/hash.c (is_prime): Return explicit boolean values.
30165 (hash_get_first): Return NULL to appease Irix5.6's 89.
30166 Reported by Nelson Beebe.
30168 2000-12-19 Bruno Haible <haible@clisp.cons.org>
30170 * lib/localcharset.c (locale_charset): Add support for Win32.
30172 2000-12-18 Paul Eggert <eggert@twinsun.com>
30174 * lib/physmem.h, lib/physmem.c: New files.
30176 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
30177 (noinst_HEADERS): Add physmem.h.
30179 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
30180 't' for compatibility with Solaris 8 sort.
30182 2000-12-18 Bruno Haible <haible@clisp.cons.org>
30184 * lib/config.charset: Add support for BeOS.
30186 2000-12-17 Jim Meyering <meyering@lucent.com>
30188 * m4/dos.m4 (jm_AC_DOS): New file and macro.
30189 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
30191 2000-12-16 Jim Meyering <meyering@lucent.com>
30193 This bug had a serious impact on chown: `chown N:M FILE' (for integer
30194 N and M) would have treated it like `chown N:N FILE'.
30196 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
30198 2000-12-16 Jim Meyering <meyering@lucent.com>
30200 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
30201 SHELLS_FILE to a file name that's useful on djgpp systems.
30203 (ADDITIONAL_DEFAULT_SHELLS): Define.
30204 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
30205 Based mostly on a patch from Prashant TR.
30207 2000-12-16 Bruno Haible <haible@clisp.cons.org>
30209 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
30210 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
30211 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
30213 2000-12-08 Andreas Schwab <schwab@suse.de>
30215 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
30216 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
30218 2000-12-07 Jim Meyering <meyering@lucent.com>
30220 * lib/stripslash.c (ISSLASH): Define.
30221 (strip_trailing_slashes): Use ISSLASH rather than comparing against
30225 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
30226 (dir_name_r): Declare this function as static.
30227 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
30228 manifest itself on a name containing a mix of slashes and
30230 Make this function work with names starting with a DOS-style
30231 drive letter and colon prefix.
30232 (dir_name): Append `.' if necessary.
30233 Based mostly on patches from Prashant TR and Eli Zaretskii.
30235 * lib/dirname.h (dir_name_r): Remove prototype.
30237 2000-12-06 Paul Eggert <eggert@twinsun.com>
30239 * m4/off_t-format.m4: Remove this file.
30240 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
30242 2000-12-06 Jim Meyering <meyering@lucent.com>
30244 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
30245 replacement strtoull, we may well need the replacement strtoul, too.
30246 Check for declarations of strtoul and strtoull.
30247 Check for strtol. Mainly as a cue to cause automake to include
30248 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
30249 Check for limits.h -- strtol.c needs it.
30251 2000-12-05 Jim Meyering <meyering@lucent.com>
30253 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
30255 2000-12-04 Jim Meyering <meyering@lucent.com>
30257 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
30258 Also include memory.h, stdlib.h, unistd.h if appropriate.
30259 Reported by Andreas Jaeger (conflicting declaration of malloc).
30261 2000-12-02 Jim Meyering <meyering@lucent.com>
30263 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
30264 * m4/jm-macros.m4 (jm_MACROS): require it.
30266 2000-12-02 Jim Meyering <meyering@lucent.com>
30268 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
30270 2000-12-01 Paul Eggert <eggert@twinsun.com>
30272 * lib/memrchr.c: Include <config.h> before any system include file.
30274 2000-11-30 Jim Meyering <meyering@lucent.com>
30276 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
30278 2000-11-30 Jim Meyering <meyering@lucent.com>
30280 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
30282 2000-11-29 Paul Eggert <eggert@twinsun.com>
30284 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
30286 2000-11-26 Jim Meyering <meyering@lucent.com>
30288 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
30290 2000-11-22 Paul Eggert <eggert@twinsun.com>
30292 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
30293 size of (size_t) -1; it's not portable.
30295 2000-11-17 Jim Meyering <meyering@lucent.com>
30297 * lib/strstr.c: Update from GNU libc.
30299 2000-11-17 Akim Demaille <akim@epita.fr>
30301 * lib/obstack.h: Formatting changes.
30302 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
30303 prevent type checking.
30304 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
30305 cast the value to (void *): assigning a `foo *' to a `void *'
30307 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
30309 2000-11-16 Jim Meyering <meyering@lucent.com>
30311 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
30313 2000-11-11 Jim Meyering <meyering@lucent.com>
30315 * lib/error.c: Add a couple #includes, merging from GNU libc version.
30317 2000-11-10 Jim Meyering <meyering@lucent.com>
30319 * lib/obstack.h: Update from GNU libc.
30320 * lib/obstack.c: Likewise.
30322 2000-11-08 Bruno Haible <haible@clisp.cons.org>
30324 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
30326 2000-11-06 Paul Eggert <eggert@twinsun.com>
30328 * lib/getusershell.c (setusershell): Use rewind rather than
30329 fseek/fseeko, to avoid configuration hassles with fseeko.
30330 Don't bother opening SHELLS_FILE if shellstream is NULL;
30331 it's not necessary.
30333 2000-11-05 Jim Meyering <meyering@lucent.com>
30335 * lib/makepath.h (make_dir): Declare.
30336 * lib/makepath.c (make_dir): Remove `static' attribute.
30339 2000-11-04 Jim Meyering <meyering@lucent.com>
30341 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
30343 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
30345 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
30346 last one in a bucket, advance to the next bucket.
30348 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
30350 * lib/fnmatch.c: Do not comment out all the code if we are using
30351 the GNU C library, because in some cases we are replacing buggy
30352 code in the GNU C library itself.
30354 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
30356 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
30357 (regex_compile): Catch bogus \(\1\).
30359 2000-10-30 Paul Eggert <eggert@twinsun.com>
30361 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
30362 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
30363 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
30365 2000-10-30 Paul Eggert <eggert@twinsun.com>
30367 * lib/error.h, getline.h, modechange.h:
30368 Remove "2000" from Copyright line, as the file hasn't been
30369 changed this year other than in the copyright notice.
30371 * lib/xalloc.h: Add "2000" to Copyright line, as this file
30372 was changed this year.
30374 2000-10-29 Jim Meyering <meyering@lucent.com>
30376 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
30378 * m4/ls-mntd-fs.m4: Likewise
30380 2000-10-29 Jim Meyering <meyering@lucent.com>
30382 * lib/xstat.in: Fix grammar in comment.
30384 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
30386 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
30387 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
30388 doesn't define __restrict_arr.
30390 2000-10-28 Jim Meyering <meyering@lucent.com>
30392 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
30393 (jm_PREREQ_MEMCHR): New function.
30395 2000-10-28 Jim Meyering <meyering@lucent.com>
30397 * lib/memchr.c: Update from libc.
30398 Adjust for portability:
30399 [HAVE_STDLIB_H]: Include stdlib.h.
30400 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
30401 Undef __memchr, too.
30402 [!weak_alias]: Define __memchr to memchr.
30404 * lib/regex.c: Update from libc.
30405 * lib/regex.h: Likewise.
30406 * lib/getopt1.c: Likewise.
30407 * lib/memcmp.c: Likewise.
30409 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
30410 Avoid using fseek, when possible -- it's broken by design.
30411 Patch by Ulrich Drepper.
30413 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
30415 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
30416 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
30417 Giving in to popular pressure to shut up the compiler with casts.
30419 2000-10-26 Jim Meyering <meyering@lucent.com>
30421 * lib/strftime.c: Update from libc.
30423 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
30425 * regex.c: More `unsigned char' -> `re_char' changes.
30426 Also change several `int' into `re_wchar_t'.
30427 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
30428 (PUSH_FAILURE_POINTER): Don't cast any more.
30429 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
30430 We want GCC to complain, since this piece of code makes
30431 re_match non-reentrant, which *should* be fixed.
30432 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
30433 (EXTEND_BUFFER): Use RETALLOC.
30434 (SET_LIST_BIT): Don't cast.
30435 (re_wchar_t): New type.
30436 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
30437 that those two functions will always properly return.
30438 (IMMEDIATE_QUIT_CHECK): Cast to void.
30439 (analyse_first): Use recursion rather than an explicit stack.
30440 (re_compile_fastmap): Can't fail anymore.
30441 (re_search_2): Don't check re_compile_fastmap for failure.
30442 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
30443 Now also sets the new value (passed in a new argument).
30444 (re_match_2_internal): Use it.
30445 Also, use a new var `reg' of type size_t when looping through regs
30446 rather than reuse the inappropriate `mcnt'.
30448 2000-10-25 Jim Meyering <meyering@lucent.com>
30450 * lib/obstack.c: Update from libc.
30452 2000-10-24 Kenichi Handa <handa@etl.go.jp>
30454 * regex.c (regex_compile): Change the way of handling a range from
30455 a char less than 256 to a char not less than 256.
30457 2000-10-24 Andrew Innes <andrewi@gnu.org>
30459 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
30461 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
30462 so that re_search functions only quit when callers expect them to.
30464 2000-10-23 Jim Meyering <meyering@lucent.com>
30466 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
30467 wrong. That set_locale call must not have any side effects.
30470 2000-10-22 Jim Meyering <meyering@lucent.com>
30472 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
30473 [CYCLIC]: Remove now-unused definition.
30475 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
30476 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
30477 Suggestion from Ulrich Drepper.
30479 2000-10-21 Jim Meyering <meyering@lucent.com>
30481 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
30482 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
30483 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
30485 2000-10-21 Jim Meyering <meyering@lucent.com>
30487 * lib/dirname.c (memrchr): Declare if necessary.
30488 (dir_name): Remove the restriction that there be no
30489 trailing slashes. Now, this code skips past them, effectively
30491 [TEST_DIRNAME] (main): New unit tests.
30493 * lib/memrchr.c: New file from GNU libc.
30494 Undef __memrchr, too.
30495 [!weak_alias]: Define __memrchr to memrchr.
30496 Guard weak_alias use with `#ifdef weak_alias'.
30498 2000-10-21 Jim Meyering <meyering@lucent.com>
30500 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
30501 (dir_name): Use dir_name_r.
30502 * lib/dirname.h (dir_name_r): Declare it.
30504 2000-10-17 Jim Meyering <meyering@lucent.com>
30506 * lib/quote.h (PARAMS): Define and use.
30507 Reported by Akim Demaille.
30509 * lib/getopt.c: Update from libc.
30511 2000-10-16 Jim Meyering <meyering@lucent.com>
30513 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
30517 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
30519 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
30521 2000-09-25 Jim Meyering <meyering@lucent.com>
30523 * lib/md5.h (rol): Define (from GnuPG).
30525 * lib/sha.c: Give credit (GnuPG) where due.
30526 (M): Use rol rather than open-coding it.
30527 Add a FIXME comment.
30529 2000-09-21 Jim Meyering <meyering@lucent.com>
30531 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
30532 Reported by Michael Stone.
30534 2000-09-20 Jim Meyering <meyering@lucent.com>
30536 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
30537 (noinst_HEADERS): Add sha.h.
30538 Based on code from Scott G. Miller and from GnuPG.
30540 2000-09-18 Jim Meyering <meyering@lucent.com>
30542 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
30543 LIBS. Otherwise, everyone ends up linking with -lelf for some
30545 Reported by Mike Stone.
30547 2000-09-15 Jim Meyering <meyering@lucent.com>
30549 * lib/regex.c: Update from libc.
30551 2000-09-10 Jim Meyering <meyering@lucent.com>
30553 * lib/getopt.c (_getopt_internal): Update from glibc.
30555 2000-09-09 Jim Meyering <meyering@lucent.com>
30557 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
30558 think it should be used as a general replacement for isascii.
30559 * lib/fnmatch.c: Likewise.
30560 * lib/mbswidth.c: Likewise
30561 * lib/regex.c: Likewise.
30564 * lib/userspec.c: Include sys/param.h and limits.h.
30566 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
30567 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
30568 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
30569 UID, GID. Check range.
30571 2000-09-06 Jim Meyering <meyering@lucent.com>
30573 * lib/getopt.c (_getopt_internal): Update from glibc.
30575 2000-08-30 Jim Meyering <meyering@lucent.com>
30577 * lib/strftime.c: Merge in changes from GNU libc.
30579 2000-08-26 Jim Meyering <meyering@lucent.com>
30581 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
30582 * m4/fpending.m4: New file.
30584 2000-08-26 Jim Meyering <meyering@lucent.com>
30586 * lib/closeout.c: Include "__fpending.h".
30587 (close_stdout_status): Return right away if there's nothing to flush.
30589 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
30590 * lib/__fpending.c: New file.
30591 * lib/__fpending.h: New file.
30593 2000-08-20 Jim Meyering <meyering@lucent.com>
30595 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
30596 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
30597 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
30599 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
30601 Improve fileutils installation on systems where running
30602 programs (like install) can't be unlinked.
30603 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
30604 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
30606 2000-08-07 Paul Eggert <eggert@twinsun.com>
30608 Standardize on "memory exhausted" instead of "Memory exhausted"
30609 or "virtual memory exhausted".
30610 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
30611 "virtual memory exhausted".
30612 * lib/same.c (same_name): Invoke xalloc_die instead of printing
30614 * lib/userspec.c (parse_user_spec): Likewise.
30615 * lib/bumpalloc.h: comment fix
30616 * lib/same.c, userspec.c: Include xalloc.h.
30618 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
30619 not char *const and pointing to a constant array.
30620 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
30621 (xrealloc): Comment fix.
30623 * lib/userspec.c (parse_user_spec):
30624 Don't translate a message until just before returning,
30625 to avoid unnecessary translation.
30627 2000-08-07 Jim Meyering <meyering@lucent.com>
30629 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
30630 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
30631 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
30632 getgroups.c, gethostname.c, getopt.h, group-member.c,
30633 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
30634 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
30635 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
30636 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
30637 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
30638 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
30639 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
30640 yesno.c: Back out Copyright date changes for each file with no change
30641 this year. This eases coordination with other programs using the same
30642 source code modules. From Paul Eggert.
30644 2000-08-06 Paul Eggert <eggert@twinsun.com>
30646 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
30647 not char, for compatibility with glibc 2.1.3 strftime.c.
30649 2000-08-03 Greg McGary <greg@mcgary.org>
30651 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
30652 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
30653 (EXTEND_BUFFER): Use them.
30655 2000-08-01 Jim Meyering <meyering@lucent.com>
30657 * lib/dirname.c (ISSLASH): Define.
30658 (BACKSLASH_IS_PATH_SEPARATOR): Define.
30659 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
30660 both `\' and `/' may be use as path separators.
30661 Based on a patch from Prashant TR.
30663 2000-07-31 Paul Eggert <eggert@twinsun.com>
30665 * lib/quotearg.c (quotearg_n_options): Don't make the initial
30666 slot vector a constant, since it might get modified.
30668 2000-07-31 Jim Meyering <meyering@lucent.com>
30670 * lib/xmalloc.c: Use `virtual memory exhausted', not
30671 `Memory exhausted'.
30672 * lib/obstack.c (print_and_abort): Likewise.
30674 2000-07-30 Paul Eggert <eggert@twinsun.com>
30676 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
30677 buffer, so that the caller can always quote one small
30678 component of a "memory exhausted" message in slot 0.
30679 From a suggestion by Jim Meyering.
30681 2000-07-30 Jim Meyering <meyering@lucent.com>
30683 * lib/makepath.c (make_path): Quote the other instance, too.
30685 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
30686 (STATIC_BUF_SIZE): Define.
30687 (quotearg_n_options): Use only statically allocated storage when
30688 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
30689 than STATIC_BUF_SIZE.
30691 2000-07-29 Jim Meyering <meyering@lucent.com>
30693 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
30694 * lib/dirname.c (dir_name): Likewise.
30696 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
30699 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
30700 (dir_name): Assert that there are no trailing slashes.
30702 2000-07-29 Bruno Haible <haible@clisp.cons.org>
30704 * lib/mbswidth.h (mbswidth): Add a flags argument.
30705 (mbswidth): New declaration.
30706 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
30707 * lib/mbswidth.c (mbswidth): Add a flags argument.
30708 (mbsnwidth): New function.
30710 2000-07-24 Jim Meyering <meyering@lucent.com>
30712 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
30714 2000-07-23 Paul Eggert <eggert@twinsun.com>
30716 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
30718 2000-07-23 Paul Eggert <eggert@twinsun.com>
30720 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
30721 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
30722 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
30723 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
30724 invoke multibyte primitives.
30726 2000-07-23 Paul Eggert <eggert@twinsun.com>
30729 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
30730 so that mbstate_t is always defined.
30732 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
30733 be 1 in at least one GCC installation, and this configuration
30734 error is likely to be common. Ignoring MB_LEN_MAX hurts
30735 performance on hosts that have mbrtowc but have only unibyte
30736 locales, but I assume these hosts are rare.
30738 2000-07-23 Paul Eggert <eggert@twinsun.com>
30740 * lib/mbswidth.c (_XOPEN_SOURCE):
30741 Don't define; this causes problems on Solaris 7.
30742 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
30744 2000-07-23 Jim Meyering <meyering@lucent.com>
30746 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
30747 too: getgrgid, getpwuid, getuid.
30749 2000-07-23 Jim Meyering <meyering@lucent.com>
30751 * lib/basename.c (base_name): Add an assertion.
30753 2000-07-23 Bruno Haible <haible@clisp.cons.org>
30755 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
30756 shadow its mbsinit function.
30758 2000-07-17 Bruno Haible <haible@clisp.cons.org>
30760 * lib/mbswidth.h: New file.
30761 * lib/mbswidth.c: New file.
30762 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
30763 (noinst_HEADERS): Add mbswidth.h.
30765 2000-07-17 Bruno Haible <haible@clisp.cons.org>
30767 * lib/config.charset: Add support for FreeBSD. Improve support for
30770 2000-07-16 Bruno Haible <haible@clisp.cons.org>
30772 * m4/mbswidth.m4: New file.
30773 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
30775 2000-07-15 Jim Meyering <meyering@lucent.com>
30777 * lib/makepath.c: Include quote.h.
30778 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
30779 corresponding argument in a `quote (...)' call.
30780 Give better diagnostics.
30782 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
30783 (noinst_HEADERS): Add quote.h.
30785 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
30786 from tar's src/misc.c.
30787 * lib/quote.h: New file. Prototypes for same.
30789 2000-07-14 Paul Eggert <eggert@twinsun.com>
30791 From a suggestion by Bruno Haible.
30792 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
30793 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
30794 to decide whether to define the BeOS workaround macro;
30795 this adjusts to the change to AC_MBSTATE_T.
30797 2000-07-14 Jim Meyering <meyering@lucent.com>
30799 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
30800 jm_AC_TYPE_UINTMAX_T.
30802 2000-07-13 Paul Eggert <eggert@twinsun.com>
30804 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
30806 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
30807 quotearg_buffer_restyled): Add support for
30808 clocale_quoting_style. Undo previous change to
30809 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
30810 and "{RIGHT QUOTATION MARK}" msgids.
30812 2000-07-10 Paul Eggert <eggert@twinsun.com>
30814 From a suggestion by Bruno Haible.
30815 * m4/mbstate_t.m4 (AC_MBSTATE_T):
30816 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
30817 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
30818 and mbstate_t, to a single-part test that simply defines mbstate_t.
30819 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
30820 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
30822 2000-07-10 Jim Meyering <meyering@lucent.com>
30824 * m4/strerror_r.m4: Mirror the correction made in autoconf.
30826 * m4/gnu-source.m4: Output to confdefs.h directly.
30827 Suggestion from Akim Demaille.
30829 2000-07-09 Paul Eggert <eggert@twinsun.com>
30831 The old behavior of quoting `like this' doesn't look good with
30832 newer, ISO-style fonts. See:
30833 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
30835 Instead, quote "like this" by default. Let the translator
30836 tailor the locale-specific quoting behavior by providing
30837 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
30839 * lib/quotearg.c (N_): New macro.
30840 (gettext_default): New function.
30841 (quotearg_buffer_restyled): Use
30842 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
30843 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
30845 2000-07-09 Jim Meyering <meyering@lucent.com>
30847 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
30848 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
30850 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
30851 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
30853 2000-07-09 Jim Meyering <meyering@lucent.com>
30855 * lib/Most files: Update copyright dates to include 2000.
30857 2000-07-08 Jim Meyering <meyering@lucent.com>
30859 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
30861 (xgethostname): Remove now-unnecessary #ifdef.
30862 Move declaration of `err' into loop where it's used.
30864 2000-07-05 Paul Eggert <eggert@twinsun.com>
30865 and Bruno Haible <haible@clisp.cons.org>
30867 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
30868 only if the test for an object-type mbstate_t fails. This
30869 prevents us from mistakenly reporting that mbstate_t is a
30870 system object type after we "#define mbstate_t int" to work
30873 2000-07-05 Paul Eggert <eggert@twinsun.com>
30874 and Bruno Haible <haible@clisp.cons.org>
30876 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
30878 2000-07-05 Bruno Haible <haible@clisp.cons.org>
30880 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
30882 Include <ctype.h> for use of isalpha.
30884 2000-07-05 Bruno Haible <haible@clisp.cons.org>
30886 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
30887 by allocating a larger buffer. Test the gethostname return value for
30888 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
30889 returns an error and ENAMETOOLONG isn't defined.
30891 2000-07-05 Bruno Haible <haible@clisp.cons.org>
30893 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
30896 2000-07-04 Jim Meyering <meyering@lucent.com>
30898 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
30899 of the deprecated AC_CHECKING.
30901 2000-07-04 Jim Meyering <meyering@lucent.com>
30903 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
30904 Reported by Bruno Haible.
30906 2000-07-04 Jim Meyering <meyering@lucent.com>
30908 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
30909 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
30912 2000-07-03 Paul Eggert <eggert@twinsun.com>
30914 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
30915 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
30917 2000-07-03 Paul Eggert <eggert@twinsun.com>
30918 and Bruno Haible <haible@clisp.cons.org>
30920 * lib/quotearg.c (mbrtowc):
30921 Assign to *pwc, and return 1 only if result is nonzero.
30922 (iswprint): Use ISPRINT when substituting our own mbrtowc.
30924 2000-07-03 Jim Meyering <meyering@lucent.com>
30926 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
30928 2000-07-03 Jim Meyering <meyering@lucent.com>
30930 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
30931 This is necessary to get a definition of e.g., UTMP_FILE on
30935 2000-07-02 Jim Meyering <meyering@lucent.com>
30937 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
30939 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
30940 AC_LIBOBJ(function_name).
30941 * m4/chown.m4: Likewise.
30942 * m4/fnmatch.m4: Likewise.
30943 * m4/ftruncate.m4: Likewise.
30944 * m4/getgroups.m4: Likewise.
30945 * m4/getline.m4: Likewise.
30946 * m4/group-member.m4: Likewise.
30947 * m4/jm-macros.m4: Likewise.
30948 * m4/lstat.m4: Likewise.
30949 * m4/malloc.m4: Likewise.
30950 * m4/memcmp.m4: Likewise.
30951 * m4/nanosleep.m4: Likewise.
30952 * m4/putenv.m4: Likewise.
30953 * m4/realloc.m4: Likewise.
30954 * m4/regex.m4: Likewise.
30955 * m4/stat.m4: Likewise.
30956 * m4/strftime.m4: Likewise.
30958 2000-07-02 Jim Meyering <meyering@lucent.com>
30960 * lib/quotearg.c (mbstate_t): Don't define here.
30962 2000-07-02 Jim Meyering <meyering@lucent.com>
30964 * lib/nanosleep.c (SIGCONT): Define if not already defined.
30966 2000-07-01 Jim Meyering <meyering@lucent.com>
30968 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
30970 2000-07-01 Jim Meyering <meyering@lucent.com>
30972 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
30975 2000-07-01 Bruno Haible <haible@clisp.cons.org>
30977 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
30978 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
30980 2000-07-01 Bruno Haible <haible@clisp.cons.org>
30982 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
30983 per change in ../m4/ls-mntd-fs.m4.
30984 (read_filesystem_list): Ignore symbolic links.
30986 2000-06-29 Jim Meyering <meyering@lucent.com>
30988 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
30989 for declaration of strcmp.
30991 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
30993 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
30994 Avoid warning by casting result to `char *' to remove `const'.
30996 2000-06-28 Jim Meyering <meyering@lucent.com>
30998 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
30999 included by quotearg.c, for which we perform this test. From
31002 2000-06-27 Bruno Haible <haible@clisp.cons.org>
31004 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
31005 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
31006 <utmpx.h> exists, put readutmp.o into LIBOBJS.
31008 2000-06-27 Bruno Haible <haible@clisp.cons.org>
31010 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
31012 2000-06-26 Paul Eggert <eggert@twinsun.com>
31014 savedir now sets errno on failure and invokes xmalloc to get memory.
31015 Fix a couple of other minor bugs while we're at it.
31017 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
31018 (NAMLEN): Remove macro.
31019 (malloc, realloc): Remove decls.
31020 (stpcpy): Likewise.
31021 ("xalloc.h"): Include.
31022 (NAME_SIZE_DEFAULT): New macro.
31023 (savedir): Use xmalloc / xrealloc to allocate memory.
31024 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
31025 Skip "" directory entries.
31026 Use strlen to calculate directory entry length, since the old method
31027 is rarely used these days and isn't worth supporting.
31028 Don't use a pointer after freeing it.
31029 Check for integer overflow when calculating allocation size.
31030 Use memcpy to copy entries, instead of stpcpy.
31031 Set errno properly when returning NULL.
31032 Check for readdir error.
31034 2000-06-26 Jim Meyering <meyering@lucent.com>
31036 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
31038 2000-06-25 Jim Meyering <meyering@lucent.com>
31040 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
31041 Linux header bug when _XOPEN_SOURCE is defined to 500.
31043 2000-06-25 Bruno Haible <haible@clisp.cons.org>
31045 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
31048 2000-06-25 Bruno Haible <haible@clisp.cons.org>
31050 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
31052 Don't include <stdlib.h>. Don't declare malloc, realloc.
31054 2000-06-24 Jim Meyering <meyering@lucent.com>
31056 * m4/strerror_r.m4: Revive this file -- to try out an experimental
31057 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
31058 for which strerror does return char*, but which lacks a conveniently
31059 accessible declaration of the function. If the compile-test says
31060 strerror_r doesn't work, then resort to a `run'-test that works on
31061 BeOS and segfaults on DEC Unix.
31063 2000-06-24 Jim Meyering <meyering@lucent.com>
31065 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
31067 2000-06-23 Paul Eggert <eggert@twinsun.com>
31069 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
31070 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
31072 2000-06-23 Paul Eggert <eggert@twinsun.com>
31074 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
31075 (mbrtowc, mbstate_t): Define substitutes if
31076 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
31077 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
31078 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
31080 2000-06-23 Jim Meyering <meyering@lucent.com>
31082 * m4/afs.m4: Add missing AC_MSG_RESULT.
31083 Reported by Bruno Haible.
31085 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
31086 Suggestion from Bruno Haible.
31088 2000-06-23 Jim Meyering <meyering@lucent.com>
31090 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
31092 2000-06-21 Jim Meyering <meyering@lucent.com>
31094 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
31096 2000-06-21 Jim Meyering <meyering@lucent.com>
31098 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
31099 (noinst_HEADERS): Add getstr.h.
31101 * lib/getline.c (getstr): Move into a separate file.
31102 * lib/getstr.c (getstr): New file, extracted from getline.c, with
31103 the following changes: new parameter, delim2; both delim[12]
31104 parameters have type `int', not `char'. The latter would lose
31105 with 8-bit delimiters.
31106 * lib/getstr.h: New file.
31108 2000-06-21 Bruno Haible <haible@clisp.cons.org>
31110 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
31111 than 1024, return a memory chunk of least possible size, instead
31112 of size PATH_MAX + 2. In the loop, increment the size proportionally.
31113 Use free/xmalloc instead of xrealloc to avoid copying for very long
31116 2000-06-21 Bruno Haible <haible@clisp.cons.org>
31118 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
31121 2000-06-21 Bruno Haible <haible@clisp.cons.org>
31123 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
31124 address, not strdup. Include <stdlib.h> and don't declare free().
31126 2000-06-19 Jim Meyering <meyering@lucent.com>
31128 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
31130 2000-06-18 Jim Meyering <meyering@lucent.com>
31132 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
31134 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
31135 `checking whether...' message to be consistent with that of the
31138 2000-06-18 Jim Meyering <meyering@lucent.com>
31140 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
31141 Besides, these days every porting target provides a mkdir function.
31143 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
31144 needed. (this snippet comes from src/system.h).
31146 2000-06-16 Bruno Haible <haible@clisp.cons.org>
31148 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
31150 2000-06-15 Paul Eggert <eggert@twinsun.com>
31152 * lib/human.c (adjust_value): New function.
31153 (human_readable_inexact): Apply rounding style even when
31154 printing approximate values.
31156 2000-06-14 Paul Eggert <eggert@twinsun.com>
31158 * lib/human.c (human_readable_inexact): Allow an input block
31159 size that is not a multiple of the output block size, and vice versa.
31160 Reported by Piergiorgio Sartor.
31162 2000-06-14 Paul Eggert <eggert@twinsun.com>
31164 * lib/getdate.y (get_date): Apply relative times after time
31165 zone indicator, not before. Reported by Todd A. Jacobs.
31167 2000-06-13 Jim Meyering <meyering@lucent.com>
31169 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
31171 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
31173 2000-06-12 Paul Eggert <eggert@twinsun.com>
31175 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
31177 2000-06-12 Jim Meyering <meyering@lucent.com>
31179 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
31180 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
31182 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
31183 the optional argument, `lib'.
31185 2000-06-08 Jim Meyering <meyering@lucent.com>
31187 * m4/largefile.m4: Remove file (now that it's part of autoconf).
31189 2000-06-04 Paul Eggert <eggert@twinsun.com>
31191 Rewrite largefile configuration so that we don't need to run
31192 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
31193 AC_CANONICAL_HOST in configure.in -- jmm]
31195 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
31196 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
31197 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
31198 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
31199 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
31201 Instead of inspecting the output of getconf, try to compile the
31202 test program without and with the macro definition.
31203 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
31204 for getconf. Instead, check for the needed flags by compiling
31207 2000-06-04 Paul Eggert <eggert@twinsun.com>
31209 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
31211 2000-06-04 Jim Meyering <meyering@lucent.com>
31213 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
31214 SunOS 4.1.4 for which gid_t is an unsigned type.
31216 2000-06-03 Jim Meyering <meyering@lucent.com>
31218 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
31219 now that autoconf requires that.
31221 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
31222 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
31223 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
31225 2000-06-03 Jim Meyering <meyering@lucent.com>
31227 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
31229 2000-06-03 Bruno Haible <haible@clisp.cons.org>
31231 * m4/glibc21.m4: New file.
31232 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
31234 2000-06-03 Bruno Haible <haible@clisp.cons.org>
31236 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
31237 newer, don't install charset.alias.
31238 * lib/config.charset: Change the Linux/glibc rules so they become empty
31239 on glibc-2.1 or newer.
31241 2000-06-02 Jim Meyering <meyering@lucent.com>
31243 * lib/mountlist.c: Back out last change. Instead, do this...
31244 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
31245 me_dummy member using the same `ignore'-testing code.
31246 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
31250 2000-05-29 Jim Meyering <meyering@lucent.com>
31252 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
31253 mounts with the `ignore' attribute. Based on a patch from
31256 2000-05-28 Jim Meyering <meyering@lucent.com>
31258 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
31259 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
31260 * m4/stat.m4: Likewise.
31261 * m4/lstat.m4: Likewise.
31262 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
31264 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
31265 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
31267 2000-05-26 Jim Meyering <meyering@lucent.com>
31269 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
31271 2000-05-24 Jim Meyering <meyering@lucent.com>
31273 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
31274 autoconf requires that.
31275 * m4/lib-check.m4: Likewise.
31276 * m4/jm-macros.m4: Likewise.
31277 * m4/strftime.m4: Likewise.
31279 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
31280 AC_CHECK_DECLS, now that autoconf requires that.
31282 2000-05-22 Jim Meyering <meyering@lucent.com>
31284 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
31285 * m4/lstat.m4: Likewise.
31287 2000-05-22 Jim Meyering <meyering@lucent.com>
31289 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
31291 2000-05-20 Jim Meyering <meyering@lucent.com>
31293 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
31294 (jm_PREREQ): Use it.
31296 2000-05-18 Jim Meyering <meyering@lucent.com>
31298 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
31299 back, too, since it may have been modified by allocate_entry.
31300 (hash_delete): Rewrite to use neither the assignment operator
31301 nor the comma operator in an if-expression.
31303 2000-05-15 Paul Eggert <eggert@twinsun.com>
31306 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
31307 Remove; no longer needed.
31308 "quotearg.h": Add include.
31309 (file_name): Do not bother to explicitly initialize to NULL; it's less
31310 efficient on some hosts.
31311 (close_stdout_status): Remove test as to whether stdout was already
31312 closed; it breaks for the case "echo x | sort >&-".
31313 Quote file name colons.
31314 Do not assume that _("write error") lacks format strings.
31316 2000-05-15 Jim Meyering <meyering@lucent.com>
31318 * lib/version-etc.c (version_etc_copyright): Update the copyright
31319 string used in all --version output.
31321 2000-05-14 Jim Meyering <meyering@lucent.com>
31323 * lib/closeout.c (close_stdout_set_file_name): New function.
31324 (close_stdout_status): Use new file-scoped global.
31325 Return right away if fstat says the stdout file descriptor is invalid.
31326 * lib/closeout.h (close_stdout_set_file_name): Declare.
31328 2000-05-10 Jim Meyering <meyering@lucent.com>
31330 * lib/closeout.c [default_exit_status]: New file-scoped variable.
31331 (close_stdout_set_status): New function.
31332 * lib/closeout.h (close_stdout_set_status): Declare.
31334 2000-05-09 Jim Meyering <meyering@lucent.com>
31336 * m4/gettext.m4: Rename this...
31337 * m4/libintl.m4: ...to this.
31339 2000-05-08 Jim Meyering <meyering@lucent.com>
31341 * lib/long-options.c: Don't include closeout.h.
31342 (parse_long_options): Don't call close_stdout for --version.
31344 2000-05-06 Paul Eggert <eggert@twinsun.com>
31346 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
31347 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
31348 2.1.3 bug. This avoids a clash when files like regex.c define
31351 2000-05-06 Jim Meyering <meyering@lucent.com>
31353 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
31354 (AC_REPLACE_FUNCS): Add strnlen.
31356 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
31357 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
31359 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
31360 AC_SEARCH_LIBS call for nanosleep.
31361 (LIB_NANOSLEEP): Set and AC_SUBST.
31363 2000-05-06 Jim Meyering <meyering@lucent.com>
31365 * lib/strnlen.c: Undefine __strnlen and strnlen.
31366 [!weak_alias]: Define __strnlen to strnlen.
31368 * lib/atexit.c: New file, from libiberty.
31370 2000-05-06 Jim Meyering <meyering@lucent.com>
31372 * lib/closeout.c (close_stdout_status): Also check for errors on the
31375 2000-05-05 Jim Meyering <meyering@lucent.com>
31377 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
31378 AC_SEARCH_LIBS call for clock_gettime.
31379 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
31381 * m4/search-libs.m4: Update from autoconf.
31383 su doesn't work on Solaris 2.6.
31384 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
31385 <shadow.h>. Reported by Dragos Harabor.
31387 2000-05-05 Bruno Haible <haible@clisp.cons.org>
31389 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
31390 memcpy instead of xmalloc, xrealloc, path_concat.
31391 (locale_charset): Treat empty environment variables as absent.
31392 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
31394 2000-05-04 Jim Meyering <meyering@lucent.com>
31396 * lib/getopt.c: Update from glibc.
31397 * lib/obstack.c: Likewise.
31398 * lib/obstack.h: Likewise.
31399 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
31402 * lib/regex.h: Likewise.
31403 * lib/strndup.c: Likewise.
31404 * lib/strnlen.c: New file, from glibc.
31406 2000-05-03 Jim Meyering <meyering@lucent.com>
31408 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
31410 2000-05-02 Paul Eggert <eggert@twinsun.com>
31412 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
31413 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
31414 compile-time test, rather than inspecting host and OS, to
31415 decide whether to define _LARGEFILE_SOURCE.
31417 2000-05-01 Jim Meyering <meyering@lucent.com>
31419 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
31421 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
31422 Based on a patch from Bruno Haible.
31424 2000-05-01 Jim Meyering <meyering@lucent.com>
31426 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
31428 2000-04-29 Jim Meyering <meyering@lucent.com>
31430 * lib/path-concat.c: Declare strdup only if it's not defined.
31431 * lib/canon-host.c: Likewise.
31433 2000-04-28 Jim Meyering <meyering@lucent.com>
31435 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
31436 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
31437 is included first, then limits.h is included by locale.h by libintl.h.
31438 From John David Anglin.
31440 2000-04-25 Jim Meyering <meyering@lucent.com>
31442 * lib/makepath.c (S_IRWXUGO): Define.
31443 (make_path): Always perform explicit chmod if MODE specifies any
31444 of the `special' permission bits. Prompted by a bug report against
31445 install from Mate Wierdl and Joost van Baal.
31447 2000-04-18 Jim Meyering <meyering@lucent.com>
31449 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
31450 (jm_PREREQ): Use it.
31452 2000-04-18 Jim Meyering <meyering@lucent.com>
31454 * lib/README: New file.
31456 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
31457 getpagesize. For BeOS. Based on a patch from Bruno Haible.
31459 2000-04-17 Jim Meyering <meyering@lucent.com>
31462 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
31463 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
31464 Suggestion from Akim Demaille.
31466 2000-04-17 Jim Meyering <meyering@lucent.com>
31468 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
31469 the definition of it to rpl_strftime also defined-away the system's
31472 2000-04-15 Jim Meyering <meyering@lucent.com>
31474 Use `C' to denote so-called `contiguous' files, the same way
31476 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
31477 (ftypelet): Use S_ISCTG.
31478 From Michael Deutschmann.
31480 2000-04-14 Jim Meyering <meyering@lucent.com>
31482 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
31483 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
31486 2000-04-14 Jim Meyering <meyering@lucent.com>
31488 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
31490 2000-04-13 Jim Meyering <meyering@lucent.com>
31492 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
31493 AH_VERBATIM to insert required #ifndef into config.h.in.
31494 Suggestion from Akim Demaille.
31496 2000-04-12 Jim Meyering <meyering@lucent.com>
31498 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
31499 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
31500 Christian Krackowizer.
31502 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
31503 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
31504 (AC_SYS_LARGEFILE): Require.
31505 (AM_C_PROTOTYPES): Require.
31507 2000-04-08 Jim Meyering <meyering@lucent.com>
31509 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
31510 names don't conflict. Reported by Eli Zaretskii.
31512 2000-04-07 Jim Meyering <meyering@lucent.com>
31514 * lib/putenv.c: Move inclusion of errno.h so it follows that of
31515 sys/types.h, to work around system header problems on AIX 3.2.5.
31518 2000-04-07 Bruno Haible <haible@clisp.cons.org>
31520 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
31521 bug. Deal with the different error behavior of Irix iconv.
31523 2000-04-05 Paul Eggert <eggert@twinsun.com>
31525 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
31526 IRIX if the installer said otherwise.
31528 2000-04-05 Jim Meyering <meyering@lucent.com>
31530 Portability tweaks required for ultrix4.3.
31531 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
31532 (jm_CHECK_DECLS): Add getutent to the list of functions.
31533 (_jm_DECL_HEADERS): Add utmpx.h.
31534 From John David Anglin.
31536 * m4/strftime.m4: Back out the 2000-04-02 change.
31537 Instead of that change, simply undefine putenv in the test program.
31539 2000-04-05 Jim Meyering <meyering@lucent.com>
31541 Portability tweaks required for ultrix4.3.
31542 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
31544 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
31545 * lib/canon-host.c: Declare strdup.
31546 * lib/path-concat.c: Likewise.
31547 From John David Anglin.
31549 2000-04-04 Jim Meyering <meyering@lucent.com>
31551 Be more DOS 8.3-friendly.
31552 * lib/ref-add.sin: Renamed from ref-add.sed.in.
31553 * lib/ref-del.sin: Renamed from ref-del.sed.in.
31554 * lib/Makefile.am: Reflect renaming.
31555 Reported by Eli Zaretskii.
31557 Use a temporary file name that won't clash with `charset.alias'
31558 in the DOS 8.3 name space.
31559 * lib/Makefile.am (charset_tmp): Define.
31560 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
31561 (uninstall-local): Likewise.
31562 Reported by Eli Zaretskii.
31564 2000-04-03 Jim Meyering <meyering@lucent.com>
31566 * m4/gettext.m4: Fix typo in comment.
31568 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
31569 textutils/configure.in). Suggestion from Paul Eggert.
31570 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
31572 2000-04-02 Paul Eggert <eggert@twinsun.com>
31574 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
31575 variable in the shell rather than using putenv, which isn't
31576 portable. This avoids the configure-time inter-test dependency
31577 on the potentially-renamed putenv function.
31579 2000-03-30 Paul Eggert <eggert@twinsun.com>
31581 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
31582 before checking struct stat.st_blksize, so that
31583 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
31585 2000-03-29 Paul Eggert <eggert@twinsun.com>
31587 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
31588 since strftime.c uses HAVE_STRFTIME to decide whether to use
31589 the underlying strftime.
31591 2000-03-29 Paul Eggert <eggert@twinsun.com>
31593 * lib/time/strftime.c (my_strftime): Make sure we call the system
31594 strftime, not ourselves, when invoking the underlying strftime.
31596 2000-03-24 Jim Meyering <meyering@lucent.com>
31598 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
31599 (charset_alias): Define.
31600 (install-exec-local): Factor out common code.
31601 (uninstall-local): Split lines longer than 80.
31602 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
31603 (SUFFIXES): Define.
31604 (.sed.in.sed): New rule. Don't redirect directly to $@.
31605 (CLEANFILES): Add ref-add.sed and ref-del.sed.
31607 2000-03-19 Bruno Haible <haible@clisp.cons.org>
31609 * lib/config.charset: Output a line containing "Packages using this
31611 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
31612 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
31613 ref-del.sed): New rules.
31615 2000-03-17 Jim Meyering <meyering@lucent.com>
31617 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
31618 Otherwise, include <strings.h>
31620 2000-03-17 Bruno Haible <haible@clisp.cons.org>
31622 * lib/unicodeio.c (utf8_wctomb): New function.
31623 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
31624 format instead of in UCS-4 with platform dependent endianness.
31626 2000-03-10 Jim Meyering <meyering@lucent.com>
31628 * m4/lib-check.m4: Look for getspnam in -lgen, too.
31629 From Marco Franzen.
31631 2000-03-07 Paul Eggert <eggert@twinsun.com>
31633 * lib/savedir.c (savedir): Work even if directory size is
31634 negative; this can happen with some screwy NFS configurations.
31636 2000-03-06 Jim Meyering <meyering@lucent.com>
31638 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
31639 if it's NULL (because we ran out of memory). From Bruno Haible.
31641 2000-03-05 Jim Meyering <meyering@lucent.com>
31643 * lib/localcharset.c ("path-concat.h"): Include.
31644 (get_charset_aliases): Use path_concat instead of ANSI string
31647 * lib/unicodeio.h (PARAMS): Define.
31648 Use it to guard prototype.
31650 2000-03-04 Jim Meyering <meyering@lucent.com>
31652 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
31653 for lib/localcharset.c.
31655 2000-03-04 Jim Meyering <meyering@lucent.com>
31657 * lib/Makefile.am (install-exec-local): Create $(libdir) before
31658 installing into it.
31659 (uninstall-local): Uncomment this rule so `make distcheck' works
31662 * lib/unicodeio.c (<errno.h>): Include it.
31663 (errno): Declare if not defined.
31665 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
31667 * lib/config.charset: New version, incorporating remarks from a linux
31668 i18n mailing list. From Bruno Haible.
31670 2000-03-04 Bruno Haible <haible@clisp.cons.org>
31672 * m4/codeset.m4: New file.
31673 * m4/iconv.m4: New file.
31674 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
31676 2000-03-03 Jim Meyering <meyering@lucent.com>
31678 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
31680 2000-03-02 Jim Meyering <meyering@lucent.com>
31682 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
31683 the messages come out on separate lines.
31685 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
31686 rather than jm_CHECK_DECLARATIONS.
31687 * m4/decl.m4: Remove now-unused file.
31689 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
31692 2000-03-02 Jim Meyering <meyering@lucent.com>
31694 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
31696 2000-03-01 Jim Meyering <meyering@lucent.com>
31698 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
31699 * lib/unicodeio.c: Likewise.
31701 2000-03-01 Bruno Haible <haible@clisp.cons.org>
31703 * lib/config.charset: New file.
31704 * lib/localcharset.c: New file.
31705 * lib/unicodeio.h, lib/unicodeio.c: New files.
31706 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
31707 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
31708 (noinst_HEADERS): Add unicodeio.h.
31709 (all-local, install-exec-local, charset.alias): New targets.
31711 2000-02-28 Paul Eggert <eggert@twinsun.com>
31713 * lib/quotearg.c (ALERT_CHAR): New macro.
31714 (quotearg_buffer_restyled): Use it.
31716 2000-02-27 Jim Meyering <meyering@lucent.com>
31718 * m4/check-decl.m4: Add getenv to the list.
31720 2000-02-27 Jim Meyering <meyering@lucent.com>
31722 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
31723 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
31725 * lib/backupfile.c: Guard inclusion of stdlib.h with
31726 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
31727 Declare malloc if needed.
31729 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
31730 `#ifndef HAVE_DECL..'
31731 now that autoconf always defines the HAVE_DECL_ symbols.
31732 * lib/human.c: Likewise.
31733 * lib/same.c: Likewise.
31734 * lib/strtoumax.c: Likewise.
31736 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
31737 declaration check was not run.
31738 * lib/hash.c: Likewise.
31739 * lib/human.c: Likewise.
31740 * lib/same.c: Likewise.
31741 * lib/strtoumax.c: Likewise.
31743 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
31744 `.', then first look up the entire `.'-containing string as a login
31747 2000-02-23 Jim Meyering <meyering@lucent.com>
31749 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
31750 in place of my hack.
31752 2000-02-18 Paul Eggert <eggert@twinsun.com>
31754 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
31755 (textint): New typedef.
31756 (parser_control): Member year changed from int to textint.
31758 (YYSTYPE): Removed; replaced by %union with int and textint members.
31759 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
31760 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
31761 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
31762 (tSNUMBER, tUNUMBER): Now of type <textintval>.
31763 (date, number, to_year): Use width of number in digits, not its value,
31764 to determine whether it's a 2-digit year, or a 2-digit time.
31765 (yylex): Store number of digits of numeric tokens.
31766 Reported by John Kendall.
31768 (parser_control): Changed from struct parser_control to typedef (for
31769 consistency). All uses changed.
31771 (tID): Removed; not used.
31772 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
31774 2000-02-14 Paul Eggert <eggert@twinsun.com>
31776 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
31777 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
31779 2000-02-12 Jim Meyering <meyering@lucent.com>
31781 * lib/userspec.c (ISDIGIT): Define it.
31782 (isdigit): Remove definition.
31783 (is_number): Use ISDIGIT, not isdigit.
31784 <libintl.h>: Include.
31785 (_ and N_): Define.
31786 (parse_user_spec): Mark translatable strings.
31788 2000-02-10 Jim Meyering <meyering@lucent.com>
31790 With these changes, nanosleep.[ch] are finally enough like the other
31791 lib/* replacement files to compile on a few more losing systems.
31793 * lib/nanosleep.h: Don't include config.h.
31794 Remove prototype from declaration of nanosleep.
31795 (PARAMS): Remove now-unneeded definition.
31796 * lib/nanosleep.c: #undef nanosleep.
31797 (rpl_nanosleep): Rename from nanosleep.
31799 2000-02-10 Jim Meyering <meyering@lucent.com>
31801 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
31802 gnu_nanosleep to rpl_nanosleep.
31804 2000-02-09 Jim Meyering <meyering@lucent.com>
31806 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
31807 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
31809 2000-02-08 Akim Demaille <akim@epita.fr>
31811 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
31812 `[' and `]' and remove uses of `changequote'.
31813 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
31814 (AC_SYS_LARGEFILE): Likewise.
31815 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
31816 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
31818 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
31819 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
31820 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
31821 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
31823 2000-02-05 Jim Meyering <meyering@lucent.com>
31825 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
31826 Remove explicit use of AC_HEADER_TIME. It is required by
31827 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
31828 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
31829 in autoconf whereby the expansion of the latter ended up preceding
31830 the expansion of its prerequisite, AC_HEADER_TIME.
31831 Reported by Volker Borchert.
31833 2000-02-03 Jim Meyering <meyering@lucent.com>
31835 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
31837 2000-02-03 Jim Meyering <meyering@lucent.com>
31839 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
31840 rather than with `#if HAVE_UTMPNAME'.
31842 2000-02-02 Jim Meyering <meyering@lucent.com>
31844 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
31845 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
31846 Reported by Eli Zaretskii.
31848 2000-02-01 Jim Meyering <meyering@lucent.com>
31850 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
31852 2000-01-31 Jim Meyering <meyering@lucent.com>
31854 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
31855 functions. Add the time.h and sys/time.h headers along with the
31856 AC_REQUIRE'ment of AC_HEADER_TIME.
31858 2000-01-31 Jim Meyering <meyering@lucent.com>
31860 * lib/nanosleep.h (nanosleep): Guard declaration with
31861 `#if ! HAVE_DECL_NANOSLEEP'.
31862 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
31863 the declaration in that vendor's sys/timers.h.
31864 Reported by Christian Krackowizer.
31866 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
31867 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
31868 (ISPRINT): Likewise.
31869 Reported by Tom Tromey.
31871 2000-01-30 Jim Meyering <meyering@lucent.com>
31873 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
31875 * m4/prereq.m4 (utmp_includes): Define.
31876 Check for ut_user and ut_name members in both struct utmpx
31879 2000-01-30 Jim Meyering <meyering@lucent.com>
31881 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
31882 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
31883 header files where only utmpx.ut_user is declared.
31885 * lib/readutmp.h (UT_USER): Define.
31887 2000-01-29 Jim Meyering <meyering@lucent.com>
31889 * m4/lib-check.m4: New file containing library-related checks from
31890 fileutils and sh-utils (textutils had none).
31892 2000-01-28 Jim Meyering <meyering@lucent.com>
31894 * m4/perl.m4: Change format of warning message to look more like that
31895 from the missing script. Suggestion from François Pinard.
31897 2000-01-25 Jim Meyering <meyering@lucent.com>
31899 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
31900 well as time.h in the compile check.
31901 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
31902 Fix typo in cross-compiling case: s/yes/no/.
31904 2000-01-23 Jim Meyering <meyering@lucent.com>
31906 * m4/jm-macros.m4: Move df-related tests here from
31907 fileutils/configure.in
31909 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
31910 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
31912 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
31913 s/space/ac_fsusage_space/.
31914 (jm_FILE_SYSTEM_USAGE): Take two parameters.
31916 * m4/ftruncate.m4: New file (derived from part of
31917 fileutils/configure.in).
31918 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
31919 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
31921 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
31922 AC_SUBST these here, rather than just in sh-util/configure.in, so
31923 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
31925 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
31926 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
31927 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
31928 (AC_SUBST(POW_LIBM)): Likewise.
31929 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
31931 2000-01-23 Jim Meyering <meyering@lucent.com>
31933 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
31936 2000-01-22 Jim Meyering <meyering@lucent.com>
31938 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
31940 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
31942 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
31944 (AC_CHECK_HEADERS): Likewise for sh-utils.
31945 (AC_CHECK_HEADERS): Likewise for textutils.
31946 Merge the three lists of headers.
31948 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
31949 from fileutils' configure.in.
31951 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
31952 code. Moved tests into their own function (_jm_DECL_HEADERS) in
31955 * m4/check-decl.m4: Use #if rather than #ifdef.
31956 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
31957 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
31958 (_jm_DECL_HEADERS): Define new function.
31959 (jm_CHECK_DECLARATIONS): Require it.
31961 2000-01-22 Jim Meyering <meyering@lucent.com>
31963 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
31964 [! HAVE_DECL_STRTOULL]: Declare strtoull.
31965 Required for some AIX systems. Reported by Christian Krackowizer.
31966 [TESTING] (main): New function.
31968 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
31969 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
31972 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
31975 * lib/strverscmp.c (ISDIGIT): Define.
31976 (strverscmp): Use ISDIGIT, not isdigit.
31978 2000-01-19 Jim Meyering <meyering@lucent.com>
31980 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
31981 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
31982 defines `struct timespec' in <sys/time.h>
31984 * m4/c-bs-a.m4: Remove uses of changequote altogether.
31985 Thanks to Akim for explaining.
31987 2000-01-17 Paul Eggert <eggert@twinsun.com>
31989 * lib/nanosleep.c (nanosleep):
31990 Don't use SA_INTERRUPT to decide whether to call sigaction, as
31991 POSIX.1 doesn't require SA_INTERRUPT and some systems
31992 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
31993 it's been part of POSIX.1 since day 1 (in 1988).
31995 2000-01-17 Jim Meyering <meyering@lucent.com>
31997 * lib/interlock: Remove unused file. Reported by François Pinard.
31999 2000-01-16 Paul Eggert <eggert@twinsun.com>
32001 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
32002 alert, backslash, formfeed, and vertical tab unnecessarily in
32003 shell quoting style.
32005 2000-01-16 Jim Meyering <meyering@lucent.com>
32007 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
32008 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
32009 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
32010 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
32012 2000-01-16 Jim Meyering <meyering@lucent.com>
32014 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
32015 because the latter didn't work.
32017 2000-01-15 Jim Meyering <meyering@lucent.com>
32019 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
32020 (AC_REPLACE_FUNCS): Add memcpy and memset.
32021 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
32023 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
32025 2000-01-12 Jim Meyering <meyering@lucent.com>
32027 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
32028 (jm_PREREQ): Use it.
32029 (jm_PREREQ_READUTMP): New macro.
32030 (jm_PREREQ): Use it.
32032 2000-01-11 Paul Eggert <eggert@twinsun.com>
32034 Quote multibyte characters correctly.
32035 * m4/c-bs-a.m4: New file.
32036 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
32037 (jm_PREREQ): Use it.
32039 2000-01-11 Paul Eggert <eggert@twinsun.com>
32041 * m4/uintmax_t.m4: Port to autoconf 2.13.
32043 2000-01-08 Jim Meyering <meyering@ascend.com>
32045 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
32046 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
32048 2000-01-04 Jim Meyering <meyering@ascend.com>
32050 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
32051 jm_STRUCT_DIRENT_D_TYPE.
32052 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
32053 jm_STRUCT_DIRENT_D_INO.
32054 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
32056 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
32058 * m4/utime.m4: Likewise.
32060 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
32061 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
32063 2000-01-03 Paul Eggert <eggert@twinsun.com>
32065 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
32066 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
32068 2000-01-02 Jim Meyering <meyering@ascend.com>
32070 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
32071 remember if this is necessary.
32073 1999-12-26 Jim Meyering <meyering@ascend.com>
32075 * m4/jm-macros.m4: Use it here.
32076 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
32078 1999-12-23 Jim Meyering <meyering@ascend.com>
32080 * m4/jm-macros.m4: Check for clock_gettime (moved from
32081 fileutils/configure.in)
32082 Check for gettimeofday.
32084 1999-12-20 Jim Meyering <meyering@ascend.com>
32086 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
32087 autoconf-2.14a-1999-12-20.
32089 1999-12-19 Jim Meyering <meyering@ascend.com>
32091 * m4/lstat-slash.m4: New file.
32092 * m4/jm-macros.m4: Use the new macro:
32093 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
32095 1999-12-07 Jim Meyering <meyering@ascend.com>
32097 * m4/perl.m4: Require that File::Compare be available, too.
32098 Too many systems seem to lack it.
32100 * m4/strftime.m4: Add checks for most of the cpp macros tested in
32101 GNU's strftime.c. Prompted by a patch from Paul Eggert.
32103 1999-11-18 Paul Eggert <eggert@twinsun.com>
32105 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
32106 problem with the QNX 4.25 shell, which doesn't propagate exit
32107 status of failed commands inside shell assignments.
32109 1999-11-17 Jim Meyering <meyering@ascend.com>
32111 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
32113 1999-11-07 Jim Meyering <meyering@ascend.com>
32115 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
32117 1999-11-06 Jim Meyering <meyering@ascend.com>
32119 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
32120 * m4/jm-macros.m4 (jm_MACROS): Use it here.
32122 1999-11-05 Jim Meyering <meyering@ascend.com>
32124 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
32125 configure.in of textutils, fileutils, and sh-utils into this one
32126 (shared between those packages) file.
32127 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
32128 AC_STRUCT_ST_BLKSIZE.
32130 1999-11-03 Jim Meyering <meyering@ascend.com>
32132 * m4/ssize_t.m4: Remove file. No longer needed since the new version
32133 of AC_CHECK_TYPE checks includes unistd.h.
32134 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
32135 Suggestion from Akim Demaille.
32137 1999-10-30 Jim Meyering <meyering@ascend.com>
32139 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
32141 * m4/ls-mntd-fs.m4: Likewise.
32142 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
32143 * m4/jm-winsz1.m4: Likewise.
32145 * m4/const.m4: Remove file, since the fix made it into the experimental
32146 version of autoconf.
32147 * m4/mktime.m4: Likewise.
32149 * m4/check-type.m4: Remove file, now that the latest version of
32150 AC_CHECK_TYPE takes a third arg to specify additional #includes.
32152 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
32153 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
32156 1999-10-04 Jim Meyering <meyering@ascend.com>
32158 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
32160 1999-09-22 Paul Eggert <eggert@twinsun.com>
32162 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
32163 2.95.1 bug with HP-UX 10.20.
32165 1999-09-17 Jim Meyering <meyering@ascend.com>
32167 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
32168 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
32169 due to missing strdup (against sh-utils-2.0).
32171 1999-08-29 Jim Meyering <meyering@ascend.com>
32173 * m4/jm-macros.m4: Require jm_BISON.
32174 * m4/bison.m4: New file.
32176 1999-08-17 Paul Eggert <eggert@twinsun.com>
32178 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
32179 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
32181 1999-08-05 Jim Meyering <meyering@ascend.com>
32183 * m4/getline.m4: Rename test file from conftestdata to conftest.data
32184 to avoid conflicts with `conftest' on 8+3 filesystems.
32185 Suggestion from Eli Zaretskii.
32187 1999-08-04 Jim Meyering <meyering@ascend.com>
32189 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
32190 fileutils and sh-utils (textutils's getline test was inadequate).
32191 (AM_FUNC_GETLINE): Run this test.
32192 (AC_CHECK_FUNCS): Check for getdelim.
32193 Reported by Bob Proulx.
32195 1999-08-02 Jim Meyering <meyering@ascend.com>
32197 * m4/jm-macros.m4: Add a comment.
32199 1999-08-01 Paul Eggert <eggert@twinsun.com>
32201 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
32202 <inttypes.h> defines strtoumax as a macro (and not as a
32205 1999-08-01 Paul Eggert <eggert@twinsun.com>
32207 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
32208 that we can shift, multiply and divide unsigned long long
32209 values; Ultrix cc can't do it.
32211 1999-08-01 Paul Eggert <eggert@twinsun.com>
32213 * m4/mktime.m4: New file, which is a preview of what should appear
32214 in the next public autoconf release.
32216 1999-08-01 Paul Eggert <eggert@twinsun.com>
32218 * m4/lfs.m4: Remove this file.
32219 * m4/largefile.m4: New file. It contains the old contents of
32220 lfs.m4, except that all names with prefix AC_LFS have been
32221 changed to use the prefix AC_SYS_LARGEFILE instead, to be
32222 compatible with future autoconf versions. Also, some minor m4
32223 quoting problems have been fixed.
32225 1999-08-01 Paul Eggert <eggert@twinsun.com>
32227 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
32228 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
32229 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
32230 and simplify the shell code.
32232 1999-08-01 Jim Meyering <meyering@ascend.com>
32234 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
32237 1999-07-20 Jim Meyering <meyering@ascend.com>
32239 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
32241 1999-07-15 Jim Meyering <meyering@ascend.com>
32243 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
32245 1999-05-22 Jim Meyering <meyering@ascend.com>
32247 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
32249 1999-05-20 Jim Meyering <meyering@ascend.com>
32251 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
32252 Add a colon after each `then' in case $4 is empty.
32254 1999-05-16 Jim Meyering <meyering@ascend.com>
32256 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
32258 1999-05-10 Jim Meyering <meyering@ascend.com>
32260 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
32262 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
32265 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
32267 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
32269 1999-05-04 Paul Eggert <eggert@twinsun.com>
32271 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
32272 not CPPFLAGS, so that linking works correctly in IRIX.
32274 1999-04-30 Paul Eggert <eggert@twinsun.com>
32276 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
32278 1999-04-20 Paul Eggert <eggert@twinsun.com>
32280 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
32281 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
32282 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
32283 jm_AC_TYPE_UNSIGNED_LONG_LONG.
32284 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
32286 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
32288 1999-04-20 Jim Meyering <meyering@ascend.com>
32290 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
32291 AC_REPLACE xstroull if necessary. From Paul Eggert.
32292 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
32294 1999-04-18 Jim Meyering <meyering@ascend.com>
32296 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
32297 * m4/jm-macros.m4: Use it.
32299 1999-04-06 Jim Meyering <meyering@ascend.com>
32301 * m4/strftime.m4: Remove test for %f.
32303 1999-03-29 Jim Meyering <meyering@ascend.com>
32305 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
32306 superset of the AC_TYPE_* checks in the textutils, fileutils,
32307 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
32310 1999-03-28 Jim Meyering <meyering@ascend.com>
32312 * m4/jm-macros.m4: Define GNU_PACKAGE here.
32313 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
32314 replaced e.g., in the *.sh files of the sh-utils.
32316 1999-03-20 Jim Meyering <meyering@ascend.com>
32318 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
32319 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
32320 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
32322 1999-03-19 Jim Meyering <meyering@ascend.com>
32324 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
32326 1999-03-12 Jim Meyering <meyering@ascend.com>
32328 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
32330 1999-03-07 Jim Meyering <meyering@ascend.com>
32332 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
32335 1999-02-17 Jim Meyering <meyering@ascend.com>
32337 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
32338 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
32340 1999-02-07 Jim Meyering <meyering@ascend.com>
32342 * m4/group-member.m4: New file -- extracted from sh-utils'
32345 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
32346 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
32348 1999-02-06 Jim Meyering <meyering@ascend.com>
32350 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
32351 * m4/fnmatch.m4: Likewise.
32352 * m4/getgroups.m4: Likewise.
32353 * m4/lstat.m4: Likewise.
32354 * m4/malloc.m4: Likewise.
32355 * m4/putenv.m4: Likewise.
32356 * m4/realloc.m4: Likewise.
32357 * m4/regex.m4: Likewise.
32358 * m4/stat.m4: Likewise.
32359 * m4/strftime.m4: Likewise.
32360 Suggestion from Alain Magloire.
32362 * m4/chown.m4: Use `.$ac_objext', not `.o'.
32363 * m4/fnmatch.m4: Likewise.
32364 * m4/getgroups.m4: Likewise.
32365 * m4/getline.m4: Likewise.
32366 * m4/lstat.m4: Likewise.
32367 * m4/malloc.m4: Likewise.
32368 * m4/memcmp.m4: Likewise.
32369 * m4/putenv.m4: Likewise.
32370 * m4/realloc.m4: Likewise.
32371 * m4/regex.m4: Likewise.
32372 * m4/stat.m4: Likewise.
32373 * m4/strftime.m4: Likewise.
32374 Suggestion from Alain Magloire.
32376 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
32379 * m4/regex.m4: Add a run-time Test for proper operation of
32380 re_compile_pattern.
32382 1999-01-31 Jim Meyering <meyering@ascend.com>
32384 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
32386 1999-01-30 Jim Meyering <meyering@ascend.com>
32388 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
32390 * m4/jm-mktime.m4: Make this a wrapper around the official
32391 AM_FUNC_MKTIME rather than my private copy, now that the official one
32393 * m4/mktime.m4: Remove file.
32395 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
32396 * m4/uptime.m4: Likewise.
32397 * m4/uintmax_t.m4: Likewise.
32399 1999-01-28 Jim Meyering <meyering@ascend.com>
32401 * m4/jm-macros.m4: Use jm_AFS.
32402 * m4/afs.m4: New file (from fileutils' configure.in).
32404 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
32405 * m4/chown.m4: Likewise.
32406 * m4/d-ino.m4: Likewise.
32407 * m4/d-type.m4: Likewise.
32408 * m4/fnmatch.m4: Likewise.
32409 * m4/getgroups.m4: Likewise.
32410 * m4/gettext.m4: Likewise.
32411 * m4/jm-mktime.m4: Likewise.
32412 * m4/jm-winsz2.m4: Likewise.
32413 * m4/lcmessage.m4: Likewise.
32414 * m4/ls-mntd-fs.m4: Likewise.
32415 * m4/malloc.m4: Likewise.
32416 * m4/memcmp.m4: Likewise.
32417 * m4/putenv.m4: Likewise.
32418 * m4/realloc.m4: Likewise.
32419 * m4/st_mtim.m4: Likewise.
32420 * m4/strftime.m4: Likewise.
32422 1999-01-16 Jim Meyering <meyering@ascend.com>
32424 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
32425 (ARGMATCH_DIE_DECL): Define.
32427 1999-01-12 Jim Meyering <meyering@ascend.com>
32429 * m4/Makefile.am.in: Rewrite to avoid using fmt.
32430 Reported by Lars Hecking.
32432 1999-01-10 Jim Meyering <meyering@ascend.com>
32434 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
32436 * m4/inttypes_h.m4: Likewise.
32437 * m4/lstat.m4: Likewise.
32438 * m4/malloc.m4: Likewise.
32439 * m4/readdir.m4: Likewise.
32440 * m4/realloc.m4: Likewise.
32441 * m4/st_dm_mode.m4: Likewise.
32442 * m4/stat.m4: Likewise.
32443 * m4/utimbuf.m4: Likewise.
32444 * m4/utimes.m4: Likewise.
32446 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
32447 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
32448 comments in config.h.in are meaningful.
32450 * m4/jm-macros.m4: Require autoconf-2.13 here.
32452 * m4/regex.m4: By default, don't use the included regex.c on systems
32453 with glibc 2. Suggestion from Uli Drepper.
32455 1999-01-02 Jim Meyering <meyering@ascend.com>
32457 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
32459 1998-12-18 Jim Meyering <meyering@ascend.com>
32461 * m4/Makefile.am.in (Makefile.am): Simplify rule.
32462 Based on a suggestion from Lars Hecking.
32464 1998-11-16 Paul Eggert <eggert@twinsun.com>
32466 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
32468 1998-11-16 Jim Meyering <meyering@ascend.com>
32470 * m4/lfs.m4: Double-quote the `uname...` expression.
32472 1998-11-14 Jim Meyering <meyering@ascend.com>
32474 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
32475 * m4/stat.m4: Likewise.
32477 1998-11-03 Jim Meyering <meyering@ascend.com>
32479 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
32480 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
32482 1998-10-18 Jim Meyering <meyering@ascend.com>
32484 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
32486 1998-10-17 Jim Meyering <meyering@ascend.com>
32488 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
32489 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
32490 calls for those previously hard-coded headers. Instead, take a new
32492 (jm_CHECK_DECLARATIONS): Reflect interface change.
32493 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
32494 (jm_CHECK_DECL_LOCALTIME_R): New macro.
32496 * m4/mktime.m4: Test for spring-forward gap before long-running test.
32498 1998-10-14 Jim Meyering <meyering@ascend.com>
32500 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
32501 instead of "TZ=America/Vancouver". From Paul Eggert.
32503 1998-10-11 Jim Meyering <meyering@ascend.com>
32505 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
32506 This adds a test for a recently added compatibility fix for mktime.c.
32507 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
32509 1998-09-27 Jim Meyering <meyering@ascend.com>
32511 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
32513 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
32514 ../configure.in, including a change from Gordon Matzigkeit to allow
32515 cross-compiling for the Hurd.
32517 * m4/glibc.m4: New file/macro to test for the GNU C Library
32518 versions 1 and 2. From Gordon Matzigkeit.
32521 1998-09-21 Jim Meyering <meyering@ascend.com>
32523 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
32525 1998-08-18 Paul Eggert <eggert@twinsun.com>
32527 Port nanosecond-resolution times to UnixWare 2.1.2 and
32528 pedantic Solaris 2.6.
32530 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
32532 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
32533 Generate name of ns member, instead of just 1 or undef.
32534 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
32536 1998-08-15 Jim Meyering <meyering@ascend.com>
32538 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
32539 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
32540 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
32541 instead of jm_TYPE_SSIZE_T.
32543 1998-08-12 Jim Meyering <meyering@ascend.com>
32545 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
32547 1998-08-02 Jim Meyering <meyering@ascend.com>
32549 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
32550 in acconfig.h manually.
32552 1998-07-31 Paul Eggert <eggert@twinsun.com>
32554 * m4/st_mtim.m4: New file.
32556 1998-07-28 Jim Meyering <meyering@ascend.com>
32558 * m4/utimes.m4: Undef stat.
32560 1998-07-25 Jim Meyering <meyering@ascend.com>
32562 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
32563 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
32565 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
32567 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
32568 uid and gid actually remain unchanged.
32570 1998-07-07 Jim Meyering <meyering@ascend.com>
32572 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
32574 1998-07-04 Jim Meyering <meyering@ascend.com>
32576 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
32577 to prove that this macro can be used in packages without regex.c.
32579 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
32581 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
32584 1998-07-03 Jim Meyering <meyering@ascend.com>
32586 * m4/gettext.m4: Add -lintl if it's found to be necessary.
32588 * m4/gettext.m4: New file -- from gettext-0.10.35.
32589 * m4/lcmessage.m4: Likewise.
32590 * m4/progtest.m4: Likewise.
32592 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
32593 * m4/jm-macros.m4: Require the new macro.
32595 1998-06-29 Jim Meyering <meyering@ascend.com>
32597 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
32598 for the definition of NGROUPS (used in a system header included
32601 1998-06-28 Jim Meyering <meyering@ascend.com>
32603 * m4/ls-mntd-fs.m4: New file.
32604 * m4/fstypename.m4: New file.
32606 * m4/jm-macros.m4: Require the new macro.
32607 * m4/jm-glibc-io.m4: New file.
32609 1998-05-19 Jim Meyering <meyering@ascend.com>
32611 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
32612 * m4/lchown.m4: New file.
32614 * m4/Makefile.am.in: New file.
32615 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
32617 1998-05-14 Jim Meyering <meyering@ascend.com>
32619 * m4/Makefile.am (EXTRA_DIST): Add them.
32620 * m4/jm-macros.m4: New file.
32621 * m4/utimbuf.m4: New file.
32623 1998-05-12 Jim Meyering <meyering@ascend.com>
32625 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
32627 1998-05-11 Jim Meyering <meyering@ascend.com>
32629 * m4/isc-posix.m4: New file.
32631 1998-05-10 Jim Meyering <meyering@ascend.com>