users.txt: Update wget URL (tiny change)
[gnulib.git] / ChangeLog
blobe4339fc94883aa3df782e6b9d73039715dc69c65
1 2017-01-17  Pádraig Brady  <P@draigBrady.com>
3         parse-datetime: fix dependence on AC_PROG_SED
4         * modules/parse-datetime: Use `sed` directly like all other modules.
5         Reported by J William Piggott
7 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
9         intprops: update doc URLs
10         * doc/intprops.texi (Integer Range Overflow): Update URLs.
12 2017-01-16  Bruno Haible  <bruno@clisp.org>
14         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
15         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
16         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
17         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
18         distinguish s390 and s390x.
19         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
20         * NEWS: Mention the change regarding 'armel'.
22 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
24         localeinfo: case_folded_counterparts and WEOF
25         * NEWS: Document this.
26         * lib/localeinfo.c (case_folded_counterparts):
27         First arg is now wint_t, not wchar_t.  This generalizes the
28         function to also work on WEOF, where it returns 0.
30         dfa: port to gcc -fsanitize=undefined
31         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
32         as this runs afoul of gcc -fsanitize=undefined.
34 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
36         strftime: %z is -00 if unknown
37         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
38         the caller's responsibility to set 'negative_number'.  All uses changed.
39         (__strftime_internal): Put '-' before a zero UTC offset if the time
40         zone abbreviation starts with "-", which is the recently-introduced
41         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
42         * tests/test-strftime.c: Test for this.
44 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
46         dfa: port to older GCC
47         Problem reported by Assaf Gordon in:
48         http://lists.gnu.org/archive/html/bug-gnulib/2017-01/msg00103.html
49         * modules/c99: New module.  This merely attempts to use the latest
50         C version, which should be enough to solve this particular problem.
51         The idea is to document which Gnulib modules assume C99 or later.
52         * modules/dfa (Depends-on): Add it.
54 2017-01-10  Bruno Haible  <bruno@clisp.org>
56         Update DEPENDENCIES.
57         * DEPENDENCIES: List only https URLs. Update recommended version for
58         autoconf, automake, gperf.
60 2017-01-10  Jim Meyering  <meyering@fb.com>
62         maint.mk: enforce spelling of "timestamp" (i.e., no space)
63         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
64         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
66 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
68         dfa: minor simplification with emptyset
69         * lib/dfa.c (build_state): Simplify by using emptyset.
71 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73         dfa: shrink constraints from 4 bits to 3
74         * lib/dfa.c (newline_constraint, letter_constraint)
75         (other_constraint, prev_newline_dependent)
76         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
77         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
78         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
79         Constraints need only 3 bits, not 4.  Using smaller integers
80         shrinks the code a bit and makes grep a tad faster on x86-64.
82         dfa: omit unnecessary ptrdiff_t check
83         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
84         overflow, since xnmalloc does that now.
86         dfa: omit unnecessary allocation
87         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
88         an all-zero follow set works just fine.
90         dfa: omit unused local
91         * lib/dfa.c (build_state): Fix up recent change.
93         maint: remove stray .texi files
94         Although these were superseded by other files like
95         doc/posix-functions/ctime.texi, the old files were not removed.
96         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
98 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
100         getprogname: fix port to IRIX
101         * lib/getprogname.c (getprogname) [__sgi]:
102         Don't dump core if malloc returns NULL.
104         dfa: fix reallocation bug when matching newlines
105         Problem reported for sed by S. Gilles (Bug#25390).
106         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
107         (dfastate): Reallocate before moving any newline transition ...
108         (build_state): ... instead of reallocating here, where it is too late.
110 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
112         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
113         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
115 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
117         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
118         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
120 2017-01-07  Bruno Haible  <bruno@clisp.org>
122         stdioext: Port to Minix 3.2 and newer.
123         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
124         * lib/fseeko.c (fseeko): Likewise.
125         Reported by Nelson Beebe via Paul Eggert.
127 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
129         getprogname: port to IRIX
130         * lib/getprogname.c (getprogname): Port to IRIX.
131         Based on an idea by Bastien Roucariès at:
132         http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00096.html
133         via code from Bruno Haible at:
134         https://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00249.html
136         localename-tests: port to NetBSD 7
137         Problem reported by Nelson H. F. Beebe.
138         * tests/test-localename.c:
139         Test newlocale and uselocale only if both exist.
141         glob, intprops, xalloc: work around Clang bug
142         Work around LLVM bug 16404, which is still not fixed.
143         https://llvm.org/bugs/show_bug.cgi?id=16404
144         Problem reported by Nelson H. F. Beebe.
145         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
146         Remove.
147         * lib/glob.c (size_add_wrapv):
148         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
149         * lib/xalloc-oversized.h (xalloc_oversized):
150         Do not use overflow builtins if Clang.
152         dfa: fix 'return' typo
153         Problem reported by Nelson H. F. Beebe.
154         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
156 2017-01-05  Pádraig Brady  <P@draigBrady.com>
158         parse-datetime: fix generated paths for coverage files
159         * modules/parse-datetime: Adjust the paths for parse-datetime.y
160         within parse-datetime.c, so that gcc generates appropriate .gcno
161         files, allowing lcov to proceed without error.  Previously it
162         would error trying to find "lib/lib/parse-datetime.y".
164 2017-01-05  Pádraig Brady  <P@draigBrady.com>
166         maint.mk: support parallel execution of coverage
167         * top/maint.mk (coverage): Run dependencies serially,
168         thus supporting parallel processing of each one,
169         particularly build-coverage, which builds and runs tests.
171 2017-01-05  Bruno Haible  <bruno@clisp.org>
173         lock tests: Prefer semaphore over mutex.
174         * tests/test-lock.c (USE_SEMAPHORE): New constant.
175         (struct atomic_int, init_atomic_int, get_atomic_int_value,
176         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
177         Suggested by Torvald Riegel <triegel@redhat.com>.
179 2017-01-05  Bruno Haible  <bruno@clisp.org>
181         lock: Provide guarantee to avoid writer starvation for rwlocks.
182         The rationale is: 1) Read-preferring read-write locks are prone to
183         writer starvation if the number of reader threads multiplied by the
184         percentage of time they have the lock held is too high. 2) Write-
185         preferring read-write locks are the only reliable way to avoid this.
186         3) There have been reports of 'test-lock' hanging on glibc systems
187         http://lists.gnu.org/archive/html/bug-gnulib/2017-01/msg00009.html,
188         and glibc indeed implements read-preferring rwlocks by default, see
189         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
190         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
191         * m4/pthread_rwlock_rdlock.m4: New file.
192         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
193         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
194         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
195         of rwlock initialization on glibc systems without
196         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
197         of rwlocks altogether on non-glibc systems without
198         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
199         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
200         * lib/glthread/lock.c [USE_POSIX_THREADS]
201         (glthread_rwlock_init_for_glibc): New function.
202         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
203         comment.
204         [USE_PTH_THREADS]: New implementation of rwlocks.
205         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
206         readers.
207         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
208         (Depends-on): Add 'extensions'.
209         * tests/test-rwlock1.c: New file.
210         * lock-tests (Files): Add it.
211         (Depends-on): Add usleep.
212         (Makefile.am): Add test-rwlock1 to the tests.
214 2017-01-05  Bruno Haible  <bruno@clisp.org>
216         thread: Fix pth port.
217         * lib/glthread/thread.h (pth_init): Declare weak.
218         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
219         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
220         function.
222 2017-01-04  Assaf Gordon <assafgordon@gmail.com>
224         parse-datetime: fix debug message on lone year number
225         Input dates such as
226           date -d "Apr 11 22:59:00 2011"
227         are parsed as date (Apr 11, with default year 2016), then time, then a
228         number (2011). Based on the combination of previously seen tokens,
229         'digits_to_date_time' determines 2011 to be a year value.
230         This fixes the debug messages to correctly show the updated year.
231         Before:
232             $ date --debug -d 'Apr 11 22:59:00 2011'
233             date: parsed date part: (Y-M-D) 2016-04-11
234             date: parsed time part: 22:59:00
235             date: parsed number part: today/this/now
236         After:
237             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
238             date: parsed date part: (Y-M-D) 2016-04-11
239             date: parsed time part: 22:59:00
240             date: parsed number part: year: 2011
241         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
242         'debug_year_seen' member fields.
243         (digits_to_date_time): Update 'year_seen' as needed.
244         (debug_print_current_time): Inform about year updates.
245         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
247         parse-datetime: fix local timezone debug messages
248         "Local timezones" are strings that affect only DST relative to the
249         default timezone. The debug messages in parse-datetime.y printed
250         wrong information when encountering local timezones.
251         Examples:
252         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
253              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
254              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
255         When the default timezone relates to the zone strings, EET/EEST are
256         parsed as local timezones (tLOCAL_ZONE), and only change the DST
257         value (0/1, respectively):
258              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
259              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
260         * lib/parse-datetime.y (debug_print_current_time): If local timezone
261         was seen, inform about DST change, don't print actual timezone.
262         (debug_strfdatetime): If local timezone was seen, use default timezone
263         (and adjust as needed) instead of using incorrect timezone.
264         (parse_datetime2): Use correct time-zone source string, and adjust
265         default timezone as needed.
267         parse-datetime: add debug warning about DST changes
268         Incorrect date arithmetic due to daylight saving time (DST) are a
269         common (false) bug report in coreutils.
270         Detect two such cases and print a warning:
271         1. year/month/day adjustments (performed on 'struct tm'),
272            where 'mktime' returns a different isdst value.
273         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
274            where the result of 'localtime(3)' on the value will return a
275            different isdst value.
276         Note: DST changes could be harmless or unnoticeable.
277         Examples (with 'TZ=America/New_York'):
278         Unnoticeable: result is 2016-Dec-14
279            $ date -d '2016-06-15 EDT + 6 months' +%b
280            Dec
281         Unnoticeable: result is 2016-Dec-15 11:00:00
282            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
283            2016-12-15
284         This is unexpected:
285            $ date -d '2016-06-01 EDT + 6 months' +%F
286            2016-11-30
287         The new debug warnings will show:
288            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
289            ...
290            date: warning: daylight saving time changed after date adjustment
291            ...
292         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
293         print an appropriate warning message.
295         parse-datetime: add debug warning about date arithmetic
296         Date arithmetic are done directly on the fields of 'struct tm',
297         which can result in invalid dates. Normalization with 'mktime(3)'
298         will then produce a different date - which might cause unexpected
299         results.
300         Examples:
301           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
302           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
303         Note that date normalization is not inherently wrong and not rejected,
304         as it has legitimate uses:
305           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
306         If the user asked to adjust months but 'mday' changed,
307         or user asked to adjust years but 'month' changed - warn about it.
308             $ ./src/date --debug -d '2016-10-31 - 1 month'
309             ...
310             date: warning: when adding relative months/years, \
311                            it is recommended to specify the 15th of the month
312             ...
313             date: warning: month/year adjustment resulted in shifted dates:
314             date:      adjusted Y M D: 2016 09 31
315             date:    normalized Y M D: 2010 10 01
316             ...
317         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
318         a warning message. Improve recommendation of when to use 15 of the
319         month or noon for date arithmetic.
321         parse-datetime: fix debug message of relative part after timezone
322         Relative part (e.g '+8 days') after a timezone string was not
323         reported (was only reported after a timezone number). Due to the
324         parser's structure, timezone strings with numbers were handled
325         separately.
326         before:
327              # Timezone number + relative part: OK
328              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
329              ...
330              date: parsed relative part: -8 day(s)
331              # Timezone string + relative part: missing
332              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
333              [ missing message ]
334         After: messages are printed in both cases.
335         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
337         parse-datetime: fix incorrect debug message on lone number
338         A lone number is an absolute value, not a relative time part.
339         before:
340            $ date --debug -d '20130101'
341            date: parsed number part: today/this/now
342         After:
343            $ ./src/date --debug -d '20130101'
344            date: parsed number part: (Y-M-D) 2013-01-01
345         * lib/parse-datetime.y ('item'/'number' tokens): Call
346         'debug_print_current_time' instead of 'debug_print_relative_time'.
348 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
350         doc: modernize for C11 etc.
351         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
352         for C11, MinGW, etc.  This responds to Paul Smith's question in:
353         http://lists.gnu.org/archive/html/bug-gnulib/2017-01/msg00014.html
355         dfa: prefer functions to FETCH_WC macro
356         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
357         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
358         wint_t result into DFA->lex.wctok instead of to a separate arg.
359         All callers changed.  Move more local decls closer to where
360         they're used.
362         dfa: narrow more local var scopes
363         * lib/dfa.c: Move more local decls to be more local.
365         dfa: remove duplicate assignment
366         Problem reported by Bruno Haible in:
367         http://lists.gnu.org/archive/html/bug-gnulib/2017-01/msg00007.html
368         * lib/dfa.c (parse_bracket_exp): Simplify.
370 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
372         dfa: simplify constraint-dependency checking
373         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
374         (prev_other_constraint): Remove.
375         (prev_newline_dependent, prev_letter_dependent):
376         Simplify, to avoid an unnecessary bitwise AND operation.
378         dfa: prefer functions and constants to macros
379         * lib/dfa.c: Prefer constants to macros where either will do.
380         (streq, isasciidigit, newline_constraint)
381         (letter_constraint, other_constraint, succeeds_in_context)
382         (prev_newline_constraint, prev_letter_constraint)
383         (prev_other_constraint, prev_newline_dependent)
384         (prev_letter_dependent, accepting, accepts_in_context):
385         Now static functions instead of function-like macros.
386         Use lower-case names accordingly.  All uses changed.
388         dfa: narrow more local var scopes
389         * lib/dfa.c: Move some more local decls down to nearer where
390         they're needed.
392 2016-12-31  Jim Meyering  <meyering@fb.com>
394         dfa: narrow the scope of many local variables
395         * lib/dfa.c: Now that we are no longer constrained to c89, move
396         declarations of many variables (often indices) "down" into the
397         scope(s) where used or to the point of definition.  This is a
398         no-semantic-change diff.
400 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
402         version-etc: new year
403         * build-aux/gendocs.sh (version):
404         * doc/gendocs_template:
405         * doc/gendocs_template_min:
406         * doc/gnulib.texi:
407         * lib/version-etc.c (COPYRIGHT_YEAR):
408         Update copyright dates by hand in templates and the like.
409         * all files: Run 'make update-copyright'.
411 2016-12-31  Eric Blake  <eblake@redhat.com>
413         do-release-commit-and-tag: avoid shell syntax error
414         * build-aux/do-release-commit-and-tag (curr_br): $branch can
415         contain spaces when rebasing.
417         maint.mk: hoist gnulib_dir definition earlier
418         * top/maint.mk (gnulib_dir): Move near top of file.
420 2016-12-31  Jim Meyering  <meyering@fb.com>
422         maint.mk: do not always evaluate intprops-related shell
423         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
424         using gnulib_dir undefined (gnulib_dir is defined later in the
425         file, which will be fixed separately), and besides, there is no
426         need to incur the cost of this shell invocation for every single
427         use of this .mk file.  Reported by Eric Blake in
428         https://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00137.html
430 2016-12-30  Jim Meyering  <meyering@fb.com>
432         maint.mk: improve sc_prohibit_intprops_without_use
433         * top/maint.mk (_intprops_names): Don't hard-code the list of
434         symbol names.  Instead, derive it on the fly.
436 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
438         dfa: shorten sbit, success
439         * lib/dfa.c (struct regex_syntax.sbit):
440         (struct dfa.success): Use char, not int, for array elements, since
441         they are all in the range 0..7.
443         dfa: simplify multibyte_prop etc.
444         This follows up on a change made when dfa.c was in grep, namely grep
445         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
446         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
447         That earlier simplification allows for some more simplification
448         and trimming down here.
449         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
450         (struct lexer_state): New mamber brack.
451         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
452         since they must be in the range 0..3 now.
453         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
454         the brack member now supersedes them.
455         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
456         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
457         (dfaparse): Remove unnecessary initializations of already-0 storage.
458         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
459         (dfassbuild): No need to clear sup->mbcsets.
461         dfa: minor performance tweak
462         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
464         dfa: wrap charclass inside a struct
465         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
466         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
467         about 5% faster, where list.txt is generated by 'aspell dump
468         master | head -n 100000 >list.txt'.  See Bug#22239.
469         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
470         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
471         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
472         Adjust to this, e.g., by using charclass * rather than charclass.
473         All callers changed as needed.
474         (copyset): Remove.  All uses changed to simple assignment.
475         (parse_bracket_exp): Use zeroset instead of memset.
477 2016-12-30  Jim Meyering  <meyering@fb.com>
479         maint.mk: update list of intprops.h symbol names
480         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
481         This avoids a false failure of the sc_prohibit_intprops_without_use
482         rule in grep.
484 2016-12-29  Eric Blake  <eblake@redhat.com>
486         getopt: fix parallel test failure
487         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
488         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
489         * tests/test-getopt-main.h (main): Use different file names
490         in case test-getopt-gnu and test-getopt-posix run in parallel.
492 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
494         xalloc: x2nrealloc check for ptrdiff_t overflow
495         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
496         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
498 2016-12-24  Bruno Haible  <bruno@clisp.org>
500         lock test: Fix performance problem on multi-core machines.
501         * tests/test-lock.c (USE_VOLATILE): New macro.
502         (struct atomic_int): New type.
503         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
504         functions.
505         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
506         as 'struct atomic_int'.
507         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
508         reclock_checker_thread, test_recursive_lock): Use the new functions.
509         Reported by Eric Blake in
510         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
511         and by Pádraig Brady in
512         http://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00117.html.
514 2016-12-19  Bruno Haible  <bruno@clisp.org>
516         vma-iter: Fix endless loop on 64-bit Windows.
517         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
518         'unsigned long'.
520 2016-12-19  Bruno Haible  <bruno@clisp.org>
522         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
523         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
524         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
525         Invoke gt_TYPE_WINT_T instead.
526         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
527         * modules/stdint (Files): Add m4/wint_t.m4.
528         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
529         * modules/wctype-h (Makefile.am): Likewise.
530         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
531         not only on MSVC.
532         * lib/wctype.in.h (wint_t): Likewise.
534 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
536         getopt-posix-tests: fix Makefile typo
537         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
538         Fix typo: the last ‘_’ was missing in the name.
539         I suspect that the typo explains this build failure:
540         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
541         although I can’t reproduce the problem on Solaris 10 sparc.
543 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
545         dfa: improve worst-case 'replace' performance
546         See my note in Bug#22357#71.
547         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
548         (merge_constrained): New function, which is like
549         the old 'merge' function, except with a new argument C2.
550         Simplify the body by avoiding the need for different sections
551         of code depending on whether one input is exhausted.
552         (merge): Use the new function.
553         (delete): Return the constraint of the deleted position,
554         not the entire position.  Caller changed.
555         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
557 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
559         dfa: performance improvement for removal of epsilon closure
560         See Bug#22357#32.
561         * lib/dfa.c (delete): Use binary search to find deleted index.
562         (replace): New function.  It replaces a position with the followed set.
563         (epsclosure): Replace it with a new algorithm.  Update caller.
565 2016-12-18  Bruno Haible  <bruno@clisp.org>
567         Split tests for getopt-posix and getopt-gnu.
568         * tests/test-getopt-posix.c: New file.
569         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
570         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
571         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
572         GNULIB_TEST_GETOPT_GNU.
573         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
574         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
575         (Makefile.am): Test test-getopt-posix instead of test-getopt.
576         * modules/getopt-gnu-tests: New file.
577         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
579 2016-12-18  Bruno Haible  <bruno@clisp.org>
581         posix-modules: Add options for specific platforms.
582         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
583         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
584         Invoke func_tmpdir. Filter out the excludes.
586 2016-12-18  Bruno Haible  <bruno@clisp.org>
588         getopt: Fix link error for users of getopt() in <unistd.h>.
589         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
590         __need_getopt is defined. Undefine all macros before defining them.
591         * modules/getopt (Include): Clarify that including <unistd.h> is also
592         OK.
593         * tests/test-getopt.c: Add comment.
595 2016-12-17  Bruno Haible  <bruno@clisp.org>
597         getaddrinfo tests: Avoid compilation error on MSVC.
598         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
599         getaddrinfo on native Windows.
601 2016-12-17  Bruno Haible  <bruno@clisp.org>
603         getlogin, getlogin_r: Fix link errors on MSVC.
604         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
605         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
606         (Link): New section.
607         * modules/getlogin_r (Files): Add m4/getlogin.m4.
608         (configure.ac): Require gl_LIB_GETLOGIN.
609         (Link): New section.
610         * NEWS: Mention the new link requirements.
611         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
612         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
614 2016-12-17  Bruno Haible  <bruno@clisp.org>
616         Un-deprecate the 'progname' module.
617         * NEWS: Describe the appropriate use-cases of 'progname' versus
618         'getprogname'. Based on discussion summary at
619         http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00105.html
621 2016-12-17  Bruno Haible  <bruno@clisp.org>
623         Reorganize NEWS a bit.
624         * NEWS: Move some not so important changes away from section
625         "Important Notes".
627 2016-12-17  Bruno Haible  <bruno@clisp.org>
629         tanhf: Avoid redefinition error on MSVC.
630         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
631         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
632         may be defined as an inline function.
633         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
634         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
636 2016-12-17  Bruno Haible  <bruno@clisp.org>
638         tanf: Avoid redefinition error on MSVC.
639         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
640         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
641         may be defined as an inline function.
642         * modules/math (Makefile.am): Substitute REPLACE_TANF.
643         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
645 2016-12-17  Bruno Haible  <bruno@clisp.org>
647         sqrtf: Avoid redefinition error on MSVC.
648         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
649         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
650         may be defined as an inline function.
651         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
652         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
654 2016-12-17  Bruno Haible  <bruno@clisp.org>
656         sinhf: Avoid redefinition error on MSVC.
657         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
658         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
659         may be defined as an inline function.
660         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
661         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
663 2016-12-17  Bruno Haible  <bruno@clisp.org>
665         sinf: Avoid redefinition error on MSVC.
666         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
667         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
668         may be defined as an inline function.
669         * modules/math (Makefile.am): Substitute REPLACE_SINF.
670         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
672 2016-12-17  Bruno Haible  <bruno@clisp.org>
674         logf: Avoid redefinition error on MSVC.
675         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
676         may be defined as an inline function.
678 2016-12-17  Bruno Haible  <bruno@clisp.org>
680         log10l: Avoid redefinition error on MSVC.
681         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
682         may be defined as an inline function.
684 2016-12-17  Bruno Haible  <bruno@clisp.org>
686         log10f: Avoid redefinition error on MSVC.
687         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
688         may be defined as an inline function.
690 2016-12-17  Bruno Haible  <bruno@clisp.org>
692         hypotl: Avoid redefinition error on MSVC.
693         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
694         may be defined as an inline function.
696 2016-12-17  Bruno Haible  <bruno@clisp.org>
698         hypotf: Avoid redefinition error on MSVC.
699         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
700         may be defined as an inline function.
702 2016-12-17  Bruno Haible  <bruno@clisp.org>
704         fmodl: Avoid redefinition error on MSVC.
705         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
706         may be defined as an inline function.
708 2016-12-17  Bruno Haible  <bruno@clisp.org>
710         fmodf: Avoid redefinition error on MSVC.
711         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
712         may be defined as an inline function.
714 2016-12-17  Bruno Haible  <bruno@clisp.org>
716         expf: Avoid redefinition error on MSVC.
717         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
718         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
719         may be defined as an inline function.
720         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
721         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
723 2016-12-17  Bruno Haible  <bruno@clisp.org>
725         coshf: Avoid redefinition error on MSVC.
726         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
727         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
728         may be defined as an inline function.
729         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
730         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
732 2016-12-17  Bruno Haible  <bruno@clisp.org>
734         cosf: Avoid redefinition error on MSVC.
735         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
736         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
737         may be defined as an inline function.
738         * modules/math (Makefile.am): Substitute REPLACE_COSF.
739         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
741 2016-12-17  Bruno Haible  <bruno@clisp.org>
743         atan2f: Avoid redefinition error on MSVC.
744         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
745         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
746         may be defined as an inline function.
747         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
748         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
750 2016-12-17  Bruno Haible  <bruno@clisp.org>
752         atanf: Avoid redefinition error on MSVC.
753         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
754         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
755         may be defined as an inline function.
756         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
757         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
759 2016-12-17  Bruno Haible  <bruno@clisp.org>
761         asinf: Avoid redefinition error on MSVC.
762         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
763         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
764         may be defined as an inline function.
765         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
766         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
768 2016-12-17  Bruno Haible  <bruno@clisp.org>
770         acosf: Avoid redefinition error on MSVC.
771         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
772         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
773         may be defined as an inline function.
774         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
775         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
777 2016-12-17  Bruno Haible  <bruno@clisp.org>
779         Avoid redefinition errors on MSVC.
780         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
781         the function may be defined as an inline function.
782         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
783         the function may be defined as an inline function.
785 2016-12-17  Bruno Haible  <bruno@clisp.org>
787         Avoid redefinition errors on MSVC.
788         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
789         * lib/unistd.in.h: Include <stdio.h> when necessary.
791 2016-12-17  Bruno Haible  <bruno@clisp.org>
793         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
794         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
795         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
796         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
797         WINT_MAX.
799 2016-12-17  Bruno Haible  <bruno@clisp.org>
801         Avoid autoconf warning.
802         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
803         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
805 2016-12-17  Bruno Haible  <bruno@clisp.org>
807         fpending: Revert workaround against Emacs bug.
808         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
809         The Emacs bug is fixed by Eli Zaretskii in
810         http://lists.gnu.org/archive/html/emacs-devel/2016-12/msg00715.html
812 2016-12-17  Bruno Haible  <bruno@clisp.org>
814         getlogin_r tests: Port to mingw.
815         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
816         regression introduced on 2014-05-19.
818 2016-12-17  Bruno Haible  <bruno@clisp.org>
820         getlogin: Port to newer mingw.
821         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
822         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
823         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
824         HAVE_GETLOGIN.
825         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
826         HAVE_GETLOGIN.
827         * doc/posix-functions/getlogin.texi: Mention the issue.
828         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
829         regression introduced on 2014-05-14.
831 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
833         builtin-expect: improve port to IBM XL C
834         Problem reported for z/OS by Daniel Richard G. in:
835         http://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00079.html
836         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
837         Test for <builtins.h> directly.
839         builtin-expect: port to IBM XL C
840         Problem reported for z/OS by Daniel Richard G. in:
841         http://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00074.html
842         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
843         Also allow __builtin_expect defined via a standard include file.
845         regex: fix dependency
846         Problem reported by Bruno Haible in:
847         http://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00073.html
848         * modules/regex: Depend on builtin-expect.
850         builtin-expect: new module
851         Fix fnmatch to use it.
852         Problem reported for z/OS by Daniel Richard G.
853         * lib/fnmatch.c (__builtin_expect):
854         * lib/glob.c (__builtin_expect):
855         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
856         * lib/memmem.c (__builtin_expect) [!_LIBC]:
857         * lib/scandir.c (__builtin_expect):
858         * lib/strstr.c (__builtin_expect) [!_LIBC]:
859         Remove macro; config.h now does this.
860         * lib/gl_anytreehash_list1.h (add_to_bucket):
861         * lib/regex_internal.h (BE):
862         Assume __builtin_expect.
863         * m4/builtin-expect.m4, modules/builtin-expect: New files.
864         * modules/avltreehash-list, modules/fnmatch, modules/glob:
865         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
866         * modules/scandir, modules/strstr-simple:
867         Depend on builtin-expect.
869 2016-12-15  Bruno Haible  <bruno@clisp.org>
871         init.sh: Add possibility to not delete temporary files.
872         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
873         to yes, don't erase the temporary directory.
875 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
877         regex: fix integer-overflow bug in never-used code
878         Problem reported by Clément Pit–Claudel in:
879         http://lists.gnu.org/archive/html/emacs-devel/2016-12/msg00654.html
880         * lib/regex_internal.h: Include intprops.h.
881         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
882         behavior on integer overflow.
883         * modules/regex (Depends-on): Add intprops.
885         fpending: fix port to MinGW on Emacs
886         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
887         Problem reported by Eli Zaretskii in:
888         http://lists.gnu.org/archive/html/emacs-devel/2016-12/msg00642.html
889         Is Plan 9 still a valid porting target, anyway?
891 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
893         safe-alloc: use xalloc-oversized
894         * lib/safe-alloc.c: Include xalloc-oversized.h.
895         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
896         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
898         xalloc: do not exceed PTRDIFF_MAX
899         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
900         xalloc_oversized check, since objects larger than PTRDIFF_MAX
901         bytes have pointer-subtraction problems.
903         malloca: do not exceed PTRDIFF_MAX
904         * lib/malloca.h: Include xalloc-oversized.
905         (nmalloca): Use xalloc_oversized instead of rolling our own.
906         * modules/malloca (Depends-on):
907         * modules/relocatable-prog-wrapper (Depends-on):
908         Add xalloc-oversized.
910         quotearg: pacify GCC better
911         * modules/quotearg (Depends-on): Add minmax, stdint.
912         * lib/quotearg.c: Include minmax.h, stdint.h.
913         (nslots): Now int, as there seems little point to going to extra
914         work merely to support the INT_MAX slot, which nobody ever uses.
915         (quotearg_n_options): Redo size-overflow checks to pacify GCC
916         and to catch (mostly-theoretical) ptrdiff_t problems too.
917         This can be done via one comparison.
919 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
921         xalloc-oversized: check for PTRDIFF_MAX too
922         This avoids undefined behavior when subtracting pointers to
923         objects containing more than PTRDIFF_MAX bytes.
924         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
925         Also return 1 if the result would exceed PTRDIFF_MAX>
926         * modules/xalloc-oversized (Depends-on):
927         Add stdint.
929         dfa: fix glitches in previous commit
930         Sorry, I don't know how I managed to commit the wrong version.
931         * lib/dfa.c (MIN): Move up.
932         (xpalloc): Now static.
934         dfa: fix some unlikely integer overflows
935         I found these while reviewing the recent Coverity-related fix.
936         This patch changes part of dfa.c to prefer ptrdiff_t instead of
937         size_t for object counts.  Using ptrdiff_t is the style typically
938         used in Emacs; although it wastes a sign bit as sizes can never be
939         negative, it makes -fsanitize=undefined more likely to catch
940         integer overflows in index calculation, and nowadays the upside is
941         typically more important than the downside.  Although perhaps the
942         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
943         of dfa.c already does, since it uses state_num which is signed),
944         that is a bigger change and is not needed to fix the bugs I found.
945         * lib/dfa.c: Include stdint.h and intprops.h.
946         (TOKEN_MAX): New macro.
947         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
948         (charclass_index, parse_bracket_exp, addtok, insert, merge)
949         (realloc_trans_if_necessary, free_mbdata):
950         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
951         This is safe because xpalloc checks that the sizes do not exceed
952         either SIZE_MAX or PTRDIFF_MAX.
953         (xpalloc): New function, mostly taken from Emacs.
954         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
955         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
956         (charclass_index): Check for integer overflow in computing
957         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
958         added to it later.
959         (alloc_position_set): Check for integer overflow.  On typical
960         platforms this check has zero overhead, since the constant
961         expression is false.
962         (realloc_trans_if_necessary):
963         Remove assertion, which I hope Coverity no longer needs.
965         * modules/dfa (Depends-on): Add intprops, stdint.
967 2016-12-12  Jim Meyering  <meyering@fb.com>
969         dfa: add an assertion to avoid coverity false positive
970         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
971         warned that "newalloc1 - 2" could overflow.
973 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
975         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
976         * dfa.h (DFA_CASE_FOLD): Remove.
977         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
979 2016-12-13  John W. Eaton  <gnu@jweaton.org>
981         link: fix test to declare use of rename()
982         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
983         -Werror=implicit-function-declaration
985 2016-12-12  Bruno Haible  <bruno@clisp.org>
987         fpending: Port to native Windows with MSVC.
988         * lib/fpending.c: Include stdio-impl.h.
989         (__fpending): Include all known implementations. Err out if it's not
990         ported.
991         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
992         * modules/fpending (Files): Add lib/stdio-impl.h.
993         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
995 2016-12-12  Bruno Haible  <bruno@clisp.org>
997         stdioext: Port to native Windows with MSVC.
998         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
999         (struct _gl_real_FILE): New type.
1000         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
1001         Windows.
1002         * lib/fbufmode.c (fbufmode): Add code for native Windows.
1003         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
1004         other SystemV derived implementations.
1005         * lib/fpurge.c (fpurge): Likewise.
1006         * lib/freadable.c (freadable): Likewise.
1007         * lib/freadahead.c (freadahead): Likewise.
1008         * lib/freading.c (freading): Likewise.
1009         * lib/freadptr.c (freadptr): Likewise.
1010         * lib/freadseek.c (freadptrinc): Likewise.
1011         * lib/fseeko.c (fseeko): Likewise.
1012         * lib/fseterr.c (fseterr): Likewise.
1013         * lib/fwritable.c (fwritable): Likewise.
1014         * lib/fwriting.c (fwriting): Likewise.
1015         Reported by Gisle Vanem <gvanem@yahoo.no>.
1017 2016-12-11  Jim Meyering  <meyering@fb.com>
1019         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
1020         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
1021         to work with most shells, but not with the one provided by many
1022         Solaris 10 systems, so running configure with such a /bin/sh evokes
1023         e.g., "./configure: syntax error at line 33602: `(' unexpected".
1024         Reported by Assaf Gordon in
1025         https://lists.gnu.org/archive/html/sed-devel/2016-12/msg00002.html
1027 2016-12-10  Bruno Haible  <bruno@clisp.org>
1029         threadlib: Optimize out runtime test on Solaris >= 10.
1030         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
1031         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
1032         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
1034 2016-12-10  Bruno Haible  <bruno@clisp.org>
1036         stdint: Update doc about Solaris 9.
1037         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
1039 2016-12-09  Bruno Haible  <bruno@clisp.org>
1041         c-ctype tests: Fix link error on Solaris 9.
1042         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
1043         Reported at <https://savannah.gnu.org/bugs/?46827>.
1045 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
1047         dfa: fix performance bug that recomputes trans
1048         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
1049         25 on-demand changes.  The bug caused build_state to reset all
1050         d->trans elements to -2 even when d->trans was already non-null.
1051         Use C99 style decls after statements in this function.
1053         same-inode: port to MinGW
1054         Here st_ino is always 0, so change the definition of SAME_INODE so
1055         that 1 means the two files are the same, 0 with st_ino != 0 means
1056         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
1057         reported by Bruno Haible (Bug#25146).
1058         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
1059         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
1061 2016-12-04  Bruno Haible  <bruno@clisp.org>
1063         javacomp: Support Java 7 and 8.
1064         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
1065         target-version 1.7, 1.8.
1067 2016-12-02  Daiki Ueno  <ueno@gnu.org>
1069         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
1070         GPLv2" rewriting.
1072 2016-12-02  Nikos Mavrogiannopoulos <nmav@gnutls.org>
1074         * gnulib-tool (func_import): Adhere to the license guideline when
1075         rewriting the license text to "LGPLv3+ or GPLv2":
1076         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
1078 2016-12-02  Bruno Haible  <bruno@clisp.org>
1080         localcharset: Avoid theoretical buffer overrun.
1081         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
1082         return value from setlocale if it would lead to a buffer overrun.
1084 2016-12-01  Bruno Haible  <bruno@clisp.org>
1086         Relicense some modules under LGPLv2+.
1087         Kevin Cernekee's approval is in
1088         http://lists.gnu.org/archive/html/bug-gnulib/2016-11/msg00090.html.
1089         * modules/fseterr (License): Change to LGPLv2+.
1090         * modules/mbchar (License): Likewise.
1091         * modules/mbiter (License): Likewise.
1092         * modules/mbsnlen (License): Likewise.
1093         * modules/wcwidth (License): Likewise.
1095 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
1097         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
1098         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
1099         OS/2 kLIBC.
1101 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
1103         alphasort, scandir: Port to OS/2 kLIBC
1104         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
1105         declaration.
1106         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
1108 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
1110         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
1111         * lib/relocatable.c (relocate): Do not touch pathname if it is started
1112         with '/@unixroot'.
1114 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
1116         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
1117         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
1118         OS/2 kLIBC unless TCPV40HDRS is defined.
1120 2016-11-29  Jim Meyering  <meyering@fb.com>
1122         dfa: avoid new infinite loop
1123         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
1124         * lib/dfa.c (dfastate): When constructing a new state table, we could
1125         initially declare that we had found a match, and later find that
1126         constraints eliminate that possibility, yet continue to use the
1127         now stale "matched" indicator.  That would lead to an infinite loop.
1128         The solution is to update "matched" when necessary.
1129         Introduced by commit v0.1-983-g403adf1.
1131 2016-11-27  Norihiro Tanaka <noritnk@kcn.ne.jp>
1133         dfa: avoid match middle in multibyte character
1134         * lib/dfa.c (transit_state): If fails in matching single byte characters
1135         on a state including period expression in non-UTF8 multibyte locales,
1136         skip trailing bytes.
1137         (dfa_supported): Revert previous change.
1139 2016-11-27  Jim Meyering  <meyering@fb.com>
1141         dfa: avoid false match in non-UTF8 multibyte locales
1142         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
1143         as "not supported" so that callers will resort to using regex-based
1144         matcher.  This will surely hurt performance, but correctness trumps
1145         performance here, and the affected locales are less and less relevant,
1146         these days.  See grep's bug report https://bugs.gnu.org/24975.
1148 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
1150         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
1151         * lib/ptsname_r.c: Include the appropriate headers.
1152         [__sun]: Delete sys/sysmacros.h include.
1153         [_AIX || __osf__]: Likewise.
1154         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
1156 2016-11-27  Pádraig Brady  <P@draigBrady.com>
1158         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
1159         * lib/md4.c (md4_process_bytes): The existing define is made internal
1160         in recent versions of glibc, so also use this new public define.
1161         * lib/md5.c (md5_process_bytes): Likewise.
1162         * lib/sha1.c (sha1_process_bytes): Likewise.
1163         * lib/sha256.c (sha256_process_bytes): Likewise.
1164         * lib/sha512.c (sha512_process_bytes): Likewise.
1166 2016-11-27  Pádraig Brady  <P@draigBrady.com>
1168         maint: use a more standard return from mbrtowc test
1169         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
1170         from the test program as this often indicates an
1171         unhandled case in the test program.
1172         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
1173         (gl_MBRTOWC_SANITYCHECK): Likewise.
1174         (gl_MBRTOWC_NULL_ARG2): Likewise.
1175         (gl_MBRTOWC_NUL_RETVAL): Likewise.
1177 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
1179         freopen: work around glibc bug with closed fd
1180         Work around glibc bug#15589, where freopen mishandles the case
1181         where stdin etc. are already closed.
1182         * doc/posix-functions/freopen.texi (freopen): Document the bug.
1183         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
1184         instead of __need_FILE, as the latter does not work with glibc.
1185         Include <fcntl.h>, for open flags.
1186         (rpl_freopen): Work around glibc bug.
1187         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
1188         * modules/freopen (Depends-on): Add fcntl-h.
1189         * tests/test-freopen.c (main): Test for bug.
1191 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
1193         fnmatch: fix typo introduced on 2016-08-17
1194         This fixes the port to non-GCC compilers that lack __builtin_expect.
1195         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
1197         dfa: simplify with new function fillset
1198         * lib/dfa.c (fillset): New function.
1199         Use it for clarity when applicable.
1201         dfa: fix glitches with on-demand states
1202         Also, adjust commentary to better match new code.
1203         Some of these glitches predate the recent change.
1204         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
1205         only non-initial states.
1206         (dfastate): Rename locals to better match new roles.
1207         Move them into nested scopes if this is easy.
1208         Omit unnecessary calls to zeroset.
1209         Simplify test for whether to throw in the positions of state 0.
1210         Omit C99-ism (decl after statement) since Gawk still wants C89.
1211         (build_state): Omit unnecessary test and assignment.
1212         Fix some confusion that counted transition tables inaccurately
1213         and could cause a memory leak.
1214         (dfaexec_main): Redo to make it clearer to the compiler that
1215         -1 and -2 are the only negative state numbers here.
1217 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
1219         dfa: addition of new state on demand
1220         * src/dfa.c (dfastate): Add argument UC, the current input character.
1221         Fill only a group including the character in transition table.
1222         (realloc_trans_if_necessary): Add the dummy state which means that a
1223         transition table is assigned but the next state is not assigned.
1224         (build_state): Return the next state.  All callers updated.
1225         (transit_state_singlebyte): If we get the dummy state,
1226         fill the transition table.
1227         (dfaexec_main): Handle the dummy state.
1228         (free_mbdata, dfafree): Consider the dummy state.
1230 2016-11-24  Daiki Ueno  <ueno@gnu.org>
1232         srclist: sync with released gettext
1233         * config/srclist.txt: Set "release" option to the files under
1234         $GETTEXT.
1236 2016-11-24  Daiki Ueno  <ueno@gnu.org>
1238         srclist: add "release" option
1239         * config/srclist.txt: Change the format so that the first column
1240         of each line points to the top-level directory of the source
1241         archive.
1242         * config/srclist-update: Accept "release" option that checks files
1243         from the most recently tagged revision in the source archive.
1245 2016-11-21  Bruno Haible  <bruno@clisp.org>
1247         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
1248         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
1249         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
1250         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
1251         Inline and remove member function 'rpl ()' of the wrapper struct.
1253 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
1255         dfa: fix logic typo
1256         Problem reported by Stephane Chazelas (Bug#24973).
1257         * lib/dfa.c (using_simple_locale): Fix typo that caused some
1258         non-simple locales like fr_FR to be treated as simple.
1260 2016-11-20  Jim Meyering  <meyering@fb.com>
1262         fix test driver leaks: exclude, malloc, realloc
1263         * tests/test-exclude.c (main): Fix trivial leak.
1264         * tests/test-malloc-gnu.c (main): Likewise.
1265         * tests/test-realloc-gnu.c (main): Likewise.
1266         With these changes, grep's tests are now leak free.
1267         I.e., running them with ASAN elicits no failure:
1268           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
1269             AM_LDFLAGS='-fsanitize=address -static-libasan' check
1271 2016-11-11  Bruno Haible  <bruno@clisp.org>
1273         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
1274         * modules/libunistring: (License): Change from LGPL to
1275         "LGPLv3+ or GPLv2".
1276         * modules/libunistring-optional: Likewise.
1277         * modules/unicase/*: Likewise.
1278         * modules/uniconv/*: Likewise.
1279         * modules/unictype/*: Likewise.
1280         * modules/unigbrk/*: Likewise.
1281         * modules/unilbrk/*: Likewise.
1282         * modules/uniname/*: Likewise.
1283         * modules/uninorm/*: Likewise.
1284         * modules/unistdio/*: Likewise.
1285         * modules/unistr/*: Likewise.
1286         * modules/uniwbrk/*: Likewise.
1287         * modules/uniwidth/*: Likewise.
1289 2016-11-12  Bruno Haible  <bruno@clisp.org>
1291         Relicense some modules under LGPLv2+.
1292         Paul Eggert's approval is in
1293         http://lists.gnu.org/archive/html/bug-gnulib/2016-11/msg00037.html.
1294         Eric Blake's approval is in
1295         http://lists.gnu.org/archive/html/bug-gnulib/2016-11/msg00042.html.
1296         Ludovic Courtès's approval is in
1297         http://lists.gnu.org/archive/html/bug-gnulib/2016-11/msg00038.html.
1298         * modules/isnand-nolibm (License): Change to LGPLv2+.
1299         * modules/isnanf-nolibm (License): Likewise.
1300         * modules/isnanl-nolibm (License): Likewise.
1302 2016-11-19  Bruno Haible  <bruno@clisp.org>
1304         Relicense some modules under LGPLv2+.
1305         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
1306         modules/vasnprintf.
1307         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
1308         http://lists.gnu.org/archive/html/bug-gnulib/2016-11/msg00074.html.
1309         All other significant changes to the files in lib/ of these modules
1310         are from me.
1311         * modules/memcmp2 (License): Change to LGPLv2+.
1312         * modules/amemxfrm (License): Likewise.
1313         * modules/fpieee (License): Likewise.
1314         * modules/fpucw (License): Likewise.
1315         * modules/frexp-nolibm (License): Likewise.
1316         * modules/frexpl-nolibm (License): Likewise.
1317         * modules/printf-frexp (License): Likewise.
1318         * modules/printf-frexpl (License): Likewise.
1319         * modules/printf-safe (License): Likewise.
1320         * modules/signbit (License): Likewise.
1322 2016-11-17  Bruno Haible  <bruno@clisp.org>
1324         Enable Unicode decoder safety unconditionally.
1325         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
1326         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
1327         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
1328         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
1329         * lib/unistr/u8-prev.c (u8_prev): Likewise.
1330         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
1331         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
1332         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
1333         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
1334         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
1335         * lib/unistr/u16-prev.c (u16_prev): Likewise.
1336         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
1337         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
1338         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
1339         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
1340         * lib/unistr/u32-prev.c (u32_prev): Likewise.
1341         * lib/unistr/u32-next.c (u32_next): Likewise.
1342         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
1343         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
1344         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
1345         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
1346         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
1347         CONFIG_UNICODE_SAFETY tests unconditionally.
1348         * tests/unistr/test-u32-mblen.c (main): Likewise.
1349         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
1350         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
1351         * tests/unistr/test-u32-next.c (main): Likewise.
1352         * tests/unistr/test-u32-strmblen.c (main): Likewise.
1353         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
1354         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
1355         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
1356         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
1357         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
1358         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
1359         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
1360         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
1361         * lib/unistr/u16-check.c (u16_check): Update comment.
1362         * NEWS: Mention the changes that callers should be aware of.
1364 2016-11-19  Bruno Haible  <bruno@clisp.org>
1366         relocatable-prog-wrapper: Fix breakage on Cygwin.
1367         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
1368         (Depends-on): Remove intprops.
1369         * lib/relocwrapper.c: Update dependency tree.
1370         (strerror): Undefine.
1371         * build-aux/install-reloc (func_create_wrapper): Do not compile
1372         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
1374 2016-11-19  Bruno Haible  <bruno@clisp.org>
1376         strerror: Make it compile in C++ mode.
1377         * lib/strerror.c (strerror): Ignore the return value of memcpy().
1379 2016-11-15  Pedro Alves  <palves@redhat.com>
1381         sys_time: add gnulib::timeval for C++
1382         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
1383         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
1384         timeval macro.
1386 2016-11-14  Pedro Alves  <palves@redhat.com>
1388         snippet/c++defs: fix real-floating arg functions in C++ mode
1389         Also, define isfinite, isinf, isnan, signbit in the gnulib
1390         namespace instead of in the global namespace.
1391         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
1392         (_GL_END_NAMESPACE): New.
1393         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
1394         (isfinite, isinf, isnan, signbit) [__cplusplus &&
1395         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
1396         instead of in the global namespace.
1397         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
1398         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
1399         of in the global namespace.
1401 2016-11-13  Jim Meyering  <meyering@fb.com>
1403         strftime: don't use __THROW
1404         Each use of __THROW would provoke this from gcc-7-to-be:
1406           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
1407             on unit local functions [-Wattributes]
1408           static int iso_week_days (int, int) __THROW;
1409           ^~~~~~
1410         * lib/strftime.c (__THROW): Don't define.
1411         Remove each use of __THROW.
1412         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
1413         (tm_diff, iso_week_days, __strftime_internal): Likewise.
1415 2016-11-14  Paul Eggert  <eggert@union>
1417         obstack: port to gcc -fcheck-pointer-bounds
1418         Problem found by 'make check' failure on bleeding-edge coreutils
1419         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
1420         6.2.0-5ubuntu12), configured via "./configure
1421         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
1422         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
1423         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
1424         New macro, copied from fts_.h.
1425         (struct _obstack_chunk.contents): Use it.
1427 2016-11-14  Eric Blake  <eblake@redhat.com>
1429         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
1430         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
1431         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
1433 2016-11-14  Pádraig Brady  <P@draigBrady.com>
1435         strptime: fix compile error in recent change
1436         * lib/strptime.c (__strptime_internal): Fix ported code.
1438 2016-11-11  Bruno Haible  <bruno@clisp.org>
1440         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
1441         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
1442         (func_import): Extend determination of license_incompatibilities.
1443         (func_create_testdir): Extend table of license compatibility. Handle
1444         also the licenses GPLv3+, GPL, LGPLv3+.
1446 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
1448         strftime: tune %q
1449         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
1451         Merge strftime.c changes from glibc
1452         This incorporates:
1453         2007-10-16 [BZ #5184] Add tzset_called argument
1454         2008-06-13 [BZ #6612] pass reference to tzset_called around
1455         2009-10-30 Implement Burmese language locale for Myanmar
1456         2010-01-09 Add support for XPG7 testing
1457         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
1458         2015-10-20 Convert miscellaneous function definitions to prototype style
1459         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
1460         it anyway and this lessens the difference between gnulib and glibc.
1461         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
1462         (__THROW): Define if standard headers do not.
1463         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
1464         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
1465         Declare with __THROW.
1466         (__strftime_internal): Rename from strftime_case_. Add arg for
1467         whether tzset is called.  All uses changed.  Call tzset at most
1468         once.  Allow %OC, for Burmese.
1469         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
1470         Don't assume values are in range.
1472 2016-11-12  Eric Blake  <eblake@redhat.com>
1474         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
1475         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
1476         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
1477         different value.
1479 2006-11-12  Pedro Alves  <palves@redhat.com>
1481         Fix gnulib C++ namespace support and std::frexp
1482         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
1483         _GL_CXXALIASWARN.
1485 2006-11-12  Pedro Alves  <palves@redhat.com>
1487         GNULIB_NAMESPACE::func need not pull in rpl_func
1488         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
1489         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
1490         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
1491         struct instead of a function pointer.
1493 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
1495         manywarnings: fix -Wno-missing-field-initializers detection
1496         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
1497         to be independent of -Wunused-variable.  I.E. ensure the latter
1498         warning doesn't occur so that detection of the former is accurate.
1500 2016-11-05  Pádraig Brady  <pbrady@fb.com>
1502         strftime,strptime: support %q to represent the quarter
1503         * lib/strftime.c (strftime_case_): Add %q case.
1504         * lib/strptime.c (__strptime_internal): Likewise.
1505         * tests/test-strftime.c (quarter_test): A new test case.
1507 2016-11-03  Eric Blake  <eblake@redhat.com>
1509         bootstrap: Fix get_version() for AIX 5.3
1510         * build-aux/bootstrap (get_version): Factor out sed script, since
1511         indented comments choke AIX 5.3 sed.
1512         Reported-by: Michael Felt <aixtools@gmail.com>
1514 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
1516         intprops: port to older XL C
1517         Problem reported by Alexander Samoilov in:
1518         http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00166.html
1519         http://savannah.nongnu.org/bugs/?49448
1520         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
1521         Define to 1 only for XL C 12.1 or later, since this bug
1522         occurs in XL C for AIX 6.0 but not in 12.1.
1524 2016-11-02  Pádraig Brady  <P@draigBrady.com>
1526         backupfile: initialize default suffix within the implementation
1527         * lib/backupfile.c (find_backup_file_name): Initialize the
1528         global variable here, to simplify usage, and to only call
1529         getenv() when needed.
1531 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1533         futimens: remove FIXME for old Linux kernels
1534         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
1535         this in 2012" FIXME, like that for utimensat.
1537         utimensat: remove FIXME for old Linux kernels
1538         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
1539         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
1540         this in 2012" FIXME, by assuming the file system bug is absent
1541         unless demonstrated to be present.  We no longer need to worry
1542         about Linux kernel 2.6.32 when building with newer kernels.
1544 2016-10-16  Bruno Haible  <bruno@clisp.org>
1546         qsort_r: Fix macrology for platforms that lack the function.
1547         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
1548         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
1549         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
1550         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
1551         not exist.
1552         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
1553         the function exists.
1554         * modules/qsort_r: Add comments.
1556 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
1558         sys_types: fix Texinfo typos
1559         * doc/glibc-functions/gnu_dev_major.texi:
1560         * doc/glibc-functions/gnu_dev_makedev.texi:
1561         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
1563 2016-10-26  John David Anglin  <dave.anglin@bell.net>
1565         getprogname: port to HP-UX
1566         See Bug#24805.
1567         * lib/getprogname.c (getprogname) [__hpux]: Port.
1568         * tests/test-getprogname.c (STREQ) [__hpux]:
1569         Special-case for HP-UX limitations on program name length.
1571 2016-10-20  Bruno Haible  <bruno@clisp.org>
1573         Update doc about target platforms.
1574         * doc/gnulib-intro.texi (Target Platforms): Update list.
1576 2016-10-15  Bruno Haible  <bruno@clisp.org>
1578         opendir, readdir, closedir: Relicense under LGPLv2+.
1579         * modules/opendir (License): Change to LGPLv2+.
1580         * modules/readdir (License): Likewise.
1581         * modules/closedir (License): Likewise.
1583 2016-10-16  Bruno Haible  <bruno@clisp.org>
1585         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
1586         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
1587         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
1588         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
1589         HAVE_DECL_STRERROR_R.
1591 2016-10-16  Bruno Haible  <bruno@clisp.org>
1593         Make the 'argp' module work without the 'error' module.
1594         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
1596 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
1598         diffseq: restore TOO_EXPENSIVE heuristic
1599         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
1600         (Bug#24715).  The simplest solution is to restore the
1601         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
1602         using a higher threshold to avoid Bug#16848 on smaller files.
1603         * lib/diffseq.h (struct context): Restore member too_expensive.
1604         (struct partition): Restore members lo_minimal, hi_minimal.
1605         (diag, compareseq): Restore arg find_minimal.  All uses changed.
1606         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
1607         1993 to make 'diff' run faster (but not as well) on large inputs,
1608         but use a threshold of 4096 instead of the old 256.
1609         * lib/fstrcmp.c (strcmp_bounded):
1610         * lib/git-merge-changelog.c (compute_differences):
1611         Adjust to diffseq.h changes.
1613 2016-10-22  Bruno Haible  <bruno@clisp.org>
1615         iconv: Avoid compilation error when bootstrapping GNU libiconv.
1616         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
1617         declaration yet, define ICONV_CONST to empty.
1619 2016-10-15  Bruno Haible  <bruno@clisp.org>
1621         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
1622         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
1623         module.
1625 2016-10-16  Bruno Haible  <bruno@clisp.org>
1627         system-quote tests: Avoid compiler warning on AIX.
1628         * tests/test-system-quote-child.c (fopen): Redefine like the system's
1629         <stdio.h> does.
1631 2016-10-16  Bruno Haible  <bruno@clisp.org>
1633         Fix some "gcc -Wall" warnings.
1634         * tests/test-ffsl.c (main): Use variable x, not i.
1635         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
1636         freopen.
1637         * tests/test-sethostname1.c (main): Explicitly ignore the return value
1638         of sethostname.
1640 2016-10-16  Bruno Haible  <bruno@clisp.org>
1642         gnulib-tool: Make --create-testdir on all modules work again.
1643         * gnulib-tool (func_create_testdir): Don't include the
1644         non-recursive-gnulib-prefix-hack module.
1646 2016-10-21  Daiki Ueno  <ueno@gnu.org>
1648         libunistring: change the maintainer to 'all'
1649         * modules/gen-uni-tables, modules/libunistring:
1650         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
1651         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
1652         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
1653         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
1654         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
1655         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
1656         * modules/uniwidth/*: Change the maintainer to 'all'.
1658 2016-10-16  Bruno Haible  <bruno@clisp.org>
1660         Simplify "configure: checking ..." messages.
1661         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
1662         AC_MSG_NOTICE.
1663         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
1665 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
1667         quotearg-tests: pacify gcc -Wall
1668         Problem reported by Bruno Haible in:
1669         http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00066.html
1670         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
1671         * tests/test-quotearg.h: ... from here.
1673 2016-10-20  Pádraig Brady  <P@draigBrady.com>
1675         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
1676         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
1677         Needed on Centos <= 4.
1679 2016-10-20  Jim Meyering  <meyering@fb.com>
1681         printf.m4: fix a bug in detecting printf %j support
1682         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
1683         uintmax_t is defined in neither stdint.h nor inttypes.h.
1684         Before, this macro might have mistakenly set
1685         gl_cv_func_printf_sizes_c99=yes on such a system.
1686         Spotted by Zev Weiss.
1688 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
1690         sched: substitute HAVE_SYS_CDEFS_H too
1691         Problem reported by Tom G. Christensen in:
1692         http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00084.html
1693         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
1694         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
1696 2016-10-19  Pádraig Brady  <P@draigBrady.com>
1698         quotearg: never write beyond the returned length
1699         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
1700         scan of the string when we initially encounter a single quote when
1701         shell quoting, so that if we then switch to a more concise quoting method
1702         we will not have written beyond that returned length.
1703         This is significant for sh-quote, which has separate routines
1704         to determine the length and do the actual quoting.
1705         * tests/test-quotearg.h: Reinstate the buffer bounds checking
1706         now that we never write more than the returned length.
1708 2016-10-18  Bruno Haible  <bruno@clisp.org>
1710         getprogname tests: Avoid failure in packages that use libtool.
1711         * tests/test-getprogname.c (main): Strip "lt-" prefix.
1712         Based on a patch by Jim Meyering.
1714 2016-10-16  Bruno Haible  <bruno@clisp.org>
1716         getprogname: Fix test failure on Cygwin. Comments.
1717         * lib/getprogname.h: Add comments.
1718         * lib/getprogname.c: Add comments. Fix #elif indentation.
1719         * tests/test-getprogname.c (main): On Cygwin, expect a result without
1720         ".exe" suffix.
1722 2016-10-16  Bruno Haible  <bruno@clisp.org>
1724         Make sure the libunistring detection rejects older versions with a
1725         known bug.
1726         * modules/unistr/u8-strtok (configure.ac): Bump required version.
1727         * modules/unistr/u16-strtok (configure.ac): Likewise.
1728         * modules/unistr/u32-strtok (configure.ac): Likewise.
1730 2016-10-18  Bruno Haible  <bruno@clisp.org>
1732         sh-quote, system-quote: revert regression of unit test.
1733         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
1734         * tests/test-system-quote-main.c (check_one): Likewise.
1736 2016-10-16  Pádraig Brady  <P@draigBrady.com>
1738         quotearg: fix stale tests
1739         * tests/test-quotearg.c [locale_results]: Add the missing str7
1740         entries to the expected results.
1741         * tests/test-system-quote-main.c (check_one): Don't enforce that we
1742         don't write beyond the returned length, since that's no longer the
1743         case if we switch to a more concise quoting style.
1744         * tests/test-sh-quote.c (check_one): Likewise.
1745         (main): Adjust for the new more concise quoting style.
1746         Reported by Bruno Haible.
1748 2016-10-16  Jim Meyering  <meyering@fb.com>
1750         non-recursive-gnulib-prefix-hack: fix inconsequential typo
1751         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
1752         to "$1".  This macro is always invoked with $1 == lib.
1753         Spotted by Bruno Haible
1755 2016-10-16  Bruno Haible  <bruno@clisp.org>
1757         Fix a test crash.
1758         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
1759         fails.
1761 2016-10-16  Pádraig Brady  <P@draigBrady.com>
1763         test-limits-h: suppress -Woverlength-strings
1764         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
1766 2016-10-15  Bruno Haible  <bruno@clisp.org>
1768         gettime, timespec, utimens: Relicense under LGPL.
1769         * modules/gettime (License): Change to LGPL.
1770         * modules/timespec (License): Likewise.
1771         * modules/utimens (License): Likewise.
1773 2016-10-14  Bruno Haible  <bruno@clisp.org>
1774             Pádraig Brady  <P@draigBrady.com>
1776         canonicalize-lgpl: Support the case path_max > INT_MAX.
1777         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
1778         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
1780 2016-10-13  Jim Meyering  <meyering@fb.com>
1782         getprogname: IBM z/OS: avoid NULL-dereference
1783         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
1784         upon strdup failure.
1786 2016-10-12  Jim Meyering  <meyering@fb.com>
1788         test-stdint: use _GL_VERIFY rather than "verify" for some tests
1789         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
1790         and an abbreviated diagnostic rather than verify with the full one,
1791         because the full-length strings would evoke warnings from gcc with
1792         -Woverlength-strings.
1794 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
1796         stdint: port SIZE_MAX to glibc s390
1797         Problem reported by Eric Blake in:
1798         http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00031.html
1799         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
1800         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
1801         correct type, if possible.
1803 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
1805         getprogname: port to IBM z/OS
1806         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
1808 2016-10-11  Jim Meyering  <meyering@fb.com>
1810         maint: remove stray space after "." in AC_DEFINE comment.
1811         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
1812         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
1814 2016-10-05  Jim Meyering  <meyering@fb.com>
1816         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
1817         * lib/long-options.c (parse_long_options): Add a break statement
1818         to avoid this new warning/failure:
1819         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
1820           --create-testdir --dir=/t/x --with-tests --test long-options
1821         ../../gllib/long-options.c: In function 'parse_long_options':
1822         ../../gllib/long-options.c:66:12: error: this statement may \
1823           fall through [-Werror=implicit-fallthrough]
1824                    (*usage_func) (EXIT_SUCCESS);
1825                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
1827 2016-10-05  Jim Meyering  <meyering@fb.com>
1829         utimecmp: avoid new GCC 7 warning from -Wbool-operation
1830         Testing this module would fail when using GCC 7 like this:
1831         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
1832           --dir=/tmp/x --with-tests --test utimecmp
1833         ../../gllib/utimecmp.c: In function ‘utimecmp’:
1834         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
1835           [-Werror=bool-operation]
1836                          time_t s = src_s & ~ (res == 2 * BILLION);
1837                                             ^
1838         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
1839           [-Werror=bool-operation]
1840                src_s &= ~ (res == 2 * BILLION);
1841                         ^
1842         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
1843         Instead, make it explicit that we intend to apply it to 0 or 1.
1845 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
1847         dfa: save memory for states
1848         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
1849         states if dfa has a lot of caches.
1851 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
1853         wchar, wctype-h: fix for MinGW 3.22.2
1854         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
1855         special invocation, to fix issues with MinGW 3.22.2 wchar.h
1856         when included from <string.h>.
1857         * lib/wctype.in.h [__MINGW32__]: Add special invocation
1858         convention for MinGW 3.22.2, to solve issues with their
1859         wctype.h when included from <ctype.h>.
1861 2016-10-05  Jim Meyering  <meyering@fb.com>
1863         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
1864         * lib/long-options.c (parse_long_options): Add a break statement
1865         to avoid this new warning/failure:
1866         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
1867           --create-testdir --dir=/t/x --with-tests --test long-options
1868         ../../gllib/long-options.c: In function ‘parse_long_options’:
1869         ../../gllib/long-options.c:66:12: error: this statement may \
1870           fall through [-Werror=implicit-fallthrough]
1871                    (*usage_func) (EXIT_SUCCESS);
1872                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
1874         utimecmp: avoid new GCC 7 warning from -Wbool-operation
1875         Testing this module would fail when using GCC 7 like this:
1876         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
1877           --dir=/tmp/x --with-tests --test utimecmp
1878         ../../gllib/utimecmp.c: In function ‘utimecmp’:
1879         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
1880           [-Werror=bool-operation]
1881                          time_t s = src_s & ~ (res == 2 * BILLION);
1882                                             ^
1883         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
1884           [-Werror=bool-operation]
1885                src_s &= ~ (res == 2 * BILLION);
1886                         ^
1887         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
1888         Instead, make it explicit that we intend to apply it to 0 or 1.
1890 2016-10-03  Pádraig Brady  <P@draigBrady.com>
1892         quotearg: minimize shell quoting using double quotes
1893         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
1894         quote in encountered then use double quotes (c style quoting)
1895         when possible, as it simplifies the quoting.
1896         * tests/test-quotearg-simple.c: Add test cases.
1897         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
1898         for the fact we now may write beyond the returned length.
1900 2016-10-02  Jim Meyering  <meyering@fb.com>
1902         vasnprintf.c: avoid spurious warning from GCC 7
1903         The presence of cpp directives renders this "FALLTHROUGH" comment
1904         ineffective, so does not suppress the -Wimplicit-fallthrough warning
1905         from GCC 7 built from git on 2016-10-02.
1906         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
1907         directives, so that it takes effect once again.  This is clearly
1908         not a proper change, and I will revert it once this bug is fixed:
1909         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
1911 2016-10-01  Jim Meyering  <meyering@fb.com>
1913         getprogname: correct the test for a __progname variable
1914         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
1915         and AC_LINK_IFELSE to check for a global __progname.  If found,
1916         define HAVE_VAR___PROGNAME.
1917         * lib/getprogname.c (getprogname): Reflect the new name of the
1918         feature- checked preprocessor symbol:
1919         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
1921 2016-09-28  Jim Meyering  <meyering@fb.com>
1923         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
1924         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
1925         fall-through case with a /* fallthrough */ comment.
1927         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
1928         * lib/dfa.c (dfassbuild): Mark the end of this case with a
1929         /* fallthrough */ comment.
1931         getprogname: avoid __progname vs program_invocation_short_name pitfall
1932         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
1933         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
1934         not with Fedora 24's glibc-2.23.1-10.
1935         * lib/getprogname.c (__progname): Move this declaration down...
1936         (getprogname): ... into the #elif block where used, and make it
1937         explicitly "extern".
1939         getprogname: port to OpenBSD 5.1
1940         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
1941         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
1942         * modules/getprogname (configure.ac): Move most of this code...
1943         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
1944         increment serial number, and add a test for __progname.
1945         https://bugs.gnu.org/24562
1946         Reported by Nelson H. F. Beebe.
1948 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
1950         sched: port to GCC 6.2.1 on macOS Sierra
1951         Problem reported by Denis Davydov in:
1952         http://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00056.html
1953         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
1954         Include <sys/cdefs.h> before <sched.h>.
1955         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
1956         so that we needn’t worry about the sched.h include bug here.
1957         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
1958         and include it before <sched.h> if it exists, when
1959         checking for <sched.h>.
1961         tests/init.sh: port Alpine fix to AIX 7.1
1962         * tests/init.sh (compare_): When attempting to use diff -U3,
1963         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
1964         diff -u not outputting a space after leading '+', as the users
1965         of 'compare' should not be that picky about its output format.
1966         In the AIX 7.1 case, return with diff exit status (or with 2 if
1967         trouble), instead of some random nonzero exit status.
1968         * tests/test-init.sh (test_compare): Remove space after leading
1969         '+', so that AIX 7.1 'diff' passes the test.
1971 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
1973         nl_langinfo: pacify GCC
1974         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
1975         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
1977         stdint: also set GL_GENERATE_LIMITS_H
1978         Problem reported by Jim Meyering in:
1979         http://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00052.html
1980         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
1982         limits-h, stdint: Don't assume extensions, fix typo
1983         * m4/limits-h.m4 (gl_LIMITS_H):
1984         * m4/stdint.m4 (gl_STDINT_H):
1985         Don't assume AC_USE_SYSTEM_EXTENSIONS.
1986         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
1987         reported by Jim Meyering in:
1988         http://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00050.html
1990 2016-09-21  Jim Meyering  <meyering@fb.com>
1992         getprogname: port to AIX
1993         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
1994         and strdup to obtain a short program name string.  Using code from
1995         Bruno Haible and an idea from Bastien ROUCARIÈS, in
1996         https://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00249.html
1997         Assaf Gordon reported that this new file would fail to compile on
1998         AIX-7.1 32bit.
2000 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
2002         extensions: fix typo in comment
2003         * m4/extensions.m4: Sync from Autoconf master.
2005         stdint: support new _WIDTH macros
2006         * doc/posix-headers/stdint.texi: Document this.
2007         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
2008         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
2009         support for INTMAX_WIDTH, etc. as well as for support for just C99.
2010         * modules/stdint (Depends-on): Add limits-h.
2011         (Makefile.am): Substitute HAVE_C99_STDINT_H.
2012         * modules/stdint-tests (Depends-on): Add extensions, so that
2013         INTMAX_MAX etc. are defined.
2014         * tests/test-stdint.c: Verify the new macros.
2016         limits-h: new module
2017         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
2018         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
2019         * doc/posix-headers/limits.texi: Document new module.
2020         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
2021         * modules/limit-h-tests, tests/test-limits-h.c: New files.
2023         stdio: don't redefine __USE_MINGW_ANSI_STDIO
2024         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
2025         if it is already defined.  Apparently GNU Emacs relies on this.  See:
2026         http://lists.gnu.org/archive/html/emacs-devel/2016-09/msg00416.html
2028 2016-09-15  Eric Blake  <eblake@redhat.com>
2030         sys_types: avoid glibc 2.25 warnings about major()
2031         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
2032         older autoconf.
2033         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
2034         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
2035         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
2036         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
2038         mountlist: include sysmacros.h for glibc
2039         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
2040         AC_HEADER_MAJOR.
2041         * lib/mountlist.c (includes): Use correct headers.
2043 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
2045         extensions: port to more ISO C TSes
2046         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
2047         master, to add support for more recent ISO C TRs and TSes.
2049 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
2051         intprops: new macro TYPE_WIDTH
2052         * lib/intprops.h (TYPE_WIDTH): New macro.
2053         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
2054         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
2055         * lib/parse-datetime.y (parse_datetime2):
2056         Use it.
2058         extensions: port to recent ISO C TRs
2059         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
2060         Sync from Autoconf master, to add support for recent ISO C TRs.
2061         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
2062         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
2063         the MinGW option is not an extension.
2065 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
2067         dfa: port to Solaris 9
2068         Problems reported by Tom G. Christensen in:
2069         http://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00031.html
2070         * modules/dfa (Depends-on): Add isblank.
2071         * modules/dfa-tests (dfa_match_aux_LDADD):
2072         Rename from test_stat_LDADD, to fix typo.
2073         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
2075 2016-09-10  Jim Meyering  <meyering@fb.com>
2077         strverscmp: avoid link failure on OS X
2078         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
2079         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
2081 2016-08-16  Jim Meyering  <meyering@fb.com>
2083         dfa: new module, importing grep's DFA matcher
2084         Since grep's DFA matcher is now being used by two gnulib-enabled
2085         projects, grep and sed, it makes sense to version-control its
2086         sources and unit tests in one place: here.
2087         * modules/dfa: New module.
2088         * modules/dfa-tests: New file.
2089         * lib/dfa.c: New file, from grep.
2090         * lib/dfa.h: Likewise.
2091         * lib/localeinfo.c: Likewise.
2092         * lib/localeinfo.h: Likewise.
2093         * tests/dfa-match-aux.c: Likewise.
2094         * tests/dfa-invalid-char-class.sh: Likewise.
2095         * tests/dfa-match.sh: Likewise, with minor changes.
2096         * MODULES.html.sh (Misc): Add "dfa" to this list.
2098 2016-09-09  Jim Meyering  <meyering@fb.com>
2100         getprogname-tests: don't depend on assert-h
2101         * modules/getprogname-tests (Depends-on): Remove assert-h.
2102         It was not needed, and in fact would cause build failure for
2103         coreutils on some systems.  Reported by Assaf Gordon in https:
2104         //lists.gnu.org/archive/html/coreutils/2016-09/msg00016.html
2106 2016-09-07  Jim Meyering  <meyering@fb.com>
2108         getprogname-tests: work also when EXEEXT is nonempty
2109         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
2110         * tests/test-getprogname.c (main): Use it.
2111         Suggested by Gisle Vanem.
2113 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
2115         getprogname: fix errors in previous change
2116         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
2117         s/program_invocation_name/base/
2118         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
2120 2016-09-08  Pádraig Brady  <P@draigBrady.com>
2122         parse-datetime: restrict debug output to input string
2123         * lib/parse-datetime.y (parse_datetime2): If we parse
2124         all of the input but determine it's invalid, ensure
2125         we don't output the now invalid input pointer.
2126         This issue was seen with `date -d 'now +1'`.
2128 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
2130         flexmember: new macro FLEXALIGNOF
2131         * lib/flexmember.h: Include <stddef.h>, for offsetof.
2132         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
2133         this macro.  Update comments.
2135 2016-09-07  Jim Meyering  <meyering@fb.com>
2137         getprogname: port to systems with __argv (mingw, msvc)
2138         * lib/getprogname.c (getprogname): Include "dirname.h" and use
2139         last_component: more general than open coding it with hard-coded "/".
2140         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
2141         * modules/getprogname (Depends-on): Add dirname-lgpl.
2142         (configure.ac): Check for __argv in <stdlib.h>.
2143         * modules/getprogname-tests: New file.
2144         * tests/test-getprogname.c: New file.
2145         Suggested by Gisle Vanem in
2146         https://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00014.html
2148 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
2150         flexmember: port better to GCC + valgrind
2151         With a char[] flexible array member in a struct with nontrivial
2152         alignment, GCC-generated code can access past the end of the
2153         array, because GCC assumes there are padding bytes to get the
2154         struct aligned.  So the common idiom of malloc (offsetof (struct
2155         s, m), n) does not properly allocate an n-byte trailing member, as
2156         malloc’s argument should be the next multiple of alignof (struct s).
2157         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
2158         Although C11 apparently permits this GCC optimization (i.e., there
2159         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
2160         See the thread containing:
2161         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
2162         * lib/flexmember.h: New file.
2163         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
2164         * lib/localename.c, lib/time_rz.c:
2165         Include flexmember.h.
2166         * lib/fnmatch_loop.c (struct patternlist):
2167         * lib/localename.c (struct hash_node):
2168         Use FLEXIBLE_ARRAY_MEMBER.
2169         * lib/fnmatch_loop.c (EXT):
2170         * lib/fts.c (fts_alloc):
2171         * lib/glob.c (glob_in_dir):
2172         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
2173         * lib/localename.c (gl_lock_define_initialized):
2174         * lib/time_rz.c (tzalloc):
2175         Use FLEXSIZEOF instead of offsetof.
2176         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
2177         Check that the size of the struct can be taken.
2178         * modules/flexmember (Files): Add lib/flexmember.h.
2179         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
2180         Add flexmember.
2182 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
2184         getprogname: port to Solaris 10
2185         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
2186         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
2187         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
2189         stdalign: correct mistake in alignof doc
2190         Problem reported by Joseph Myers in:
2191         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
2192         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
2193         alignof(S) where S is a structure containing a flexible array
2194         member.  The Gnulib substitute does not support this, but C11 does.
2196 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
2198         main.mk: remove sc_program_name, since there is no more need to
2199         use set_program_name in tools (getprogname is enough for most
2200         of the cases).
2201         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
2202         * top/maint.mk (sc_program_name): Remove.
2204 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
2206         Port tests away from progname, since modules that need the
2207         program name already depend on getprogname.
2208         * modules/acl-tests (Depends-on): Remove progname.
2209         * modules/argmatch (Depends-on): Likewise.
2210         * modules/argmatch-tests (Depends-on): Likewise.
2211         * modules/argp-tests (Depends-on): Likewise.
2212         * modules/argp-version-etc-tests (Depends-on): Likewise.
2213         * modules/array-list-tests (Depends-on): Likewise.
2214         * modules/array-oset-tests (Depends-on): Likewise.
2215         * modules/avltree-list-tests (Depends-on): Likewise.
2216         * modules/avltree-oset-tests (Depends-on): Likewise.
2217         * modules/avltreehash-list-tests (Depends-on): Likewise.
2218         * modules/carray-list-tests (Depends-on): Likewise.
2219         * modules/copy-file-tests (Depends-on): Likewise.
2220         * modules/exclude-tests (Depends-on): Likewise.
2221         * modules/fchownat-tests (Depends-on): Likewise.
2222         * modules/fdopendir-tests (Depends-on): Likewise.
2223         * modules/filenamecat-tests (Depends-on): Likewise.
2224         * modules/fstatat-tests (Depends-on): Likewise.
2225         * modules/fstrcmp-tests (Depends-on): Likewise.
2226         * modules/linked-list-tests (Depends-on): Likewise.
2227         * modules/linkedhash-list-tests (Depends-on): Likewise.
2228         * modules/mkdirat-tests (Depends-on): Likewise.
2229         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
2230         * modules/nonblocking-socket-tests (Depends-on): Likewise.
2231         * modules/obstack-printf-tests (Depends-on): Likewise.
2232         * modules/openat-tests (Depends-on): Likewise.
2233         * modules/parse-datetime-tests (Depends-on): Likewise.
2234         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
2235         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
2236         * modules/quotearg-simple-tests (Depends-on): Likewise.
2237         * modules/quotearg-tests (Depends-on): Likewise.
2238         * modules/rbtree-list-tests (Depends-on): Likewise.
2239         * modules/rbtree-oset-tests (Depends-on): Likewise.
2240         * modules/rbtreehash-list-tests (Depends-on): Likewise.
2241         * modules/spawn-pipe-tests (Depends-on): Likewise.
2242         * modules/system-quote-tests (Depends-on): Likewise.
2243         * modules/uniname/uniname-tests (Depends-on): Likewise.
2244         * modules/uninorm/nfc-tests (Depends-on): Likewise.
2245         * modules/uninorm/nfd-tests (Depends-on): Likewise.
2246         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
2247         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
2248         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
2249         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
2250         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
2251         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
2252         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
2253         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
2254         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
2255         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
2256         * modules/unlinkat-tests (Depends-on): Likewise.
2257         * modules/version-etc-tests (Depends-on): Likewise.
2258         * modules/xalloc-die-tests (Depends-on): Likewise.
2259         * modules/xmemdup0-tests (Depends-on): Likewise.
2260         * modules/xprintf-posix-tests (Depends-on): Likewise.
2261         * modules/xvasprintf-tests (Depends-on): Likewise.
2262         * tests/test-argmatch.c: Do not include progname.h.
2263         (main) Stop calling set_program_name.
2264         * tests/test-argp-version-etc.c: Likewise.
2265         * tests/test-argp.c: Likewise.
2266         * tests/test-argv-iter.c: Likewise.
2267         * tests/test-array_list.c: Likewise.
2268         * tests/test-array_oset.c: Likewise.
2269         * tests/test-avltree_list.c: Likewise.
2270         * tests/test-avltree_oset.c: Likewise.
2271         * tests/test-avltreehash_list.c: Likewise.
2272         * tests/test-carray_list.c: Likewise.
2273         * tests/test-copy-acl.c: Likewise.
2274         * tests/test-copy-file.c: Likewise.
2275         * tests/test-exclude.c: Likewise.
2276         * tests/test-fchownat.c: Likewise.
2277         * tests/test-fdopendir.c: Likewise.
2278         * tests/test-filenamecat.c: Likewise.
2279         * tests/test-fstatat.c: Likewise.
2280         * tests/test-fstrcmp.c: Likewise.
2281         * tests/test-linked_list.c: Likewise.
2282         * tests/test-linkedhash_list.c: Likewise.
2283         * tests/test-mkdirat.c: Likewise.
2284         * tests/test-nonblocking-pipe-main.c: Likewise.
2285         * tests/test-nonblocking-socket-main.c: Likewise.
2286         * tests/test-obstack-printf.c: Likewise.
2287         * tests/test-openat.c: Likewise.
2288         * tests/test-parse-datetime.c: Likewise.
2289         * tests/test-pipe-filter-gi1.c: Likewise.
2290         * tests/test-pipe-filter-gi2-main.c: Likewise.
2291         * tests/test-pipe-filter-ii1.c: Likewise.
2292         * tests/test-pipe-filter-ii2-main.c: Likewise.
2293         * tests/test-quotearg-simple.c: Likewise.
2294         * tests/test-quotearg.c: Likewise.
2295         * tests/test-rbtree_list.c: Likewise.
2296         * tests/test-rbtree_oset.c: Likewise.
2297         * tests/test-rbtreehash_list.c: Likewise.
2298         * tests/test-sameacls.c: Likewise.
2299         * tests/test-set-mode-acl.c: Likewise.
2300         * tests/test-spawn-pipe-main.c: Likewise.
2301         * tests/test-system-quote-main.c: Likewise.
2302         * tests/test-unlinkat.c: Likewise.
2303         * tests/test-version-etc.c: Likewise.
2304         * tests/test-xalloc-die.c: Likewise.
2305         * tests/test-xfprintf-posix.c: Likewise.
2306         * tests/test-xmemdup0.c: Likewise.
2307         * tests/test-xprintf-posix.c: Likewise.
2308         * tests/test-xvasprintf.c: Likewise.
2309         * tests/uniname/test-uninames.c: Likewise.
2310         * tests/uninorm/test-u32-nfc-big.c: Likewise.
2311         * tests/uninorm/test-u32-nfd-big.c: Likewise.
2312         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
2313         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
2314         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
2315         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
2316         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
2317         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
2318         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
2319         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
2320         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
2321         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
2322         * tests/test-c-stack.c: (program_name): Do not define.
2323         (main): Do not set program_name.
2324         * tests/test-closein.c: Likewise.
2325         * tests/test-xstrtol.c: Likewise.
2326         * tests/test-yesno.c: Likewise.
2328 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
2330         Port modules to use getprogname explicitly, instead of requiring
2331         progname to be used (or program_name to be provided).
2332         * lib/argmatch.c: Do not include progname.h.
2333         [TEST] (program_name): Do not define.
2334         [TEST] (main): Call getprogname instead of using program_name.
2335         * lib/c-stack.c: Do not include progname.h.
2336         (program_name): Do not define.
2337         (die): Call getprogname instead of using program_name.
2338         * lib/chdir-long.c: Do not include progname.h.
2339         [TEST_CHDIR] (main): Do not set program_name.
2340         * lib/error.c [!_LIBC]: Include progname.h.
2341         [!_LIBC] (program_name): Define using getprogname.
2342         * lib/euidaccess.c: Do not include progname.h.
2343         [TEST] (main): Do not set program_name.
2344         * lib/git-merge-changelog.c: Include getprogname.h instead of
2345         progname.h.
2346         (usage): Call getprogname instead of using program_name.
2347         (main): Likewise.  Stop calling set_program_name.
2348         * lib/group-member.c: Do not include progname.h.
2349         [TEST] (main): Do not set program_name.
2350         * modules/argmatch (Depends-on): Add getprogname.
2351         * modules/c-stack (Depends-on): Likewise.
2352         * modules/error (Depends-on): Likewise.
2353         * modules/git-merge-changelog (Depends-on): Likewise.
2354         Also remove progname.
2356 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
2358         * NEWS: Document the deprecation of the 'progname' module.
2360 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
2362         getprogname: new module
2363         This provides a LGPL module for getting the name of the current
2364         program, using the same API found on *BSD systems.
2365         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
2366         * modules/getprogname: New files.
2367         * MODULES.html.sh (Misc): Add getprogname.
2369 2016-09-02  Jim Meyering  <meyering@fb.com>
2371         manywarnings: add -fno-common
2372         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
2373         to the list.  Quoting the manual, "Compiling with -fno-common is
2374         useful on targets for which it provides better performance, or if
2375         you wish to verify that the program will work on other systems that
2376         always treat uninitialized variable declarations this way [putting
2377         it in the data section]."  If diffutils had been using this sooner,
2378         it would have prevented this duplicate declaration issue:
2379         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
2381 2016-08-31  Simon Josefsson  <simon@josefsson.org>
2383         parse-datetime: Fix typo.
2384         * lib/parse-datetime.y (parse_datetime2): Fix typo.
2386 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
2388         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
2389         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
2390         GCC 5 and 6 that have __builtin_sub_overflow but not
2391         __builtin_sub_overflow_p.  With the recent changes, these
2392         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
2393         implementation than with INT_SUBTRACT_OVERFLOW implementation,
2394         since the former needs just one runtime comparison whereas the
2395         latter needs two.
2397         strverscmp: sync with glibc
2398         Although this doesn't exactly synchronize with glibc
2399         byte-for-byte, it makes the code behave the same as glibc.
2400         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
2401         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
2402         difference shouldn't matter in practical use.  All uses changed
2403         back to isdigit.
2404         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
2405         (next_state): Now unsigned char array; redo elements.
2406         (result_type): Now signed char array; redo elements.
2407         (__strverscmp): Fix glibc bug 9913 by using new states.
2408         * tests/test-strverscmp.c (main): Test glibc bug 9913.
2410 2016-08-29  Jim Meyering  <meyering@fb.com>
2412         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
2413         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
2414         similarly to how it was done to intprops.h.
2416 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
2418         intprops.h: port recent changes to GCC 6.2.0
2419         * lib/intprops.h (__has_builtin): Move earlier.
2420         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
2421         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
2422         the last argument can be null.  All uses changed.
2423         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
2424         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
2425         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
2426         and it's not clear which GCC versions it works for.
2427         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
2428         its definiens.
2430         intprops.h: use __typeof__ with GCC 7
2431         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
2432         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
2433         This avoids computing the expression's value (which might overflow!).
2435 2016-08-29  Jim Meyering  <meyering@fb.com>
2437         intprops.h, xalloc-oversized.h: work with gcc 7
2438         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
2439         __builtin_mul_overflow each accept a NULL pointer as the third
2440         argument.  However in gcc 7, that is no longer accepted.
2441         Instead, one must use the "_p"-suffixed names, with which, the
2442         third parameter is no longer a pointer.
2443         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
2444         the definition: not true for gcc 7 and subsequent.
2445         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
2446         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
2447         Provide new definitions for gcc 7 and subsequent.
2448         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
2449         that works with gcc-7.
2451         intprops.h: fix missing-backslash problems
2452         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
2453         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
2455 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2457         intprops: fix paren typo on old platforms
2458         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
2459         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
2460         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
2461         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
2462         && !defined LLONG_MAX]:
2463         Remove stray paren.
2465         intprops: port to OpenVMS
2466         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
2467         * doc/posix-headers/limits.texi: Document the problem.
2468         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
2469         Define if not already defined.
2471 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
2473         parse-datetime: improve debug implementation
2474         Follow-up to commit 12ad79069 ("add optional debug printing").
2475         Improve parse-datetime's debug implementation: remove macros,
2476         replace global debug flag variable with a function parameter,
2477         use nstrftime for formatting.
2478         See: https://lists.gnu.org/archive/html/bug-gnulib/2016-08/msg00021.html
2479         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
2480         (parse_datetime2): New function, accepts 'flags' parameter, supporting
2481         debug flag. Existing interface 'parse_datetime' left unmodified.
2482         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
2483         (struct parser_control): add 'parse_datetime_debug' member variable.
2484         (parse_datetime): Call new function 'parse_datetime2' without debug.
2485         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
2486         pc.parse_datetime_debug variable as needed.
2487         (to_year): Accept new flags parameter, instead of using global variable.
2488         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
2489         use struct 'debug' variable instead of global variable.
2490         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
2491         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
2492         correspnding functions directly instead of using macros.
2493         * modules/parse-datetime: Add gnulib's strftime module.
2495 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
2497         c-strcase-tests: port to EBCDIC
2498         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
2499         which assume ASCII encoding semantics to run only in ASCII
2500         mode, as they fail in EBCDIC.
2502         sigpipe-tests: fix typo
2503         * tests/test-sigpipe.sh: C, not B.
2505 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
2507         canonicalize-lgpl: fix errno after malloca fails
2508         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
2509         http://lists.gnu.org/archive/html/bug-gnulib/2016-08/msg00039.html
2510         * lib/canonicalize-lgpl.c (__realpath):
2511         Don't assume malloca sets errno on failure.
2513 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
2515         strtod: port errno handling to z/OS
2516         * lib/strtod.c (strtod): Save and restore errno more reliably.
2518 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
2520         strtod: port to z/OS
2521         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
2522         implementation.
2524 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
2526         strtod: port to z/OS
2527         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
2528         implementation.
2530         regex, string: rename to avoid '__string'
2531         * lib/regex.h, lib/string.in.h: Do not use the identifier
2532         '__string', as it is effectively reserved by string.h on z/OS.
2534         c-strcase-tests, wcwidth-tests: depend on c-ctype
2535         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
2536         Add c-ctype.
2538 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
2540         thread: port to z/OS
2541         * lib/glthread/thread.c, lib/glthread/thread.h:
2542         Rudimentary gl_thread support for z/OS.
2544         maint: port tests to z/OS errno behavior
2545         * tests/test-nonblocking-reader.h:
2546         * tests/test-nonblocking-writer.h:
2547         Accommodate z/OS errno code preferences. (I believe this should
2548         still be within spec; IBM is good at following the letter if not
2549         the spirit of such things.)
2551         maint: preprocessor changes to support z/OS
2552         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
2553         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
2554         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
2555         * tests/test-nonblocking-pipe.h:
2557         fclose, strstr-simple, wchar: port to z/OS
2558         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
2559         Changes to the Autoconf M4 code to support z/OS.  Note that
2560         fclose() is broken in a different way on z/OS than it is on other
2561         systems, thus the special-case in fclose.m4.
2563         iconv_open-utf-tests, iconv-tests: port to EBCDIC
2564         * tests/test-iconv-utf.c, tests/test-iconv.c:
2565         Added appropriately conditional #pragmas so that the test strings
2566         in test-iconv-utf.c are correctly interpreted in ASCII instead of
2567         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
2568         addressed in a more portable way by simply rewriting all the ASCII
2569         literal characters as octal escapes, but then you would lose the
2570         partial readability that the strings have now. Also, iconv_open()
2571         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
2573         c-strcase-tests, wcwidth-tests: port to EBCDIC
2574         * tests/test-c-strcasecmp.c: Include c-ctype.h.
2575         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
2576         * tests/test-wcwidth.c: Likewise.
2578 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
2580         stdbool: don't require _Bool for C++
2581         Problem reported by David Seifert in:
2582         http://lists.gnu.org/archive/html/bug-gnulib/2016-06/msg00005.html
2583         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
2584         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
2585         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
2586         stricter about checking that bool and _Bool are compatible in C.
2588 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
2590         getdelim: remove dependency on realloc-posix
2591         * lib/canonicalize-lgpl.c (alloc_failed)
2592         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
2593         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
2594         Use __set_errno where needed, for consistency.
2595         * lib/getdelim.c (alloc_failed): New function.
2596         (getdelim): Use it.
2598 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
2600         parse-datetime: add optional debug printing
2601         Print parsing information, warnings, and errors to stderr.
2602         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
2603         * lib/parse-datetime.y:
2604         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
2605         (PROGRESS*): Same as DEBUG, for progress reporting.
2606         (dbg_printf): Print message to stderr, with 'date' prefix.
2607         (struct parser_control): Add 'debug_*_seen' variables.
2608         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
2609         (debug_print_current_time, debug_print_relateive_time): Prints the
2610         current/relative date/time value of parser_control.
2611         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
2612         (to_year): Warn about 2-digit year parsing.
2613         (yylex):   Warn about unrecognized words.
2614         (get_effective_timezone): Returns current timezone in minutes.
2615         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
2616         clearly and unambigiously as possible.
2617         (debug_mktime_not_ok): Print detailed information about failed
2618         date/time values.
2619         (parse_datetime): Add DEBUG messages for failures, warnings. Add
2620         PROGRESS messages for status messages.
2621         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
2623 2016-08-06  Jim Meyering  <meyering@fb.com>
2625         tests/init.sh: exclude dash with bad "local" semantics
2626         * tests/init.sh (gl_shell_test_script_): Add a function to
2627         eliminate a shell like "dash" (unlike bash, zsh) that has
2628         surprising/risky "local var='...'" semantics.  Inspired by
2629         the problem and discussion in https://bugs.gnu.org/24116#11.
2631 2016-08-02  Ján Tomko  <jtomko@redhat.com>
2633         maint.mk: expand the prohibit_doubled_word regex
2634         This check has a static list of words that are checked for
2635         repetitions.  Expand it before running the perl script to
2636         avoid using expensive captures.  This decreases the cost
2637         for libvirt from 1.66s to 0.66s.
2638         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
2639         (sc_prohibit_doubled_word): Use it.
2641 2016-07-26  Ján Tomko  <jtomko@redhat.com>
2643         useless-if-before-free: skip non-matching lines early
2644         * build-aux/useless-if-before-free: First match each line with the
2645         simple/quick /\bif\b/ and reject if there is no match. This often
2646         saves the cost of the much more involved regular expression.
2647         For libvirt, this decreases the cost from 1.44s to 1.02s.
2649 2016-07-26  Ján Tomko  <jtomko@redhat.com>
2651         maint.mk: speed up sc_po_check
2652         sc_po_check would skip files based on their names, or on the
2653         existence of files with derived names. Rewrite it to use perl
2654         instead of shell to make the check faster.
2655         * top/maint.mk (perl_translatable_files_list_): Define.
2656         (sc_po_check): Use it.
2658 2016-07-30  Ján Tomko  <jtomko@redhat.com>
2660         maint.mk: speed up require_config_h_first
2661         Instead of spawning three processes per file,
2662         rewrite the check in perl and run it once for all the files.
2663         * top/maint.mk (perl_config_h_first_): Define.
2664         (sc_require_config_h_first): Use it in place of shell code.
2666 2016-07-26  Ján Tomko  <jtomko@redhat.com>
2668         maint.mk: speed up sc_po_check
2669         sc_po_check would skip files based on their names, or on the
2670         existence of files with derived names. Rewrite it to use perl
2671         instead of shell to make the check faster.
2672         * top/maint.mk (perl_translatable_files_list_): Define.
2673         (sc_po_check): Use it.
2675 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
2677         obstack: pacify GCC 6 with -Wnull-dereference
2678         Problem reported by Assaf Gordon in:
2679         http://lists.gnu.org/archive/html/bug-gnulib/2016-07/msg00028.html
2680         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
2681         Declare with __attribute_noreturn__.
2682         * lib/obstack.h (__attribute_noreturn__): New macro.
2684 2016-07-13  Eric Blake  <eblake@redhat.com>
2686         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
2687         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
2688         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
2690 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
2692         doc: mention glibc SSIZE_MAX buglet
2693         * doc/posix-headers/limits.texi (limits.h): Document the bug.
2695 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
2697         printf-posix: Fix mingw build
2698         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
2699         expression for detecting C symbol prefixes but forgot to qoute square
2700         brackets in the command line arguments for grep.  That way when
2701         building with mingw the condition was false although it ought to be
2702         true instead.  In particular scenarios this led to the following
2703         compile error:
2705             Cannot export rpl_printf: symbol not found
2706             Cannot export rpl_scanf: symbol not found
2707             collect2: error: ld returned 1 exit status
2709         Fix this by properly quoting square brackets.
2711 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
2713         mktime: call tzset as per POSIX
2714         Problem reported by Ludovic Courtès in:
2715         http://lists.gnu.org/archive/html/bug-gnulib/2016-06/msg00068.html
2716         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
2717         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
2719 2016-06-26  Pádraig Brady  <P@draigBrady.com>
2721         fts: handle readdir() errors
2722         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
2723         but also upon error when it will also set errno.  Therefore
2724         flag the error case from readdir().  We treat the case where
2725         no items are read the same as if the dir can't be accessed,
2726         i.e. by setting fts_errno to FTS_DNR.
2728 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
2730         intprops: port better to GCC 7
2731         GCC 7 __builtin_add_overflow supports a new usage form, where the
2732         last argument is a null pointer, and which merely returns 1 if an
2733         overflow would occur.  This is a constant expression if all
2734         arguments are constants, and should generate faster code when code
2735         needs to be generated.
2736         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
2737         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
2738         Use builtin operations if available.
2739         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
2740         operations are available, as it's almost surely faster.
2742 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
2744         intprops-test: port to GCC 6
2745         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
2746         since the bug is not fixed in GCC 6.1.
2748 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
2750         xalloc-oversized: port to GCC 7; fewer warnings
2751         GCC 7 will have a better way to deal with integer overflow.
2752         Plus, fix a warnings problem reported by Tim Ruehsen in:
2753         http://lists.gnu.org/archive/html/bug-gnulib/2016-06/msg00022.html
2754         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
2755         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
2756         For GCC 5, use __xalloc_oversized if both args are constants,
2757         or if pedantic.
2759 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
2761         regex: port to Sun C
2762         Reported by Daiki Ueno.
2763         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
2764         __restrict, in prototype.  This fixes a problem I introduced in
2765         the 2016-02-19 merge from glibc.
2767 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
2769         stdbool: Restore __bool_true_false_are_defined check
2770         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
2771         __bool_true_false_are_defined is still defined, even with C++11.
2773 2016-05-31  David Seifert <soap@gentoo.org>  (tiny change)
2775         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
2776         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
2778 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
2780         Use GCC_LINT, not lint
2781         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
2782         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
2783         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
2784         Document problem with lint and _Noreturn.
2785         * lib/diffseq.h (IF_LINT, IF_LINT2):
2786         * lib/fts.c (sccsid):
2787         * lib/getndelim2.c (IF_LINT):
2788         * lib/gl_anylinked_list2.h (gl_linked_iterator)
2789         (gl_linked_iterator_from_to):
2790         * lib/gl_anytree_list2.h (gl_tree_iterator)
2791         (gl_tree_iterator_from_to):
2792         * lib/gl_anytree_oset.h (gl_tree_iterator):
2793         * lib/gl_array_list.c (gl_array_iterator)
2794         (gl_array_iterator_from_to):
2795         * lib/gl_array_oset.c (gl_array_iterator):
2796         * lib/gl_carray_list.c (gl_carray_iterator)
2797         (gl_carray_iterator_from_to):
2798         * lib/idcache.c:
2799         * lib/inet_ntop.c (IF_LINT):
2800         * lib/regcomp.c (build_charclass_op, create_tree):
2801         * lib/regex_internal.c (re_acquire_state)
2802         (re_acquire_state_context):
2803         * lib/trigl.c (rcsid):
2804         * lib/trim.c (IF_LINT):
2805         * lib/vasnprintf.c (IF_LINT):
2806         * lib/verify.h (assume):
2807         Treat GCC_LINT like lint.
2809 2016-05-29  Bruno Haible  <bruno@clisp.org>
2811         secure_getenv: Port to many more platforms.
2812         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
2813         functions.
2814         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
2815         for non-BSD Unix platforms and for native Windows.
2816         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
2817         Prompted by a request from Nikos Mavrogiannopoulos.
2819 2016-05-27  Eric Blake  <eblake@redhat.com>
2821         canonicalize: Fix broken probe for realpath.
2822         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
2823         in logic introduced in 54615b95.
2825 2016-05-26  Eric Blake  <eblake@redhat.com>
2827         unsetenv: relax to LGPLv2+
2828         * modules/unsetenv (License): Match setenv license.
2830 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
2832         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
2833         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
2834         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
2835         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
2836         (commonarg, dirargs, dirs, infoarg, generate_ascii)
2837         (generate_html, generate_info, generate_tex, outdir)
2838         (source_extra, split, srcfile, texarg): Move above 'version'.
2839         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
2841 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
2843         manywarnings: update for GCC 6.1
2844         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
2845         Add GCC 6.1 options that apply to C.
2846         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
2847         do not apply to C, are obsolescent, etc.
2849 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
2851         glob: size_t overflow checks
2852         * lib/glob.c (__has_builtin): New macro.
2853         (size_add_wrapv, glob_use_alloca): New static functions.
2854         (glob, glob_in_dir): Check for size_t overflow in several places,
2855         and fix some size_t checks that were not quite right.
2857         glob: don't assume INT_MAX < SIZE_MAX
2858         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
2859         latter is not portable to (probably theoretical) hosts where
2860         SIZE_MAX <= INT_MAX.
2862 2016-05-09  Bruno Haible  <bruno@clisp.org>
2864         Fix undefined behaviour in gettext.h.
2865         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
2866         pointer's value after the storage it points to has been freed.
2867         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
2868         Spotted by Coverity.
2870 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
2872         git-version-gen: avoid undefined shift
2873         Problem reported by Mosè Giordano in:
2874         http://lists.gnu.org/archive/html/bug-gnulib/2016-05/msg00012.html
2875         * build-aux/git-version-gen: Avoid undefined behavior if invoked
2876         with --prefix or --fallback but without a later argument.  While
2877         we're at it, omit unnecessary quotes.
2879 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
2881         glob: merge glibc changes into lib/glob.c
2882         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
2883         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
2884         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
2885           struct dirent [BZ #19779]
2886         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
2887           callback gl_readdir
2888         2015-10-20 Convert miscellaneous function definitions to prototype style
2889         2015-10-20 Convert 113 more function definitions to prototype style
2890           (files with assertions)
2891         2015-06-12 Fix getlogin_r namespace (bug 18527).
2892         2014-02-10 Use glibc_likely instead __builtin_expect.
2893         2013-10-20 When glob pattern contains a trailing slash match only
2894           directories. Fixes bug 10278.
2895         2013-09-04 glob: silence -Wattribute warnings
2896         2013-06-07 Avoid use of "register" as optimization hint.
2897         2012-09-25 Use size_t instead of int for internal variables in glob
2898           (bug 14621)
2899         2011-07-20 Check for overflows in expressions
2900         2011-05-28 Remove unused variable
2901         2011-05-22 Add a few more alloca size checks
2902         2010-03-27 Whitespace fixes
2903         2010-03-27 Fix one more issue with the glob patch
2904         2010-03-24 Fix glob with empty pattern
2905         2008-05-27 Remove useless more "if" tests before "free"
2906         * modules/glob (Depends-on): Add stdint.
2908 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
2910         mktime: port to stricter signed overflow checking
2911         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
2912         (long_int): Require width for INT_MAX * 3 * (seconds per year),
2913         instead of merely for INT_MAX * 2.  In practice platforms that
2914         do the latter also do the former.
2915         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
2916         (shr): New static function, replacing SHR.  All uses changed.
2917         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
2918         and TIME_T_MAX.  All uses changed.
2919         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
2920         Use long_int, not time_t.
2921         (long_int_avg): New static function, replacing time_t_avg.
2922         All uses changed.  Round toward positive infinity, as that
2923         generates slightly better code.
2924         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
2925         by INT_ADD_WRAPV.
2926         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
2927         (convert_time): New static function.
2928         (ranged_convert): Use it
2929         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
2930         Use simpler test for loop exit.
2931         (__mktime_internal): Store negative of guessed offset, to simplify
2932         overflow checking.  Remove no-longer-needed test for small time_t
2933         overflows.
2935         mktime: speed up DEBUG_MKTIME benchmarks
2936         Call tzset just once, at the start, rather than for every test
2937         case.  This lets us measure the CPU cost of mktime as opposed to
2938         that of tzset.  This is relevant when TZ is not set and glibc is
2939         being used.  This speeds up tests by a factor of 40 on my Fedora
2940         23 x86-64 platform.
2941         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
2942         to call tzset and as a sanity check.  Later on, use localtime_r
2943         instead of localtime.
2945         mktime: resurrect DEBUG_MKTIME testing
2946         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
2947         Include <string.h>, for strcmp.
2949         mktime: simplify DEBUG_MKTIME
2950         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
2951         Simplify later usage accordingly.
2953         Port mktime_internal offset to unsigned time_t
2954         This avoids some assumptions about wraparound arithmetic on
2955         signed integer overflow.
2956         * lib/mktime-internal.h (mktime_offset_t): New type.
2957         (mktime_internal): Use it in decl.
2958         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
2960         * lib/mktime.c (__mktime_internal, localtime_offset):
2961         * lib/timegm.c (timegm): Use it.
2962         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
2963         (gl_FUNC_MKTIME): Require it.
2965 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
2967         xstrtol: prohibit monstrosities like "1bB"
2968         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
2969         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
2970         "B" only if the first suffix needs a base.
2971         * tests/test-xstrtol.sh: Test this.
2973 2016-04-21  Pádraig Brady  <P@draigBrady.com>
2975         xstrtod: reinstate setting of *result upon ERANGE
2976         * lib/xstrtod.c (XSTRTOD): The user may decide to use
2977         the returned limits upon ERANGE, so allow and document that.
2979 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
2981         xstrtod: modify *result only if no errors
2982         * lib/xstrtod.c (XSTRTOD).
2984 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
2986         btowc: document problems in C locale
2987         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
2988         with mbrtowc.  See: http://bugs.gnu.org/23269#32
2990 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
2992         mktime: improve integer overflow checking
2993         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
2994         (WRAPV): Remove; no longer needed.
2995         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
2996         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
2997         Remove.  Use intprops.h defns instead.
2998         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
2999         Use bool for Boolean, for clarity.
3000         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
3001         detect integer overflow.
3002         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
3004         intprops: check two's complement assumption
3005         Suggested by Eric Blake in:
3006         http://lists.gnu.org/archive/html/bug-gnulib/2016-04/msg00016.html
3007         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
3008         short, int, long, and (if available) long long are two's complement.
3009         * modules/intprops (Depends-on): Add 'verify'.
3011         intprops, mktime, strtol: assume two's complement
3012         These macros were not portable to every conforming C11 ones'
3013         complement platform.  It's not worth the hassle of porting to some
3014         platforms that use ones' complement or signed magnitude, as such
3015         platforms are almost purely theoretical nowadays and porting even
3016         to some of them makes the code harder to review for little
3017         practical benefit.  Problem reported by Florian Weimer in:
3018         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
3019         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
3020         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
3021         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
3022         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
3023         (TYPE_SIGNED_MAGNITUDE):
3024         Remove.  All uses rewritten to assume two's complement, which is
3025         all we can reasonably test nowadays anyway.
3026         * top/maint.mk (_intprops_names): Remove the removed macros.
3028 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
3030         stdint: port to strict C11 left shift
3031         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
3032         Pacify clang -Wshift-negative-value, which should be an issue only
3033         on clang setups where stdint.h does not conform to C11 or to C++11.
3034         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
3036 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
3038         mbrtowc: work around glibc bug#19932
3039         Fix mbrtowc so that it never returns -1 in the C locale,
3040         as this conflicts with a future version of POSIX
3041         http://austingroupbugs.net/view.php?id=663#c2738
3042         and causes problems with GNU grep: http://bugs.gnu.org/23234
3043         See glibc bug 19932:
3044         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
3045         * doc/posix-functions/mbrlen.texi (mbrlen):
3046         * doc/posix-functions/mbrtowc.texi (mbrtowc):
3047         Document the glibc bug.
3048         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
3049         Include hard-locale.h, locale.h.
3050         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
3051         if the bug is possible.
3052         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
3053         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
3054         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
3055         * modules/mbrtowc (Depends-on): Add hard-locale.
3056         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
3057         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
3058         * tests/test-mbrtowc5.sh: New file.
3060 2016-04-03  Pedro Alves  <palves@redhat.com>
3062         stdint: detect good enough pre-C++11 stdint.h in C++ mode
3063         When gnulib is configured in C++ mode for a system with a working C99
3064         implementation of stdint.h that predates C++11, gnulib ends up
3065         substituting stdint.h anyway.  This works on most targets, but on e.g.,
3066         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
3067         MinGW is LLP64.  Instead of trying to detect the right types, detect
3068         good-enough-pre-C++11 stdint.h and in such case define
3069         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
3070         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
3071         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
3072         conforms to C99.  If it does, check whether it hides symbols
3073         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
3074         does, define those macros in config.h.
3076 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
3078         argp: merge changes from glibc
3079         Among other things, this should fix problems found by a Coverity
3080         scan and reported by Andrei Borzenkov:
3081         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00015.html
3082         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00016.html
3083         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
3084         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
3085         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
3086         * lib/argp.h:
3087         Merge changes from glibc.
3088         * tests/test-argp-2.sh: Adjust to match new behavior.
3090 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
3092         stddef: support configuring with g++
3093         Problem reported by Ángel González in:
3094         http://lists.gnu.org/archive/html/bug-gnulib/2016-04/msg00003.html
3095         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
3096         Do not define if _GCC_MAX_ALIGN_T is defined.
3098 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
3100         test-framework-sh: minor cleanups
3101         * tests/init.sh (testdir_prefix_): Output a trailing newline,
3102         since strictly speaking POSIX requires this.
3103         (setup_): Do not use the variable 'fail', as that makes the
3104         trace output harder to read ('fail' is typically used by
3105         tests to mean the test failed).  Treat // portably.
3106         Check that new directory is not merely a sibling of the tmp dir.
3107         Avoid unnecessary invocation of tr.
3109         test-framework-sh: revert port to NetBSD 7.0
3110         It was a false alarm; I misinterpreted Assaf Gordon's report.
3111         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
3112         Restore.
3113         (test_dir_): Adjust to mktempd_ change.
3114         (mktempd_): Restore 2nd arg.  Use -t again.
3115         (base_template_, template_, nx_): Resurrect old code.
3117         Port better to Alpine Linux
3118         Its diff implementation does not support -c, but does support -U3.
3119         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
3120         * tests/init.sh (diff_opt_): New var.
3121         (compare_): Prefer diff -U3 to diff -c to plain diff.
3123 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
3125         test-framework-sh: port to NetBSD 7.0
3126         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
3127         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
3128         Remove.  All uses removed.
3129         (test_dir_): Adjust to mktempd_ change.
3130         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
3131         (base_template_, template_, nx_): Simplify by hardcoding.
3133 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
3135         gitlog-to-changelog: suppress ignored chatter
3136         * build-aux/gitlog-to-changelog: Do not warn about skipping
3137         an SHA if it would have been ignored anyway.
3139 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
3141         setlocale: add "sv" to Windows language table
3142         * lib/setlocale.c (language_table) [W32]: Add "sv".
3143         Reported in <https://savannah.gnu.org/bugs/?44588>.
3145 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
3147         sys_select: port to new Cygwin
3148         Problem reported by Ken Brown in:
3149         https://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00054.html
3150         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
3151         diagnostics.
3153 2016-03-17  Jim Meyering  <meyering@fb.com>
3155         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
3156         * tests/test-userspec.c (main): Remove unnecessary braces and fix
3157         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
3158           test-userspec.c:176:9: error: statement is indented as if it were \
3159             guarded by... [-Werror=misleading-indentation]
3160                    {
3161                    ^
3162           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
3163                  if (!diag && !T[i].result)
3164                  ^~
3166 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
3168         time_rz: port to clang -Wunused-const-variable
3169         * lib/time_rz.c (TZ): Remove.  All uses removed.
3171         std-gnu11: improve clang support
3172         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
3173         2016-03-15 Also try clang
3174         2016-03-15 Port C11 and C++11 testing to clang
3176         select: port more to Intel 2016.1.150 compiler
3177         Problem reported by Balázs Hajgató in:
3178         http://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00036.html
3179         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
3181 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
3183         select: try to port to 2016.1.150 compiler
3184         Problem reported by Balázs Hajgató in:
3185         http://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00026.html
3186         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
3187         POSIX specifies 'restrict'.
3189 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
3191         localename-tests: memory allocation fixes
3192         * tests/test-localename.c (test_locale_name)
3193         (test_locale_name_thread): Don't call freelocale on a locale
3194         that was the base of a successful newlocale, as that
3195         results in a double free.  Problem reported by Assaf Gordon.
3196         (test_locale_name_thread): Free saved names after use, to pacify
3197         gcc -fsanitize=address.
3199 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
3201         intprops: make .h file license match module
3202         * lib/intprops.h: Change the license wording to match glibc format.
3203         This is what is in modules/intprops anyway.  See:
3204         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
3206 2016-03-08  Eric Blake  <eblake@redhat.com>
3208         acl: fix missing return on Cygwin
3209         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
3210         fall off end of function. Fixes http://bugs.gnu.org/22949
3212 2016-03-05  Bruno Haible  <bruno@clisp.org>
3214         extern-inline: port to PGI CC
3215         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
3216         keyword 'inline'.
3217         Reported by Adam James Stewart in:
3218         http://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00006.html
3220 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
3222         signbit: port back to pre-C++11 GCC
3223         * lib/math.in.h (signbit): Do previous change only if
3224         __cplusplus < 201103.  See Jonathan Wakely in:
3225         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
3227 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
3229         mountlist: recognize autofs-mounted remote file systems, too
3230         Originally reported at: https://bugzilla.redhat.com/1309247
3231         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
3232         "-hosts" because it is used by autofs to mount remote file systems.
3234 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3236         signbit: port to C++ with GCC 6
3237         * lib/math.in.h (signbit) [__cplusplus]:
3238         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
3239         http://lists.gnu.org/archive/html/bug-gnulib/2016-02/msg00005.html
3241         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
3243         regex: make it closer to libc
3244         Make Idx a signed type, rather than possibly unsigned.
3245         The unsignedness was not really buying us anything, since the code
3246         overflows for other reasons before getting to PTRDIFF_MAX.  Making
3247         it signed allows us to use -1 and -2 with abandon, like libc does,
3248         thus lessening the number of differences between gnulib and libc.
3249         Also, it should help avoid gratuitous warnings like the one
3250         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
3251         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
3254         regex: merge patches from libc
3256         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
3257         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
3258         Convert miscellaneous function definitions to prototype style.
3259         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
3260         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
3261         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
3262         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
3263         (re_search_internal):
3264         Convert to prototype-style function definition.
3265         Use internal_function for internal functions.
3267 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
3269         stdalign: port to older HP and IBM cc
3270         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
3271         C compilers, by checking their version numbers.  These version
3272         numbers appear in MariaDB and in Qt code that dates way back and
3273         that conditiionally uses the 'aligned' attribute.
3275 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3277         stdalign: port to clang 3.7.0
3278         Problem reported by Herbert J. Skuhra in:
3279         http://lists.gnu.org/archive/html/emacs-devel/2016-02/msg00476.html
3280         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
3281         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
3282         https://llvm.org/bugs/show_bug.cgi?id=26547
3284 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
3286         readdir_r: now obsolescent
3287         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
3288         * lib/mountlist.c (read_file_system_list): Add a FIXME.
3290 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
3292         misc: port better to gcc -fsanitize=address
3293         Without these patches, ./configure CFLAGS='-fsanitize=address'
3294         would compute incorrect values.  This patch fixes some (but not all)
3295         test failures with recent glibc, with this configuration.
3296         * m4/acl.m4 (gl_ACL_GET_FILE):
3297         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
3298         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
3299         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
3300         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
3301         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
3302         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
3303         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
3304         * m4/getline.m4 (gl_FUNC_GETLINE):
3305         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
3306         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
3307         * m4/regex.m4 (gl_REGEX):
3308         * m4/strndup.m4 (gl_FUNC_STRNDUP):
3309         * tests/test-calloc-gnu.c (main):
3310         * tests/test-duplocale.c (main):
3311         * tests/test-getgroups.c (main):
3312         * tests/test-getline.c (main):
3313         * tests/test-inttostr.c (main):
3314         * tests/test-localename.c (test_locale_name)
3315         (test_locale_name_thread, test_locale_name_environ)
3316         (test_locale_name_default):
3317         * tests/test-regex.c (main):
3318         * tests/test-setlocale1.c (main):
3319         * tests/test-stat.h (test_stat_func):
3320         Free heap-allocated storage before exiting.
3321         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
3322         Don't match *_foo symbols inserted by AddressSanitizer.
3323         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
3325 2016-02-02  Jim Meyering  <meyering@fb.com>
3327         verify-tests: also remove stray test-verify.Tpo
3328         * modules/verify-tests (Makefile.am): Arrange for "make clean"
3329         to remove the test-verify.Tpo file that is left behind by
3330         the automake-generated rule upon compilation failure.
3331         Otherwise, that .Tpo file would cause a failed "make distcheck"
3332         at least for grep.
3334 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
3336         std-gnu11: new module
3337         This makes it easier for applications to prefer C11 and C++11
3338         to older variants, when compiling C and C++ code.
3339         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
3340         a nontrivial chunk of GPLed Autoconf source code.
3341         * COPYING: Mention the m4/*.m4 copyright situation.
3342         * MODULES.html.sh (std-gnu11): New module.
3343         * m4/std-gnu11.m4, modules/std-gnu11: New files.
3345 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
3347         get-permissions, strftime: fix grammar in comments
3348         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
3349         some grammar fixes Alan Mackenzie made to GNU Emacs.
3351 2016-01-25  Daiki Ueno  <ueno@gnu.org>
3353         gettext: mark as obsolete
3354         Suggested by Paul Eggert in:
3355         https://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00101.html
3356         * modules/gettext (Status): Mark as obsolete.
3357         (Notice): Suggest to use 'gettext-h' instead.
3358         * modules/gettext-h (Description): Suggest GNU gettext, instead of
3359         the 'gettext' module.
3361 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
3363         gnulib-tool: don't give up on ln -s so easily
3364         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
3365         because an earlier one failed.  The targets could be on different
3366         file systems.  Problem reported by KO Myung-Hun in:
3367         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00081.html
3369         closedir: fix OS/2-related typos
3370         Problem reported by KO Myung-Hun in:
3371         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00107.html
3372         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
3373         in the last couple of changes.
3375 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
3377         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
3378         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
3379         copying a directory.
3381 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
3383         regex: treat [x] as x if x is a unibyte encoding error
3384         Problem reported by Aharon Robbins in:
3385         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00091.html
3386         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
3387         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
3389         closedir, dirfd, opendir: port to OpenSolaris 5.10
3390         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
3391         * m4/dirfd.m4 (gl_FUNC_DIRFD):
3392         * m4/opendir.m4 (gl_FUNC_OPENDIR):
3393         Don't use ${word##pat} substitution, as it doesn't work in
3394         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
3395         http://bugs.gnu.org/22443#11
3397 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
3399         bootstrap: use American spelling
3400         * build-aux/bootstrap: Honor American spelling.
3402 2016-01-22  Karl Berry  <karl@freefriends.org>
3404         * doc/posix-functions/localtime.texi,
3405         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
3407 2016-01-21  Bruno Haible  <bruno@clisp.org>
3409         hash-pjw-bare: fix comment
3410         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
3412         wcwidth: Replace also on OpenBSD 5.8
3413         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
3414         * doc/posix-functions/wcwidth.texi: Update.
3416 2016-01-20  Pádraig Brady  <P@draigBrady.com>
3418         gnu-web-doc-update: fix addition of new files
3419         If there were already added (emnpty) dirs,
3420         then cvs aborts the add with the message:
3421           cvs [add aborted]: there is a version in <./dirname> already
3422         * build-aux/gnu-web-doc-update: Add directories separately
3423         to the addition of files, to avoid the above issue
3424         impacting the addition of files.
3426 2016-01-19  Daiki Ueno  <ueno@gnu.org>
3428         utimens-tests: avoid pulling gettext .m4 files
3429         Although this is not the right fix to the original problem:
3430         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html
3431         it makes it possible again for consumer projects to use arbitrary
3432         version of gettext, through the steps described at:
3433         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
3434         See here for details:
3435         https://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00079.html
3436         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
3437         'gettext'.
3438         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
3439         'gettext'.
3441 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
3443         regex: pacify static checkers
3444         Problem and draft fix reported by Aharon Robbins in:
3445         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00082.html
3446         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
3447         Clear memory to pacify static checkers.
3449         regex: fix [ diagnostic
3450         Problem and fix reported by Aharon Robbins in:
3451         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00082.html
3452         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
3454         regex: fix memory leaks
3455         Problem and draft fix reported by Aharon Robbins in:
3456         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00082.html
3457         * lib/regcomp.c (build_range_exp, build_charclass_op)
3458         * lib/regex_internal.c (re_dfa_add_node):
3459         Fix memory leak on failure.
3461 2016-01-18  Pádraig Brady  <P@draigBrady.com>
3463         fts: don't unconditionally use leaf optimization for NFS
3464         NFS st_nlink are not accurate on all implementations,
3465         leading to aborts() if that assumption is made.
3466         See <https://bugzilla.redhat.com/1299169>
3467         * lib/fts.c (leaf_optimization_applies): Remove NFS from
3468         the white list, and document the issue.
3470 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
3471             KO Myung-Hun  <komh@chollian.net>
3473         gnulib-tool: don't assume ln -s works
3474         * gnulib-tool (func_ln_s): New function.
3475         (func_ln): Use it.
3477 2016-01-15  KO Myung-Hun  <komh@chollian.net>
3479         utimes: detect utimes() correctly on OS/2 kLIBC
3480         utimes() of OS/2 kLIBC has some limitations.
3481         1. OS/2 itself supports a file date since 1980 year in local time.
3482         2. OS/2 itself supports only even seconds for a file time.
3483         3. utimes() of OS/2 kLIBC does not work on an opened file.
3484         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
3485         * doc/posix-functions/utimes.texi: Document the above limitations of
3486         utimes() on OS/2 kLIBC.
3488 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
3489             KO Myung-Hun  <komh@chollian.net>
3491         openat_proc_name: port to OS/2 kLIBC
3492         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
3493         instead of /proc/self/fd.
3494         * lib/openat-proc.c (openat_proc_name):
3495         Don't assume file name length is less than INT_MAX.
3496         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
3498 2016-01-14  KO Myung-Hun  <komh@chollian.net>
3500         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
3501         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
3502         definitions of intptr_t and uintptr_t (which use int and unsigned)
3503         to avoid clashes with declarations of system functions like sbrk.
3504         * lib/stdint.in.h (intptr_t, uintptr_t): Check
3505         _INTPTR_T_DECLARED before defining them.
3507         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
3508         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
3509         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
3510         Declare on kLIBC.
3511         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
3512         fd associated with dirp.
3513         (_gl_register_dirp_fd): New. Register fd associated with dirp to
3514         dirp_fd_list.
3515         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
3516         (dirfd): Implemented for kLIBC.
3517         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
3518         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
3519         succeeds.
3520         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
3521         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
3522         (REPLACE_DIRFD): Define to 1 if replaced.
3523         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
3524         * modules/closedir (Depends-on): Add dirfd.
3525         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
3526         condition.
3527         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
3528         * modules/opendir (Depends-on): Add dirfd.
3530         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
3531         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
3532         * lib/dup.c (dup_nothrow): New.
3533         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
3534         (klibc_dup2): New.
3535         * lib/fcntl.c (klibc_fcntl): New.
3536         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
3537         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
3538         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
3539         fd.
3541         pipe_filter_ii_execute: port to OS/2 kLIBC
3542         Pipes on kLIBC do not support O_NONBLOCK like Win32.
3543         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
3544         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
3545         Reuse Win32 code on OS/2 kLIBC.
3546         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
3547         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
3549         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
3550         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
3551         static inline function.  The implementation of wcwidth in wcwidth.c
3552         causes a "conflicting types" error.
3553         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
3555         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
3556         spawn() on OS/2 kLIBC is not silly like one on Windows
3557         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
3558         empty string on OS/2 kLIBC.
3560         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
3561         On OS/2 kLIBC, select() works only on sockets.
3562         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
3564         binary-io: don't put fd in binary mode if it is a console on EMX
3565         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
3566         a console on EMX.
3568 2016-01-15  Pádraig Brady  <P@draigBrady.com>
3570         doc: mention unfixed issues with unsupported localtime() values
3571         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
3572         returns nonsense for localtime(2^56).
3573         * doc/posix-functions/localtime_r.texi: Likewise.
3575 2016-01-14  Pádraig Brady  <P@draigBrady.com>
3577         doc: mention setlocale() issues on OpenBSD
3578         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
3579         never fails, and the need to check categories individually.
3581 2016-01-14  Pádraig Brady  <P@draigBrady.com>
3583         sig2str: list all signals on FreeBSD >= 7
3584         FreeBSD >= 7 is contravening POSIX by not defining NSIG
3585         to the maximal statically defined signal value.
3586         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
3587         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
3588         where available, even when NSIG is defined.
3590 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
3592         acl-permissions: port to USE_ACL==0 platforms
3593         I ran into this problem when building bleeding-edge GNU Emacs
3594         with gcc -fsanitize=address on Fedora 23.  On this platform
3595         the ACL library does not pass the 'configure' test and Emacs
3596         then does not build due in part to what appear to be typos in the
3597         ACL part of Gnulib.
3598         * lib/acl-internal.c (free_permission_context):
3599         * lib/acl-internal.h (struct permission_context):
3600         Test whether USE_ACL is nonzero, not whether it is defined.
3602 2016-01-12  Martin Sebor  <msebor@redhat.com>
3604         mktime: rename macro to avoid glibc clash
3605         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
3606         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
3608 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
3610         Port "$@" to OpenIndiana ksh93
3611         In http://lists.gnu.org/archive/html/bug-autoconf/2015-12/msg00000.html
3612         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
3613         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
3614         bug long-dead shells, so remove the workaround.
3615         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
3616         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
3617         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
3618         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
3619         Use "$@" instead of ${1+"$@"}.
3621         Port Universal Time settings to strict POSIX
3622         * build-aux/announce-gen, build-aux/bootstrap:
3623         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
3624         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
3625         * build-aux/gnupload, build-aux/mkinstalldirs:
3626         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
3627         * build-aux/update-copyright, build-aux/useless-if-before-free:
3628         * build-aux/vc-list-files, tests/test-strftime.c:
3629         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
3630         but POSIX says the behavior of TZ="UTC" is undefined.
3632 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
3634         msvc-inval: fix problem with unset shell var
3635         Problem reported by Karl Berry in:
3636         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00004.html
3637         * modules/msvc-inval (Depends-on):
3638         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
3639         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
3641 2016-01-01  Pádraig Brady  <P@draigBrady.com>
3643         tests: for compare_(), use cmp -s where available
3644         * tests/init.sh (compare_): Only fall back to cmp without
3645         the POSIX defined -s option, where this is not available.
3647 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
3649         version-etc: new year
3650         * build-aux/gendocs.sh (version):
3651         * doc/gendocs_template:
3652         * doc/gendocs_template_min:
3653         * doc/gnulib.texi:
3654         * lib/version-etc.c (COPYRIGHT_YEAR):
3655         Update copyright dates by hand in templates and the like.
3656         * all files: Run 'make update-copyright'.
3658 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
3660         human: fix output buffer overrun by 1
3661         * lib/human.c (human_readable): Fix off-by-one typo in buffer
3662         calculation that could lead to a one-byte buffer overrun.
3664 2015-12-28  Daiki Ueno  <ueno@gnu.org>
3666         maint: fix operator precedence in mbrtowc test
3667         This is a fix for test breakage introduced by commit 45228d96; the
3668         equality expression must be parenthesized when negated with '!',
3669         otherwise we always get:
3671           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
3673         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
3674         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
3676 2015-12-23  James Youngman  <jay@gnu.org>
3678         regexprops-generic: update from regex.h
3679         * doc/regexprops-generic.texi: update by running the regexprops binary
3680         from findutils (the command line is 'regexprops "Regular Expressions"
3681         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
3682         gnulib with GNU grep had made this document out-of-date.
3684 2015-12-23  Pádraig Brady  <P@draigBrady.com>
3686         strftime-tests: avoid false failure on OS X
3687         * tests/test-strftime.c (struct localtime_rz_test): Add an
3688         ahistorical member which is used to warn rather than fail
3689         when tm_isdst isn't set for such entries.  This is the case for
3690         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
3692 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
3694         fts: ensure leaf optimization is used for NFS
3695         NFS provides usable dirent.d_type but not necessarily for all entries
3696         of large directories.  See <https://bugzilla.redhat.com/1252549>
3697         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
3699 2015-12-20  Pádraig Brady  <P@draigBrady.com>
3701         fts: enable leaf optimization for XFS
3702         XFS provides usable dirent.d_type only for DT_DIR,
3703         but the noleaf optimization still applies.
3704         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
3706 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
3708         intprops: comment fix
3709         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
3710         http://lists.gnu.org/archive/html/bug-gnulib/2015-12/msg00013.html
3712         intprops-test: work around GCC bug 68971
3713         Problem reported by Pádraig Brady in:
3714         http://lists.gnu.org/archive/html/bug-gnulib/2015-12/msg00011.html
3715         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
3716         (main): Add a case that better tests 64-bit long in this area.
3718 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
3720         gnulib-tool: allow multiple --local-dir usage
3721         * gnulib-tool: Use --local-dir to construct compound
3722         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
3723         PATH_SEPARATOR early.
3724         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
3725         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
3726         func_determine_path_separator because that needs to be detected
3727         earlier now.
3728         (func_determine_path_separator): New function.
3729         (func_path_foreach, func_path_foreach_inner): New functions.
3730         (func_path_prepend, func_path_append): Likewise.
3731         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
3732         (func_lookup_file, func_all_modules): Use new functions to work
3733         with local_gnulib_path.
3734         (func_modules_in_dir, func_exists_module): New callbacks for
3735         func_path_foreach.
3736         (func_exists_module, func_get_tests_module): Likewise.
3737         (func_is_local_file, func_should_symlink): New helper methods.
3738         (func_add_file, func_update_file): Use new func_should_symlink
3739         instead, DRY.
3740         (func_reconstruct_cached_local_gnulib_path): New helper.
3741         (func_reconstruct_cached_dir): New callback.
3742         (func_import): The cached_local_gnulib_dir renamed to
3743         cached_local_gnulib_path similarly to local_gnulib_dir.
3744         Use new func_reconstruct_cached_local_gnulib_path.
3745         (func_count_relative_local_gnulib_path): New sub-method.
3746         (func_create_testdir): Use func_should_symlink, DRY.
3747         (func_create_megatestdir): Use new functions to work with
3748         local_gnulib_path correctly.
3749         (func_append_local_dir): New helper.
3751 2015-12-08  Pádraig Brady  <P@draigBrady.com>
3753         fix freadptr to work with ungetc on all uClibc configs
3754         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
3755         where GNU coreutils cut(1) generates invalid output on uClibc
3756         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
3757         * lib/freadptr.c (freadptr): Return NULL if there are
3758         ungotten chars.  In this case freadseek() will iterate
3759         again to process the ungotten character.
3761 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
3763         xalloc-oversized: improve performance with GCC 5
3764         * lib/xalloc-oversized.h (xalloc_oversized):
3765         Improve performance with GCC 5 by using __builtin_mul_overflow.
3767 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
3769         intprops: new public macro EXPR_SIGNED
3770         Emacs can use this macro, so make it public.
3771         * doc/intprops.texi (Arithmetic Type Properties): Rename from
3772         'Integer Type Determination', since some of these macros apply
3773         to non-integer types.  Clarify what kinds of constant expressions
3774         these macros return.  Say when the arguments can be non-integers.
3775         Mention newly published macro EXPR_SIGNED.
3776         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
3777         make it public.  All uses changed.
3779         intprops: fix typo in clang port
3780         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
3781         '__builtin_add_overflow' that is not caught by compiler.
3783 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
3785         test-timespec: fix typo in previous change
3786         * tests/test-timespec.c (main): Fix typo that reduced test quality.
3788         timespec-sub: fix overflow bug; add tests
3789         * lib/timespec-add.c (timespec_add):
3790         * lib/timespec-sub.c (timespec_sub):
3791         Work even if time_t is narrower than int (a theoretical
3792         possibility).  Redo code for a bit more clarity.
3793         * lib/timespec-sub.c (timespec_sub):
3794         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
3795         * modules/timespec-tests, tests/test-timespec.c: New files.
3797         intprops-test: suppress -Woverlength-strings
3798         Problem reported by Pádraig Brady in:
3799         http://lists.gnu.org/archive/html/bug-gnulib/2015-11/msg00008.html
3800         It is not worth the hassle to port this test to compilers that
3801         cannot handle long strings in diagnostics.
3802         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
3804 2015-11-03  Pádraig Brady  <P@draigBrady.com>
3806         quotearg: add quotearg_n_style_colon()
3807         This quotes with default options of the specified style,
3808         but with quoting enabled for instances of ':'.
3809         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
3810         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
3812 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
3814         intprops: revise _WRAPV macros, revert _OVERFLOW
3815         The incompatible changes to the _OVERFLOW macros were too much of
3816         a hassle in practice, so revert them.  Instead, change the new
3817         _WRAPV macros to make them closer in behavior to GCC 5's new
3818         builtin_add_overflow etc. functions.  No other software was using
3819         these newly-added macros yet, so this should be OK.
3820         * NEWS: Revert previous change, since the incompatible change
3821         has been reverted, and nobody used the incompatible version.
3822         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
3823         Document revised behavior.
3824         (Integer Range Overflow): Adjust example to match above revisions.
3825         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
3826         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
3827         these can be used in integer constant expressions again.
3828         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
3829         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
3830         needed.
3831         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
3832         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
3833         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
3834         Remove, as they did not seem that useful.
3835         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
3836         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
3837         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
3838         Support new semantics.
3839         (__has_builtin): New macro, if not alreay defined.
3840         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
3841         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
3842         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
3843         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
3844         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
3845         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
3846         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
3847         New macros.
3848         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
3850 2015-11-03  Jim Meyering  <meyering@fb.com>
3852         intprops: add parentheses for when OP has precedence lower than "-"
3853         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
3854         "a OP b" must be parenthesized for when OP is like "<<", which has
3855         lower precedence than the following "-". Reported by Pádraig Brady.
3857 2015-11-03  Pádraig Brady  <P@draigBrady.com>
3859         quotearg: constify get_quoting_style parameters
3860         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
3861         * lib/quotearg.c (get_quoting_style): Likewise.
3863 2015-11-02  Pádraig Brady  <P@draigBrady.com>
3865         quotearg: add support for $'' shell escaping
3866         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
3867         items and descriptions.
3868         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
3869         above types by quoting like "shell", but using $'...' syntax
3870         for non printable characters, which should provide unambiguous
3871         printable output for any input.
3872         * tests/test-quotearg-simple.c: Update accordingly.
3874 2015-11-02  Pádraig Brady  <P@draigBrady.com>
3876         maint: use a more standard return from mbrtowc test
3877         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
3878         from the test program as this is non standard and often
3879         indicates an unhandled case in the test program.
3880         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
3882 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
3884         intprops: add WRAPV and const flavors for GCC 5
3885         If available, use GCC 5's builtin functions for efficient integer
3886         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
3887         and safely compute the low-order bits of the correct answer.
3888         A downside of these efficient functions is that they cannot be
3889         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
3890         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
3891         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
3892         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
3893         Document the changes.
3894         (Wraparound Arithmetic): New section.
3895         (Integer Range Overflow):
3896         Put this subsection last, since it's least useful.
3897         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
3898         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
3899         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
3900         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
3901         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
3902         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
3903         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
3904         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
3905         New macros.
3906         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
3907         Generate calls to GCC builtins if available, for speed.
3908         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
3909         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
3910         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
3911         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
3912         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
3913         (CHECK_QUOTIENT, CHECK_REMAINDER):
3914         Test WRAPV and CONST flavors (when available) too.
3916 2015-10-30  Pádraig Brady  <P@draigBrady.com>
3918         doc: use extended timezone format in iso-8601 example
3919         * doc/parse-datetime.texi: The standard states that extended format
3920         is to be used consistently throughout.
3921         Note that lib/parse-datetime.y can handle either tz format.
3923 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
3925         stdalign: port to Sun C 5.9
3926         * doc/posix-headers/stdalign.texi: Document this.
3927         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
3928         __attribute__ ((__aligned__ (...))).
3930 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
3932         time_rz: fix comment about tzalloc
3933         * lib/time_rz.c (tzalloc): Fix comment.
3935 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
3937         stdalign: work around pre-4.9 GCC x86 bug
3938         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
3939         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
3940         http://lists.gnu.org/archive/html/bug-gnulib/2015-10/msg00038.html
3942 2015-10-18  Pádraig Brady  <P@draigBrady.com>
3944         maint.mk: sc_tight_scope: remove extraneous expressions
3945         * top/maint.mk (tight_scope): This is not really required since
3946         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
3947         that matches all nm entries.  But it does remove extraneous entries
3948         that may be confusing or cause issue in future maintenance.
3950 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
3952         time_rz: return NULL if localtime_r fails
3953         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
3954         while still attempting to pacify bleeding-edge GCC.
3956         fts: port to C11 alignof
3957         * doc/posix-headers/stdalign.texi (stdalign.h):
3958         Document the C11 restriction.
3959         * lib/fts.c: Include stddef.h, for max_align_t.
3960         (fts_alloc): Align using max_align_t, not FTSENT.
3961         * modules/fts (Depends-on): Add stddef.
3963 2015-10-18  Jim Meyering  <meyering@fb.com>
3965         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
3966         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
3967         would see this:
3969         lib/time_rz.c: In function 'localtime_rz':
3970         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
3971           [-Werror=nonnull]
3972                    if (tm && !save_abbr (tz, tm))
3973                        ^
3975         That was complaining about "tm" because it is a parameter that was
3976         declared with the __nonnull__ attribute.
3977         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
3978         result of localtime_r.
3980 2015-10-17  Jim Meyering  <meyering@fb.com>
3982         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
3983         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
3984         name-extraction regexp mistakenly used \S+, and would mistakenly
3985         extract "*F" from "extern int *F()" rather than the desired "F".
3986         Use \w+ instead.
3988 2015-10-17  Jim Meyering  <meyering@fb.com>
3990         maint.mk: sc_tight_scope: factor and support OS X
3991         * top/maint.mk (_gl_tight_scope): Address three issues:
3992         - factor out four instances of code that wraps a string in "^...$"
3993         - allow nm-reported symbol names to have an optional leading "_"
3994         - add "main" to the list of ignored variable names, because on os x,
3995         "main" has nm-reported type "S" in the variable-checking section.
3997 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
3999         safe-alloc-tests: fix typo in license header
4000         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
4002 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
4004         copy-file: fix mem leak in error case
4005         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
4006         upon error opening or performing I/O to the src and dest files.
4008 2015-10-15  Mike Frysinger  <vapier@chromium.org>
4010         localename: control langinfo.h inclusion
4011         This header is only used to work around buggy behavior in old
4012         versions of glibc, so do not include it all the time.  Otherwise
4013         we get build failures on systems that do not provide langinfo.h.
4014         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
4015         in the source later on.
4016         The patch was originally submitted to gettext as:
4017         https://lists.gnu.org/archive/html/bug-gettext/2015-10/msg00011.html
4019 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
4021         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
4022         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
4023         * lib/u64.c, lib/unistd.c:
4024         Append 'typedef int dummy;', to pacify compilers that are picky
4025         about empty translation units.
4027 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
4029         accept4-tests: fix to avoid non portable flags
4030         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
4031         as they are the only documented ones, and passing others may trigger
4032         EINVAL (seen on FreeBSD 10.1-RELEASE).
4033         * doc/glibc-functions/accept4.texi: Mention that we don't provide
4034         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
4036 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
4038         gnulib-tool: fix tests of 'extensions' module
4039         This complements f8fe25fab60e3c687a124 commit.
4040         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
4041         emitting of initial gl_EARLY macros.
4042         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
4043         replaced with func_emit_pre_early_macros call.
4045 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
4047         unicase/locale-language: fix typo in utf-8 cookie
4048         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
4049         Problem reported by Zbigniew Jędrzejewski-Szmek.
4051 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
4053         xalloc: do not worry about GCC 5 warning on 32 bit
4054         * lib/xalloc.h: Revert previous change.
4055         I found a better way to fix this in coreutils.
4057 2015-10-02  Pádraig Brady  <P@draigBrady.com>
4059         xalloc: avoid GCC 5.1 warning on 32 bit
4060         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
4061         xalloc_oversized(), which was seen to give this warning
4062         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
4063         when simplifying conditional".
4065 2015-10-02  Daiki Ueno  <ueno@gnu.org>
4067         uniname/uniname-tests: avoid compiler warnings
4068         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
4069         unused local variables.
4070         (test_alias_lookup): Fix alias name display in failure cases.
4072 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
4074         c-ctype: do not worry about EBCDIC + char signed
4075         Drop support for EBCDIC with char being signed, as this breaks too
4076         many programs.  Problem reported by Ben Pfaff in:
4077         http://lists.gnu.org/archive/html/bug-gnulib/2015-09/msg00053.html
4078         * lib/c-ctype.h: Verify that we are not using EBCDIC with
4079         char being signed.
4080         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
4081         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
4082         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
4083         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
4084         * tests/test-c-ctype.c (test_all):
4085         Simplify by assuming standard char values cannot be negative.
4086         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
4088 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
4090         c-ctype: port better to z/OS EBCDIC
4091         Problems reported by Daniel Richard G. in:
4092         http://lists.gnu.org/archive/html/bug-gnulib/2015-09/msg00050.html
4093         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
4094         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
4095         (_C_CTYPE_OTHER_CNTRL): New macro.
4096         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
4097         from SCHAR_MIN, as the functions are defined only from values
4098         promoted from char or from unsigned char, not necessarily from
4099         signed char.
4101 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
4103         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
4105         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
4106         and ARFLAGS variables.  Doing this unconditionally could break
4107         later Automake's AM_PROG_AR invocation (at least it's
4108         AC_CHECK_TOOLS call to detect correct 'ar' binary).
4110         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
4111         Amsterdam Compiler Kit, so make the previous code to have effects
4112         only on ACK, and rather automatically call the Automake's
4113         AM_PROG_AR as soon as possible to decide other cases.
4115         References:
4116         http://lists.gnu.org/archive/html/bug-gnulib/2015-07/msg00001.html
4118         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
4119         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
4120         is possible, keep setting AR/ARFLAGS to reasonable defaults.
4121         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
4122         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
4123         'extensions' module is used.
4124         * modules/extensions (configure.ac-early): Remove as this snippet
4125         is added to gnulib-comp.m4 earlier anyway.
4127 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
4129         sockets: MS Windows initalization fixes
4130         Problem reported by Test User in:
4131         http://lists.gnu.org/archive/html/help-shishi/2015-09/msg00001.html
4132         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
4133         Correct the endianness.
4134         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
4135         number mismatch, not just on <.  Cleanup before any such failure.
4137 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
4139         gc: fix detection of installed libgcrypt version
4140         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
4141         at least as recent as 1.4.4.  The previously used macro is not
4142         available now, since modules were removed in version 1.6.0.
4144 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
4146         c-ctype: rewrite to use inline functions
4147         This simplifies maintenance, since it makes for just one
4148         implementation of each function, letting the compiler have the fun
4149         of optimization.  In practice this works well nowadays with GCC.
4150         E.g., c_isascii might need only three instructions even though the
4151         source code lists every ASCII character individually in a large
4152         switch statement.
4153         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
4154         http://lists.gnu.org/archive/html/bug-gnulib/2015-09/msg00037.html
4155         * NEWS: Document the API change.
4156         * lib/c-ctype.c: Drastically simplify, since this now just expands
4157         inline functions.
4158         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
4159         (C_CTYPE_INLINE): New macro.
4160         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
4161         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
4162         Verify that either ASCII or EBCDIC is being used.
4163         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
4164         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
4165         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
4166         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
4167         New private macros.
4168         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
4169         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
4170         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
4171         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
4172         (c_tolower, c_toupper): When converting, return the unsigned char,
4173         as that is what z/OS does.
4174         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
4175         of some c-ctype.h macros.
4176         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
4177         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
4178         c_tolower promotion to be compatible with z/OS.
4180 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
4182         gitlog-to-changelog: trim only trailing whitespaces
4183         This is fix for --format regression introduced by commit
4184         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
4185         doubled %n string) had no effect anymore.  This format
4186         specification has been used e.g. by GNU paxuitils (commit
4187         edfd8bcc3).
4189         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
4190         newlines in commmit messages.
4192 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
4194         Test that c_iscntrl agrees with iscntrl, etc.
4195         Suggested by Daniel Richard G. in:
4196         http://lists.gnu.org/archive/html/bug-gnulib/2015-09/msg00034.html
4197         * modules/c-ctype-tests (Depends-on): Add ctype.
4198         * tests/test-c-ctype.c: Include <ctype.h>.
4199         (NCHARS): New constant.
4200         (test_agree_with_C_locale): New function.
4201         (main): Use it.
4202         (test_all): Use named constants.
4204         c-ctype: improve c_isascii testing
4205         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
4206         Add a test to count the number of ASCII characters.
4208 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
4210         savewd: remove SAVEWD_CHDIR_READABLE
4211         It was problematic in the light of file systems that ignore umask.
4212         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
4213         * NEWS: Document this.
4214         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
4215         successful, -1 (setting errno) on failure, rather than something
4216         more complicated than that.
4217         * lib/mkdir-p.c (make_dir_parents):
4218         Do not use SAVEWD_CHDIR_READABLE.
4219         * lib/savewd.c (savewd_chdir):
4220         Remove support for SAVEWD_CHDIR_READABLE.
4221         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
4223         c-ctype: port better to EBCDIC
4224         Problems reported by Daniel Richard G. in
4225         http://lists.gnu.org/archive/html/bug-gnulib/2015-09/msg00020.html
4226         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
4227         Include "verify.h".
4228         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
4229         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
4230         Define as enum constants with value false, if not defined, so that
4231         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
4232         code more portable, as both branches of the 'if' are compiled on
4233         all platforms.
4234         (C_CTYPE_EBCDIC): New constant.
4235         Verify that the character set is either ASCII or EBCDIC.
4236         (to_char): New static function.
4237         (c_isascii, c_iscntrl):
4238         Assume standard control-character assignments for EBCDIC.
4239         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
4240         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
4241         Rewrite to use 'if' instead of 'ifdef'.
4242         Use to_char if non-ASCII.  Prefer <= to >=.
4243         Prefer true and false to 1 and 0, for booleans.
4244         (c_iscntrl): Use 'if', not 'ifdef'.
4245         * modules/c-ctype (Depends-on): Add verify.
4246         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
4247         (to_char): New function.
4248         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
4250 2015-09-21  Pádraig Brady  <P@draigBrady.com>
4252         nanosleep: fix return code for interrupted replacement
4253         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
4254         that we return -1 in the case the call is interrupted by a signal,
4255         rather than the current value of 1.
4256         Diagnosed and tested by Daniel Richard G.
4258 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
4260         Diagnose ERE '()|\1'
4261         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
4262         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
4263         track of the set of previously-completed subexpressions available
4264         before the first alternative, and restore this set just before
4265         parsing each subsequent alternative.  This lets us diagnose the
4266         invalid back-reference in the ERE '()|\1'.
4268         regex: merge patches from libc
4270         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
4271         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
4272         * lib/regex_internal.h:
4273         Include <libc-lock.h> instead of <bits/libc-lock.h>.
4275         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
4276         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
4277         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
4278         wcscoll.
4279         * lib/regexec.c (check_node_accept_bytes): Likewise.
4281         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
4282         Fix regex wcrtomb namespace (bug 18496).
4283         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
4284         instead of wcrtomb.
4286         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
4287         Fix regex wctype namespace (bug 18495).
4288         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
4289         instead of towlower.
4290         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
4291         instead of iswlower.  Call __towupper instead of towupper.
4292         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
4293         instead of iswalnum.
4295         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
4296         * lib/regcomp.c (parse_bracket_exp): Initialize type to
4297         COLL_SYM in a couple of places to avoid uninitialized variable
4298         wanings on tilegx gcc 4.8.2.
4300         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
4301         * lib/regex_internal.h: Remove NOT_IN_libc.
4303         2014-11-17  Andreas Schwab  <schwab@suse.de>
4304         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
4306         2014-09-11  Roland McGrath  <roland@hack.frob.com>
4307         Move findidx nested functions to top-level.
4308         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
4309         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
4310         Pass new arguments to findidx.
4311         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
4312         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
4313         Don't #include it inside the function.  Pass new arguments to findidx.
4314         * lib/regex_internal.h:
4315         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
4316         (re_string_elem_size_at): Don't #include it inside the function.
4317         Pass new arguments to findidx.
4319         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
4320         Check if DEBUG is defined in regex_internal.c
4321         * lib/regex_internal.c: Check if DEBUG is defined and is set.
4323 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
4325         ceill: detect buggy OpenBSD implementation
4326         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
4327         which returns zero for small values.  Discussed here:
4328         http://lists.gnu.org/archive/html/bug-gnulib/2015-08/msg00010.html
4330 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
4332         mountlist: add me_mntroot field on Linux machines
4333         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
4334         mount_entry so Linux machines based on /proc/self/mountinfo can
4335         distinguish between bind mounts and original mounts.  In reality bind
4336         mounts aren't treated differently than mountroot=/ mounts by the
4337         kernel, but the user often wants these bind mounts distinguished.
4338         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
4339         More details at https://pad.lv/1432871
4341 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
4343         doc: Describe to use multiple instances of gnulib
4344         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
4345         instances of gnulib with different modules can be used, for example one
4346         for a lib and another one for associated tools.
4348 2015-09-01  Pádraig Brady  <P@draigBrady.com>
4350         base32: mark function as __attribute__ const
4351         * lib/base32.h (isbase32): Mark __attribute__ const as
4352         suggested by GCC, and consistent with the base64 module.
4354 2015-08-20  Daiki Ueno  <ueno@gnu.org>
4356         gnulib-tool: don't transform binary files with sed
4357         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
4358         .mo and .class files.
4359         Reported by Denis Denisov.
4361 2015-08-10  Daiki Ueno  <ueno@gnu.org>
4363         gperf: respect silent rules
4364         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
4365         V_GPERF_0 for silent rules.
4366         * modules/iconv_open (Makefile.am): Use V_GPERF.
4367         * modules/unicase/locale-language (Makefile.am): Likewise.
4368         * modules/unicase/special-casing (Makefile.am): Likewise.
4369         * modules/unictype/category-byname (Makefile.am): Likewise.
4370         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
4371         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
4372         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
4373         * modules/unictype/property-byname (Makefile.am): Likewise.
4374         * modules/unictype/scripts (Makefile.am): Likewise.
4375         * modules/uninorm/composition (Makefile.am): Likewise.
4377 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
4379         Improve port of stdalign to C++11
4380         Problem reported by Sundaram in:
4381         http://lists.gnu.org/archive/html/bug-gnulib/2015-08/msg00003.html
4382         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
4383         (__alignas_is_defined): Define if C++11 or newer.
4385 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
4387         pmccabe2html: fix gawk regex escaping
4388         * build-aux/pmccabe2html: Add one more backslash to properly
4389         escape the gsub replacement value.  Fixes this error:
4390         gawk: ./build-aux/pmccabe2html:425: \
4391         warning: escape sequence `\&' treated as plain `&'
4393 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
4395         time_rz: port to pedantic memcpy
4396         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
4397         that reject memcpy (..., NULL, 0).
4399 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
4401         time_rz: port better to MinGW
4402         Don't change tzname, as this makes MinGW dump core (Bug#21020).
4403         Instead, store the tzname copy in the struct tm_zone object.
4404         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
4405         * lib/strftime.c [!_LIBC]:
4406         * lib/time_rz.c: Include time-internal.h.
4407         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
4408         name from *TZ rather than from TZNAME, doable because *TZ now has
4409         a tzname_copy member.
4410         * lib/time-internal.h: New file, with contents taken from
4411         lib/time_rz.c.  It's separate because strftime.c now accesses
4412         struct tm_zone members.
4413         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
4414         New member tzname_copy.
4415         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
4416         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
4417         Initialize tzname_copy member.
4418         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
4419         in tzname_copy member.
4420         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
4421         (restore_tzname): Remove; no longer needed.  All calls removed.
4422         * modules/time_rz (Files): Add lib/time-internal.h.
4424         time: port __need_time_t to MinGW
4425         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
4426         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
4428 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
4430         strftime: fix newly-introduced bug on Solaris
4431         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
4432         consistently at the start, rather than doing some of the setup at
4433         the start and some in the %Z format spec.  This is cleaner, and
4434         works better with time_rz on platforms like Solaris where struct
4435         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
4436         mktime_z and localtime_rz can mess up the tzname cache.
4438         test-strftime: test for Solaris bug
4439         * modules/strftime-tests (Depends-on): Add strerror.
4440         * tests/test-strftime.c: Include <errno.h>.
4441         (posixtm_test): New function, containing the old 'main'.
4442         (struct tzalloc_test, struct localtime_rz_test): New types.
4443         (TZ, LT): New static vars.
4444         (tzalloc_test): New function.
4445         (main): Rewrite in terms of posixtm_test and tzalloc_test.
4447         time_rz: port to Solaris etc.
4448         Works around a tzname problem on platforms like Solaris that have
4449         tzname but not tm_zone, by setting tzname at the appropriate time
4450         and restoring it later.
4451         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
4452         New static vars.
4453         (save_abbr) [HAVE_TZNAME]: Set them.
4454         (revert_tz) [HAVE_TZNAME]: Clear or use them.
4455         (restore_tzname): New function.
4456         (localtime_rz, mktime_z): Use it.
4458         time_rz: now LGPL
4459         * modules/time_rz (License): Now LGPL, because strftime depends on it.
4461         time_rz: make a constant 'const'
4462         * lib/time_rz.c (local_tz): Now const.
4464         time_rz: fix off-by-one typo
4465         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
4467 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
4469         fprintftime, strftime: use timezone_t args
4470         * NEWS: Document the change.
4471         * lib/fprintftime.h (fprintftime):
4472         * lib/strftime.c (extra_args) [my_strftime]:
4473         * lib/strftime.h (nstrftime):
4474         Time zone arg is now of type timezone_t, not int.
4475         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
4476         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
4477         (my_strftime) [emacs && !my_strftime]:
4478         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
4479         Remove; Emacs doesn't need this any more.
4480         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
4481         fprintftime and nstrftime to call tzset.
4482         (ut) [!my_strftime]: Remove, replacing with ...
4483         (tz) [!my_stftime]: ... this new macro.  All uses changed.
4484         (strftime_case_): Use localtime_rz and mktime_z instead
4485         of localtime_r and mktime.
4486         * modules/fprintftime (Depends-on): Add time_rz.
4487         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
4488         * tests/test-strftime.c (main): Adjust to new nstrftime API.
4490         time_rz: new module
4491         * MODULES.html.sh: Add time_rz.
4492         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
4493         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
4494         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
4495         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
4496         New var HAVE_TIMEZONE_T (default 0).
4497         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
4498         New var GNULIB_TIME_RZ (default 0).
4499         * modules/time (time.h): Substitute the new vars.
4501         flexmember: license is now unlimited
4502         * modules/flexmember (License): Change to unlimited,
4503         since its only source file gives an unlimited license.
4505 2015-07-15  Eric Blake  <eblake@redhat.com>
4507         maint: update copyright paper procedures
4508         * config/srclist.txt: Drop outdated files.
4509         * doc/Copyright/conditions.txt: Update to latest.
4510         * doc/Copyright/assign.changes.manual: Delete.
4511         * doc/Copyright/assign.future.manual: Likewise.
4512         * doc/Copyright/assign.manual: Likewise.
4513         * doc/Copyright/assign.translation.manual: Likewise.
4514         * doc/Copyright/disclaim.changes.manual: Likewise.
4515         * doc/Copyright/disclaim.manual: Likewise.
4516         * doc/Copyright/disclaim.program: Likewise.
4518 2015-07-07  Daiki Ueno  <ueno@gnu.org>
4520         localename: fix link error on Illumos
4521         Illumos defines __sun, but does not have getlocalename_l nor the
4522         equivalent.  This partially reverts commit 387c214.
4523         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
4524         available, as well as uselocale.
4525         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
4526         use getlocalename_l if it is not available.
4528 2015-07-07  Daiki Ueno  <ueno@gnu.org>
4530         unistr/uN-strtok-tests: avoid a trivial leak
4531         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
4532         input and delim after the multibyte delimiter tests.
4534 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
4536         file-has-acl, acl-permissions: fix HP-UX typos
4537         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
4538         * lib/file-has-acl.c (file_has_acl):
4539         * lib/set-permissions.c (context_acl_from_mode)
4540         (context_aclv_from_mode, set_acls):
4541         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
4542         They were introduced by the recent ACL changes.
4544         regex: match current GNU grep behavior
4545         These symbols have not matched GNU grep behavior for quite some time.
4546         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
4547         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
4548         Change to match current GNU behavior.
4549         Simplify by expressing it as differences from POSIX BREs and EREs.
4550         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
4552 2015-07-03  Jim Meyering  <meyering@fb.com>
4554         set-permissions.c: adjust acl_from_mode's cpp guard
4555         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
4556         directives identical to those guarding the sole use.
4557         Otherwise, on some systems, we'd get a warning about
4558         the function being defined but not used.
4559         Also, filter through cppi to correct misleading indentation
4560         of cpp directives.
4562 2015-07-03  Pádraig Brady  <P@draigBrady.com>
4564         tests: restrict shells to those that support 'local'
4565         The local keyword is very widely supported and used
4566         in tests in coreutils and grep at least.  Therefore
4567         restrict to testing with shells that support it.
4568         This mainly excludes /bin/sh on Solaris.
4569         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
4571 2015-07-03  Seiya Kawashima <skawashima@uchicago.edu>  (tiny change)
4572         and Daiki Ueno  <ueno@gnu.org>
4574         unistr/uN-strtok: handle multibyte delimiters
4575         Previously, uN_strtok moved PTR to the next unit to the token end.
4576         When DELIM contained a multibyte character, the new position could
4577         be a middle of a multibyte character.
4578         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
4579         after the token.
4580         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
4581         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
4582         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
4583         * modules/unistr/u8-strtok (Depends-on): Depend on
4584         unistr/u8-strmblen.
4585         * modules/unistr/u16-strtok (Depends-on): Depend on
4586         unistr/u16-strmblen.
4587         * modules/unistr/u32-strtok (Depends-on): Depend on
4588         unistr/u32-strmblen.
4589         * tests/unistr/test-u-strtok.h: New file.
4590         * tests/unistr/test-u8-strtok.c: New file.
4591         * tests/unistr/test-u16-strtok.c: New file.
4592         * tests/unistr/test-u32-strtok.c: New file.
4593         * modules/unistr/u8-strtok-tests: New file.
4594         * modules/unistr/u32-strtok-tests: New file.
4595         * modules/unistr/u16-strtok-tests: New file.
4597 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
4599         update-copyright: fix test failure with perl >= 5.22 (trivial)
4600         * build-aux/update-copyright: Escape a literal left curly bracket,
4601         required with perl >= 5.22
4603 2015-07-02  Daiki Ueno  <ueno@gnu.org>
4605         u{16,32}-strstr-tests: relax timeout condition
4606         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
4607         tests can take longer than 5 seconds to complete.
4608         Reported by Dagobert Michelsen in:
4609         https://lists.gnu.org/archive/html/bug-libunistring/2015-06/msg00006.html
4610         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
4611         seconds to 10 seconds.
4612         * tests/unistr/test-u32-strstr.c (main): Likewise.
4614 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
4616         gnulib-common.m4: change the ARFLAGS default to 'cr'
4617         In some GNU/Linux distributions people started to compile 'ar'
4618         binary with --enable-deterministic-archives (binutils project).
4619         That, however, in combination with previous autotools long time
4620         working default AR{_,}FLAGS=cru causes warnings on such
4621         installations:
4622         ar: `u' modifier ignored since `D' is the default (see `U')
4623         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
4624         set already.
4626 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
4628         selinux-h: avoid double free after *getfilecon()
4629         Originally reported by Ben Shelton on bug-tar:
4630         http://lists.gnu.org/archive/html/bug-tar/2015-04/msg00009.html
4631         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
4632         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
4633         param should be freed by freecon(3) (regardless the return value).
4635 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
4637         fix pty related tests issues on Windows (trivial)
4638         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
4639         however it's still present in tests/ subdirectory of the final project.
4640         Therefore avoid it to pass `make check`.
4641         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
4642         will just return -ENOSYS, so avoid this non applicable test allowing
4643         the build to proceed.
4645 2015-07-01  Pádraig Brady  <P@draigBrady.com>
4647         acl: fix definition of acl_from_mode on FreeBSD
4648         This was causing basic coreutils copy operations to fail
4649         with ENOTSUP or ENOENT error messages.
4650         * lib/acl-internal.h (acl_from_mode): Only define when
4651         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
4652         of acl_from_mode() defined in lib/set-permissions.c to
4653         be used on FreeBSD at least.
4654         * lib/set-permissions.c: Fix up comment spelling,
4655         and a redundant variable assignment; noticed in passing.
4657 2015-06-30  Pádraig Brady  <P@draigBrady.com>
4659         readutmp: port to FreeBSD >= 9
4660         * lib/readutmp.h: Map utmpxname() to setutxdb().
4661         With that coreutils who(1) and pinky(1) tests pass.
4663 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
4665         mgetgroups: port to strict OS X
4666         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
4667         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
4668         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
4669         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
4671 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
4673         mgetgroups: port to strict OS X
4674         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
4675         Document the getgrouplist problem.
4676         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
4677         New macro.
4678         (mgetgroups): Use it.
4679         * m4/mgetgroups.m4 (gl_MGETGROUPS):
4680         Check for OS X signature for getgrouplist.
4682 2015-06-29  Jim Meyering  <meyering@fb.com>
4684         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
4685         It started like this when building coreutils' latest on OS X,
4686         invoking ./configure with a nonempty --cache=.cache:
4688           lib/linkat.c:46:42: error: operator '||' has no right operand
4689           lib/linkat.c: In function 'rpl_linkat':
4690           lib/linkat.c:330:27: error: #if with no expression
4692         Here's linkat.c's line 46:
4694           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
4696         Here's some context:
4698           $ grep linkat_nofoll .cache
4699           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
4700           $ grep LINKAT_SYM lib/config.h
4701           #define LINKAT_SYMLINK_NOTSUP
4703         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
4704         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
4705         but that violates a tenet of AC_CACHE_CHECK: it must
4706         have no side effect other than setting its cache variable.
4708         What happens is that when the cache is set, we'd skip the
4709         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
4710         defined to whatever value it happened to have in configure's
4711         environment.  In my case, it was not defined, so this later code:
4713           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
4714             [Define to 1 if linkat can create hardlinks to symlinks])
4716         would emit code with an empty RHS.
4718         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
4719         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
4721 2015-06-28  Jim Meyering  <meyering@fb.com>
4723         mountlist: avoid an unused-label warning on OS X
4724         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
4725         Building on OS X, I saw a warning about the "free_then_fail" label
4726         being unused.  Give it the _GL_UNUSED_LABEL attribute.
4728         error.c: correct printf-style format: %d -> %u
4729         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
4730         rather than %d, to match the type of "line_number", unsigned int.
4732 2015-06-25  Pádraig Brady  <P@draigBrady.com>
4734         fts: avoid reading beyond the heap allocation
4735         GCC 5.1.1 with -O2 and -fsanitize=address reports
4736         a read of size 4 from a heap object of size 3 is indeed invalid,
4737         though this may be due to incorrect padding assumptions by GCC, see:
4738         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
4739         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
4740         * modules/fts: Depend on stdalign.
4742 2015-06-24  Pádraig Brady  <P@draigBrady.com>
4744         savedir: avoid undefined behavior in qsort call
4745         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
4746         "runtime error: null pointer passed as argument 1,
4747          which is declared to never be null"
4748         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
4750 2015-06-24  Pádraig Brady  <P@draigBrady.com>
4752         userspec: avoid undefined behavior in gettext call
4753         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
4754         "runtime error: null pointer passed as argument 2,
4755          which is declared to never be null"
4756         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
4758 2015-06-20  Glenn Morris  <rgm@gnu.org>
4760         gitlog-to-changelog: improve gitmerge.el commits
4761         Let the Emacs ChangeLog generation process exclude "skipped"
4762         messages from merge commits (Bug#20717).
4763         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
4765 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
4767         wchar: fix MinGW compilation warnings
4768         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
4769         http://lists.gnu.org/archive/html/bug-gnulib/2015-06/msg00050.html
4770         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
4772 2015-06-20  Daiki Ueno  <ueno@gnu.org>
4774         uniname/uniname-tests: use pristine data files
4775         For copyright and maintenance reasons, use the data files from UCD
4776         without modification.
4777         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
4778         (getfield): Remove.
4779         (aliases_count): New global variable.
4780         (fill_names): Skip comments and empty lines in the input.  Don't
4781         use getfield.
4782         (fill_aliases): Likewise.
4783         (main): Change the expected command line arguments to:
4784         NAMES... ["--" ALIASES...].
4785         * tests/uniname/test-uninames.sh: Adjust to the change in
4786         test-uninames.c.
4787         * tests/uniname/UnicodeDataNames.txt: Remove.
4788         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
4789         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
4790         file from Unicode 8.0.0.
4792 2015-06-19  Pádraig Brady  <P@draigBrady.com>
4794         linked-list, linkedhash-list: avoid compiler warnings
4795         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
4796         -Werror=suggest-attribute=pure (from GCC 5.1.1).
4798 2015-06-19  Daiki Ueno  <ueno@gnu.org>
4800         libunistring: bump minimum version to 0.9.6
4801         * all modules depending on updated Unicode data: Regenerate.
4802         The modules are listed by a script that does:
4803         - for each file listed by: git show --oneline --name-only 705f4efc
4804           - deduce the containing modules, based on "Files:"
4805         - deduce the modules which depend on the containing modules, based
4806           on "Depends-on:"
4808 2015-06-18  Daiki Ueno  <ueno@gnu.org>
4810         uniname/uniname: update to Unicode 8.0.0
4811         * lib/uniname/uninames.h: Regenerate.
4812         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
4813         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
4815 2015-06-18  Daiki Ueno  <ueno@gnu.org>
4817         libunistring: update to Unicode 8.0.0
4818         * lib/gen-uni-tables.c (SIZEOF): New macro.
4819         (output_numeric): Increase the maximum number of fractions from
4820         128 to 160.  Increase the level3 value width from 7 bits to 8
4821         bits.  Use SIZEOF instead of a hard-coded integer.
4822         (output_blocks): Decrease the cut-off threshold from 0x30000 to
4823         0x28000.
4824         (fill_blocks): Increase the maximum number of blocks from 256 to
4825         384.  Use SIZEOF instead of a hard-coded integer.
4826         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
4827         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
4828         value width.
4829         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
4830         a new case added to LBP22.
4831         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
4832         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
4833         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
4834         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
4835         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
4836         * tests/uniwidth/test-uc_width2.sh: Same updates as in
4837         lib/uniwidth/width.c.
4838         * all generated files under lib/uni* and tests/uni*: Regenerate.
4840 2015-06-16  Pádraig Brady  <P@draigBrady.com>
4842         gnu-web-doc-update: add --mirror to remove stale files
4843         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
4844         out of date files from the CVS server.  Since this is usually
4845         appropriate, a prompt is given when the option is not specified,
4846         along with the `cvs remove` command that would be run.
4848 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
4850         acl-permissions: pacify -Wsuggest-attribute=const
4851         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
4852         * lib/acl-internal.h (free_permission_context):
4853         Declare with attribute const if ! (defined USE_ACL &&
4854         (HAVE_ACL_GET_FILE || defined GETACL)).
4856         fsync: document AIX misbehavior
4857         * doc/posix-functions/fsync.texi (fsync):
4858         Document failure on AIX with read-only file descriptor.
4860 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
4862         stdio: Don't redefine gets when using C++
4863         * lib/stdio.in.h (gets): Disable warning on C++.
4865 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
4867         acl-permissions: port to AIX, C89 HP-UX
4868         Problems reported by Michael Felt.
4869         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
4870         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
4871         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
4872         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
4873         Add cast for AIX, whose system calls are declared to accept
4874         char * even though the arguments are really char const *.
4875         * lib/get-permissions.c (get_permissions):
4876         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
4877         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
4878         that broke a build.
4879         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
4880         Rework types to pacify xlc.
4882 2015-06-03  Pádraig Brady  <P@draigBrady.com>
4884         vasprintf-posix: avoid compiling vasnprintf where possible
4885         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
4886         module where not required.  For example on a GNU/Linux system
4887         when gnulib-tool is run with the --conditional-dependencies option.
4889 2015-06-02  Pádraig Brady  <P@draigBrady.com>
4891         file-has-acl: fix build on Mac OS X 10
4892         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
4893         which has an incompatible 6 parameter getxattr() call.
4894         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
4895         call on Mac OS X >= 10.4.
4896         * doc/glibc-functions/fgetxattr.texi: Likewise.
4897         * lib/file-has-acl.c: Revert to more complete combined check.
4898         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
4899         Reported by Jack Howarth.
4901 2015-06-02  Pádraig Brady  <P@draigBrady.com>
4903         prefix-gnulib-mk: remove no longer needed special case
4904         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
4905         continued lib_SOURCES lines are no longer present,
4906         so special case handling of such entries is not required.
4908 2015-06-01  Pádraig Brady  <P@draigBrady.com>
4910         acl: don't depend on the deprecated qacl module
4911         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
4913 2015-06-01  Pádraig Brady  <P@draigBrady.com>
4915         gnulib-tool: concatenate lib_SOURCES to a single line
4916         * gnulib-tool: Refactor the line merging sed logic,
4917         and use that to output a single lib_SOURCES line for each module.
4918         gnulib using projects often postprocess this output to prepend
4919         subdir paths to each item, and having a single line simplifies this
4920         processing allowing better decoupling from the gnulib-tool output.
4922 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
4924         pthread_sigmask: discount system version if a simple macro (trivial)
4925         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
4926         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
4927         function to ensure it's available.
4929 2015-05-31  Pádraig Brady  <P@draigBrady.com>
4931         readlinkat: avoid OS X 10.10 trailing slash bug
4932         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
4933         has this bug.
4934         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
4935         that OS X 10.10 has this function.
4936         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
4937         as done for readlink().
4938         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
4939         trailing slash bug, and assume readlinkat() has the same issue.
4940         Also fix a typo where $gl_cv_decl_readlink_works was tested,
4941         rather than the correct $gl_cv_decl_readlinkat_works.
4943 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
4945         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
4946         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
4947         module rewrite.
4949         acl-permissions: Fix build on Solaris and Cygwin
4950         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
4951         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
4952         ace_entries variables have moved into struct permission_context but
4953         they were still accessed as local variables here.
4955 2015-05-29  Pádraig Brady  <P@draigBrady.com>
4957         linkat: avoid OS X 10.10 trailing slash with symlink bug
4958         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
4959         causes the symlink to be dereferenced, and if it points
4960         to a non existent file, that file will be created as
4961         a hard link to "path1".
4962         This fixes a test failure in test-linkat.c.
4963         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
4964         this case.  The existing workaround in linkat.c for
4965         trailing slash issues, suffices for this case.
4966         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
4967         the list of platforms with trailing slash issues.
4969 2015-05-28  Pádraig Brady  <P@draigBrady.com>
4971         unlinkat: handle ignoring of ".." on Darwin 14
4972         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
4973         on Mac OS X 10.10, where it ignores paths with a trailing "..",
4974         so handle in the same manner.
4975         * m4/unlinkat.m4: Comment on this Darwin issue.
4976         * doc/posix-functions/unlink.texi: Update the latest version
4977         where the issue was seen.
4978         * doc/posix-functions/unlinkat.texi: Mention this issue.
4979         Fixes a test failure in test-unlinkat.c.
4981 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
4983         qacl: split into qcopy-acl and qset-acl
4984         Emacs needs the former, but not the latter.
4985         * modules/acl-permissions: New file, containing most of the old qacl.
4986         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
4987         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
4988         * modules/qcopy-acl, modules/qset-acl: New files.
4989         * MODULES.html.sh (File system functions):
4990         Mention the new modules, and mention qacl while we're at it.
4992 2015-05-27  Glenn Morris  <rgm@gnu.org>
4994         gitlog-to-changelog: new option --ignore-line
4995         (This patch is imported from the GNU Emacs master.)
4996         This option ignores individual commit lines matching a pattern.
4997         * build-aux/gitlog-to-changelog: Add --ignore-line option.
4999 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
5001         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
5002         Implement get_permissions and set_permissions primitives for getting all
5003         the permissions of a file, storing them, and later setting them. (In the
5004         minimal case, the permissions consist only of a file mode.) Reimplement
5005         qset_acl and qcopy_acl based on these new primitives: this avoids code
5006         duplication and makes error handling more consistent.
5007         The Solaris and Cygwin code still uses duplicate code paths for setting
5008         a file mode while making sure that no acls exist and setting an explicit
5009         acl; this is no worse than before, but could be cleaned up.  The AIX
5010         code still doesn't read ACLs, it only makes sure that acls don't get in
5011         the way when setting a file mode.
5012         * lib/acl-internal.h (struct permission_context): New data structure.
5013         (get_permissions, set_permissions, free_permission_context): Declare.
5014         * lib/acl-internal.c (free_permission_context): New helper function.
5015         * lib/get-permissions.c (get_permissions): New helper function split off
5016         from qcopy_acl.
5017         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
5018         AIX, set a file's permissions based only on a file mode.
5019         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
5020         other platforms construct a temporary acl from the file mode and set
5021         that acl in the same way as setting an acl read from the source file.
5022         This should help avoid code duplication and inconsistent / buggy
5023         behavior.
5024         (set_acls): New helper function Split off from qcopy_acl.
5025         (chmod_or_fchmod): Moved here from qset-acl.c.
5026         (set_permissions): New helper function.
5027         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
5028         set_permissions.
5029         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
5030         * modules/qacl: Add get-permissions.c and set-permissions.c.
5032         file-has-acl: Split feature tests again (Bug#20667)
5033         * lib/file-has-acl.c: Instead of testing for
5034         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
5035         define them when needed.
5036         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
5037         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
5039 2015-05-27  Pádraig Brady  <P@draigBrady.com>
5041         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
5042         This avoids a conflict with "FORTIFY_SOURCE" variants
5043         of the string functions when they're replaced on NetBSD-6.0.1
5044         and Darwin-14.3.0 at least.
5045         * lib/string.in.h: Avoid including our "lib/string.h" while
5046         including the system <string.h>.
5048 2015-05-26  Eric Blake  <eblake@redhat.com>
5050         stdio: limit __gnu_printf__ witness to gcc 4.4+
5051         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
5052         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
5054         error: use correct printf attributes on mingw
5055         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
5057         inttypes: force correct mingw PRIdMAX even without <stdio.h>
5058         * modules/inttypes (Depends-on): Require extensions, so that mingw
5059         always uses GNU style inttypes.
5060         * lib/inttypes.in.h: On mingw, include <stdio.h>.
5062         stdio: fix probe on mingw under gcc 5.1
5063         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
5064         around new gcc preprocessor rules.
5066 2015-05-07  Glenn Morris  <rgm@gnu.org>
5068         gitlog-to-changelog: parse "Tiny-change"
5069         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
5070         "Copyright-paperwork-exempt".  (Bug#20324)
5072 2015-05-06  Pádraig Brady  <P@draigBrady.com>
5074         doc: document glibc posix_fallocate() issues
5075         * doc/posix-functions/posix_fallocate.texi: Mention the
5076         glibc efficiency problems and issues with NFS.
5078 2015-05-05  Karl Berry  <karl@freefriends.org>
5080         * build-aux/gendocs.sh (usage): document new css default
5081         for HTML (--htmlarg).
5083 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
5085         extern-inline: no need for workaround in GCC 5.1
5086         * doc/extern-inline.texi (extern inline):
5087         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
5088         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
5089         around these bugs in GCC 5.1 and later.  Maybe in a decade or
5090         two we can remove these workarounds.
5092 2015-04-28  Pádraig Brady  <P@draigBrady.com>
5094         eealloc, pagealign_alloc, xalloc: avoid clang warnings
5095         Avoid [-Wunknown-attributes] warnings like:
5096         warning: unknown attribute '__alloc_size__' ignored
5097         * lib/xalloc.h: Don't use the __alloc_size__  attribute
5098         with clang, as support has been fully removed as of clang 3.5:
5099         https://github.com/llvm-mirror/clang/commit/c047507a
5100         * lib/eealloc.h: Likewise.
5101         * lib/pagealign_alloc.h: Likewise.
5103 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
5105         tests: pacify GCC 5.1's stricter printf checking
5106         * tests/test-dirname.c (main):
5107         * tests/test-getaddrinfo.c (simple):
5108         * tests/test-getlogin.c (main):
5109         * tests/test-getndelim2.c (main):
5110         * tests/test-inttostr.c (CK):
5111         * tests/test-md5.c (main):
5112         * tests/test-read-file.c (main):
5113         * tests/test-sha1.c (main):
5114         Fix mismatches between printf format and value signedness.
5115         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
5116         Remove, as CAST_VAL always returned a value of type uintmax_t.
5118         fts: port to GCC 5.1 with --enable-gcc-warnings
5119         Without this fix, GCC 5.1 (correctly) warns about a subscript
5120         error on the fts_name component of FTSENT.  It's actually a
5121         flexible member, so define it that way on C99 or later hosts.
5122         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
5123         structure that now has a flexible array member.
5124         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
5125         (FTSENT): fts_name is now flexible on C99-or-later platforms.
5126         * modules/fts (Depends-on): Add flexmember.
5128 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
5130         file-has-acl: port to CentOS 6
5131         Problem reported by Tom G. Christensen in:
5132         http://lists.gnu.org/archive/html/bug-gnulib/2015-04/msg00074.html
5133         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
5134         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
5135         HAVE_GETXATTR.
5136         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
5137         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
5138         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what what
5139         file-has-acl.c actually needs.
5141 2015-04-26  Pádraig Brady  <P@draigBrady.com>
5143         file-has-acl: always return false when ACLs aren't supported
5144         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
5145         change the GNU/Linux getxattr path, to transform "not supported"
5146         errors to a false return rather than an error.  This is handled
5147         within file_has_acl() due to the platform specific tests to
5148         determine if ACLs are not supported.
5150 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
5152         gettext: propagate po/Makefile.in.in too
5153         * build-aux/po/Makefile.in.in: Copy from latest gettext.
5154         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
5155         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
5156         between Makefile.in.in and the gettext-runtime m4 files.
5158 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
5160         file-has-acl: new module, split from acl
5161         And add a new module file-has-acl-tests to match.
5162         I ran into a problem with the recent changes to the acl module,
5163         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
5164         When using the fixed version with Emacs, I discovered that
5165         file-has-acl wasn't separated out well enough for Emacs (e.g., it
5166         had multiple libraries, but needed only one), so I fixed that too.
5167         * NEWS: Document this incompatible change.
5168         * modules/file-has-acl, modules/file-has-acl-tests: New files.
5169         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
5170         Initialize gl_need_lib_has_acl.
5171         (gl_FUNC_ACL): Require it.
5172         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
5173         Move the file-has-acl.c-relevant stuff to ...
5174         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
5175         use_xattrs = 0' typo, and omit some needless work.  Set
5176         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
5177         when gl_FUNC_ACL is called.
5178         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
5179         (Link): Remove $(LIB_HAS_ACL).
5180         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
5181         (check_PROGRAMS): Move stuff relevant to file-has-acl to
5182         modules/file-has-acl-tests.
5183         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
5185         manywarnings: add GCC 5.1 warnings
5186         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
5187         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
5188         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
5189         -Wsuggest-override, -Wuse-without-only.  Change
5190         -Wnormalized=... operands to match 5.1.
5191         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
5192         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
5193         -Wdiscarded-qualifiers, -Wformat-signedness,
5194         -Wincompatible-pointer-types, -Wint-conversion,
5195         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
5196         -Wshift-count-negative, -Wshift-count-overflow,
5197         -Wsizeof-array-argument, -Wsuggest-final-methods,
5198         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
5199         and add -Warray-bounds=2 as a special case.
5201 2015-04-21  Simon Josefsson  <simon@josefsson.org>
5203         doc: update FDL template to match FDL examples.
5204         * doc/alloca-opt.texi:
5205         * doc/alloca.texi:
5206         * doc/c-ctype.texi:
5207         * doc/c-strcase.texi:
5208         * doc/c-strcaseeq.texi:
5209         * doc/c-strcasestr.texi:
5210         * doc/c-strstr.texi:
5211         * doc/c-strtod.texi:
5212         * doc/c-strtold.texi:
5213         * doc/ctime.texi:
5214         * doc/error.texi:
5215         * doc/gcd.texi:
5216         * doc/gnulib-tool.texi:
5217         * doc/inet_ntoa.texi:
5218         * doc/intprops.texi:
5219         * doc/lib-symbol-visibility.texi:
5220         * doc/maintain.texi:
5221         * doc/parse-datetime.texi:
5222         * doc/quote.texi:
5223         * doc/regexprops-generic.texi:
5224         * doc/standards.texi: Remove spurious 'with' in FDL license
5225         template.
5227 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
5229         lstat: fix cross-compilation 'ln -s' problem
5230         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
5231         Have the test program call 'symlink' rather than a separate
5232         script run 'ln -s'; this is more likely to work in
5233         cross-compilation environments.  Reported by Pavel Fedin in:
5234         http://lists.gnu.org/archive/html/bug-gnulib/2015-04/msg00060.html
5236 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
5238         gendocs.sh: default to a common CSS style sheet for HTML output
5239         * build-aux/gendocs.sh (htmlarg): Change default value.
5241 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
5243         gnulib-tool: output bold attribute more portably
5244         * gnulib-tool (func_show_module_list): Change hexadecimal
5245         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
5246         encoded numbers as arguments to `printf' is not portable,
5247         and is not claimed by POSIX.  This is the case with FreeBSD.
5249 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
5251         qacl: Simplify HP-UX acl_nontrivial check
5252         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
5253         acl_nontrivial. Check if the acl has at most three entries instead (it must
5254         have exactly three entries according to the HP-UX documentation). Ignore
5255         uids and gids as long as an entry is either for a user (i.e., the owner),
5256         a group (i.e., the owning group), or others.
5257         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
5258         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
5260 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
5262         acl: On Linux, check for acls without libacl
5263         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
5264         library function to check for the presence of acls, avoiding a library.
5265         * lib/file-has-acl.c: Include xattr headers if we have them.
5266         (file_has_acl): On Linux, use getxattr().
5267         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
5268         file_has_acl(). Check for xattr headers and getxattr().
5270 2015-04-14  Ángel González  <keisial@gmail.com>
5272         tempname: avoid unused parameter warnings (trivial)
5273         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
5274         (try_nocreate): Likewise.
5276 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
5278         fseeko: fix build failure on NetBSD >= 6 (trivial)
5279         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
5280         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
5282 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
5284         gitlog-to-changelog: port to MS-Windows
5285         * build-aux/gitlog-to-changelog (git_dir_option):
5286         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
5287         MS-Windows Perl.  Reported by Eli Zaretskii in:
5288         http://lists.gnu.org/archive/html/emacs-devel/2015-04/msg00504.html
5290 2015-04-07  Karl Berry  <karl@gnu.org>
5292         gendocs: new option --tex for passing args to texi2dvi.
5293         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
5294         (TEXI2DVI): cut to just command name.
5295         (usage): mention new option, and update copyright.
5296         <generate_tex>: use it.
5298 2015-04-07  Karl Berry  <karl@gnu.org>
5300         * config/srclistvars.sh (GETTEXT): new definition.
5301         * config/srclist.txt: use it for gettext .m4 files.
5302         Thread starting at http://lists.gnu.org/archive/html/bug-gnulib/201
5303         and confirmed at http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00146.html
5304         and continuing into April.
5306 2015-04-07  Daiki Ueno  <ueno@gnu.org>
5308         uniname/uniname-tests: fix failure due to alias
5309         Reported by Jack Howarth in:
5310         <https://lists.gnu.org/archive/html/bug-libunistring/2015-04/msg00000.html>.
5311         * tests/uniname/test-uninames.c (name_has_alias): New function.
5312         (test_inverse_lookup): Exclude character name with valid alias,
5313         from randomly generated character names.
5314         (main): Fill unicode_aliases before calling test functions.
5316 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
5318         hash: remove deprecated hash_insert0 function
5319         * lib/hash.h (hash_insert0): Remove deprecated function.
5320         * lib/hash.c (hash_insert0): Likewise.
5322 2015-04-02  Pádraig Brady  <P@draigBrady.com>
5324         mountlist: remove dependency on libmount
5325         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
5326         directly, rather than depending on libmount, which has many
5327         dependencies due to its dependence on libselinux, as detailed at:
5328         http://lists.gnu.org/archive/html/bug-gnulib/2015-01/msg00063.html
5329         Note we restrict this to __linux__ as that's probably where this
5330         interface will remain.  If ever porting, it would be best
5331         to first pull the makedev() wrapper from coreutils to a gnulib module.
5332         Note also we don't add a getline dependency to the mountlist module,
5333         as all Linux versions are sufficient.
5335 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
5337         stddef: port to pre-C11 GCC on x86
5338         On this platform, max_align_t should have an alignment of 8 even
5339         though the storage alignments of double, long, etc. max out at 4.
5340         Inspired by a comment of Andreas Schwab's here:
5341         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
5342         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
5343         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
5344         * tests/test-stddef.c: Test __alignof__ too, if available.
5346 2015-03-24  Pádraig Brady  <P@draigBrady.com>
5348         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
5349         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
5351 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
5353         yesno: make EOL optional in ENABLE_NLS case also (trival)
5354         * lib/yesno.c (yesno): Check for EOL before replacing.
5355         * tests/test-yesno.sh: Add a test case (test along with gettext).
5357 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
5359         fdopendir-tests: test it does not close its arg
5360         * tests/test-fdopendir.c (main): Test that fdopendir does not
5361         close its argument.  From a suggestion by David Grayson in:
5362         http://lists.gnu.org/archive/html/bug-gnulib/2015-03/msg00039.html
5364 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
5366         gitlog-to-changelog: trim trailing white space
5367         * build-aux/gitlog-to-changelog (main):
5368         Trim trailing white space from commit message lines.
5369         This is helpful for processing the GNU Emacs repository,
5370         which dates back to 1985 and contains a lot of such lines.
5372         gitlog-to-changelog: new option --ignore-matching
5373         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
5374         Support new option --ignore-matching=PAT, which ignores all
5375         commit messages whose first line matches PAT.
5377 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
5379         fdopendir: port better to MinGW
5380         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
5381         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
5382         http://lists.gnu.org/archive/html/bug-gnulib/2015-03/msg00033.html
5383         * modules/fdopendir (Depends-on): Add dirfd.
5385 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
5387         fdopendir: fix typo in comment
5388         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
5390 2015-03-09  Eric Blake  <eblake@redhat.com>
5392         error: document all entry points provided
5393         * doc/glibc-functions/error_print_progname.texi
5394         (error_print_progname): Mention the error module.
5395         * doc/glibc-functions/error_at_line.texi (error_at_line):
5396         Likewise.
5397         * doc/glibc-functions/error_message_count.texi
5398         (error_message_count): Likewise.
5399         * doc/glibc-functions/error_one_per_line.texi
5400         (error_one_per_line): Likewise.
5402 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
5404         vasnprintf: pacify clang 3.5.0
5405         Problem reported by Werner Lemberg in:
5406         http://lists.gnu.org/archive/html/bug-gnulib/2015-03/msg00000.html
5407         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
5408         The casts aren't needed, since the characters in question are ASCII.
5410 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
5412         glob, etc.: port to MSVC v18 on MS-Windows 8.1
5413         * lib/dirent--.h (GNULIB_defined_opendir):
5414         * lib/dirent.in.h (GNULIB_defined_opendir)
5415         (GNULIB_defined_closedir):
5416         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
5417         #undef only if Gnulib defined it.
5419         poll: port to MSVC v18 on MS-Windows 8.1
5420         Problem reported by Gisle Vanem in:
5421         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00139.html
5422         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
5423         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
5424         Add sys_socket.
5426 2015-02-24  Pádraig Brady  <P@draigBrady.com>
5428         tests: support stderr verification with returns_()
5429         * tests/init.sh (returns_): Disable tracing for this wrapper
5430         function, so that stderr of the wrapped command is unchanged,
5431         allowing for verification of the contents.
5433 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
5435         passfd: avoid valgrind uninitalised data warning
5436         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
5437         to include just the fd we've initialized, rather than including
5438         the extra space used for alignment.
5440 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
5442         uniwbrk/u32-wordbreaks-tests: fix copyright
5443         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
5445         dup2: doc and test for Android bug
5446         Reported by Kevin Cernekee in:
5447         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00125.html
5448         * doc/posix-functions/dup2.texi (dup2): Document the bug.
5449         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
5451 2015-02-23  Kevin Cernekee  <cernekee@google.com>
5453         Replace dup2() on Android
5454         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
5455         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
5456         fails.  Using rpl_dup2() fixes this because it has an explicit test
5457         for this condition.
5459 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
5461         Android doesn't define RLIM_SAVED_*
5462         Portability problem reported by Kevin Cernekee in:
5463         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00122.html
5464         * doc/posix-headers/sys_resource.texi (sys/resource.h):
5465         Mention the portability problem.
5466         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
5467         Define if not defined.
5468         * m4/dup2.m4 (gl_FUNC_DUP2):
5469         * m4/fcntl.m4 (gl_FUNC_FCNTL):
5470         Likewise.
5472 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
5474         vasnprintf-posix-tests: use consistent test
5475         * tests/test-vasnprintf-posix.c (test_function):
5476         Use "<" in assert instead of "<=", for consistency with other tests.
5478 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
5480         printf, isinf, etc.: noncanonical != NaN
5481         Do not require that isinf, printf, etc. treat noncanonical
5482         values as NaNs.  Instead, require only that they do not crash.
5483         Problem reported by Joseph Myers in:
5484         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
5485         * doc/posix-functions/dprintf.texi (dprintf):
5486         * doc/posix-functions/fprintf.texi (fprintf):
5487         * doc/posix-functions/isfinite.texi (isfinite):
5488         * doc/posix-functions/isinf.texi (isinf):
5489         * doc/posix-functions/isnan.texi (isnan):
5490         * doc/posix-functions/printf.texi (printf):
5491         * doc/posix-functions/snprintf.texi (snprintf):
5492         * doc/posix-functions/sprintf.texi (sprintf):
5493         * doc/posix-functions/vdprintf.texi (vdprintf):
5494         * doc/posix-functions/vfprintf.texi (vfprintf):
5495         * doc/posix-functions/vprintf.texi (vprintf):
5496         * doc/posix-functions/vsnprintf.texi (vsnprintf):
5497         * doc/posix-functions/vsprintf.texi (vsprintf):
5498         Document this.
5499         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
5500         * m4/isinf.m4 (gl_ISINFL_WORKS):
5501         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
5502         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
5503         * tests/test-isfinite.c (test_isfinitel):
5504         * tests/test-isinf.c (test_isinfl):
5505         * tests/test-isnan.c (test_long_double):
5506         * tests/test-isnanl.h (main):
5507         * tests/test-snprintf-posix.h (test_function):
5508         * tests/test-sprintf-posix.h (test_function):
5509         * tests/test-vasnprintf-posix.c (test_function):
5510         * tests/test-vasprintf-posix.c (test_function):
5511 o       Test only that noncanonical values do not cause crashes, not that
5512         they are treated as NaNs.  In some cases this means a larger
5513         output buffer is needed.
5515 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
5517         fts: remove redundant close() (trivial)
5518         * lib/fts.c (fts_read): Remove redundant call to close().
5519         Spotted by coverity.
5521 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
5523         getdtablesize: port better for Android
5524         Problem reported by Kevin Cernekee in:
5525         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00112.html
5526         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
5527         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
5528         Instead, just use getrlimit, taking care to avoid Cygwin bug.
5530         poll: fixes for large fds
5531         * lib/poll.c (poll): Don't check directly for NFD too large.
5532         Don't rely on undefined behavior in FD_SET when an arg exceeds
5533         FD_SETSIZE.  Always set revents afterwards, even if to zero.
5534         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
5535         as that makes the test a bit stricter.
5537 2015-02-19  Kevin Cernekee  <cernekee@google.com>
5539         fcntl: Fix cross compiling
5540         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
5541         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
5543 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
5545         dup2, fcntl: cross-compile better for Android
5546         Problem reported by Kevin Cernekee in:
5547         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00109.html
5548         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
5549         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
5550         there's little need to cross-compile for older kernels nowadays.
5551         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
5552         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
5554 2015-02-18  Pádraig Brady  <P@draigBrady.com>
5556         getopt: don't crash on memory exhaustion
5557         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
5558         memory exhaustion.  In the _LIBC case we use alloca() as is
5559         already done in glibc, so we don't need to consider the separate
5560         error path in that awkward case.  Also fix a memory leak when
5561         ambiguous options are present.
5562         Reported by Tobias Stoeckmann
5564 2015-02-17  Mike Miller  <mtmiller@ieee.org>
5566         tempname: allow compilation with C++ (trivial)
5567         * lib/tempname.h [C++]: Specify extern "C" linkage.
5568         * lib/tempname.h (try_tempname):
5569         * lib/tempname.c (__try_tempname, __gen_tempname):
5570         Rename 'try' to 'tryfunc'.
5572 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
5574         dup2, fcntl: port to AIX
5575         * m4/dup2.m4 (gl_FUNC_DUP2):
5576         * m4/fcntl.m4 (gl_FUNC_FCNTL):
5577         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
5578         The former works on AIX 7.1 but the latter does not.
5579         Also, this may work better with Android; see:
5580         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00100.html
5582 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
5584         getdtablesize, dup2, fcntl: port to Android
5585         Problem reported by Kevin Cernekee in:
5586         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00092.html
5587         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
5588         Mention that getdtablesize doesn't work on Android.
5589         * lib/getdtablesize.c: Use getrlimit substitute only if
5590         getdtablesize is declared.  This should suffice for Cygwin
5591         while not breaking Android.
5592         * m4/dup2.m4 (gl_FUNC_DUP2):
5593         * m4/fcntl.m4 (gl_FUNC_FCNTL):
5594         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
5595         standardized but the latter is not, and sysconf works on Android.
5596         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
5597         Also check that getdtablesize is declared.
5598         This removes the need for a special case for Android.
5600 2015-02-16  Kevin Cernekee  <cernekee@google.com>
5602         localename: Implement gl_locale_name_thread_unsafe for Android
5603         * lib/localename.c: Android API level >= 21 supports two hardcoded
5604         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
5605         the internal __locale_t struct.
5607 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
5609         fts: avoid crash when a cycle is added while traversing
5610         This could be triggered by auto-mounting a recursive bind mount.
5611         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
5612         * lib/fts.c (fts_read): Avoid removing the original hash table item
5613         when leaving a directory that caused a cycle, and preserve the FTS_DC
5614         flag.
5616 2015-02-16  Daiki Ueno  <ueno@gnu.org>
5618         uniname/uniname: support character alias
5619         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
5620         Generate one-way mapping from aliases to codepoints in the
5621         generated tables.  Special case variation selectors to reduce
5622         table size.
5623         * lib/uniname/uniname.c (unicode_character_name): Special case
5624         variation selectors.
5625         (unicode_name_character): Special case variation selectors and
5626         their aliases.
5627         * lib/uniname/uninames.h: Regenerate.
5628         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
5629         * modules/uniname/uniname-tests (Files): Add
5630         tests/uniname/NameAliases.txt.
5631         * tests/uniname/test-uninames.c: Mark as static.
5632         (ALIASLEN): Define.
5633         (struct unicode_alias): New struct.
5634         (unicode_aliases): New variable.
5635         (fill_aliases): New function.
5636         (test_alias_lookup): New test function.
5637         (main): Run the 'test_alias_lookup' test if the second argument is
5638         given.
5639         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
5640         second argument.
5642 2015-02-11  Kevin Cernekee  <cernekee@google.com>
5644         Fix FILE struct compatibility with Android API level >= 21
5645         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
5646         __sferror.  Recent versions of Bionic's stdio.h no longer define
5647         __sferror.
5648         * lib/fbufmode.c: Likewise.
5649         * lib/fflush.c: Likewise.
5650         * lib/fpurge.c: Likewise.
5651         * lib/freadable.c: Likewise.
5652         * lib/freadahead.c: Likewise.
5653         * lib/freading.c: Likewise.
5654         * lib/freadptr.c: Likewise.
5655         * lib/freadseek.c: Likewise.
5656         * lib/fseeko.c: Likewise.
5657         * lib/fseterr.c: Likewise.
5658         * lib/fwritable.c: Likewise.
5660         Assume unbroken ungetc() on Android
5661         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
5662         test case passed when running on an Android host, and the code
5663         hasn't really changed since 2009.
5665         getdtablesize: Fix Android build
5666         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
5667         versions have this symbol in the .so library (at least 32-bit
5668         platforms) but are missing the declaration in the header file,
5669         causing the m4 logic to guess incorrectly.
5671         localename: Fix Android build
5672         * modules/localename (Depends-on): Add langinfo.
5674         getugroups: Fix Android build
5675         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
5676         functions.
5678         euidaccess: Fix Android build
5679         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
5680         AT_EACCESS gets declared.
5682         linkat_nofollow: Add fallback case for cross compiling
5683         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
5685         net_if: Handle content-free <net/if.h> system headers
5686         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
5687         struct if_nameindex.  If not, enable the replacement header.
5689         signal_h: Fix Android build
5690         * lib/signal.in.h: Add Android to the list of platforms that declare
5691         pthread_sigmask() in <pthread.h> instead of <signal.h>.
5693         duplocale: Fix Android build of duplocale-tests
5694         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
5695         is included by test-duplocale.c (but not by duplocale.c).
5696         * modules/duplocale-tests (configure.ac): Check for monetary.h.
5697         * tests/test-duplocale.c: Skip test if monetary.h is absent.
5698         * doc/posix-headers/monetary.texi: Add Android to the list of
5699         platforms missing monetary.h.
5701 2015-02-11  Pádraig Brady  <P@draigBrady.com>
5703         tests: avoid recent -Werror=unused-variable regression in test-locale
5704         * tests/test-locale.c (main): Reference the variable to avoid the
5705         "unused variable" warning.
5707 2015-02-11  Pádraig Brady  <P@draigBrady.com>
5709         maint: various whitespace cleanups in tempname
5710         * lib/tempname.c: Normalize spacing and line length.
5711         * lib/tempname.h: Likewise.
5712         * modules/tempname: Likewise.
5714 2015-02-11  Pádraig Brady  <P@draigBrady.com>
5716         tests: provide returns_() to simplify exit status checking
5717         * tests/init.sh (returns_): A new function for use in tests,
5718         to allow for easier checking of return values, where you expect
5719         a command to exit with failure status.  By checking for a particular
5720         exit code, you don't hide any crashes for example.
5722 2015-02-11  Pádraig Brady  <P@draigBrady.com>
5724         mountlist: only use libmount when specified
5725         There are currently many shared libs dependencies introduced by
5726         libmount with associated runtime and virt mem overhead.
5727         Therefore don't enable by default.
5728         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
5730 2015-02-08  Daiki Ueno  <ueno@gnu.org>
5732         uniname/unimame-tests: don't link with -lunistring
5733         * modules/uniname/uniname-tests (Makefile.am): Don't link against
5734         $(LIBUNISTRING).  Document the rationale why we need to
5735         conditionalize the test.
5737 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
5739         fstrcmp: don't assume strlen < INT_MAX
5740         * lib/fstrcmp.c: Include stddef.h and stdint.h.
5741         (uintptr_t): Remove, as we're now assuming stdint.
5742         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
5743         Prefer ptrdiff_t to int when the value could exceed INT_MAX
5744         if the input string is long.
5745         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
5746         uintptr_t to size_t when the underlying value is a pointer casted
5747         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
5748         * modules/fstrcmp (Depends-on): Add stdint.
5750         diffseq: prefer ptrdiff_t to ssize_t
5751         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
5752         ptrdiff_t is the natural type for signed indexes.
5753         On a few older platforms, ssize_t is narrower than size_t.
5755         xalloc: fix typo that suppressed warnings
5756         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
5757         This typo, introduced a couple of years ago, mistakenly suppressed
5758         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
5759         -Wmissing-declarations warnings.
5761         full-read: fix license notice typo
5762         * lib/full-read.h: Remove a stray line in the license notice.
5763         Reported by Sam Ellis in: http://bugs.gnu.org/19808
5765         crypto/gc: fix a -Wswitch warning
5766         Reported by Bruce Korb in:
5767         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00046.html
5768         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
5770 2015-02-03  Pádraig Brady  <P@draigBrady.com>
5772         gnulib-tool: fix handling of patch(1) diagnostics
5773         * gnulib-tool: Send diagnostics from patch(1) to stderr,
5774         as otherwise gnulib-tool will reparse that output and attempt
5775         to lookup modules.
5777 2015-02-03  Pádraig Brady  <P@draigBrady.com>
5779         bootstrap: exit immediately upon gnulib-tool failure
5780         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
5781         This was noticed when gnulib-tool exited early due to failure
5782         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
5783         but various confusing errors were then given as the build proceeded.
5785 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
5787         symlinkat: include all required header files
5788         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
5789         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
5790         Reported at https://savannah.gnu.org/bugs/index.php?44151
5791         and by Jack Howarth.
5793 2015-01-29  Pádraig Brady  <P@draigBrady.com>
5795         localename: support Solaris 12 and illumos
5796         * lib/localename.c (gl_locale_name_thread_unsafe): call
5797         getlocalename_l() on newer __sun platforms.
5798         Reported by Alexander Pyhalov.
5799         Fix suggested by Rich Burridge.
5801 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
5803         locale: fix tests on illumos (trivial)
5804         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
5805         so move from global scope to main().
5807 2015-01-24  Daiki Ueno  <ueno@gnu.org>
5809         unictype: avoid undefined left-shift behavior
5810         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
5811         gcc's -fsanitize=shift and running its tests triggered:
5812           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
5813             places cannot be represented in type 'int'
5814         Cast LHS to 'unsigned int' after integer promotion.
5815         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
5816         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
5818 2015-01-20  Daiki Ueno  <ueno@gnu.org>
5820         libunistring: bump version of unitypes dependants
5821         Due to the header file search order, all the headers which depend
5822         on unitypes.h need to be generated, when the preinstalled
5823         libunistring is older.
5824         * modules/unicase/base (configure.ac): Bump minimum version to
5825         0.9.4.
5826         * modules/uniconv/base (configure.ac): Likewise.
5827         * modules/unilbrk/base (configure.ac): Likewise.
5828         * modules/uninorm/base (configure.ac): Likewise.
5829         * modules/unistdio/base (configure.ac): Likewise.
5830         * modules/unistr/base (configure.ac): Likewise.
5831         * modules/uniwbrk/base (configure.ac): Likewise.
5832         * modules/uniwidth/base (configure.ac): Likewise.
5834 2015-01-20  Daiki Ueno  <ueno@gnu.org>
5836         unictype/category-none: fix link with libunistring
5837         Since _UC_CATEGORY_NONE is not a public symbol, it will be
5838         prefixed with "libstring_" when compiled as part of libunistring.
5839         To avoid undefined symbol at link time, increase the minimum
5840         version when the dependant modules are updated.
5841         * modules/unictype/category-none (configure.ac): Bump minimum
5842         version to 0.9.5.
5844 2015-01-20  Daiki Ueno  <ueno@gnu.org>
5846         unitypes: fix build with installed libunistring
5847         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
5848         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
5849         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
5851 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
5853         time: port to MinGW32 3.21
5854         Problem reported by Eli Zaretskii in:
5855         http://lists.gnu.org/archive/html/bug-gnulib/2015-01/msg00042.html
5856         * lib/time.in.h:
5857         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
5858         * modules/time (Depends-on):
5859         Fall back on unistd.h if the other include files don't define
5860         struct timespec.
5862         update-copyright: apply to self
5863         * build-aux/update-copyright: Fix copyright date.  How ironic!
5865 2015-01-15  Daiki Ueno  <ueno@gnu.org>
5867         libunistring: update to Unicode 7.0.0
5868         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
5869         Manichaean names.
5870         * lib/unictype/joininggroup_name.h: Likewise.
5871         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
5872         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
5873         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
5874         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
5875         (fill_arabicshaping, joining_group_as_c_identifier): Support those
5876         enum values.
5877         (is_property_alphabetic): Accept newly added characters to
5878         cuneiform numeric signs.
5879         (is_property_default_ignorable_code_point): Reject U+0605.
5880         (FIELDLEN): Increase from 120 to 160.
5881         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
5882         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
5883         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
5884         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
5885         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
5886         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
5887         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
5888         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
5889         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
5890         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
5891         U+1E8D0..U+1E8D6.
5892         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
5893         * tests/uniwidth/test-uc_width2.sh: Same updates as in
5894         lib/uniwidth/width.c.
5895         * all generated files under lib/uni* and tests/uni*: Regenerate.
5897 2015-01-14  Daiki Ueno  <ueno@gnu.org>
5899         libunistring: update to Unicode 6.3.0
5900         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
5901         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
5902         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
5903         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
5904         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
5905         Update WB5, WB9, WB10, WB13a, and WB13b.
5906         * tests/uniwbrk/test-uc-wordbreaks.c
5907         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
5908         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
5909         (UC_BIDI_PDI): New enumeration values.
5910         (bidi_category_byname): Support those enum values.
5911         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
5912         dedicated property assigned.
5913         (is_property_case_ignorable): Check 0x0027.
5914         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
5915         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
5916         (output_wbp): Support those enum values.
5917         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
5918         (UC_BIDI_PDI): New enumeration values.
5919         * lib/unictype/bidi_byname.gperf: Add those property names.
5920         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
5921         U+180E, U+1A1B, and U+2066..U+2069.
5922         * tests/uniwidth/test-uc_width2.sh: Same updates as in
5923         lib/uniwidth/width.c.
5924         * all generated files under lib/uni* and tests/uni*: Regenerate.
5926 2015-01-14  Daiki Ueno  <ueno@gnu.org>
5928         libunistring: update to Unicode 6.2.0
5929         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
5930         (unilbrk_table): Adjust table size.
5931         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
5932         for LBP_RI.
5933         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
5934         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
5935         Normalize table index skipping ignored properties.
5936         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
5937         WBP_EXTEND and WBP_FORMAT, which are now computed without using
5938         the table.
5939         * lib/uniwbrk/wbrktable.h: Adjust table size.
5940         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
5941         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
5942         Support rule GB8a.
5943         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
5944         * tests/unigbrk/test-uc-is-grapheme-break.c
5945         (graphemebreakproperty_to_string): Support GBP_RI.
5946         * tests/uniwbrk/test-uc-wordbreaks.c
5947         (wordbreakproperty_to_string): Support WBP_RI.
5948         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
5949         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
5950         (output_lbp): Support LBP_RI.  Adjust some characters changed from
5951         LBP_AL to LBP_ID.
5952         (output_lbp): Support LBP_RI.
5953         (WBP_RI): New enumeration value.
5954         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
5955         (output_wbp): Support WBP_RI.
5956         (GBP_RI): New enumeration value.
5957         (output_gbp_test, fill_org_gbp): Support GBP_RI.
5958         * all generated files under lib/uni* and tests/uni*: Regenerate.
5960 2015-01-14  Daiki Ueno  <ueno@gnu.org>
5962         libunistring: update to Unicode 6.1.0
5963         * lib/gen-uni-tables.c (output_joining_group): Switch to
5964         3-level table to accommodate joining groups defined with higher
5965         codepoint value.  Since there are only 88 groups defined in
5966         Unicode 7.0.0, use 7-bit packed format for level3 entries.
5967         (get_lbp): Update for Unicode 6.1.0.
5968         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
5969         3-level table.
5970         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
5971         joining group name.
5972         * lib/unictype/joininggroup_name.h: Likewise.
5973         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
5974         (unilbrk_table): Adjust table size.
5975         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
5976         for LBP_HL.
5977         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
5978         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
5979         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
5980         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
5981         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
5982         U+302E..U+302F.
5983         * tests/uniwidth/test-uc_width2.sh: Same updates as in
5984         lib/uniwidth/width.c.
5985         * all generated files under lib/uni* and tests/uni*: Regenerate.
5986         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
5988 2015-01-15  Daiki Ueno  <ueno@gnu.org>
5990         uniwbrk/u32-wordbreaks-tests: add conformance test
5991         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
5992         tests/uniwbrk/test-uc-wordbreaks.c,
5993         tests/uniwbrk/test-uc-wordbreaks.sh, and
5994         tests/uniwbrk/WordBreakTest.txt.
5995         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
5996         test-uc-wordbreaks to $(check_PROGRAMS), and define
5997         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
5998         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
5999         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
6001 2015-01-15  Daiki Ueno  <ueno@gnu.org>
6003         uniwbrk: ignore Extended/Format characters at BOL not BOS
6004         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
6005         characters if the previous character property is one of
6006         WBP_NEWLINE, WBP_CR, and WBP_LF.
6008 2015-01-11  Jim Meyering  <meyering@fb.com>
6010         test-strstr.c: avoid a trivial leak
6011         * tests/test-strstr.c (main): Free haystack.
6013         update-copyright: recognize groff's \(co marker
6014         * build-aux/update-copyright (circle_c_re): Also accept
6015         uses of \(co, as found in gzip.1.
6017 2015-01-08  Pádraig Brady  <P@draigBrady.com>
6019         maint.mk: fix compatibility with OS X nm
6020         * top/maint.mk (_gl_tight_scope): Use the -g option to
6021         show exported items rather than the -e option which is
6022         ignored on all platforms except OS X where it gives an error.
6023         Reported by Assaf Gordon.
6025 2015-01-07  KO Myung-Hun  <komh@chollian.net>
6027         localcharset: improve charset detection on OS/2
6028         Use system codepage when appropriate.  Map OS/2 codepages to
6029         GNU canonical charset names if possible.
6030         * lib/config.charset: Don't output aliases if "$os" is os2*.
6031         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
6032         result for OS/2.
6033         (locale_charset) [OS2]: Use system codepage if codeset is omitted
6034         from the locale name which is neither "C" nor "POSIX".
6036 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
6038         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
6039         This reverts the last patch but one, as it shouldn't be needed now
6040         that the typo is fixed.
6041         * lib/count-leading-zeros.h (count_leading_zeros_ll):
6042         * lib/count-trailing-zeros.h:
6043         * lib/count-one-bits.h:
6044         Go back to using 64-bit intrinsics.
6046         count-leading-zeros: fix pragma typos
6047         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
6048         Fix typos in declaration of intrinsics when _MSC_VER.
6050 2015-01-06  Pádraig Brady  <P@draigBrady.com>
6052         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
6053         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
6054         intrinsics in this case.
6055         * lib/count-trailing-zeros.h: Likewise.
6056         * lib/count-one-bits.h: Likewise.
6058 2015-01-06  Daiki Ueno  <ueno@gnu.org>
6060         uniname/uniname: update to Unicode 7.0.0
6061         To accommodate new characters added since Unicode 5.1.0, this
6062         changes the internal representation of codepoint ranges.
6063         Previously, we grouped codepoint ranges by manually assigned 4-bit
6064         tag, which only allowed 16 groups.  This removes the limitation by
6065         switching to binary search on a table.  For the detail rationale
6066         and the benchmark results, see:
6067         https://lists.gnu.org/archive/html/bug-libunistring/2014-06/msg00001.html
6068         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
6069         to INDEX, as it no longer represents a codepoint.
6070         (range): New struct.
6071         (main): Switch to intervals list from a bit-pattern based
6072         classification.
6073         * lib/uniname/uninames.h: Regenerate.
6074         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
6075         * modules/uniname/base (configure.ac): Bump minimum version to
6076         0.9.5.
6077         * modules/uniname/uniname (configure.ac): Bump minimum version to
6078         0.9.5.
6080 2015-01-05  Eric Blake  <eblake@redhat.com>
6082         doc: update INSTALL from autoconf
6083         * doc/install.texi: Resync from autoconf.
6084         * doc/INSTALL: Reflect recent autoconf update.
6085         * doc/INSTALL.ISO: Likewise.
6086         * doc/INSTALL.UTF-8: Likewise.
6088         stdio: fix use of PRIdMAX on modern mingw
6089         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
6090         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
6091         to work with modern mingw.
6093 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
6095         pthread: detect git mingw builds with only partial pollution
6096         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
6097         pollution, as seen temporarily in Fedora 21.
6099 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
6101         lib-symbol-versions: cache script check
6102         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
6103         Cache the check for linker version scripts.
6104         From a suggestion by Christophe Curis in:
6105         http://lists.gnu.org/archive/html/bug-gnulib/2015-01/msg00011.html
6107 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
6109         maint: fix grammar nits in propername (trivial change)
6110         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
6111         and use an adequate verb and tense.
6113 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
6115         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
6116         * module/gendocs: Add 'doc/gendocs_template_min'.
6118         * build-aux/gendocs.sh: Change email addresses and upstream URLs
6119         from to Gnulib's.
6120         (scripturl, templateurl): Adjust accordingly.
6122 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
6124         gendocs: copyright date and version fix
6125         Reported by Karl Berry in:
6126         http://lists.gnu.org/archive/html/bug-gnulib/2015-01/msg00002.html
6127         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
6128         Fix copyright date.
6129         * build-aux/gendocs.sh (scriptversion): Update.
6131 2015-01-01  Karl Berry  <karl@gnu.org>
6133         * doc/install.texi,
6134         * build-aux/mdate-sh,
6135         * build-aux/depcomp,
6136         * build-aux/config.guess,
6137         * build-aux/config.sub,
6138         * build-aux/ar-lib,
6139         * build-aux/compile: revert copyright updates (some from last
6140         year) in slaved files.
6142 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
6144         version-etc: new year
6145         * doc/gnulib.texi:
6146         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
6147         * all files: Run 'make update-copyright'.
6149 2014-12-30  Pádraig Brady  <P@draigBrady.com>
6151         xstrtol: ensure errno is reset
6152         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
6153         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
6155         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
6157 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
6159         utimens: fix dependency typo
6160         * modules/utimens (Depends-on): Remove 'assure'.
6161         This bug was introduced in the recent 'assure' patch.
6163 2014-12-22  Eric Blake  <eblake@redhat.com>
6165         docs: mention why libgen.h is bad
6166         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
6168 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
6170         assure: new module
6171         This works better than 'assert' when compiling with -DNDEBUG,
6172         as it avoids some compiler diagnostics in that case.
6173         Reported by Norihiro Tanaka in:
6174         http://lists.gnu.org/archive/html/bug-gnulib/2014-12/msg00215.html
6175         * MODULES.html.sh (func_all_modules): Add 'assure'.
6176         * lib/assure.h, modules/assure: New files.
6177         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
6178         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
6179         Prefer 'assure' to 'assert'.
6180         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
6181         * modules/chdir-long, modules/cycle-check, modules/fchdir:
6182         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
6183         Depend on 'assure'.
6185 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
6187         stdalign: port better to HP compilers
6188         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
6189         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
6191         stdalign: work around Apple GCC 4.0 bug
6192         Reported by David Fang in:
6193         http://lists.gnu.org/archive/html/bug-gnulib/2014-12/msg00194.html
6194         * lib/stdalign.in.h (_Alignas):
6195         * m4/stdalign.m4 (gl_STDALIGN_H):
6196         Do not use aligned attribute with GCC 4.0 on Apple.
6198 2014-12-16  Pádraig Brady  <P@draigBrady.com>
6200         getcwd: fix test failure on OS X 10.9
6201         * m4/getcwd-path-max.m4: Avoid the replacement if it
6202         won't be effective due to the PATH_MAX limitation of lstat().
6203         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
6204         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
6205         for this case for use in tests, and also exclude this
6206         case when setting REPLACE_GETCWD.
6207         * tests/test-getcwd.c (test_long_name): Restrict the
6208         tested path length so that lstat() will not be passed
6209         a path greater than PATH_MAX.
6210         Also key a test condition on HAVE_OPENAT_SUPPORT rather
6211         than AT_FDCWD, since the latter is set unconditionally
6212         since Sep 2009 in commit 52c658e9.
6214 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
6216         parse-datetime: avoid a compiler warning with byacc (trivial)
6217         * lib/parse-datetime.y (yylex): Use the same prototype in the
6218         function definition as the declaration, to avoid a -Wstrict-prototypes
6219         warning seen when using byacc.
6221 2014-12-12  Daiki Ueno  <ueno@gnu.org>
6223         unicase/locale-language-tests: fix LOCALE_FR test
6224         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
6225         a French locale with traditional encoding.
6226         Reported by umerqayam in:
6227         http://lists.gnu.org/archive/html/bug-libunistring/2014-12/msg00000.html
6229 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
6231         stddef: support C11's max_align_t
6232         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
6233         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
6234         Do not undef, as that might cause max_align_t to be defined twice.
6235         Instead, change use to check for _GL_STDDEF_WINT_T too.
6236         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
6237         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
6238         Check for max_align_t.
6239         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
6240         * modules/stddef-tests (Depends-on): Add stdalign.
6241         * tests/test-stddef.c: Test max_align_t.
6243 2014-12-11  Daiki Ueno  <ueno@gnu.org>
6245         unistd: fix iOS check conditional
6246         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
6247         as 0 or 1 in <TargetConditionals.h>, and the previous check always
6248         yielded true on non-iOS environment.
6249         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
6250         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
6251         they are defined.
6253 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
6255         posixtm: avoid compiler warning in a better way
6256         * lib/posixtm.c (IF_LINT): Remove.
6257         (year, posix_time_parse):
6258         Return true (not 0) if successful.  All callers changed.
6259         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
6261 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
6263         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
6264         started with '/' on EMX.
6266 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
6268         freopen: workaround freopen() on OS/2 kLIBC
6269         * lib/freopen.c (rpl_freopen): Workaround.
6270         * m4/freopen.m4: Add os2* case.
6272         get_shared_library_fullname: port to EMX
6273         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
6274         on EMX, respectively.
6275         (_DLL_InitTerm): New on EMX.
6276         (get_shared_library_fullname): Implement on EMX.
6278         find_executable: port to EMX
6279         * lib/progreloc.c (find_executable): Implement on EMX.
6281         sched: check struct sched_param in spawn.h as well
6282         * lib/sched.in.h: Include spawn.h on kLIBC.
6283         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
6285 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
6287         bootstrap: Allow perl modules in $buildreq
6288         * build-aux/bootstrap: Add case for perl modules.
6290 2014-12-08  Pádraig Brady  <P@draigBrady.com>
6292         apply _GL_ATTRIBUTE_PURE to some inline functions
6293         clang 3.4.2 flagged these inline functions as pure
6294         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
6295         * lib/sig-handler.h (get_handler): Likewise.
6296         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
6297         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
6299 2014-12-06  Pádraig Brady  <P@draigBrady.com>
6301         vasnprintf: fix potential use after free
6302         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
6303         flagged by clang-analyzer 3.4.2.
6305 2014-12-05  Pádraig Brady  <P@draigBrady.com>
6307         filevercmp, posixtm: avoid compiler warnings with -O3
6308         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
6309         * lib/posixtm.c: (IF_LINT): Define.
6310         (posix_time_parse): Use it to void a "may be used uninitialized"
6311         warning, seen only with -O3.
6313 2014-12-05  Bruno Haible  <bruno@clisp.org>
6315         Fix LDBL80_WORDS macro on big endian platforms.
6316         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
6317         LDBL80_WORDS macro.
6318         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
6319         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
6320         * tests/test-isfinite.c (test_isfinitel): Likewise.
6321         * tests/test-isinf.c (test_isinfl): Likewise.
6322         * tests/test-isnan.c (test_long_double): Likewise.
6323         * tests/test-isnanl.h (main): Likewise.
6324         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
6325         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
6326         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
6327         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
6328         Reported by Pádraig Brady.
6330 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
6332         git-version-gen: do not print new line characters
6333         * build-aux/git-version-gen: Use printf instead of echo and tr.
6335         gnulib-tool: recognize x:* as an absolute path
6336         * gnulib-tool (func_gnulib_dir): Add ?:* case.
6337         (func_relconcat): Likewise.
6339 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
6341         argp: avoid extraneous translation and mem leak with empty pre doc
6342         * lib/argp-help.c (argp_doc): Never translate the empty string,
6343         when "\v" is the first or last character of the string, as that
6344         has a reserved meaning to return the header info from a po file.
6345         This also fixes a small memory leak in the !post case.
6346         The issue can be seen with this command for example:
6347         LC_MESSAGES=en_US grub2-mknetdir --help
6349 2014-11-27  Daiki Ueno  <ueno@gnu.org>
6351         uniname/uniname-tests: skip if system's libunistring is used
6352         * modules/uniname/uniname-tests (Makefile.am): Skip test if
6353         uniname/uniname module is not compiled.
6355 2014-11-27  Pádraig Brady  <P@draigBrady.com>
6357         printf: fix configure check on big endian systems
6358         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
6360 2014-11-22  Daiki Ueno  <ueno@gnu.org>
6362         pipe-filter-gi, pipe-filter-ii: port to AIX
6363         On AIX 7.1, 'select' is defined as static and cannot be referred
6364         to from inline function.
6365         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
6366         the definition...
6367         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
6368         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
6370 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
6372         gitlog-to-changelog: add --until
6373         * build-aux/gitlog-to-changelog: Support new --until option.
6374         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
6376 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
6378         extern-inline: update commentary about GCC bugs
6379         * m4/extern-inline.m4: Add another GCC bug number to comments.
6381 2014-11-13  Daiki Ueno  <ueno@gnu.org>
6383         gen-uni-tables: untabify
6384         * lib/gen-uni-tables.c: Untabify.
6386 2014-11-13  Daiki Ueno  <ueno@gnu.org>
6388         gen-uni-tables: check out-of-range values added to 3-level tables
6389         * lib/gen-uni-tables.c (output_category, output_bidi_category)
6390         (output_joining_type, output_ident_category): Check out-of-range
6391         values added to 3-level tables.
6393 2014-11-13  Daiki Ueno  <ueno@gnu.org>
6395         gen-uni-tables: utilize 'assert'
6396         * lib/gen-uni-tables.c: Include <assert.h>.
6397         (output_category, output_combclass, output_decimal_digit_test)
6398         (output_decimal_digit, output_digit_test, output_digit)
6399         (output_numeric, get_mirror_value, fill_properties)
6400         (fill_property30, is_property_alphabetic)
6401         (is_property_default_ignorable_code_point)
6402         (is_property_uppercase, is_property_lowercase)
6403         (is_property_cased, is_property_case_ignorable)
6404         (is_property_changes_when_lowercased, is_property_iso_control)
6405         (is_property_math, fill_arabicshaping, output_joining_group)
6406         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
6407         (output_wbp, fill_org_gbp, get_decomposition)
6408         (output_decomposition, fill_composition_exclusions)
6409         (debug_output_composition_tables, output_composition_tables)
6410         (redistribute_casefolding_rules, output_casing_rules): Use
6411         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
6412         reporting.
6414 2014-11-13  Daiki Ueno  <ueno@gnu.org>
6416         gen-uni-tables: cosmetic improvements
6417         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
6418         variables specification.
6419         (is_outdigit): Remove unused function.
6421 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
6423         fcntl-h-tests: port to PA-RISC GNU/Linux
6424         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
6426 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
6428         fts: port to C89
6429         Problem reported for MSVC 16 by Gisle Vanem in:
6430         http://lists.gnu.org/archive/html/bug-gnulib/2014-11/msg00027.html
6431         * lib/fts.c (fts_build): Avoid declaration before statement.
6433 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
6435         unistd: port to iOS
6436         Problem reported by André Klitzing in:
6437         http://lists.gnu.org/archive/html/bug-gnulib/2014-11/msg00013.html
6438         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
6440 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
6442         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
6443         Problem reported by Alan Modra in:
6444         http://lists.gnu.org/archive/html/bug-gnulib/2014-11/msg00007.html
6445         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
6446         Always cast the function arg, reverting this part of the previous
6447         change.
6449 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
6451         obstack: avoid potentially-nonportable function casts
6452         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
6453         Remove, replacing with ...
6454         (call_chunkfun, call_freefun): New static functions.
6455         All uses changed.  Avoid potentially-nonportable casts.
6456         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
6457         (_obstack_begin_worker): Omit last two args, since they
6458         rely on potentially-nonportable casts.  All callers changed.
6459         * lib/obstack.h (_OBSTACK_CAST): New macro.
6460         Use it everywhere the old API used a potentially-nonportable cast.
6461         The new API doesn't cast.
6462         (struct obstack): Use unions rather than requiring
6463         potentially-nonportable casts.
6464         (obstack_chunkfun, obstack_freefun): Return void.
6466 2014-11-03  Alan Modra  <amodra@gmail.com>
6468         obstack: fix macro return values
6469         * lib/obstack.h (obstack_next_free): Return void *.
6470         (obstack_1grow_fast, obstack_blank_fast): Return void.
6471         For __GNUC__ macros:
6472         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
6473         For !__GNUC__ macros:
6474         (obstack_make_room, obstack_grow, obstack_grow0)
6475         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
6477 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
6479         obstack: do not assume system-supplied obstack is size_t safe
6480         * m4/obstack.m4: New file.
6481         * modules/obstack (Files): Add it.
6483         obstack: port to platforms that #define __alignof__
6484         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
6485         not if !_LIBC.  We don't know of any platforms that #define
6486         __alignof__, but it might be useful in tests.  Conversely,
6487         glibc assumes GCC.
6489 2014-11-03  Pádraig Brady  <P@draigBrady.com>
6491         linkat: don't unconditionally replace on GNU/Linux
6492         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
6493         was redundant for a few reasons.  It was present to support compiling
6494         on new systems but running on the old narrow window of Linux 2.6.1[67].
6495         It setup and cleaned up test files which weren't actually used.
6496         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
6497         implicit in the following check.
6499 2014-11-03  Pádraig Brady  <P@draigBrady.com>
6501         linkat: wrap to handle symlinks on OS X 10.10
6502         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
6503         but not usable because it doesn't support creating hardlinks
6504         to symlinks.  Therefore add a generic test for this capability
6505         and fallback to our emulation if linkat() fails with ENOTSUP.
6507 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
6509         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
6510         * doc/posix-functions/open.texi (open):
6511         * doc/posix-functions/openat.texi (openat):
6512         Document that these functions do not set errno to ELOOP when
6513         a symlink is opened with O_NOFOLLOW.
6515 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
6517         obstack: add NEWS entry for recent incompatible changes
6518         * NEWS: Describe recent changes.
6520 2014-10-30  Pádraig Brady  <P@draigBrady.com>
6522         mountlist: don't use libmount to decide on dummy/remote
6523         * lib/mountlist.c (read_file_system_list): Don't use the libmount
6524         routines to determine whether a file system is dummy or remote,
6525         as they're not currently compatible.  For example the remoteness
6526         is determined on file system type (for which the list seems incomplete),
6527         rather than simply checking for a ':' in the device name.
6528         Also libmount currently determines that 'tmpfs' is a dummy file system
6529         even though it has associated storage.
6531 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
6533         obstack: prefer __alignof__ to alignof
6534         This is for portability to pre-4.7 GCC when compiling glibc.
6535         See Joseph S. Myers in:
6536         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
6537         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
6538         New macro, defined by including and using <alignof.h>.
6539         (MAX): New macro.
6540         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
6541         Do not use enums as they are not portable to some broken compilers.
6542         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
6544         obstack: prefer alignof to calculating alignments by hand
6545         * lib/obstack.c: Include <stdalign.h>.
6546         (struct fooalign): Remove.
6547         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
6548         * modules/obstack (Depends-on): Add stdalign.
6550 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
6552         obstack: use size_t alignments and check for overflow
6553         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
6554         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
6555         * lib/obstack.h (struct obstack.alignment_mask):
6556         Use _OBSTACK_SIZE_T, not int, for alignments.
6557         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
6558         overflows, e.g., when adding the alignment.
6560 2014-10-29  Alan Modra  <amodra@gmail.com>
6562         obstack: 64-bit obstack support, part 3
6563         This finally enables full 64-bit obstack support.  The glibc
6564         shared library specific code is removed from obstack.c too, and
6565         the error handling code conditionally compiled under control of
6566         another macro, _OBSTACK_NO_ERROR_HANDLER.
6567         * lib/obstack.h: Include string.h earlier.
6568         (_OBSTACK_INTERFACE_VERSION): Define.
6569         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
6570         * lib/obstack.c: Don't include shlib-compat.h.
6571         (OBSTACK_INTERFACE_VERSION): Delete.
6572         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
6573         glibc code is compatible with version 2.  Don't include stdio.h for
6574         __GNU_LIBRARY.
6575         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
6576         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
6577         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
6578         glibc shared library specific source.
6580         obstack: 64-bit obstack support, part 2
6581         This gets us 4G obstack support, without changing ABI
6582         compatibility, apart from possibly introducing some
6583         signed/unsigned comparison warnings in code that uses obstack.h.
6584         a) Replace "int" size parameters, return values, and macro local vars
6585            with _OBSTACK_SIZE_T, an "unsigned int" for now.
6586         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
6587         c) Make all obstack macros checking available room use obstack_room.
6588            "next_free + desired > chunk_limit" may wrap the lhs for chunks
6589            allocated near the top of memory.
6590         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
6591         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
6592         in place of "int" size parameters, return values and local vars.
6593         (_CHUNK_SIZE_T): Define.
6594         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
6595         union use an _OBSTACK_SIZE_T integer type.
6596         For __GNUC__ versions of the following macros...
6597         (obstack_room): Rename local var.
6598         (obstack_make_room): Use obstack_room.
6599         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
6600         obstack_int_grow, obstack_blank): Likewise.
6601         (obstack_finish): Use unsigned comparison when comparing aligned
6602         next_free against chunk_limit.
6603         (obstack_free): Cast OBJ to remove possible const qualifier.
6604         For !__GNUC__ versions of the following macros...
6605         (obstack_make_room): Use obstack_room.
6606         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
6607         obstack_int_grow, obstack_blank): Likewise.
6608         (obstack_finish): Use unsigned comparision when comparing aligned
6609         next_free against chunk_limit.
6610         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
6611         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
6612         _OBSTACK_SIZE_T.
6613         (_obstack_begin, _obstack_begin_1): Likewise.
6614         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
6615         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
6617         obstack: 64-bit obstack support, part 1
6618         a) Correct calls to alloc function, to use a size_t arg.  "long" is
6619            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
6620            and "size_t" 64 bits.
6621         b) Consolidate _obstack_begin and _obstack_begin1 code.
6622         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
6623         use "size_t" rather than "long".
6624         (_obstack_begin, _obstack_begin1): Likewise.
6625         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
6626         obstack_chunkfun): Update alloc function casts.
6627         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
6628         (chunkfun_type, freefun_type): New typdefs.
6629         (_obstack_begin_worker): Split out from ..
6630         (_obstack_begin, _obstack_begin_1): ..here.
6632         obstack: tidy part 2
6633         a) Don't be concerned about "not polluting the namespace with stddef.h
6634            symbols" in obstack.h, since gnulib string.h includes stddef.h
6635            anyway, and it seems unlikely that anyone would care.
6636         b) Don't roll our own slow memcpy in _obstack_newchunk.
6637         c) Rename obstack_free to _obstack_free.  This makes the naming
6638            consistent with other obstack functions and obviates the need for
6639            __obstack_free.  Ancient obstack.c defined both obstack_free and
6640            _obstack_free.  We continue to do that for _LIBC via an alias.
6641         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
6642            is clever, but nowadays gcc warns on undefined macros.  You'll get
6643            an undefined macro warning if simulating an old gcc with -U__GNUC__
6644            -U__GNUC_MINOR__ -D__GNUC__=1.
6645         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
6646         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
6647         (__obstack_free): Delete, update refs.
6648         (_obstack_free): Rename from obstack_free.
6649         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
6650         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
6651         * lib/obstack.c: Don't include stddef.h.
6652         (COPYING_UNIT): Delete.
6653         (_obstack_begin): Formatting fix.
6654         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
6655         (_obstack_free): Rename from __obstack_free, update alias.  Move
6656         undef of obstack_free to where it is needed.
6658         obstack: tidy part 1
6659         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
6660            to me, and result in overlong lines after later patches.
6661         b) Move error handling code, to avoid a forward declaration and to
6662            simplify later patches in this series.
6663         * lib/obstack.h (struct obstack <temp>): Rename fields of union
6664         and update all uses.
6665         * lib/obstack.c: Include stdlib.h earlier.
6666         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
6667         in file.
6668         (print_and_abort): Remove now redundant forward declaration.
6670 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
6672         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
6673         Without this change, in bleeding-edge fileutils Autoconf complains
6674         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
6675         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
6676         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
6677         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
6679 2014-10-24  Daiki Ueno  <ueno@gnu.org>
6681         iconv: avoid false detection of non-working iconv
6682         The INBUF arguments of iconv can be either 'const char **'
6683         or 'char **'.  If CC is g++, the difference causes a compile error
6684         and thus leads to a false detection of non-working iconv.
6685         Reported by Eli Zaretskii and Werner LEMBERG in:
6686         <https://lists.gnu.org/archive/html/bug-gnulib/2014-10/msg00023.html>.
6687         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
6688         iconv.  Bump serial number.
6690 2014-10-23  Pádraig Brady  <P@draigBrady.com>
6692         bootstrap: print more diagnostics for missing programs
6693         * build-aux/bootstrap: only suppress stderr when checking for
6694         alternative program names.  This supports programs issuing non
6695         standard error messages.
6697 2014-10-23  Pádraig Brady  <P@draigBrady.com>
6699         bootstrap: only update the gnulib submodule
6700         * build-aux/bootstrap: Restrict the "submodule update" command
6701         to the gnulib path.
6703 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
6705         symlinkat: port to AIX 7.1
6706         * doc/posix-functions/symlinkat.texi (symlinkat):
6707         Mention AIX porting problem.
6708         * lib/symlinkat.c: Always include errno.h.
6709         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
6710         * lib/unistd.in.h (symlinkat): Add replacement machinery.
6711         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
6712         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
6713         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
6714         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
6715         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
6717         readlinkat: port to AIX 7.1
6718         * doc/posix-functions/readlink.texi (readlink):
6719         * doc/posix-functions/readlinkat.texi (readlinkat):
6720         Mention AIX porting problem.
6721         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
6722         New function.
6723         * lib/unistd.in.h (readlinkat): Add replacement machinery.
6724         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
6725         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
6726         * modules/readlinkat (configure.ac): Also compile replacement
6727         if REPLACE_READLINKAT.
6728         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
6730 2014-10-12  Karl Berry  <karl@gnu.org>
6732         * doc/posix-functions/dirname.texi: remove spurious {.
6734 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
6736         basename, dirname: Improve documentation.
6737         * doc/posix-functions/basename.texi: Mention dirname module and
6738         base_name() function.
6739         * doc/posix-functions/dirname.texi: Mention dir_name() and
6740         mdir_name() functions.
6741         Suggested by Werner LEMBERG <wl@gnu.org>.
6743 2014-09-24  Jim Meyering  <meyering@fb.com>
6745         exclude: declare exclude_patopts static
6746         * lib/exclude.c (exclude_patopts): Declare static,
6747         to avoid triggering a -Wmissing-prototypes warning.
6748         The alternative (declaring it in the .h file) would
6749         require publicizing the private "struct patopts".
6751 2014-09-21  Werner Lemberg  <wl@gnu.org>
6753         dirname: support compilation with C++
6754         * lib/dirname.h: Add necessary C linkage declarations.
6756 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
6758         qsort_r: include <config.h>
6759         Problem reported by Tom G. Christensen in:
6760         http://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00071.html
6761         * lib/qsort.c [!_LIBC]: Include <config.h> first.
6763 2014-09-16  Dylan Cali  <calid1984@gmail.com>
6765         avltree-list: avoid compiler warnings (trivial)
6766         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
6767         -Werror=suggest-attribute=pure.
6768         * lib/gl_array_list.c: Likewise.
6769         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
6770         declaration to avoid -Werror=missing-prototypes.  This is not added
6771         to a header as only exported for tests.  Add (void) to the
6772         check_invariants() call to indicate we're discarding the result
6773         in this context which avoids -Werror=unused-value.  Note we don't
6774         use ignore_value here to avoid a dependency as we know we'll not
6775         be adding __attribute__((warn_unused_result)) to check_invariants().
6776         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
6778 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
6780         qsort_r: new module, for GNU-style qsort_r
6781         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
6783 2014-09-15  Werner LEMBERG  <wl@gnu.org>
6785         strerror_r-posix: support compilation with C++
6786         * lib/strerror_r.c: Add necessary C linkage declarations.
6788 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
6790         fcntl-h: fix compilation with Intel C++ compiler (trivial)
6791         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
6793 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
6795         mountlist: use /proc/self/mountinfo when available
6796         Use libmount to propagate device IDs provided by Linux in
6797         /proc/self/mountinfo.  This will give more accurate output when
6798         using df in chroot'ed environments as the device IDs are not
6799         determined by stat() which may be inaccurate within the chroot.
6800         * lib/mountlist.c (read_file_system_list): Use the libmount routines
6801         from util-linux to parse "/proc/self/mountinfo" or fall back to
6802         standard getmntent() processing.
6803         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
6804         getmntent() is used, as is the case on GNU/Linux.
6806 2014-09-07  Eric Wong  <normalperson@yhbt.net>
6808         users.txt: add cmogstored
6809         cmogstored has used gnulib since the beginning in 2012 to support
6810         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
6812 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
6814         Trivial change.
6815         * gnulib-tool: Use same options as build-aux/bootstrap to download
6816         PO files.
6818 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
6820         Trivial change.
6821         * gnulib-tool: Fallback to wget when rsync of PO files fails.
6823 2014-09-04  Eric Blake  <eblake@redhat.com>
6825         maintainer-makefile: add syntax check for useless ';;'
6826         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
6828 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
6830         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
6831         Problem reported by Assaf Gordon in:
6832         http://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00023.html
6833         Apparently Ubuntu is doing some fancy link-time optimization
6834         that doesn't work with -lpthread but does work with -pthread.
6835         Work around the bug by preferring -pthread to -lpthread.
6836         * m4/pthread.m4 (gl_PTHREAD_CHECK):
6837         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
6838         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6839         Treat -pthread like -lpthread.
6841 2014-09-04  Eric Blake  <eblake@redhat.com>
6843         error: drop spurious semicolon
6844         * lib/error.c (__error_at_line): Fix ';;'.
6846 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
6848         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
6849         * m4/gnulib-common.m4 (AC_C_RESTRICT):
6850         Override AC_C_RESTRICT unconditionally.
6851         Update from autoconf, incorporating:
6852         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
6853         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
6855 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
6857         manywarnings: add GCC 4.9 warnings
6858         Also, make it easier to maintain this in the future.
6859         * build-aux/gcc-warning.spec: Add -Wabi-tag,
6860         -Wconditionally-supported, -Wdelete-incomplete,
6861         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
6862         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
6863         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
6864         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
6865         only for older GCC versions that need them.  Handle
6866         -Wnormalized=nfc specially, so that the 'comm' command used
6867         for maintenance doesn't get confused.
6869 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
6871         vasnprintf: fix bugs in width computation
6872         * lib/vasnprintf.c (VASNPRINTF):
6873         Rework previous change, which introduced a bug,
6874         to avoid the warning in a different way.
6875         Avoid undefined behavior if the width arg is less than -INT_MAX.
6876         Avoid unnecessary use of HAS_WIDTH local.
6878 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
6880         vasnprintf: Avoid signed/unsigned comparison warning.
6881         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
6882         compare end addr of generated string w/ maximum end addr.
6884 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
6886         parse-datetime: Avoid pointer difference.
6887         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
6888         instead of calculating difference of pointers.  This removes an
6889         annoying warning, devoid of any use.
6891 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
6893         qsort_r: new module, for GNU-style qsort_r
6894         This works even on FreeBSD, which has an incompatible qsort_r API.
6895         * MODULES.html.sh: Add it.
6896         * doc/glibc-functions/qsort_r.texi: It's now supported.
6897         * lib/qsort.c: New file, taken from glibc with minor changes
6898         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
6899         removed.
6900         * lib/qsort_r.c: New file, compiled only on FreeBSD.
6901         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
6902         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
6903         * modules/qsort_r, modules/qsort_r-tests: New files.
6904         * modules/stdlib (Makefile): Set up its defaults.
6905         * tests/test-qsort_r.c: New file.
6907 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
6909         vla: new module
6910         GNU RCS can use this, mostly for documentation I expect.  See:
6911         http://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00025.html
6912         * MODULES.html.sh: Add vla.
6913         * lib/vla.h, modules/vla: New files.
6915 2014-08-07  Daiki Ueno  <ueno@gnu.org>
6917         localename: make gl_locale_name_thread really thread-safe on Windows
6918         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
6919         "glthread/lock.h".
6920         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
6921         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
6923 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
6925         getpass: don't assume struct termios
6926         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
6927         http://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00015.html
6928         * lib/getpass.c (getpass): Port to systems lacking struct termios.
6930         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
6931         Problem reported by Jonas 'Sortie' Termansen in:
6932         http://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00023.html
6933         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
6934         Implement via sysconf for platforms that lack getdtablesize.
6936         vararrays: modernize AC_C_VARARRAYS for C11
6937         This backports a change I recently made to Autoconf.
6938         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
6939         VLAs are not supported, as this is what C11 does.  The old macro
6940         HAVE_C_VARARRAYS is still defined if they are supported, but is
6941         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
6943 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
6945         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
6946         * build-aux/install-reloc (func_create_wrapper): Also wrap
6947         strerror-override, stat, stat.
6949 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
6951         sys_select: fix FD_ZERO problem on Solaris 10
6952         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
6953         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
6954         to expand to an expression that invoked memset without necessarily
6955         including <string.h>.  The problem was that the first include
6956         defined _SYS_TIME_H, causing the second include to short-circuit.
6957         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
6958         Also, fix what appears to be a cut-and-paste typo, by replacing
6959         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
6960         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
6962         accept: document Solaris 10 type glitch
6963         * doc/posix-functions/accept.texi (accept): Mention that
6964         Solaris 10 'accept' takes void * last arg, not socklen_t *.
6966 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
6968         extern-inline: port to FreeBSD, DragonFly
6969         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
6970         is present if either __DragonFly__ or __FreeBSD__ is defined.
6971         FreeBSD problem reported by Andrey Borzenkov in:
6972         http://lists.gnu.org/archive/html/bug-gnulib/2014-07/msg00104.html
6973         Also, worry about __APPLE__ only if __MACH__ is also defined,
6974         as this is more consistent with the rest of gnulib.
6975         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
6976         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
6978 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
6980         regex: Make #if/#ifdef usage consistent for DEBUG
6981         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
6982         of the inconsistent usage of #if and #ifdef as that works with
6983         both Glibc and Gnulib's style.
6985 2014-07-31  Eric Blake  <eblake@redhat.com>
6987         openat-die: use _Noreturn markup
6988         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
6989         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
6990         _Noreturn.
6992 2014-07-30  Eric Blake  <eblake@redhat.com>
6994         test-open: port to cygwin, which lacks Fortify
6995         * tests/test-open.h (ALWAYS_INLINE): New macro.
6996         (__always_inline): Don't abuse internal symbol on non-glibc.
6998 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
7000         localename: Enforce declarations before statements.
7001         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
7002         first statement.
7004 2014-07-18  Jim Meyering  <meyering@fb.com>
7006         test-userspec: don't look up numeric user names
7007         * tests/test-userspec.c: I found a system for which getpwnam("0")
7008         returned a pointer to a non-root user's entry, and that made the
7009         test fail.
7010         (T): Prefix each numeric input with "+", to inhibit lookup.
7012 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
7014         localcharset, localename: MS-Windows support for non-default locales
7015         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
7016         falling back on the default system codepage, try extracting
7017         the codepage from what 'setlocale' returns.  This allows to
7018         take into account changes of the codeset due to non-default
7019         locale set by a previous call to 'setlocale'.
7020         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
7021         Define if not already defined.
7022         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
7023         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
7024         current locale by calling 'setlocale', then converting the
7025         locale name into LCID by calling 'get_lcid'.  This allows to
7026         take into account changes in the current locale from the
7027         default one, in contrast to GetThreadLocale.
7029 2014-07-14  Daiki Ueno  <ueno@gnu.org>
7031         announce-gen: avoid failure when Digest::SHA is installed
7032         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
7033         Digest::SHA1->new in print_checksums fails.
7034         * build-aux/announce-gen (digest_classes): New associative array
7035         for available message digest implementations.
7036         (print_locations): Use it.
7038 2014-07-13  Pádraig Brady  <P@draigBrady.com>
7040         gettext: revert "update macros to version 0.19"
7041         This reverts commit 9b9370ca, as it currently requires that
7042         developers of any project that explicitly uses the gettext module
7043         or implicitly uses it through the utimens-tests or
7044         futimens-tests modules, use gettext >= 0.19.
7045         However there are some stability and availablity issues with
7046         that version at present.  We can reinstate this soon, when stability
7047         is addressed and packages are more readily available.
7049 2014-07-12  Jim Meyering  <meyering@fb.com>
7051         regex: don't deref NULL upon heap allocation failure
7052         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
7053         failure in one more place.
7054         To trigger the segfault, configure grep -with-included-regex,
7055         build it, and run these commands:
7056         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
7057         I discovered this while replying to a private report from
7058         Jens Schleusener about excessive memory consumption by grep
7059         when using a regular expression like the one above.
7061 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
7063         regex: fix memory leak in compiler
7064         Fix by Andreas Schwab in:
7065         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
7066         * lib/regcomp.c (parse_reg_exp): Deallocate partially
7067         constructed tree before returning error.
7069 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
7071         announce-gen: avoid perl warnings
7072         * build-aux/announce-gen: add two minor checks to avoid
7073         "use of uninitialized value" warnings when command-line parameters are
7074         missing.
7076 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
7078         localename: avoid -Wsuggest-attribute={const,pure} warnings
7079         * lib/localename.c (string_has): Tag internal function as pure.
7080         * lib/localename.h (gl_locale_name_default): Tag extern declaration
7081         as const when appropriate.
7083 2014-07-10  Eli Zaretskii <eliz@gnu.org>
7085         nl_langinfo: Fix last change.
7086         * lib/nl_langinfo.c (includes): Drop redundant include.
7088 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
7090         error: Fix -Wundef warnings in glibc
7091         * lib/error.c [_LIBC]: Define default macros for
7092         glibc.
7093         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
7094         Check _LIBC before STRERROR_R_CHAR_P.
7096         error: Sync from glibc master
7097         * lib/error.c [_LIBC]: Remove INTUSE usage.
7098         (error_tail): Remove unused macro ALLOCA_LIMIT.
7099         Fix potential buffer overflow.  Fix potential NULL dereference
7100         in strcmp.
7102 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
7104         nl_langinfo: fix build under mingw
7105         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
7107 2014-07-09  Andrew D Warshall  <warshall@99main.com>
7109         mountlist: do not classify a bind-mounted dir entry as "dummy"
7110         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
7111         1-argument getmntent() (instead of assuming absence).
7113 2014-07-08  Eric Blake  <eblake@redhat.com>
7115         maint.mk: less syntax-check noise when SIGPIPE is ignored
7116         * top/maint.mk (_sc_header_without_use)
7117         (sc_require_config_h_first): Parse full list.
7119 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
7120             Paul Eggert  <eggert@cs.ucla.edu>
7122         nl_langinfo: CODESET on MS-Windows and more items from localeconv
7123         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
7124         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
7125         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
7126         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
7127         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
7128         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
7129         Include <stdio.h> if Microsoft Windows.
7130         Include <time.h> if !REPLACE_NL_LANGINFO.
7131         (ctype_codeset): New function, taken from rpl_nl_langinfo,
7132         and with improvements for Microsoft Windows.
7133         (rpl_nl_langinfo): Use it.
7134         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
7135         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
7136         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
7137         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
7138         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
7139         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
7140         corresponding values returned by 'localeconv'.  Compute the values
7141         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
7142         'strftime' with a suitable struct tm value.
7144 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
7146         Bruno Haible has stepped down as maintainer.
7147         See Karl Berry in:
7148         http://lists.gnu.org/archive/html/bug-gnulib/2014-07/msg00004.html
7149         Daiki Ueno has volunteered to maintain libunistring; see:
7150         http://lists.gnu.org/archive/html/bug-gnulib/2014-07/msg00005.html
7151         * modules/gen-uni-tables, modules/libunistring:
7152         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
7153         * modules/unicase/base, modules/unicase/cased:
7154         * modules/unicase/empty-prefix-context:
7155         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
7156         * modules/unicase/locale-language, modules/unicase/special-casing:
7157         * modules/unicase/tocasefold, modules/unicase/tolower:
7158         * modules/unicase/totitle, modules/unicase/toupper:
7159         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
7160         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
7161         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
7162         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
7163         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
7164         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
7165         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
7166         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
7167         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
7168         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
7169         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
7170         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
7171         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
7172         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
7173         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
7174         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
7175         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
7176         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
7177         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
7178         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
7179         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
7180         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
7181         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
7182         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
7183         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
7184         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
7185         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
7186         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
7187         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
7188         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
7189         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
7190         * modules/unicase/ulc-casexfrm, modules/unicodeio:
7191         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
7192         * modules/uniconv/u16-conv-to-enc:
7193         * modules/uniconv/u16-strconv-from-enc:
7194         * modules/uniconv/u16-strconv-from-locale:
7195         * modules/uniconv/u16-strconv-to-enc:
7196         * modules/uniconv/u16-strconv-to-locale:
7197         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
7198         * modules/uniconv/u32-strconv-from-enc:
7199         * modules/uniconv/u32-strconv-from-locale:
7200         * modules/uniconv/u32-strconv-to-enc:
7201         * modules/uniconv/u32-strconv-to-locale:
7202         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
7203         * modules/uniconv/u8-strconv-from-enc:
7204         * modules/uniconv/u8-strconv-from-locale:
7205         * modules/uniconv/u8-strconv-to-enc:
7206         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
7207         * modules/unictype/bidicategory-all:
7208         * modules/unictype/bidicategory-byname:
7209         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
7210         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
7211         * modules/unictype/bidiclass-byname:
7212         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
7213         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
7214         * modules/unictype/block-all, modules/unictype/block-list:
7215         * modules/unictype/block-of, modules/unictype/block-test:
7216         * modules/unictype/category-C, modules/unictype/category-Cc:
7217         * modules/unictype/category-Cf, modules/unictype/category-Cn:
7218         * modules/unictype/category-Co, modules/unictype/category-Cs:
7219         * modules/unictype/category-L, modules/unictype/category-LC:
7220         * modules/unictype/category-Ll, modules/unictype/category-Lm:
7221         * modules/unictype/category-Lo, modules/unictype/category-Lt:
7222         * modules/unictype/category-Lu, modules/unictype/category-M:
7223         * modules/unictype/category-Mc, modules/unictype/category-Me:
7224         * modules/unictype/category-Mn, modules/unictype/category-N:
7225         * modules/unictype/category-Nd, modules/unictype/category-Nl:
7226         * modules/unictype/category-No, modules/unictype/category-P:
7227         * modules/unictype/category-Pc, modules/unictype/category-Pd:
7228         * modules/unictype/category-Pe, modules/unictype/category-Pf:
7229         * modules/unictype/category-Pi, modules/unictype/category-Po:
7230         * modules/unictype/category-Ps, modules/unictype/category-S:
7231         * modules/unictype/category-Sc, modules/unictype/category-Sk:
7232         * modules/unictype/category-Sm, modules/unictype/category-So:
7233         * modules/unictype/category-Z, modules/unictype/category-Zl:
7234         * modules/unictype/category-Zp, modules/unictype/category-Zs:
7235         * modules/unictype/category-all, modules/unictype/category-and:
7236         * modules/unictype/category-and-not, modules/unictype/category-byname:
7237         * modules/unictype/category-longname, modules/unictype/category-name:
7238         * modules/unictype/category-none, modules/unictype/category-of:
7239         * modules/unictype/category-or, modules/unictype/category-test:
7240         * modules/unictype/category-test-withtable:
7241         * modules/unictype/combining-class:
7242         * modules/unictype/combining-class-all:
7243         * modules/unictype/combining-class-byname:
7244         * modules/unictype/combining-class-longname:
7245         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
7246         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
7247         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
7248         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
7249         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
7250         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
7251         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
7252         * modules/unictype/digit, modules/unictype/joininggroup-all:
7253         * modules/unictype/joininggroup-byname:
7254         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
7255         * modules/unictype/joiningtype-all:
7256         * modules/unictype/joiningtype-byname:
7257         * modules/unictype/joiningtype-longname:
7258         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
7259         * modules/unictype/mirror, modules/unictype/numeric:
7260         * modules/unictype/property-all, modules/unictype/property-alphabetic:
7261         * modules/unictype/property-ascii-hex-digit:
7262         * modules/unictype/property-bidi-arabic-digit:
7263         * modules/unictype/property-bidi-arabic-right-to-left:
7264         * modules/unictype/property-bidi-block-separator:
7265         * modules/unictype/property-bidi-boundary-neutral:
7266         * modules/unictype/property-bidi-common-separator:
7267         * modules/unictype/property-bidi-control:
7268         * modules/unictype/property-bidi-embedding-or-override:
7269         * modules/unictype/property-bidi-eur-num-separator:
7270         * modules/unictype/property-bidi-eur-num-terminator:
7271         * modules/unictype/property-bidi-european-digit:
7272         * modules/unictype/property-bidi-hebrew-right-to-left:
7273         * modules/unictype/property-bidi-left-to-right:
7274         * modules/unictype/property-bidi-non-spacing-mark:
7275         * modules/unictype/property-bidi-other-neutral:
7276         * modules/unictype/property-bidi-pdf:
7277         * modules/unictype/property-bidi-segment-separator:
7278         * modules/unictype/property-bidi-whitespace:
7279         * modules/unictype/property-byname:
7280         * modules/unictype/property-case-ignorable:
7281         * modules/unictype/property-cased:
7282         * modules/unictype/property-changes-when-casefolded:
7283         * modules/unictype/property-changes-when-casemapped:
7284         * modules/unictype/property-changes-when-lowercased:
7285         * modules/unictype/property-changes-when-titlecased:
7286         * modules/unictype/property-changes-when-uppercased:
7287         * modules/unictype/property-combining:
7288         * modules/unictype/property-composite:
7289         * modules/unictype/property-currency-symbol:
7290         * modules/unictype/property-dash:
7291         * modules/unictype/property-decimal-digit:
7292         * modules/unictype/property-default-ignorable-code-point:
7293         * modules/unictype/property-deprecated:
7294         * modules/unictype/property-diacritic:
7295         * modules/unictype/property-extender:
7296         * modules/unictype/property-format-control:
7297         * modules/unictype/property-grapheme-base:
7298         * modules/unictype/property-grapheme-extend:
7299         * modules/unictype/property-grapheme-link:
7300         * modules/unictype/property-hex-digit:
7301         * modules/unictype/property-hyphen:
7302         * modules/unictype/property-id-continue:
7303         * modules/unictype/property-id-start:
7304         * modules/unictype/property-ideographic:
7305         * modules/unictype/property-ids-binary-operator:
7306         * modules/unictype/property-ids-trinary-operator:
7307         * modules/unictype/property-ignorable-control:
7308         * modules/unictype/property-iso-control:
7309         * modules/unictype/property-join-control:
7310         * modules/unictype/property-left-of-pair:
7311         * modules/unictype/property-line-separator:
7312         * modules/unictype/property-logical-order-exception:
7313         * modules/unictype/property-lowercase, modules/unictype/property-math:
7314         * modules/unictype/property-non-break:
7315         * modules/unictype/property-not-a-character:
7316         * modules/unictype/property-numeric:
7317         * modules/unictype/property-other-alphabetic:
7318         * modules/unictype/property-other-default-ignorable-code-point:
7319         * modules/unictype/property-other-grapheme-extend:
7320         * modules/unictype/property-other-id-continue:
7321         * modules/unictype/property-other-id-start:
7322         * modules/unictype/property-other-lowercase:
7323         * modules/unictype/property-other-math:
7324         * modules/unictype/property-other-uppercase:
7325         * modules/unictype/property-paired-punctuation:
7326         * modules/unictype/property-paragraph-separator:
7327         * modules/unictype/property-pattern-syntax:
7328         * modules/unictype/property-pattern-white-space:
7329         * modules/unictype/property-private-use:
7330         * modules/unictype/property-punctuation:
7331         * modules/unictype/property-quotation-mark:
7332         * modules/unictype/property-radical:
7333         * modules/unictype/property-sentence-terminal:
7334         * modules/unictype/property-soft-dotted:
7335         * modules/unictype/property-space:
7336         * modules/unictype/property-terminal-punctuation:
7337         * modules/unictype/property-test, modules/unictype/property-titlecase:
7338         * modules/unictype/property-unassigned-code-value:
7339         * modules/unictype/property-unified-ideograph:
7340         * modules/unictype/property-uppercase:
7341         * modules/unictype/property-variation-selector:
7342         * modules/unictype/property-white-space:
7343         * modules/unictype/property-xid-continue:
7344         * modules/unictype/property-xid-start:
7345         * modules/unictype/property-zero-width, modules/unictype/scripts:
7346         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
7347         * modules/unictype/syntax-c-whitespace:
7348         * modules/unictype/syntax-java-ident:
7349         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
7350         * modules/unigbrk/u16-grapheme-breaks:
7351         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
7352         * modules/unigbrk/u32-grapheme-breaks:
7353         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
7354         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
7355         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
7356         * modules/unigbrk/uc-is-grapheme-break:
7357         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
7358         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
7359         * modules/unilbrk/u16-width-linebreaks:
7360         * modules/unilbrk/u32-possible-linebreaks:
7361         * modules/unilbrk/u32-width-linebreaks:
7362         * modules/unilbrk/u8-possible-linebreaks:
7363         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
7364         * modules/unilbrk/ulc-possible-linebreaks:
7365         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
7366         * modules/uniname/uniname, modules/uninorm/base:
7367         * modules/uninorm/canonical-decomposition:
7368         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
7369         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
7370         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
7371         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
7372         * modules/uninorm/nfkc, modules/uninorm/nfkd:
7373         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
7374         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
7375         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
7376         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
7377         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
7378         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
7379         * modules/unistdio/base, modules/unistdio/u-printf-args:
7380         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
7381         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
7382         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
7383         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
7384         * modules/unistdio/u16-u16-sprintf:
7385         * modules/unistdio/u16-u16-vasnprintf:
7386         * modules/unistdio/u16-u16-vasprintf:
7387         * modules/unistdio/u16-u16-vsnprintf:
7388         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
7389         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
7390         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
7391         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
7392         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
7393         * modules/unistdio/u32-u32-asnprintf:
7394         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
7395         * modules/unistdio/u32-u32-sprintf:
7396         * modules/unistdio/u32-u32-vasnprintf:
7397         * modules/unistdio/u32-u32-vasprintf:
7398         * modules/unistdio/u32-u32-vsnprintf:
7399         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
7400         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
7401         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
7402         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
7403         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
7404         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
7405         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
7406         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
7407         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
7408         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
7409         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
7410         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
7411         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
7412         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
7413         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
7414         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
7415         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
7416         * modules/unistr/u16-check, modules/unistr/u16-chr:
7417         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
7418         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
7419         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
7420         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
7421         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
7422         * modules/unistr/u16-move, modules/unistr/u16-next:
7423         * modules/unistr/u16-prev, modules/unistr/u16-set:
7424         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
7425         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
7426         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
7427         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
7428         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
7429         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
7430         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
7431         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
7432         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
7433         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
7434         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
7435         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
7436         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
7437         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
7438         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
7439         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
7440         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
7441         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
7442         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
7443         * modules/unistr/u32-next, modules/unistr/u32-prev:
7444         * modules/unistr/u32-set, modules/unistr/u32-startswith:
7445         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
7446         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
7447         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
7448         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
7449         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
7450         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
7451         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
7452         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
7453         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
7454         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
7455         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
7456         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
7457         * modules/unistr/u8-check, modules/unistr/u8-chr:
7458         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
7459         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
7460         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
7461         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
7462         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
7463         * modules/unistr/u8-next, modules/unistr/u8-prev:
7464         * modules/unistr/u8-set, modules/unistr/u8-startswith:
7465         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
7466         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
7467         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
7468         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
7469         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
7470         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
7471         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
7472         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
7473         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
7474         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
7475         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
7476         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
7477         * modules/uniwbrk/base, modules/uniwbrk/table:
7478         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
7479         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
7480         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
7481         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
7482         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
7483         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
7484         * modules/uniwidth/width, modules/utf16-ucs4:
7485         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
7486         * modules/utf8-ucs4-unsafe:
7487         Change maintainer from Bruno Haible to Daiki Ueno.
7488         This is my guess at the libunistring modules; please feel free
7489         to fix if I guessed incorrectly.
7490         * modules/accept4, modules/acl, modules/acos, modules/acosf:
7491         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
7492         * modules/areadlink, modules/array-list, modules/array-mergesort:
7493         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
7494         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
7495         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
7496         * modules/binary-io, modules/bison-i18n, modules/btowc:
7497         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
7498         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
7499         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
7500         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
7501         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
7502         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
7503         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
7504         * modules/closedir, modules/concat-filename, modules/copy-file:
7505         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
7506         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
7507         * modules/csharpcomp-script, modules/csharpexec:
7508         * modules/csharpexec-script, modules/ctype, modules/diffseq:
7509         * modules/dprintf, modules/dprintf-posix, modules/dup:
7510         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
7511         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
7512         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
7513         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
7514         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
7515         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
7516         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
7517         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
7518         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
7519         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
7520         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
7521         * modules/findprog, modules/findprog-lgpl, modules/floor:
7522         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
7523         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
7524         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
7525         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
7526         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
7527         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
7528         * modules/freadable, modules/freadahead, modules/freadptr:
7529         * modules/freadseek, modules/freopen, modules/frexp:
7530         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
7531         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
7532         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
7533         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
7534         * modules/ftello, modules/full-read, modules/full-write:
7535         * modules/fwritable, modules/fwriteerror, modules/gcd:
7536         * modules/get-rusage-as, modules/get-rusage-data:
7537         * modules/getdtablesize, modules/getrusage, modules/gettext:
7538         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
7539         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
7540         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
7541         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
7542         * modules/iconv, modules/iconv-h, modules/iconv_open:
7543         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
7544         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
7545         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
7546         * modules/integer_length_ll, modules/ioctl, modules/isatty:
7547         * modules/isblank, modules/isnand, modules/isnand-nolibm:
7548         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
7549         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
7550         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
7551         * modules/javaexec, modules/javaexec-script, modules/javaversion:
7552         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
7553         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
7554         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
7555         * modules/lib-symbol-visibility, modules/libsigsegv:
7556         * modules/linked-list, modules/linkedhash-list, modules/list:
7557         * modules/localcharset, modules/locale, modules/localeconv:
7558         * modules/localename, modules/lock, modules/log, modules/log-ieee:
7559         * modules/log10, modules/log10-ieee, modules/log10f:
7560         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
7561         * modules/log1p, modules/log1p-ieee, modules/log1pf:
7562         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
7563         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
7564         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
7565         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
7566         * modules/logf, modules/logf-ieee, modules/login_tty:
7567         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
7568         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
7569         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
7570         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
7571         * modules/mbscspn, modules/mbsinit, modules/mbslen:
7572         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
7573         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
7574         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
7575         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
7576         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
7577         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
7578         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
7579         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
7580         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
7581         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
7582         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
7583         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
7584         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
7585         * modules/posix_spawn, modules/posix_spawn-internal:
7586         * modules/posix_spawn_file_actions_addclose:
7587         * modules/posix_spawn_file_actions_adddup2:
7588         * modules/posix_spawn_file_actions_addopen:
7589         * modules/posix_spawn_file_actions_destroy:
7590         * modules/posix_spawn_file_actions_init:
7591         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
7592         * modules/posix_spawnattr_getpgroup:
7593         * modules/posix_spawnattr_getschedparam:
7594         * modules/posix_spawnattr_getschedpolicy:
7595         * modules/posix_spawnattr_getsigdefault:
7596         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
7597         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
7598         * modules/posix_spawnattr_setschedparam:
7599         * modules/posix_spawnattr_setschedpolicy:
7600         * modules/posix_spawnattr_setsigdefault:
7601         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
7602         * modules/pow, modules/powf, modules/printf-frexp:
7603         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
7604         * modules/progname, modules/propername, modules/pselect:
7605         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
7606         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
7607         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
7608         * modules/read, modules/readdir, modules/readlink:
7609         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
7610         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
7611         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
7612         * modules/relocatable-script, modules/remainder:
7613         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
7614         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
7615         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
7616         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
7617         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
7618         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
7619         * modules/setlocale, modules/sh-quote, modules/shutdown:
7620         * modules/signal, modules/signbit, modules/sigpipe:
7621         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
7622         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
7623         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
7624         * modules/snippet/link-warning, modules/snippet/unused-parameter:
7625         * modules/snprintf, modules/snprintf-posix, modules/spawn:
7626         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
7627         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
7628         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
7629         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
7630         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
7631         * modules/streq, modules/strerror_r-posix, modules/striconv:
7632         * modules/striconveh, modules/striconveha, modules/strncat:
7633         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
7634         * modules/sublist, modules/sys_resource, modules/sys_utsname:
7635         * modules/sys_wait, modules/system-posix, modules/system-quote:
7636         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
7637         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
7638         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
7639         * modules/truncf, modules/truncf-ieee, modules/truncl:
7640         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
7641         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
7642         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
7643         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
7644         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
7645         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
7646         * modules/wait-process, modules/waitpid, modules/wcpcpy:
7647         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
7648         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
7649         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
7650         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
7651         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
7652         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
7653         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
7654         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
7655         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
7656         * modules/write, modules/xconcat-filename, modules/xlist:
7657         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
7658         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
7659         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
7660         * modules/y0, modules/y1, modules/yn:
7661         Remove Bruno Haible as maintainer; if he's the sole maintainer,
7662         change the maintainer to 'all'.  Let's hope someone volunteers.
7664 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
7666         mktime: merge #if/#ifdef usage from glibc
7667         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
7668         as that works with both Glibc's and Gnulib's style.
7669         See thread starting at Siddhesh Poyarekar's bug report at:
7670         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
7672 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
7674         git-version-gen: improve option descriptions
7675         * build-aux/git-version-gen: Mention that --prefix and --fallback
7676         have a mandatory argument.
7678 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
7680         regex: fix memory leak in compiler
7681         Fix by Andreas Schwab in:
7682         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
7683         * lib/regcomp.c (parse_expression): Deallocate partially
7684         constructed tree before returning error.
7686         regex: merge patch from libc
7687         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
7688         Combine __USE_BSD and __USE_SVID into __USE_MISC.
7689         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
7691 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
7693         acl: port to gcc -Wredundant-decls
7694         From a request by Dmitry Antipov in:
7695         http://lists.gnu.org/archive/html/emacs-devel/2014-06/msg00263.html
7696         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
7697         "#ifndef _GL_ACL_H".
7699 2014-06-11  Bruce Korb  <bkorb@gnu.org>
7700         Jim Meyering  <meyering@fb.com>
7702         parse-duration: eliminate 68-year duration limit
7703         * lib/parse-duration.c: Include "intprops.h".
7704         (TIME_MAX): Rename to MAX_DURATION and define to
7705         TYPE_MAXIMUM(time_t).
7706         * modules/parse-duration (Depends-on): Add intprops.
7707         Reported by Jonas 'Sortie' Termansen.
7709 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
7711         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
7712         * modules/pthread (Depends-on): Add 'extensions', as it defines
7713         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
7714         (configure.ac-early): New section.
7715         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
7716         it is no longer needed.
7718 2014-06-14  Pádraig Brady  <P@draigBrady.com>
7720         pthread: define thread-safe macros on some platforms
7721         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
7722         for thread-safe operation on some platforms.
7724 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
7726         regex: don't be multithreaded if USE_UNLOCKED_IO.
7727         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
7728         * lib/regex_internal.h: Do not use multithreaded version if
7729         USE_UNLOCKED_IO is defined.  This is a hack, but it works
7730         around a porting bug with coreutils 8.22 on AIX 7.1.
7732 2014-06-11  Daiki Ueno  <ueno@gnu.org>
7734         gettext: update macros to version 0.19
7735         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
7736         depend on gl_EXTERN_INLINE and drop support for older Bison
7737         versions.
7739 2014-06-10  Pádraig Brady  <P@draigBrady.com>
7741         select,poll: fix console handle check on windows 8
7742         lib/poll.c (IsConsoleHandle): Change from testing the lower
7743         2 bits of the handle to the more expensive but accurate syscall.
7744         lib/select.c: Likewise.
7746 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
7748         select: fix waiting on anonymous pipes on MS-Windows
7749         * lib/select.c (rpl_select): Fall back to polling when select()
7750         indicates there is nothing to check, while due to the timeout not
7751         expiring, activity is indicated on one of the handles.
7752         Also clear the TIMEOUT argument if the timer does expire.
7754 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
7756         times: fix to return non constant value on MS-Windows
7757         * lib/times.c (times): Don't use the process creation time,
7758         rather clock() which on windows returns the number of
7759         clock ticks since the process started.
7761 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
7763         isatty: fix to work on windows 8
7764         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
7765         2 bits of the handle to the more expensive but accurate syscall.
7767 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
7769         maint: fix typo in fdl.texi
7770         * doc/fdl.texi: Fix typo (missing '@').
7771         Somehow this was in fdl.texi but not fdl-1.3.texi.
7773 2014-06-06  Ben Walton  <bdwalton@gmail.com>
7775         mountlist: avoid hasmntopt const type warning on solaris
7776         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
7777         with char * instead of const char *.  Passing the constant string
7778         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
7779         to avoid the warning.
7781 2014-06-04  Eric Blake  <eblake@redhat.com>
7783         maintainer-makefile: delete obsolete code
7784         * top/maint.mk (build_aux): Drop old code, as threatened.
7786         maintainer-makefile: avoid spurious error messages
7787         * top/maint.mk (syntax-check): Guard definition and use of
7788         $(shell) by whether Makefile is present.
7790 2014-06-03  Ben Walton  <bdwalton@gmail.com>
7792         rename: avoid unused-but-set-variable compiler warning
7793         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
7794         it is possible that dst_exists may be set but not used.  Mark it with
7795         the unused attribute to avoid compiler warnings.
7797 2014-06-02  Ben Walton  <bdwalton@gmail.com>
7799         rename: mark a label as potentially unused
7800         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
7801         by marking the out label as potentially unused.
7802         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
7804 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
7806         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
7807         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
7809 2014-06-02  Ben Walton  <bdwalton@gmail.com>
7811         acl: apply pure attribute to two functions
7812         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
7813         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
7815 2014-06-01  Pádraig Brady  <P@draigBrady.com>
7817         gnulib-common.m4: add _GL_UNUSED_LABEL
7818         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
7819         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
7821 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
7823         dup2, fcntl, fcntl-h: port to AIX 7.1
7824         This fixes some porting problems discovered when testing the latest
7825         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
7826         in grep but it could be important for other applications.
7827         * doc/posix-functions/dup2.texi:
7828         * doc/posix-functions/fcntl.texi:
7829         * doc/posix-headers/fcntl.texi:
7830         Document AIX bugs.
7831         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
7832         Define to 0 if outside 'int' range.
7833         * m4/dup2.m4 (gl_FUNC_DUP2):
7834         * m4/fcntl.m4 (gl_FUNC_FCNTL):
7835         Check for getdtablesize.  If it's available, test a value just
7836         outside its range instead of testing 1000000.  When cross-compiling,
7837         guess that AIX will fail this improved test.
7839 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
7841         printf, config.rpath: Port to FreeBSD 10.
7842         Problem reported by Tijl Coosemans in:
7843         http://lists.gnu.org/archive/html/bug-gnulib/2014-05/msg00078.html
7844         * build-aux/config.rpath (hardcode_libdir_flag_spec)
7845         (hardcode_direct): Simplify FreeBSD configuration.
7846         (library_names_spec): Don't mishandle FreeBSD 10+.
7847         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
7848         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
7849         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
7850         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
7851         Don't mishandle FreeBSD 10+ when cross-compiling.
7853         ftoastr: work around compiler bug in IBM xlc 12.1
7854         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
7855         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
7856         around a compiler bug in IBM xlc 12.1.0.0: it complains
7857         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
7858         _GL_FLT_PREC_BOUND.'
7860 2014-05-30  Kieran Colford  <colfordk@gmail.com>
7862         valgrind-tests: fixed misleading help message
7863         * m4/valgrind-tests.m4: The help message generated by configure
7864         implied that valgrind was disabled by default, which it wasn't.
7865         Adjusted the help message using s/enable/disable/ to clarify.
7867 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
7869         isfinite, isinf, isnan tests: fix for little-endian PowerPC
7870         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
7871         first double of a PowerPC "double double" pair.
7872         * tests/test-isinf.c (test_isinfl): Likewise.
7873         * tests/test-isnan.c (test_long_double): Likewise.
7874         * tests/test-isnanl.h (main): Likewise.
7875         * tests/test-signbit.c (test_signbitl): Likewise.
7877 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
7879         exclude-tests: port to AIX 7.1
7880         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
7881         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
7882         the regex code uses locks.
7884 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
7886         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
7887         Without this fix, Emacs would sometimes call sigprocmask instead
7888         of pthread_sigmask, which is a no-no in multithreaded applications.
7889         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
7890         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
7891         Suppress check for pthread_sigmask working without -lpthread if
7892         the application always links with -lpthread.  Do not link with
7893         $LIBMULTITHREAD if gl_THREADLIB is not defined.
7894         * m4/timer_time.m4 (gl_TIMER_TIME):
7895         Require gl_THREADLIB only if it is defined.  Do not append
7896         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
7898 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
7900         gnulib-tool: wget translations using --no-verbose rather than --quiet
7901         This allows the user to see error messages if any (--quiet hides them)
7902         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
7904 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
7906         gnulib-tool: adjust translation wget to avoid a https redirection
7907         Context: http://translationproject.org/latest/gnulib redirects to
7908            https://translationproject.org/latest/gnulib/
7909         Rationale: if the user falls back to wget, she doesn't have rsync and
7910         is probably in a minimal build environment, where packages such as
7911         'ca-certificates' are missing as well, resulting in a failed (and
7912         difficult to detect since ignored) translation initial fetch.
7913         Consequently let's avoid https if possible, and add the missing
7914         trailing slash.  This also avoids an unnecessary 302 redirection.
7915         * gnulib-tool: Add trailing slash to gnulib URL.
7917 2014-05-22  Pádraig Brady  <P@draigBrady.com>
7919         getlogin_r-tests: check return value rather than errno
7920         * tests/test-getlogin_r.c (main): As per POSIX we should be
7921         verifying the return value from getlogin_r() rather than errno.
7923 2014-05-22  Pádraig Brady  <P@draigBrady.com>
7925         getlogin_r-tests: fix various issues in recent change
7926         * tests/test-getlogin_r.c: Include required headers that were
7927         missed in recent commit eec20b4e.
7928         Also consistently check the errno rather than the return value from
7929         getlogin_r as POSIX only specifies that non zero is returned on error.
7930         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
7932 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
7934         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
7935         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
7936         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
7937         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
7938         * lib/spawn-pipe.c:
7939         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
7940         and then 'int open64(const char *, int, ...);', which means the
7941         declaration for 'open' gets lost if we later '#undef open'.
7942         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
7943         where the compilation reported the non-fatal error "In function
7944         'openat_proc_name' ... warning: implicit declaration of function
7945         'open'".  In this case the error is relatively harmless, but in
7946         other cases it might not be so minor.
7948 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
7950         xalloc: don't potentially generate invalid code for xmemdup calls
7951         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
7952         this function can initialize the newly-allocated storage with new
7953         pointers, which means this function is not malloc-like.  See:
7954         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
7956 2014-05-19  Pádraig Brady  <P@draigBrady.com>
7958         getlogin_r-tests: avoid false failure under sudo/ssh etc.
7959         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
7960         changes from commit 97249cf29 to not depend on environment variables.
7962 2014-05-18  Pádraig Brady  <P@draigBrady.com>
7964         getlogin-tests: avoid false failure under cron
7965         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
7966         since that's not what's under test.  Centos 6 was seen to return
7967         EINVAL for ttyname() when run from cron.
7969 2014-05-16  Jim Meyering  <meyering@fb.com>
7971         mbrtowc.m4: fix a comment typo
7972         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
7973         emitted documentation string.
7975 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
7977         mbrlen, mbrtowc: fix bug with empty input
7978         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
7979         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
7980         so this is mainly for documentation.
7981         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
7982         (gl_FUNC_MBRTOWC): Use it.
7983         * tests/test-mbrtowc.c (main): Test for the bug.
7985 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
7987         doc: document mbrtowc and mbrlen problem with empty input
7988         * doc/posix-functions/mbrlen.texi (mbrlen):
7989         * doc/posix-functions/mbrtowc.texi (mbrtowc):
7990         Document portability problem when the input string is empty.  See:
7991         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
7993         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
7994         Problem reported by Eli Zaretskii in:
7995         http://lists.gnu.org/archive/html/bug-grep/2014-05/msg00118.html
7996         * doc/posix-functions/execl.texi (execl):
7997         * doc/posix-functions/execle.texi (execle):
7998         * doc/posix-functions/execlp.texi (execlp):
7999         * doc/posix-functions/execv.texi (execv):
8000         * doc/posix-functions/execve.texi (execve):
8001         * doc/posix-functions/execvp.texi (execvp):
8002         Mention spawn+exit problem on non-Cygwin Windows platforms.
8004 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
8006         getlogin-tests: avoid false failure under sudo/ssh etc.
8007         * modules/getlogin-tests (configure.ac): Check for ttyname().
8008         * tests/test-getlogin.c (main): Don't depend on environment variables
8009         to correlate with getlogin(), since sudo and ssh etc. can tamper
8010         with the LOGNAME and USER env vars.  Instead lookup the name from
8011         the uid associated with the stdin tty.
8013 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
8015         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
8016         These were found when building the latest grep snapshot on IRIX 6.5.
8017         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
8018         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
8019         never used later.
8020         * lib/quotearg.c (quoting_options_from_style):
8021         * lib/xstrtol.c (__xstrtol):
8022         Use enum instead of 0, to pacify IRIX 6.5 cc.
8024 2014-04-18  Pádraig Brady  <P@draigBrady.com>
8026         gitlog-to-changelog: revert inclusion of git-log-fix file
8027         * build-aux/git-log-fix: Delete dummy file.
8028         * modules/gitlog-to-changelog: Don't reference (overwrite)
8029         the project specific git-log-fix file.
8031 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
8033         maint.mk: Relax the copyright check to cater for non FSF projects
8034         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
8035         to not require the "Free" suffix after the copyright years.
8037 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
8039         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
8040         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
8041         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
8042         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
8043         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
8045 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
8047         exclude: port to strict C99
8048         Strict C does not allow converting a function pointer to void *
8049         and vice versa.  Pass a pointer to a function pointer instead.
8050         * lib/exclude.c (add_exclude_file):
8051         Pass the address of the function pointer.
8052         (call_addfn): And deference the address here, to match.
8054 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
8056         regex: do not depend on malloc-gnu
8057         * modules/regex (Depends-on): Remove malloc-gnu.
8058         It's no longer needed, because of the 2012-12-29 patch
8059         "regex: port to hosts where malloc (0) == NULL".
8060         Reported by Nathan Kennedy in:
8061         http://lists.gnu.org/archive/html/bug-gnulib/2014-04/msg00026.html
8063 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
8065         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
8066         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
8067         * doc/posix-functions/expl.texi: Mention the workaround.
8069 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
8071         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
8072         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
8073         size to be zero even when the pointer is nonnull.  This
8074         accommodates the use case where P is malloc (0) and *PN is 0 on a
8075         host where malloc (0) yields nonnull.
8077 2014-04-09  Eric Blake  <eblake@redhat.com>
8079         fts: avoid unnecessary strlen calls
8080         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
8082 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8084         fts: avoid unnecessary strlen calls
8085         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
8086         when that can be faster than strlen.
8088 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
8090         fts: avoid unnecessary strlen calls
8091         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
8092         (fts_build): Store the length of the dp->d_name entry in a local variable
8093         instead of calling strlen() several times via the above, removed macro.
8094         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
8095         run by ~4%, yet this reduces the execution time by about a third if run
8096         via "ltrace -c rm -rf some-dir".
8098 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
8100         obstack: Remove ancient NeXTSTEP gcc support conditional
8101         This change will ease merging with glibc.  The "#if ... __NEXT__"
8102         causes a warning with -Wundef which glibc now enables by default.
8103         Problem reported by Will Newton in
8104         <http://lists.gnu.org/archive/html/bug-gnulib/2014-03/msg00032.html>.
8105         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
8106         so go with that.
8107         * lib/obstack.h (__extension__):
8109 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
8111         obstack: merge with glibc changes
8112         * lib/obstack.c, lib/obstack.h: Merge from glibc.
8113         This is mostly indenting and commentary changes.
8114         Instances of 'register' have been removed.
8116 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
8118         strftime: wrap macros in "do {...} while(0)"
8119         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
8120         this macro in "do {...} while(0)" to prevent false use as a
8121         single statement, e.g., in an un-braced "{}" else-block.
8122         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
8123         (strftime_case_): Remove 'else' after 'goto' - which was the
8124         only non-fatal, un-braced use of one of the above macros.
8125         Spotted by coverity (NESTING_INDENT_MISMATCH).
8127 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
8129         modechange: avoid memory leaks for invalid octal modes
8130         * lib/modechange.c (mode_compile): During the parsing of
8131         notations like +40, free the 'mc' buffer for invalid mode
8132         strings like +17777 (greater than the maximum octal mode),
8133         =18 (bad octal mode characters) or u=1 ('affected' with
8134         octal modes).
8135         Reproducer, e.g.:
8136             $ valgrind --leak-check=full chmod +17777 file
8137         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
8138         add notations +40, 00440, etc.".
8139         Spotted by coverity (RESOURCE_LEAK).
8141 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
8143         gitlog-to-changelog: include a dummy git-log-fix file
8144         Problem reported by Nathan Stratton Treadway in:
8145         http://lists.gnu.org/archive/html/bug-tar/2014-03/msg00082.html
8146         * build-aux/git-log-fix: New file.
8148 2014-03-13  Jim Meyering  <meyering@fb.com>
8150         gitlog-to-changelog: also include the file, git-log-fix
8151         * modules/gitlog-to-changelog (Files): Add git-log-fix.
8152         Reported by Assaf Gordon.
8154 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
8156         regex: port to OS X 10.8.5 en_US.UTF-8 locale
8157         This fixes a bug when ignoring case and when comparing the
8158         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
8159         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
8160         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
8161         titlecase letter is neither lowercase nor uppercase, but
8162         uppercasing the titlecase letter (via towupper) yields the
8163         uppercase letter, so the two letters should match when ignoring case.
8164         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
8165         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
8166         Don't test whether a character is lowercase before uppercasing it.
8168 2014-03-04  Kevin Cernekee <cernekee@gmail.com>
8170         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
8171         This is basically one of the options Bruno Haible proposed in:
8172         http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00282.html
8173         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
8174         * lib/stdint.in.h: Use it.
8175         * modules/stdint (Depends-on): Add sys_types.
8177 2014-02-26  Pádraig Brady <P@draigBrady.com>
8179         parse-datetime: fix crash or infloop in TZ="" parsing
8180         * lib/parse-datetime.y (parse_datetime): Break out of the
8181         TZ="" parsing loop once the second significant " is found.
8182         Also skip over any subsequent whitespace to be consistent
8183         with the non TZ= case.
8184         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
8186 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
8188         savedir: new symbol for fast-read version
8189         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
8190         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
8191         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
8192         http://lists.gnu.org/archive/html/coreutils/2014-02/msg00037.html
8194 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
8196         unistd: port readlink to Mac OS X 10.3.9
8197         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
8198         around self-include problem in Mac OS X 10.3.9 when combined with
8199         readlink module.  Problem reported by Klaus Zietler in
8200         <http://bugs.gnu.org/16825>.
8202 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
8204         diffseq: remove TOO_EXPENSIVE heuristic
8205         Problem with diffutils reported by Vincent Lefevre in
8206         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
8207         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
8208         Although appropriate for circa-1993 hardware, these days the heuristic
8209         seems to be more trouble than it's worth.
8210         * lib/diffseq.h: Modernize citations.
8211         (struct context): Remove member too_expensive.
8212         All uses changed.
8213         (struct partition): Remove members lo_minimal, hi_minimal.
8214         All uses changed.
8215         (diag, compareseq): Remove arg find_minimal.  All uses changed.
8216         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
8217         1993 to make 'diff' run faster (but not as well) on large inputs.
8218         These days, computers are fast enough that it's typically better
8219         to run slower but more accurately.
8220         * lib/fstrcmp.c: Remove duplicate comment.
8221         * lib/fstrcmp.c (strcmp_bounded):
8222         * lib/git-merge-changelog.c (compute_differences):
8223         Adjust to diffseq.h changes.
8224         * NEWS: Document the change.
8226         savedir: simplify by using stpcpy
8227         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
8228         (streamsavedir): Use stpcpy instead.
8229         * modules/savedir (Depends-on): Add stpcpy.
8231 2014-02-21  Pádraig Brady <P@draigBrady.com>
8233         spawn: fix link error on uclibc
8234         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
8235         to incorporate -lrt if needed (on uclibc for example).
8236         * modules/posix_spawn: Reference the substituted LIB.
8238 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
8239         timer: fix uClibc detection of threading
8240         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
8241         enabled in uClibc.
8243 2014-02-21  Eric Blake  <eblake@redhat.com>
8245         maintainer-makefiles: provide AC_PROG_SED for older autoconf
8246         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
8248 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
8250         exclude: add support for posix regexps
8252         This commit adds support for POSIX extended regular expressions
8253         and fixes a long-standing memory leak (pattern buffer was never
8254         freed).  It also implements a new interface function to read
8255         exclude patterns from a FILE, which passes an additional parameter
8256         to its callback function, thereby allowing to preserve its state
8257         between invocations.
8259         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
8260         (pattern_buffer): New struct.
8261         (exclude): New member patbuf.
8262         (exclude_add_pattern_buffer): New function.
8263         (free_exclude_segment): Free regexps.
8264         (free_exclude): Free allocated pattern buffers.
8265         (exclude_patopts): New function.
8266         (file_pattern_matches): Use exclude_patopts.
8267         (add_exclude): support regexps.
8268         (add_exclude_fp): New function.
8269         (add_exclude_file): Rewrite using add_exclude_fp.
8270         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
8271         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
8272         (add_exclude_fp)
8273         (add_exclude_file): Rewrite using add_exclude_fp.
8274         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
8275         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
8276         (add_exclude_fp)
8277         (exclude_add_pattern_buffer): New prototypes.
8278         * modules/exclude: Depends on regex and filename.
8280 2014-02-20  Eric Blake  <eblake@redhat.com>
8282         maintainer-makefiles: use $(SED) for syntax check
8283         * modules/maintainer-makefile (configure.ac): Check for sane sed.
8284         * top/maint.mk: Change sed to $(SED).
8286 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
8287             Paul Eggert  <eggert@cs.ucla.edu>
8289         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
8290         Patch based on an idea by Dick Streefland in
8291         <https://savannah.gnu.org/patch/?7892>.
8292         * NEWS: Document this.
8293         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
8294         (direntry_t, comparison_function): New types.
8295         (direntry_cmp_name): New function.
8296         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
8297         (streamsavedir, savedir): New arg OPTION.
8298         (streamsavedir): Simplify memory allocation.
8299         (fdsavedir): Remove.
8300         * lib/savedir.h (enum savedir_option): New type.
8301         (streamsavedir, savedir): New arg OPTION.
8302         (fdsavedir): Remove.
8304 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
8306         file-type: add support for doors and other less-common file types
8307         Problem with S_ISDOOR reported by Rich Burridge.
8308         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
8309         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
8310         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
8312 2014-01-23  Eric Blake  <eblake@redhat.com>
8314         pthread: work around winpthread header pollution on mingw
8315         * lib/time.in.h: Move pthread workarounds...
8316         * lib/pthread.in.h: ...here.
8317         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
8318         detect macro pollution on mingw.
8319         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
8321 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
8323         qacl: check for fchmod
8324         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
8325         and qset-acl.c both use HAVE_FCHMOD.
8327 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
8329         fdopen-tests: port to Tru64
8330         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
8331         descriptor that is not open, as POSIX doesn't specify the
8332         resulting behavior and the test does not work on Tru64.
8333         Problem reported by Steven M. Schweda in:
8334         http://lists.gnu.org/archive/html/bug-gnulib/2014-01/msg00079.html
8336         stdalign: port to HP-UX compilers
8337         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
8338         if __HP_cc or __HP_aCC are nonzero.
8340 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
8342         strtoimax: port to platforms lacking 'long long'
8343         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
8344         check whether strtoll is declared, which causes the C file to
8345         wrongly report an error.  Problem reported by Steven M. Schweda in:
8346         http://lists.gnu.org/archive/html/bug-diffutils/2014-01/msg00003.html
8347         * lib/strtoimax.c (strtoull):
8348         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
8349         (strtoll): Declare only if HAVE_LONG_LONG_INT.
8351 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
8353         relocatable-perl: fix texi syntax
8354         * doc/relocatable-maint.texi: Escape braces.
8356 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
8358         relocatable-perl: like relocatable-script, but for Perl scripts
8359         * build-aux/relocatable.pl.in: Add.
8360         * doc/relocatable-maint.texi: Add documentation.
8361         * modules/relocatable-perl: Add.
8363 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
8365         tests: fix export bug in previous patch
8366         Problem reported by Jim Meyering.
8367         * tests/init.sh (re_shell): New var, which is exported instead of
8368         re_shell_.
8370         tests: simplify porting to Solaris 10 /bin/sh
8371         Some test cases in 'grep' need a shell that groks '$(';
8372         export re_shell_ for their benefit.  Problem reported for 'grep'
8373         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
8374         * tests/init.sh (re_shell_): Export if it's used.
8376 2014-01-06  Eric Blake  <eblake@redhat.com>
8378         md5, sha1, sha256, sha512: support older autoconf
8379         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
8380         for autoconf < 2.63b.
8382         include_next: port to autoconf 2.63
8383         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
8385 2014-01-04  Jim Meyering  <meyering@fb.com>
8387         maint: add a gnulib-local rule to keep non-ascii out of .texi files
8388         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
8389         so that "make sc_maint" will ding anyone who puts non-ascii
8390         in any of gnulib's .texi files.
8392 2014-01-03  Jim Meyering  <meyering@fb.com>
8394         freadable, fwritable, fwriting: declare with the "pure" attribute
8395         * lib/freadable.h (freadable): Declare with the "pure" attribute.
8396         * lib/fwritable.h (fwritable): Likewise.
8397         * lib/fwriting.h (fwriting): Likewise.
8398         Suggested by Bruno Haible.
8400         maint.mk: adapt openat.h-include-without-use test
8401         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
8402         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
8403         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
8404         With this change, running "make sc_maint" in gnulib's top-level
8405         directory now passes for me.
8407 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
8409         doc: use ASCII in .texi files where UTF-8 isn't needed
8410         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
8411         * doc/posix-functions/setkey.texi, doc/regex.texi:
8412         Use ASCII input, not UTF-8.
8414 2014-01-02  Jim Meyering  <meyering@fb.com>
8416         freading: declare with the "pure" attribute
8417         * lib/freading.h (freading): Declare with the "pure" attribute.
8419         manywarnings: remove -Wmudflap
8420         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
8421         it is no longer supported in gcc-4.9-to-be.
8423 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
8425         relocatable-script: remove unused code
8426         Problem reported by Reuben Thomas in:
8427         http://lists.gnu.org/archive/html/bug-gnulib/2013-12/msg00117.html
8428         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
8430 2014-01-01  Jim Meyering  <meyering@fb.com>
8432         maint: fix public-submodule-commit to work with newer git
8433         * top/maint.mk (public-submodule-commit): Remove excess quoting.
8434         We were over-quoting the test arguments, and somewhere prior to
8435         version 1.8.5.2.229, git stopped removing those excess quotes,
8436         which made the test fail, since the unexpanded strings would
8437         always differ; using GIT_TRACE=1 confirmed that the git merge-base
8438         command wasn't even being run.
8440 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
8442         doc: update main copyright year
8443         * doc/gnulib.texi: Update copyright date.
8445 2014-01-01  Eric Blake  <eblake@redhat.com>
8447         version-etc: new year
8448         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
8449         * all files: run 'make update-copyright'
8451 2013-12-24  Eric Blake  <eblake@redhat.com>
8453         passfd: give nicer error for recvfd at eof
8454         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
8455         * tests/test-passfd.c (main): Enhance test to cover this.
8457 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
8459         gettimeofday: port recent C++ fix to Emacs
8460         Without this further patch, Emacs won't build due to
8461         the portcheck failing.  Also, this simplifies the patch a bit.
8462         * lib/time.in.h (localtime, gmtime): Don't replace unless
8463         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
8464         * lib/time.in.h (localtime, gmtime):
8465         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
8466         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
8467         * modules/time (time.h):
8468         Don't worry about about the possibility of localtime and gmtime
8469         being absent; they're present in all C libraries we know about.
8470         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
8471         Don't assume sys_time is present and has been initialized.
8472         Instead, use a hack that should work even if it hasn't been.
8473         Don't use a portcheck for gmtime or localtime; this supports
8474         the hack.
8475         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
8477 2013-12-17  John W. Eaton  <jwe@gnu.org>
8479         gettimeofday: fix C++ crosscompilation
8481         Never replace gmtime and localtime by macros when compiling with
8482         C++, this prevents <ctime> from being included.
8484         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
8485         define gmtime and localtime as preprocessor macros.  Instead
8486         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
8487         REPLACE_LOCALTIME substitutions.
8488         * lib/time.in.h: Declare gmtime and localtime when needed.
8489         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
8490         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
8491         * modules/time: Depend on gettimeofday, and substitute the above
8492         variables in time.h.
8494 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
8496         qacl: port to Windows better
8497         See Eli Zaretskii in
8498         <http://lists.gnu.org/archive/html/emacs-devel/2013-12/msg00593.html>.
8499         * lib/file-has-acl.c (acl_access_nontrivial):
8500         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
8501         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
8503 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
8505         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
8506         * lib/gl_openssl.h: Cast void pointers to a specific type.
8508 2013-12-07  Pádraig Brady <P@draigBrady.com>
8510         open-tests: fix build failure with -Werror=old-style-declaration
8511         * tests/test-open.h: Reorder the inline to avoid the issue.
8513 2013-12-07  Pádraig Brady <P@draigBrady.com>
8515         md5, sha1, sha256, sha512: fix link error with partial libcrypto
8516         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
8517         init time, so that if early checks find crypto routines,
8518         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
8519         avoiding link failures.
8521 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
8523         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
8524         This provides a new way to specify the default for
8525         gl_CRYPTO_CHECK, one that is reflected in the --help message.
8526         Emacs uses this, as well as the old way.
8527         This attempts to implement a suggestion by Pádraig Brady in
8528         <http://lists.gnu.org/archive/html/coreutils/2013-12/msg00080.html>.
8529         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
8530         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
8532         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
8533         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
8534         Add support for a new option, --with-openssl=auto, which causes
8535         the library to be used if available and silently ignored if not.
8536         Add support to allow allow configure.ac to specify its own
8537         default, by setting with_openssl_default before invoking gl_INIT.
8539 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
8541         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
8542         Problem reported by Daiki Ueno in:
8543         http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00052.html
8544         * tests/test-open.h (__always_inline):
8545         New macro, if not already defined.
8546         (test_open): Use it.
8548 2013-12-04  Eric Blake  <eblake@redhat.com>
8550         include_next: minimize code duplication
8551         * modules/include_next (Depends-on): Add absolute-header.
8552         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
8553         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
8555 2013-12-04  Pádraig Brady <P@draigBrady.com>
8557         getcwd: fix compile error in configure check
8558         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
8560 2013-12-04  Pádraig Brady <P@draigBrady.com>
8562         regex: suppress core dumps from detection code
8563         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
8564         to suppress core dumps that may well occur on glibc systems.
8565         These core dumps might not be cleaned up automatically, or could
8566         trigger some system core dump handling logic.
8568 2013-12-03  Pádraig Brady <P@draigBrady.com>
8570         md5, sha1, sha256, sha512: support mandating use of openssl
8571         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
8572         description, to list the now 3 separate options.  also don't
8573         mention the default=no, since this is implicit given the option
8574         is described as --with-openssl rather than --without-openssl.
8575         If projects change the default they're free to document that.
8576         with --with-openssl[=yes] we now error out when the specified
8577         hash algorithm is not available in libcrypto.
8579 2013-12-03  Ivailo  <xakepa10@gmail.com>
8581         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
8582         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
8583         -Wformat-nonliteral checks, as these edge cases are part of the test.
8585 2013-12-03  Eric Blake  <eblake@redhat.com>
8587         regex: avoid glibc deadlock during configure
8588         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
8589         glibc bug 15078 in turn triggers bug 16159.
8590         Reported by Michal Privoznik.
8592 2013-12-02  Pádraig Brady <P@draigBrady.com>
8594         md5, sha1, sha256, sha512: use openssl routines if available.
8595         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
8596         routines will be used if available, requiring apps to link @LIB_CRYPTO@
8597         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
8598         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
8599         in the standard system location.
8600         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
8601         * m4/sha256.m4: Likewise with SHA256.
8602         * m4/sha512.m4: Likewise with SHA512.
8603         * m4/md5.m4: Likewise with MD5.
8604         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
8605         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
8606         * lib/sha256.h: Likewise with SHA256.
8607         * lib/sha512.h: Likewise with SHA512.
8608         * lib/md5.h: Likewise with MD5.
8609         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
8610         * lib/sha256.c: Likewise with SHA256.
8611         * lib/sha512.c: Likewise with SHA512.
8612         * lib/md5.c: Likewise with MD5.
8613         * modules/crypto/sha1 (Link:): Add the new optional lib.
8614         (Depends-on:): Add dependency on extern-inline.
8615         * modules/crypto/sha256: Likewise.
8616         * modules/crypto/sha512: Likewise.
8617         * modules/crypto/md5: Likewise.
8618         * modules/crypto/sha1-tests: Reference the lib here too.
8619         * modules/crypto/md5-tests: Likewise.
8620         * modules/crypto/gc-des-tests: Likewise.
8621         * modules/crypto/gc-hmac-md5-tests: Likewise.
8622         * modules/crypto/gc-hmac-sha1-tests: Likewise.
8623         * modules/crypto/gc-hmac-sha256-tests: Likewise.
8624         * modules/crypto/gc-hmac-sha512-tests: Likewise.
8625         * modules/crypto/gc-md5-tests: Likewise.
8626         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
8627         * modules/crypto/gc-sha1-tests: Likewise.
8628         * modules/crypto/gc-tests: Likewise.
8629         * modules/crypto/hmac-md5-tests: Likewise.
8630         * modules/crypto/hmac-sha1-tests: Likewise.
8631         * modules/crypto/hmac-sha256-tests: Likewise.
8632         * modules/crypto/hmac-sha512-tests: Likewise.
8634 2013-11-29  RV1971  <rv1971@web.de>
8636         base64: (trivial) fix compilation regression on some compilers
8637         * lib/base64.c: Don't return the void function,
8638         instead split to a separate return statement.
8640 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
8642         ignore-value: revert previous code change
8643         * lib/ignore-value.h (ignore_value): Use __extension__ and
8644         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
8645         <http://lists.gnu.org/archive/html/bug-gnulib/2013-11/msg00102.html>.
8646         Change the comment to try to explain this better.
8648 2013-11-27  Pádraig Brady <P@draigBrady.com>
8650         selinux-h: improve stub types and add more stub functions
8652         * lib/se-selinux.in.h: Change security_context_t to a typedef
8653         rather than a define, as it's a pointer type and so is better
8654         as a typedef to avoid issues declaring multiple variables
8655         with the comma operator.  Also add stub for string_to_security_class().
8656         * lib/se-context.in.h: Add stub functions for
8657         context_{type,range,role,user}_get().
8659 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
8661         ignore-value: prefer GCC version back through 2.0
8662         The code didn't match the comments, so I did a bit of software
8663         archaeology.  GCC 2.0 seems to support __extension__ and
8664         __typeof__, so fix both code and comments to use 2.0.
8665         * lib/ignore-value.h (ignore_value): Use __extension__ and
8666         __typeof__ for GCC 2.0 through 3.3, too.
8668 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
8670         pty: Activate the signature wrapper of forkpty.
8671         The intended preprocessor macro HAVE_FORKPTY is
8672         never defined, yet `lib/forkpty.c' depends on it.
8674         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
8675         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
8676         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
8678 2013-11-18  Jim Meyering  <meyering@fb.com>
8679         and Paul Eggert  <eggert@cs.ucla.edu>
8681         quotearg: don't attempt to store 1 << 31 into an "int"
8682         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
8683         gcc's new -fsanitize=undefined and running its tests triggered some
8684         new test failures due to undefined behavior, all with this diagnostic:
8685           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
8686             cannot be represented in type int
8687         Rather than shifting "1" left to form a mask, shift the bits right and
8688         simply use "1" as the mask.
8690 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
8692         error: depend on stdio
8693         Problem reported by Nikos Mavrogiannopoulos in
8694         <http://lists.gnu.org/archive/html/bug-gnulib/2013-11/msg00084.html>
8695         * modules/error (Depends-on): Add stdio.
8697 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
8699         * doc/relocatable-maint.texi (Supporting Relocation): Improve
8700         wording.
8701         Reported by Reuben Thomas <rrt@sc3d.org>.
8703 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
8705         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
8706         New function and macro, to work around _DARWIN_C_SOURCE problem.
8707         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
8709 2013-11-11  Pádraig Brady <P@draigBrady.com>
8711         base64: provide a fast path for encoding well sized buffers
8712         Avoid conditionals in the base64 encoding loop,
8713         which was seen to give 60% better throughput.
8714         * lib/base64.c (base64_encode_fast): A new function to be called
8715         when we don't want to NUL terminate, and we have enough space
8716         in the output to encode the given input.
8717         (base64_encode): Call the _fast() version when appropriate.
8718         Also remove a redundant mask with 0x3F on the first encoded byte.
8720 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
8722         extern-inline: port better to OS X 10.9
8723         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
8724         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
8725         OS X 10.9, except for g++ where the bug is still present.
8726         See <http://trac.macports.org/ticket/41033>.
8728 2013-11-08  Eric Blake  <eblake@redhat.com>
8730         fpending: fix regression on DragonFly BSD
8731         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
8732         * lib/fpending.h (__fpending): Don't declare twice.
8733         Reported by GW in
8734         <https://lists.gnu.org/archive/html/bug-m4/2013-11/msg00000.html>
8736 2013-11-05  Jim Meyering  <meyering@fb.com>
8738         hash: relax license to LGPLv2+, for libguestfs
8739         * modules/hash (License): Change from GPL to LGPLv2+.
8741 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
8743         intprops: port to Oracle Studio c99
8744         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
8745         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
8747 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
8749         obstack: pacify HP C
8750         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
8751         warning "conversion from pointer to smaller integer" from HP
8752         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
8753         C89 or later nowadays, so cast to void instead of int.  Privately
8754         reported by H.Merijn Brand.  Also, change header to match glibc's,
8755         to make checking against glibc easier.
8757 2013-10-29  Jim Meyering  <meyering@fb.com>
8759         maint.mk: prefer gpgv2 over gpgv
8760         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
8761         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
8762         Reported by Gary Vaughan.
8764 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
8766         isnan: port to VAX
8767         Reported by John Klos for NetBSD-5/VAX in
8768         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00133.html>.
8769         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
8770         (FUNC): Use it.
8772 2013-10-28  Jim Meyering  <meyering@fb.com>
8774         gnulib-tool: protect against CDPATH
8775         * gnulib-tool: Many "cd" built-in functions print a directory name
8776         to stdout when CDPATH is set, e.g.,
8777           $ bash -c 'CDPATH=/; cd tmp'
8778           /tmp
8779         Unset it, when possible.  Prompted by a comment from Bruce Korb.
8781         maint.mk: restore functionality removed by recent change...
8782         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
8783         the context of a shallow-cloned gnulib repository: "git describe"
8784         would fail in such a directory.  However, that change made it so
8785         the reported gnulib revision no longer includes the version number
8786         or a commit count, even when run from a full clone.
8787         * top/maint.mk (gnulib-version): Use the full "git describe"
8788         output when possible, e.g., the form above, rather than the
8789         abbreviated, no-tag, no-commit-count string, and fall back to
8790         using a 10-byte hash, rather than the default minimal-length
8791         hash prefix, since while the minimal-length one may be fine today,
8792         it is likely not to be unique for very long.
8794 2013-10-26  Jim Meyering  <meyering@fb.com>
8796         maint.mk: fix "release" target to build _version
8797         This fixes a bug in README-release whereby following the outlined
8798         steps, one would publish a tarball whose programs would report
8799         --version output not consistent with the package version number.
8800         This bug caused grep-2.15 to produce a grep program whose
8801         --version option made it print 2.14.56-1e3d rather than 2.15.
8802         * top/maint.mk (release): Making this target build "_version"
8803         ensures that the new version number is reflected in configure.
8805 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
8807         install-reloc: Support multi-binary installation.
8808         * build-aux/install-reloc: Support installing multiple programs in
8809         one invocation, as done by Automake starting with commit
8810         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
8811         Haible <bruno@clisp.org>, archived at
8812         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
8813         Reported by Sylvain <beuc@gnu.org>.
8815 2013-10-21  Michael Haubenwallner <michael.haubenwallner@salomon.at>
8817         selinux-h: Really build without selinux when library is missing.
8818         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
8819         continue without selinux, as already told in the warning message.
8821 2013-10-21  Jim Meyering  <meyering@fb.com>
8823         regex: also remove dependency on HAVE_WCSCOLL
8824         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
8826 2013-10-21  Reuben Thomas <rrt@sc3d.org>
8828         xfreopen: Fix typo. s/frepoen/freopen/
8829         * lib/xfreopen.c: Fix description.
8830         * modules/xfreopen: Likewise.
8832 2013-10-21  Jim Meyering  <meyering@fb.com>
8834         regex: don't depend on wcscoll
8835         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
8836         It is no longer used.
8838 2013-10-20  Jim Meyering  <meyering@fb.com>
8840         error: add the printf attribute to a static function
8841         * lib/error.c (error_tail): Add the printf attribute, to placate
8842         gcc's -Werror=suggest-attribute=format option.
8844 2013-09-30  Jim Meyering  <meyering@fb.com>
8846         fpending, obstack, strerror-override: use pure+const function attrs
8847         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
8848         * lib/obstack.c (_obstack_allocated_p): Likewise.
8849         * lib/obstack.h (_obstack_memory_used): Likewise.
8850         (_obstack_memory_used): Likewise.
8851         * lib/strerror-override.h (strerror_override): Declare with
8852         the "const" attribute.
8854 2013-10-18  Eric Blake  <eblake@redhat.com>
8856         extern-inline: make safe for -Wundef usage
8857         Reported by Vladimir 'phcoder' Serbinenko in
8858         https://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00078.html
8859         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
8861 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
8863         mkfifo-tests, etc.: allow HP-UX 11.11 bug
8864         Problem reported by Daniel Richard G. in
8865         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00068.html>.
8866         * doc/posix-functions/mkfifo.texi (mkfifo):
8867         * doc/posix-functions/mkfifoat.texi (mkfifoat):
8868         * doc/posix-functions/mknod.texi (mknod):
8869         * doc/posix-functions/mknodat.texi (mknodat):
8870         Document the HP-UX 11.11 bug.
8871         * tests/test-mkfifo.h (test_mkfifo):
8872         Allow the HP-UX 11.11 bug.
8874 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
8876         acl: allow cross-compilation to Gentoo
8877         Problem reported by Gabriel Marcano in
8878         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00058.html>.
8879         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
8880         test only whether it links.
8882 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
8884         mgetgroups: remove dependency on realloc-gnu
8885         The dependency violates the comment in realloc-gnu, which
8886         says that tests can't depend on realloc-gnu; some tests depend
8887         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
8888         Problem reported by Daniel Richard G. in
8889         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00056.html>.
8890         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
8891         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
8892         not realloc-gnu.
8894 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
8896         regex-tests: port to HP-UX 11.11
8897         Problem reported by Daniel Richard G. in
8898         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00052.html>.
8899         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
8901 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
8903         verify: document some 'assume' pitfalls
8904         * doc/verify.texi (Compile-time Assertions):
8905         Mention that 'assume (E)' can sometimes slow things down.
8906         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
8908 2013-10-10  Eric Blake  <eblake@redhat.com>
8910         strtoumax: fix typo in previous commit.
8911         * modules/strtoumax (Depends-on): Fix typo.
8912         * modules/strtoimax (Depends-on): Likewise.
8914 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
8916         strtoumax: port to Solaris 8
8917         This problem was introduced in the recent HP-UX patch.
8918         Reported by Tom G. Christensen in
8919         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00037.html>.
8920         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
8921         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
8923 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
8925         strtoimax, strtoumax: port to HP-UX 11.11
8926         Problem reported by Daniel Richard G. in
8927         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00023.html>.
8928         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
8929         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
8930         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
8931         REPLACE_STRTOUMAX.
8932         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
8933         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
8934         Replace the function if defined as a macro but not as a function.
8935         * modules/inttypes-incomplete (inttypes.h): Substitute
8936         REPLACE_STRTOUMAX.
8937         * modules/strtoumax (configure.ac): Replace strtoumax if
8938         REPLACE_STRTOUMAX.
8940 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
8942         strtoimax: port to HP-UX 11.11
8943         Problem reported by Daniel Richard G.
8944         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
8945         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
8946         they might clash with inttypes.h.
8948 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
8950         New module 'count-trailing-zeros'.
8951         * MODULES.html.sh: Mention it.
8952         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
8953         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
8954         * modules/count-trailing-zeros-tests:
8955         * tests/test-count-trailing-zeros.c:
8956         New files.
8958         count-leading-zeros: port to MSC; support types wider than 64 bits
8959         The ideas behind the MSC port are stolen from Emacs.
8960         * lib/count-leading-zeros.h:
8961         Don't include verify.h: it's no longer needed, as types wider than
8962         64 bits are now supported.
8963         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
8964         performance with MSC.  All uses changed.  Do not assume that TYPE
8965         has at most 64 bits.
8966         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
8967         All uses changed.  Fold the subtraction from 31 into the table.
8969         count-one-bits: port to MSC; support types wider than 64 bits
8970         The ideas behind the MSC port are stolen from Emacs.
8971         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
8972         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
8973         Don't include verify.h: it's no longer needed, as types wider than
8974         64 bits are now supported.
8975         (COUNT_ONE_BITS_GENERIC): New macro.
8976         (popcount_supported) [_MSC_VER]: New inline function.
8977         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
8978         performance with MSC.  All uses changed.  Do not assume that TYPE
8979         has at most 64 bits.
8980         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
8982 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
8984         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
8985         * lib/mountlist.c (read_file_system_list): fix leak of directory
8986         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
8988 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
8990         tests: improve diagnostic when an assertion fails
8991         * tests/macros.h (ASSERT): Report the assertion that failed.
8993 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
8995         verify: new macro 'assume'
8996         This is taken from Emacs, and should be generally useful.
8997         * doc/verify.texi (assume): Document it.
8998         * lib/verify.h (assume): New macro.
8999         (__has_builtin): Expand to 0 if not defined.
9001 2013-09-26  Eric Blake  <eblake@redhat.com>
9003         dup2, dup3: work around another cygwin crasher
9004         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
9005         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
9006         * tests/test-dup2.c (main): Likewise.
9007         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
9008         * lib/dup3.c (dup3): Likewise.
9009         * doc/posix-functions/dup2.texi (dup2): Document it.
9010         * doc/glibc-functions/dup3.texi (dup3): Likewise.
9012         getdtablesize: work around cygwin issue
9013         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
9014         * modules/getdtablesize (configure.ac): Build replacement.
9015         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
9016         * modules/unistd (Makefile.am): Expose the witness.
9017         * lib/unistd.in.h (getdtablesize): Declare replacement.
9018         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
9019         * tests/test-getdtablesize.c (main): Test it.
9020         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
9022 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
9024         pmccabe2html: escaping of special characters
9025         Escape all '<', '>', and '&' in HTML output.
9026         * build-aux/pmccabe2html (html_fnc): Call gsub()
9027         instead of sub() to capture all '<', '>', and '&'.
9028         Neither of '<' and '>' is special in a regexp,
9029         so first arguments to gsub() are corrected. Also,
9030         in replacement strings, ampersand must be escaped.
9031         Finally, '&' must be handled first, then '<' and '>'.
9033 2013-09-24  Eric Blake  <eblake@redhat.com>
9035         manywarnings: enable nicer gcc warning messages
9036         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
9037         some -f options for optimal warnings.
9039 2013-09-21  Jim Meyering  <meyering@fb.com>
9041         timespec: use the new TIMESPEC_RESOLUTION in a few more places
9042         * lib/timespec-add.c (timespec_add): Also replace 999999999
9043         with TIMESPEC_RESOLUTION - 1.
9044         * lib/timespec-sub.c (timespec_sub): Likewise.
9046 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
9048         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
9049         Problem reported by Dagobert Michelsen via Eric Blake in
9050         <http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00052.html>.
9051         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
9052         not AC_COMPILE_IFELSE.
9054 2013-09-23  Eric Blake  <eblake@redhat.com>
9056         configmake: support new --runstatedir option
9057         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
9058         even if autoconf was too old to provide the command line option.
9059         * modules/configmake (Makefile.am): Propagate it to .h file.
9061 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
9063         ctype, string: depend on extern-inline
9064         This is needed to complete the recent OS X fixes.
9065         Also, fix related documentation as suggested by Eric Blake.
9066         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
9067         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
9068         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
9069         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
9070         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
9071         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
9072         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
9073         * doc/posix-functions/toupper.texi:
9074         List the 'ctype' gnulib module.
9075         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
9076         * doc/posix-functions/strncpy.texi:
9077         List the 'string' gnulib module.
9078         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
9079         Add string.
9080         * modules/ctype, modules/string (Depends-on): Add extern-inline.
9082 2013-09-19  Pádraig Brady  <P@draigBrady.com>
9084         userspec: support optional parameters to parse_user_spec()
9085         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
9086         then avoid group processing and treat the full spec as a user.
9087         (parse_with_separator): Allow the USERNAME and GROUPNAME to
9088         be optional params (NULL), in which case they're ignored.
9090 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
9092         timespec: new function make_timespec, and new constants
9093         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
9094         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
9095         (make_timespec): New function.
9096         * lib/dtotimespec.c (dtotimespec):
9097         * lib/timespec-add.c (timespec_add):
9098         * lib/timespec-sub.c (timespec_sub):
9099         * lib/utimens.c (validate_timespec):
9100         * lib/utimensat.c (rpl_utimensat):
9101         Use these new constants and functions.
9103         stdio: OS X port of putc_unlocked + extern inline
9104         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
9105         * doc/posix-functions/putc_unlocked.texi:
9106         * doc/posix-functions/putchar_unlocked.texi:
9107         Document this portability problem.
9109         signal: OS X port of sigaddset etc. + extern inline
9110         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
9111         (sigismember): #undef on problematic Apple platforms.
9112         * doc/posix-functions/sigaddset.texi:
9113         * doc/posix-functions/sigdelset.texi:
9114         * doc/posix-functions/sigemptyset.texi:
9115         * doc/posix-functions/sigfillset.texi:
9116         * doc/posix-functions/sigismember.texi:
9117         Document this portability problem.
9119         extern-inline: do not always suppress extern inline on OS X
9120         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
9121         extern inline on Apple only if the particular compile-time
9122         configuration is known to have the problem.
9123         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
9124         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
9125         other Gnulib modules.
9127         extern-inline: document fixes for ctype and wctype macros
9128         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
9129         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
9130         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
9131         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
9132         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
9133         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
9134         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
9135         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
9136         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
9137         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
9138         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
9139         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
9140         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
9141         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
9142         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
9143         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
9144         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
9145         * doc/posix-functions/strncpy.texi:
9146         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
9147         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
9148         Document that Gnulib fixes portability problems with these
9149         functions on OS X 10.8 and earlier when called from plain inline
9150         or extern inline functions.
9152 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
9154         fflush, freadahead, fseeko: Fix for Android
9155         Suggested by Bruno Haible in:
9156         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00306.html>
9157         * lib/stdio-impl.h: Use local __sfileext definition.
9159 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
9161         pmccabe2html: Portability to other awk versions.
9162         The functions systime() and strftime() are available
9163         in Gawk only.  Properly close two HTML-tags 'style'
9164         and 'span'.
9165         * build-aux/pmccabe2html (BEGIN): Store timing
9166         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
9167         systime() in HTML_COMMENT.
9168         (html_header): Correctly close tag 'style'.
9169         (END): Replace strftime() by CHRONOS_TIME.  Close
9170         tag 'span' correctly, not as 'div'.
9172 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
9174         getgroups: statement without effect
9175         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
9176         Change equality conditional to expected assignment.
9178 2013-09-09  Eric Blake  <eblake@redhat.com>
9180         glob: fix compilation
9181         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
9183 2013-09-07  Eric Blake  <eblake@redhat.com>
9185         glob: fix build for platforms without __THROW
9186         * lib/glob.in.h (__THROW): Add definition again.
9188 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
9190         regex-quote: fix buffer access out of bounds
9191         http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00001.html
9192         * lib/regex-quote.c (regex_quote_spec_pcre):
9193         Fix typo that resulted in an out-of-bounds read.
9195 2013-09-04  Eric Blake  <eblake@redhat.com>
9197         glob: avoid -Wattribute warnings on glibc
9198         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
9199         __THROWNL, not __THROW, on static functions.
9200         * lib/glob.in.h (__THROW): Adjust...
9201         (__THROWNL): ...accordingly.
9203 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
9205         headers: check that _GL_INLINE_HEADER_BEGIN is defined
9206         Suggested by Bruce Korb in:
9207         http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00070.html
9208         * doc/extern-inline.texi (extern inline):
9209         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
9210         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
9211         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
9212         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
9213         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
9214         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
9215         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
9216         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
9217         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
9218         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
9219         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
9220         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
9221         * lib/xtime.h:
9222         Check that _GL_INLINE_HEADER_BEGIN is defined.
9224 2013-08-29  Pádraig Brady  <P@draigBrady.com>
9226         bootstrap: remove the --version requirement from ancillary tools
9227         * build-aux/bootstrap (check_exists): A new refactored function to
9228         determine if a command exists.
9229         (find_tool): Use the new function which does not require the
9230         --version option to be supported.
9231         (check_versions): Use the new function.
9233 2013-08-26  Simon Josefsson  <simon@josefsson.org>
9235         gc: support HMAC-SHA256 and HMAC-SHA512.
9236         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
9237         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
9238         functions.
9239         (gc_hmac_md5): Use symbolic constant.
9240         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
9241         (gc_hmac_sha256, gc_hmac_sha512): New functions.
9242         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
9243         * m4/sha256.m4: Protect against empty expansion.
9244         * m4/sha512.m4: Likewise.
9245         * lib/hmac-sha256.c: New file.
9246         * lib/hmac-sha512.c: Likewise.
9247         * m4/gc-hmac-sha256.m4: Likewise.
9248         * m4/gc-hmac-sha512.m4: Likewise.
9249         * m4/gc-sha256.m4: Likewise.
9250         * m4/gc-sha512.m4: Likewise.
9251         * modules/crypto/gc-hmac-sha256: Likewise.
9252         * modules/crypto/gc-hmac-sha256-tests: Likewise.
9253         * modules/crypto/gc-hmac-sha512: Likewise.
9254         * modules/crypto/gc-hmac-sha512-tests: Likewise.
9255         * modules/crypto/hmac-sha256: Likewise.
9256         * modules/crypto/hmac-sha256-tests: Likewise.
9257         * modules/crypto/hmac-sha512: Likewise.
9258         * modules/crypto/hmac-sha512-tests: Likewise.
9259         * tests/test-gc-hmac-sha256.c: Likewise.
9260         * tests/test-gc-hmac-sha512.c: Likewise
9261         * tests/test-hmac-sha256.c: Likewise.
9262         * tests/test-hmac-sha512.c: Likewise
9264 2013-08-24  Daiki Ueno  <ueno@gnu.org>
9266         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
9267         of AC_CHECK_DECLS.
9269 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
9271         selinux-at: omit unnecessary include
9272         * lib/selinux-at.c: Don't include dosname.h; not needed, since
9273         this source file doesn't use its macros, and subsidiary files that
9274         use the macros already include it.
9276 2013-08-21  Eric Blake  <eblake@redhat.com>
9278         d-ino: avoid false negative on symlink
9279         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
9280         Reported by Stephane Chazelas.
9282 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
9284         bootstrap: port to OpenBSD sed
9285         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
9286         does not interpret `-' as a file argument to mean stdin.
9288 2013-08-15  Eric Blake  <eblake@redhat.com>
9290         warnings: minor optimization
9291         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
9293         warnings: check -Wfoo rather than -Wno-foo
9294         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
9295         -Wno-, test if the compiler recognizes the positive form instead.
9297 2013-08-15  Karl Berry  <karl@gnu.org>
9299         * config/srclist-update: add option "doclicense" to placate
9300         pulling *.texi files from Emacs.  Write terse usage
9301         documentation at the top.
9303 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
9305         xvasprintf-tests: port to GCC with hardening flags
9306         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
9307         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
9308         http://lists.gnu.org/archive/html/bug-diffutils/2013-08/msg00002.html
9310 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
9312         fpending: port to recent Cygwin change to stdio_ext.h
9313         Reported by LRN in
9314         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00028.html>.
9315         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
9316         just declare __fpending unless it's a macro.
9317         A duplicate decl shouldn't hurt.
9318         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
9319         call compiles and links, instead of separately checking for
9320         decl and lib function.
9321         * modules/fpending (configure-ac):
9322         Adjust to fpending.m4's renaming of shell variable.
9324 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
9326         sys_time: port to OpenBSD
9327         * lib/sys_time.in.h: Simply delegate to the system's header
9328         in the BSDish cases as well.  Problem reported by Mike Miller in
9329         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00016.html>.
9330         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
9331         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
9332         wider than time_t.
9334 2013-08-09  Pádraig Brady <P@draigBrady.com>
9336         bootstrap: support checksum utils having -c but not --status
9337         * build-aux/bootstrap: Only look for sha1sum if updating po files.
9338         Add sha1 to the list of supported checksum utils since it's now
9339         supported through adjustments below.
9340         (update_po_files): Remove the use of --status
9341         in a way that will suppress all error messages, but since this is
9342         only used to minimize updates, it shouldn't cause an issue.
9343         Exit early if there is a problem updating the po file checksums.
9344         (find_tool): Remove the check for --version support as this
9345         is optional as per commit 86186b17.  Don't even check for the
9346         presence of the command as if that is needed, it's supported
9347         through configuring prerequisites in bootstrap.conf.
9348         Prompt that when a tool isn't found, one can define an environment
9349         variable to add to the hardcoded search list.
9351 2013-08-05  Jim Meyering  <meyering@fb.com>
9353         regex: port to non-glibc/lock-using systems
9354         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
9355         system with GNULIB_LOCK would fail due to absence of the
9356         included "glthread/lock.h".  This would affect any package
9357         for which the "lock" module is used only by the regex module,
9358         and not explicitly used.
9359         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
9360         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
9361         Add a dependency on the "lock" module.
9363 2013-07-20  Daiki Ueno  <ueno@gnu.org>
9365         localecharset: make locale_charset thread-safe on Mac OS X
9366         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
9367         instead of MB_CUR_MAX.
9369 2013-07-20  Daiki Ueno  <ueno@gnu.org>
9371         gettext: update to version 0.18.3
9372         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
9373         require AC_PROG_SED to allow user to specify custom sed command when
9374         generating en@quot PO file.
9376 2013-07-18  Werner Lemberg <wl@gnu.org>  (tiny change)
9378         bootstrap: use correct source when copying build-aux files
9379         * build-aux/bootstrap (gnulib_extra_files): This variable is
9380         relative to upstream gnulib layout, not downstream.
9382 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
9384         tmpdir: fix bug in VMS port
9385         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
9386         See Steven M. Schweda in
9387         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00026.html>.
9389 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
9391         tmpdir: port to VMS, to // != /, and to long dirs
9392         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
9393         __secure_getenv, so that we're more like the glibc version.
9394         All uses changed.
9395         (path_search): Don't put slash after directory if __VMS.
9396         Problem reported by Steven M. Schweda in
9397         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00019.html>.
9398         Simplify code to add slash; no need for a loop.
9399         Do not remove trailing slash from "//".
9400         Do not assume dlen <= INT_MAX.
9402 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
9404         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
9405         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
9406         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
9407         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00015.html>.
9409         accept4, dup3, pipe2: port to Cygwin
9410         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
9411         * lib/accept4.c (accept4) [O_BINARY]:
9412         * lib/dup3.c (dup3) [O_BINARY]:
9413         * lib/pipe2.c (pipe2) [O_BINARY]:
9414         Use set_binary_mode, not setmode.
9415         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
9416         * modules/binary-io (Depends-on): Remove module indicator.
9417         These last two bits undo the previous change to pipe2 and binary-io.
9419 2013-07-09  Pádraig Brady  <P@draigBrady.com>
9421         mountlist: add support for deallocating returned list entries
9422         * lib/mountlist.c (free_mount_entry): A new exported function
9423         to deallocate a mount list entry.
9424         (read_file_system_list): Refactor to use the new deallocation function.
9425         Suggested by Anton Ovchinnikov.
9427 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
9429         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
9430         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
9431         * lib/stdalign.in.h (_Alignas, _Alignof):
9432         Port to FreeBSD 9.1, and to C11 and C++11.
9433         (_Alignas): Also support ICC.
9434         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
9435         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
9437 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
9439         fnmatch: don't goto over declaration
9440         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
9441         undefined behavior for goto over a declaration.
9442         Problem reported by Charlie Brown in
9443         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00009.html>.
9445         pipe2: decouple from binary-io a bit
9446         This is for Emacs, which needs pipe2 but not binary-io.
9447         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
9448         * modules/binary-io (Depends-on): Add module indicator.
9450 2013-07-03  Eric Blake  <eblake@redhat.com>
9452         mgetgroups: relax license to LGPLv2+
9453         * modules/getugroups (License): Change from GPLv3+.
9454         * modules/mgetgroups (License): Likewise.
9455         * modules/getgroups (License): Change from LGPLv3+.
9457         xalloc-oversized: relax license to LGPLv2+
9458         * modules/xalloc-oversized (License): Change from GPLv3+.
9460         nproc: relax license to LGPLv2+
9461         * modules/nproc (License): Change from LGPLv3+.
9463         bootstrap: honor --no-git
9464         * build-aux/bootstrap: Don't even try to use git when user is
9465         pointing to a static checkout.
9467 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
9469         ignore-value: port to gcc -pedantic
9470         * lib/ignore-value.h (ignore_value):
9471         Port to gcc -pedantic, by using __extension__.
9472         Reindent as per usual gnulib style nowadays.
9473         Simplify GCC version check.
9475 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
9477         extern-inline: port to gcc -std=c89
9478         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
9479         Do not use __gnu_inline__ if pedantic and pre-C99.
9481 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
9483         doc: document extern-inline
9484         * doc/extern-inline.texi: New file.
9485         * doc/gnulib.texi (alloca-opt): Include it.
9486         * m4/extern-inline.m4: Move some comments to documentation,
9487         and others closer to what they describe.
9489         doc: chatter less
9490         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
9491         (updated-stamp): Use it.  This causes 'make' to output just
9492         one file name rather than zillions.
9494         fflush, fseeko: port to musl cross-compiles
9495         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
9496         on some implementation that (1) is not known to be buggy,
9497         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
9498         cross-compiled to so we can't easily check for lack of
9499         conformance.  This is for cross-compiling to musl.
9500         Reported by Rich Felker in
9501         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00043.html>.
9502         * m4/fclose.m4 (gl_FUNC_FCLOSE):
9503         * m4/fflush.m4 (gl_FUNC_FFLUSH):
9504         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
9505         Adjust to above change.
9506         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
9507         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
9508         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
9509         known not to work, or unknown.
9511 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
9513         msvc-inval: port to mingw-w64
9514         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
9515         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
9516         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00039.html>.
9518 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
9520         getcwd-lgpl: port to Tru64
9521         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
9522         Problem reported by Steven M. Schweda in
9523         <http://lists.gnu.org/archive/html/bug-gzip/2013-06/msg00010.html>.
9525         tests: port large-fd POSIX spawn tests to OS X
9526         Problem reported by Daiki Ueno in
9527         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00031.html>.
9528         * tests/test-posix_spawn_file_actions_addclose.c:
9529         * tests/test-posix_spawn_file_actions_adddup2.c:
9530         * tests/test-posix_spawn_file_actions_addopen.c:
9531         Include <limits.h>, for OPEN_MAX, if available.
9532         (big_fd): New static function.
9533         (main): Use it.
9535 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
9537         tests/nap.h: use an adaptive delay to avoid ctime update issues
9538         The recent change in nap.h (5191133e) decreased the probability of lost
9539         races to about a third, however such problems could still be observed
9540         in virtual machines and openSUSE's OBS.
9541         Before, nap() detected the needed time once empirically and then used
9542         that delay (together with a small correction multiplier) in further
9543         calls.  This problem has been reported and discussed several times,
9544         including guesses about possible kernel issues:
9545         https://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html
9546         http://lists.gnu.org/archive/html/coreutils/2012-03/msg00088.html
9547         https://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00226.html
9548         http://bugs.gnu.org/12820
9549         https://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html
9550         https://lists.gnu.org/archive/html/bug-gnulib/2009-11/msg00007.html
9551         Now, nap() avoids the race alltogether by verifying on a reference
9552         file whether a timestamp difference has happened.
9553         * tests/nap.h (nap_fd): Define file descriptor variable for the
9554         witness file.
9555         (nap_works): Change return value to bool.  Change passing
9556         the old file's status by value instead of by reference as this function
9557         does no longer update that timestamp; rename the function argument from
9558         st to old_st.  Remove the local variables cdiff and mdiff because that
9559         function now returns true/false instead of the precise delay.
9560         (guess_delay): Remove function.
9561         (clear_tmp_file): Add new function to close and unlink the witness file.
9562         (nap): Instead of re-using the delay which has been calculated during
9563         the first call, avoid the race by actually verifying that a timestamp
9564         difference can be observed on the current file system.  Use an adaptive
9565         approach for the delay to minimize execution time.  Assert that the
9566         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
9567         = 2^31 - 1 = 2.1s.
9568         Use atexit to call clear_tmp_file when the process terminates.
9570 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
9572         sig2str: port to C++
9573         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
9574         Reported by Daniel J Sebald in
9575         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00000.html>.
9577 2013-05-30  Eric Blake  <eblake@redhat.com>
9579         docs: mention cygwin shortcoming in <sys/un.h>
9580         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
9582         vasnprintf: silence mingw compiler warning
9583         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
9585 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
9587         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
9588         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
9589         This fixes a porting bug I recently reintroduced in regex, and
9590         some other instances that I discovered while testing the fix.
9591         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
9592         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
9593         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
9594         with an empty argument if this is a pedantic pre-C99 GCC.
9595         * lib/verify.h: Do not use _Static_assert if this is a pedantic
9596         pre-C11 GCC.
9598         regex: adapt to locking regime instead of depending on pthread
9599         Instead of depending on pthread, adapt to whatever thread
9600         modules are in use.  Problem reported by Ludovic Courtès in
9601         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00082.html>
9602         and by Mats Erik Andersson in
9603         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00100.html>.
9604         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
9605         Support either the 'lock' module, or the 'pthread' module, or
9606         no module.
9607         (lock_lock, lock_unlock): New macros.
9608         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
9609         * modules/lock, modules/pthread (configure.ac): Add module indicator.
9610         * modules/regex (Depends-on): Remove pthread.
9612 2013-05-22  Eric Blake  <eblake@redhat.com>
9614         getgroups: document portability issues
9615         * doc/glibc-functions/initgroups.texi (initgroups): Mention
9616         multithread safety.
9617         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
9618         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
9619         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
9620         getugroups.
9621         * doc/posix-functions/getgroups.texi (getgroups): Mention
9622         multithread safety and mgetgroups.
9624 2013-05-22  Bernhard Voelker <mail@bernhard-voelker.de>
9626         test-lchown, test-chown: also skip test if chown fails with EPERM
9627         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
9628         skip this test, to handle FAT file systems.
9629         * tests/test-chown.h (test_chown): Likewise.
9631 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
9633         regex: fix dfa race in multithreaded uses
9634         Problem reported by Ludovic Courtès in
9635         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00058.html>.
9636         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
9637         New macros.  All uses of __libc_lock_define, __libc_lock_init
9638         changed to use the first two of these.
9639         (__libc_lock_lock, __libc_lock_unlock): New macros, for
9640         non-glibc platforms.
9641         (struct re_dfa_t): Define the lock unconditionally.
9642         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
9643         '#ifdef _LIBC"s.
9644         * modules/regex (Depends-on): Add pthread, if we use the
9645         included regex.
9647         * lib/regcomp.c: Do actions that are not needed for glibc,
9648         but may be needed elsewhere.
9649         (regfree, re_compile_internal): Destroy the lock.
9650         (re_compile_internal): Check for lock-initialization failure.
9652         malloca: port to compilers that reject size-zero arrays
9653         This fixes a bug introduced in my previous patch.
9654         * lib/malloca.c (struct preliminary_header): Use an int
9655         rather than a character array of size int; that's simpler.
9656         (struct header): Remove, replacing with ...
9657         (union header): New type.  This avoids the need for declaring a
9658         character array of size zero, which is not allowed on some platforms.
9659         All uses changed.
9661 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
9663         parse-datetime, tests: don't use "string" + int
9664         Recent versions of 'clang' complain about C source code that
9665         uses expressions of the form '"string literal" + integer',
9666         I guess on the theory that it's confusing for readers who are
9667         used to C++.  On those grounds I suppose it's OK to make this
9668         minor style change.
9669         * lib/parse-datetime.y (parse_datetime):
9670         * tests/test-fchdir.c (main):
9671         * tests/test-snprintf-posix.h (test_function):
9672         * tests/test-snprintf.c (main):
9673         * tests/test-vasnprintf-posix.c (test_function):
9674         * tests/test-vasnprintf.c (test_function):
9675         * tests/test-vsnprintf.c (main):
9676         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
9677         Rewrite '"str" + E' to '&"str"[E]'.
9679 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
9681         argmatch: port to C++
9682         * lib/argmatch.h [__cplusplus]: Add extern "C".
9684         argp: typo fix
9685         * lib/argp-help.c: Typo in comment.
9687 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
9689         manywarnings: update for GCC 4.8.0
9690         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
9691         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
9692         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
9693         -Wmissing-noreturn, as they are duplicates of other warnings.
9694         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
9695         was documented to be flaky in earlier versions of GCC.
9697         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
9698         * tests/test-spawn.c (main):
9699         * tests/test-sys_socket.c (main):
9700         * tests/test-sys_wait.c (main):
9701         Don't have a switch value that isn't covered by a case.
9703         getaddrinfo-tests: port --enable-gcc-warnings to clang
9704         * tests/test-getaddrinfo.c (simple):
9705         Avoid casts from looser to stricter-aligned pointers.
9707         thread: port --enable-gcc-warnings to clang
9708         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
9709         Include <signal.h>, to pacify a warning about pthread_sigmask.
9711         stdio: use __REDIRECT for fwrite, fwrite_unlocked
9712         * lib/stdio.in.h (fwrite):
9713         When working around bug 11959, use __REDIRECT rather than '#define
9714         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
9715         fix the -Wunused-value issue with clang, and it works with GCC too.
9716         Problem with targeting reported by Eric Blake in
9717         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00067.html>.
9718         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
9719         debugging the fwrite issue.
9721         stdio: port --enable-gcc-warnings to clang
9722         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
9723         since the GCC workaround for fwrite does not pacify clang.
9725         sig2str: port --enable-gcc-warnings to clang
9726         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
9728         obstack: port --enable-gcc-warnings to clang
9729         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
9730         Avoid casts from looser to stricter-aligned pointers.
9732         memchr2: port --enable-gcc-warnings to clang
9733         * lib/memchr2.c (memchr2):
9734         Avoid casts from looser to stricter-aligned pointers.
9736         mbsstr: port --enable-gcc-warnings to clang
9737         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
9738         Avoid casts from looser to stricter-aligned pointers.
9740         malloca: port --enable-gcc-warnings to clang
9741         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
9742         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
9744         inttostr: port --enable-gcc-warnings to clang
9745         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
9747         warnings: port to clang
9748         Problem reported by Daniel P. Berrange via Eric Blake in
9749         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00055.html>.
9750         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
9751         (gl_WARN_ADD): Use it.
9753 2013-05-11  Jim Meyering  <meyering@fb.com>
9755         quotearg: do not read beyond end of buffer
9756         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
9757         end of an ARG for which no length was specified.  With an N-byte
9758         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
9759         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
9760         via coreutils' misc/sort-debug-keys.sh test and detected by running
9761         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
9762         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
9763         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
9764         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
9765         characters correctly."
9767 2013-05-11  Daiki Ueno  <ueno@gnu.org>
9769         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
9770         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
9771         compilation target is Mac OS X 10.6.
9772         Problem reported by parafin and Andoni Morales in
9773         <http://savannah.gnu.org/bugs/?37844> and
9774         <http://lists.gnu.org/archive/html/bug-gettext/2013-05/msg00007.html>.
9776 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
9778         mkdir-p: remove assumptions about umask and mode
9779         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
9780         umask is 0, or that MODE is a subset of MODE_BITS.
9782 2013-05-10  Eric Blake  <eblake@redhat.com>
9784         maint.mk: catch more abuse of HAVE_DECL in syntax-check
9785         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
9787 2012-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
9789         deps: require Automake >= 1.9.6 in generated Makefile fragments
9791         That is the same minimal version required in the DEPENDENCIES file.
9792         Moreover, the old code generated a requirement of Automake >= 1.5,
9793         and that is an insanely outdated version.
9795         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
9796         * tests/havelib/rpathlx/Makefile.am: Likewise.
9797         * tests/havelib/rpathly/Makefile.am: Likewise.
9798         * tests/havelib/rpathlyx/Makefile.am: Likewise.
9799         * tests/havelib/rpathlz/Makefile.am: Likewise.
9800         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
9801         * tests/havelib/rpathx/Makefile.am: Likewise.
9802         * tests/havelib/rpathy/Makefile.am: Likewise.
9803         * tests/havelib/rpathz/Makefile.am: Likewise.
9805 2013-05-08  Eric Blake  <eblake@redhat.com>
9807         bootstrap: AC_INIT may have more than four parameters
9808         * build-aux/bootstrap (extract_package_name): Correctly extract
9809         non-empty tarname field.  Avoid range in regex.
9810         Based on a report by Sami Kerola <kerolasa@iki.fi>.
9812 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
9814         qacl: port to MS-Windows port of GNU Emacs
9815         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
9816         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
9817         port of GNU Emacs.  Problem reported by Eli Zaretskii in
9818         <http://bugs.gnu.org/14295#14>.
9820 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
9822         acl: include quote.h
9823         * lib/copy-acl.c: Include quote.h.
9824         * lib/set-acl.c: Likewise.
9826 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
9828         fchownat, renameat, unlinkat: update statat dependencies
9829         These modules use statat and lstatat, not fstatat; so depend on
9830         the statat module, which was split out recently from fstatat.
9831         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
9832         * modules/renameat: Likewise.  Also delete fstat.
9833         URL: http://bugs.gentoo.org/468790
9835 2012-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
9837         Assume gnulib is checked out from Git, not CVS
9839         In fact, access to the gnulib repository through CVS has been
9840         disabled, or more precisely, got broken and was never restored; see:
9841         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00008.html>
9843         Note that support for CVS is not removed completely and unthinkingly
9844         by this change: only support for CVS checkouts of gnulib itself is
9845         removed.  For example, the 'bootstrap' script still cater to .cvsingore
9846         files and CVS directories, for the benefit of those poor gnulib clients
9847         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
9849         * gnulib-tool: Simplify accordingly.
9850         * posix-modules: Likewise.
9851         * MODULES.html.sh: Likewise.
9852         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
9853         repository.
9854         * doc/gnulib-intro.texi: Likewise.
9855         * doc/gnulib-readme.texi: Likewise.
9856         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
9857         sample '.gitignore' file rather than a sample '.cvsignore'.
9858         * NEWS: Update.
9859         * m4/extensions.m4: While at it, remove a comment mistakenly referring
9860         to "CVS Autoconf" rather than "git Autoconf".
9862 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
9864         utimensat-tests, etc.: try to fix some races
9865         Problem reported by Bernhard Voelker in
9866         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html>.
9867         I don't know whether this patch fixes that race condition, but it
9868         fixes *some* race conditions, so it should be a win.
9869         * modules/chown-tests (Depends-on):
9870         * modules/fchownat-tests (Depends-on):
9871         * modules/fdutimensat-tests (Depends-on):
9872         * modules/futimens-tests (Depends-on):
9873         * modules/lchown-tests (Depends-on):
9874         * modules/stat-time-tests (Depends-on):
9875         * modules/utimens-tests (Depends-on):
9876         * modules/utimensat-tests (Depends-on):
9877         Depend on nanosleep, not usleep.
9878         * modules/chown-tests (test_chown_LDADD):
9879         * modules/lchown-tests (test_lchown_LDADD):
9880         * modules/stat-time-tests (test_stat_time_LDADD):
9881         New macro.
9882         * modules/fchownat-tests (test_fchownat_LDADD):
9883         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
9884         * modules/futimens-tests (test_futimens_LDADD):
9885         * modules/utimens-tests (test_utimens_LDADD):
9886         * modules/utimensat-tests (test_utimensat_LDADD):
9887         Add $(LIB_NANOSLEEP).
9888         * modules/stat-time-tests (Files): Add tests/nap.h.
9889         * tests/nap.h: Include <limits.h>, for INT_MAX.
9890         (lt_mtime): Remove.
9891         (diff_timespec): New function.
9892         (get_stat): Rename from get_mtime.  All callers changed.
9893         (nap_works): Determine the needed delay by inspecting the
9894         file system's timestamp jumps; this should be more reliable.
9895         Look at both mtime and ctime, and take the maximum of the two jumps.
9896         (nap_works, guess_delay):
9897         Return a nanosecond count, not a microsecond count.
9898         All callers changed.
9899         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
9900         failure.
9901         (nap): Multiply the guess by 1.125, to accommodate the case where
9902         the file system's clock is a bit slower than nanosleep's clock.
9903         * tests/test-stat-time.c (BASE): New macro.
9904         Include nap.h.
9905         (nap): Remove; nap.h now defines this.  This removes a duplicate
9906         implementation of 'nap'.
9908         utimens, utimensat: work around Solaris UTIME_OMIT bug
9909         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
9910         Linux kernel 2.6.32 does.  Work around it in the same way.
9911         * doc/posix-functions/futimens.texi (futimens):
9912         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
9913         * lib/utimens.c (fdutimens, lutimens):
9914         * lib/utimensat.c (rpl_utimensat): Work around the bug.
9916         gettext: now it's your responsibility to add -I$(top_builddir)/intl
9917         Formerly, it was your responsibility to do this for all Makefile.ams
9918         other than Gnulib's.  Now it's your responsibility to do it for
9919         Gnulib's Makefile.am, too.
9920         * NEWS: Document this.
9921         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
9923         acl: include errno.h to get errno
9924         Reported by Daiki Ueno in
9925         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00073.html>.
9926         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
9928 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
9930         tests: don't assume getdtablesize () <= 10000000
9931         * modules/cloexec-tests:
9932         * modules/dup2-tests:
9933         * modules/dup3-tests:
9934         * modules/nonblocking-tests:
9935         * modules/posix_spawn_file_actions_addclose-tests:
9936         * modules/posix_spawn_file_actions_adddup2-tests:
9937         * modules/posix_spawn_file_actions_addopen-tests:
9938         * modules/unistd-safer-tests:
9939         Depend on the getdtablesize module.
9940         * tests/test-cloexec.c:
9941         * tests/test-dup-safer.c:
9942         * tests/test-dup2.c:
9943         * tests/test-dup3.c:
9944         * tests/test-fcntl.c:
9945         * tests/test-nonblocking.c:
9946         * tests/test-posix_spawn_file_actions_addclose.c:
9947         * tests/test-posix_spawn_file_actions_adddup2.c:
9948         * tests/test-posix_spawn_file_actions_addopen.c:
9949         Don't assume getdtablesize () <= 10000000.
9951 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
9953         extern-inline: work around bug in Sun c99
9954         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
9955         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
9957 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
9959         qacl: new module, broken out from the acl module
9960         This is for GNU Emacs, which wants the acl functions but does
9961         not want 'error' invoked when they fail.
9962         * lib/acl-internal.h: Do not include error.h, quote.h.
9963         (ENOSYS, ENOTSUP): Remove; no longer needed.
9964         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
9965         * lib/acl.h: Include <stdbool.h>.
9966         (acl_errno_valid): New function.
9967         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
9968         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
9969         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
9970         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
9971         (ACL_INTERNAL_INLINE): Remove; no longer needed.
9972         * lib/file-has-acl.c (file_has_acl):
9973         * lib/qcopy-acl.c (qcopy_acl):
9974         * lib/qset-acl.c (qset_acl):
9975         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
9976         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
9977         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
9978         lib/file-has-acl.c, m4/acl.m4 to qacl module.
9979         Add lib/set-acl.c.
9980         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
9981         Add qacl.
9982         (configure.ac): Move gl_FUNC_ACL to qacl module.
9983         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
9984         Rename set-mode-acl.c to set-acl.c.
9985         * lib/acl-errno-valid.c: New file.
9986         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
9987         copy_acl function remains in copy-acl.c.
9988         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
9989         (_): Remove; not needed.
9990         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
9991         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
9992         * modules/qacl: New file, moved from the old modules/acl.
9993         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
9994         Remove set-mode-acl.c, copy-acl.c.
9995         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
9997         alignof, intprops, malloca: port better to IBM's C compiler
9998         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
9999         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
10000         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
10002 2013-04-25  Daiki Ueno  <ueno@gnu.org>
10004         wctype-h: fix gettext link error on mingw
10005         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
10006         <https://lists.gnu.org/archive/html/bug-gettext/2013-03/msg00086.html>.
10007         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
10008         rpl_towupper and rpl_towupper.
10010 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
10012         regex-tests, regex: allow glibc re_search behavior
10013         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
10014         re_search input data to make the multi-character collating element
10015         in it clearly visible, and treat re_search return code 0 as valid.
10016         * m4/regex.m4 (gl_REGEX): Likewise.
10018 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
10020         stdalign: doc fix
10021         * doc/posix-headers/stdalign.texi (stdalign.h):
10022         Gnulib doesn't support '_Alignof expr'.
10024 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
10026         stdalign: port to stricter ISO C11
10027         ISO C11 says that _Alignof's operand must be a parenthesized type.
10028         Problem reported by Eli Zaretskii in
10029         <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00960.html>.
10030         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
10031         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
10033 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
10035         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
10036         Problem reported by Marco Atzeri in
10037         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00000.html>.
10038         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
10039         Simply delegate to the system <sys/select.h> in this case too.
10040         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
10041         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
10042         be needed on Solaris either.
10043         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
10044         Simply delegate to the system <sys/time.h> in this case.
10046 2013-03-19  Karl Berry  <karl@gnu.org>
10048         * build-aux/gnupload: check for erroneous (with gnupload) use of
10049         ftp-upload.gnu.org, tweak help.
10051 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
10053         copy-file, rpmatch: fix problems found by cppcheck
10054         Reported by Arno Onken in
10055         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00069.html>.
10056         * lib/rpmatch.c (try): Fix memory leak.
10057         * lib/copy-file.c: Include "ignore-value.h".
10058         (qcopy_file_preserving): Ignore chown value.
10059         * modules/copy-file (Depends-on): Add ignore-value.
10061 2013-01-27  Jim Meyering  <jim@meyering.net>
10063         prefix-gnulib-mk: give better diagnostics
10064         * build-aux/prefix-gnulib-mk: Don't just "die".
10065         Give better diagnostics upon failure.
10067 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
10069         putenv: port to Solaris 10
10070         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
10071         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
10072         is not what is wanted here.
10073         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
10074         declaration, not for its existence.
10076 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
10078         mktime: fix configure typo
10079         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
10081 2013-03-12  Eric Blake  <eblake@redhat.com>
10083         regex-tests: skip UTF-8 test on mingw
10084         * modules/regex-tests (Depends-on): Add localcharset.
10085         * tests/test-regex.c (main): Use it to skip test on mingw.
10087 2013-03-11  Eric Blake  <eblake@redhat.com>
10089         tests: make it easier to bypass alarm time in debugger
10090         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
10091         * tests/test-memmem.c (main): Likewise.
10092         * tests/test-passfd.c (main): Likewise.
10093         * tests/test-ptsname.c (main): Likewise.
10094         * tests/test-ptsname_r.c (main): Likewise.
10095         * tests/test-strcasestr.c (main): Likewise.
10096         * tests/test-strstr.c (main): Likewise.
10098         regex: port to mingw's recent addition of undeclared alarm
10099         * doc/posix-functions/alarm.texi (alarm): Document that alarm
10100         exists but still doesn't work in newer mingw.
10101         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
10102         not existence.  Ensure SIGALRM is not trapped.
10103         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
10104         * m4/regex.m4 (gl_REGEX): Likewise.
10105         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
10106         * tests/test-regex.c (main): Use correct probe for alarm.
10108         putenv: avoid compilation warning on mingw
10109         * lib/putenv.c (_unsetenv): Protect variable declaration.
10110         (putenv): Fix indentation.
10112 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
10114         unistd: don't prevent Tru64 Unix from using gnulib strtod.
10115         * lib/unistd.in.h: be careful not to include un-needed system
10116         stdlib.h from here, because that prevents gnulib stdlib.h from
10117         defining rpl_strtod correctly.
10119 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
10121         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
10122         changesets, but for the 'precision 0' test.
10123         * tests/test-vasprintf-posix.c (test_function): Don't insist on
10124         round-to-even, since POSIX says rounding is implementation-defined
10125         and OS X 10.8.2 rounds 1.51 to 1 here.
10127         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
10128         changeset.
10129         * tests/test-vasprintf-posix.c (test_function): Don't insist on
10130         round-to-even, since POSIX says rounding is implementation-defined
10131         and OS X 10.8.2 rounds 1.5 to 1 here.
10133 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
10135         vasnprintf-posix-tests: allow rounding 1.5 to 1
10136         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
10137         round-to-even, since POSIX says rounding is implementation-defined
10138         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
10139         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00019.html>.
10141         bootstrap: port to FreeBSD
10142         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
10143         that treat '--' differently.  Reported by Mats Erik Andersson in
10144         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00012.html>.
10146 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
10148         regex: rename remaining __attribute calls to __attribute__.
10149         2012-02-25 changed definition of __attribute, but left some uses
10150         unchanged, preventing compilation of regex module on most non-gcc
10151         environments.
10152         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
10153         (lookup_collation_sequence_value, build_range_exp)
10154         (build_collating_symbol): Set attributes with newly renamed
10155         __attribute__ decorator.
10156         * lib/regex_internal.c (re_string_peek_byte_case)
10157         (re_node_set_compare, re_node_set_contains): Likewise.
10158         * lib/regexec.c (acquire_init_state_context): Likewise.
10160 2013-03-06  Bruno Haible  <bruno@clisp.org>
10162         execute: Revert last change, but use a different condition.
10163         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
10164         on Windows.
10166 2013-03-05  Eric Blake  <eblake@redhat.com>
10168         execute: drop dead code
10169         * lib/execute.c (nonintr_close, nonintr_open): Delete.
10171 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
10173         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
10174         * m4/non-recursive-gnulib-prefix-hack.m4
10175         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
10176         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
10177         <http://bugs.gnu.org/10305#237>.
10179 2013-03-04  Eric Blake  <eblake@redhat.com>
10181         test-getsockopt: avoid compiler warning
10182         * tests/test-getsockopt.c (includes): Ensure close is declared.
10184 2013-03-02  Bruno Haible  <bruno@clisp.org>
10186         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
10187         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
10189 2013-03-02  Bruno Haible  <bruno@clisp.org>
10191         gettext: Update to version 0.18.2.
10192         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
10193         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
10194                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
10196 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
10198         regex: merge patches from libc
10200         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
10201         * lib/regex_internal.h (__attribute__): Rename from __attribute.
10202         All uses changed.
10203         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
10204         (re_string_wchar_at, re_string_elem_size_at):
10205         Mark function as possibly unused.
10207         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
10208         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
10209         elements compare against the byte sequence of it, not its name.
10211 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
10213         putenv: port better to native Windows
10214         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
10215         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
10216         (_unsetenv): Use _putenv if available.
10217         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
10218         a bit less likely to cause damage.
10219         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
10220         Fix the wrong value with SetEnvironmentVariable.
10221         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
10222         code better.
10224 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
10226         regex: ignore old-style-definition warnings
10227         * lib/regex.c: Add pragma to ignore these warnings.
10228         Problem reported for GNU tar by Pavel Raiskup.
10230 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
10232         getcwd: support coreutils better
10233         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
10234         but this might not be correct in coreutils, which disables
10235         the raw decl checks.  Problem reported by Nagendra in
10236         <http://bugs.gnu.org/10305#192>.
10237         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
10238         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
10239         Test the getcwd function, not any macro, since getcwd.c wants the
10240         function.
10241         * m4/getcwd.m4 (gl_FUNC_GETCWD):
10242         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
10243         compile, as might happen if there's a macro but no function.
10245         strtod: support coreutils better
10246         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
10247         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
10248         disables the raw decl checks.  This assumes there is an underlying
10249         strtod, but that's a safe assumption these days.
10250         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
10252         mountlist: port to HP NonStop
10253         Reported by Joachim Schmitz in
10254         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00084.html>.
10255         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
10256         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
10258 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
10260         extern-inline: avoid compilation error with HP-UX cc
10261         Reported by Richard Lloyd in
10262         <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
10263         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
10264         Suppress extern inline with HP-UX cc.  This should be safe,
10265         though it may hurt performance.  Perhaps someone with some HP-UX
10266         experience can come up with a higher-performance fix.
10268 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
10270         putenv: fix heap corruption with mixed putenv/_putenv
10271         Problem reported by Michael Goffioul in
10272         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00061.html>.
10273         * lib/putenv.c (putenv) [HAVE__PUTENV]:
10274         Rely on _putenv to allocate the new environment.
10275         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
10276         * modules/putenv (configure.ac): Use it.
10278 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
10280         unsetenv etc.: port to Solaris 11 + GNU Emacs
10281         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
10282         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
10283         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
10284         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
10285         idea but is too painful to fix right now), and without this gnulib
10286         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
10287         compiling unsetenv.c on Solaris 11.  Fix the problem for
10288         unsetenv.c, and fix other similar occurrences.
10290 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
10292         secure_getenv: fix C++ declaration typo
10293         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
10294         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
10295         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00057.html>.
10297 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10299         careadlinkat: stop exporting careadlinkatcwd
10300         Only Emacs used it directly, and Emacs no longer needs it.
10301         * NEWS: Document this simplification.
10302         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
10303         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
10304         for readlink.
10305         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
10306         Don't include stdlib.h; no longer needed.
10307         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
10308         * lib/relocwrapper.c: Adjust comment to match new dependencies.
10309         * modules/areadlink (Depends-on): Add readlink.
10310         (Maintainer): Add self.
10311         * modules/careadlinkat (Depends-on): Remove readlink.
10313         extensions: port better to HP-UX
10314         This is merged from git Autoconf.
10315         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
10316         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
10317         so that it's compatible with the value used when compiling.
10319         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
10320         Problem reported by Mats Erik Andersson in
10321         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
10322         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
10323         openpty function exists, not merely when we intend to replace it.
10324         This corrects the 2013-01-31 patch, which mistakenly defined
10325         HAVE_OPENPTY even on hosts that lacked it.
10327 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
10329         secure_getenv: fix include typo
10330         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
10332         secure_getenv: port better to FreeBSD and Solaris
10333         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
10334         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
10335         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
10336         This works better on BSDish platforms.
10337         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
10338         Test for issetugid if __secure_getenv is missing.
10340 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
10342         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
10343         Some of these changes are merged in from git Autoconf.
10344         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
10345         When deciding whether to define _XOPEN_SOURCE, inspect the
10346         preprocessor macro __hpux instead of the more-heavyweight
10347         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
10348         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
10349         as the key for __EXTENSIONS__.
10351         unistd: avoid namespace pollution on non-glibc systems
10352         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
10353         This avoids namespace pollution on non-glibc systems, by causing
10354         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
10355         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
10356         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
10358 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
10360         tmpdir: use secure_getenv
10361         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
10362         Define to secure_getenv, not getenv.
10363         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
10364         as that's now secure_getenv's job.
10365         * modules/tmpdir (Depends-on): Add secure_getenv.
10367         tempname: use secure_getenv
10368         * lib/tempname.c (__secure_getenv) [!_LIBC]:
10369         Define to secure_getenv, not getenv.
10370         * modules/tempname (Depends-on):
10371         Add secure_getenv.
10373         secure_getenv: new module
10374         * MODULES.html.sh (Extra functions based on ANSI C 89):
10375         Add secure_getenv.
10376         * doc/glibc-functions/secure_getenv.texi: New file.
10377         * doc/gnulib.texi: Include it.
10378         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
10379         New files.
10380         * lib/stdlib.in.h (secure_getenv): New decl.
10381         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
10382         * modules/stdlib (stdlib.h):
10383         Add secure_getenv checks.
10385 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
10387         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
10388         Reported for OS X 10.8.2 by Assaf Gordon in
10389         <http://bugs.gnu.org/13516>.
10390         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
10391         !HAVE_OPENAT && !HAVE_FDOPENDIR.
10392         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
10393         so that they can be kept in sync more easily.  Avoid PATH_MAX
10394         test on the Hurd.  Sync from test-getcwd.c for errno tests after
10395         mkdir or chdir failure.
10396         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
10397         lib/getcwd.c.
10398         (test_abort_bug): Do not test for the deep directory bug unless we
10399         have openat support.  Avoid PATH_MAX test on the Hurd.
10401         regex-tests, regex: fix bug: memset undeclared
10402         * tests/test-regex.c: Don't include regex.h twice.  Include
10403         string.h, to declare memset.  Christensen's report also mentioned
10404         this issue.
10405         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
10406         test-regex.c, to avoid future problems like this.  Remove
10407         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
10408         twice.
10410         regex-tests: fix link errors on older Solaris
10411         These need to link with @LIBINTL@ to get libintl_gettext.
10412         Problem reported by Tom G. Christensen in
10413         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00003.html>.
10414         * modules/regex-tests (test_regex_LDADD): New macro.
10416 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
10418         regex-tests: new module
10419         * modules/regex-tests, tests/test-regex.c: New files.
10421         regex: fix off-by-one error in configure test
10422         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
10424 2013-01-31  Eric Blake  <eblake@redhat.com>
10426         regex: avoid infinite configure test
10427         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
10429 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
10431         openpty: fix bug where HAVE_OPENPTY wasn't defined
10432         See the thread starting at:
10433         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html
10434         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
10435         openpty function exists, not merely when we intend to replace it.
10437 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
10439         sys_time: port to Solaris 2.6
10440         There is a circularity problem on Solaris 2.6, where <time.h> includes
10441         <sys/time.h> for struct timespec.  The include nesting is gnulib
10442         <time.h>, system <time.h>, gnulib <sys/time.h>, system
10443         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
10444         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
10445         <sys/siginfo.h>; the last, innermost file needs struct
10446         timestruc_t, which is defined in <sys/time.h>, which has not been
10447         fully parsed.  Problem reported by Tom G. Christensen in
10448         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
10449         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
10450         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
10451         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
10452         uses split double-inclusion guards.
10454 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
10456         regex: test for buffer overrun
10457         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
10458         for the just-fixed regex bug.
10460 2013-01-29  Andreas Schwab  <schwab@suse.de>
10462         regex: fix buffer overrun in regexp matcher [BZ #15078]
10463         * lib/regexec.c (extend_buffers): Add parameter min_len.
10464         (check_matching): Pass minimum needed length.
10465         (clean_state_log_if_needed): Likewise.
10466         (get_subexp): Likewise.
10468 2013-01-28  Pádraig Brady  <P@draigBrady.com>
10470         mountlist: don't consider "devtmpfs" as dummy
10471         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
10472         as there is storage associcated with it.
10474 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
10476         futimens-tests, utimens-tests: Depend on gettext.
10477         This works around a problem introduced in my 2013-01-12 patch,
10478         which added @LIBINTL@ to these modules.
10479         * modules/futimens-tests (Depends-on):
10480         * modules/utimens-tests (Depends-on): Add gettext.
10482 2013-01-26  Eric Blake  <eblake@redhat.com>
10484         test-getpeername: fix typo
10485         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
10487 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
10489         bootstrap: remove the need for a sorted .gitignore file
10490         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
10491         rename to insert_if_absent(), so that we don't need or generate
10492         a sorted .gitignore file.  We do require a .gitignore with no
10493         existing duplicate entries and enforce that.
10494         (sort_patterns): Remove this function as we now use the simpler
10495         technigue of inserting blacklist entries at the top of the file,
10496         assuming gnulib won't be inserting !whitelist entries.
10498 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
10500         readlinkat: don't depend on gl_FUNC_OPENAT
10501         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
10502         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
10503         renameat.m4, symlinkat.m4; but one thing at a time.
10505         statat: new module, split out from fstatat
10506         GNU Emacs needs the POSIX-specified fstatat, but not the
10507         gnulib-specified statat and lstat.  Split the latter two into a
10508         new module 'statat'.
10509         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
10510         * lib/openat.h, lib/statat.c (STATAT_INLINE):
10511         Rename from FSTATAT_INLINE. All uses changed.
10512         * modules/fstatat (Files): Remove lib/statat.c.
10513         (gl_MODULE_INDICATOR([fstatat])): Remove.
10514         (lib_SOURCES): Remove.
10515         (Maintainer): Add self.
10516         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
10517         * tests/test-fstatat.c (BASE): Don't define if already defined.
10518         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
10520 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
10522         tests: don't assume fd 99 is closed
10523         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
10524         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
10525         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
10526         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
10527         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
10528         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
10529         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
10530         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
10531         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
10532         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
10533         * tests/test-fwrite.c, tests/test-getpeername.c:
10534         * tests/test-getsockname.c, tests/test-getsockopt.c:
10535         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
10536         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
10537         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
10538         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
10539         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
10540         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
10541         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
10542         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
10543         * tests/test-unlinkat.c, tests/test-unlockpt.c:
10544         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
10545         Close file descriptor 99, instead of assuming it's already closed.
10547 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
10549         stpncpy: port to OS X 10.8
10550         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
10551         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
10553 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
10555         unistd: port to recent mingw
10556         * lib/unistd.in.h: Remove special invocation convention for mingw,
10557         which breaks for the latest mingw version.  See John W. Eaton in
10558         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
10560         largefile: port better to Mac OS X 10.5
10561         This patch is backported from Autoconf git.
10562         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
10563         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
10564         with ino_t size being different for configuration time versus
10565         build/run time.  Problem reported by PHO in
10566         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
10568 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
10570         doc: clarify -Werror
10571         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
10572         clarify that it's intended for developers, not for ordinary builds,
10573         and mention --enable-gcc-warnings as one possible use.
10575 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
10577         stdint: fix build with Android's Bionic fox x86
10578         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
10579         was already included as _SSIZE_T_DEFINED_ might also be defined
10580         in include/machine/_types.h, which is included by stdio.h
10582 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
10584         net_if-tests: port to Solaris 7 + GCC 3.4.6
10585         Problem reported by Tom G. Christensen in
10586         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
10587         * tests/test-net_if.c (ni): Move to next the code that uses it,
10588         so that it's declared only if needed.
10590 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
10592         net_if-tests: port to older Solaris
10593         Problem reported by Tom G. Christensen in
10594         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
10595         * modules/net_if-tests (NET_IF_LIB): New substitution.
10596         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
10597         (HAVE_IF_NAMEINDEX): New C macro.
10598         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
10600         system-quote-tests: port to older Solaris
10601         Problem reported by Tom G. Christensen in
10602         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
10603         * tests/test-system-quote-child.c (fopen, fread): Undef.
10605         c-xvasprintf etc.: fix link errors on older Solaris
10606         These need to link with @LIBINTL@ to get libintl_gettext.
10607         Problem reported by Tom G. Christensen in
10608         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
10609         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
10610         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
10611         * modules/futimens-tests (test_futimens_LDADD):
10612         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
10614 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
10616         locale: port to Solaris 2.6 and 7 + GNU gettext
10617         * lib/locale.in.h: Just include_next <locale.h> when
10618         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
10619         when combining the localename module with GNU gettext 0.18.2.
10620         Problem reported by Tom G. Christensen in
10621         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
10623 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
10625         stdlib: port to Solaris 2.6
10626         Also, the code worked on Solaris 7 through 9 only by accident.
10627         Problem reported by Tom G. Christensen in
10628         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
10629         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
10630         simply include the system stdlib.h.
10631         * lib/getopt.in.h (__need_system_stdlib_h):
10632         * lib/pthread.in.h (__need_system_stdlib_h):
10633         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
10634         Define when including <stdlib.h>, to avoid problems at least for
10635         the pthread case on Solaris 2.6 and 7.  These .h files can get by
10636         with the system stdlib.h.
10638 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
10640         doc: update main copyright year
10641         * doc/gnulib.texi: Update copyright date.
10643         doc: improve ISO 8601 discussion
10644         * doc/parse-datetime.texi (Combined date and time of day items):
10645         Specify more carefully what formats are supported and what is
10646         done with excess precision.
10648 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
10650         doc: avoid small caps
10651         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
10652         they're more trouble than they're worth.  Suggested by Karl Berry
10653         in <http://bugs.gnu.org/13360>.
10655         regex: conform to strict C
10656         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
10657         From Aharon Robbins.
10659         gnulib-tool: fix incompatibility with autopoint 0.18.2
10660         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
10661         Problem reported by Tom G. Christensen in
10662         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
10664 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
10666         fprintftime: bring back and reword fwrite comment
10667         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
10669         stdio: remove now-unnecessary stdio.c
10670         Since stdio.in.h no longer uses inline functions, we no longer
10671         need to compile the extern versions.
10672         * lib/stdio.c: Remove.
10673         * modules/stdio (Files): Remove lib/stdio.c.
10674         (lib_SOURCES): Remove.
10676         unicodeio: depend on stdio, not ignore-value
10677         * lib/unicodeio.c: Do not include ignore-value.h.
10678         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
10679         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
10681         fprintftime: depend on stdio, not ignore-value
10682         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
10683         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
10684         since the stdio module arranges to silence that warning now.
10685         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
10687 2012-10-04  Simon Josefsson  <simon@josefsson.org>
10689         stdint-tests: Fix expanded-before-required-warning.
10690         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
10692 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
10694         fwrite: silence __wur only for older glibc versions
10695         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
10696         This will help us remove this workaround some time in the far future.
10698 2013-01-03  Eric Blake  <eblake@redhat.com>
10700         fwrite: silence __wur without using inline
10701         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
10702         just gcc, and in a way that avoids inline issues.
10703         * modules/stdio (Depends-on): Drop extern-inline.
10705 2013-01-03  Jim Meyering  <jim@meyering.net>
10707         update-copyright: avoid copyright notice date corruption
10708         Given a sequence of copyright year numbers in which the final
10709         one was a two-digit number that happened to be a substring of
10710         a preceding four-digit year number, we would mistakenly update
10711         the substring (from two- to four-digit) rather than the two-digit
10712         number at the end, which, combined with the addition of the current
10713         4-digit year number would yield two 5-digit year numbers, e.g.,
10714         here, it would convert the first "99" to "1999, 2013" rather than
10715         the final one:
10716           1991, 99
10717           11999, 20131, 1999
10718         * build-aux/update-copyright: Tighten a regexp.
10719         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
10720         Reported by Joseph Myers in
10721         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
10723 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
10725         regex: omit needless signed-pointer casts
10726         * lib/regcomp.c (build_charclass, build_charclass_op):
10727         Use char *, not unsigned char *, for class name and extra.
10728         The char values are always nonnegative so there's no need to
10729         insist on unsigned char * here, and using char * removes the need
10730         for casts.  Reported by Aharon Robbins in
10731         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
10733         regex: support Gawk, which never uses alloca
10734         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
10735         Do not include in this case.  Gawk doesn't supply a substitute
10736         alloca.h and doesn't need one.
10738         regex: port __libc_lock_define usage to C89
10739         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
10740         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
10741         does not conform to C89, as it has an empty macro argument.
10742         Reported by Aharon Robbins in
10743         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
10745 2013-01-01  Eric Blake  <eblake@redhat.com>
10747         maint: update all copyright year number ranges
10748         Run "make update-copyright".
10750         version-etc: bump copyright year reported in --version
10751         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
10753 2012-12-31  Eric Blake  <eblake@redhat.com>
10755         sigprocmask-tests: skip test if pid is unexpectedly large
10756         * tests/test-sigprocmask.c (main): Add range check.
10758         git-version-gen: avoid test -z portability glitch
10759         * build-aux/git-version-gen: Prefer portable test spelling, since
10760         git-version-gen is run on more than just developer machines.
10762 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
10764         git-version-gen: add --fallback option to use if git is not present
10765         * build-aux/git-version-gen: Add support for the new option --fallback,
10766         which comes into play when there is no $tarball_version_file and
10767         git is not working.
10768         (scriptversion): Update.
10770         maint.mk: handle missing git with more grace
10771         * top/maint.mk (no-submodule-changes, public-submodule-commit):
10772         Quietly proceed if git is not present.
10774 2012-12-31  Eric Blake  <eblake@redhat.com>
10776         dup2: work around cygwin bug
10777         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
10778         * lib/dup2.c (rpl_dup2): Work around it.
10779         * doc/posix-functions/dup2.texi (dup2): Document it.
10781 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
10783         regex: remove unnecessary dependency on localcharset.h
10784         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
10785         hasn't been needed for years.
10786         * modules/regex (Depends-on): Remove localcharset.
10788         regex: revert single-byte change
10789         * lib/regexec.c (check_node_accept_bytes): Revert previous change
10790         to this function.  This was alredy fixed in a different way, at
10791         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
10792         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
10793         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
10795         regex: simplify based on Gawk version
10796         * lib/regex_internal.c (re_dfa_add_node): Simplify.
10797         Reported by Aharon Robbins in
10798         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
10800 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
10802         regex: check that pattern char is single-byte
10803         Reported by Aharon Robbins in
10804         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
10805         * lib/regexec.c (check_node_accept_bytes):
10806         Return 0 if the pattern string has a multibyte character here.
10808         regex: implement rational ranges
10809         Reported by Aharon Robbins in
10810         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
10811         * lib/regcomp.c (build_range_exp) [!_LIBC]:
10812         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
10813         Implement rational ranges.
10815         regex: avoid redefining __wctype
10816         Reported by Aharon Robbins in
10817         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
10818         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
10819         #undef before defining.
10821         regex: port to hosts where malloc (0) == NULL
10822         Reported by Aharon Robbins in
10823         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
10824         * lib/regex_internal.c (re_node_set_alloc):
10825         Don't assume that malloc (0) yields nonnull.
10826         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
10827         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
10828         * modules/regex (Files): Add m4/eealloc.m4.
10830         regex: port to C89
10831         Reported by Aharon Robbins in
10832         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
10833         * lib/regcomp.c (init_word_char): Declaration before statement.
10835         regex: merge glibc changes
10836         Also, copy the license wording from glibc.  This simplifies
10837         merging changes.  gnulib-tool will change the wording to GPL as
10838         appropriate, when importing it to other packages.  The only
10839         glibc change made since the last merge, which needs merging, is:
10840         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
10841         * lib/regex_internal.h (gettext): Remove use of INTUSE.
10843         * users.txt: Add Emacs.
10845         doc: omit mention of version when not needed
10846         * doc/gnulib-intro.texi (Portability and Application Code):
10847         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
10848         Don't mention particular dates or versions when not necessary, so
10849         that the documentation won't go out of date so quickly.
10851         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
10853 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
10855         bootstrap: pass --force to autoreconf.
10856         * build-aux/bootstrap (AUTORECONFFLAGS): New.
10857         Add "--force" so that Automake's ylwrap and other such tools
10858         be updated at each bootstrap invocation.
10859         Use it.
10861 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
10863         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
10864         The earlier patch forgot to update one of the #if conditions, causing
10865         a problem on Debian testing i386 reported by Mats Erik Andersson
10866         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
10867         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
10868         (__argp_fmtstream_puts, argp_fmtstream_puts)
10869         (__argp_fmtstream_write, argp_fmtstream_write)
10870         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
10872         * doc/gnulib-readme.texi: Minor fixups.
10873         (Portability guidelines): Modernize URLs.  Remove some repetition.
10874         (Indent with spaces not TABs): Reword to avoid too-long lines.
10875         Remove some '@ifset standalone' stuff that isn't used.
10877         * doc/gnulib-readme.texi (Portability guidelines):
10878         ctype.h, not ctime.h.
10880         Correct name of POSIX.1-2001.
10881         * doc/posix-functions/fgetc.texi (fgetc):
10882         * doc/posix-functions/fgets.texi (fgets):
10883         * doc/posix-functions/fread.texi (fread):
10884         * doc/posix-functions/fscanf.texi (fscanf):
10885         * doc/posix-functions/getc.texi (getc):
10886         * doc/posix-functions/getchar.texi (getchar):
10887         * doc/posix-functions/scanf.texi (scanf):
10888         POSIX.1-2001, not POSIX-2001.
10890         doc: move README into manual
10891         * README: Move contents to new file doc/gnulib-readme.texi.
10892         Replace with a one-line summary.
10893         * doc/gnulib.texi (Brief Overview): New section,
10894         with old intro preface.  Include gnulib-readme.texi for contents.
10895         (Philosophy): Rename from "Introduction", since this
10896         section no longer introduces the rest.  Write a new preface.
10897         * doc/gnulib-readme.texi: New file, with the old contents of
10898         README texinfo-ized.  This way, the README info appears
10899         in the online and printed manual.
10901 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
10903         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
10904         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
10905         c_vasprintf() prototype.
10907 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
10909         c-vasprintf: Fix "empty declaration" warning reported by GCC.
10910         * lib/c-vasprintf.h: Remove stray semicolon.
10912 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
10914         gettext: avoid obsolete macro AM_PROG_MKDIR_P
10915         It is obsolete and is planned to be removed from Automake 1.14; see
10916         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
10917         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
10918         (installdirs-data, installdirs-data-yes):
10919         Use $(MKDIR_P), not $(mkdir_p).
10920         * m4/intl.m4 (AM_INTL_SUBDIR):
10921         * m4/po.m4 (AM_PO_SUBDIRS):
10922         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
10924 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
10926         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
10927         On this platform, we are not optimizing but we are using
10928         the substitute for extern inlines, so compile as if
10929         C99-style extern inline, or a substitute, is available.
10930         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
10931         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
10932         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
10933         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
10934         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
10935         Declare as ARGP_FS_EI, not as extern.
10936         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
10937         (__option_is_short, _option_is_end, __option_is_end)
10938         [!_LIBC && __USE_EXTERN_INLINES]:
10939         Declare as ARGP_EI, not as extern.
10941 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
10943         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
10944         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
10945         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
10946         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
10947         ...), as the latter is fatal with older Autoconfs.
10948         Problem reported and fix suggested by Eric Blake in thread starting at
10949         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
10951 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
10953         AC_PROG_MKDIR_P: don't workaround if not buggy
10954         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
10955         Define only for Autoconf versions before 2.62.
10956         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
10957         undocumented m4_PACKAGE_VERSION, for consistency with the
10958         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
10959         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
10960         was introduced in 2.62.
10962 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
10964         New 'c-*printf' modules for formatted output in C locale.
10966         New module 'c-vasnprintf'.
10967         * modules/c-vasnprintf: New file.
10968         * lib/c-vasnprintf.c: New file.
10969         * lib/c-vasnprintf.h: New file.
10971         New module 'c-snprintf'.
10972         * modules/c-snprintf: New file.
10973         * modules/c-snprintf-tests: New file.
10974         * lib/c-snprintf.c: New file.
10975         * lib/c-snprintf.h: New file.
10976         * tests/test-c-snprintf.c: New file.
10977         * tests/test-c-snprintf.sh: New file.
10979         New module 'c-vsnprintf'.
10980         * modules/c-vsnprintf: New file.
10981         * modules/c-vsnprintf-tests: New file.
10982         * lib/c-vsnprintf.c: New file.
10983         * lib/c-vsnprintf.h: New file.
10984         * tests/test-c-vsnprintf.c: New file.
10985         * tests/test-c-vsnprintf.sh: New file.
10987         New module 'c-vasprintf'.
10988         * modules/c-vasprintf: New file.
10989         * modules/c-vasprintf-tests: New file.
10990         * lib/c-asprintf.c: New file.
10991         * lib/c-vasprintf.c: New file.
10992         * lib/c-vasprintf.h: New file.
10993         * tests/test-c-vasprintf.c  +: New file.
10994         * tests/test-c-vasprintf.sh: New file.
10996         New module 'c-xvasprintf'.
10997         * modules/c-xvasprintf: New file.
10998         * modules/c-xvasprintf-tests: New file.
10999         * lib/c-xasprintf.c: New file.
11000         * lib/c-xvasprintf.c: New file.
11001         * lib/c-xvasprintf.h: New file.
11002         * tests/test-c-xvasprintf.c: New file.
11003         * tests/test-c-xvasprintf.sh: New file.
11005 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
11007         argp: better 'inline'
11008         Use extern-inline module to declare extern inline functions.
11009         This avoids some bogus warning diagnostics.  Problem discovered
11010         when modifying GNU tar to use the manywarnings module.
11011         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
11012         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
11013         Define based on extern-inline.
11014         * modules/argp (Depends-on): Add extern-inline.
11016 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
11018         filemode, sys_stat: Handle MPX files a la AIX.
11019         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
11020         * lib/sys_stat.in.h (S_ISMPX): New macro.
11021         * tests/test-sys_stat.c: Add tests for MPX files.
11023 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
11025         x-to-1: honor $PERL
11026         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
11027         a chance to use his preferred version of Perl.  This is typically
11028         required by Darwin users whose default /usr/bin/perl does not have all
11029         the libraries required by help2man, and who need to use their MacPorts
11030         installation of Perl instead.
11032 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
11034         gnu-web-doc-update: add all the new files, even in new directories
11035         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
11036         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
11037         Use it.
11038         (main): Don't use cvsutils to get the list of unknown files,
11039         just add all the existing files and directories.
11041 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
11043         gnu-web-doc-update: improve --help
11044         * build-aux/gnu-web-doc-update: Move comments into --help.
11046 2012-12-07  Eric Wong  <normalperson@yhbt.net>
11048         mountlist: recognize more "dummy" file systems
11049         * lib/mountlist.c (ME_DUMMY_0):
11050         Add these dummy FS names to the list:
11051         - "debugfs" virtual filesystem for kernel debugging
11052         - "devpts" PTY slave filesystem
11053         - "devtmpfs" device filesystem on top of tmpfs/ramfs
11054         - "fusectl" control filesystem for FUSE
11055         - "mqueue" enumerates POSIX message queues
11056         - "rpc_pipefs" kernel <-> userspace bridge for NFS
11057         - "sysfs" is for exporting kernel objects
11058         - "devfs" device filesystem for Linux 2.4 and FreeBSD
11060 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
11062         extern-inline: avoid incompatibility with Darwin Libc
11063         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
11064         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
11065         Problem reported by Akim Demaille in
11066         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
11068 2012-12-11  Simon Josefsson  <simon@josefsson.org>
11070         gnupload: Work with GnuPG using gpg-agent (for smartcards).
11071         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
11072         let it handle password prompting.
11074 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
11076         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
11077         * lib/canonicalize.c (canonicalize_filename_mode):
11078         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
11079         fetching the current directory.  Don't overrun the beginning of
11080         rpath if there's no slashes after the MS-Windows drive letter.
11082 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
11084         maint.mk: avoid extra forks
11085         * top/maint.mk (_cfg_mk): The GNU make manual documents that
11086         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
11087         So use that instead of "$(shell test -f FILE && echo FILE)".
11089 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
11091         vasnprintf: fix ASCII_ONLY typo
11092         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
11093         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
11094         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
11095         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
11096         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
11098 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
11100         list, oset, xlist, xoset: fix extern inline issue with C99
11101         This was introduced by my recent changes for 'inline'.
11102         Problem reported for gettext by Daiki Ueno in
11103         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
11104         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
11105         (gl_list_nx_create, gl_list_size, gl_list_node_value)
11106         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
11107         (gl_list_previous_node, gl_list_get_at)
11108         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
11109         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
11110         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
11111         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
11112         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
11113         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
11114         (gl_list_iterator_free, gl_sortedlist_search)
11115         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
11116         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
11117         (gl_sortedlist_remove):
11118         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
11119         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
11120         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
11121         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
11122         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
11123         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
11124         (gl_list_add_at, gl_sortedlist_add):
11125         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
11126         Wrap these extern decls inside "#if 0", because they are implemented
11127         as inline functions, and extern inline is not what's wanted here.
11128         It would simplify these .h files to remove the extern decls entirely,
11129         although a downside would be less-clear separation between
11130         specification and implementation.
11132 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
11134         sys_stat: no 'static inline'
11135         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
11136         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
11138         extern-inline: no 'static inline'
11139         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
11140         Do not require AC_C_INLINE.
11141         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
11142         'static inline', for older compilers.
11144         snippet/warn-on-use: no 'static inline'
11145         * build-aux/snippet/warn-on-use.h:
11146         Remove unnecessary 'inline' in comment.
11148         rbtree-list, rbtreehash-list: no 'static inline'
11149         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
11150         * lib/gl_anytree_list2.h (node_at):
11151         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
11152         (gl_oset_first, add_nodes_to_buckets):
11153         Now static, not static inline.
11155         regex: no 'static inline'
11156         * lib/regex_internal.c (calc_state_hash):
11157         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
11158         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
11159         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
11160         Now static, not static inline.
11161         (inline) [__GNUC__ < 3 && _LIBC]:
11162         Remove macro; no longer needed.
11164         xvasprintf: no 'static inline'
11165         * lib/xvasprintf.c (xstrcat):
11166         Now static, not static inline.
11167         * m4/xvasprintf.m4 (gl_XVASPRINTF):
11168         Do not require AC_C_INLINE.
11170         parse-datetime, parse-duration: no 'static inline'
11171         * lib/parse-datetime.y (to_uchar):
11172         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
11173         (scale_n_add):
11174         Now static, not static inline.
11175         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
11176         * modules/parse-duration (configure.ac):
11177         Do not require AC_C_INLINE.
11179         getaddrinfo: no 'static inline'
11180         * lib/getaddrinfo.c (validate_family):
11181         Now static, not static inline.
11182         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
11183         Do not require AC_C_INLINE.
11185         ftruncate, fts, lstat, openat, raise: no 'static inline'
11186         * lib/ftruncate.c (chsize_nothrow):
11187         * lib/fts.c (opendirat, diropen):
11188         * lib/lstat.c (orig_lstat):
11189         * lib/openat.c (orig_openat):
11190         * lib/raise.c (raise_nothrow):
11191         Now static, not static inline.
11192         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
11193         * m4/fts.m4 (gl_FUNC_FTS_CORE):
11194         * m4/lstat.m4 (gl_PREREQ_LSTAT):
11195         * m4/openat.m4 (gl_PREREQ_OPENAT):
11196         * m4/raise.m4 (gl_PREREQ_RAISE):
11197         Do not require AC_C_INLINE.
11199         fflush, stat: no 'static inline'
11200         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
11201         (clear_ungetc_buffer, disable_seek_optimization)
11202         (restore_seek_optimization, update_fpos_cache):
11203         * lib/stat.c (orig_stat):
11204         Now static, not static inline.
11205         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
11206         (update_fpos_cache):
11207         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
11208         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
11209         * m4/stat.m4 (gl_PREREQ_STAT):
11210         Do not require AC_C_INLINE.
11212         error, filevercmp: no 'static inline'
11213         * lib/error.c (is_open, flush_stdout):
11214         * lib/filevercmp.c (order):
11215         Now static, not static inline.
11216         * m4/error.m4 (gl_PREREQ_ERROR):
11217         * modules/filevercmp (configure.ac):
11218         Do not require AC_C_INLINE.
11220         dup, execute, fatal-signal, etc.: no 'static inline'
11221         * lib/dup.c (dup_nothrow):
11222         * lib/execute.c (nonintr_close, nonintr_open):
11223         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
11224         * lib/fopen.c (orig_fopen):
11225         * lib/freadseek.c (freadptrinc):
11226         * lib/freopen.c (orig_freopen):
11227         * lib/fstat.c (orig_fstat, fstat_nothrow):
11228         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
11229         (get_rusage_as_via_iterator):
11230         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
11231         * lib/getdtablesize.c (_setmaxstdio_nothrow):
11232         * lib/isatty.c (_isatty_nothrow):
11233         * lib/open.c (orig_open):
11234         * lib/read.c (read_nothrow):
11235         * lib/sigprocmask.c (signal_nothrow):
11236         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
11237         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
11238         * lib/wait-process.c (unregister_slave_subprocess):
11239         * lib/write.c (write_nothrow):
11240         Now static, not static inline.
11241         * lib/spawn-pipe.c (nonintr_open): Define only if
11242         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
11243         * m4/dup.m4 (gl_PREREQ_DUP):
11244         * m4/execute.m4 (gl_EXECUTE):
11245         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
11246         * m4/fopen.m4 (gl_PREREQ_FOPEN):
11247         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
11248         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
11249         * m4/fstat.m4 (gl_PREREQ_FSTAT):
11250         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
11251         * m4/isatty.m4 (gl_PREREQ_ISATTY):
11252         * m4/open.m4 (gl_PREREQ_OPEN):
11253         * m4/read.m4 (gl_PREREQ_READ):
11254         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
11255         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
11256         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
11257         * m4/wait-process.m4 (gl_WAIT_PROCESS):
11258         * m4/write.m4 (gl_PREREQ_WRITE):
11259         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
11260         Do not require AC_C_INLINE.
11262         c-strtod, memcoll, readutmp: no 'static inline'
11263         * lib/c-strtod.c (c_locale):
11264         * lib/memcoll.c (strcoll_loop):
11265         * lib/readutmp.c (desirable_utmp_entry):
11266         Now static, not static inline.
11267         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
11268         * m4/memcoll.m4 (gl_MEMCOLL):
11269         * m4/readutmp.m4 (gl_READUTMP):
11270         Do not require AC_C_INLINE.
11272         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
11273         * lib/arctwo.c (to_uchar):
11274         * lib/md4.c (set_uint32):
11275         * lib/md5.c (set_uint32):
11276         * lib/sha1.c (set_uint32):
11277         * lib/sha256.c (set_uint32):
11278         * lib/sha512.c (set_uint64):
11279         Now static, not static inline.  This is a bit simpler, and doesn't
11280         affect performance with GCC and default optimization.
11281         * m4/arctwo.m4 (gl_ARCTWO):
11282         * m4/md4.m4 (gl_MD4):
11283         * m4/md5.m4 (gl_MD5):
11284         * m4/sha1.m4 (gl_SHA1):
11285         * m4/sha256.m4 (gl_SHA256):
11286         * m4/sha512.m4 (gl_SHA512):
11287         Do not require AC_C_INLINE.
11289         cond, lock, thread: better 'inline'
11290         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
11291         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
11292         New macros.  Use them instead of static inline, for header functions.
11293         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
11294         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
11295         * lib/glthread/lock.c (gl_waitqueue_init)
11296         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
11297         * lib/glthread/thread.c (get_current_thread_handle):
11298         Change 'static inline' to 'inline'.
11299         * lib/glthread/cond.h, lib/glthread/thread.h:
11300         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
11301         * m4/cond.m4 (gl_COND):
11302         * m4/lock.m4 (gl_PREREQ_LOCK):
11303         * m4/thread.m4 (gl_THREAD):
11304         Do not require AC_C_INLINE.
11305         * modules/cond, modules/thread (Depends-on): Add extern-inline.
11307         chdir-long, cycle-check, savewd: better 'inline'
11308         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
11309         (find_non_slash):
11310         * lib/cycle-check.c (is_zero_or_power_of_two):
11311         * lib/savewd.c (savewd_delegating):
11312         Change 'static inline' to 'inline'.
11313         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
11314         Replace all remaining uses of 'static inline' with it.
11315         * lib/savewd.h:
11316         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
11317         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
11318         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
11319         * m4/savewd.m4 (gl_SAVEWD):
11320         Do not require AC_C_INLINE.
11321         * modules/savewd (Depends-on): Add extern-inline.
11323         base32, base64: no need for 'inline'
11324         * lib/base32.c (to_uchar, get_8, decode_8):
11325         * lib/base64.c (to_uchar, get_4, decode_4):
11326         Change 'static inline' to 'inline'.
11327         * m4/base32.m4 (gl_PREREQ_BASE32):
11328         * m4/base64.m4 (gl_PREREQ_BASE64):
11329         Do not require AC_C_INLINE.
11331         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
11332         * lib/gl_array_oset.c (gl_array_nx_add_at):
11333         (gl_array_remove_at):
11334         * lib/gl_linkedhash_list.c (hash_resize_after_add)
11335         (add_to_bucket, remove_from_bucket):
11336         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
11337         Change 'static inline' to 'static', as it's simpler to omit
11338         'inline' unless there's a significant performance advantage.
11340         list, oset, xlist, xoset, xsublist: simplify via extern inline
11341         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
11342         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
11343         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
11344         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
11345         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
11346         New macro.  Replace all uses of 'static inline' with it.
11347         [HAVE_INLINE]: Implement functions as *_INLINE functions,
11348         instead of as macros FOO that are defined to static inline
11349         functions FOO_inline.
11350         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
11351         * lib/gl_xsublist.c:
11352         Reimplement from scratch, by defining the corresponding *_INLINE
11353         macro and including the corresponding .h file.  This is simpler.
11354         * modules/list, modules/oset, modules/xlist, modules/xoset:
11355         (Files): Remove m4/gl_list.m4.
11356         (configure.ac): Remove gl_LIST.
11357         * m4/gl_list.m4: Remove.
11358         * modules/list, modules/oset, modules/xlist, modules/xoset:
11359         * modules/xsublist:
11360         (Depends-on): Depend on extern-inline, not inline.
11362         xalloc: better 'inline'
11363         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
11364         New macro.  Replace all uses of 'static inline' with it.
11365         (static_inline): Remove.
11366         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
11367         Let 'extern inline' do the work automatically, instead of doing
11368         it by hand.
11369         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
11370         Remove.  All uses removed.
11371         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
11373         gethrxtime: better 'inline'
11374         * lib/xtime.c: New file.
11375         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
11376         * lib/xtime.h (XTIME_INCLUDE):
11377         New macros.  Replace all uses of 'static inline' with them.
11378         * lib/gethrxtime.c (gethrxtime): Define only if
11379         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
11380         this source file is now always compiled, because of the extern inline.
11381         * lib/gethrxtime.h, lib/xtime.h:
11382         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
11383         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
11384         if gethrtime works, as they're not needed in that case.
11385         (gl_XTIME): Do not require AC_C_INLINE.
11386         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
11387         compiled now.  Move the check into gl_GETHRXTIME.
11388         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
11389         (Depends-on): Add extern-inline.
11390         (configure.ac): gethrxtime is always compiled now.
11391         (lib_SOURCES): Add gethrxtime.c.
11393         wctype-h: better 'inline'
11394         * lib/wctype-h.c: New file.
11395         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
11396         New macro.  Replace all uses of 'static inline' with it.
11397         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
11398         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
11399         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
11400         (Depends-on): Add extern-inline.
11402         unistd: better 'inline'
11403         * lib/unistd.c: New file.
11404         * lib/unistd.in.h (_GL_UNISTD_INLINE):
11405         New macro.  Replace all uses of 'static inline' with it.
11406         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
11407         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
11408         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
11409         (Depends-on): Add extern-inline.
11411         sys_socket: better 'inline'
11412         * lib/sys_socket.c: New file.
11413         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
11414         New macro.  Replace all uses of 'static inline' with it.
11415         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
11416         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
11417         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
11418         (Depends-on): Add extern-inline.
11420         stdio: better 'inline'
11421         * lib/stdio.c: New file.
11422         * lib/stdio.in.h (_GL_STDIO_INLINE):
11423         New macro.  Replace all uses of 'static inline' with it.
11424         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
11425         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
11426         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
11427         (Depends-on): Add extern-inline.
11429         sigaction: better 'inline'
11430         * lib/sig-handler.c: New file.
11431         * lib/sig-handler.h (SIG_HANDLER_INLINE):
11432         New macro.  Replace all uses of 'static inline' with it.
11433         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
11434         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
11435         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
11436         (Depends-on): Add extern-inline.
11438         selinux-h: better 'inline'
11439         * lib/se-context.c, lib/se-selinux.c: New files.
11440         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
11441         * lib/se-context.in.h (SE_CONTEXT_INLINE):
11442         New macro.  Replace all uses of 'static inline' with it.
11443         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
11444         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
11445         New macro.  Replace all uses of 'static inline' with it.
11446         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
11447         * modules/selinux-h (Files, lib_SOURCES):
11448         Add lib/se-context.c, lib/se-selinux.c.
11449         (Depends-on): Add extern-inline.
11450         (configure.ac): Do not require AC_C_INLINE.
11452         pthread: better 'inline'
11453         * lib/pthread.c: New file.
11454         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
11455         New macro.  Replace all uses of 'static inline' with it.
11456         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
11457         * m4/pthread.m4 (gl_PTHREAD_CHECK):
11458         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
11459         * modules/pthread (Files): Add lib/pthread.c.
11460         (Depends-on): Add extern-inline.
11462         math: better 'inline'
11463         * lib/math.c: New file.
11464         * lib/math.in.h (_GL_MATH_INLINE):
11465         New macro.  Replace all uses of 'static inline' with it.
11466         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
11467         * m4/math_h.m4 (gl_MATH_H):
11468         Do not require AC_C_INLINE.
11469         * modules/math (Files, lib_SOURCES):
11470         Add lib/math.c.
11471         (Depends-on): Add extern-inline.
11473         count-one-bits: better 'inline'
11474         * lib/count-one-bits.c: New file.
11475         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
11476         New macro.  Replace all uses of 'static inline' with it.
11477         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
11478         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
11479         Do not require AC_C_INLINE.
11480         * modules/count-one-bits (Files, lib_SOURCES):
11481         Add lib/count-one-bits.c.
11482         (Depends-on): Add extern-inline.
11484         count-leading-zeros: better 'inline'
11485         * lib/count-leading-zeros.c: New file.
11486         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
11487         New macro.  Replace all uses of 'static inline' with it.
11488         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
11489         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
11490         Do not require AC_C_INLINE.
11491         * modules/count-leading-zeros (Files, lib_SOURCES):
11492         Add lib/count-leading-zeros.c.
11493         (Depends-on): Add extern-inline.
11495         bitrotate: better 'inline'
11496         * lib/bitrotate.c: New file.
11497         * lib/bitrotate.h (BITROTATE_INLINE):
11498         New macros.
11499         Replace all uses of 'static inline' with them.
11500         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
11501         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
11502         (Depends-on): Add extern-inline.
11503         (configure.ac): Do not require AC_C_INLINE.
11505 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
11507         maint.mk: avoid gratuitous failure
11508         Reported by Stefano Lattarini in
11509         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
11510         * top/maint.mk (public-submodule-commit): Quote more safely.
11512 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
11514         canonicalize, canonicalize-lgpl: support MS-Windows file names
11515         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
11516         for test cases, which it'd be nice to add at some point.
11517         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
11518         * lib/canonicalize.c (canonicalize_filename_mode):
11519         * lib/canonicalize-lgpl.c (__realpath):
11520         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
11521         slash is at the beginning of the file name.  Use ISSLASH, instead
11522         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
11523         the first character with '/'.  Test for
11524         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
11525         with a drive letter.
11526         * lib/canonicalize.c (SLASHES): New macro.
11527         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
11529 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
11531         fts: introduce FTS_VERBATIM
11532         * lib/fts_.h (FTS_VERBATIM): New bit flag.
11533         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
11534         * lib/fts.c (fts_open): Honor it.
11536 2012-11-09  Pádraig Brady  <P@draigBrady.com>
11538         getlogin-tests: allow errno == ENXIO
11539         * tests/test-getlogin.c (main): Skip tests if getlogin fails
11540         with errno == ENXIO (No controlling tty).
11541         getlogin_r-tests: Likewise. Also allow errno == ENOENT
11542         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
11543         with errno == ENOENT.  This was reported to happen in various
11544         situations on GNU/Linux.
11546 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
11548         getlogin-tests: allow errno == ENOENT
11549         * tests/test-getlogin.c (main): Skip tests if getlogin fails
11550         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
11551         when running a test in an Emacs shell buffer.
11553 2012-11-08  Jim Meyering  <jim@meyering.net>
11555         tests/nap.h: avoid warning about unused variable
11556         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
11558         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
11559         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
11560         white space before each of the special-cased file names, to avoid
11561         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
11562         in http://bugs.gnu.org/12830.
11564 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
11566         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
11567         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
11568         fails with errno == EBADF when fd is opened with O_PATH.
11569         Reported by Jim Meyering in
11570         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
11571         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
11572         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
11574 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
11576         test-utimens: speed up by taking shorter naps
11577         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
11578         New functions.
11579         (nap): Use them, to do a better job of guessing the delay.
11580         On Fedora 17 with ext4 atop md atop hard disks, this made
11581         test-utimens run 10x faster, because the test napped for
11582         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
11583         <http://bugs.gnu.org/12820#11>.
11585 2012-11-07  Jim Meyering  <jim@meyering.net>
11587         mountlist.c: fix a compilation failure
11588         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
11589         I introduced while transforming commit v0.0-7683-g613bcb6
11591 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
11593         errno: port to LynxOS 178 2.2.2
11594         Problem reported by Joel Brobecker in
11595         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
11596         * doc/posix-headers/errno.texi (errno.h): Document this.
11597         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
11598         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
11599         Supply a string for EILSEQ.
11600         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
11602 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
11604         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
11605         Linux kernel 2.6.39 introduced O_PATH (see
11606         <http://lwn.net/Articles/433854/>) and this is a better fallback
11607         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
11608         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
11609         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
11610         * lib/fcntl.in.h (O_ACCMODE):
11611         * tests/test-fcntl-h.c (main):
11612         Do not reject O_ACCMODE merely because it has more than the
11613         minimal number of bits, as POSIX allows extensions here.
11615 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
11617         mountlist: do not classify a bind-mounted dir entry as "dummy"
11618         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
11619         the "none"-testing clause.
11620         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
11621         exception for bind-mounted directories.
11623 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
11625         quote: provide a means to escape strings with nul characters
11626         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
11627         (quote, quote_n): Rename formal arguments for consistency with
11628         quotearg.
11630 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
11632         test-raise: don't assume 199 is an invalid signal
11633         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
11635         sh-quote-tests: port to Solaris 9
11636         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
11637         Problem reported by Dagobert Michelsen in
11638         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
11640 2012-10-28  Jim Meyering  <jim@meyering.net>
11642         maint.mk: rename a new configurable variable
11643         * top/maint.mk (_gl_translatable_string_re): Rename from
11644         translation-markers: _gl_ prefix to insulate from user Makefile code,
11645         and the _re suffix to inform that it's a regular expression.
11647 2012-10-26  Eric Blake  <eblake@redhat.com>
11649         maint.mk: let packages tweak sc_po_check pattern
11650         * top/maint.mk (sc_po_check): Add translation-markers, to allow
11651         finding files with other translation markers.
11653 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
11655         euidaccess: speed up 'configure' on GNU hosts
11656         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
11657         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
11658         it's needed only in this case.  Use AC_CHECK_DECLS, not
11659         AC_CHECK_DECLS_ONCE.
11660         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
11661         or AC_REQUIRE for AC_FUNC_GETGROUPS.
11663         * lib/regexec.c (re_search_internal): Fix grammar in comment.
11665 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
11667         fchmodat, fchownat, fstatat: port to non-inlining compilers
11668         Problem reported for FreeBSD 9 by Jim Meyering in
11669         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
11670         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
11671         New files, which define FCHMODAT_INLINE etc.
11672         * lib/fchmodat.c (FCHMODAT_INLINE):
11673         * lib/fchownat.c (FCHOWNAT_INLINE):
11674         * lib/fstatat.c (FSTATAT_INLINE):
11675         Remove, as chmodat.c etc. now do this.
11676         * modules/fchmodat (Files): Add lib/chmodat.c.
11677         * modules/fchownat (Files): Add lib/chownat.c.
11678         * modules/fstatat (Files): Add lib/statat.c.
11680 2012-10-15  Jim Meyering  <jim@meyering.net>
11682         fchmodat.c, fchownat.c: compile-impeding typos
11683         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
11684         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
11685         Introduced in commit v0.0-7636-gd202279.
11687 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
11689         fcntl-h: support GNU flags like O_IGNORE_CTTY
11690         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
11691         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
11692         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
11693         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
11694         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
11695         Define to 0 if not already defined.
11696         * tests/test-fcntl-h.c: Test these new flags.
11698 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
11700         faccessat, etc.: support AT_FDCWD-only use
11701         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
11702         this function only if its first argument is AT_FDCWD.
11703         Emacs wants faccessat for AT_EACCESS but not for any first-arg
11704         values other than AT_FDCWD, so it doesn't want all the openat
11705         machinery with fchdir etc.
11706         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
11707         * modules/fstatat, modules/mkdirat, modules/openat (Files):
11708         * modules/unlinkat (Files):
11709         Remove lib/openat-priv.h, as at-internal supplies this file.
11710         Removing this file here allows us to support programs like Emacs
11711         that avoid at-internal.
11713         faccessat: speed up 'configure' on mainstream hosts
11714         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
11715         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
11716         since it's only on unusual platforms that we need to check for
11717         'access', and it's better not to slow 'configure' down on all
11718         platforms.
11720         faccessat: port to Solaris 10
11721         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
11722         Needed on Solaris 10, which doesn't have AT_EACCESS,
11723         so we need the Gnulib fcntl.h, which defines it.
11725 2012-10-14  Pádraig Brady  <P@draigBrady.com>
11726         canonicalize: fix C89 compilation
11727         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
11728         declarations so C89 is supported.  Also remove the comment
11729         referencing memorty allocation as the suggested feature could
11730         not be implemented as suggested.
11731         Reported by Michael Goffioul.
11733 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
11735         group-member: omit unnecessary dependencies
11736         This is for Emacs, which has its own allocator and where we
11737         don't want to use xalloc.
11738         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
11739         since we no longer use xmalloc.  Do not include stdbool.h, since
11740         the changes below happen to remove the only use of bool.
11741         (GROUPBUF_SIZE): New constant.
11742         (struct group_info): Remove n_groups member.  Add groupbuf member.
11743         This lets us get the groups without using malloc, usually.
11744         (free_group_info, get_group_info): Adjust to this.
11745         (get_group_info): Return the number of groups found, or -1 on error.
11746         Use plain malloc not xmalloc, and treat its failure as if there
11747         are no groups, as the user already loses in case of error.
11748         (group_member): Simplify, based on changes to get_group_info.
11749         * modules/group-member (Depends-on): Remove dependencies on
11750         xalloc and stdbool.  Add dependency on xalloc-oversized.
11752 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
11754         gethrxtime: port to C++
11755         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
11757 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
11759         ptsname: fix macro-name typo
11760         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
11762 2012-10-03  Simon Josefsson  <simon@josefsson.org>
11764         inttostr: Relax license.
11765         * modules/inttostr (License): Change from LGPL to LGPLv2+.
11767 2012-10-03  Eric Blake  <eblake@redhat.com>
11769         ptsname_r: support ptys returned by FreeBSD posix_openpt
11770         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
11771         lives in /dev/pts/.
11773 2012-10-02  Eric Blake  <eblake@redhat.com>
11775         pselect: reject invalid file descriptors
11776         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
11777         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
11778         * modules/pselect (Depends-on): Add dup2.
11779         * doc/posix-functions/pselect.texi (pselect): Document this.
11781         select: reject invalid file descriptors
11782         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
11783         * lib/select.c (rpl_select) [!win32]: Work around it.
11784         * modules/select (Depends-on): Add dup2.
11785         * doc/posix-functions/select.texi (select): Document this.
11787         select: enhance test
11788         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
11789         New functions.
11790         (test_function): Enhance test.
11791         (do_select_bad_fd): Avoid any stale errno values.
11793         ptsname: reject invalid file descriptors
11794         http://www.austingroupbugs.net/view.php?id=503
11795         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
11796         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
11797         * modules/stdlib (Makefile.am): Replace witness.
11798         * lib/stdlib.in.h (ptsname): Allow for replacement.
11799         * modules/ptsname (configure.ac): Trigger replacement.
11800         * doc/posix-functions/ptsname.texi (ptsname): Document this.
11802 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
11804         hash-pjw-bare: new module
11805         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
11806         * lib/hash-pjw-bare.h: Likewise.
11807         * modules/hash-pjw-bare: New file.
11808         * MODULES.html.sh (Misc): Add it.
11810 2012-10-02  Eric Blake  <eblake@redhat.com>
11812         manywarnings: cater to more gcc infelicities
11813         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
11814         -Wuninitialized without -O.
11816 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
11818         select, poll tests: Make setsockopt invocation effective.
11819         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
11820         the bind() call.
11821         * tests/test-select.h (open_server_socket): Likewise.
11823 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
11825         sockets, sys_stat: restore AC_C_INLINE
11826         This undoes the 2012-09-22 patch.
11827         * m4/sockets.m4 (gl_SOCKETS):
11828         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
11829         Restore AC_C_INLINE, since MSVC requires __inline or _inline
11830         and does not support plain 'inline'.  Reported by Bruno Haible in
11831         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
11833 2012-09-30  Bruno Haible  <bruno@clisp.org>
11835         localeconv tests: Avoid test failure on OpenIndiana.
11836         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
11837         skip the 'grouping' and 'mon_grouping' tests.
11838         Reported by Jim Meyering.
11840 2012-09-30  Bruno Haible  <bruno@clisp.org>
11842         havelib: Follow libtool developments.
11843         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
11844         Suggested by Simon Josefsson.
11846 2012-09-29  Jim Meyering  <meyering@redhat.com>
11848         fstatat.c: fix a compile-impeding typo
11849         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
11850         Introduced in commit v0.0-7636-gd202279.
11851         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
11853 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
11855         extern-inline: provide a -Wundef safe config.h
11856         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
11857         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
11858         to produce a -Wundef warning free config.h.
11860 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
11862         hash-pjw: relax license to LGPLv2+
11863         * modules/hash-pjw (License): Relax, with consent of author.
11865 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
11867         maint.mk: fix strict vs. lazy variable issues with RELEASE
11868         * top/maint.mk (_equal): New function.
11869         (member_check): Strip the result to avoid spurious spaces.
11870         (url_dir_list): Do not use ifeq, which is strict, as it will
11871         require RELEASE_TYPE to be defined.
11872         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
11873         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
11874         (announcement_Cc_alpha,announcement_mail_headers_alpha)
11875         (announcement_Cc_beta,announcement_mail_headers_beta)
11876         (announcement_Cc_stable,announcement_mail_headers_stable): these.
11877         (release): Do not depend on $(release-type), as it forces its
11878         evaluation.  Bounce to it.
11880 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
11882         maint.mk: formatting changes
11883         * top/maint.mk: Indent bodies of if's.
11885 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
11887         maint.mk: factor the validation of RELEASE_TYPE
11888         With help from Jim Meyering.
11889         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
11890         * top/maint.mk (_empty, _sp): Move their definition earlier.
11891         (member-check, release-type): New.
11892         Use the latter instead of $(RELEASE_TYPE).
11893         Remove now useless local checks.
11895 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
11897         maint.mk: provide "make upload" to ease uploading
11898         See
11899         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
11900         Do not depend simply on the current $(VERSION), as there may have been
11901         new commits since the tarball generation.  Rather, rely on $(RELEASE),
11902         as "make release-commit" already does.
11904         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
11905         "make TYPE".
11907         * top/maint.mk (upload_command, upload, release): New.
11908         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
11909         (VERSION): first word of $(RELEASE) is always right.
11910         (emit_upload_commands): Adjust.
11911         * top/README-release: Update.
11913 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
11915         maint.mk: silent rules
11916         With help from Stefano Lattarini.
11917         * top/maint.mk (writable-files): Use $(AM_V_GEN).
11918         (announcement): Use $(AM_V_at).
11920 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
11922         localename: port gl_locale_name_thread_unsafe to FreeBSD
11923         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
11924         and use the simpler FreeBSD implementation on Mac OS X as well.
11925         Original idea suggested by Ed Maste in
11926         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
11928 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
11930         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
11931         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
11932         * lib/mbuiter.c, lib/xsize.c: New files.
11933         * lib/binary-io.h (BINARY_IO_INLINE):
11934         * lib/eealloc.h (EEALLOC_INLINE):
11935         * lib/mbfile.h (MBFILE_INLINE):
11936         * lib/mbiter.h (MBITER_INLINE):
11937         * lib/mbuiter.h (MBUITER_INLINE):
11938         * lib/xsize.h (XSIZE_INLINE):
11939         New macros.
11940         Replace all uses of 'static inline' with them.
11941         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
11942         * m4/eealloc.m4 (gl_EEALLOC):
11943         * m4/mbfile.m4 (gl_MBFILE):
11944         * m4/mbiter.m4 (gl_MBITER):
11945         * m4/xsize.m4 (gl_XSIZE):
11946         Do not require AC_C_INLINE.
11947         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
11948         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
11949         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
11950         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
11951         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
11952         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
11953         * modules/binary-io, modules/eealloc, modules/mbfile:
11954         * modules/mbiter, modules/mbuiter:
11955         (Depends-on): Add extern-inline.
11957         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
11958         * lib/pipe-filter-aux.c: New file.
11959         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
11960         Replace all uses of 'static inline' with it.
11961         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
11962         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
11963         (filter_retcode): No real need for inline here.
11964         * modules/pipe-filter-gi, modules/pipe-filter-ii:
11965         (Files): Add lib/pipe-filter-aux.c.
11966         (Depends-on): Add extern-inline.
11967         (configure.ac): Do not require AC_C_INLINE.
11968         (lib_SOURCES): Add pipe-filter-aux.c.
11970         fdutimensat: omit unnecessary AC_C_INLINE
11971         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
11973         fchmodat, fchownat, fstatat: use extern-inline
11974         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
11975         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
11976         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
11977         New macros.
11978         * lib/openat.h:
11979         Replace all uses of 'static inline' with them.
11980         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
11981         * modules/fchmodat, modules/fchownat, modules/fstatat:
11982         * modules/openat-h:
11983         (Depends-on):
11984         Add extern-inline.
11985         (configure.ac): Remove AC_C_INLINE.
11987         acl, mbchar, priv-set: use extern-inline
11988         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
11989         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
11990         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
11991         New macros.
11992         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
11993         Replace all uses of 'static inline' with it.
11994         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
11995         * m4/acl.m4 (gl_FUNC_ACL):
11996         * m4/mbchar.m4 (gl_MBCHAR):
11997         * m4/priv-set.m4 (gl_PRIV_SET):
11998         Remove AC_C_INLINE, since 'inline' is no longer used directly.
11999         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
12000         Add extern-inline.
12002         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
12003         * m4/sockets.m4 (gl_SOCKETS):
12004         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
12005         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
12006         environments where it's already guaranteed to work, so we needn't
12007         check for it at 'configure'-time.
12009         tls-tests: omit unnecessary 'inline'
12010         * tests/test-tls.c (perhaps_yield): No longer inline.
12011         Simplicity and portability trump efficiency in test cases.
12013         utimens-tests: avoid unnecessary 'inline'
12014         * modules/fdutimensat-tests (configure.ac):
12015         * modules/futimens-tests (configure.ac):
12016         * modules/utimens-tests (configure.ac):
12017         * modules/utimensat-tests (configure.ac):
12018         Remove AC_C_INLINE.
12019         * tests/test-utimens-common.h (ctime_compare):
12020         No longer inline.  Simplicity and portability trump efficiency here.
12022         misc: don't limit commentary to inline functions
12023         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
12024         * lib/xalloc-oversized.h, lib/xsize.h:
12025         Contrast macros to functions in general, not just to inline functions,
12026         when the commentary does not apply only to inline functions.
12028 2012-09-20  Jim Meyering  <meyering@redhat.com>
12030         non-recursive-gnulib-prefix-hack: new module
12031         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
12032         the file that originated in Bison.
12033         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
12034         largely copied from a snippet that resided in bison's configure.ac.
12035         * modules/non-recursive-gnulib-prefix-hack: New file.
12036         * MODULES.html.sh (Support for maintaining and releasing projects):
12037         Add it.
12039 2012-09-18  Jim Meyering  <meyering@redhat.com>
12041         maint.mk: generalize _gl_tight_scope for non-recursive make
12042         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
12043         that *.h would describe additional .h files in the directory
12044         specified by $(_gl_TS_dir).  I.e., add this...
12045         (_gl_TS_other_headers): New variable.
12047         maint.mk: exempt trailing blanks found in "binary" files
12048         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
12049         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
12050         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
12052 2012-09-17  Jim Meyering  <meyering@redhat.com>
12054         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
12055         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
12056         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
12057         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
12059 2012-09-17  Jim Meyering  <meyering@redhat.com>
12061         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
12062         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
12063         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
12064         It is not in the same category as "exit (0)" or "exit (1)", and
12065         besides, I know of no symbolic name for that 77.  Reported by
12066         Richard W.M. Jones in
12067         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
12069 2012-09-17  Jim Meyering  <meyering@redhat.com>
12071         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
12072         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
12073         all uses of #define, not just those that start in column 1.
12074         Richard W.M. Jones reported a false positive in
12075         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
12077 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
12079         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
12080         * lib/localcharset.c (locale_charset) [DARWIN7]:
12081         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
12082         as these two values are incompatible.  Problem reported by Max Horn.
12083         For more discussion, please see
12084         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
12086         doc: document sticky-EOF issue
12087         * doc/posix-functions/fgetc.texi (fgetc):
12088         * doc/posix-functions/fgets.texi (fgets):
12089         * doc/posix-functions/fread.texi (fread):
12090         * doc/posix-functions/fscanf.texi (fscanf):
12091         * doc/posix-functions/getc.texi (getc):
12092         * doc/posix-functions/getchar.texi (getchar):
12093         * doc/posix-functions/scanf.texi (scanf):
12094         Mention that glibc and default Solaris do not conform to
12095         C99 and POSIX-2001 or later, with respect to how getchar
12096         etc. behave when feof reports nonzero.
12098 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
12100         poll: fix poll(0, NULL, msec)
12101         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
12102         but nfd is 0.  In that case poll should behave like select.
12104 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
12105             Paolo Bonzini <bonzini@gnu.org>
12107         poll: fix for systems that can't recv() on a non-socket
12108         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
12109         is readable.  In this case POLLHUP will not be supported.
12110         * doc/posix-functions/poll.texi: Document this.
12112 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
12114         poll/select: document portability problems not fixed by Gnulib.
12115         * doc/posix-functions/poll.texi: poll does not work well on
12116         pipes under Windows.  It has the same limitations as select on
12117         BeOS.
12118         * doc/posix-functions/select.texi: select does not work well
12119         on pipes under Windows.
12121 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
12123         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
12124         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
12125         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
12126         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
12128 2012-09-06  Eric Blake  <eblake@redhat.com>
12130         net_if: give more details about the bug being fixed
12131         * doc/posix-headers/net_if.texi: Add clarification.
12133 2012-09-05  Eric Blake  <eblake@redhat.com>
12135         net_if: new module
12136         * modules/net_if: New module, borrowing ideas from netinet_in.
12137         * m4/net_if_h.m4: New file.
12138         * lib/net_if.in.h: Likewise.
12139         * doc/posix-headers/net_if.texi (net/if.h): Document it.
12140         * MODULES.html.sh (lacking POSIX:2008): Likewise.
12141         * tests/test-net_if.c: Make function checks conditional.
12142         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
12144 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
12146         readutmp: fix non-portable UT_PID use
12147         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
12148         Use `UT_PID (u) > 0' as absolute condition.
12150 2012-09-04  Jim Meyering  <meyering@redhat.com>
12152         fts: reduce two or more trailing spaces to just one, usually
12153         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
12154         or more slashes, trim all but the final one.  But if a name consists
12155         solely of two slashes, don't modify it.  If it consists solely of
12156         three or more slashes, strip all but one.
12158         This is part of the solution to a minor problem with rm:
12159         it would print a bogus ELOOP diagnostic when failing to remove
12160         the slash-decorated name of a symlink-to-directory:
12162             $ mkdir d && ln -s d s && env rm -r s/
12163             rm: cannot remove 's': Too many levels of symbolic links
12165         With the change below and a trivial don't-trim-trailing-slashes
12166         adjustment to remove.c, it does this:
12168             $ env rm -r s/
12169             rm: cannot remove 's/': Not a directory
12171         Improved by: Eric Blake
12173         fts: when there is no risk of overlap, use memcpy, not memmove
12174         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
12176 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
12178         stdbool: be more compatible with mixed C/C++ compiles
12179         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
12180         Define to bool, true, false, respectively, as GCC's builtin
12181         stdbool.h does.  Problem reported by Michael Goffioul in
12182         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
12184 2012-08-28  Jim Meyering  <meyering@redhat.com>
12186         revert last change: it was not needed
12187         * tests/test-vc-list-files-git.sh: There's already a test for
12188         a working git, just below.
12190 2012-08-28  Jim Meyering  <meyering@redhat.com>
12192         tests: test-vc-list-files-git.sh: skip if git is not available
12193         * tests/test-vc-list-files-git.sh: Skip this test when git is
12194         not available.
12196 2012-08-26  Bruno Haible  <bruno@clisp.org>
12198         gnulib-tool: Remove no-op option --no-changelog.
12199         * gnulib-tool (func_usage): Don't mention --no-changelog.
12200         (do_changelog): Remove variable.
12201         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
12203 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
12205         doc: remove fdl-1.2.texi
12206         It is no longer used or maintained, and its use of @acronym
12207         is problematic.  See the thread containing
12208         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
12209         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
12210         * doc/old-licenses/fdl-1.2.texi: Remove.
12212         execinfo: port to FreeBSD
12213         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
12214         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
12215         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
12216         * modules/execinfo (Link): Add $(LIB_EXECINFO).
12218 2012-08-23  Jim Meyering  <meyering@redhat.com>
12220         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
12221         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
12222         to placate gcc's -Wold-style-declaration.
12224 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
12226         doc: do not use @acronym
12227         * doc/inet_ntoa.texi (inet_ntoa):
12228         * doc/parse-datetime.texi (Seconds since the Epoch)
12229         (Specifying time zone rules):
12230         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
12231         Don't use @acronym.  Problem reported by John Darlington in
12232         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
12234 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
12236         stdnoreturn: port to newer GCCs
12237         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
12238         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
12239         Problem reported by Jim Meyering in
12240         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
12241         Also, rename the 'test' function to a void a clash with the
12242         already-supplied 'main' function; this fixes a bug that incorrectly
12243         rejected GCC 4.7.1's <stdnoreturn.h>.
12244         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
12245         Document GCC problem.
12247 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
12249         pipe-filter: fix comment typo
12250         * lib/pipe-filter.h: Mention correct function.
12252 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
12254         execinfo: new module
12255         This is for Emacs.  Currently, it provides a no-effect stub
12256         on all platforms where it does not already work.
12257         It already works on glibc-based systems, and on Solaris 11.
12258         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
12259         New files.
12260         * doc/glibc-headers/execinfo.texi (execinfo.h):
12261         * MODULES.html.sh (Misc): Document it.
12263 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
12265         extern-inline: support old GCC 'inline'
12266         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
12267         if available.  This applies to GCC versions 2.7 through 4.2, or
12268         when newer GCC is using -fgnu89-inline.  The goal is to address
12269         some of the performance issues mentioned by Bruno Haible in
12270         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
12272 2012-08-20  Eric Blake  <eblake@redhat.com>
12274         maint.mk: avoid redundant file name in message
12275         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
12276         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
12277         (sc_makefile_path_separator_check): Remove bogus $(ME).
12279 2012-08-20  Mike Frysinger <vapier@gentoo.org>
12281         timer-time: fix link order when static linking on glibc
12282         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
12283         _after_ -lrt so that it's significant.
12285 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
12287         timespec: omit unnecessary AC_C_INLINE
12288         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
12290         stat-time: omit unnecessary AC_C_INLINE
12291         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
12292         Do not require AC_C_INLINE.
12294         ignore-value: omit unnecessary AC_C_INLINE
12295         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
12297         sys_select: avoid 'static inline'
12298         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
12300         mktime: avoid 'static inline'
12301         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
12302         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
12304 2012-08-19  Bruno Haible  <bruno@clisp.org>
12306         gnulib-tool: Improve coding style.
12307         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
12308         func_emit_lib_Makefile_am.
12309         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
12311 2012-08-19  Bruno Haible  <bruno@clisp.org>
12313         gnulib-tool: Fix indentation.
12314         * gnulib-tool (func_import): Fix indentation.
12316 2012-08-19  Bruno Haible  <bruno@clisp.org>
12318         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
12319         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
12320         on the list of removed files.
12322 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
12324         test-parse-datetime: avoid glibc leap-second glitch
12325         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
12326         with the 2012 rules.  Problem reported by Bruce Dubbs in
12327         <http://bugs.gnu.org/12206>.
12329 2012-08-14  Bruno Haible  <bruno@clisp.org>
12331         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
12332         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
12333         from argument.
12334         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
12336 2012-08-14  Eric Blake  <eblake@redhat.com>
12338         ldexp: relax license
12339         * modules/ldexp (License): Trivial relax, since the module only
12340         provides a permissively licensed m4 file.
12342 2012-08-13  Bruno Haible  <bruno@clisp.org>
12344         gnulib-tool: Fix persistence of --witness-c-macro option.
12345         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
12346         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
12348 2012-08-11  Eric Blake  <eblake@redhat.com>
12350         count-leading-zeros: use a lookup table on non-gcc compilers
12351         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
12352         alternate implementation, suggested by Jim Meyering.
12354 2012-08-10  Eric Blake  <eblake@redhat.com>
12356         count-leading-zeros: new module
12357         * modules/count-leading-zeros: New module.
12358         * m4/count-leading-zeros.m4: New file.
12359         * lib/count-leading-zeros.h: Likewise.
12360         * modules/count-leading-zeros-tests: New test.
12361         * tests/test-count-leading-zeros.c: New file.
12362         * MODULES.html.sh (Integer arithmetic functions): Document it.
12364 2012-08-07  Simon Josefsson  <simon@josefsson.org>
12365             Jim Meyering  <meyering@redhat.com>
12367         maintainer-makefile: Fix syntax error with dash.
12368         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
12369         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
12371 2012-08-05  Jim Meyering  <meyering@redhat.com>
12373         extern-inline: also ignore -Wmissing-declarations
12374         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
12375         required with gcc-4.8.0-to-be.
12377         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
12378         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
12379         for /error ?([^,]*)/.  This avoids false-positives for strings like
12380         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
12382 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
12384         gnumakefile: better interaction with Automake-NG
12385         * modules/gnumakefile [Makefile.am]: The makefiles generated by
12386         Automake-NG always contain a definition of VPATH, even in non-VPATH
12387         builds (its value being simply '.' in that case).  So, in the
12388         'clean-GNUmakefile' rule, to determine whether running under a
12389         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
12390         '$(VPATH)' expands to the empty string.
12392 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
12394         base64: Use extern C scope in header file, for C++.
12395         * lib/base64.h: Add C++ namespace protection.
12397 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
12399         stat-time, timespec, u64: support naive out-of-dir builds
12400         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
12401         Use '#include "foo.h"', not '#include <foo.h>', when including
12402         one's own interface.  This works better when configuring with
12403         out-of-directory builds, since packages need not add an
12404         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
12406 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
12408         utimens: use extern-inline
12409         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
12410         * lib/utimens.h: Add copyright notice, since this is now large enough
12411         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
12412         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
12413         * modules/utimens (Depends-on): Add extern-inline.
12415         u64: use extern-inline
12416         * lib/u64.c: New file.
12417         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
12418         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
12419         * modules/u64 (Files): Add lib/u64.c.
12420         (Depends-on): Add extern-inline.
12421         (configure.ac): No need to require AC_C_INLINE, since extern-inline
12422         does that now.
12423         (lib_SOURCES): Add u64.c.
12425         timespec: use extern-inline
12426         * lib/timespec.c: New file.
12427         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
12428         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
12429         * modules/timespec (Files): Add lib/timespec.c.
12430         (Depends-on): Add extern-inline.
12431         (lib_SOURCES): Add timespec.c.
12433         stat-time: use extern-inline
12434         * lib/stat-time.c: New file.
12435         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
12436         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
12437         * modules/stat-time (Files): Add lib/stat-time.c.
12438         (Depends-on): Add extern-inline.
12439         (lib_SOURCES): Add stat-time.c.
12441         extern-inline: new module
12442         * modules/extern-inline, m4/extern-inline.m4: New files.
12443         This is for better support of 'extern inline' a la ISO C99,
12444         with a portable alternative on compilers that do not support
12445         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
12446         of the Emacs executable, when compiled with debugging disabled,
12447         which is a typical way that Emacs is built while developing.
12449 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
12451         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
12452         * build-aux/do-release-commit-and-tag: Move variable definitions
12453         together.
12454         ($branch): Instead of defaulting to "master", default to the current
12455         branch (as gnu-web-doc-update does).
12456         (help): Display the current values of the option arguments.
12457         * top/maint.mk (release-commit): New.
12458         * top/README-release: Simplify the corresponding step.
12460 2012-07-30  Eric Blake  <eblake@redhat.com>
12462         passfd: fix comment on recvfd
12463         * lib/passfd.c (recvfd): Fix comment.
12464         Reported by Jann Horn <jannhorn@googlemail.com>.
12466 2012-07-30  Jim Meyering  <meyering@redhat.com>
12468         maint.mk: avoid a sub-shell
12469         * top/maint.mk (release-prep): Remove unneeded sub-shell.
12471 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
12473         maint.mk: use silent-rules support from Automake
12474         * top/maint.mk (news-check, vc-diff-check, announcement)
12475         (no-submodule-changes, alpha beta stable, release-prep)
12476         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
12478 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
12480         maint.mk: provide a web-manual-update target
12481         * top/maint.mk: here.
12482         * top/README-release: Use it to simplify the web manual update step.
12484 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
12486         README-release: shorten the circuit to post a news
12487         * top/README-release: Point directly to the news submission form.
12489 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
12491         gnu-web-doc-update: fix --help
12492         * build-aux/gnu-web-doc-update: The information "top level" was written
12493         twice.
12495 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
12497         maint.mk: absolute VPATH issue
12498         * top/maint.mk (release-prep): Help Git find .git/.
12499         From Jim Meyering.
12501 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
12503         gitlog-to-changelog: fix previous change
12504         * build-aux/gitlog-to-changelog: Fix condition.
12505         Add missing ";".
12507 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
12509         gitlog-to-changelog: don't expect .git to be in $srcdir
12510         Reported by Bruno Haible.
12511         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
12512         * build-aux/gitlog-to-changelog (&git_dir_option): New.
12513         Use it.
12515 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
12517         maint.mk: absolute VPATH build fix
12518         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
12519         $(srcdir) is not a parent of $(builddir).
12521 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
12523         clean-temp: Fix memory leak.
12524         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
12525         'files' members of tmpdir.
12527 2012-07-27  Jim Meyering  <meyering@redhat.com>
12529         maint.mk: new rule: refresh-gnulib-patches
12530         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
12531         Use this rule to refresh them.
12532         * top/maint.mk (refresh-gnulib-patches): New rule.
12534 2012-07-24  Bruno Haible  <bruno@clisp.org>
12536         gnulib-tool: Fix handling of inctests variable.
12537         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
12538         Reported by Nick Bowler <nbowler@elliptictech.com>.
12540 2012-07-22  Bruno Haible  <bruno@clisp.org>
12542         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
12543         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
12544         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
12545         Remove exemption for getpass.h.
12546         Suggested by Eric Blake.
12548 2012-07-20  Eric Blake  <eblake@redhat.com>
12550         verify: document conflict with -Wnested-externs
12551         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
12553         maint.mk: forbid exit(-1)
12554         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
12556 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
12558         fsusage: port back to Solaris
12559         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
12560         error (fsd not declared) on Solaris 10.  Reported privately by
12561         Andrew Borodin.
12563 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
12565         gnu-web-doc-update: fix error messages
12566         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
12568         gnu-web-doc-update: check the requirements.
12569         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
12570         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
12571         * build-aux/bootstrap (find_tool): Comment change.
12573 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
12575         maint.mk: minor simplication.
12576         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
12577         for default values.
12579 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
12581         gitlog-to-changelog: VPATH build issues
12582         If builddir is not a subdirectory of srcdir, running git from it will
12583         fail.
12584         * build-aux/gitlog-to-changelog (--srcdir): New option.
12586 2012-07-15  Bruno Haible  <bruno@clisp.org>
12588         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
12589         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
12590         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
12591         Remove exemption for fpending.h.
12592         Suggested by Eric Blake.
12594 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
12596         pthread_sigmask: fix bug on FreeBSD 9
12597         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
12598         Include string.h.
12599         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
12600         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
12601         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
12602         but pthread_sigmask (1729, NULL, NULL) returns zero.
12603         See <http://bugs.gnu.org/11884>.
12604         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
12605         by inspecting whether the main call changed the old mask.
12607 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
12609         README-release: make it more legible
12610         * top/README-release: Improve typography slightly.
12612 2012-07-15  Jim Meyering  <meyering@redhat.com>
12614         maint: require that each sc_... command start with "@"
12615         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
12616         "make sc_maint" helps us avoid this nit.
12618 2012-07-15  Jim Meyering  <meyering@redhat.com>
12620         maint.mk: add leading "@" to quiet new "make syntax-check" rule
12621         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
12623 2012-07-13  Eric Blake  <eblake@redhat.com>
12625         maint.mk: new syntax check for HAVE_DECL checks
12626         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
12627         * cfg.mk
12628         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
12629         Exempt some false positives.
12630         Based on a report by Karel Zak.
12632         argp: make HAVE_DECL usage consistent
12633         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
12634         macros, not whether they are defined.
12635         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
12636         convention with other declaration checks.
12637         Reported by Karel Zak, with suggestions from Paul Eggert.
12639         stat-time: relax license to LGPLv2+
12640         * modules/stat-time (License): Relax, with consent of all authors.
12642         strndup: fix m4 usage error
12643         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
12644         defined, to either 0 or 1.
12645         Reported by Karel Zak.
12647 2012-07-11  Jim Meyering  <meyering@redhat.com>
12649         maint: enable the sc_avoid_if_before_free syntax-check rule
12650         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
12651         (if_before_free_offenders_): Define.
12652         (if_before_free_basename_re_): Define.
12653         Exempt current files with useless if-before-free.
12655 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
12657         gettext: do not assume '#define ... defined ...' behavior
12658         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
12659         Do not use '#define FOO ... defined BAR ...', as the C standard says
12660         it's not portable to expect that this works after macro expansion.
12661         Problem reported for gzip by Steven M. Schweda in
12662         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
12664 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
12666         getloadavg: clean out old Emacs and Autoconf cruft
12667         See Glenn Morris in <http://bugs.gnu.org/11905>.
12668         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
12669         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
12670         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
12671         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
12673 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
12675         bootstrap: let warn be like tests/init.sh's warn_
12676         Reported by Jim Meyering.
12677         * build-aux/bootstrap (warn): Remove, replaced by...
12678         (warnf_, warn_): these.
12679         Adjust callers.
12680         Shorten messages that no longer fit in 80 columns.
12682 2012-07-09  Bruno Haible  <bruno@clisp.org>
12684         getopt: Simplify after Emacs changed.
12685         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
12686         (gl_GETOPT_IFELSE): Remove macro.
12688 2012-07-09  Jim Meyering  <meyering@redhat.com>
12690         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
12691         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
12693         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
12694         Bugs in both of those conspired to make the
12695         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
12696         _sc_search_regexp's handling of non-empty $in_files would filter
12697         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
12698         choice of in_files value meant there would be no match in most
12699         projects, due to the presence of two or more Makefile.in files.
12700         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
12701         Fix a bug in how a non-empty $$in_files was processed:
12702         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
12703         in spite of the name, it's a regexp, not a list of file names.
12705 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
12707         getloadavg, getopt: fix commentary re configure.in
12708         Autoconf is deprecating the name 'configure.in', so change it to
12709         to the new name 'configure.ac' in a couple of places.
12710         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
12711         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
12712         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
12713         Emacs has renamed it to configure.ac, and it no longer refers
12714         to these macros anyway.
12716         timespec: mark functions with const attributes
12717         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
12718         Mark with _GL_ATTRIBUTE_CONST.
12720 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
12722         canonicalize[-lgpl]: handle "guessing" values when cross-building
12723         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
12724         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
12725         matches "*yes" instead of just "yes".  Regression introduced in commit
12726         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
12728 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
12729             Bruno Haible  <bruno@clisp.org>
12731         canonicalize: make the right guess when cross-compiling to GNU
12732         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
12733         determine whether cross-compiling to glibc systems, so as to
12734         include GNU/Hurd.
12736 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12738         timespec-sub: avoid duplicate include
12739         * lib/timespec-sub.c: Do not include <config.h> twice.
12740         Reported by Juanma Barranquero.
12742 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
12744         bootstrap: use a more consistent error reporting scheme
12745         * build-aux/bootstrap (warn, die): New.
12746         Use them.
12748 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
12750         sys_time: allow too-wide tv_sec
12751         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
12752         timeval even if tv_sec is wider than time_t.  This allows
12753         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
12754         as without this patch gnulib replaces struct timeval
12755         and OpenBSD futimes therefore has a type mismatch.
12756         * doc/posix-headers/sys_time.texi: Mention this.
12758         pthread: check for both pthread_create and pthread_join
12759         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
12760         alter the check so that it tests for both pthread_create and
12761         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
12762         Suggested by Bruno Haible and Richard Yao in
12763         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
12765         parse-datetime: doc tuneup
12766         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
12767         spacing issues.
12769 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
12771         do-release-commit-and-tag: fix the previous commit
12772         * build-aux/do-release-commit-and-tag: Actually the test was right,
12773         but the comment and the error message were misleading.
12774         Fix comment, and improve error message.
12775         Perform check first, so that NEWS is not modified uselessly.
12777         do-release-commit-and-tag: fix typo
12778         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
12779         _not_ start with a stub.
12781 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
12783         pthread: check for pthread_create, not pthread_join
12784         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
12785         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
12786         pthread_join in libc.  I hope this removes the need for all the
12787         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
12788         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
12790 2012-07-04  Jim Meyering  <meyering@redhat.com>
12792         parse-datetime: fix failure to diagnose invalid input
12793         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
12794         rather than diagnosing the invalid input.  Now it reports this:
12795         date: invalid date '\260'
12796         * lib/parse-datetime.y (to_uchar): Define.
12797         (yylex): Don't sign-extend "other" bytes.
12798         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
12799         Thanks to Bruno Haible for the patch to this file.
12800         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
12801         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
12803 2012-07-03  Jim Meyering  <meyering@redhat.com>
12805         bootstrap: do not require now-removed build-aux/missing
12806         Now that build-aux/missing is, er, missing, bootstrap would
12807         silently fail.
12808         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
12809         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
12810         no longer part of gnulib.
12811         Diagnose the failure.
12813 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
12815         alloca: add support for HP NonStop TNS/E native
12816         * lib/alloca.in.h (alloca): Support the new host.
12817         From a suggestion by Joachim Schmitz in
12818         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
12820 2012-07-02  Pádraig Brady  <P@draigBrady.com>
12822         fsusage: remove code not needed on non GNU/Linux systems.
12824         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
12825         Don't include headers no longer needed in this case.
12826         * lib/fsusage.c [STAT_STATVFS &&
12827         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
12828         STAT_STATFS2_FRSIZE to exclude code not used in this case.
12830 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
12832         fsusage: include files needed for glibc 2.6 fallback
12833         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
12834         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
12835         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
12836         Problem reported by Ludovic Courtès in
12837         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
12839         fsusage: avoid needless check on GNU/Linux
12840         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
12841         on GNU/Linux systems, since it can't possibly work.
12843 2012-07-01  Bruno Haible  <bruno@clisp.org>
12845         log: Fix an autoconf >= 2.64 warning.
12846         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
12847         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
12849 2012-06-28  Bruno Haible  <bruno@clisp.org>
12851         log10f: Fix possible configuration problem.
12852         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
12853         $LOGF_LIBM.
12854         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
12856 2012-06-28  Bruno Haible  <bruno@clisp.org>
12858         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
12859         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
12860         not gl_cv_func_unlink_works.
12861         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
12863 2012-06-27  Eric Blake  <eblake@redhat.com>
12865         config: drop scripts that automake says are not independent
12866         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
12867         * build-aux/elisp-comp: Delete.
12868         * build-aux/missing: Likewise.
12869         * build-aux/ylwrap: Likewise.
12870         * modules/elisp-comp: Likewise.
12871         * MODULES.html.sh: Drop mention of elisp-comp.
12872         * NEWS: Mention this.
12874 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
12876         root-uid: new module
12877         This is for portability to Tandem's NonStop Kernel.
12878         * lib/root-uid.h, modules/root-uid: New files.
12879         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
12880         * lib/write-any-file.c, tests/test-sethostname2.c:
12881         Include "root-uid.h".
12882         * lib/euidaccess.c (euidaccess):
12883         * lib/pt_chown.c (main):
12884         * lib/unlinkdir.c (cannot_unlink_dir):
12885         * lib/write-any-file.c (can_write_any_file):
12886         * m4/mknod.m4 (gl_FUNC_MKNOD):
12887         * tests/test-sethostname2.c (geteuid, main):
12888         Don't assume ROOT_UID == 0.
12889         * modules/euidaccess (Depends-on):
12890         * modules/pt_chown (Depends-on):
12891         * modules/sethostname-tests (Depends-on):
12892         * modules/unlinkdir (Depends-on):
12893         * modules/write-any-file (Depends-on):
12894         Add root-uid.
12896         regex: use locale-independent comparison for codeset name
12897         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
12898         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
12899         for codeset name.
12900         * lib/regex_internal.h: Do not include <strings.h>, since we
12901         no longer use strcasecmp.
12902         * modules/regex (Depends-on): Remove strcase.
12904 2012-06-23  Bruno Haible  <bruno@clisp.org>
12906         getopt-posix: No longer guarantee that option processing is resettable.
12907         * doc/posix-functions/getopt.texi: Drop description of problem with
12908         internal state. Fix info about mingw and msvc9.
12909         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
12910         option processing by getopt(). Run three test programs instead of one.
12911         Simplify cross-compilation guess.
12912         * NEWS: Mention the change.
12913         Reported by Rich Felker <dalias@aerifal.cx>.
12915 2012-06-26  Bruno Haible  <bruno@clisp.org>
12917         argp, regex: Ensure strcasecmp gets declared.
12918         * lib/argp-help.c: Include <strings.h>.
12919         * lib/regex_internal.h: Likewise.
12920         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
12922 2012-06-24  Bruno Haible  <bruno@clisp.org>
12924         ptsname_r: Make it consistent with ptsname on AIX.
12925         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
12926         implementation as for OSF/1.
12927         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
12928         a pty master.
12930         ptsname_r: Make it consistent with ptsname on OSF/1.
12931         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
12932         OSF/1.
12934 2012-06-24  Bruno Haible  <bruno@clisp.org>
12936         ttyname_r: Fix result on OSF/1, Solaris.
12937         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
12939 2012-06-24  Bruno Haible  <bruno@clisp.org>
12941         ptsname_r: Add support for Solaris.
12942         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
12943         Solaris.
12945         ptsname_r: Fix test failure on native Windows.
12946         * modules/ptsname_r (Depends-on): Add isatty.
12948         ptsname_r: Fix test failures on IRIX, Solaris.
12949         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
12950         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
12951         accordingly.
12952         * lib/ptsname_r.c: Include <fcntl.h>.
12953         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
12954         set errno if fd is invalid.
12955         * tests/test-isatty.c (main): Update comments.
12957 2012-06-24  Bruno Haible  <bruno@clisp.org>
12959         ptsname test: Extend test.
12960         * tests/test-ptsname.c: Include <errno.h>.
12961         (main): Test behaviour with invalid file descriptor.
12963 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
12965         time: fix obsolete comment
12966         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
12967         reference to HAVE_STRUCT_TIMESPEC in comment.
12969 2012-06-23  Bruno Haible  <bruno@clisp.org>
12971         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
12972         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
12973         does not handle abbreviated long options with equivalent
12974         disambiguations, set gl_replace_getopt to yes.
12975         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
12977 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
12979         time_r: fix typo that always overrode localtime_r decl
12980         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
12981         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
12982         not in a standard include.
12984 2012-06-22  Bruno Haible  <bruno@clisp.org>
12986         Write "Mac OS X" instead of "MacOS X".
12987         * README: Write "Mac OS X" instead of "MacOS X".
12988         * build-aux/bootstrap: Likewise.
12989         * build-aux/install-reloc: Likewise.
12990         * lib/acl-internal.h: Likewise.
12991         * lib/acl_entries.c: Likewise.
12992         * lib/argp-ba.c: Likewise.
12993         * lib/argp-pv.c: Likewise.
12994         * lib/config.charset: Likewise.
12995         * lib/copy-acl.c: Likewise.
12996         * lib/csharpexec.c: Likewise.
12997         * lib/euidaccess.c: Likewise.
12998         * lib/fbufmode.c: Likewise.
12999         * lib/fflush.c: Likewise.
13000         * lib/file-has-acl.c: Likewise.
13001         * lib/filemode.h: Likewise.
13002         * lib/fpurge.c: Likewise.
13003         * lib/freadable.c: Likewise.
13004         * lib/freadahead.c: Likewise.
13005         * lib/freading.c: Likewise.
13006         * lib/freadptr.c: Likewise.
13007         * lib/freadseek.c: Likewise.
13008         * lib/fseeko.c: Likewise.
13009         * lib/fseterr.c: Likewise.
13010         * lib/fsusage.c: Likewise.
13011         * lib/fwritable.c: Likewise.
13012         * lib/fwriting.c: Likewise.
13013         * lib/get-rusage-as.c: Likewise.
13014         * lib/get-rusage-data.c: Likewise.
13015         * lib/getdomainname.c: Likewise.
13016         * lib/idpriv-drop.c: Likewise.
13017         * lib/idpriv-droptemp.c: Likewise.
13018         * lib/localcharset.c: Likewise.
13019         * lib/locale.in.h: Likewise.
13020         * lib/localename.c: Likewise.
13021         * lib/mbsrtowcs-state.c: Likewise.
13022         * lib/nproc.c: Likewise.
13023         * lib/passfd.c: Likewise.
13024         * lib/posix_openpt.c: Likewise.
13025         * lib/printf-parse.c: Likewise.
13026         * lib/progreloc.c: Likewise.
13027         * lib/safe-read.h: Likewise.
13028         * lib/safe-write.h: Likewise.
13029         * lib/sched.in.h: Likewise.
13030         * lib/set-mode-acl.c: Likewise.
13031         * lib/signal.in.h: Likewise.
13032         * lib/stdint.in.h: Likewise.
13033         * lib/stdio-impl.h: Likewise.
13034         * lib/stdlib.in.h: Likewise.
13035         * lib/strtod.c: Likewise.
13036         * lib/sys_select.in.h: Likewise.
13037         * lib/tcgetsid.c: Likewise.
13038         * lib/unistd.in.h: Likewise.
13039         * lib/unlockpt.c: Likewise.
13040         * lib/vasnprintf.c: Likewise.
13041         * lib/vma-iter.c: Likewise.
13042         * lib/wcsrtombs-state.c: Likewise.
13043         * m4/acl.m4: Likewise.
13044         * m4/acosl.m4: Likewise.
13045         * m4/asinl.m4: Likewise.
13046         * m4/atanl.m4: Likewise.
13047         * m4/c-stack.m4: Likewise.
13048         * m4/cosl.m4: Likewise.
13049         * m4/expl.m4: Likewise.
13050         * m4/extensions.m4: Likewise.
13051         * m4/fdatasync.m4: Likewise.
13052         * m4/fmal.m4: Likewise.
13053         * m4/frexp.m4: Likewise.
13054         * m4/frexpf.m4: Likewise.
13055         * m4/frexpl.m4: Likewise.
13056         * m4/fsusage.m4: Likewise.
13057         * m4/getdomainname.m4: Likewise.
13058         * m4/getloadavg.m4: Likewise.
13059         * m4/getopt.m4: Likewise.
13060         * m4/gettext.m4: Likewise.
13061         * m4/gnulib-common.m4: Likewise.
13062         * m4/intdiv0.m4: Likewise.
13063         * m4/intlmacosx.m4: Likewise.
13064         * m4/largefile.m4: Likewise.
13065         * m4/ldexpl.m4: Likewise.
13066         * m4/link-follow.m4: Likewise.
13067         * m4/locale-ar.m4: Likewise.
13068         * m4/locale-fr.m4: Likewise.
13069         * m4/locale-ja.m4: Likewise.
13070         * m4/locale-tr.m4: Likewise.
13071         * m4/locale-zh.m4: Likewise.
13072         * m4/locale_h.m4: Likewise.
13073         * m4/lock.m4: Likewise.
13074         * m4/logl.m4: Likewise.
13075         * m4/mathfunc.m4: Likewise.
13076         * m4/minus-zero.m4: Likewise.
13077         * m4/mktime.m4: Likewise.
13078         * m4/mmap-anon.m4: Likewise.
13079         * m4/multiarch.m4: Likewise.
13080         * m4/nanosleep.m4: Likewise.
13081         * m4/nocrash.m4: Likewise.
13082         * m4/poll.m4: Likewise.
13083         * m4/printf-frexpl.m4: Likewise.
13084         * m4/printf.m4: Likewise.
13085         * m4/signbit.m4: Likewise.
13086         * m4/sinl.m4: Likewise.
13087         * m4/sqrtl.m4: Likewise.
13088         * m4/strerror_r.m4: Likewise.
13089         * m4/tanl.m4: Likewise.
13090         * m4/threadlib.m4: Likewise.
13091         * m4/ttyname_r.m4: Likewise.
13092         * m4/unlink.m4: Likewise.
13093         * m4/visibility.m4: Likewise.
13094         * m4/wcwidth.m4: Likewise.
13095         * tests/minus-zero.h: Likewise.
13096         * tests/test-alloca-opt.c: Likewise.
13097         * tests/test-copy-acl.sh: Likewise.
13098         * tests/test-copy-file.sh: Likewise.
13099         * tests/test-fdatasync.c: Likewise.
13100         * tests/test-file-has-acl.sh: Likewise.
13101         * tests/test-flock.c: Likewise.
13102         * tests/test-fsync.c: Likewise.
13103         * tests/test-localename.c: Likewise.
13104         * tests/test-malloca.c: Likewise.
13105         * tests/test-nonblocking-pipe.h: Likewise.
13106         * tests/test-nonblocking-socket.h: Likewise.
13107         * tests/test-openpty.c: Likewise.
13108         * tests/test-posix_openpt.c: Likewise.
13109         * tests/test-ptsname.c: Likewise.
13110         * tests/test-ptsname_r.c: Likewise.
13111         * tests/test-sameacls.c: Likewise.
13112         * tests/test-select.h: Likewise.
13113         * tests/test-set-mode-acl.sh: Likewise.
13114         * tests/test-snprintf-posix.h: Likewise.
13115         * tests/test-sprintf-posix.h: Likewise.
13116         * tests/test-strtod.c: Likewise.
13117         * tests/test-time.c: Likewise.
13118         * tests/test-vasnprintf-posix.c: Likewise.
13119         * tests/test-vasprintf-posix.c: Likewise.
13120         * doc/acl-resources.txt: Likewise.
13121         * doc/**/*.texi: Likewise.
13122         Reported by Max Horn <max@quendi.de>.
13124 2012-06-22  Bruno Haible  <bruno@clisp.org>
13126         grantpt: Relax requirement regarding invalid file descriptors.
13127         * lib/grantpt.c: Don't include <fcntl.h>.
13128         (grantpt): Don't verify the validity of the file descriptor.
13129         * modules/grantpt (Depends-on): Remove fcntl-h.
13130         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
13131         file descriptors.
13132         * doc/posix-functions/grantpt.texi: Document more platforms on which
13133         grantpt succeeds for invalid file descriptors.
13134         Reported by Rich Felker <dalias@aerifal.cx>.
13136 2012-06-22  Bruno Haible  <bruno@clisp.org>
13138         fbufmode test: Don't test unportable behaviour.
13139         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
13140         (main): Invoke it three times.
13141         Reported by Szabolcs Nagy <nsz@port70.net>
13142         and Rich Felker <dalias@aerifal.cx>.
13144 2012-06-21  Bruno Haible  <bruno@clisp.org>
13146         gnulib-tool: Refactor inctests variable.
13147         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
13148         (func_modules_transitive_closure,
13149         func_modules_transitive_closure_separately,
13150         func_import, func_create_testdir): Update.
13152         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
13153         * gnulib-tool: Accept option --without-tests.
13154         (func_usage): Document --without-tests option. Rearrange.
13155         (inctests): Normalize according to the mode.
13156         * NEWS: Mention the change.
13157         Suggested by Simon Josefsson.
13159 2012-06-21  Bruce Korb  <bkorb@gnu.org>
13161         parse-duration test: Avoid spurious output.
13162         * tests/test-parse-duration.sh: Reindent with leading tabs.
13164 2012-06-21  Jim Meyering  <meyering@redhat.com>
13166         maint: disable the strncpy prohibition
13167         * cfg.mk: Do not prohibit strncpy here.
13169 2012-06-21  Bruno Haible  <bruno@clisp.org>
13171         nonblocking: Avoid compilation error on mingw64.
13172         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
13173         fscanf.
13174         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
13175         * modules/vfscanf (configure.ac): Likewise.
13176         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
13177         definition only if stdio.h has prepared it.
13178         Reported by Daniel P. Berrange <berrange@redhat.com>.
13180 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
13182         gnulib-tool: Use readlink if it is available.
13183         * gnulib-tool (func_readlink): Choose function more appropriately.
13185 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
13187         posixtm-tests: port to buggy compiler
13188         Problem reported by Simon Josefsson in
13189         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
13190         * modules/posixtm-tests (Depends-on): Add stdint.
13191         * tests/test-posixtm.c (struct posixtm_test.t_expected):
13192         Now of type int_least64_t, not int64_t, both because that's
13193         what INT64_C returns and because int_least64_t works even
13194         on 72-bit hosts.
13195         (T): Use INT64_C on constants outside the traditional int range,
13196         to work around compiler bug noted by Simon.
13198         mktime: fix integer overflow in 'configure'-time test
13199         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
13200         after integer overflow.  Problem reported by Rich Felker in
13201         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
13202         Also, don't look for further instances of a bug if we've already
13203         found one instance; this helps 'configure' run faster.
13205 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
13207         tmpfile, clean-temp: Fix invocation of GetVersionEx.
13208         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
13209         GetVersionEx correctly.
13210         * lib/clean-temp.c (supports_delete_on_close): Likewise.
13212 2012-06-20  Bruno Haible  <bruno@clisp.org>
13214         fdopen: Allow implementations that don't reject invalid fd arguments.
13215         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
13216         succeeds.
13217         Reported by Rich Felker <dalias@aerifal.cx>.
13219 2012-06-20  Simon Josefsson  <simon@josefsson.org>
13221         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
13222         bring in LIBINTL.
13224 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
13226         init.sh: do not rely on autoupated PWD
13227         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
13228         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
13229         Although Nelson's bug was not necessarily fixed by this patch,
13230         it seems wise to make the change for safety.
13231         * tests/init.sh (path_prepend_): Do not rely on PWD updating
13232         automagically after 'cd'; this is not reliable on older shells.
13233         (setup_): Fail if we cannot cd to temporary directory.
13235 2012-06-19  Bruno Haible  <bruno@clisp.org>
13237         stat, fstat: Avoid warnings on mingw64.
13238         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
13239         redefining.
13240         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
13241         Reported by Daniel P. Berrange <berrange@redhat.com>.
13243 2012-06-19  Bruno Haible  <bruno@clisp.org>
13245         stdioext: Add support for musl libc.
13247         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
13248         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
13250         * m4/fseterr.m4: New file.
13251         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
13252         function exists.
13253         * modules/fseterr (Files): Add m4/fseterr.m4.
13254         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
13255         __fseterr does not exist.
13256         (Makefile.am): Remove fseterr.c from lib_SOURCES.
13258         * lib/freadable.h: Update comment.
13260         * lib/fwritable.h: Update comment.
13262         * lib/freading.h: Update comment.
13264         * lib/fwriting.h: Update comment.
13266         * m4/freadahead.m4: New file.
13267         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
13268         that function exists.
13269         * modules/freadahead (Files): Add m4/freadahead.m4.
13270         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
13271         __freadahead does not exist.
13272         (Makefile.am): Remove freadahead.c from lib_SOURCES.
13274         * m4/freadptr.m4: New file.
13275         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
13276         function exists.
13277         * modules/freadptr (Files): Add m4/freadptr.m4.
13278         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
13279         __freadptr does not exist.
13280         (Makefile.am): Remove freadptr.c from lib_SOURCES.
13282         * m4/freadseek.m4: New file.
13283         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
13284         exists.
13285         * modules/freadseek (Files): Add m4/freadseek.m4.
13286         (configure.ac): Invoke gl_FUNC_FREADSEEK.
13288         * lib/fpurge.c (fpurge): Update comment.
13290         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
13292 2012-06-19  Bruno Haible  <bruno@clisp.org>
13294         *printf-posix: Put more info into config.log.
13295         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
13296         exit code into config.log.
13298 2012-06-19  Bruno Haible  <bruno@clisp.org>
13300         getopt-gnu: Fix exit code overflow in autoconf test.
13301         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
13302         to keep them below < 128.
13304 2012-06-17  Jim Meyering  <meyering@redhat.com>
13306         maint.mk: fix typo in code to derive GPG key at release time
13307         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
13309 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
13311         regex: avoid warning when pointers are not long
13312         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
13313         and uintptr_t, not long, for portability to hosts where pointers and
13314         long have different sizes.  Issue noted by Daniel P. Berrange in
13315         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
13316         and fix suggested by Bruno Haible in
13317         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
13319 2012-06-17  Bruno Haible  <bruno@clisp.org>
13321         dummy: Relicense into the public domain.
13322         * modules/dummy (License): Set to "public domain".
13323         Suggested by Reuben Thomas.
13325 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
13327         announce-gen: VPATH issues
13328         * build-aux/announce-gen (--srcdir): New option, used to trim the
13329         $srcdir part of the path from $builddir to NEWS.
13330         * top/maint.mk (announcement): Adjust.
13332 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
13334         gnu-web-doc-update: VPATH builds
13335         * build-aux/gnu-web-doc-update (--builddir): New option.
13336         Revamp the handling of options.
13337         Prefer $(...) to `...`.
13338         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
13339         the template, and it is GNU mktemp specific.
13340         Prefer set -e to long series of &&.
13341         Restore the initial git branch, not "master".
13342         Properly initialize submodules (don't rely only on bootstrap).
13343         Do not reconfigure blindly, use config.status.
13344         * top/README-release: Update instructions for gnu-web-doc-update.
13346 2012-06-11  Jim Meyering  <meyering@redhat.com>
13348         maint.mk: revert most of the previous change re "all these"
13349         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
13350         For rationale, see the discussion at
13351         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
13353 2012-06-10  Karl Berry  <karl@gnu.org>
13355         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
13357         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
13359 2012-06-10  Bruce Korb  <bkorb@gnu.org>
13361         parse-duration: Relicense under LGPLv2+.
13362         * modules/parse-duration (License): Change to LGPLv2+.
13364 2012-06-10  Jim Meyering  <meyering@redhat.com>
13366         maint.mk: prohibit common grammar error: "all these"
13367         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
13368         the list of prohibited word sequences.  It should be "all of these".
13369         * lib/tempname.c (__gen_tempname): Fix one of them.
13371 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
13373         do-release-commit-and-tag: support VPATH builds
13374         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
13375         (noteworthy): Defined earlier to factor its value.
13376         (noteworthy_stub): New.
13377         Use it to factor.
13378         (help_version): Split into...
13379         (help, version): these.
13380         Adjust the option processing part.
13381         Support "--option=value" in addition to "--option value".
13382         (builddir): New.
13383         (--builddir): New option.
13384         * top/README-release: Document this.
13385         Reword slightly so that the reader cannot understand that he
13386         has to do these steps before calling do-release-commit-and-tag.
13388 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
13390         readme-release: also require announce-gen and maintainer-makefile
13391         * modules/readme-release (Depends-on): here.
13392         * modules/announce-gen, modules/do-release-commit-and-tag,
13393         modules/gnu-web-doc-update, modules/maintainer-makefile
13394         (Description): Point to readme-release.
13396 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
13398         maint.mk: fix VPATH issues.
13399         * top/maint.mk (news-check): GNU Make understand $< very well.
13400         (release-prep): NEWS is in $(srcdir).
13402 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
13404         readme-release: require the promoted modules.
13405         * modules/readme-release (Depends-on): Add
13406         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
13407         in this text.
13409 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
13410             Bruno Haible  <bruno@clisp.org>
13412         error, strerror-override: Support mingw64 from Fedora 17.
13413         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
13414         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
13415         EINPROGRESS.
13416         * lib/strerror-override.h (strerror_override): Test it.
13417         * lib/strerror-override.c (strerror_override): Likewise.
13418         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
13420 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
13421             Bruno Haible  <bruno@clisp.org>
13423         error, strerror-override: Support mingw64 from Fedora 17.
13424         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
13425         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
13426         * lib/strerror-override.h (strerror_override): Test it.
13427         * lib/strerror-override.c (strerror_override): Likewise.
13429 2012-06-03  Bruno Haible  <bruno@clisp.org>
13431         error, strerror-override: Support new errno values from POSIX:2008.
13432         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
13433         ENOTRECOVERABLE.
13434         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
13435         platforms.
13436         * lib/strerror-override.c (strerror_override): Conditionalize the
13437         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
13438         * lib/strerror-override.h (strerror_override): Declare also if
13439         GNULIB_defined_EOWNERDEAD is defined.
13440         * tests/test-errno.c (e130, e131): New variables.
13441         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
13442         ENOTRECOVERABLE.
13443         Reported by Paolo Bonzini.
13445 2012-05-31  Jim Meyering  <meyering@redhat.com>
13447         savewd: add missing dependency on sys_wait module
13448         * modules/savewd (Depends-on): Add sys_wait, needed at least
13449         for MSVC.  Report and suggested change by Michael Goffioul.
13451 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
13453         system-quote-tests: port to CentOS 5
13454         Problem reported by Tom G. Christensen in
13455         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
13456         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
13458 2012-05-29  Jim Meyering  <meyering@redhat.com>
13460         maint: fix typos in comments and ChangeLog
13461         Culprits identified and fixed mostly automatically using these commands:
13462         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
13463         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
13464         using http://github.com/lyda/misspell-check
13465         * ChangeLog: Fix typos.
13466         * doc/solaris-versions: Likewise.
13467         * lib/regexec.c (re_search_stub): Likewise.
13468         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
13470 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
13472         manywarnings: remove duplicate -Wmultichar entry
13473         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
13474         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
13475         so keep the entry marked as documented.
13477 2012-05-27  Karl Berry  <karl@gnu.org>
13479         * config/srclist.txt (mktime.c): remove last libc sync,
13480         perhaps just temporarily.
13482 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
13484         regex: don't assume uint64_t or uint32_t
13485         * lib/regcomp.c (init_word_char): Don't assume that the types
13486         uint64_t and uint32_t exist.  The C standard doesn't guarantee
13487         them, and on some 32-bit compilers there is no uint64_t.
13488         Problem reported by Gianluigi Tiesi in
13489         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
13491 2012-05-25  Jim Meyering  <meyering@redhat.com>
13493         maint.mk: add strncpy-prohibiting syntax-check rule
13494         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
13496 2012-05-24  Jim Meyering  <meyering@redhat.com>
13498         maint.mk: compute $(gpg_key_ID) more portably
13499         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
13500         That use of sed is not portable to some fringe systems.
13501         Reported by Paul Eggert in
13502         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
13504 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
13506         mktime: sync from glibc
13507         * config/srclist.txt: Uncomment mktime.c.
13508         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
13509         First, indent with tabs, since glibc uses tabs and doesn't want to
13510         change and we'd rather be identical to glibc.  Also, two small
13511         coding changes:
13512         (isdst_differ): Use &&, not &, as && is the usual style.
13513         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
13514         for clarity.
13516 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
13518         announce-gen: du -h is more portable than du --human
13519         * build-aux/announce-gen (sizes): Invoke du with -h instead
13520         of --human.  Accept leading white space in its output.
13522 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
13524         announce-gen: Improve diagnostics.
13525         * build-aux/announce-gen: When parsing command line options,
13526         prefer "announce-gen: option --release-type requires an argument"
13527         to "Option release-type requires an argument".
13529 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
13531         maint.mk: gpg_key_ID: use sed more portably
13532         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
13533         the closing brace.
13534         (refresh-po): Fuse two sed invocations into one.
13536 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
13538         gitlog-to-changelog: support the log message format used in Bison.
13539         * build-aux/gitlog-to-changelog: Support --strip-tab and
13540         --strip-cherry-picked.
13542 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
13544         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
13545         the rest of the current time slice to another thread in the current
13546         process. So if the thread that feeds the file decscriptor we're
13547         polling is not in the current process, we get busy-waiting.
13548         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
13549         Patch from Theodore Leblond.
13550         * lib/select.c: Split polling out of the loop that sets the output
13551         fd_sets.  Check for zero result and loop if the wait timeout is
13552         infinite.
13554 2012-05-21  Simon Josefsson  <simon@josefsson.org>
13556         select: Fix build error on IRIX 6.5.
13557         * lib/select.c: Include stddef.h for NULL.
13559 2012-05-21  Simon Josefsson  <simon@josefsson.org>
13561         gc: fix libgcrypt detection on older machines.
13562         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
13563         copyright years because the file has been distributed every year
13564         since it was created.
13566 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
13568         crypto: fix bug in large buffer handling
13569         Problem reported by Serge Belyshev for glibc in
13570         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
13571         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
13572         * lib/md4.c (md4_process_block):
13573         * lib/md5.c (md5_process_block):
13574         * lib/sha1.c (sha1_process_block):
13575         * lib/sha256.c (sha256_process_block):
13576         Don't assume the buffer length is less than 2**32.
13577         * lib/sha512.c (sha512_process_block): Likewise.
13578         Here, the bug is present only in the rare case where the host does
13579         not support uint64_t or where size_t is wider than 64 bits.
13580         Use u64size to work around the problems.
13581         * lib/u64.h (u64size): New macro.
13583 2012-05-15  Pádraig Brady  <P@draigBrady.com>
13585         fsusage: fix block size returned on older Linux 2.6
13587         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
13588         which is available since Linux 2.6.
13589         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
13590         when the member is available so it can be used as a fallback.
13591         * doc/posix-functions/statvfs.texi: Mention the hang issue
13592         on Linux < 2.6.36.
13594 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
13596         bootstrap: suppress stderr chatter
13597         * build-aux/bootstrap (insert_sorted_if_absent, main program):
13598         Omit unnecessary chatter to stderr.  The main program chatter
13599         was there only inadvertantly.
13601         bootstrap: .gitignore files created by autopoint, libtool
13602         I ran into this problem when bootstrapping the latest diffutils.
13603         After './bootstrap', 'git status' reported lots of untracked files
13604         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
13605         autopoint and do not need to be version-controlled.
13606         * build-aux/bootstrap: Put into .gitignore the files that
13607         autopoint and libtool create, by keeping track of files that exist
13608         after but not before these programs are run.
13609         (version_controlled_file): Move up.  2nd arg is now full file
13610         name, not base name; this is more convenient.  Put CVS at the end,
13611         as it's now somewhat deprecated.
13613 2012-05-14  Jim Meyering  <meyering@redhat.com>
13615         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
13616         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
13617         definition.  Reported by Bruno Haible.
13619 2012-05-13  Bruno Haible  <bruno@clisp.org>
13620             Paul Eggert  <eggert@cs.ucla.edu>
13622         binary-io: Define set_binary_mode function.
13623         * lib/binary-io.h (set_binary_mode): New function.
13624         (SET_BINARY): Define in terms of set_binary_mode.
13625         * modules/binary-io (configure.ac): Require AC_C_INLINE.
13626         * tests/test-binary-io.c (main): Accept an argument, and test either
13627         set_binary_mode or SET_BINARY depending on the argument.
13628         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
13629         argument. Clean up also t-bin-out0.tmp.
13631 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
13633         bootstrap: take advantage of POSIX shell features
13635         The 'bootstrap' script offered by Gnulib script already uses POSIX
13636         shell features (like $((...)) arithmetic expansions) that are not
13637         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
13638         means that bootstrap must already be run using a proper POSIX shell,
13639         which will thus provide more features, like ${var#pattern} parameter
13640         expansion or inversion of a command exit status with '!'.  We can
13641         thus use these features to improve the clarity and the performances
13642         of the bootstrap script.
13644         Suggested by Eric Blake.
13646         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
13647         of sed/expr plus command substitutions, to save some forks.  While
13648         we are at it, prefer the POSIX $(...) form of command substitution,
13649         rather than the legacy form `...` (since the former is visually
13650         clearer and interacts better with quoting), and prefer the idiom:
13651           "if ! CMD; then ACTION ..."
13652         over the idiom:
13653           "if CMD; then :; else ACTION ..."
13654         which was required by legacy Bourne shells not supporting '!'.
13656 2012-05-12  Bruno Haible  <bruno@clisp.org>
13658         system-quote: Add more comments.
13659         * lib/system-quote.h: Add more comments about wilcards and limitations.
13660         Suggested by Eli Zaretskii <eliz@gnu.org>.
13662         sh-quote, system-quote: Add comments about wildcards.
13663         * lib/sh-quote.h: Clarify what happens with wildcard characters.
13664         * lib/system-quote.h: Likewise.
13665         Reported by Eli Zaretskii <eliz@gnu.org>.
13667 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
13669         fsusage: check for GNU/Linux statvfs problem dynamically
13670         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
13671         Define STAT_STATFS2_BSIZE too, since in this case the code now
13672         checks dynamically whether statvfs is reliable, falling back on
13673         Linux-style statfs otherwise.
13674         (statvfs_works): New function, for dynamically testing statvfs.
13675         (get_fs_usage) [STAT_STATVFS]: Use it.
13676         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
13677         statvfs on GNU/Linux hosts, since it's now done dynamically.
13679 2012-05-10  Bruno Haible  <bruno@clisp.org>
13681         system-quote, execute, spawn-pipe: Escape '?' on Windows.
13682         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
13683         '?' character.
13684         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
13685         * tests/test-system-quote-main.c (check_all): Check also strings like
13686         "??????????".
13687         Reported by Eli Zaretskii <eliz@gnu.org>.
13689 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
13691         _Noreturn: port config.h to gcc -Wundef
13692         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
13693         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
13694         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
13696 2012-05-10  Bruno Haible  <bruno@clisp.org>
13698         system-quote: Refactor.
13699         * lib/system-quote.h (system_quote_copy): Fix comment.
13700         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
13701         New functions, extracted from system_quote_copy.
13702         (system_quote_length, system_quote_copy): Use these functions.
13703         Reported by Paul Eggert.
13705 2012-05-08  Bruno Haible  <bruno@clisp.org>
13707         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
13708         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
13710 2012-05-08  Bruno Haible  <bruno@clisp.org>
13712         Tests for module 'system-quote'.
13713         * modules/system-quote-tests: New file.
13714         * tests/test-system-quote.sh: New file.
13715         * tests/test-system-quote-main.c: New file.
13716         * tests/test-system-quote-child.c: New file.
13718         New module 'system-quote'.
13719         * lib/system-quote.h: New file.
13720         * lib/system-quote.c: New file.
13721         * modules/system-quote: New file.
13723 2012-05-08  Bruno Haible  <bruno@clisp.org>
13725         sh-quote: Make C++ safe and allow multiple inclusion.
13726         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
13727         declarations in extern "C".
13729 2012-05-08  Bruno Haible  <bruno@clisp.org>
13731         sh-quote tests: Make tests stricter.
13732         * tests/test-sh-quote.c (check_one): Check the return value of
13733         shell_quote_copy.
13734         (main): Check a string with a CR character. Check a string that
13735         contains UCHAR_MAX.
13737 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
13739         warnings.m4: provide a means to specify the program to compile.
13740         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
13741         (gl_WARN_ADD): here.
13742         Use gl_AS_VAR_APPEND.
13743         Support an argument to specify the program to compile.
13744         (gl_WARN_ADD): Accept an argument to specify the program to compile.
13745         AC_SUBST the WARN_CFLAGS when they are used.
13746         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
13747         leave this to gl_WARN_ADD.
13749 2012-05-08  Eric Blake  <eblake@redhat.com>
13751         doc: recommendations on gettext version
13752         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
13753         choice between versions.
13754         * DEPENDENCIES (gettext): Cover both approaches.
13756 2012-05-08  Jim Meyering  <meyering@redhat.com>
13758         init.sh: explain why EXEEXT support uses aliases rather than functions
13759         * tests/init.sh: Add a comment.
13761         init.sh: don't let bash aliases interfere with tests
13762         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
13763         is bash.  This avoids problems for those who alias standard commands to
13764         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
13765         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
13767 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
13769         stdint: be more consistent with glibc, SunOS libc
13770         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
13771         (gl_int_fast16_t, gl_uint_fast16_t)
13772         (gl_int_fast32_t, gl_uint_fast32_t)
13773         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
13774         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
13775         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
13776         Be consistent with glibc by default, and with SunOS 5.10 and later
13777         if __sun is defined.  This lessens the likelihood of clashes if
13778         code compiled for older hosts is combined with code compiled for
13779         newer ones.  Problem reported by Niels Möller in
13780         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
13782 2012-05-07  Eric Blake  <eblake@redhat.com>
13784         isatty: relax license to LGPLv2+
13785         * modules/isatty (License): Relax license.
13787 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
13789         stat-size: comment fix
13790         * lib/stat-size.h: Remove obsolete comment about indenting.
13792 2012-05-06  Bruno Haible  <bruno@clisp.org>
13794         Tests for module 'sh-quote'.
13795         * modules/sh-quote-tests: New file.
13796         * tests/test-sh-quote.c: New file.
13798 2012-05-06  Bruno Haible  <bruno@clisp.org>
13800         sh-quote: Improve shell_quote_argv's signature.
13801         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
13802         * lib/sh-quote.c (shell_quote_argv): Likewise.
13804 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
13806         stdint: document issues with int_fast8_t etc.
13807         * doc/posix-headers/stdint.texi (stdint.h): Say that other
13808         stdint.h substitutes may define these types differently.  See
13809         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
13811 2012-05-05  Bruno Haible  <bruno@clisp.org>
13813         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
13814         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
13815         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
13816         or 'guessing no (mishandles large arguments)'.
13818 2012-05-05  Bruno Haible  <bruno@clisp.org>
13820         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
13821         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
13822         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
13823         set gl_cv_func_link_follows_symlink to "guessing no".
13825 2012-05-05  Bruno Haible  <bruno@clisp.org>
13827         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
13828         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
13829         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
13830         "guessing no".
13831         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
13833 2012-05-05  Bruno Haible  <bruno@clisp.org>
13835         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
13836         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
13837         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
13838         set gl_cv_struct_dirent_d_ino to "guessing yes".
13840 2012-05-05  Bruno Haible  <bruno@clisp.org>
13842         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
13843         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
13844         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
13845         "guessing yes".
13847 2012-05-05  Bruno Haible  <bruno@clisp.org>
13849         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
13850         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
13851         compiling to a glibc system, set gl_cv_func_signbit and
13852         gl_cv_func_signbit_gcc to "guessing yes".
13854 2012-05-05  Bruno Haible  <bruno@clisp.org>
13856         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
13857         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
13858         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
13859         to "guessing yes".
13860         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
13861         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
13863 2012-05-05  Bruno Haible  <bruno@clisp.org>
13865         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
13866         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
13867         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
13868         gl_cv_func_realpath_works to "guessing yes".
13870 2012-05-05  Bruno Haible  <bruno@clisp.org>
13872         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
13873         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
13874         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
13876 2012-05-04  Bruno Haible  <bruno@clisp.org>
13878         Tweak last commit.
13879         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
13880         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13882 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
13884         unistd_h: make it easier to avoid sys_types_h
13885         This is useful for Emacs, which has its own method of porting to
13886         Windows, and which therefore does not need the sys_types_h module.
13887         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
13888         code moved here from gl_SYS_TYPES_H.
13889         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
13890         using the code directly.
13891         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
13892         gl_SYS_TYPES_H.
13893         * modules/sys_types (Files):
13894         * modules/unistd (Files): Add m4/off_t.m4.
13896 2012-05-03  Bruno Haible  <bruno@clisp.org>
13898         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
13899         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
13900         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
13901         "guessing yes" or "guessing no".
13902         (gl_FUNC_LSTAT): Update.
13903         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
13904         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
13905         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
13907 2012-05-03  Bruno Haible  <bruno@clisp.org>
13909         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
13910         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
13911         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
13912         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
13913         cross-compiling, choose the first alternative on glibc systems.
13914         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
13916 2012-05-03  Bruno Haible  <bruno@clisp.org>
13918         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
13919         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
13920         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
13922 2012-05-03  Bruno Haible  <bruno@clisp.org>
13924         chown: Avoid "guessing no" when cross-compiling to glibc systems.
13925         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
13927 2012-05-03  Bruno Haible  <bruno@clisp.org>
13929         Avoid "guessing no" guesses when cross-compiling to glibc systems.
13930         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
13931         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
13932         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
13933         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
13934         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
13935         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
13936         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
13937         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
13938         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
13939         compiling to glibc systems, set gl_cv_func_chown_slash_works,
13940         gl_cv_func_chown_ctime_works to "guessing yes".
13941         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
13942         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
13943         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
13944         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
13945         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
13946         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
13947         compiling to glibc systems, set gl_cv_func_open_directory_works to
13948         "guessing yes".
13949         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
13950         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
13951         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
13952         "guessing yes".
13953         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
13954         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
13955         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
13956         compiling to glibc systems, set gl_cv_func_floorf_ieee to
13957         "guessing yes".
13958         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
13959         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
13960         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
13961         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
13962         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
13963         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
13964         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
13965         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
13966         "guessing yes".
13967         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
13968         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
13969         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
13970         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
13971         "guessing yes".
13972         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
13973         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
13974         "guessing yes".
13975         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
13976         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
13977         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
13978         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
13979         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
13980         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
13981         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
13982         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
13983         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
13984         compiling to glibc systems, set gl_cv_func_log10f_ieee to
13985         "guessing yes".
13986         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
13987         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
13988         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
13989         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
13990         "guessing yes".
13991         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
13992         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
13993         "guessing yes".
13994         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
13995         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
13996         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
13997         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
13998         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
13999         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
14000         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
14001         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
14002         compiling to glibc systems, set gl_cv_func_mkfifo_works to
14003         "guessing yes".
14004         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
14005         compiling to glibc systems, set gl_cv_func_mknod_works to
14006         "guessing yes".
14007         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
14008         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
14009         "guessing yes".
14010         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
14011         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
14012         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
14013         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
14014         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
14015         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
14016         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
14017         compiling to glibc systems, set gl_cv_func_svid_putenv to
14018         "guessing yes".
14019         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
14020         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
14021         "guessing yes".
14022         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
14023         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
14024         "guessing yes".
14025         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
14026         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
14027         to "guessing yes".
14028         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
14029         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
14030         to "guessing yes".
14031         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
14032         compiling to glibc systems, set gl_cv_func_rmdir_works to
14033         "guessing yes".
14034         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
14035         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
14036         gl_cv_func_unlink_parent_fails to "guessing yes".
14037         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
14038         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
14039         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
14040         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
14041         gl_cv_func_rename_dest_works to "guessing yes".
14042         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
14043         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
14044         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
14045         compiling to glibc systems, set gl_cv_func_roundf_ieee to
14046         "guessing yes".
14047         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
14048         compiling to glibc systems, set gl_cv_func_roundl_ieee to
14049         "guessing yes".
14050         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
14051         compiling to glibc systems, set gl_cv_func_setenv_works to
14052         "guessing yes".
14053         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
14054         compiling to glibc systems, set gl_cv_func_unsetenv_works to
14055         "guessing yes".
14056         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
14057         compiling to glibc systems, set gl_cv_func_sleep_works to
14058         "guessing yes".
14059         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
14060         compiling to glibc systems, set gl_cv_func_stat_file_slash to
14061         "guessing yes".
14062         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
14063         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
14064         "guessing yes".
14065         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
14066         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
14067         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
14068         compiling to glibc systems, set gl_cv_func_truncf_ieee to
14069         "guessing yes".
14070         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
14071         compiling to glibc systems, set gl_cv_func_truncl_ieee to
14072         "guessing yes".
14073         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
14074         compiling to glibc systems, set gl_cv_func_usleep_works to
14075         "guessing yes".
14076         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
14077         compiling to glibc systems, set gl_cv_func_futimesat_works to
14078         "guessing yes".
14080 2012-05-03  Bruno Haible  <bruno@clisp.org>
14082         Say "guessing yes" or "guessing no" when cross-compiling.
14083         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
14084         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
14085         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
14086         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
14087         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
14088         am_cv_func_working_getline to "guessing yes" or "guessing no".
14089         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
14090         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
14091         (gl_FUNC_MEMMEM): When cross-compiling, set
14092         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
14093         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
14094         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
14095         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
14096         set gl_cv_func_strcasestr_works_always to "guessing yes" or
14097         "guessing no".
14098         (gl_FUNC_STRCASESTR): When cross-compiling, set
14099         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
14100         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
14101         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
14102         (gl_FUNC_STRSTR): When cross-compiling, set
14103         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
14104         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
14105         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
14106         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
14107         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
14109 2012-05-01  Bruno Haible  <bruno@clisp.org>
14111         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
14112         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
14113         * build-aux/reloc-ldflags: Likewise.
14114         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
14116 2012-05-01  Bruno Haible  <bruno@clisp.org>
14118         gnulib-tool: Remove transitional code.
14119         * gnulib-tool: Don't warn about --import with 0 arguments any more.
14120         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
14122 2012-05-01  Bruno Haible  <bruno@clisp.org>
14124         getcwd: Fix misindentation.
14125         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
14127 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
14129         exclude: process exclude and include directives in order
14130         This restores the pre-2009 behavior, and is part of a fix of a
14131         grep bug reported by Quentin Arce in
14132         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
14133         * lib/exclude.c (struct exclude): Remove 'tail' member.
14134         (new_exclude_segment): Prepend the new segment instead of appending.
14135         Return void, since that's now more convenient.
14136         (file_pattern_matches): Renamed from excluded_file_pattern_p.
14137         (file_name_matches): Renamed from excluded_file_name_p.
14138         (file_pattern_matches, file_name_matches):
14139         Return true if the pattern matches, not if it excludes.
14140         All callers changed.
14141         (excluded_file_name): Process the list in reverse order;
14142         since the list is now reversed this restores the pre-2009 behavior.
14143         (add_exclude): Adjust to new reversed-order list.  Use local var
14144         rather than macro, for clarity.
14145         * tests/test-exclude7.sh: Adjust to corrected behavior.
14147         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
14148         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
14149         it's not possible here.  Handle the case of \ at end of pattern
14150         without dumping core.
14151         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
14153         _Noreturn: future-proof non-GNU and non-MSVC compilers
14154         * build-aux/snippet/_Noreturn.h (_Noreturn):
14155         * m4/gnulib-common.m4 (gl_COMMON_BODY):
14156         Do not define _Noreturn if __STDC_VERSION__ indicates this is
14157         C11 or later.  This is more likely to work with random future C
14158         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
14159         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
14161         exclude: handle wildcards with FNM_EXTMATCH
14162         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
14163         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
14164         comment that "has wildcards" really means "has or may have
14165         wildcards".  Simplify by avoiding the need to call strcspn.
14167 2012-04-29  Bruno Haible  <bruno@clisp.org>
14169         gnulib-tool: Fix list of authors.
14170         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
14172 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
14174         bootstrap: support Automake-NG in $buildreq
14175         * bootstrap (check_versions): Handle automake and aclocal from
14176         Automake-NG specially.  They can be specified as respectively
14177         the "automake-ng" and "aclocal-ng" requirements.
14179 2012-04-25  Eric Blake  <eblake@redhat.com>
14181         bootstrap: only force latest Makefile.in.in for gettext module
14182         * build-aux/bootstrap (with_gettext): Only install latest
14183         Makefile.in.in for projects requesting bleeding edge gettext.
14185 2012-04-22  Bruno Haible  <bruno@clisp.org>
14187         doc: Mention reason for replacement on glibc/Linux systems.
14188         * doc/posix-functions/dprintf.texi: Mention the problem with special
14189         'long double' values.
14190         * doc/posix-functions/fprintf.texi: Likewise.
14191         * doc/posix-functions/printf.texi: Likewise.
14192         * doc/posix-functions/snprintf.texi: Likewise.
14193         * doc/posix-functions/sprintf.texi: Likewise.
14194         * doc/posix-functions/vdprintf.texi: Likewise.
14195         * doc/posix-functions/vfprintf.texi: Likewise.
14196         * doc/posix-functions/vprintf.texi: Likewise.
14197         * doc/posix-functions/vsnprintf.texi: Likewise.
14198         * doc/posix-functions/vsprintf.texi: Likewise.
14199         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
14200         platforms with F_DUPFD_CLOEXEC problems.
14201         * doc/posix-functions/glob.texi: Mention which platforms are affected
14202         by the problem with symbolic links.
14203         * doc/posix-functions/linkat.texi: Mention the problem with
14204         AT_SYMLINK_FOLLOW on Linux.
14206 2012-04-22  Bruno Haible  <bruno@clisp.org>
14208         pwrite: Don't replace on all platforms.
14209         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
14211 2012-04-22  Bruno Haible  <bruno@clisp.org>
14213         rint* tests: Avoid gcc warnings.
14214         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
14215         * tests/test-rintf.c (INFINITY, NAN): Likewise.
14216         * tests/test-rintl.c (INFINITY, NAN): Likewise.
14218 2012-04-21  Bruno Haible  <bruno@clisp.org>
14220         users.txt: Update.
14221         * users.txt: Add freedink, wdiff. Update URLs for projects that have
14222         switched from CVS to git, bzr, or svn.
14224 2012-04-21  Bruno Haible  <bruno@clisp.org>
14226         Large File Support for native Windows platforms.
14228         * m4/largefile.m4 (gl_LARGEFILE): New macro.
14229         * modules/largefile (configure.ac): Require gl_LARGEFILE.
14231         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
14232         type.
14233         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
14234         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
14235         * doc/posix-headers/sys_types.texi: Mention the effect of the
14236         'largefile' module.
14238         * lib/fcntl.in.h: Add comments about off_t.
14239         * modules/fcntl-h (Depends-on): Add sys_types.
14241         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
14242         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
14243         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
14244         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
14245         * modules/unistd (Depends-on): Add sys_types.
14246         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
14248         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
14249         instead of lseek.
14250         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
14251         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
14252         * modules/lseek (Depends-on): Add sys_types.
14254         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
14255         msvc-nothrow.h.
14256         (SetFileSize): New function.
14257         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
14258         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
14259         if Large File Support is requested.
14260         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
14261         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
14263         * lib/stdio.in.h: Add comments about off_t.
14264         * modules/stdio (Depends-on): Add sys_types.
14266         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
14267         instead of ftello.
14268         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
14269         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
14270         (gl_PREREQ_FTELLO): New macro.
14271         * modules/ftello (Depends-on): Add sys_types.
14272         (configure.ac): Incoke gl_PREREQ_FTELLO.
14274         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
14275         instead of fseeko.
14276         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
14277         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
14278         (gl_PREREQ_FSEEKO): New macro.
14279         * modules/fseeko (Depends-on): Add sys_types.
14280         (configure.ac): Invoke gl_PREREQ_FSEEKO.
14282         * lib/sys_stat.in.h: Add comments about off_t.
14283         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
14284         64-bit integer for st_size in 'struct stat'.
14285         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
14286         Define _GL_WINDOWS_64_BIT_ST_SIZE.
14287         * modules/sys_stat (Depends-on): Add sys_types.
14288         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
14290         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
14291         instead of stat or _stat.
14293         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
14294         'struct _stati64' instead of fstat and 'struct stat'.
14295         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
14296         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
14298         Reported by Ray Satiro <raysatiro@yahoo.com>.
14300 2012-04-19  Eric Blake  <eblake@redhat.com>
14302         bootstrap: accommodate older libtool
14303         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
14304         Reported by Daniel P. Berrange.
14306 2012-04-19  Jim Meyering  <meyering@redhat.com>
14308         announce-gen: avoid failure due to lack of Digest::SHA1
14309         Even with the preferred Digest::SHA available, this script
14310         would fail when the backup module, Digest::SHA1, was not installed.
14311         * build-aux/announce-gen: Quote the conditional use of "use".
14312         Reported by Reuben Thomas in:
14313         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
14315         bootstrap: don't let a user's CDPATH setting affect this script
14316         When CDPATH is set, cd will sometimes generate output.
14317         When "cd" is run in a subshell whose output matters, that
14318         surprising-to-some output can cause malfunction.
14319         Unsetting CDPATH turns off this shell "feature."
14320         * build-aux/bootstrap (CDPATH): Unset.
14321         Reported by Reuben Thomas in:
14322         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
14323         and inspired by his patch here:
14324         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
14326 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
14327         and Jim Meyering  <meyering@redhat.com>
14329         maint.mk: catch "see @xref{}" and similar
14330         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
14331         prohibit "See also @xref{", "Also see @pxref{", and similar.
14333 2012-04-16  Jim Meyering  <meyering@redhat.com>
14335         bootstrap: really use gnulib's po/Makefile.in.in
14336         * build-aux/bootstrap: Correct the source file name in previous change.
14337         Reported by Akim Demaille.
14339         configmake: correct minor inconsistency in Makefile rule
14340         * modules/configmake (Makefile.am): All other rules like this one
14341         run the final "mv -f ..." in the same backslash-continued command
14342         as the one that does everything else.  This one put the mv -f ...
14343         command on a separate, non-backslash-continued line.
14344         Make it like the others.
14346         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
14347         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
14348         the one from gettext.  Reported by Akim Demaille.
14350 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
14352         Fix recursion of install-* into po directories.
14353         Bison's install-pdf bug reported by Hans Aberg at
14354         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
14355         * build-aux/po/Makefile.in.in (install-dvi, install-html)
14356         (install-info, install-pdf, install-ps): New targets.
14358 2012-04-16  Jim Meyering  <meyering@redhat.com>
14360         maint: avoid spurious "make sc_maint" failure
14361         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
14362         exempt all *.class file names, for lib/javaversion.class.
14364 2012-04-15  Bruno Haible  <bruno@clisp.org>
14366         lseek: Make configure test independent of environment.
14367         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
14368         Windows, we know that lseek() on pipes is broken; skip the runtime
14369         test.
14371 2012-04-14  Bruno Haible  <bruno@clisp.org>
14373         stat: Bypass buggy override in mingw64.
14374         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
14375         * lib/stat.c (stat) [mingw64]: Define to _stat.
14376         * doc/posix-functions/stat.texi: Mention mingw64 bug.
14378 2012-04-14  Bruno Haible  <bruno@clisp.org>
14380         pathmax: Fix compilation error on MSVC 9.
14381         * modules/pathmax (Depends-on): Add unistd.
14383 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
14385         README: document pointer comparison assumption
14386         * README (Portability guidelines): Document assumption about
14387         pointer comparisons, in response to a recent bug-gnulib comment by
14388         Jeffrey Kegler.
14390 2012-04-12  Bruno Haible  <bruno@clisp.org>
14392         Tests for module 'getrusage'.
14393         * modules/getrusage-tests: New file.
14394         * tests/test-getrusage.c: New file.
14396         New module 'getrusage'.
14397         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
14398         warn-on-use.h.
14399         (getrusage): New declaration.
14400         * lib/getrusage.c: New file.
14401         * m4/getrusage.m4: New file.
14402         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
14403         is declared.
14404         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
14405         HAVE_GETRUSAGE.
14406         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
14407         snippet/c++defs, snippet/warn-on-use.
14408         (Makefile.am): Update generation of sys/resource.h. Substitute
14409         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
14410         * modules/getrusage: New file.
14411         * doc/posix-functions/getrusage.texi: Mention the new module.
14413 2012-04-12  Bruno Haible  <bruno@clisp.org>
14415         Tests for module 'sys_resource'.
14416         * modules/sys_resource-tests: New file.
14417         * tests/test-sys_resource.c: New file.
14419         New module 'sys_resource'.
14420         * lib/sys_resource.in.h: New file.
14421         * m4/sys_resource_h.m4: New file.
14422         * modules/sys_resource: New file.
14423         * doc/posix-headers/sys_resource.texi: Mention the new module.
14425 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
14427         ioctl: Fix compilation error on mingw.
14428         * lib/ioctl.c: Include <windows.h>.
14429         Also reported by Ray Satiro <raysatiro@yahoo.com>.
14431 2012-04-04  Jim Meyering  <meyering@redhat.com>
14433         regex: correct #pragma guard expression
14434         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
14435         not 4.3.  Correct its cpp guard expression.
14437 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
14439         regex: remove unnecessary type punning
14440         Problem reported by Vladimir Serbinenko in
14441         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
14442         * lib/regex.h (struct re_pattern_buffer): Change the type of
14443         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
14444         Fix comment to match code.
14445         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
14446         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
14447         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
14448         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
14449         (set_regs):
14450         Omit no-longer-necessary casts.
14452 2012-04-03  Bruno Haible  <bruno@clisp.org>
14454         Tests for module 'ilogbl'.
14455         * modules/ilogbl-tests: New file.
14456         * tests/test-ilogbl.c: New file.
14458         New module 'ilogbl'.
14459         * lib/math.in.h (ilogbl): New declaration.
14460         * lib/ilogbl.c: New file.
14461         * m4/ilogbl.m4: New file.
14462         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
14463         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
14464         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
14465         Split sed invocation, to avoid the limit of 100 substitutions of
14466         HP-UX 'sed'.
14467         * modules/ilogbl: New file.
14468         * tests/test-math-c++.cc: Check the declaration of ilogbl.
14469         * doc/posix-functions/ilogbl.texi: Mention the new module.
14471 2012-04-03  Bruno Haible  <bruno@clisp.org>
14473         Tests for module 'ilogbf'.
14474         * modules/ilogbf-tests: New file.
14475         * tests/test-ilogbf.c: New file.
14477         New module 'ilogbf'.
14478         * lib/math.in.h (ilogbf): New declaration.
14479         * lib/ilogbf.c: New file.
14480         * m4/ilogbf.m4: New file.
14481         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
14482         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
14483         REPLACE_ILOGBF.
14484         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
14485         REPLACE_ILOGBF.
14486         * modules/ilogbf: New file.
14487         * tests/test-math-c++.cc: Check the declaration of ilogbf.
14488         * doc/posix-functions/ilogbf.texi: Mention the new module.
14490 2012-04-03  Bruno Haible  <bruno@clisp.org>
14492         Tests for module 'ilogb'.
14493         * modules/ilogb-tests: New file.
14494         * tests/test-ilogb.c: New file.
14495         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
14496         tests/test-logb-ieee.h.
14498         New module 'ilogb'.
14499         * lib/math.in.h (ilogb): New declaration.
14500         * lib/ilogb.c: New file.
14501         * m4/ilogb.m4: New file.
14502         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
14503         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
14504         REPLACE_ILOGB.
14505         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
14506         REPLACE_ILOGB.
14507         * modules/ilogb: New file.
14508         * tests/test-math-c++.cc: Check the declaration of ilogb.
14509         * doc/posix-functions/ilogb.texi: Mention the new module.
14511 2012-04-03  Bruno Haible  <bruno@clisp.org>
14513         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
14514         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
14515         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
14516         (main): Check their values.
14517         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
14518         problem.
14520 2012-04-03  Bruno Haible  <bruno@clisp.org>
14522         Tests for module 'logbl-ieee'.
14523         * modules/logbl-ieee-tests: New file.
14524         * tests/test-logbl-ieee.c: New file.
14526         New module 'logbl-ieee'.
14527         * modules/logbl-ieee: New file.
14529         Tests for module 'logb-ieee'.
14530         * modules/logb-ieee-tests: New file.
14531         * tests/test-logb-ieee.c: New file.
14533         New module 'logb-ieee'.
14534         * modules/logb-ieee: New file.
14536         Tests for module 'logbf-ieee'.
14537         * modules/logbf-ieee-tests: New file.
14538         * tests/test-logbf-ieee.c: New file.
14539         * tests/test-logb-ieee.h: New file.
14541         New module 'logbf-ieee'.
14542         * modules/logbf-ieee: New file.
14544 2012-04-03  Bruno Haible  <bruno@clisp.org>
14546         Tests for module 'logbl'.
14547         * modules/logbl-tests: New file.
14548         * tests/test-logbl.c: New file.
14550         New module 'logbl'.
14551         * lib/math.in.h (logbl): New declaration.
14552         * lib/logbl.c: New file.
14553         * m4/logbl.m4: New file.
14554         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
14555         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
14556         REPLACE_LOGBL.
14557         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
14558         REPLACE_LOGBL.
14559         * modules/logbl: New file.
14560         * tests/test-math-c++.cc: Check the declaration of logbl.
14561         * doc/posix-functions/logbl.texi: Mention the new module.
14563 2012-04-02  Bruno Haible  <bruno@clisp.org>
14565         Tests for module 'logbf'.
14566         * modules/logbf-tests: New file.
14567         * tests/test-logbf.c: New file.
14569         New module 'logbf'.
14570         * lib/math.in.h (logbf): New declaration.
14571         * lib/logbf.c: New file.
14572         * m4/logbf.m4: New file.
14573         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
14574         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
14575         REPLACE_LOGBF.
14576         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
14577         REPLACE_LOGBF.
14578         * modules/logbf: New file.
14579         * tests/test-math-c++.cc: Check the declaration of logbf.
14580         * doc/posix-functions/logbf.texi: Mention the new module.
14582 2012-04-02  Bruno Haible  <bruno@clisp.org>
14584         logb tests: More tests.
14585         * tests/test-logb.h: New file, based on tests/test-logb.c and
14586         tests/test-frexp.h.
14587         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
14588         (main): Just invoke test_function.
14589         * modules/logb-tests (Files): Add tests/test-logb.h,
14590         tests/minus-zero.h, tests/randomd.c.
14591         (Makefile.am): Add randomd.c to test_logb_SOURCES.
14593         logb: Provide replacement and workarounds.
14594         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
14595         is 1.
14596         * lib/logb.c: New file.
14597         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
14598         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
14599         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
14600         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
14601         * modules/logb (Files): Add lib/logb.c.
14602         (Depends-on): Add isfinite, frexp, isnand.
14603         (configure.ac): Compile the replacement code logb.c if needed.
14604         * tests/test-math-c++.cc: Check the declaration of logb.
14605         * doc/posix-functions/logb.texi: Mention the replacement and the bug
14606         with subnormal numbers.
14608 2012-04-02  Bruno Haible  <bruno@clisp.org>
14610         log10* tests: Speed up.
14611         * tests/test-log10.h (test_function): Reduce amount of random numbers
14612         to test.
14614 2012-04-01  Bruno Haible  <bruno@clisp.org>
14616         logf-ieee: Fix test whether logf works.
14617         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
14619 2012-04-01  Bruno Haible  <bruno@clisp.org>
14621         log10l: Work around log10l-ieee test failure on IRIX 6.5.
14622         * lib/log10l.c: Include <float.h>
14623         (log10l): On IRIX, normalize the +Infinity value.
14624         * modules/log10l (Depends-on): Add 'float'.
14625         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
14626         +Infinity.
14628         log10f-ieee: Work around test failure on NetBSD 5.1.
14629         * m4/log10f-ieee.m4: New file.
14630         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
14631         test whether log10f works with a negative argument. Replace it if not.
14632         * lib/log10f.c (log10f): For negative arguments, return NaN.
14633         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
14634         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
14635         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
14637         log10f-ieee: Work around test failure on Solaris 9.
14638         * modules/log10f-ieee (Depends-on): Add log10-ieee.
14639         (configure.ac): Require gl_FUNC_LOG10F.
14641         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
14642         * m4/log10-ieee.m4: New file.
14643         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
14644         whether log10 works with a negative argument. Replace it if not.
14645         * lib/log10.c (log10): For negative arguments, return NaN.
14646         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
14647         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
14648         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
14650         Tests for module 'log10l-ieee'.
14651         * modules/log10l-ieee-tests: New file.
14652         * tests/test-log10l-ieee.c: New file.
14654         New module 'log10l-ieee'.
14655         * modules/log10l-ieee: New file.
14657         Tests for module 'log10-ieee'.
14658         * modules/log10-ieee-tests: New file.
14659         * tests/test-log10-ieee.c: New file.
14661         New module 'log10-ieee'.
14662         * modules/log10-ieee: New file.
14664         Tests for module 'log10f-ieee'.
14665         * modules/log10f-ieee-tests: New file.
14666         * tests/test-log10f-ieee.c: New file.
14667         * tests/test-log10-ieee.h: New file.
14669         New module 'log10f-ieee'.
14670         * modules/log10f-ieee: New file.
14672 2012-04-01  Bruno Haible  <bruno@clisp.org>
14674         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
14675         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
14676         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
14677         workaround.
14678         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
14679         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
14680         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
14681         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
14682         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
14683         (Depends-on): Update conditions.
14684         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
14685         IRIX 6.5, OSF/1 5.1 problems.
14687 2012-04-01  Bruno Haible  <bruno@clisp.org>
14689         log10f: Work around OSF/1 5.1 bug.
14690         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
14691         * lib/log10f.c (log10f): If logf exists, use it and provide just the
14692         workaround.
14693         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
14694         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
14695         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
14696         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
14697         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
14698         (Depends-on): Update conditions.
14699         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
14701 2012-04-01  Bruno Haible  <bruno@clisp.org>
14703         log10: Work around OSF/1 5.1 bug.
14704         * lib/math.in.h (log10): New declaration.
14705         * lib/log10.c: New file.
14706         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
14707         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
14708         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
14709         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
14710         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
14711         * modules/log10 (Files): Add lib/log10.c.
14712         (Depends-on): Add math.
14713         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
14714         * tests/test-math-c++.cc: Check the declaration of log10.
14715         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
14717 2012-03-31  Bruno Haible  <bruno@clisp.org>
14719         log10l tests: More tests.
14720         * modules/log10l-tests (Files): Add tests/test-log10l.h,
14721         tests/minus-zero.h, tests/randoml.c.
14722         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
14723         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
14724         (main): Invoke test_function.
14726         log10f tests: More tests.
14727         * modules/log10f-tests (Files): Add tests/test-log10.h,
14728         tests/minus-zero.h, tests/randomf.c.
14729         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
14730         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
14731         (main): Invoke test_function.
14733         log10 tests: More tests.
14734         * tests/test-log10.h: New file.
14735         * modules/log10-tests (Files): Add tests/test-log10.h,
14736         tests/minus-zero.h, tests/randomd.c.
14737         (Makefile.am): Add randomd.c to test_log10_SOURCES.
14738         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
14739         (main): Invoke test_function.
14741 2012-03-31  Simon Josefsson  <simon@josefsson.org>
14743         fflush: Fix syntax error.
14744         * lib/fflush.c: Include unused-parameter.h, needed for
14745         _GL_UNUSED_PARAMETER.
14746         * modules/fflush (Depends-on): Add snippet/unused-parameter.
14748 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
14750         regex: pacify GCC when compiling GRUB
14751         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
14752         a diagnostic.  Reported by Vladimir Serbinenko in
14753         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
14755 2012-03-29  Eric Blake  <eblake@redhat.com>
14757         stdio: don't assume gets any more
14758         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
14759         support.
14760         * modules/stdio (Makefile.am): Likewise.
14761         * lib/stdio-read.c (gets): Likewise.
14762         * tests/test-stdio-c++.cc: Likewise.
14763         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
14764         * lib/stdio.in.h (gets): Make warning occur in more places.
14765         * doc/posix-functions/gets.texi (gets): Update documentation.
14766         Reported by Christer Solskogen.
14768         maint.mk: fix syntax checks without exclusions
14769         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
14770         Reported by Daniel P. Berrange.
14772         strerror_r: avoid compiler warning
14773         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
14774         level.
14776         fflush: avoid compiler warning
14777         * lib/fflush.c (update_fpos_cache): Mark variables that are
14778         potentially unused.
14780 2012-03-25  Bruno Haible  <bruno@clisp.org>
14782         Tests for module 'localeconv'.
14783         * modules/localeconv-tests: New file.
14784         * tests/test-localeconv.c: New file.
14786         New module 'localeconv'.
14787         * lib/locale.in.h (localeconv): New declaration.
14788         * lib/localeconv.c: New file.
14789         * m4/localeconv.m4: New file.
14790         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
14791         REPLACE_LOCALECONV.
14792         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
14793         REPLACE_LOCALECONV.
14794         * modules/localeconv: New file.
14795         * modules/nl_langinfo (Depends-on): Add localeconv.
14796         * modules/human (Depends-on): Likewise.
14797         * doc/posix-functions/localeconv.texi: Mention the new module.
14799 2012-03-25  Bruno Haible  <bruno@clisp.org>
14801         locale: Provide a complete 'struct lconv'.
14802         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
14803         'struct lconv' does not contain int_p_cs_precedes.
14804         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
14805         * doc/posix-headers/locale.texi: Update.
14807         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
14808         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
14809         * doc/posix-headers/locale.texi: Update.
14811         locale: Provide a working 'struct lconv'.
14812         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
14813         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
14814         'struct lconv' does not even contain decimal_point.
14815         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
14816         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
14817         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
14818         * doc/posix-headers/locale.texi: Mention the problems with
14819         'struct lconv'.
14820         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
14822 2012-03-24  Bruno Haible  <bruno@clisp.org>
14824         Enable common subexpression optimization in GCC.
14825         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
14826         macros.
14827         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
14828         GCC attribute 'const'.
14829         (uc_locale_language): Declare with GCC attribute 'pure'.
14830         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
14831         with GCC attribute 'const'.
14832         * lib/unictype.in.h (uc_is_general_category_withtable,
14833         uc_combining_class, uc_combining_class_name,
14834         uc_combining_class_long_name, uc_bidi_class_name,
14835         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
14836         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
14837         uc_decimal_value, uc_digit_value, uc_numeric_value,
14838         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
14839         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
14840         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
14841         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
14842         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
14843         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
14844         Declare with GCC attribute 'const'.
14845         (uc_general_category_name, uc_general_category_long_name,
14846         uc_general_category_byname, uc_general_category,
14847         uc_is_general_category, uc_combining_class_byname,
14848         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
14849         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
14850         Declare with GCC attribute 'pure'.
14851         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
14852         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
14853         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
14854         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
14855         with GCC attribute 'pure'.
14856         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
14857         'const'.
14858         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
14859         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
14860         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
14861         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
14862         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
14863         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
14864         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
14865         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
14866         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
14867         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
14868         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
14869         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
14870         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
14871         GCC attribute 'pure'.
14872         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
14873         'const'.
14874         * lib/uniwidth.in.h (uc_width): Simplify declaration.
14875         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
14876         u32_strwidth): Declare with GCC attribute 'pure'.
14878         Enable common subexpression optimization in GCC.
14879         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
14880         (alphasort): Declare with GCC attribute 'pure'.
14881         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
14882         (atoll): Declare with GCC attribute 'pure'.
14883         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
14884         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
14885         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
14886         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
14887         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
14888         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
14889         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
14891 2012-03-24  Bruno Haible  <bruno@clisp.org>
14893         gnulib-tool: Avoid unintended error output from 'cmp'.
14894         * gnulib-tool (func_add_file, func_update_file, func_import): Use
14895         "cmp -s", not "cmp > /dev/null".
14897 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
14899         gnulib-tool: fix imprecise comments w.r.t. an automake bug
14901         It's not just Automake versions < 1.9b that creates an empty
14902         pkgdatadir at installation time if pkgdata_DATA is specified
14903         to empty; modern automake versions do this as well, at least
14904         until automake 1.11.4 (not yet released at the moment of writing,
14905         but soon to appear).  That behaviour was generally considered a
14906         feature rather than a bug, at least until this discussion:
14907         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
14909         See also automake bugs #10997 and #11030.
14911         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
14912         reference to relevant automake bug numbers.
14913         (func_emit_tests_Makefile_am): Likewise.
14915 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
14917         announce-gen: use Digest::SHA when possible
14918         * build-aux/announce-gen: Use Digest::SHA when possible, falling
14919         back to Digest::SHA1 if necessary.
14921 2012-03-20  Jim Meyering  <meyering@redhat.com>
14923         tests: avoid gcc warnings about argv vs. const initializers
14924         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
14925         warnings about discarding 'const' qualifier from pointer target type.
14926         * tests/test-posix_spawn2.c (main): Likewise.
14928 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
14930         README-release: simplify slightly
14931         * top/README-release: Run "git checkout master" only once.
14933 2012-03-15  Mark Wielaard  <mark@klomp.org>
14935         git-merge-changelog: add specific example on how to use with hg.
14936         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
14938 2012-03-18  Mark Wielaard  <mark@klomp.org>
14940         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
14942 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
14944         git-version-gen: don't let "prefix" envvar cause trouble
14945         * build-aux/git-version-gen (prefix): Initialize properly,
14946         so as not to use a value specified via the environment.
14947         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
14949 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
14951         regex: diagnose too-large repeat counts in EREs
14952         Previously, the code did not diagnose the too-large repeat count
14953         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
14954         as if it were 'b\{1000000000}', which is unexpected.
14955         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
14956         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
14957         is a reasonable one for this problem.  Another option would be to
14958         create a new REG_OVERFLOW error for repeat counts that are too large.
14959         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
14960         count is too large, so that the caller can distinguish the two cases.
14961         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
14962         "Too large" return code, and that repeat counts are one example of this.
14964 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
14966         doc: some glibc x32 integer width issues
14967         * doc/posix-headers/sys_types.texi (sys/types.h):
14968         * doc/posix-headers/time.texi (time.h):
14969         Mention that glibc x32 does not conform to POSIX in a couple of
14970         areas related to integer widths.
14972 2012-03-15  Bruno Haible  <bruno@clisp.org>
14974         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
14975         * lib/fma.c (VOLATILE): New macro.
14976         (FUNC): Use it to work around a GCC compiler bug.
14978 2012-03-13  Bruno Haible  <bruno@clisp.org>
14980         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
14981         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
14982         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
14983         REPLACE_HYPOTL to 1.
14984         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
14986 2012-03-13  Bruno Haible  <bruno@clisp.org>
14988         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
14989         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
14990         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
14991         REPLACE_REMAINDERL to 1.
14992         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
14993         bug.
14995 2012-03-13  Bruno Haible  <bruno@clisp.org>
14997         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
14998         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
14999         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
15000         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
15001         too big rounding errors.
15002         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
15003         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
15004         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
15005         (Depends-on): Update conditions.
15006         * tests/test-sqrtl.c (my_ldexpl): New function.
15007         (main): Add test of a particular value.
15008         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
15010 2012-03-13  Pádraig Brady  <P@draigBrady.com>
15012         doc: Update timer_* platform portability notes.
15013         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
15014         that always return ENOSYS.
15015         * doc/posix-functions/timer_delete.texi: Likewise.
15016         * doc/posix-functions/timer_gettime.texi: Likewise.
15017         * doc/posix-functions/timer_settime.texi: Likewise.
15019 2012-03-13  Bruno Haible  <bruno@clisp.org>
15021         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
15022         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
15023         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
15024         REPLACE_CBRTL to 1.
15025         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
15027 2012-03-13  Bruno Haible  <bruno@clisp.org>
15029         remainderl: Avoid compilation error on AIX >= 5.2.
15030         * lib/math.in.h (remainderl): Undefine macro from the system header.
15032 2012-03-13  Bruno Haible  <bruno@clisp.org>
15034         Avoid compilation errors with MSVC option -fp:strict.
15035         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
15036         * lib/cbrtf.c: Likewise.
15037         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
15039 2012-03-12  Bruno Haible  <bruno@clisp.org>
15041         uninorm: Don't crash in out-of-memory conditions.
15042         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
15043         gracefully.
15044         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
15045         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
15047 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
15049         quote: fix syntax-check
15050         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
15051         also exports quote_quoting_options.
15053 2012-03-12  Simon Josefsson  <simon@josefsson.org>
15055         Collapse list of copyright years to ranges.  See
15056         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
15057         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
15058         build-aux/csharpexec.sh.in, build-aux/gnupload,
15059         build-aux/install-reloc, build-aux/javacomp.sh.in,
15060         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
15061         build-aux/move-if-change, build-aux/reloc-ldflags,
15062         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
15064 2012-03-11  Bruno Haible  <bruno@clisp.org>
15066         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
15067         * m4/log2f-ieee.m4: New file.
15068         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
15069         whether log2f works with a minus zero argument. Replace it if not.
15070         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
15071         (Depends-on): Add log2-ieee.
15072         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
15073         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
15075         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
15076         * m4/log2-ieee.m4: New file.
15077         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
15078         whether log2 works with a minus zero argument. Replace it if not.
15079         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
15080         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
15081         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
15083         Tests for module 'log2l-ieee'.
15084         * modules/log2l-ieee-tests: New file.
15085         * tests/test-log2l-ieee.c: New file.
15087         New module 'log2l-ieee'.
15088         * modules/log2l-ieee: New file.
15090         Tests for module 'log2-ieee'.
15091         * modules/log2-ieee-tests: New file.
15092         * tests/test-log2-ieee.c: New file.
15094         New module 'log2-ieee'.
15095         * modules/log2-ieee: New file.
15097         Tests for module 'log2f-ieee'.
15098         * modules/log2f-ieee-tests: New file.
15099         * tests/test-log2f-ieee.c: New file.
15100         * tests/test-log2-ieee.h: New file.
15102         New module 'log2f-ieee'.
15103         * modules/log2f-ieee: New file.
15105 2012-03-11  Bruno Haible  <bruno@clisp.org>
15107         Tests for module 'log2l'.
15108         * modules/log2l-tests: New file.
15109         * tests/test-log2l.c: New file.
15111         New module 'log2l'.
15112         * lib/math.in.h (log2l): New declaration.
15113         * lib/log2l.c: New file.
15114         * m4/log2l.m4: New file.
15115         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
15116         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
15117         REPLACE_LOG2L.
15118         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
15119         REPLACE_LOG2L.
15120         * modules/log2l: New file.
15121         * tests/test-math-c++.cc: Check the declaration of log2l.
15122         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
15123         and OSF/1 problems.
15125 2012-03-11  Bruno Haible  <bruno@clisp.org>
15127         Tests for module 'log2f'.
15128         * modules/log2f-tests: New file.
15129         * tests/test-log2f.c: New file.
15131         New module 'log2f'.
15132         * lib/math.in.h (log2f): New declaration.
15133         * lib/log2f.c: New file.
15134         * m4/log2f.m4: New file.
15135         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
15136         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
15137         REPLACE_LOG2F.
15138         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
15139         REPLACE_LOG2F.
15140         * modules/log2f: New file.
15141         * tests/test-math-c++.cc: Check the declaration of log2f.
15142         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
15143         and OSF/1 and Cygwin problems.
15145 2012-03-11  Bruno Haible  <bruno@clisp.org>
15147         Tests for module 'log2'.
15148         * modules/log2-tests: New file.
15149         * tests/test-log2.c: New file.
15150         * tests/test-log2.h: New file.
15152         New module 'log2'.
15153         * lib/math.in.h (log2): New declaration.
15154         * lib/log2.c: New file.
15155         * m4/log2.m4: New file.
15156         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
15157         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
15158         REPLACE_LOG2.
15159         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
15160         REPLACE_LOG2.
15161         * modules/log2: New file.
15162         * tests/test-math-c++.cc: Check the declaration of log2.
15163         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
15164         and OSF/1 and Cygwin problems.
15166 2012-03-11  Bruno Haible  <bruno@clisp.org>
15168         exp2* tests: More tests.
15169         * tests/test-exp2.h (test_function): Test all integral arguments that
15170         don't need to overflow or denormalized numbers.
15171         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
15172         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
15173         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
15175 2012-03-10  Bruno Haible  <bruno@clisp.org>
15177         log1pl-ieee: Work around test failure on AIX 7.1.
15178         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
15180         log1pl-ieee: Work around test failure on IRIX 6.5.
15181         * m4/log1pl-ieee.m4: New file.
15182         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
15183         test whether log1pl works with a minus zero argument. Replace it if
15184         not.
15185         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
15186         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
15187         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
15188         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
15189         (Depends-on): Update conditions.
15190         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
15191         m4/signbit.m4.
15192         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
15193         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
15195         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
15196         * m4/log1pf-ieee.m4: New file.
15197         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
15198         test whether log1pf works with a minus zero argument. Replace it if
15199         not.
15200         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
15201         m4/signbit.m4.
15202         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
15203         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
15205         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
15206         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
15207         (configure.ac): Require gl_FUNC_LOG1PF.
15209         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
15210         * m4/log1p-ieee.m4: New file.
15211         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
15212         whether log1p works with a minus zero argument. Replace it if not.
15213         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
15214         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
15215         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
15216         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
15217         (Depends-on): Update conditions.
15218         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
15219         m4/signbit.m4.
15220         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
15221         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
15223         Tests for module 'log1pl-ieee'.
15224         * modules/log1pl-ieee-tests: New file.
15225         * tests/test-log1pl-ieee.c: New file.
15227         New module 'log1pl-ieee'.
15228         * modules/log1pl-ieee: New file.
15230         Tests for module 'log1p-ieee'.
15231         * modules/log1p-ieee-tests: New file.
15232         * tests/test-log1p-ieee.c: New file.
15234         New module 'log1p-ieee'.
15235         * modules/log1p-ieee: New file.
15237         Tests for module 'log1pf-ieee'.
15238         * modules/log1pf-ieee-tests: New file.
15239         * tests/test-log1pf-ieee.c: New file.
15240         * tests/test-log1p-ieee.h: New file.
15242         New module 'log1pf-ieee'.
15243         * modules/log1pf-ieee: New file.
15245 2012-03-10  Bruno Haible  <bruno@clisp.org>
15247         Tests for module 'log1pl'.
15248         * modules/log1pl-tests: New file.
15249         * tests/test-log1pl.c: New file.
15251         New module 'log1pl'.
15252         * lib/math.in.h (log1pl): New declaration.
15253         * lib/log1pl.c: New file.
15254         * m4/log1pl.m4: New file.
15255         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
15256         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
15257         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
15258         * modules/log1pl: New file.
15259         * tests/test-math-c++.cc: Check the declaration of log1pl.
15260         * doc/posix-functions/log1pl.texi: Mention the new module.
15262 2012-03-10  Bruno Haible  <bruno@clisp.org>
15264         Tests for module 'log1pf'.
15265         * modules/log1pf-tests: New file.
15266         * tests/test-log1pf.c: New file.
15268         New module 'log1pf'.
15269         * lib/math.in.h (log1pf): New declaration.
15270         * lib/log1pf.c: New file.
15271         * m4/log1pf.m4: New file.
15272         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
15273         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
15274         REPLACE_LOG1PF.
15275         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
15276         REPLACE_LOG1PF.
15277         * modules/log1pf: New file.
15278         * tests/test-math-c++.cc: Check the declaration of log1pf.
15279         * doc/posix-functions/log1pf.texi: Mention the new module.
15281 2012-03-10  Bruno Haible  <bruno@clisp.org>
15283         log1p tests: More tests.
15284         * tests/test-log1p.h: New file.
15285         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
15286         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
15287         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
15288         (main): Invoke test_function.
15290         log1p: Provide replacement for Minix and MSVC.
15291         * lib/math.in.h (log1p): New declaration.
15292         * lib/log1p.c: New file.
15293         * m4/log1p.m4: New file.
15294         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
15295         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
15296         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
15297         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
15298         (Depends-on): Add math, isnand, log, round.
15299         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
15300         HAVE_LOG1P is 0.
15301         * tests/test-math-c++.cc: Check the declaration of log1p.
15302         * doc/posix-functions/log1p.texi: Mention the replacement.
15304 2012-03-10  Bruno Haible  <bruno@clisp.org>
15306         math tests: Small simplification.
15307         * tests/test-exp.h (test_function): Use the same err_bound for
15308         'double' on platforms with sizeof (long double) == sizeof (double)
15309         than on platforms with sizeof (long double) > sizeof (double).
15310         * tests/test-exp2.h (test_function): Likewise.
15311         * tests/test-expm1.h (test_function): Likewise.
15312         * tests/test-log.h (test_function): Likewise.
15314 2012-03-10  Bruno Haible  <bruno@clisp.org>
15316         Fix some comments.
15317         * lib/expl.c: Fix an ambiguous comment.
15318         * lib/expm1.c: Likewise.
15319         * lib/expm1l.c: Likewise.
15320         * lib/exp2.c: Likewise.
15321         * lib/exp2l.c: Likewise.
15323 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
15325         regex: allow inclusion of <regex.h> before <limits.h>
15326         Without this patch, portable programs had to include <limits.h> before
15327         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
15328         I ran into this problem with a test version of GNU grep on Solaris 8.
15329         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
15330         This is done conditionally so that this change can be merged
15331         back to glibc.
15332         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
15333         using the included regex.
15335         fts: depend on fdopendir
15336         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
15337         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
15338         problem was introduced when fdopendir was split out.
15340 2012-03-10  Bruno Haible  <bruno@clisp.org>
15342         Remove unused variables.
15343         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
15344         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
15346 2012-03-10  Bruno Haible  <bruno@clisp.org>
15348         isnanf-nolibm: Fix last commit.
15349         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
15351         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
15352         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
15354 2012-03-10  Bruno Haible  <bruno@clisp.org>
15356         logf-ieee: Work around test failure on NetBSD 5.1.
15357         * m4/logf-ieee.m4: New file.
15358         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
15359         whether logf works with a negative argument. Replace it if not.
15360         * lib/logf.c (logf): For negative arguments, return NaN.
15361         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
15362         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
15363         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
15365         logf-ieee: Work around test failure on Solaris 9.
15366         * modules/logf-ieee (Depends-on): Add log-ieee.
15367         (configure.ac): Require gl_FUNC_LOGF.
15369         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
15370         * m4/log-ieee.m4: New file.
15371         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
15372         log works with a negative argument. Replace it if not.
15373         * lib/log.c (log): For negative arguments, return NaN.
15374         * modules/log-ieee (Files): Add m4/log-ieee.m4.
15375         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
15376         * doc/posix-functions/log.texi: Mention the log-ieee module.
15378         Tests for module 'logl-ieee'.
15379         * modules/logl-ieee-tests: New file.
15380         * tests/test-logl-ieee.c: New file.
15382         New module 'logl-ieee'.
15383         * modules/logl-ieee: New file.
15385         Tests for module 'log-ieee'.
15386         * modules/log-ieee-tests: New file.
15387         * tests/test-log-ieee.c: New file.
15389         New module 'log-ieee'.
15390         * modules/log-ieee: New file.
15392         Tests for module 'logf-ieee'.
15393         * modules/logf-ieee-tests: New file.
15394         * tests/test-logf-ieee.c: New file.
15395         * tests/test-log-ieee.h: New file.
15397         New module 'logf-ieee'.
15398         * modules/logf-ieee: New file.
15400 2012-03-10  Bruno Haible  <bruno@clisp.org>
15402         log: Fix bug introduced on 2012-03-09.
15403         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
15405 2012-03-10  Pádraig Brady  <P@draigBrady.com>
15407         timer-time: link explicitly with pthreads on glibc
15408         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
15409         to support static linking, when newer glibc is
15410         detected, as that contains pthread emulation of
15411         POSIX timer functions where required.
15412         * modules/timer-time: Depend on threadlib to
15413         pull in the appropriate library to link.
15415 2012-03-10  Bruno Haible  <bruno@clisp.org>
15417         log* tests: More tests.
15418         * tests/test-log.h: New file.
15419         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
15420         (main): Invoke test_function.
15421         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
15422         (main): Invoke test_function.
15423         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
15424         (main): Invoke test_function.
15425         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
15426         tests/randomd.c.
15427         (Makefile.am): Add randomd.c to test_log_SOURCES.
15428         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
15429         tests/randomf.c.
15430         (Makefile.am): Add randomf.c to test_logf_SOURCES.
15431         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
15432         tests/randoml.c.
15433         (Depends-on): Add 'float'.
15434         (Makefile.am): Add randoml.c to test_logl_SOURCES.
15436 2012-03-09  Bruno Haible  <bruno@clisp.org>
15438         logl: Work around OSF/1 5.1 bug.
15439         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
15440         * lib/logl.c (logl): If logl exists, use it and provide just the
15441         workaround.
15442         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
15443         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
15444         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
15445         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
15446         * modules/logl (configure.ac): Consider REPLACE_LOGL.
15447         (Depends-on): Update conditions.
15448         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
15450 2012-03-09  Bruno Haible  <bruno@clisp.org>
15452         logf: Work around OSF/1 5.1 bug.
15453         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
15454         * lib/logf.c (logf): If logf exists, use it and provide just the
15455         workaround.
15456         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
15457         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
15458         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
15459         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
15460         * modules/logf (configure.ac): Consider REPLACE_LOGF.
15461         (Depends-on): Update conditions.
15462         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
15464 2012-03-09  Bruno Haible  <bruno@clisp.org>
15466         log: Work around OSF/1 5.1 bug.
15467         * lib/math.in.h (log): New declaration.
15468         * lib/log.c: New file.
15469         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
15470         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
15471         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
15472         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
15473         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
15474         * modules/log (Files): Add lib/log.c.
15475         (Depends-on): Add math.
15476         (configure.ac): If REPLACE_LOG is 1, compile an override.
15477         * tests/test-math-c++.cc: Check the declaration of log.
15478         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
15480 2012-03-09  Jim Meyering  <meyering@redhat.com>
15482         readtokens.c: adjust wording in a comment
15483         * lib/readtokens.c: Insert omitted "that" in a comment.
15485 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
15487         modechange: add notations +40, 00440, etc.
15488         * lib/modechange.c (mode_compile): Support new notations
15489         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
15491 2012-03-08  Bruno Haible  <bruno@clisp.org>
15493         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
15494         * m4/exp2l-ieee.m4: New file.
15495         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
15496         test whether exp2l works with a NaN argument and with a negative
15497         infinity argument. Replace it if not.
15498         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
15499         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
15500         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
15501         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
15502         (Depends-on): Update conditions.
15503         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
15504         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
15505         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
15507         Tests for module 'exp2l-ieee'.
15508         * modules/exp2l-ieee-tests: New file.
15509         * tests/test-exp2l-ieee.c: New file.
15511         New module 'exp2l-ieee'.
15512         * modules/exp2l-ieee: New file.
15514         Tests for module 'exp2-ieee'.
15515         * modules/exp2-ieee-tests: New file.
15516         * tests/test-exp2-ieee.c: New file.
15518         New module 'exp2-ieee'.
15519         * modules/exp2-ieee: New file.
15521         Tests for module 'exp2f-ieee'.
15522         * modules/exp2f-ieee-tests: New file.
15523         * tests/test-exp2f-ieee.c: New file.
15524         * tests/test-exp2-ieee.h: New file.
15526         New module 'exp2f-ieee'.
15527         * modules/exp2f-ieee: New file.
15529 2012-03-08  Bruno Haible  <bruno@clisp.org>
15531         Tests for module 'exp2l'.
15532         * modules/exp2l-tests: New file.
15533         * tests/test-exp2l.c: New file.
15535         New module 'exp2l'.
15536         * lib/math.in.h (exp2l): New declaration.
15537         * lib/exp2l.c: New file.
15538         * lib/expl-table.c: New file, extracted from lib/expl.c.
15539         * lib/expl.c (gl_expl_table): New declaration.
15540         (expl): Remove expl_table. Update reference.
15541         * m4/exp2l.m4: New file.
15542         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
15543         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
15544         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
15545         * modules/exp2l: New file.
15546         * modules/expl (Files): Add lib/expl-table.c.
15547         (configure.ac): Compile also expl-table.c.
15548         * tests/test-math-c++.cc: Check the declaration of exp2l.
15549         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
15550         problem.
15552 2012-03-08  Bruno Haible  <bruno@clisp.org>
15554         Tests for module 'exp2f'.
15555         * modules/exp2f-tests: New file.
15556         * tests/test-exp2f.c: New file.
15558         New module 'exp2f'.
15559         * lib/math.in.h (exp2f): New declaration.
15560         * lib/exp2f.c: New file.
15561         * m4/exp2f.m4: New file.
15562         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
15563         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
15564         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
15565         * modules/exp2f: New file.
15566         * tests/test-math-c++.cc: Check the declaration of exp2f.
15567         * doc/posix-functions/exp2f.texi: Mention the new module and the
15568         IRIX problem.
15570 2012-03-08  Bruno Haible  <bruno@clisp.org>
15572         Tests for module 'exp2'.
15573         * modules/exp2-tests: New file.
15574         * tests/test-exp2.c: New file.
15575         * tests/test-exp2.h: New file.
15577         New module 'exp2'.
15578         * lib/math.in.h (exp2): New declaration.
15579         * lib/exp2.c: New file.
15580         * m4/exp2.m4: New file.
15581         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
15582         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
15583         REPLACE_EXP2.
15584         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
15585         REPLACE_EXP2.
15586         * modules/exp2: New file.
15587         * tests/test-math-c++.cc: Check the declaration of exp2.
15588         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
15589         and OpenBSD problems.
15591 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
15593         savedir: fix comment typo
15594         * lib/savedir.c (savedirstream): Fix typo in comment.
15596 2012-03-08  Bruno Haible  <bruno@clisp.org>
15598         test-readtokens.c: use const; remove unwarranted cast
15599         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
15601 2012-03-08  Bruno Haible  <bruno@clisp.org>
15603         fmal: Avoid compilation error on AIX.
15604         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
15605         AIX 5.2..7.1.
15607 2012-03-08  Bruno Haible  <bruno@clisp.org>
15609         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
15610         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
15611         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
15612         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
15613         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
15614         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
15615         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
15617 2012-03-08  Bruno Haible  <bruno@clisp.org>
15619         remainderf: Override buggy system function on IRIX 6.5.
15620         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
15621         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
15622         when it exists.
15623         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
15625 2012-03-08  Jim Meyering  <meyering@redhat.com>
15627         test-readtokens.c: avoid const-related compilation warnings
15628         * tests/test-readtokens.c: Avoid const-related compilation warnings.
15630 2012-03-07  Jim Meyering  <meyering@redhat.com>
15631             Bruno Haible  <bruno@clisp.org>
15633         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
15634         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
15635         tests/randomd.c.
15636         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
15637         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
15638         tests/randoml.c.
15639         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
15641 2012-03-07  Bruno Haible  <bruno@clisp.org>
15643         expm1l: Avoid compilation error on AIX.
15644         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
15645         AIX 5.2..7.1.
15647 2012-03-07  Bruno Haible  <bruno@clisp.org>
15649         expm1l: Don't override undeclared system function on IRIX 6.5.
15650         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
15651         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
15652         it exists. Set HAVE_DECL_EXPM1L.
15653         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
15654         HAVE_EXPM1L.
15655         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
15656         HAVE_EXPM1L.
15657         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
15659 2012-03-07  Bruno Haible  <bruno@clisp.org>
15661         remainderl: Don't override undeclared system function on IRIX 6.5.
15662         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
15663         HAVE_REMAINDERL.
15664         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
15665         declared when it exists. Set HAVE_DECL_REMAINDERL.
15666         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
15667         not HAVE_REMAINDERL.
15668         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
15669         HAVE_REMAINDERL.
15670         * doc/posix-functions/remainderl.texi: Mention missing declaration
15671         problem.
15673 2012-03-07  Bruno Haible  <bruno@clisp.org>
15675         rintf: Don't override undeclared system function on IRIX 6.5.
15676         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
15677         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
15678         exists. Set HAVE_DECL_RINTF.
15679         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
15680         HAVE_RINTF.
15681         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
15682         HAVE_RINTF.
15683         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
15685 2012-03-07  Bruno Haible  <bruno@clisp.org>
15687         roundl: Avoid compilation error on AIX.
15688         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
15689         AIX 5.2..7.1.
15691 2012-03-07  Bruno Haible  <bruno@clisp.org>
15693         roundl: Don't override undeclared system function on IRIX 6.5.
15694         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
15695         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
15696         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
15697         * modules/roundl (configure.ac): For replacement code, test
15698         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
15699         (Depends-on): Update conditions.
15700         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
15702 2012-03-07  Bruno Haible  <bruno@clisp.org>
15704         roundf: Don't override undeclared system function on IRIX 6.5.
15705         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
15706         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
15707         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
15708         * modules/roundf (configure.ac): For replacement code, test
15709         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
15710         (Depends-on): Update conditions.
15711         * modules/roundf-ieee (Depends-on): Update conditions.
15712         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
15714 2012-03-07  Bruno Haible  <bruno@clisp.org>
15716         round: Don't override undeclared system function on IRIX 6.5.
15717         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
15718         argument.
15719         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
15720         also when it is not declared. Set HAVE_ROUND. For replacement code,
15721         test HAVE_ROUND, not HAVE_DECL_ROUND.
15722         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
15723         not HAVE_DECL_ROUND.
15724         (Depends-on): Update conditions.
15725         * modules/round-ieee (Depends-on): Update conditions.
15726         * doc/posix-functions/round.texi: Mention the IRIX problem.
15728 2012-03-07  Bruno Haible  <bruno@clisp.org>
15730         copysignf: Don't override undeclared system function on IRIX 6.5.
15731         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
15732         HAVE_COPYSIGNF.
15733         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
15734         declared when it exists. Set HAVE_DECL_COPYSIGNF.
15735         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
15736         not HAVE_COPYSIGNF.
15737         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
15738         HAVE_COPYSIGNF.
15739         * doc/posix-functions/copysignf.texi: Mention missing declaration
15740         problem.
15742 2012-03-07  Jim Meyering  <meyering@redhat.com>
15744         readtokens: add tests
15745         * modules/readtokens-tests: New file.
15746         * tests/test-readtokens.c: New file.
15748 2012-03-07  Jim Meyering  <meyering@redhat.com>
15750         quotearg: the module must now include quote.h
15751         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
15752         So must the module.
15753         * modules/quotearg (Files): Add quote.h.
15755 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
15757         readtokens: avoid core dumps with unusual calling patterns
15758         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
15759         * lib/readtokens.c: Include limits.h.
15760         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
15761         (readtoken): Don't cache the delimiters; the cache code was buggy
15762         if !delim && saved_delim, or if the new n_delim differs from the old.
15763         Also, it wasn't thread-safe.
15765 2012-03-07  Bruno Haible  <bruno@clisp.org>
15767         quote: Adhere to common module description layout.
15768         * modules/quote (Makefile.am): Add back empty section.
15770 2012-03-06  Akim Demaille  <demaille@gostai.com>
15772         quote: fuse into quotearg
15773         This patch is made for the benefit of Bison.
15774         quote does not leave the choice of the quoting style to the user.
15775         quoting_style provides poor customizability, yet quoting_options,
15776         which is very rich, is hidden inside quotearg.c.  So in order to
15777         allow quote customization, move its implementation to quotearg.c.
15778         * lib/quote.c: Remove.
15779         * modules/quote: Adjust.
15780         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
15781         warning: provide all the members of literal structs.
15782         (quote_quoting_options): New.
15783         (quote, quote_n): Import implementation from quote.c.
15784         * lib/quote.h: Import the comments from quote.c.
15785         (quote_quoting_options): New.
15787 2012-03-06  Bruno Haible  <bruno@clisp.org>
15789         Tests for module 'expm1l-ieee'.
15790         * modules/expm1l-ieee-tests: New file.
15791         * tests/test-expm1l-ieee.c: New file.
15793         New module 'expm1l-ieee'.
15794         * modules/expm1l-ieee: New file.
15796         Tests for module 'expm1f-ieee'.
15797         * modules/expm1f-ieee-tests: New file.
15798         * tests/test-expm1f-ieee.c: New file.
15800         New module 'expm1f-ieee'.
15801         * modules/expm1f-ieee: New file.
15803         Tests for module 'expm1-ieee'.
15804         * modules/expm1-ieee-tests: New file.
15805         * tests/test-expm1-ieee.c: New file.
15806         * tests/test-expm1-ieee.h: New file.
15808         New module 'expm1-ieee'.
15809         * modules/expm1-ieee: New file.
15810         * m4/expm1-ieee.m4: New file.
15811         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
15812         whether expm1 works with a minus zero argument. Replace it if not.
15813         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
15814         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
15815         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
15816         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
15817         (Depends-on): Update conditions.
15818         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
15819         AIX problem.
15821 2012-03-06  Bruno Haible  <bruno@clisp.org>
15823         Work around expm1f bug on IRIX 6.5.
15824         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
15825         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
15826         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
15827         not work.
15828         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
15829         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
15830         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
15831         (Depends-on): Update conditions.
15832         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
15834 2012-03-06  Bruno Haible  <bruno@clisp.org>
15836         Tests for module 'expm1l'.
15837         * modules/expm1l-tests: New file.
15838         * tests/test-expm1l.c: New file.
15840         New module 'expm1l'.
15841         * lib/math.in.h (expm1l): New declaration.
15842         * lib/expm1l.c: New file.
15843         * m4/expm1l.m4: New file.
15844         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
15845         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
15846         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
15847         * modules/expm1l: New file.
15848         * tests/test-math-c++.cc: Check the declaration of expm1l.
15849         * doc/posix-functions/expm1l.texi: Mention the new module.
15851 2012-03-06  Bruno Haible  <bruno@clisp.org>
15853         Tests for module 'expm1f'.
15854         * modules/expm1f-tests: New file.
15855         * tests/test-expm1f.c: New file.
15857         New module 'expm1f'.
15858         * lib/math.in.h (expm1f): New declaration.
15859         * lib/expm1f.c: New file.
15860         * m4/expm1f.m4: New file.
15861         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
15862         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
15863         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
15864         * modules/expm1f: New file.
15865         * tests/test-math-c++.cc: Check the declaration of expm1f.
15866         * doc/posix-functions/expm1f.texi: Mention the new module.
15868 2012-03-06  Bruno Haible  <bruno@clisp.org>
15870         Tests for module 'expm1'.
15871         * modules/expm1-tests: New file.
15872         * tests/test-expm1.c: New file.
15873         * tests/test-expm1.h: New file.
15875         New module 'expm1'.
15876         * lib/math.in.h (expm1): New declaration.
15877         * lib/expm1.c: New file.
15878         * m4/expm1.m4: New file.
15879         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
15880         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
15881         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
15882         * modules/expm1: New file.
15883         * tests/test-math-c++.cc: Check the declaration of expm1.
15884         * doc/posix-functions/expm1.texi: Mention the new module.
15886 2012-03-06  Bruno Haible  <bruno@clisp.org>
15888         math: Ensure declarations of math functions.
15889         * modules/acosf (Depends-on): Add 'extensions'.
15890         * modules/asinf (Depends-on): Likewise.
15891         * modules/atan2f (Depends-on): Likewise.
15892         * modules/atanf (Depends-on): Likewise.
15893         * modules/cbrt (Depends-on): Likewise.
15894         * modules/cbrtf (Depends-on): Likewise.
15895         * modules/cbrtl (Depends-on): Likewise.
15896         * modules/copysignf (Depends-on): Likewise.
15897         * modules/copysignl (Depends-on): Likewise.
15898         * modules/cosf (Depends-on): Likewise.
15899         * modules/coshf (Depends-on): Likewise.
15900         * modules/expf (Depends-on): Likewise.
15901         * modules/fabsf (Depends-on): Likewise.
15902         * modules/fabsl (Depends-on): Likewise.
15903         * modules/fmaf (Depends-on): Likewise.
15904         * modules/fmal (Depends-on): Likewise.
15905         * modules/fmodf (Depends-on): Likewise.
15906         * modules/fmodl (Depends-on): Likewise.
15907         * modules/frexpf (Depends-on): Likewise.
15908         * modules/frexpl (Depends-on): Likewise.
15909         * modules/hypot (Depends-on): Likewise.
15910         * modules/hypotf (Depends-on): Likewise.
15911         * modules/hypotl (Depends-on): Likewise.
15912         * modules/ldexpf (Depends-on): Likewise.
15913         * modules/ldexpl (Depends-on): Likewise.
15914         * modules/log10f (Depends-on): Likewise.
15915         * modules/log10l (Depends-on): Likewise.
15916         * modules/log1p (Depends-on): Likewise.
15917         * modules/logb (Depends-on): Likewise.
15918         * modules/logf (Depends-on): Likewise.
15919         * modules/modff (Depends-on): Likewise.
15920         * modules/modfl (Depends-on): Likewise.
15921         * modules/powf (Depends-on): Likewise.
15922         * modules/remainderf (Depends-on): Likewise.
15923         * modules/remainderl (Depends-on): Likewise.
15924         * modules/rintf (Depends-on): Likewise.
15925         * modules/rintl (Depends-on): Likewise.
15926         * modules/sinf (Depends-on): Likewise.
15927         * modules/sinhf (Depends-on): Likewise.
15928         * modules/sqrtf (Depends-on): Likewise.
15929         * modules/tanf (Depends-on): Likewise.
15930         * modules/tanhf (Depends-on): Likewise.
15931         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
15932         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
15933         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
15934         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
15935         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
15936         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
15937         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
15938         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
15939         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
15940         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
15941         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
15942         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
15943         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
15944         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
15945         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
15946         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
15947         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
15948         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
15949         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
15950         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
15951         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
15952         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
15953         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
15954         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
15955         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
15956         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
15957         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
15958         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
15959         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
15960         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
15961         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
15962         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
15963         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
15964         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
15965         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
15966         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
15967         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
15968         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
15969         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
15970         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
15971         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
15973 2012-03-06  Bruno Haible  <bruno@clisp.org>
15975         math: Update module names in warnings.
15976         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
15977         tanl): Use specific module name in warn-on-use warning.
15979 2012-03-06  Bruno Haible  <bruno@clisp.org>
15981         expl: Simplify computation.
15982         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
15984 2012-03-05  Bruno Haible  <bruno@clisp.org>
15986         exp* tests: More tests.
15987         * tests/test-exp.h: New file.
15988         * tests/test-exp.c: Include <float.h> and test-exp.h.
15989         (main): Invoke test_function.
15990         * tests/test-expf.c: Include <float.h> and test-exp.h.
15991         (main): Invoke test_function.
15992         * tests/test-expl.c: Include <float.h> and test-exp.h.
15993         (main): Invoke test_function.
15994         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
15995         (Makefile.am): Add randomd.c to test_exp_SOURCES.
15996         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
15997         (Makefile.am): Add randomf.c to test_expf_SOURCES.
15998         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
15999         (Depends-on): Add 'float'.
16000         (Makefile.am): Add randoml.c to test_expl_SOURCES.
16002         expl: Fix precision of computed result.
16003         * lib/expl.c: Completely rewritten.
16004         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
16005         (Maintainer): Add me.
16006         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
16008 2012-03-05  Bruno Haible  <bruno@clisp.org>
16010         cbrt* tests: More tests.
16011         * tests/test-cbrt.h: New file.
16012         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
16013         (main): Invoke test_function.
16014         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
16015         (main): Invoke test_function.
16016         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
16017         (main): Invoke test_function.
16018         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
16019         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
16020         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
16021         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
16022         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
16023         (Depends-on): Add 'float'.
16024         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
16026 2012-03-05  Bruno Haible  <bruno@clisp.org>
16028         hypot* tests: More tests.
16029         * tests/test-hypot.h: New file, partially extracted from
16030         tests/test-hypotl.c.
16031         * tests/test-hypot.c: Include test-hypot.h.
16032         (main): Invoke test_function.
16033         * tests/test-hypotf.c: Include test-hypot.h.
16034         (main): Invoke test_function.
16035         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
16036         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
16037         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
16038         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
16039         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
16040         tests/randomf.c.
16041         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
16042         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
16043         tests/randoml.c.
16044         (Depends-on): Add 'fpucw', 'float'.
16045         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
16047 2012-03-05  Bruno Haible  <bruno@clisp.org>
16049         fpucw: Doc about FreeBSD.
16050         * lib/fpucw.h: Mention FreeBSD in comments.
16052 2012-03-04  Bruno Haible  <bruno@clisp.org>
16054         sqrt* tests: More tests.
16055         * tests/test-sqrt.h: New file.
16056         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
16057         (main): Invoke test_function.
16058         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
16059         (main): Invoke test_function.
16060         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
16061         (main): Invoke test_function.
16062         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
16063         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
16064         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
16065         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
16066         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
16067         (Depends-on): Add 'float'.
16068         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
16070 2012-03-04  Bruno Haible  <bruno@clisp.org>
16072         remainder* tests: More tests.
16073         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
16074         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
16075         (main): Invoke test_function.
16076         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
16077         (main): Invoke test_function.
16078         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
16079         (main): Invoke test_function.
16080         * modules/remainder-tests (Files): Add tests/test-remainder.h,
16081         tests/randomd.c.
16082         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
16083         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
16084         tests/randomf.c.
16085         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
16086         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
16087         tests/randoml.c.
16088         (Depends-on): Add 'float'.
16089         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
16091 2012-03-04  Bruno Haible  <bruno@clisp.org>
16093         remainder, remainderf, remainderl: Fix computation for large quotients.
16094         * lib/remainder.c: Completely rewritten.
16095         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
16096         USE_FLOAT.
16097         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
16098         USE_LONG_DOUBLE.
16099         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
16100         isnand, isinf. Remove round, fma.
16101         * modules/remainderf (Files): Add lib/remainder.c.
16102         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
16103         Remove roundf, fmaf.
16104         * modules/remainderl (Files): Add lib/remainder.c.
16105         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
16106         isinf. Remove roundl, fmal.
16107         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
16108         REMAINDER_LIBM.
16109         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
16110         REMAINDERF_LIBM.
16111         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
16112         REMAINDERL_LIBM.
16114 2012-03-04  Bruno Haible  <bruno@clisp.org>
16116         fmod* tests: More tests.
16117         * tests/test-fmod.h (my_ldexp): New function.
16118         (test_function): Reduce amount of random numbers to test. Add tests
16119         of very large quotients x / y.
16120         * tests/test-fmod.c (MAX_EXP): New macro.
16121         * tests/test-fmodf.c (MAX_EXP): Likewise.
16122         * tests/test-fmodl.c (MAX_EXP): Likewise.
16124 2012-03-04  Bruno Haible  <bruno@clisp.org>
16126         fmod, fmodl: Fix computation for large quotients x / y.
16127         * lib/fmod.c: Completely rewritten.
16128         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
16129         USE_LONG_DOUBLE.
16130         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
16131         isnand. Remove fma.
16132         * modules/fmodl (Files): Add lib/fmod.c.
16133         (Depends-on): Add float, isfinite, signbit, fabsl,
16134         frexpl, ldexpl, isnanl. Remove fma.
16135         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
16136         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
16138 2012-03-03  Bruno Haible  <bruno@clisp.org>
16140         fmod* tests: More tests.
16141         * tests/test-fmod.h: New file.
16142         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
16143         (main): Invoke test_function.
16144         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
16145         (main): Invoke test_function.
16146         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
16147         (main): Invoke test_function.
16148         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
16149         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
16150         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
16151         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
16152         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
16153         (Depends-on): Add 'float'.
16154         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
16156 2012-03-03  Bruno Haible  <bruno@clisp.org>
16158         rint* tests: More tests.
16159         * tests/test-rint.h: New file, partially extracted from
16160         tests/test-rintl.c.
16161         * tests/test-rint.c: Include test-rint.h.
16162         (main): Invoke test_function.
16163         * tests/test-rintf.c: Include test-rint.h.
16164         (main): Invoke test_function.
16165         * tests/test-rintl.c: Include test-rint.h.
16166         (main): Invoke test_function.
16167         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
16168         (Makefile.am): Add randomd.c to test_rint_SOURCES.
16169         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
16170         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
16171         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
16172         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
16174 2012-03-03  Bruno Haible  <bruno@clisp.org>
16176         modf* tests: More tests.
16177         * tests/test-modf.h: New file.
16178         * tests/test-modf.c: Include <float.h> and test-modf.h.
16179         (main): Invoke test_function.
16180         * tests/test-modff.c: Include <float.h> and test-modf.h.
16181         (main): Invoke test_function.
16182         * tests/test-modfl.c: Include <float.h> and test-modf.h.
16183         (main): Invoke test_function.
16184         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
16185         (Makefile.am): Add randomd.c to test_modf_SOURCES.
16186         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
16187         (Makefile.am): Add randomf.c to test_modff_SOURCES.
16188         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
16189         (Depends-on): Add 'float'.
16190         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
16192 2012-03-03  Bruno Haible  <bruno@clisp.org>
16194         fabs* tests: More tests.
16195         * tests/test-fabs.h: New file, partially extracted from
16196         tests/test-fabsl.c.
16197         * tests/test-fabs.c (RANDOM): New macro.
16198         * tests/test-fabsf.c (RANDOM): New macro.
16199         * tests/test-fabsl.c (RANDOM): New macro.
16200         * modules/fabs-tests (Files): Add tests/randomd.c.
16201         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
16202         * modules/fabsf-tests (Files): Add tests/randomf.c.
16203         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
16204         * modules/fabsl-tests (Files): Add tests/randoml.c.
16205         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
16207 2012-03-03  Bruno Haible  <bruno@clisp.org>
16209         ldexp* tests: More tests.
16210         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
16211         * tests/test-ldexp.c (RANDOM): New macro.
16212         * tests/test-ldexpf.c (RANDOM): New macro.
16213         * tests/test-ldexpl.c (RANDOM): New macro.
16214         * modules/ldexp-tests (Files): Add tests/randomd.c.
16215         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
16216         * modules/ldexpf-tests (Files): Add tests/randomf.c.
16217         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
16218         * modules/ldexpl-tests (Files): Add tests/randoml.c.
16219         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
16221 2012-03-03  Bruno Haible  <bruno@clisp.org>
16223         frexp* tests: More tests.
16224         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
16225         * tests/test-frexp.c (RANDOM): New macro.
16226         * tests/test-frexpf.c (RANDOM): New macro.
16227         * tests/test-frexpl.c (RANDOM): New macro.
16228         * modules/frexp-tests (Files): Add tests/randomd.c.
16229         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
16230         * modules/frexpf-tests (Files): Add tests/randomf.c.
16231         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
16232         * modules/frexpl-tests (Files): Add tests/randoml.c.
16233         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
16235 2012-03-03  Bruno Haible  <bruno@clisp.org>
16237         Support for pseudo-random numbers in tests.
16238         * tests/randomf.c: New file.
16239         * tests/randomd.c: New file.
16240         * tests/randoml.c: New file.
16241         * tests/macros.h (randomf, randomd, randoml): New declarations.
16243 2012-03-03  Bruno Haible  <bruno@clisp.org>
16245         frexp* tests: Refactor.
16246         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
16247         * tests/test-frexp.c: Include and use it.
16248         * tests/test-frexpf.c: Likewise.
16249         * tests/test-frexpl.c: Likewise.
16250         * modules/frexp-tests (Files): Add tests/test-frexp.h.
16251         * modules/frexpf-tests (Files): Likewise.
16252         * modules/frexpl-tests (Files): Likewise.
16254 2012-03-02  Jim Meyering  <meyering@redhat.com>
16256         maint: don't specify XZ_OPT=-9ev in dist-related rule
16257         Using xz's -9 option is warranted only if you have a very large
16258         tarball (see xz's documentation for the sizes vs. presets), and
16259         requires 64MiB of memory at decompression time.
16260         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
16261         Automake's default of just "-e" is fine.  Override on a
16262         per-package basis by setting XZ_OPT e.g., in cfg.mk.
16264 2012-03-01  Eric Blake  <eblake@redhat.com>
16266         maint.mk: allow announcement for non-gnulib project
16267         * maint.mk (announcement): Skip gnulib version if not used.
16269 2012-03-01  Jim Meyering  <meyering@redhat.com>
16271         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
16272         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
16273         envvar settings cannot interfere.  Otherwise, setting envvars like
16274         prohibit=foo require=bar, etc. would cause spurious test failures.
16276 2012-03-01  Eric Blake  <eblake@redhat.com>
16278         maint.mk: add per-line exclusions to prohibitions
16279         * maint.mk (_sc_search_regexp): Add $exclude parameter.
16280         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
16281         (sc_const_long_option): Use it.
16283 2012-03-01  Bruno Haible  <bruno@clisp.org>
16285         Tests for module 'expl-ieee'.
16286         * modules/expl-ieee-tests: New file.
16287         * tests/test-expl-ieee.c: New file.
16289         New module 'expl-ieee'.
16290         * modules/expl-ieee: New file.
16292         Tests for module 'exp-ieee'.
16293         * modules/exp-ieee-tests: New file.
16294         * tests/test-exp-ieee.c: New file.
16296         New module 'exp-ieee'.
16297         * modules/exp-ieee: New file.
16299         Tests for module 'expf-ieee'.
16300         * modules/expf-ieee-tests: New file.
16301         * tests/test-expf-ieee.c: New file.
16302         * tests/test-exp-ieee.h: New file.
16304         New module 'expf-ieee'.
16305         * modules/expf-ieee: New file.
16307 2012-02-29  Bruno Haible  <bruno@clisp.org>
16309         cbrtl-ieee: Work around test failure on IRIX 6.5.
16310         * m4/cbrtl-ieee.m4: New file.
16311         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
16312         test whether cbrtl works with a minus zero argument. Replace it if not.
16313         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
16314         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
16315         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
16316         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
16317         (Depends-on): Update conditions.
16318         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
16319         m4/signbit.m4.
16320         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
16321         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
16322         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
16324         Tests for module 'cbrtl-ieee'.
16325         * modules/cbrtl-ieee-tests: New file.
16326         * tests/test-cbrtl-ieee.c: New file.
16328         New module 'cbrtl-ieee'.
16329         * modules/cbrtl-ieee: New file.
16331         Tests for module 'cbrt-ieee'.
16332         * modules/cbrt-ieee-tests: New file.
16333         * tests/test-cbrt-ieee.c: New file.
16335         New module 'cbrt-ieee'.
16336         * modules/cbrt-ieee: New file.
16338         Tests for module 'cbrtf-ieee'.
16339         * modules/cbrtf-ieee-tests: New file.
16340         * tests/test-cbrtf-ieee.c: New file.
16341         * tests/test-cbrt-ieee.h: New file.
16343         New module 'cbrtf-ieee'.
16344         * modules/cbrtf-ieee: New file.
16346 2012-02-29  Bruno Haible  <bruno@clisp.org>
16348         cbrtf: Work around bug in IRIX 6.5 system function.
16349         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
16350         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
16351         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
16352         work.
16353         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
16354         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
16355         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
16356         (Depends-on): Update conditions.
16357         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
16359 2012-02-29  Bruno Haible  <bruno@clisp.org>
16361         Tests for module 'cbrtl'.
16362         * modules/cbrtl-tests: New file.
16363         * tests/test-cbrtl.c: New file.
16365         New module 'cbrtl'.
16366         * lib/math.in.h (cbrtl): New declaration.
16367         * lib/cbrtl.c: New file.
16368         * m4/cbrtl.m4: New file.
16369         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
16370         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
16371         HAVE_DECL_CBRTL.
16372         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
16373         HAVE_DECL_CBRTL.
16374         * modules/cbrtl: New file.
16375         * tests/test-math-c++.cc: Check the declaration of cbrtl.
16376         * doc/posix-functions/cbrtl.texi: Mention the new module.
16378 2012-02-29  Bruno Haible  <bruno@clisp.org>
16380         Tests for module 'cbrtf'.
16381         * modules/cbrtf-tests: New file.
16382         * tests/test-cbrtf.c: New file.
16384         New module 'cbrtf'.
16385         * lib/math.in.h (cbrtf): New declaration.
16386         * lib/cbrtf.c: New file.
16387         * m4/cbrtf.m4: New file.
16388         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
16389         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
16390         HAVE_DECL_CBRTF.
16391         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
16392         HAVE_DECL_CBRTF.
16393         * modules/cbrtf: New file.
16394         * tests/test-math-c++.cc: Check the declaration of cbrtf.
16395         * doc/posix-functions/cbrtf.texi: Mention the new module.
16397 2012-02-29  Bruno Haible  <bruno@clisp.org>
16399         cbrt: Provide replacement on MSVC and Minix.
16400         * lib/math.in.h (cbrt): New declaration.
16401         * lib/cbrt.c: New file.
16402         * m4/cbrt.m4: New file.
16403         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
16404         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
16405         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
16406         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
16407         (Depends-on): Add dependencies.
16408         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
16409         * tests/test-math-c++.cc: Check the declaration of cbrt.
16410         * doc/posix-functions/cbrt.texi: Mention that the module provides a
16411         replacement.
16413 2012-02-29  Bruno Haible  <bruno@clisp.org>
16415         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
16416         * m4/hypotl-ieee.m4: New file.
16417         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
16418         test whether hypotl works with mixed NaN and Infinity arguments.
16419         Replace it if not.
16420         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
16421         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
16422         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
16423         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
16424         (Depends-on): Update conditions.
16425         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
16426         (Depends-on): Add hypot-ieee.
16427         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
16428         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
16430         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
16431         * m4/hypotf-ieee.m4: New file.
16432         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
16433         test whether hypotf works with mixed NaN and Infinity arguments.
16434         Replace it if not.
16435         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
16436         (Depends-on): Add hypot-ieee.
16437         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
16438         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
16440         hypot-ieee: Work around test failure on OSF/1 and native Windows.
16441         * lib/math.in.h (hypot): New declaration.
16442         * lib/hypot.c: New file.
16443         * m4/hypot-ieee.m4: New file.
16444         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
16445         whether hypot works with mixed NaN and Infinity arguments. Replace it
16446         if not.
16447         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
16448         REPLACE_HYPOT.
16449         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
16450         * modules/hypot (Files): Add lib/hypot.c.
16451         (Depends-on): Add dependencies.
16452         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
16453         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
16454         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
16455         * tests/test-math-c++.cc: Check the declaration of hypot.
16456         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
16458         Tests for module 'hypotl-ieee'.
16459         * modules/hypotl-ieee-tests: New file.
16460         * tests/test-hypotl-ieee.c: New file.
16462         New module 'hypotl-ieee'.
16463         * modules/hypotl-ieee: New file.
16465         Tests for module 'hypot-ieee'.
16466         * modules/hypot-ieee-tests: New file.
16467         * tests/test-hypot-ieee.c: New file.
16469         New module 'hypot-ieee'.
16470         * modules/hypot-ieee: New file.
16472         Tests for module 'hypotf-ieee'.
16473         * modules/hypotf-ieee-tests: New file.
16474         * tests/test-hypotf-ieee.c: New file.
16475         * tests/test-hypot-ieee.h: New file.
16477         New module 'hypotf-ieee'.
16478         * modules/hypotf-ieee: New file.
16480 2012-02-29  Bruno Haible  <bruno@clisp.org>
16482         Remove unused variables.
16483         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
16484         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
16485         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
16486         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
16488 2012-02-29  Eric Blake  <eblake@redhat.com>
16490         termios: fix pid_t always, not just for tcgetsid
16491         * doc/posix-headers/termios.texi (termios.h): Mention problem.
16492         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
16493         just when building tcgetsid.
16495 2012-02-29  Bruno Haible  <bruno@clisp.org>
16497         Tests for module 'hypotl'.
16498         * modules/hypotl-tests: New file.
16499         * tests/test-hypotl.c: New file.
16501         New module 'hypotl'.
16502         * lib/math.in.h (hypotl): New declaration.
16503         * lib/hypotl.c: New file.
16504         * m4/hypotl.m4: New file.
16505         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
16506         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
16507         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
16508         * modules/hypotl: New file.
16509         * tests/test-math-c++.cc: Check the hypotl declaration.
16510         * doc/posix-functions/hypotl.texi: Mention the new module.
16512 2012-02-29  Eric Blake  <eblake@redhat.com>
16514         tcgetsid: fix cygwin header bug
16515         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
16517         docs: update cygwin progress
16518         * doc/posix-functions/llround.texi (llround): Added in cygwin
16519         1.7.8.
16520         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
16521         * doc/glibc-functions/program_invocation_name.texi
16522         (program_invocation_name): Likewise.
16523         * doc/glibc-functions/program_invocation_short_name.texi
16524         (program_invocation_short_name): Likewise.
16525         * doc/glibc-functions/madvise.texi (madvise): Likewise.
16526         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
16527         Likewise.
16528         * doc/posix-functions/pthread_spin_destroy.texi
16529         (pthread_spin_destroy): Added in cygwin 1.7.10.
16530         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
16531         Likewise.
16532         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
16533         Likewise.
16534         * doc/posix-functions/pthread_spin_trylock.texi
16535         (pthread_spin_trylock): Likewise.
16536         * doc/posix-functions/pthread_spin_unlock.texi
16537         (pthread_spin_unlock): Likewise.
16538         * doc/posix-functions/pthread_setschedprio.texi
16539         (pthread_setschedprio): Likewise.
16540         * doc/posix-functions/pthread_attr_getstack.texi
16541         (pthread_attr_getstack): Likewise.
16542         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
16543         (pthread_attr_getstackaddr): Likewise.
16544         * doc/glibc-functions/pthread_getattr_np.texi
16545         (pthread_getattr_np): Likewise.
16546         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
16547         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
16548         * doc/posix-functions/clock_settime.texi (clock_settime):
16549         Likewise.
16550         * doc/posix-functions/pthread_attr_getguardsize.texi
16551         (pthread_attr_getguardsize): Likewise.
16552         * doc/posix-functions/pthread_attr_setguardsize.texi
16553         (pthread_attr_setguardsize): Likewise.
16554         * doc/posix-functions/pthread_attr_setstack.texi
16555         (pthread_attr_setstack): Likewise.
16556         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
16557         (pthread_attr_setstackaddr): Likewise.
16558         * doc/posix-functions/clock_getcpuclockid.texi
16559         (clock_getcpuclockid): Likewise.
16560         * doc/posix-functions/pthread_getcpuclockid.texi
16561         (pthread_getcpuclockid): Likewise.
16562         * doc/glibc-functions/error.texi (error): Likewise.
16563         * doc/glibc-functions/error_at_line.texi (error_at_line):
16564         Likewise.
16565         * doc/glibc-functions/error_message_count.texi
16566         (error_message_count): Likewise.
16567         * doc/glibc-functions/error_one_per_line.texi
16568         (error_one_per_line): Likewise.
16569         * doc/glibc-functions/error_print_progname.texi
16570         (error_print_progname): Likewise.
16571         * doc/posix-functions/pthread_condattr_getclock.texi
16572         (pthread_condattr_getclock): Likewise.
16573         * doc/posix-functions/pthread_condattr_setclock.texi
16574         (pthread_condattr_setclock): Likewise.
16575         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
16576         Likewise.
16577         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
16578         * doc/glibc-functions/getpt.texi (getpt): Likewise.
16579         * doc/glibc-functions/get_current_dir_name.texi
16580         (get_current_dir_name): Likewise.
16581         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
16582         Likewise.
16583         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
16584         wrong return type.
16585         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
16586         1.7.11.
16588 2012-02-29  Bruno Haible  <bruno@clisp.org>
16590         Tests for module 'hypotf'.
16591         * modules/hypotf-tests: New file.
16592         * tests/test-hypotf.c: New file.
16594         New module 'hypotf'.
16595         * lib/math.in.h (hypotf): New declaration.
16596         * lib/hypotf.c: New file.
16597         * m4/hypotf.m4: New file.
16598         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
16599         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
16600         REPLACE_HYPOTF.
16601         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
16602         REPLACE_HYPOTF.
16603         * modules/hypotf: New file.
16604         * tests/test-math-c++.cc: Check the hypotf declaration.
16605         * doc/posix-functions/hypotf.texi: Mention the new module.
16607         hypot: Prepare for hypotf module.
16608         * m4/hypot.m4: New file.
16609         * modules/hypot (Files): Add m4/hypot.m4.
16610         (configure.ac): Invoke gl_FUNC_HYPOT.
16612 2012-02-29  Bruno Haible  <bruno@clisp.org>
16614         hypot tests: More tests.
16615         * tests/test-hypot.c: Include <float.h>.
16616         (main): Add tests about overflow and underflow.
16618 2012-02-29  Bruno Haible  <bruno@clisp.org>
16620         math code: Add comments.
16621         * lib/acosl.c: Add comment about related glibc source files.
16622         * lib/asinl.c: Likewise.
16623         * lib/atanl.c: Likewise.
16624         * lib/expl.c: Likewise.
16625         * lib/logl.c: Likewise.
16626         * lib/sincosl.c: Likewise.
16627         * lib/sinl.c: Likewise.
16628         * lib/tanl.c: Likewise.
16629         * lib/trigl.c: Likewise.
16630         * lib/cosl.c: Likewise. Fix comments.
16632 2012-02-28  Bruno Haible  <bruno@clisp.org>
16634         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
16635         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
16636         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
16637         HUGE_VALL are defined.
16638         (numeric_equald): Renamed from numeric_equal.
16639         (numeric_equalf, numeric_equall): New functions.
16640         (main): Check also HUGE_VALF, HUGE_VALL.
16641         * modules/math-tests (Files): Add tests/macros.h.
16642         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
16643         HUGE_VALL.
16645 2012-02-28  Bruno Haible  <bruno@clisp.org>
16647         doc: Move ISO C11 feature notes into POSIX chapters.
16648         * doc/posix-functions/aligned_alloc.texi: Renamed from
16649         doc/glibc-functions/aligned_alloc.texi.
16650         * doc/posix-functions/quick_exit.texi: Renamed from
16651         doc/glibc-functions/quick_exit.texi.
16652         * doc/posix-headers/uchar.texi: Renamed from
16653         doc/glibc-headers/uchar.texi.
16654         * doc/posix-functions/c16rtomb.texi: Renamed from
16655         doc/glibc-functions/c16rtomb.texi.
16656         * doc/posix-functions/c32rtomb.texi: Renamed from
16657         doc/glibc-functions/c32rtomb.texi.
16658         * doc/posix-functions/mbrtoc16.texi: Renamed from
16659         doc/glibc-functions/mbrtoc16.texi.
16660         * doc/posix-functions/mbrtoc32.texi: Renamed from
16661         doc/glibc-functions/mbrtoc32.texi.
16662         * doc/gnulib.texi: Update.
16663         (Glibc uchar.h): Remove section.
16664         Suggested by Eric Blake.
16666 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
16668         stdnoreturn: port to MSVC better
16669         MSVC standard headers use __declspec(noreturn), so #define noreturn
16670         to empty on that platform.  Reported by Bruno Haible in
16671         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
16672         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
16673         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
16675 2012-02-28  Bruno Haible  <bruno@clisp.org>
16677         doc: Mention new glibc headers and functions.
16678         * doc/glibc-headers/uchar.texi: New file.
16679         * doc/glibc-functions/aligned_alloc.texi: New file.
16680         * doc/glibc-functions/c16rtomb.texi: New file.
16681         * doc/glibc-functions/c32rtomb.texi: New file.
16682         * doc/glibc-functions/clock_adjtime.texi: New file.
16683         * doc/glibc-functions/fanotify_init.texi: New file.
16684         * doc/glibc-functions/fanotify_mark.texi: New file.
16685         * doc/glibc-functions/inet6_opt_append.texi: New file.
16686         * doc/glibc-functions/inet6_opt_find.texi: New file.
16687         * doc/glibc-functions/inet6_opt_finish.texi: New file.
16688         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
16689         * doc/glibc-functions/inet6_opt_init.texi: New file.
16690         * doc/glibc-functions/inet6_opt_next.texi: New file.
16691         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
16692         * doc/glibc-functions/inet6_rth_add.texi: New file.
16693         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
16694         * doc/glibc-functions/inet6_rth_init.texi: New file.
16695         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
16696         * doc/glibc-functions/inet6_rth_segments.texi: New file.
16697         * doc/glibc-functions/inet6_rth_space.texi: New file.
16698         * doc/glibc-functions/login.texi: New file.
16699         * doc/glibc-functions/mbrtoc16.texi: New file.
16700         * doc/glibc-functions/mbrtoc32.texi: New file.
16701         * doc/glibc-functions/name_to_handle_at.texi: New file.
16702         * doc/glibc-functions/ntp_gettimex.texi: New file.
16703         * doc/glibc-functions/open_by_handle_at.texi: New file.
16704         * doc/glibc-functions/prlimit.texi: New file.
16705         * doc/glibc-functions/process_vm_readv.texi: New file.
16706         * doc/glibc-functions/process_vm_writev.texi: New file.
16707         * doc/glibc-functions/recvmmsg.texi: New file.
16708         * doc/glibc-functions/scandirat.texi: New file.
16709         * doc/glibc-functions/sendmmsg.texi: New file.
16710         * doc/glibc-functions/setns.texi: New file.
16711         * doc/glibc-functions/timespec_get.texi: New file.
16712         * doc/gnulib.texi: Include them.
16713         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
16714         sections.
16715         Reported by Eric Blake.
16717 2012-02-28  Bruno Haible  <bruno@clisp.org>
16719         Avoid compilation errors with MSVC option -fp:strict.
16720         * lib/floor.c: Use MSVC specific pragma fenv_access.
16721         * lib/ceil.c: Likewise.
16722         * lib/trunc.c: Likewise.
16723         * lib/round.c: Likewise.
16724         * lib/rint.c: Likewise.
16725         * lib/fma.c: Likewise.
16726         * lib/integer_length.c: Likewise.
16727         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
16728         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
16729         * tests/test-floor2.c: Likewise.
16730         * tests/test-floorf2.c: Likewise.
16731         * tests/test-ceil2.c: Likewise.
16732         * tests/test-ceilf2.c: Likewise.
16733         * tests/test-trunc2.c: Likewise.
16734         * tests/test-truncf2.c: Likewise.
16735         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
16737 2012-02-27  Bruno Haible  <bruno@clisp.org>
16739         Tests for module 'sqrtl-ieee'.
16740         * modules/sqrtl-ieee-tests: New file.
16741         * tests/test-sqrtl-ieee.c: New file.
16743         New module 'sqrtl-ieee'.
16744         * modules/sqrtl-ieee: New file.
16746         Tests for module 'sqrt-ieee'.
16747         * modules/sqrt-ieee-tests: New file.
16748         * tests/test-sqrt-ieee.c: New file.
16750         New module 'sqrt-ieee'.
16751         * modules/sqrt-ieee: New file.
16753         Tests for module 'sqrtf-ieee'.
16754         * modules/sqrtf-ieee-tests: New file.
16755         * tests/test-sqrtf-ieee.c: New file.
16756         * tests/test-sqrt-ieee.h: New file.
16758         New module 'sqrtf-ieee'.
16759         * modules/sqrtf-ieee: New file.
16761 2012-02-27  Bruno Haible  <bruno@clisp.org>
16763         remainderl-ieee: Work around test failure on OSF/1.
16764         * m4/remainderl-ieee.m4: New file.
16765         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
16766         present, test whether remainderl works with a zero second argument.
16767         Replace it if not.
16768         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
16769         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
16770         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
16771         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
16772         (Depends-on): Update conditions.
16773         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
16774         (Depends-on): Add remainder-ieee.
16775         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
16776         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
16777         module.
16779         remainderf-ieee: Work around test failure on OSF/1.
16780         * m4/remainderf-ieee.m4: New file.
16781         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
16782         present, test whether remainderf works with a zero second argument.
16783         Replace it if not.
16784         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
16785         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
16786         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
16787         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
16788         (Depends-on): Update conditions.
16789         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
16790         (Depends-on): Add remainder-ieee.
16791         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
16792         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
16793         module.
16795         remainder-ieee: Work around test failure on OSF/1.
16796         * m4/remainder-ieee.m4: New file.
16797         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
16798         present, test whether remainder works with a zero second argument.
16799         Replace it if not.
16800         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
16801         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
16802         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
16803         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
16804         (Depends-on): Update dependencies.
16805         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
16806         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
16807         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
16809         Tests for module 'remainderl-ieee'.
16810         * modules/remainderl-ieee-tests: New file.
16811         * tests/test-remainderl-ieee.c: New file.
16813         New module 'remainderl-ieee'.
16814         * modules/remainderl-ieee: New file.
16816         Tests for module 'remainder-ieee'.
16817         * modules/remainder-ieee-tests: New file.
16818         * tests/test-remainder-ieee.c: New file.
16820         New module 'remainder-ieee'.
16821         * modules/remainder-ieee: New file.
16823         Tests for module 'remainderf-ieee'.
16824         * modules/remainderf-ieee-tests: New file.
16825         * tests/test-remainderf-ieee.c: New file.
16826         * tests/test-remainder-ieee.h: New file.
16828         New module 'remainderf-ieee'.
16829         * modules/remainderf-ieee: New file.
16831 2012-02-27  Bruno Haible  <bruno@clisp.org>
16833         modff, modfl: Fix configure syntax error.
16834         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
16835         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
16837 2012-02-27  Bruno Haible  <bruno@clisp.org>
16839         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
16840         * m4/fmodl-ieee.m4: New file.
16841         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
16842         whether fmodl works with zero arguments. Replace it if not.
16843         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
16844         (Depends-on): Add fmod-ieee.
16845         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
16846         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
16848         fmodf-ieee: Work around test failure on OSF/1.
16849         * m4/fmodf-ieee.m4: New file.
16850         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
16851         whether fmodf works with zero arguments. Replace it if not.
16852         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
16853         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
16854         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
16855         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
16856         (Depends-on): Update dependencies.
16857         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
16858         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
16859         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
16861         fmodf-ieee: Work around test failure on MSVC 9.
16862         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
16863         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
16865         fmod-ieee: Work around test failures on OSF/1, mingw.
16866         * m4/fmod-ieee.m4: New file.
16867         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
16868         whether fmod works with zero arguments. Replace it if not.
16869         * lib/math.in.h (fmod): New declaration.
16870         * lib/fmod.c: New file.
16871         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
16872         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
16873         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
16874         * modules/fmod (Files): Add lib/fmod.c.
16875         (Depends-on): Add math, isinf, trunc, fma.
16876         (configure.ac): Arrange to compile lib/fmod.c if needed.
16877         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
16878         m4/signbit.m4.
16879         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
16880         * tests/test-math-c++.cc: Check the declaration of fmod.
16881         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
16883         fmodl-ieee: Fix test failures.
16884         * lib/fmodl.c (fmodl): Treat Inf specially.
16885         * modules/fmodl (Depends-on): Add isinf.
16887         Tests for module 'fmodl-ieee'.
16888         * modules/fmodl-ieee-tests: New file.
16889         * tests/test-fmodl-ieee.c: New file.
16891         New module 'fmodl-ieee'.
16892         * modules/fmodl-ieee: New file.
16894         Tests for module 'fmod-ieee'.
16895         * modules/fmod-ieee-tests: New file.
16896         * tests/test-fmod-ieee.c: New file.
16898         New module 'fmod-ieee'.
16899         * modules/fmod-ieee: New file.
16901         Tests for module 'fmodf-ieee'.
16902         * modules/fmodf-ieee-tests: New file.
16903         * tests/test-fmodf-ieee.c: New file.
16904         * tests/test-fmod-ieee.h: New file.
16906         New module 'fmodf-ieee'.
16907         * modules/fmodf-ieee: New file.
16909 2012-02-27  Bruno Haible  <bruno@clisp.org>
16911         Tests for module 'rintl-ieee'.
16912         * modules/rintl-ieee-tests: New file.
16913         * tests/test-rintl-ieee.c: New file.
16915         New module 'rintl-ieee'.
16916         * modules/rintl-ieee: New file.
16918         Tests for module 'rint-ieee'.
16919         * modules/rint-ieee-tests: New file.
16920         * tests/test-rint-ieee.c: New file.
16922         New module 'rint-ieee'.
16923         * modules/rint-ieee: New file.
16925         Tests for module 'rintf-ieee'.
16926         * modules/rintf-ieee-tests: New file.
16927         * tests/test-rintf-ieee.c: New file.
16928         * tests/test-rint-ieee.h: New file.
16930         New module 'rintf-ieee'.
16931         * modules/rintf-ieee: New file.
16933 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
16935         regex: re_search etc. should return -2 when memory exhausted
16936         This bug was uncovered when testing 'grep'.  Without the fix,
16937         re_search and friends return -1 when memory is exhausted, but -1
16938         means no match, and this causes grep to falsely report no-match
16939         instead of memory-exhaustion.  See
16940         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
16941         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
16942         trouble; this can occur if re_search_internal ran out of memory.
16944 2012-02-26  Bruno Haible  <bruno@clisp.org>
16946         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
16947         * m4/modfl-ieee.m4: New file.
16948         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
16949         whether modfl works with Inf. Replace it if not.
16950         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
16951         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
16952         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
16953         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
16954         (Depends-on): Update dependencies.
16955         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
16956         m4/signbit.m4.
16957         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
16958         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
16960         modfl-ieee: Fix dependencies.
16961         * modules/modfl-ieee (Depends-on): Add modf-ieee.
16963         modfl-ieee: Fix test failures.
16964         * lib/modfl.c (modfl): Treat NaN and Inf specially.
16965         * modules/modfl (Depends-on): Add isfinite, isinf.
16967         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
16968         * m4/modff-ieee.m4: New file.
16969         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
16970         whether modff works with NaN and Inf. Replace it if not.
16971         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
16972         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
16973         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
16974         * modules/modff (configure.ac): Consider REPLACE_MODFF.
16975         (Depends-on): Update dependencies.
16976         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
16977         m4/signbit.m4.
16978         (Depends-on): Add modf-ieee.
16979         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
16980         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
16982         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
16983         * m4/modf-ieee.m4: New file.
16984         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
16985         whether modf works with NaN and Inf. Replace it if not.
16986         * lib/math.in.h (modf): New declaration.
16987         * lib/modf.c: New file.
16988         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
16989         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
16990         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
16991         * modules/modf (Files): Add lib/modf.c.
16992         (Depends-on): Add math, isfinite, trunc, isinf.
16993         (configure.ac): Addrange to compile lib/modf.c if needed.
16994         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
16995         m4/signbit.m4.
16996         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
16997         * tests/test-math-c++.cc: Check the declaration of modf.
16998         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
17000         Tests for module 'modfl-ieee'.
17001         * modules/modfl-ieee-tests: New file.
17002         * tests/test-modfl-ieee.c: New file.
17004         New module 'modfl-ieee'.
17005         * modules/modfl-ieee: New file.
17007         Tests for module 'modf-ieee'.
17008         * modules/modf-ieee-tests: New file.
17009         * tests/test-modf-ieee.c: New file.
17011         New module 'modf-ieee'.
17012         * modules/modf-ieee: New file.
17014         Tests for module 'modff-ieee'.
17015         * modules/modff-ieee-tests: New file.
17016         * tests/test-modff-ieee.c: New file.
17017         * tests/test-modf-ieee.h: New file.
17019         New module 'modff-ieee'.
17020         * modules/modff-ieee: New file.
17022 2012-02-26  Bruno Haible  <bruno@clisp.org>
17024         Tests for module 'fabsl-ieee'.
17025         * modules/fabsl-ieee-tests: New file.
17026         * tests/test-fabsl-ieee.c: New file.
17028         New module 'fabsl-ieee'.
17029         * modules/fabsl-ieee: New file.
17031         Tests for module 'fabs-ieee'.
17032         * modules/fabs-ieee-tests: New file.
17033         * tests/test-fabs-ieee.c: New file.
17035         New module 'fabs-ieee'.
17036         * modules/fabs-ieee: New file.
17038         Tests for module 'fabsf-ieee'.
17039         * modules/fabsf-ieee-tests: New file.
17040         * tests/test-fabsf-ieee.c: New file.
17041         * tests/test-fabs-ieee.h: New file.
17043         New module 'fabsf-ieee'.
17044         * modules/fabsf-ieee: New file.
17046 2012-02-26  Bruno Haible  <bruno@clisp.org>
17048         Tests for module 'fmal-ieee'.
17049         * modules/fmal-ieee-tests: New file.
17050         * tests/test-fmal-ieee.c: New file.
17052         New module 'fmal-ieee'.
17053         * modules/fmal-ieee: New file.
17055         Tests for module 'fma-ieee'.
17056         * modules/fma-ieee-tests: New file.
17057         * tests/test-fma-ieee.c: New file.
17059         New module 'fma-ieee'.
17060         * modules/fma-ieee: New file.
17062         Tests for module 'fmaf-ieee'.
17063         * modules/fmaf-ieee-tests: New file.
17064         * tests/test-fmaf-ieee.c: New file.
17065         * tests/test-fma-ieee.h: New file.
17067         New module 'fmaf-ieee'.
17068         * modules/fmaf-ieee: New file.
17070 2012-02-26  Bruno Haible  <bruno@clisp.org>
17072         Tests for module 'ldexpl-ieee'.
17073         * modules/ldexpl-ieee-tests: New file.
17074         * tests/test-ldexpl-ieee.c: New file.
17076         New module 'ldexpl-ieee'.
17077         * modules/ldexpl-ieee: New file.
17079         Tests for module 'ldexp-ieee'.
17080         * modules/ldexp-ieee-tests: New file.
17081         * tests/test-ldexp-ieee.c: New file.
17083         New module 'ldexp-ieee'.
17084         * modules/ldexp-ieee: New file.
17086         Tests for module 'ldexpf-ieee'.
17087         * modules/ldexpf-ieee-tests: New file.
17088         * tests/test-ldexpf-ieee.c: New file.
17089         * tests/test-ldexp-ieee.h: New file.
17091         New module 'ldexpf-ieee'.
17092         * modules/ldexpf-ieee: New file.
17094 2012-02-26  Bruno Haible  <bruno@clisp.org>
17096         Refactor frexp*-ieee tests.
17097         * tests/test-frexp-ieee.h: New file.
17098         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
17099         (main): Just call test_function.
17100         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
17101         (main): Just call test_function.
17102         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
17103         (main): Just call test_function.
17104         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
17105         * modules/frexp-ieee-tests (Files): Likewise.
17106         * modules/frexpl-ieee-tests (Files): Likewise.
17108         Tests for module 'frexpl-ieee'.
17109         * modules/frexpl-ieee-tests: New file.
17110         * tests/test-frexpl-ieee.c: New file.
17112         New module 'frexpl-ieee'.
17113         * modules/frexpl-ieee: New file.
17115         Tests for module 'frexp-ieee'.
17116         * modules/frexp-ieee-tests: New file.
17117         * tests/test-frexp-ieee.c: New file.
17119         New module 'frexp-ieee'.
17120         * modules/frexp-ieee: New file.
17122         Tests for module 'frexpf-ieee'.
17123         * modules/frexpf-ieee-tests: New file.
17124         * tests/test-frexpf-ieee.c: New file.
17126         New module 'frexpf-ieee'.
17127         * modules/frexpf-ieee: New file.
17129 2012-02-26  Bruno Haible  <bruno@clisp.org>
17131         roundl-ieee tests: More tests.
17132         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
17133         (main): Add tests for [MX] shaded specification in POSIX.
17134         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
17135         (Depends-on): Add isnanl-nolibm.
17137         round-ieee tests: More tests.
17138         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
17139         (main): Add tests for [MX] shaded specification in POSIX.
17140         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
17141         (Depends-on): Add isnand-nolibm.
17143         roundf-ieee tests: More tests.
17144         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
17145         (main): Add tests for [MX] shaded specification in POSIX.
17146         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
17147         (Depends-on): Add isnanf-nolibm.
17149         truncl-ieee tests: More tests.
17150         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
17151         (main): Add tests for [MX] shaded specification in POSIX.
17152         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
17153         (Depends-on): Add isnanl-nolibm.
17155         trunc-ieee tests: More tests.
17156         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
17157         (main): Add tests for [MX] shaded specification in POSIX.
17158         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
17159         (Depends-on): Add isnand-nolibm.
17161         truncf-ieee tests: More tests.
17162         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
17163         (main): Add tests for [MX] shaded specification in POSIX.
17164         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
17165         (Depends-on): Add isnanf-nolibm.
17167         ceill-ieee tests: More tests.
17168         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
17169         (main): Add tests for [MX] shaded specification in POSIX.
17170         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
17171         (Depends-on): Add isnanl-nolibm.
17173         ceil-ieee tests: More tests.
17174         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
17175         (main): Add tests for [MX] shaded specification in POSIX.
17176         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
17177         (Depends-on): Add isnand-nolibm.
17179         ceilf-ieee tests: More tests.
17180         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
17181         (main): Add tests for [MX] shaded specification in POSIX.
17182         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
17183         (Depends-on): Add isnanf-nolibm.
17185         floorl-ieee tests: More tests.
17186         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
17187         (main): Add tests for [MX] shaded specification in POSIX.
17188         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
17189         (Depends-on): Add isnanl-nolibm.
17191         floor-ieee tests: More tests.
17192         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
17193         (main): Add tests for [MX] shaded specification in POSIX.
17194         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
17195         (Depends-on): Add isnand-nolibm.
17197         floorf-ieee tests: More tests.
17198         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
17199         (main): Add tests for [MX] shaded specification in POSIX.
17200         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
17201         (Depends-on): Add isnanf-nolibm.
17203 2012-02-26  Bruno Haible  <bruno@clisp.org>
17205         fpieee: More comments.
17206         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
17208 2012-02-25  Bruno Haible  <bruno@clisp.org>
17210         Tests for module 'log10l'.
17211         * modules/log10l-tests: New file.
17212         * tests/test-log10l.c: New file.
17213         * tests/test-math-c++.cc: Check the declaration of log10l.
17215         New module 'log10l'.
17216         * lib/math.in.h (log10l): New declaration.
17217         * lib/log10l.c: New file.
17218         * m4/log10l.m4: New file.
17219         * modules/log10l: New file.
17220         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
17221         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
17222         HAVE_DECL_LOG10L.
17223         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
17224         HAVE_DECL_LOG10L.
17225         * doc/posix-functions/log10l.texi: Mention the new module.
17227 2012-02-25  Bruno Haible  <bruno@clisp.org>
17229         fmodl, remainder*: Avoid wrong results due to rounding errors.
17230         * lib/fmodl.c (fmodl): Correct the result if it is not within the
17231         expected bounds.
17232         * lib/remainderf.c (remainderf): Likewise.
17233         * lib/remainder.c (remainder): Likewise.
17234         * lib/remainderl.c (remainderl): Likewise.
17236 2012-02-25  Bruno Haible  <bruno@clisp.org>
17238         Tests for module 'remainderl'.
17239         * modules/remainderl-tests: New file.
17240         * tests/test-remainderl.c: New file.
17241         * tests/test-math-c++.cc: Check the declaration of remainderl.
17243         New module 'remainderl'.
17244         * lib/math.in.h (remainderl): New declaration.
17245         * lib/remainderl.c: New file.
17246         * m4/remainderl.m4: New file.
17247         * modules/remainderl: New file.
17248         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
17249         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
17250         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
17251         HAVE_REMAINDERL.
17252         * doc/posix-functions/remainderl.texi: Mention the new module.
17254 2012-02-25  Bruno Haible  <bruno@clisp.org>
17256         Tests for module 'remainderf'.
17257         * modules/remainderf-tests: New file.
17258         * tests/test-remainderf.c: New file.
17259         * tests/test-math-c++.cc: Check the declaration of remainderf.
17261         New module 'remainderf'.
17262         * lib/math.in.h (remainderf): New declaration.
17263         * lib/remainderf.c: New file.
17264         * m4/remainderf.m4: New file.
17265         * modules/remainderf: New file.
17266         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
17267         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
17268         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
17269         HAVE_REMAINDERF.
17270         * doc/posix-functions/remainderf.texi: Mention the new module.
17272 2012-02-25  Bruno Haible  <bruno@clisp.org>
17274         remainder: Support for MSVC.
17275         * lib/math.in.h (remainder): New declaration.
17276         * lib/remainder.c: New file.
17277         * m4/remainder.m4: New file.
17278         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
17279         (Depends-on): Add math, round, fma.
17280         (configure.ac): Use results of gl_FUNC_REMAINDER.
17281         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
17282         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
17283         HAVE_DECL_REMAINDER.
17284         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
17285         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
17286         * tests/test-math-c++.cc: Check the declaration of remainder.
17287         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
17288         problems are fixed.
17290 2012-02-25  Bruno Haible  <bruno@clisp.org>
17292         Tests for module 'fmodl'.
17293         * modules/fmodl-tests: New file.
17294         * tests/test-fmodl.c: New file.
17295         * tests/test-math-c++.cc: Check the declaration of fmodl.
17297         New module 'fmodl'.
17298         * lib/math.in.h (fmodl): New declaration.
17299         * lib/fmodl.c: New file.
17300         * m4/fmodl.m4: New file.
17301         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
17302         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
17303         REPLACE_FMODL.
17304         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
17305         REPLACE_FMODL.
17306         * modules/fmodl: New file.
17307         * doc/posix-functions/fmodl.texi: Mention the new module.
17309 2012-02-25  Bruno Haible  <bruno@clisp.org>
17311         Tests for module 'modfl'.
17312         * modules/modfl-tests: New file.
17313         * tests/test-modfl.c: New file.
17314         * tests/test-math-c++.cc: Check the declaration of modfl.
17316         New module 'modfl'.
17317         * lib/math.in.h (modfl): New declaration.
17318         * lib/modfl.c: New file.
17319         * m4/modfl.m4: New file.
17320         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
17321         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
17322         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
17323         * modules/modfl: New file.
17324         * doc/posix-functions/modfl.texi: Mention the new module.
17326 2012-02-25  Bruno Haible  <bruno@clisp.org>
17328         Tests for module 'fabsl'.
17329         * modules/fabsl-tests: New file.
17330         * tests/test-fabsl.c: New file.
17331         * tests/test-math-c++.cc: Check the declaration of fabsl.
17333         New module 'fabsl'.
17334         * lib/math.in.h (fabsl): New declaration.
17335         * lib/fabsl.c: New file.
17336         * m4/fabsl.m4: New file.
17337         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
17338         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
17339         REPLACE_FABSL.
17340         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
17341         REPLACE_FABSL.
17342         * modules/fabsl: New file.
17343         * doc/posix-functions/fabsl.texi: Mention the new module.
17345 2012-02-25  Bruno Haible  <bruno@clisp.org>
17347         fabs tests: More tests.
17348         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
17349         (zero): New variable.
17350         (main): Add tests for signed zero.
17351         * modules/fabs-tests (Files): Add tests/minus-zero.h.
17353         fabsf tests: More tests.
17354         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
17355         (zero): New variable.
17356         (main): Add tests for signed zero.
17357         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
17359 2012-02-24  Bruno Haible  <bruno@clisp.org>
17361         atanl: Provide function definition on MSVC.
17362         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
17363         function pointer.
17364         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
17366 2012-02-24  Bruno Haible  <bruno@clisp.org>
17368         acosl: Provide function definition on MSVC.
17369         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
17370         function pointer.
17371         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
17373 2012-02-24  Bruno Haible  <bruno@clisp.org>
17375         asinl: Provide function definition on MSVC.
17376         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
17377         function pointer.
17378         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
17380 2012-02-24  Bruno Haible  <bruno@clisp.org>
17382         tanl: Provide function definition on MSVC.
17383         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
17384         function pointer.
17385         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
17387 2012-02-24  Bruno Haible  <bruno@clisp.org>
17389         cosl: Provide function definition on MSVC.
17390         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
17391         function pointer.
17392         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
17394 2012-02-24  Bruno Haible  <bruno@clisp.org>
17396         sinl: Provide function definition on MSVC.
17397         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
17398         function pointer.
17399         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
17401 2012-02-24  Bruno Haible  <bruno@clisp.org>
17403         logl: Provide function definition on MSVC.
17404         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
17405         function pointer.
17406         * lib/math.in.h (logl): Undefine if it does not exist as a function.
17408 2012-02-24  Bruno Haible  <bruno@clisp.org>
17410         expl: Provide function definition on MSVC.
17411         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
17412         function pointer.
17413         * lib/math.in.h (expl): Undefine if it does not exist as a function.
17415 2012-02-24  Bruno Haible  <bruno@clisp.org>
17417         sqrtl: Provide function definition on MSVC.
17418         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
17419         a function pointer.
17420         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
17422 2012-02-24  Bruno Haible  <bruno@clisp.org>
17424         ceill: Provide function definition on MSVC.
17425         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
17426         used as a function pointer.
17427         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
17429 2012-02-24  Bruno Haible  <bruno@clisp.org>
17431         floorl: Provide function definition on MSVC.
17432         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
17433         used as a function pointer.
17434         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
17436 2012-02-24  Bruno Haible  <bruno@clisp.org>
17438         ceilf: Provide function definition on MSVC.
17439         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
17440         used as a function pointer.
17441         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
17443 2012-02-24  Bruno Haible  <bruno@clisp.org>
17445         floorf: Provide function definition on MSVC.
17446         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
17447         used as a function pointer.
17448         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
17450 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
17452         stdnoreturn: new module
17453         This implements a replacement for C11's <stdnoreturn.h>.
17454         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
17455         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
17456         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
17457         * tests/test-stdnoreturn.c: New files.
17459 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
17461         regex: fix false multibyte matches in some regular expressions
17462         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
17463         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
17464         * lib/regex_internal.c (re_string_skip_chars):
17465         Fix miscomputation of remain_len that may cause incomplete
17466         multi-byte character and false match.
17468 2012-02-24  Jim Meyering  <meyering@redhat.com>
17470         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
17471         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
17472         uses with "==" *before* the call, e.g., 0 == strcmp (...)
17473         Remove now-unnecessary str''cmp obfuscation.
17474         Suggested by Akim Demaille.
17476 2012-02-24  Bruno Haible  <bruno@clisp.org>
17478         streq: Rename macro.
17479         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
17480         * NEWS: Mention the change.
17481         * lib/mbrtowc.c (mbrtowc): Update.
17482         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
17483         * lib/wcwidth.c (wcwidth): Update.
17484         Suggested by Akim Demaille and Jim Meyering.
17486 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
17488         regex: fix typo in definition of MIN
17489         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
17490         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
17492 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
17493             Bruno Haible  <bruno@clisp.org>
17495         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
17496         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
17497         entries into a stack-allocated buffer directly.
17498         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
17500 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
17501             Bruno Haible  <bruno@clisp.org>
17503         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
17505          - There were several instances of this pattern:
17507              for (;;) {
17508                n = acl (f, GETACLCNT, 0, NULL);
17509                [ allocate an array A of size N ]
17510                if (acl (f, GETACL, n, a) == n)
17511                  break;
17512              }
17514            This loop might never terminate if some other process is constantly
17515            manipulating the file's ACL.  The loop should be rewritten to
17516            terminate.
17518          - The acl (... GETACLNT ...) call is merely an optimization; its value
17519            is merely a hint as to how big to make the array.  A better
17520            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
17521            and just guess a reasonably-big size, growing the size and trying
17522            again if it's not large enough.  This guarantees termination, and
17523            saves a system call.
17525         * lib/acl-internal.h: Include <limits.h>.
17526         (MIN, SIZE_MAX): New macros.
17527         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
17528         a stack-allocated buffer, and use malloc if it does not fit. Don't
17529         use GETACLCNT.
17530         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
17532 2012-02-19  Bruno Haible  <bruno@clisp.org>
17534         acl: Fix endless loop on Solaris with vxfs.
17535         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
17536         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
17537         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
17538         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
17539         * tests/test-sameacls.c (main)[Solaris]: Likewise.
17540         Reported by Bill Jones in
17541         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
17543 2012-02-19  Bruno Haible  <bruno@clisp.org>
17545         acl: Fix copy-acl test failure on Solaris 11 2011-11.
17546         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
17547         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
17548         that this function returns 0 in some more cases.
17550 2012-02-19  Bruno Haible  <bruno@clisp.org>
17552         acl: Update doc references.
17553         * doc/acl-resources.txt: Update links to Solaris documentation.
17555 2012-02-19  Bruno Haible  <bruno@clisp.org>
17557         Fix test failure in many locales on Solaris 11.
17558         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
17559         'tr' arguments.
17560         * tests/test-pipe-filter-ii1.c (main): Likewise.
17561         * build-aux/bootstrap (check_versions): Run 'tr' command with range
17562         expressions in the C locale.
17563         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
17564         * m4/host-os.m4 (gl_HOST_OS): Likewise.
17566 2012-02-19  Bruno Haible  <bruno@clisp.org>
17568         gnulib-tool: Improve usage message.
17569         * gnulib-tool (func_usage): Move doc of --help and --version to the
17570         section "Operation modes".
17572 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
17574         README-release: make it easier to execute commands
17575         * top/README-release: break commands out on to separate lines.
17577 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
17579         GNUmakefile: simplify detection of unconfigured trees
17580         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
17581         whether the tree make is being run from is already configured or
17582         not.  Related simplifications.
17584 2012-02-13  Simon Josefsson  <simon@josefsson.org>
17586         * gnulib-tool (func_usage): Document --help and --version.
17588 2012-02-11  Jim Meyering  <meyering@redhat.com>
17590         bootstrap: don't exit 0 upon gnulib-tool failure
17591         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
17592         its exit status, not 0.
17594 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
17596         README-release: various improvements
17597         * top/README-release: Give a command to push changes for the
17598         release.  Add "distcheck" to list of other pre-release checks.
17599         Fix instance of "make stable" which should be "make TYPE".
17601 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
17603         maint: replace FSF snail-mail addresses with URLs
17604         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
17605         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
17606         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
17607         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
17608         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
17609         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
17610         * lib/check-version.c, lib/check-version.h, lib/config.charset:
17611         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
17612         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
17613         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
17614         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
17615         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
17616         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
17617         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
17618         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
17619         * lib/glthread/thread.c, lib/glthread/thread.h:
17620         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
17621         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
17622         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
17623         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
17624         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
17625         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
17626         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
17627         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
17628         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
17629         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
17630         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
17631         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
17632         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
17633         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
17634         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
17635         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
17636         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
17637         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
17638         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
17639         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
17640         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
17641         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
17642         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
17643         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
17644         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
17645         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
17646         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
17647         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
17648         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
17649         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
17650         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
17651         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
17652         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
17653         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
17654         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
17655         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
17656         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
17657         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
17658         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
17659         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
17660         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
17661         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
17662         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
17663         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
17664         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
17665         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
17666         * tests/test-poll.c, tests/test-quotearg-simple.c:
17667         * tests/test-quotearg.c, tests/test-quotearg.h:
17668         * tests/test-round-ieee.c, tests/test-round1.c:
17669         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
17670         * tests/test-roundl-ieee.c, tests/test-roundl.c:
17671         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
17672         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
17673         * tests/test-strerror.c, tests/test-strerror_r.c:
17674         * tests/test-strsignal.c, tests/test-strverscmp.c:
17675         * tests/test-xmemdup0.c:
17676         Replace FSF snail mail addresses with URLs, as per GNU coding
17677         standards.  See glibc bug
17678         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
17680 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
17682         README-release: capitalize a word and split a line
17683         * top/README-release: Fix punctuation and spacing.
17685 2012-02-08  Akim Demaille  <demaille@gostai.com>
17687         fatal-signal: use C prototypes (with explicit void).
17688         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
17689         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
17691 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
17693         regex: spelling fix
17694         * lib/regexec.c: spelling fix
17696         regex: rely on stdint.h for SIZE_MAX
17697         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
17699 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
17701         regex: merge glibc changes
17703         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
17704         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
17705         (init_word_char): Work even if bitset words are not exactly 32 or
17706         64 bits wide.  Don't assume there are no padding bits.
17707         * lib/regex.c [_LIBC]: Do not include <config.h>.
17708         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
17709         and -Wtype-limits.
17710         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
17711         needless disagreement with glibc.  All uses changed.  Define it to
17712         1 only if _GNU_SOURCE, to match glibc.
17713         (_REG_RM_NAME): Remove; no longer needed, since the names in
17714         question are now all protected by __USE_GNU.
17715         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
17716         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
17717         * lib/regex_internal.h (MIN): New macro.
17719         2012-01-03 Ulrich Drepper <drepper@gmail.com>
17720         * lib/regcomp.c (init_word_char): Optimize regex a bit.
17722         2011-12-30 Jakub Jelinek <jakub@redhat.com>
17723         * lib/regex_internal.c (re_string_fetch_byte_case):
17724         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
17725         is miscompiled, and it turns out it is because of an incorrect
17726         attribute on re_string_fetch_byte_case.  Unlike
17727         re_string_peek_byte_case, this one is really not pure, it modifies
17728         memory (increments pstr->cur_idx), and with the pure attribute GCC
17729         assumed it doesn't and it cached the presumed value of
17730         regexp->cur_idx in a variable across the
17731          for (;; ++i)
17732            {
17733              if (i >= BRACKET_NAME_BUF_SIZE)
17734                return REG_EBRACK;
17735              if (token->type == OP_OPEN_CHAR_CLASS)
17736                ch = re_string_fetch_byte_case (regexp);
17737              else
17738                ch = re_string_fetch_byte (regexp);
17739              if (re_string_eoi(regexp))
17740                return REG_EBRACK;
17741              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
17742                break;
17743              elem->opr.name[i] = ch;
17744            }
17746         2011-11-29 Andreas Schwab <schwab@redhat.com>
17747         * lib/regcomp.c (build_equiv_class):
17748         Fix access after end of search string in regex matcher.
17750         2011-11-12 Ulrich Drepper <drepper@redhat.com>
17751         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
17753         2011-10-12 Ulrich Drepper <drepper@redhat.com>
17754         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
17756         2011-10-11 Ulrich Drepper <drepper@redhat.com>
17757         * lib/regcomp.c (parse_branch, parse_sub_exp):
17758         More regex memory leak fixes and tests.
17759         (parse_sub_exp, parse_bracket_exp):
17760         Fix memory leak for some invalid regular expressions.
17762         2011-05-28 Ulrich Drepper <drepper@gmail.com>
17763         * lib/regex_internal.c, lib/regexec.c:
17764         Fix unnecessary overallocation due to incomplete character.  When
17765         incomplete characters are found at the end of a string the code
17766         ran amok and allocated lots of memory.  Stricter limits are now in
17767         place.
17769         2011-05-20 Reuben Thomas <rrt@sc3d.org>
17770         * lib/regex.h: Update documentation.
17772         2011-05-16 Aharon Robbins <arnold@skeeve.com>
17773         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
17775         2010-05-05 Andreas Schwab <schwab@redhat.com>
17776         * lib/regexec.c (find_collation_sequence_value):
17777         Fix lookup of collation sequence value during regexp matching.
17779         2010-01-22 Ulrich Drepper <drepper@redhat.com>
17780         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
17782         2008-01-16 Ulrich Drepper <drepper@redhat.com>
17783         * lib/regex.h: Cleanup namespace.
17785         2007-11-26 Ulrich Drepper <drepper@redhat.com>
17786         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
17788         2007-08-26 Ulrich Drepper <drepper@redhat.com>
17789         * lib/regex_internal.h: Prevent some declarations and definitions
17790         to be seen when used in tests.
17792         2005-05-06 Ulrich Drepper <drepper@redhat.com>
17793         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
17794         __libc_lock_* macros if not _LIBC.
17795         (struct re_dfa_t): Add lock.
17797 2012-02-07  Eric Blake  <eblake@redhat.com>
17799         maint.mk: also prohibit lower-case @var@
17800         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
17801         lower case, like @top_srcdir@.
17803 2012-02-04  Eric Blake  <eblake@redhat.com>
17805         canonicalize: avoid uninitialized memory use
17806         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
17807         random '/' left in dest.
17808         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
17810 2012-02-04  Bruno Haible  <bruno@clisp.org>
17812         isatty: Fix test failure of ptsname_r on native Windows.
17813         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
17814         and don't set errno.
17815         (isatty): Test first whether fd is valid. Set errno when returning 0.
17817 2012-02-04  Bruno Haible  <bruno@clisp.org>
17819         spawn-pipe tests: Fix a NULL program name in a diagnostic.
17820         * tests/test-spawn-pipe-main.c: Include progname.h.
17821         (main): Invoke set_program_name.
17822         * modules/spawn-pipe-tests (Depends-on): Add progname.
17824         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
17825         * tests/test-nonblocking-socket-main.c: Include progname.h.
17826         (main): Invoke set_program_name.
17827         * modules/nonblocking-socket-tests (Depends-on): Add progname.
17829         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
17830         * tests/test-nonblocking-pipe-main.c: Include progname.h.
17831         (main): Invoke set_program_name.
17832         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
17834 2012-02-04  Eric Blake  <eblake@redhat.com>
17836         canonicalize-lgpl: fix // handling
17837         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
17839         canonicalize: fix // handling
17840         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
17841         /// to //, since only // is special.
17843 2012-02-04  Bruno Haible  <bruno@clisp.org>
17845         ioctl: Fix test failure on native Windows.
17846         * lib/ioctl.c: Include msvc-nothrow.h.
17847         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
17849 2012-02-04  Bruno Haible  <bruno@clisp.org>
17851         fsync: Avoid test failure on native Windows.
17852         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
17853         read-only.
17855 2012-02-04  Bruno Haible  <bruno@clisp.org>
17857         sys_select: Avoid syntax error on OpenBSD 5.0.
17858         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
17859         currently being included, just include the system's <sys/select.h>.
17861 2012-02-04  Bruno Haible  <bruno@clisp.org>
17863         sys_select: Avoid syntax error on OpenBSD 5.0.
17864         * lib/sys_select.in.h: Include <signal.h> only after the include_next
17865         <sys/select.h>, not before.
17866         Reported by Jiri B <jirib@devio.us>.
17868 2012-02-04  Bruno Haible  <bruno@clisp.org>
17870         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
17871         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
17872         global variables.
17873         * tests/test-get-rusage-data.c (main): Likewise.
17874         Reported by Jim Meyering.
17876 2012-02-04  Bruno Haible  <bruno@clisp.org>
17878         stdioext: Fix last commit.
17879         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
17881 2012-02-03  Bruno Haible  <bruno@clisp.org>
17883         stdioext: Add tentative support for Plan9.
17884         * lib/stdio-impl.h: Include <errno.h>.
17885         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
17886         * lib/freadable.c (freadable): Likewise.
17887         * lib/fwritable.c (fwritable): Likewise.
17888         * lib/fbufmode.c (fbufmode): Likewise.
17889         * lib/freading.c (freading): Likewise.
17890         * lib/fwriting.c (fwriting): Likewise.
17891         * lib/freadptr.c (freadptr): Likewise.
17892         * lib/freadseek.c (freadptrinc): Likewise.
17893         * lib/freadahead.c (freadahead): Likewise.
17894         * lib/fpurge.c (fpurge): Likewise.
17895         * lib/fseeko.c (rpl_fseeko): Likewise.
17896         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
17897         Reported by Jens Staal <staal1978@gmail.com>.
17899 2012-02-02  Jim Meyering  <meyering@redhat.com>
17901         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
17902         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
17903         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
17904         not even to try to add the attribute.  Instead, add a pragma to suppress
17905         the suggestion/warning.
17907 2012-01-31  Karl Berry  <karl@gnu.org>
17909         setstate doc: typo.
17910         * doc/posix-functions/setstate.texi (setstate): { not (.
17912 2012-01-31  Bruno Haible  <bruno@clisp.org>
17914         popen: Make more robust on Windows.
17915         * lib/popen.c: On native Windows, use the _popen based code even if
17916         HAVE_POPEN is set.
17917         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
17918         environment variable on native Windows.
17920 2012-01-30  Bruno Haible  <bruno@clisp.org>
17922         pclose: Fix typo.
17923         * lib/stdio.in.h (pclose): Fix typo in warning message.
17925 2012-01-30  Bruno Haible  <bruno@clisp.org>
17927         doc about getlogin_r, setstate.
17928         * doc/posix-functions/getlogin_r.texi: List the incompatible
17929         declaration problem under "not fixed by gnulib".
17930         * doc/posix-functions/setstate.texi: Mention incompatible declaration
17931         problem on Solaris 11 and other platforms.
17933 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
17934             Bruno Haible  <bruno@clisp.org>
17936         poll tests: Make test more robust.
17937         * tests/test-poll.c: Include macros.h.
17938         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
17939         return value of various I/O operations.
17940         * modules/poll-tests (Files): Add tests/macros.h.
17942 2012-01-30  Bruno Haible  <bruno@clisp.org>
17944         sys_stat: Fix support for mingw64 and MSVC.
17945         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
17946         header files already do it.
17947         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
17948         stat itself.
17949         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
17951 2012-01-30  Bruno Haible  <bruno@clisp.org>
17953         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
17954         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
17955         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
17957 2012-01-29  Bruno Haible  <bruno@clisp.org>
17959         quotearg: Fix test failure on MacOS X 10.5.
17960         * tests/test-quotearg-simple.c: Include localcharset.h.
17961         (main): If the locale encoding is not ASCII, bypass the tests of
17962         locale_quoting_style and clocale_quoting_style.
17963         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
17965 2012-01-29  Jim Meyering  <meyering@redhat.com>
17967         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
17968         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
17969         detect uses of canonicalize_file_name.
17971 2012-01-28  Bruno Haible  <bruno@clisp.org>
17973         test-framework-sh: Fix test failure with AIX 7.1 diff.
17974         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
17975         in column 1, like 'diff -c' does.
17976         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
17977         whether 'diff -u' is used. Instead, test whether the output contains
17978         some '@' character.
17980 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
17982         strtoimax: eliminate need for stdint.h, inttypes.h checks
17983         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
17984         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
17985         the prerequisites for a recently-introduced strtoimax test.
17986         I guess this might cause strtoimax to be replaced when not
17987         strictly necessary on older hosts, but this shouldn't introduce
17988         any bugs and it should make Emacs 'configure' faster on typical
17989         modern hosts.  Problem discovered when importing the latest gnulib
17990         to an Emacs test version.
17991         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
17993 2012-01-28  Bruno Haible  <bruno@clisp.org>
17995         sys_time: Override 'struct timeval' on some native Windows platforms.
17996         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
17997         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
17998         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
17999         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
18000         needs to be overridden.
18001         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
18002         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
18003         * tests/test-sys_select.c: Check that the tv_sec member has the same
18004         size as a 'time_t'.
18005         * tests/test-sys_time.c: Likewise.
18006         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
18007         is set, set also REPLACE_GETTIMEOFDAY.
18008         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
18009         convert the resulting 'struct timeval' before returning.
18010         * lib/select.c: Include <sys/time.h>.
18011         (select, timeval): Undefine at the right place.
18012         * modules/select (Depends-on): Add sys_time.
18013         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
18014         some Windows platforms.
18015         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
18017 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
18019         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
18020         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
18021         an integer.
18022         * lib/fcntl.c (dupfd): Likewise.
18023         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
18025 2012-01-28  Bruno Haible  <bruno@clisp.org>
18027         fcntl: Avoid compilation error on native Windows.
18028         * modules/fcntl (Depends-on): Add 'close'.
18030 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
18032         select, poll, isatty: Avoid warnings on x86_64 mingw64.
18033         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
18034         pointer to an integer.
18035         * lib/poll.c (IsConsoleHandle): Likewise.
18036         * lib/isatty.c (IsConsoleHandle): Likewise.
18038 2012-01-28  Jim Meyering  <meyering@redhat.com>
18040         doc: clarify README-release
18041         * top/README-release: Clarify: you should make a point to have
18042         the latest stable versions of build tools in your PATH, and the
18043         reference to buildreq is solely for its list of tool names, not
18044         for its minimal-functional version numbers.
18045         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
18047         maint.mk: use more readable (yet functionally equivalent) quoting
18048         It is common to quote a single quote in a single quoted string like
18049         this:  '...'\''...'.  Unless you know the idiom, that looks like
18050         gibberish, so prefer to double-quote the string when possible.
18051         Then you can use a more readable, lone single quote: "...'..."
18052         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
18053         "don't" is more readable than the equivalent 'don'\''t'.
18054         (sc_cast_of_x_alloc_return_value): Likewise.
18055         (sc_cast_of_alloca_return_value): Likewise.
18056         (sc_makefile_path_separator_check): Similar: use ":" in '...',
18057         rather than '\'':'\''.
18059 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
18061         stdalign: relax _Alignof and tighten _Alignas test
18062         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
18063         as it was too strict: alignof must divide offsetof, but it need
18064         not equal offsetof.  Inspired by Joseph S. Myers's comment
18065         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
18066         Conversely, tighten the _Alignas test a bit, as the resulting
18067         alignment must be exactly 8.
18069 2012-01-27  Bruno Haible  <bruno@clisp.org>
18071         stdalign: Document the last change.
18072         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
18074 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
18076         stdalign: check that alignof and offsetof are consistent
18077         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
18078         Problem reported for gnulib by Richard W.M. Jones in
18079         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
18081 2012-01-27  Jim Meyering  <meyering@redhat.com>
18083         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
18084         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
18085         convert a sequence with gaps to the minimal containing range.
18086         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
18087         * tests/test-update-copyright.sh: Test for this.
18088         The FSF confirmed it is ok to do this, assuming there is at
18089         least one significant change per year in the affected range:
18090         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
18092 2012-01-26  Bruno Haible  <bruno@clisp.org>
18094         pipe2: refine doc about thread-safety
18095         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
18096         multithread-safety problem.
18097         * doc/glibc-functions/accept4.texi: Likewise.
18099 2012-01-26  Bruno Haible  <bruno@clisp.org>
18101         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
18102         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
18103         In the test program, include <fcntl.h>, for O_RDONLY.
18105 2012-01-26  Eric Blake  <eblake@redhat.com>
18107         pipe2: document lack of thread-safety in replacement
18108         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
18109         issue in replacement.
18110         * doc/glibc-functions/accept4.texi (accept4): Likewise.
18111         Based on a report by Eric Wong.
18113 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
18114             Bruno Haible  <bruno@clisp.org>
18116         malloca: Avoid warnings on x86_64 mingw64.
18117         * lib/malloca.c: Include <stdint.h>.
18118         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
18119         * modules/malloca (Depends-on): Add stdint.
18120         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
18122 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
18124         obstack: remove __STDC__ conditionals
18125         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
18126         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
18127         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
18128         m4/include_next.m4 as the only gnulib-maintained places that still
18129         refer to __STDC__.
18131 2012-01-24  Bruno Haible  <bruno@clisp.org>
18133         havelib: Modern quoting.
18134         * build-aux/config.rpath: Quote 'like this', not `like this', as per
18135         the recent change to the GNU coding standards.
18137 2012-01-24  Bruno Haible  <bruno@clisp.org>
18139         stdint: Improve support for Android.
18140         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
18141         Reported by Simon Josefsson <simon@josefsson.org>.
18143 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
18145         doc: omit trailing empty lines from INSTALL etc.
18146         * doc/Makefile (INSTALL): Omit trailing empty lines.
18147         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
18148         omit trailing empty lines.  This simplifies the build procedure.
18150 2012-01-23  Jim Meyering  <meyering@redhat.com>
18152         tests: avoid spurious warnings about gl_sockets_startup
18153         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
18154         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
18155         reporting a "statement with no effect".
18156         * tests/test-accept.c (main): Mark as "(void)".
18157         * tests/test-accept4.c (main): Likewise.
18158         * tests/test-bind.c (main): Likewise.
18159         * tests/test-connect.c (main): Likewise.
18160         * tests/test-getpeername.c (main): Likewise.
18161         * tests/test-getsockname.c (main): Likewise.
18162         * tests/test-getsockopt.c (main): Likewise.
18163         * tests/test-listen.c (main): Likewise.
18164         * tests/test-recv.c (main): Likewise.
18165         * tests/test-recvfrom.c (main): Likewise.
18166         * tests/test-send.c (main): Likewise.
18167         * tests/test-sendto.c (main): Likewise.
18168         * tests/test-setsockopt.c (main): Likewise.
18169         * tests/test-shutdown.c (main): Likewise.
18171 2012-01-21  Bruno Haible  <bruno@clisp.org>
18173         locale-fr.m4: Fix for Android.
18174         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
18175         failure of the test program on Bionic libc.
18177 2012-01-21  Jim Meyering  <meyering@redhat.com>
18179         bootstrap: fail when bootstrap_post_import_hook fails
18180         Otherwise, it's far too easy to miss diagnostics emitted
18181         between gnulib-tool's output and that of running configure.
18182         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
18184 2012-01-17  Jim Meyering  <meyering@redhat.com>
18186         maint: enable sc_trailing_blank
18187         * build-aux/pmccabe.css: Remove trailing blanks.
18188         * doc/acl-cygwin.txt: Likewise.
18189         * doc/gnu-oids.texi: Likewise
18190         * cfg.mk: Enable sc_trailing_blank.
18191         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
18193 2012-01-17  Jim Meyering  <meyering@redhat.com>
18195         maint: enable sc_prohibit_openat_without_use
18196         * cfg.mk: Enable sc_prohibit_openat_without_use.
18197         Exempt lib/selinux-at.c.
18199 2012-01-17  Jim Meyering  <meyering@redhat.com>
18201         maint: enable sc_prohibit_cloexec_without_use
18202         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
18203         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
18205 2012-01-17  Jim Meyering  <meyering@redhat.com>
18207         maint: enable sc_prohibit_intprops_without_use
18208         * cfg.mk: Enable sc_prohibit_intprops_without_use
18209         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
18211 2012-01-17  Jim Meyering  <meyering@redhat.com>
18213         maint: enable sc_prohibit_hash_pjw_without_use
18214         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
18215         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
18216         to match any use of \<hash_pjw\>, i.e., not necessarily with a
18217         following " (".
18219 2012-01-17  Jim Meyering  <meyering@redhat.com>
18221         maint: enable double-word-prohibiting rule
18222         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
18223         Exempt three files.
18225 2012-01-17  Jim Meyering  <meyering@redhat.com>
18227         maint: remove empty lines at EOF, but excluding modules/*
18228         Apply syntax rules at home as well as abroad.  Most changes
18229         were induced by running this:
18230           make srcdir=. _build-aux=build-aux -f top/maint.mk \
18231             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
18232             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
18233         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
18234         Exempt modules/* and two binary files.
18235         Also exempt doc/INSTALL*, per request from Bruno Haible.
18236         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
18237         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
18238         * doc/Copyright/request-assign.future: Likewise.
18239         * doc/Copyright/request-disclaim.changes: Likewise.
18240         * doc/INSTALL: Likewise.
18241         * doc/INSTALL.ISO: Likewise.
18242         * doc/INSTALL.UTF-8: Likewise.
18243         * doc/acl-cygwin.txt: Likewise.
18244         * doc/acl-resources.txt: Likewise.
18245         * doc/fdl-1.2.texi: Likewise.
18246         * doc/fdl-1.3.texi: Likewise.
18247         * doc/fdl.texi: Likewise.
18248         * lib/argp-pin.c: Likewise.
18249         * lib/round.c: Likewise.
18250         * lib/unicase/u16-totitle.c: Likewise.
18251         * lib/unictype/block_test.c: Likewise.
18252         * lib/uninorm/canonical-decomposition.c: Likewise.
18253         * m4/README: Likewise.
18254         * m4/relocatable-lib.m4: Likewise.
18255         * tests/test-isnand-nolibm.c: Likewise.
18256         * tests/test-isnand.c: Likewise.
18257         * tests/uninorm/NormalizationTest.txt: Likewise.
18259 2012-01-17  Jim Meyering  <meyering@redhat.com>
18261         maint: add framework to run syntax-check rules against gnulib sources
18262         * cfg.mk: New file, to disable all currently-failing tests.
18263         We'll enable them one by one, as they are made to pass.
18264         * Makefile (sc_maint): New rule.
18266 2012-01-21  Bruno Haible  <bruno@clisp.org>
18268         stdint: Add support for Android.
18269         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
18270         include the system's <stdint.h>.
18271         Reported by Simon Josefsson <simon@josefsson.org>.
18273 2012-01-19  Jim Meyering  <meyering@redhat.com>
18275         bootstrap: add bootstrap_post_import_hook
18276         Bison does still need something like the gnulib_mk_hook whose
18277         invocation I had to remove along with slurp in commit 767ccd40.
18278         Technically, we could get along without it, but doing so would
18279         have required living with a warning and a mandatory post-bootstrap
18280         automake rerun.
18281         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
18282         (bootstrap_post_import_hook): New function.
18283         Invoke it after gnulib-tool --import and before autoreconf.
18285 2012-01-18  Jim Meyering  <meyering@redhat.com>
18287         gitlog-to-changelog: don't use "no_"-prefixed variable name
18288         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
18289         to enable both --cluster and --no-cluster.  Change variable name,
18290         s/\$no_cluster/$cluster/, and reverse usage to match.
18292         gitlog-to-changelog: use "||", not "or" in expressions
18293         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
18294         expressions.
18296 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
18298         gitlog-to-changelog: new option --no-cluster
18299         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
18300         clustering of adjacent commit messages.
18302 2012-01-17  Jim Meyering  <meyering@redhat.com>
18304         maint: spell file systems with two words, not one
18305         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
18306         two words, not one.
18308 2012-01-16  Jim Meyering  <meyering@redhat.com>
18310         bootstrap: add a FIXME comment to ensure we eventually remove the hack
18311         * build-aux/bootstrap (gnulib_tool_options): Add comment.
18313 2012-01-16  Eric Blake  <eblake@redhat.com>
18315         bootstrap: cater to autoconf 2.59
18316         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
18317         is not available.
18319         bootstrap: properly check for libtool
18320         * build-aux/bootstrap (libtoolize): Also run libtool when older
18321         usage is detected.
18323 2012-01-15  Bruno Haible  <bruno@clisp.org>
18325         Improve support for MSVC 9.
18326         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
18327         clashes on MSVC.
18328         * lib/fcntl.in.h: Likewise.
18329         * lib/stdlib.in.h: Likewise.
18330         * lib/sys_stat.in.h: Likewise.
18332 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
18334         gnupload: we hold the master copy of this script now
18335         For motivation and more information, see:
18336         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
18337         * build-aux/gnupload: Make it clear in the heading comments that the
18338         master copy of this file is maintained by gnulib.  Since we are at
18339         it, bump its copyright year and ...
18340         ($scriptversion): ... the date in its version.
18341         ($usage): Patches and bug reports should be sent to the gnulib list,
18342         not the automake one.
18343         * config/srclist.txt: Don't try to sync 'gnupload' from automake
18344         anymore.
18346 2012-01-15  Bruno Haible  <bruno@clisp.org>
18348         Fix module 'random'.
18349         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
18350         initstate, setstate are declared.
18352 2012-01-14  Bruno Haible  <bruno@clisp.org>
18354         Tests for module 'random'.
18355         * modules/random-tests: New file.
18356         * tests/test-random.c: New file, based on tests/test-random_r.c.
18358         New module 'random'.
18359         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
18360         declarations.
18361         * lib/random.c: New file, based on glibc/stdlib/random.c.
18362         * m4/random.m4: New file.
18363         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
18364         HAVE_RANDOM.
18365         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
18366         * modules/random: New file.
18367         * config/srclist.txt: Add an entry for random.c.
18368         * doc/posix-functions/random.texi: Mention the 'random' module.
18369         * doc/posix-functions/initstate.texi: Likewise.
18370         * doc/posix-functions/setstate.texi: Likewise.
18371         * doc/posix-functions/srandom.texi: Likewise.
18373 2012-01-12  Bruno Haible  <bruno@clisp.org>
18375         random_r: Use common idioms.
18376         * lib/random_r.c: Include <stdlib.h> first.
18378         random_r: Override incompatible API on AIX, OSF/1.
18379         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
18380         Override the system function if REPLACE_RANDOM_R is 1.
18381         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
18382         and OSF/1, set REPLACE_RANDOM_R.
18383         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
18384         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
18385         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
18386         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
18387         * doc/glibc-functions/random_r.texi: Likewise.
18388         * doc/glibc-functions/setstate_r.texi: Likewise.
18390         random_r: Support for MSVC 9.
18391         * lib/random_r.c: Include stdint.h, not inttypes.h.
18393 2012-01-12  Eric Blake  <eblake@redhat.com>
18395         inet_ntop: guard extra work by IF_LINT
18396         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
18397         better code generation when not checking for warnings.
18398         Suggested by Paul Eggert and Jim Meyering.
18400         strptime: fix regression on mingw
18401         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
18402         Fix regression.  Reported by Bruno Haible.
18404 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
18405             Bruno Haible  <bruno@clisp.org>
18407         copy-file: add error-code-returning variant.
18408         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
18409         (qcopy_file_preserving): New declaration.
18410         * lib/copy-file.c (qcopy_file_preserving): Renamed from
18411         copy_file_preserving. Change return type to 'int'. Don't emit an error
18412         message here.
18413         (copy_file_preserving): New function.
18414         * tests/test-copy-file.c: Include <stdlib.h>.
18415         (main): Test qcopy_file_preserving if the environment variable
18416         NO_STDERR_OUTPUT is set.
18417         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
18418         with NO_STDERR_OUTPUT
18419         * tests/test-copy-file-2.sh: Likewise.
18421 2012-01-10  Bruno Haible  <bruno@clisp.org>
18423         copy-file: Use 'quote' module consistently.
18424         * lib/copy-file.c (copy_file_preserving): Use quote().
18426         copy-file: Refactor.
18427         * lib/copy-file.c: Include quote.h.
18428         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
18429         message here.
18430         * modules/copy-file (Depends-on): Add quote.
18432         acl: Export qcopy_acl.
18433         * lib/acl.h (qcopy_acl): New declaration.
18434         * lib/copy-acl.c (qcopy_acl): Make non-static.
18436         acl: Rename a local variable.
18437         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
18439         acl: Align return values of copy_acl and qcopy_acl.
18440         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
18441         maybe < -1.
18443 2012-01-11  Eric Blake  <eblake@redhat.com>
18445         strptime: silence gcc warnings
18446         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
18447         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
18448         Reported by Daniel P. Berrange.
18450         inet_ntop: silence gcc warning
18451         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
18452         Reported by Daniel P. Berrange.
18454 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
18456         getloadavg test: skip the test on GNU/Linux without /proc mounted
18457         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
18458         file.  When /proc is not mounted, it always fails with ENOENT.
18459         * tests/test-getloadavg.c (main): Treat ENOENT return code from
18460         getloadavg(3) the same way as ENOSYS and ENOTSUP.
18462 2012-01-10  Bruno Haible  <bruno@clisp.org>
18464         regex: Avoid link error on MSVC 9.
18465         * modules/regex (Depends-on): Add wctype.
18467 2012-01-10  Bruno Haible  <bruno@clisp.org>
18469         doc: Mention --with-tests option.
18470         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
18471         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
18472         --with-tests.
18473         Reported by Reuben Thomas.
18475 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
18477         users.txt: order package names lexicographically.
18478         * users.txt: Order package names lexicographically.
18480 2012-01-10  Jim Meyering  <meyering@redhat.com>
18482         maint.mk: fix description in comment
18483         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
18485         ignore-value: remove deprecated ignore_ptr function
18486         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
18487         * NEWS: Note this.
18489 2012-01-09  Jim Meyering  <meyering@redhat.com>
18491         test-init.sh: avoid a subshell
18492         * tests/test-init.sh: Remove protective subshell.
18493         Suggested by Bernhard Voelker.  While a subshell is normally
18494         required to protect against older shells (Solaris, FreeBSD) that
18495         warn about a missing program before performing redirection, the
18496         shell-selection tests performed by init.sh probably exclude any
18497         offending shell.
18499 2012-01-08  Bruno Haible  <bruno@clisp.org>
18501         setlocale tests: Avoid test failure on Solaris 11 2011-11.
18502         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
18503         variable.
18505 2012-01-08  Bruno Haible  <bruno@clisp.org>
18507         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
18508         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
18509         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
18510         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
18511         macro.
18512         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
18513         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
18514         * lib/spawn_faction_addopen.c: Add workaround implementation if
18515         HAVE_WORKING_POSIX_SPAWN.
18516         * modules/spawn (Makefile): Substitute
18517         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
18518         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
18519         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
18520         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
18521         (Depends-on): Update conditions.
18522         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
18523         the Solaris 11 bug.
18525 2012-01-08  Bruno Haible  <bruno@clisp.org>
18527         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
18528         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
18529         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
18530         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
18531         macro.
18532         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
18533         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
18534         * lib/spawn_faction_adddup2.c: Add workaround implementation if
18535         HAVE_WORKING_POSIX_SPAWN.
18536         * modules/spawn (Makefile): Substitute
18537         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
18538         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
18539         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
18540         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
18541         (Depends-on): Update conditions.
18542         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
18543         the Solaris 11 bug.
18545 2012-01-08  Bruno Haible  <bruno@clisp.org>
18547         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
18548         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
18549         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
18550         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
18551         HAVE_WORKING_POSIX_SPAWN.
18552         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
18553         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
18554         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
18555         * lib/spawn_faction_addclose.c: Add workaround implementation if
18556         HAVE_WORKING_POSIX_SPAWN.
18557         * modules/spawn (Makefile): Substitute
18558         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
18559         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
18560         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
18561         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
18562         (Depends-on): Update conditions.
18563         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
18564         the Solaris 11 bug.
18566 2012-01-08  Bruno Haible  <bruno@clisp.org>
18568         doc: Update for Solaris 11 2011-11.
18569         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
18570         * m4/printf.m4: Update comments.
18572 2012-01-08  Bruno Haible  <bruno@clisp.org>
18574         mktime: Avoid compilation error on Solaris 11.
18575         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
18577 2012-01-08  Bruno Haible  <bruno@clisp.org>
18579         doc: Small fix.
18580         * doc/posix-headers/nl_types.texi: Correct platforms list.
18582 2012-01-08  Simon Josefsson  <simon@josefsson.org>
18584         Add lgpl-3.0 module.
18585         * MODULES.html.sh (Support for building documentation): Add
18586         lgpl-3.0.
18587         * modules/lgpl-3.0: New file.
18589 2012-01-08  Jim Meyering  <meyering@redhat.com>
18591         select.c: indent with spaces, not TABs
18592         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
18594 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
18596         quotearg: do not use grave accent for left quote
18597         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
18598         locale_quoting_style.
18599         (quotearg_buffer_restyled): Fix example.
18600         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
18602 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
18604         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
18605         Most programs do not have translation catalogs for English and much
18606         less separate catalogs for British and American English.  Drop the
18607         suggestion to translators about these two, and provide it
18608         automatically for Unicode locales.  Like most programs, even those
18609         using American English, we use single quotation marks.  This conflicts
18610         with the American typographic convention, but works better when you
18611         cite the entire error message within double quotes.  It also tries not
18612         to clash with established practice and with what non-gnulib programs
18613         will usually do.
18614         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
18615         using an UTF-8 or GB-18030 locale.  The list of other locales with
18616         quotes was provided by Bruno Haible.
18617         (quotearg_buffer_restyled): Adjust instructions to translators.
18618         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
18619         text, since this would be wrong when using Unicode.
18620         * modules/quotearg: Depend on c-strcaseeq.
18622 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
18624         quotearg: fix Wikipedia link
18625         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
18627 2012-01-07  Simon Josefsson  <simon@josefsson.org>
18629         Fix for mingw with MSVC9.
18630         * m4/ld-version-script.m4: Check that compiler rejects version
18631         scripts with syntax errors.  Reported by Bruno Haible
18632         <bruno@clisp.org>.
18634 2012-01-06  Bruno Haible  <bruno@clisp.org>
18636         Talk about "native Windows API", not "Woe32".
18637         * lib/accept4.c: Update comments to mention native Windows.
18638         * lib/execute.c: Likewise.
18639         * lib/fatal-signal.c: Likewise.
18640         * lib/localcharset.c: Likewise.
18641         * lib/nanosleep.c: Likewise.
18642         * lib/nl_langinfo.c: Likewise.
18643         * lib/pclose.c: Likewise.
18644         * lib/pipe-filter-gi.c: Likewise.
18645         * lib/pipe-filter-ii.c: Likewise.
18646         * lib/pipe.c: Likewise.
18647         * lib/pipe2.c: Likewise.
18648         * lib/popen.c: Likewise.
18649         * lib/progreloc.c: Likewise.
18650         * lib/relocatable.c: Likewise.
18651         * lib/sigaction.c: Likewise.
18652         * lib/sigprocmask.c: Likewise.
18653         * lib/spawn-pipe.h: Likewise.
18654         * lib/spawn-pipe.c: Likewise.
18655         * lib/spawni.c: Likewise.
18656         * lib/stat-time.h: Likewise.
18657         * lib/w32spawn.h: Likewise.
18658         * tests/test-isatty.c: Likewise.
18659         * lib/config.charset: More comments.
18660         * doc/gnulib-intro.texi: Mention native Windows.
18661         * doc/posix-functions/_Exit_C99.texi: Likewise.
18662         * doc/posix-headers/fcntl.texi: Likewise.
18664 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
18666         argp: Avoid crash if translator uses % characters in a translation.
18667         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
18668         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
18670 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
18672         doc: C11 and C++11 are now official
18673         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
18674         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
18675         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
18676         * modules/stdalign:
18677         Replace references to draft C1X to C11, and to draft C++0X to C++11.
18679 2012-01-06  Bruno Haible  <bruno@clisp.org>
18681         uc-is-grapheme-break tests: Tweak.
18682         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
18683         message.
18685 2012-01-06  Bruno Haible  <bruno@clisp.org>
18687         test-init.sh: correct the test for diff -u
18688         * tests/test-init.sh: Also redirect stdout to /dev/null.
18690 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
18692         Use ', not `, for quoting output.
18693         * build-aux/announce-gen (usage, sizes, print_news_deltas)
18694         (print_changelog_deltas, get_tool_versions, main program):
18695         * build-aux/git-version-gen:
18696         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
18697         * build-aux/move-if-change (help):
18698         * build-aux/useless-if-before-free (usage, main program):
18699         * check-module (parse_module_file, usage)
18700         (find_included_lib_files, check_module):
18701         * lib/argmatch.c (main) [TEST]:
18702         * lib/argp-help.c (_help):
18703         * lib/getopt1.c (main) [TEST]:
18704         * lib/git-merge-changelog.c (usage):
18705         * lib/xstrtol-error.c (xstrtol_error):
18706         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
18707         * m4/argz.m4 (gl_FUNC_ARGZ):
18708         * m4/bison.m4 (gl_BISON):
18709         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
18710         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
18711         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
18712         * m4/fpending.m4 (gl_PREREQ_FPENDING):
18713         * m4/gc-random.m4 (gl_GC_RANDOM):
18714         * m4/intl.m4 (gt_CHECK_DECL):
18715         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
18716         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
18717         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
18718         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
18719         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
18720         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
18721         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
18722         * tests/test-dirname.c (main):
18723         * tests/test-getpass.c (main):
18724         * tests/test-iconvme.c (main):
18725         * tests/test-parse-datetime.c (LOG):
18726         * tests/test-xstrtoimax.sh:
18727         * tests/test-xstrtol.sh:
18728         * tests/test-xstrtoll.sh:
18729         * tests/test-xstrtoumax.sh:
18730         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
18731         * top/GNUmakefile (abort-due-to-no-makefile):
18732         Quote 'like this', not `like this', as per the recent change to
18733         the GNU coding standards.
18735 2012-01-05  Bruno Haible  <bruno@clisp.org>
18737         strtoimax: Don't force a replacement on systems where intmax_t is int.
18738         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
18739         'intmax_t' is not larger than 'int'.
18740         Reported by Pádraig Brady <P@draigBrady.com>.
18742 2012-01-05  Bruno Haible  <bruno@clisp.org>
18744         doc: Mention NetBSD bugs.
18745         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
18746         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
18748 2012-01-05  Bruno Haible  <bruno@clisp.org>
18750         strtoumax tests: Enhance tests.
18751         * tests/test-strtoumax.c (main): Add tests for large values.
18753 2012-01-05  Bruno Haible  <bruno@clisp.org>
18755         strtoimax: Work around AIX 5.1 bug.
18756         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
18757         definition.
18758         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
18759         Set HAVE_STRTOIMAX.
18760         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
18761         REPLACE_STRTOIMAX.
18762         * modules/inttypes-incomplete (Makefile.am): Substitute
18763         REPLACE_STRTOIMAX.
18764         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
18765         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
18766         (Depends-on): Update conditions.
18767         * tests/test-strtoimax.c (main): Add tests for large values.
18768         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
18770 2012-01-05  Bruno Haible  <bruno@clisp.org>
18772         inttypes: Modernize.
18773         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
18774         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
18775         (Makefile.am): Update inttypes.h rule.
18777 2012-01-05  Jim Meyering  <meyering@redhat.com>
18779         init.sh: don't waste a subshell just to redirect stderr
18780         * tests/init.sh: In testing for diff -u and diff -c, use a
18781         stderr-redirecting exec inside `...` rather than a subshell.
18783         test-init.sh: avoid failure on HP-UX 11.00
18784         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
18785         resolves to diff -c or cmp.  Reported by Bruno Haible.
18787 2012-01-05  Bruno Haible  <bruno@clisp.org>
18789         Tests for module 'strtoull'.
18790         * modules/strtoull-tests: New file.
18791         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
18793 2012-01-05  Bruno Haible  <bruno@clisp.org>
18795         Tests for module 'strtoll'.
18796         * modules/strtoll-tests: New file.
18797         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
18799 2012-01-05  Bruno Haible  <bruno@clisp.org>
18801         Tests for module 'strtoul'.
18802         * modules/strtoul-tests: New file.
18803         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
18805 2012-01-05  Bruno Haible  <bruno@clisp.org>
18807         Tests for module 'strtol'.
18808         * modules/strtol-tests: New file.
18809         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
18811 2012-01-04  Jim Meyering  <meyering@redhat.com>
18813         test-init.sh: accommodate Solaris 5.10's different diff -u output
18814         * tests/test-init.sh: Also exempt @@ lines from the comparison
18815         of diff output, since Solaris 5.10 and GNU diff formats differ.
18816         Reported by Stefano Lattarini.
18818 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
18820         test-posixtm: don't assume signed integer wraparound
18821         * tests/test-posixtm.c (main): Don't assume wraparound semantics
18822         after signed integer overflow.  Inspired by (though it may not
18823         fix) Bruno Haible's bug report in
18824         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
18826         Spell out "Windows 9x" and "Windows XP".
18827         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
18828         "Windows 9x" and "WinXP" with "Windows XP".
18830 2012-01-04  Jim Meyering  <meyering@redhat.com>
18832         test-vc-list-files-cvs.sh: remove obsolete comment
18833         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
18834         double exit.  Now that's all encapsulated via skip_ and Exit.
18836 2012-01-04  Bruno Haible  <bruno@clisp.org>
18838         Talk about "native Windows API", not "Win32".
18839         * lib/classpath.c: Update comments to mention native Windows.
18840         * lib/csharpexec.c: Likewise.
18841         * lib/dup2.c: Likewise.
18842         * lib/error.c: Likewise.
18843         * lib/fcntl.c: Likewise.
18844         * lib/filename.h: Likewise.
18845         * lib/findprog.c: Likewise.
18846         * lib/get-rusage-as.c: Likewise.
18847         * lib/get-rusage-data.c: Likewise.
18848         * lib/getpagesize.c: Likewise.
18849         * lib/javaexec.c: Likewise.
18850         * lib/msvc-inval.c: Likewise.
18851         * lib/msvc-nothrow.c: Likewise.
18852         * lib/nanosleep.c: Likewise.
18853         * lib/nonblocking.c: Likewise.
18854         * lib/printf-parse.c: Likewise.
18855         * lib/setlocale.c: Likewise.
18856         * lib/sigaction.c: Likewise.
18857         * lib/strerror_r.c: Likewise.
18858         * lib/tmpdir.c: Likewise.
18859         * lib/vasnprintf.c: Likewise.
18860         * lib/w32spawn.h: Likewise.
18861         * lib/waitpid.c: Likewise.
18862         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
18863         * m4/locale-ar.m4: Likewise.
18864         * m4/locale-fr.m4: Likewise.
18865         * m4/locale-ja.m4: Likewise.
18866         * m4/locale-tr.m4: Likewise.
18867         * m4/locale-zh.m4: Likewise.
18868         * m4/printf.m4: Likewise.
18869         * tests/test-cloexec.c: Likewise.
18870         * tests/test-copy-acl.sh: Likewise.
18871         * tests/test-copy-file.sh: Likewise.
18872         * tests/test-file-has-acl.sh: Likewise.
18873         * tests/test-set-mode-acl.sh: Likewise.
18874         * tests/test-dup-safer.c: Likewise.
18875         * tests/test-dup2.c: Likewise.
18876         * tests/test-dup3.c: Likewise.
18877         * tests/test-fcntl.c: Likewise.
18878         * tests/test-nonblocking-pipe.h: Likewise.
18879         * tests/test-nonblocking-socket.h: Likewise.
18880         * tests/test-pipe.c: Likewise.
18881         * tests/test-pipe2.c: Likewise.
18882         * tests/test-spawn-pipe-child.c: Likewise.
18883         * doc/acl-resources.txt: Likewise.
18884         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
18885         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
18886         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
18887         * lib/localcharset.c: Update comments to mention native Windows.
18888         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
18889         * lib/localename.c: Likewise.
18890         * lib/progreloc.c: Likewise.
18891         * lib/relocatable.c: Likewise.
18892         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
18893         (windows_compute_revents): Renamed from win32_compute_revents.
18894         (windows_compute_revents_socket): Renamed from
18895         win32_compute_revents_socket.
18896         * lib/select.c: Update comments to mention native Windows.
18897         (windows_poll_handle): Renamed from win32_poll_handle.
18898         * m4/threadlib.m4: Update comments to mention native Windows.
18899         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
18900         --enable-threads=windows instead of --enable-threads=win32. Set
18901         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
18902         * lib/glthread/lock.h: Update comments to mention native Windows.
18903         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
18904         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
18905         USE_WIN32_THREADS.
18906         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
18907         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
18908         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
18909         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
18910         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
18911         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
18912         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
18913         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
18914         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
18915         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
18916         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
18917         * tests/test-tls.c: Likewise.
18918         Rationale:
18919         Microsoft renamed the "Win32 API" to "Windows API", as it is available
18920         on both 32-bit and 64-bit Windows systems.
18921         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
18922         line of distinction is between "native Windows" on one side and Unix/
18923         POSIX systems on the other side. More details in
18924         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
18925         Suggested by Paul Eggert.
18927 2012-01-03  Bruno Haible  <bruno@clisp.org>
18929         isatty: Support for MSVC 9.
18930         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
18931         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
18932         (_isatty_nothrow): New function.
18933         (isatty): Use it instead of _isatty.
18934         (IsConsoleHandle): Add comment, from Paolo Bonzini.
18935         * lib/poll.c (IsConsoleHandle): Likewise.
18936         * lib/select.c (IsConsoleHandle): Likewise.
18937         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
18938         (gl_PREREQ_ISATTY): New macro.
18939         * modules/isatty (Depends-on): Add msvc-inval.
18940         (configure.ac): Invoke gl_PREREQ_ISATTY.
18942 2012-01-03  Jim Meyering  <meyering@redhat.com>
18944         maint.mk: remove temporary transition aid from over 1.5 years ago
18945         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
18946         purpose was to aid in the transition (avoiding silent malfunction)
18947         from that old name to the new _sc_search_regexp.  This shim was
18948         added by commit 219c504b.
18950         init.sh: do not try to accommodate compare arguments starting with "-"
18951         * tests/init.sh (compare_dev_null_): Do not try to accommodate
18952         compare arguments that start with "-".  Besides, we do not worry
18953         about this when invoking diff or cmp; why start now with sed?
18954         Using "--" to separate options from argument would trigger sed
18955         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
18956         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
18958 2012-01-02  Bruno Haible  <bruno@clisp.org>
18960         Enhance tests for module 'isatty'.
18961         * modules/isatty-tests (Depends-on): Add pipe-posix.
18962         * tests/test-isatty.c: Include <fcntl.h>.
18963         (DEV_NULL): New macro.
18964         (main): Test the resut of isatty() also on regular files, pipes, and
18965         /dev/null.
18967         New module 'isatty'.
18968         * lib/unistd.in.h (isatty): New declaration.
18969         * lib/isatty.c: New file, based on an idea of
18970         Bastien Roucariès <roucaries.bastien@gmail.com>.
18971         * m4/isatty.m4: New file.
18972         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
18973         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
18974         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
18975         REPLACE_ISATTY.
18976         * modules/isatty: New file.
18977         * doc/posix-functions/isatty.texi: Mention the new module.
18978         Suggested by Paolo Bonzini.
18980 2012-01-02  Bruno Haible  <bruno@clisp.org>
18982         canonicalize: Tweak 2011-12-29 commit.
18983         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
18984         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
18986 2012-01-02  Jim Meyering  <meyering@redhat.com>
18988         gitlog-to-changelog: describe input syntax in --help output
18989         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
18991         gitlog-to-changelog: fix typo in --help: show backslash before email @
18992         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
18993         in sources, but not in actual output.
18995 2011-12-30  Jim Meyering  <meyering@redhat.com>
18997         gitlog-to-changelog: don't malfunction when name contains %-directive
18998         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
18999         in a name string cause trouble.  E.g., with a user name of "%s",
19000         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
19002 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
19004         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
19005         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
19006         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
19007         the "  (tiny change)" notation that is appended to the standard
19008         ChangeLog "date  name  email" header line.
19010 2012-01-01  Jim Meyering  <meyering@redhat.com>
19012         test-framework-sh: init.sh: fix "make dist" failure
19013         When using gnulib-tool's --with-tests option and any module that
19014         depends on test-framework-sh, "make dist" would fail due to the
19015         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
19016         in the gltests directory, and not in the gllib/ directory.
19017         One way to work around that is to move the EXTRA_DIST += init.sh
19018         from the primary module to the -tests one:
19019         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
19020         * modules/test-framework-sh (Makefile.am): ...not here.
19021         Reported by Tom G. Christensen in
19022         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
19024         version-etc: update copyright year reported by --version
19025         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
19027 2011-12-31  Pádraig Brady  <P@draigBrady.com>
19029         canonicalize: only stat() if required
19030         * lib/canonicalize.c (canonicalize_filename_mode):
19031         Avoid calling l?stat() when both CAN_MISSING,
19032         and CAN_NOLINKS are set, as we neither need
19033         to resolve symlinks or test component existence.
19035 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
19037         doc: cover st_ino issues once; add OpenVMS etc.
19038         * doc/posix-functions/stat.texi (stat):
19039         * doc/posix-functions/lstat.texi (lstat):
19040         * doc/posix-functions/fstatat.texi (fstatat):
19041         * doc/posix-functions/fstat.texi (fstat):
19042         Move general 'struct stat' stuff to sys_stat.texi,
19043         leaving behind a pointer.
19044         * doc/posix-headers/sys_stat.texi (sys/stat.h):
19045         Merge duplicate info about 'struct stat' problems into here.
19046         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
19047         and suggest partial workarounds.
19049         same-inode: port to OpenVMS
19050         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
19051         three st_ino values.
19053 2011-12-30  Pádraig Brady  <P@draigBrady.com>
19055         canonicalize: fix references to stat() and lstat()
19056         * lib/canonicalize.c (canonicalize_filename_mode):
19057         Ensure references always resolve to a replacement
19058         function if required (even via a macro).
19060 2011-12-30  Jim Meyering  <meyering@redhat.com>
19062         gitlog-to-changelog: remove a little duplication
19063         * build-aux/gitlog-to-changelog (main): Grep @lines once,
19064         rather than twice.
19066 2011-12-29  Pádraig Brady  <P@draigBrady.com>
19068         canonicalize: add support for not resolving symlinks
19069         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
19070         indicate we don't want to follow symlinks.  Also
19071         provide CAN_MODE_MASK to aid setting these existing
19072         mutually exclusive values.
19073         * lib/canonicalize.c (canonicalize_filename_mode):
19074         Extract the flags from can_mode parameter, which
19075         are currently just used to select between stat()
19076         and lstat().  Also ensure that mutually exclusive
19077         values are flagged immediately as invalid.
19078         * tests/test-canonicalize.c: Verify symlinks are
19079         not followed, and that invalid flag combinations
19080         are diagnosed.
19082 2011-12-25  Jim Meyering  <meyering@redhat.com>
19084         gitlog-to-changelog: do not clump multi-paragraph entries
19085         Identical header lines (date,name,email+coauthors) are suppressed,
19086         thus putting all entries with those same characteristics under
19087         a single header.  However, when a log entry consists of two or
19088         more paragraphs, it may not be clear where it starts and ends.
19089         This change makes it so that such an entry is always separated
19090         from others by a header line, even when that header would
19091         otherwise be suppressed.
19092         * build-aux/gitlog-to-changelog: Implement the above.
19093         Inspired by a related request from Stefano Lattarini in
19094         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
19096 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
19098         announce-gen: fix `cmd' typo in diagnostic
19099         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
19100         diagnostic: a missing '$' meant that the command was not output.
19102 2011-12-23  Jim Meyering  <meyering@redhat.com>
19104         test-framework-sh: distribute init.sh
19105         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
19106         Otherwise, "make -C gnulib-tests check" (at least in grep) would
19107         fail due to the lack of init.sh.
19109         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
19110         * modules/atexit-tests: Rather than listing tests/init.sh,
19111         now that there's a module for it, simply depend on that new module.
19112         * modules/closein-tests: Likewise.
19113         * modules/exclude-tests: Likewise.
19114         * modules/getcwd-tests: Likewise.
19115         * modules/perror-tests: Likewise.
19116         * modules/pread-tests: Likewise.
19117         * modules/pwrite-tests: Likewise.
19118         * modules/vc-list-files-tests: Likewise.
19119         * modules/verify-tests: Likewise.
19120         * modules/xalloc-die-tests: Likewise.
19121         * modules/xstrtoimax-tests: Likewise.
19122         * modules/xstrtol-tests: Likewise.
19123         * modules/xstrtoll-tests: Likewise.
19124         * modules/xstrtoumax-tests: Likewise.
19125         * modules/yesno-tests: Likewise.
19127 2011-12-22  Jim Meyering  <meyering@redhat.com>
19129         test-framework-sh: add minimal tests of init.sh's compare function
19130         * modules/test-framework-sh-tests: New file.
19131         * tests/test-init.sh: New file.
19133         test-framework-sh: new module
19134         * modules/test-framework-sh: New file.
19135         * MODULES.html.sh (Support for maintaining and releasing projects):
19136         List it.
19138         init.sh: do not emit simulated diff output to stderr
19139         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
19141 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
19143         .gitignore: ignore gnulib.dvi and regex.info
19144         * doc/.gitignore:add gnulib.dvi and regex.info
19146 2011-12-22  Jim Meyering  <meyering@redhat.com>
19148         init.sh: correct previous change
19149         * tests/init.sh (compare): My previous change was wrong.
19150         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
19152         init.sh: avoid unwarranted test failure when using "set -e"
19153         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
19154         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
19155         a use like "compare exp out" would get evoke an unconditional failure.
19157 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
19159         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
19160         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
19161         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
19162         autoreconf that did not.
19163         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
19164         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
19166 2011-12-17  Jim Meyering  <meyering@redhat.com>
19168         bootstrap: remove some now-unneeded code
19169         This script arose back when gnulib-tool was young.
19170         Since then, it has seen improvements that render much of this
19171         script unnecessary.  In particular, it can now make symlinks
19172         to the files it uses.  Also, I no longer see as much value in
19173         marking files as read-only via comments.
19174         If you relied on the symlink-creation feature of the preceding
19175         version of this script, you can get most of that functionality
19176         by adding the --symlink option to the definition of
19177         gnulib_tool_option_extras in your bootstrap.conf file.
19178         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
19179         Run autopoint and libtoolize *before* gnulib-tool.
19180         After it, run an abbreviated autoreconf, rather than a loop around
19181         all tools.
19182         (slirp, bt_mark_as_generated): Remove functions.
19184 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
19186         ftoastr: fix typo
19187         * lib/ftoastr.h: Fix misspelling in comment.
19189 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
19191         * top/README-release: fix punctuation.
19193 2011-12-17  Jim Meyering  <meyering@redhat.com>
19195         bootstrap: correct the recent buildreq change
19196         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
19197         had no effect.
19198         * build-aux/bootstrap (buildreq): Bracket each search term with
19199         "*...*", so that the shell "case" statement works as intended.
19200         Add comments.
19202 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
19204         build: let bootstrap resort to wget when downloading .po files
19205         * build-aux/bootstrap (download_po_files): Fallback to wget when
19206         downloading the .po files via rsync fails.  This is necessary to
19207         bootstrap from behind a strict firewall.
19209 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
19211         stdint: don't assume C++11 when compiling with g++
19212         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
19213         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
19214         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
19215         work also in C++ before C++11, as that improperly inhibits
19216         generating a substitute stdint.h for that case.
19218 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
19220         alloca: protect comment from gnulib-tool
19221         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
19222         that gnulib-tool doesn't think it's a license, and munge it to
19223         say "GCC version 3".
19225 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
19227         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
19228         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
19229         $(abs_top_builddir) instead of $(top_builddir).
19231 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
19233         strftime-tests: also test nanoseconds
19234         * tests/test-strftime.c (T): Add a test of %N.
19236 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
19238         inttypes, stdint: add C++11 support
19239         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
19240         when including inttypes.h and stdint.h.  Support this change to
19241         the standard.
19242         * doc/posix-headers/inttypes.texi (inttypes.h):
19243         * doc/posix-headers/stdint.texi (stdint.h): Document this.
19244         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
19245         Define if not defined already, for the benefit of pre-C++11 hosts.
19246         Define the standard format macros (e.g., PRId8) always.
19247         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
19248         Likewise, if __cpluspus.  Define the standard constant and limit
19249         macros (e.g., INT8_C, INT8_MAX) always.
19250         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
19251         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
19252         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
19253         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
19254         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
19255         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
19256         Likewise.
19258 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
19260         nonblocking tests: Fix test failure on Linux/PPC.
19261         Suggested by Prerna Saxena in
19262         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
19263         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
19264         Set to 1100000.
19266 2011-12-12  Jim Meyering  <meyering@redhat.com>
19268         argmatch: don't hard-code `' when listing valid option arguments
19269         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
19270         use the quote function to add quotes.  Use fputs rather than
19271         fprintf for the format string with no format directive.
19273 2011-12-07  Eric Blake  <eblake@redhat.com>
19275         bootstrap: detect tools required by gnulib-tool
19276         * build-aux/bootstrap (buildreq): Provide minimum implicit
19277         dependencies.
19278         * DEPENDENCIES: Mention patch as a prereq.
19280 2011-12-04  Bruno Haible  <bruno@clisp.org>
19282         sethostname: Port to Windows platforms.
19283         * lib/sethostname.c: Provide an alternate implementation for Windows
19284         platforms.
19285         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
19286         (main): Skip the test if sethostname() fails with EPERM. On Windows
19287         platforms, don't check the result of gethostname().
19289 2011-12-04  Bruno Haible  <bruno@clisp.org>
19290             Jim Meyering  <meyering@redhat.com>
19292         tests: Avoid spurious error message on platforms without mktemp program.
19293         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
19295 2011-12-04  Bruno Haible  <bruno@clisp.org>
19297         sethostname: Fix documentation.
19298         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
19299         "not fixed" section.
19301 2011-12-03  Bruno Haible  <bruno@clisp.org>
19303         gnulib-tool: Verify that the License field is present and non-empty.
19304         * gnulib-tool (func_get_license_raw): New function, extracted from
19305         func_get_license.
19306         (func_get_license): Use it. Warn if the module is not a test module and
19307         has no license.
19308         Suggested by Jim Meyering.
19310 2011-12-03  Bruno Haible  <bruno@clisp.org>
19312         sethostname tests: Fix link error on mingw.
19313         * tests/test-sethostname1.c: New file, extracted from
19314         tests/test-sethostname.c.
19315         * tests/test-sethostname2.c: New file, extracted from
19316         tests/test-sethostname.c.
19317         * tests/test-sethostname.c: Remove file.
19318         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
19319         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
19320         (Depends-on): Add gethostname.
19321         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
19322         Link the latter with $(GETHOSTNAME_LIB).
19324         sethostname tests: Fix compilation error on mingw.
19325         * tests/test-sethostname.c: Don't include <sys/types.h>.
19326         (geteuid): Use a dummy value without uid_t.
19327         * modules/sethostname-tests (Depends-on): Remove sys_types.
19329         sethostname tests: Avoid a gcc warning.
19330         * tests/test-sethostname.c (main): Remove an unused variable.
19332         Tweak last commit.
19333         * modules/sethostname-tests (Files): Sort by decreasing importance.
19334         (configure.ac): Check for geteuid.
19335         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
19336         the test when there's nothing to test. Drop an unnecessary cast.
19337         Improve an error message. Verify that the final sethostname() call
19338         succeeds.
19340 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
19342         Add a test suite for the sethostname module.
19343         * modules/sethostname-tests: New file.  A test program
19344         for the sethostname module.
19345         * tests/test-sethostname.c: Likewise.
19347 2011-12-03  Bruno Haible  <bruno@clisp.org>
19349         Tweak last commit.
19350         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
19351         Fix preprocessor directives indentation. Fix typos.
19352         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
19353         * modules/unistd (Makefile): Likewise.
19355 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
19357         Integrate the sethostname module into unistd.
19358         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
19359         into the unistd.h header.
19360         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
19361         preprocessor directives.
19362         * modules/unistd: Setup the Makefile substitutions of the
19363         SETHOSTNAME preprocessor directives.
19365 2011-12-03  Bruno Haible  <bruno@clisp.org>
19367         Tweak last commit.
19368         * lib/sethostname.c: Don't include <string.h>.
19369         (sethostname): No need to copy the argument string to the stack. Don't
19370         call clearerr. Preserve errno when fprintf failed.
19371         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
19372         Don't invoke AC_REPLACE_FUNCS.
19373         * modules/sethostname (Link): Remove empty section.
19374         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
19375         failure problem.
19377 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
19379         New module 'sethostname'.
19380         * lib/sethostname.c (sethostname): New file.  Provide sethostname
19381         for systems that lack it.
19382         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
19383         sethostname declaration and function.
19384         * modules/sethostname: New file.  Define the sethostname module.
19386 2011-12-03  Bruno Haible  <bruno@clisp.org>
19388         Tweak last commit.
19389         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
19391 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
19393         Split the HOST_NAME_MAX detection into a separate m4 macro.
19394         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
19395         macro so it can be used by the pending sethostname module.
19397 2011-12-03  Bruno Haible  <bruno@clisp.org>
19399         Fix module descriptions syntax.
19400         * modules/argv-iter (License): Fix syntax.
19401         * modules/di-set (License): Likewise.
19402         * modules/ino-map (License): Likewise.
19403         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
19405 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
19407         stdalign: port to Clang 3.0
19408         Problem reported by Simon Josefsson in
19409         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
19410         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
19411         which has <stdalign.h> but which does not define alignof.
19412         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
19414 2011-12-01  Eric Blake  <eblake@redhat.com>
19416         mktempd: silence dd usage
19417         * build-aux/mktempd (rand_bytes): Silence dd.
19419 2011-11-30  Simon Josefsson  <simon@josefsson.org>
19421         manywarnings: Don't mention gcc version in docstring.
19422         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
19423         Jim Meyering <meyering@redhat.com>.
19425 2011-11-30  Jim Meyering  <meyering@redhat.com>
19427         hash: mark a few floating point constants with "f" suffix
19428         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
19429         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
19430         floating point constants with "f", since they're destined to be
19431         saved/used as "float"s.
19433 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
19435         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
19436         * tests/test-float.c (test_long_double): Correct and re-enable the
19437         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
19439 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
19441         Avoid subtracting two pointers that don't point into the same block.
19442         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
19443         only pointers into the same memory block are subtracted. We cannot
19444         assume that sizeof (ptrdiff_t) == sizeof (void *).
19446 2011-11-29  Eric Blake  <eblake@redhat.com>
19448         maint.mk: add syntax check for use of compare from init.sh
19449         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
19450         moved here from coreutils.
19452         manywarnings: drop -Wunsuffixed-float-constants
19453         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
19454         '1.0D', which is the only way to silence this warning for 'double'.
19456 2011-11-29  Jim Meyering  <meyering@redhat.com>
19458         hash: mark compute_bucket_size with the pure attribute
19459         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
19461         quotearg, propername: correct pragma guard expression
19462         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
19463         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
19465 2011-11-28  Jim Meyering  <meyering@redhat.com>
19467         propername: do not mark proper_name with the const attribute
19468         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
19469         since it examines data pointed to by its parameter.
19470         * lib/propername.c (proper_name): Instead, add a pragma to suppress
19471         the suggestion from -Wsuggest-attribute=const.
19473         propername: mark one more function as const
19474         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
19476 2011-11-27  Jim Meyering  <meyering@redhat.com>
19478         mark functions with const and pure attributes
19480         Mark functions per suggestions from gcc-4.6 when using these options:
19481         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
19482         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
19483         Follow these guidelines: when possible, apply the attribute to
19484         an extern declaration, not to its definition.  Apply it to the
19485         definition only when the definition is static.
19486         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
19487         * lib/argv-iter.h (argv_iter_n_args): Likewise.
19488         * lib/base64.h (isbase64): Likewise.
19489         * lib/basename-lgpl.c (last_component, base_len): Likewise.
19490         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
19491         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
19492         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
19493         (c_tolower, c_toupper): Likewise.
19494         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
19495         * lib/chdir-long.c (find_non_slash): Likewise.
19496         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
19497         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
19498         * lib/file-type.h (file_type): Likewise.
19499         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
19500         * lib/filevercmp.c (verrevcmp): Likewise.
19501         * lib/freadahead.h (freadahead): Likewise.
19502         * lib/fts.c (fts_maxarglen): Likewise.
19503         * lib/hash-pjw.h (hash_pjw): Likewise.
19504         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
19505         * lib/hash.c (is_prime, next_prime): Likewise.
19506         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
19507         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
19508         (hash_table_ok, hash_get_first, hash_string): Likewise.
19509         (compute_bucket_size): Likewise.
19510         * lib/i-ring.h (i_ring_empty): Likewise.
19511         * lib/isnan.c (isnanl): Likewise.
19512         * lib/math.h (isnanl, rpl_isnanl): Likewise.
19513         * lib/memcasecmp.h (memcasecmp): Likewise.
19514         * lib/memchr2.h (memchr2): Likewise.
19515         * lib/memcmp2.h (memcmp2): Likewise.
19516         * lib/parse-datetime.y (lookup_zone): Likewise.
19517         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
19518         [!WINDOWS_SOCKETS]: Likewise.
19519         * lib/strnlen1.h (strnlen1): Likewise.
19520         * lib/uniwidth.in.h (uc_width): Likewise.
19521         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
19522         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
19523         (quoting_options_from_style): Add a comment.
19524         * lib/propername.h (proper_name): Add a comment.
19526 2011-11-27  Bruno Haible  <bruno@clisp.org>
19528         Remove unused macros from !_LIBC code in glibc-borrowed files.
19529         * lib/fnmatch.c (STRCOLL): Remove macro.
19530         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
19531         * lib/glob.c (__stat, __readdir64): Remove macros.
19532         * lib/tempname.c (__open64, __xstat64): Remove macros.
19533         Suggested by Paul Eggert.
19535 2011-11-27  Bruno Haible  <bruno@clisp.org>
19537         getcwd: Fix link error on MSVC 9.
19538         * modules/getcwd (Depends-on): Add readdir, rewinddir.
19540 2011-11-27  Bruno Haible  <bruno@clisp.org>
19542         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
19543         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
19544         HAVE_OPENDIR is 0.
19545         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
19546         HAVE_CLOSEDIR is 0.
19547         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
19548         is 0.
19549         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
19551 2011-11-27  Bruno Haible  <bruno@clisp.org>
19553         getcwd: Fix bug from 2011-08-17.
19554         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
19555         platforms that need it.
19556         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
19557         code of 4 to be a failure, not a success. This ensures that
19558         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
19560 2011-11-27  Bruno Haible  <bruno@clisp.org>
19562         binary-io tests: Avoid test failure on mingw when libtool is used.
19563         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
19564         Don't verify the size of t-bin-out1.tmp here.
19565         * tests/test-binary-io.sh: Verify it here.
19566         Reported by Simon Josefsson.
19568 2011-11-26  Bruno Haible  <bruno@clisp.org>
19570         Fix conflict between two instantiations of module 'unistd'.
19571         * gnulib-tool (func_emit_autoconf_snippet): Substitute
19572         ${include_guard_prefix} also in the autoconf snippet.
19573         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
19574         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
19575         GNULIB_UNISTD_H_GETOPT.
19576         * modules/getopt-posix (configure.ac): Set the
19577         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
19578         * modules/getopt-gnu (configure.ac): Likewise.
19579         * modules/unistd (Makefile.am): Change the substitution value of
19580         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
19581         Reported by Simon Josefsson.
19583 2011-11-25  Bruno Haible  <bruno@clisp.org>
19585         pagealign_alloc: Doc and comments.
19586         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
19587         module.
19588         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
19590 2011-11-25  Jim Meyering  <meyering@redhat.com>
19592         test-update-copyright.sh: avoid false-positive failure
19593         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
19594         around false positive failure on Cygwin/Windows.  The latter was
19595         matching erroneously-created files with names like
19596         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
19598 2011-11-25  Simon Josefsson  <simon@josefsson.org>
19600         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
19601         * m4/valgrind-tests.m4: Check that the parameters that will be
19602         used works, not just a subset of them.  Reported by Bruno Haible
19603         <bruno@clisp.org>.
19605 2011-11-24  Jim Meyering  <meyering@redhat.com>
19607         test-stdalign.c: comment out long double tests
19608         * tests/test-stdalign.c: Don't try to reduce alignment of long double
19609         variables.  That provokes errors like this from gcc-4.7.0 20111124:
19610         error: '_Alignas' specifiers cannot reduce alignment of \
19611         'static_longdouble_alignas'.
19613 2011-11-22  Jim Meyering  <meyering@redhat.com>
19615         init.sh: make "compare /dev/null FILE" output more readable
19616         * tests/init.sh (compare_): Document the preferred order of arguments.
19617         (emit_diff_u_header_): New function.
19618         (compare_dev_null_): Emit a simulated diff, rather than just the
19619         contents of the unexpected file.  Suggestion from Bruno Haible.
19621 2011-11-21  Jim Meyering  <meyering@redhat.com>
19622             Eric Blake  <eblake@redhat.com>
19624         init.sh: work around OSF/1 5.1's mishandling of /dev/null
19625         * tests/init.sh: Make our compare function slightly more portable.
19626         Reported by Bruno Haible in
19627         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
19629 2011-11-21  Simon Josefsson  <simon@josefsson.org>
19631         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
19632         before using it, in code that ends up in config.h.
19634 2011-11-20  Bruno Haible  <bruno@clisp.org>
19636         getcwd: Work around getcwd bug on AIX 5..7.
19637         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
19638         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
19639         Use a different value for gl_cv_func_getcwd_path_max. Move the
19640         definition of HAVE_PARTLY_WORKING_GETCWD from here...
19641         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
19642         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
19643         Define HAVE_MINIMALLY_WORKING_GETCWD.
19644         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
19645         where it is not even minimally working, that is, on AIX.
19646         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
19647         m4/getcwd-path-max.m4.
19648         (main): Update exit code computation.
19649         * doc/posix-functions/getcwd.texi: Mention list of platforms where
19650         getcwd does not handle long file names.
19652 2011-11-20  Bruno Haible  <bruno@clisp.org>
19654         getcwd: Fix bug from 2009-09-10.
19655         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
19656         like "no".
19658 2011-11-20  Simon Josefsson  <simon@josefsson.org>
19660         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
19662 2011-11-20  Bruno Haible  <bruno@clisp.org>
19664         fma tests: Avoid shadowing local variables.
19665         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
19666         expected.
19668 2011-11-20  Bruno Haible  <bruno@clisp.org>
19670         copysignf tests: Fix.
19671         * tests/test-copysignf.c: Fix signature check.
19673 2011-11-20  Bruno Haible  <bruno@clisp.org>
19675         fma: Remove unused code.
19676         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
19677         unused macros.
19679 2011-11-20  Bruno Haible  <bruno@clisp.org>
19681         sethostname: Fix doc about AIX.
19682         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
19683         sethostname; it has it.
19685         sethostname: Mention more portability problems.
19686         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
19687         problem.
19688         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
19690 2011-11-19  Bruno Haible  <bruno@clisp.org>
19692         Depend on module fcntl-h when AT_FDCWD is used.
19693         * modules/utimens (Depends-on): Add fcntl-h.
19694         * modules/areadlinkat (Depends-on): Likewise.
19695         * modules/areadlinkat-with-size (Depends-on): Likewise.
19696         * modules/faccessat (Depends-on): Likewise.
19697         * modules/fchmodat (Depends-on): Likewise.
19698         * modules/fchownat (Depends-on): Likewise.
19699         * modules/getcwd (Depends-on): Likewise.
19700         * modules/mkdirat (Depends-on): Likewise.
19701         * modules/mkfifoat (Depends-on): Likewise.
19702         * modules/readlinkat (Depends-on): Likewise.
19703         * modules/symlinkat (Depends-on): Likewise.
19704         * modules/dup2-tests (Depends-on): Likewise.
19705         * modules/fdutimensat-tests (Depends-on): Likewise.
19706         * modules/futimens-tests (Depends-on): Likewise.
19708 2011-11-19  Bruno Haible  <bruno@clisp.org>
19710         euidaccess: Update a comment.
19711         * lib/euidaccess.c: Update comment about platforms with faccessat.
19713 2011-11-19  Bruno Haible  <bruno@clisp.org>
19715         openat: Fix file list.
19716         * modules/openat (Files): Remove lib/at-func.c.
19718 2011-11-19  Bruno Haible  <bruno@clisp.org>
19720         fstatat: Simplify.
19721         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
19722         gnulib should define rpl_fstatat, there is a
19723         "#define fstatat rpl_fstatat" in <sys/stat.h>.
19725 2011-11-19  Bruno Haible  <bruno@clisp.org>
19727         Ensure 'inline' can be used in tests/test-utimens-common.h.
19728         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
19729         * modules/futimens-tests (configure.ac): Likewise.
19730         * modules/utimens-tests (configure.ac): Likewise.
19731         * modules/utimensat-tests (configure.ac): Likewise.
19733 2011-11-19  Simon Josefsson  <simon@josefsson.org>
19735         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
19736         not hash_insert0.
19737         (hash_insert_if_absent): Doc fix.
19739 2011-11-19  Simon Josefsson  <simon@josefsson.org>
19741         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
19743 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
19745         test-getcwd: disambiguate exit status
19746         * tests/test-getcwd.c (test_long_name): Return 0..7.
19747         (main): Exit with an unambiguous exit status.  The old
19748         code yielded a mysterious mixture of two failure codes.
19750         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
19751         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
19752         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
19753         rpl_fstatat or fstatat.  This should fix the other problem
19754         reported by Kai Habel in
19755         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
19756         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
19757         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
19758         and I reproduced it on a Solaris 8 host we still have in production.
19760 2011-11-18  Jim Meyering  <meyering@redhat.com>
19762         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
19763         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
19764         Add a sentence to the comment.
19765         (hash_insert0): New function that simply calls hash_insert_if_absent.
19766         * lib/hash.h (hash_insert_if_absent): Declare it.
19767         (hash_insert0): Add deprecation attribute.
19768         (_GL_ATTRIBUTE_DEPRECATED): Define.
19769         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
19770         not hash_insert0.
19771         * NEWS: Mention it, even though it's not really an incompatible change.
19773 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
19775         openat: avoid compilation failure due to lack of <errno.h> inclusion
19776         * lib/openat.c: Include <errno.h>.
19778 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
19780         * modules/getcwd (Depends-on): Add fdopendir.
19781         This fixes one of the two problems reported by Kai Habel in
19782         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
19784         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
19785         stdalign problem reported by Ian Beckwith in
19786         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
19787         * modules/crypto/gc-arcfour (Depends-on):
19788         Depend conditionally on crypto/arcfour.
19789         * modules/crypto/gc-arctwo (Depends-on):
19790         Depend conditionally on crypto/arctwo.
19791         * modules/crypto/gc-des (Depends-on):
19792         Depend conditionally on crypto/des.
19793         * modules/crypto/gc-hmac-md5 (Depends-on):
19794         Depend conditionally on crypto/hmac-md5.
19795         * modules/crypto/gc-hmac-sha1 (Depends-on):
19796         Depend conditionally on crypto/hmac-sha1.
19797         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
19798         * modules/crypto/gc-md4 (Depends-on):
19799         Depend conditionally on crypto/md4.
19800         * modules/crypto/gc-md5 (Depends-on):
19801         Depend conditionally on crypto/md5.
19802         * modules/crypto/gc-rijndael (Depends-on):
19803         Depend conditionally on crypto/rijndael.
19804         * modules/crypto/gc-sha1 (Depends-on):
19805         Depend conditionally on crypto/sha1.
19806         * modules/crypto/gc-arcfour:
19807         * modules/crypto/gc-arctwo:
19808         * modules/crypto/gc-des:
19809         * modules/crypto/gc-hmac-md5:
19810         * modules/crypto/gc-hmac-sha1:
19811         * modules/crypto/gc-md2:
19812         * modules/crypto/gc-md4:
19813         * modules/crypto/gc-md5:
19814         * modules/crypto/gc-rijndael:
19815         * modules/crypto/gc-sha1:
19816         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
19817         now that the conditional dependencies do the work for us.
19819 2011-11-17  Jim Meyering  <meyering@redhat.com>
19821         tests: factor st_ctime-comparison out of two headers
19822         * tests/test-utimens-common.h (ctime_compare): Define.
19823         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
19824         * tests/test-lutimens.h (test_lutimens): Likewise.
19825         * tests/test-utimens.h (test_utimens): Likewise.
19827         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
19828         Invoke the test program via an init.sh-using wrapper.
19829         * tests/test-getcwd.sh: New file.
19830         * modules/getcwd-tests (Files): Add it.
19831         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
19833 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
19835         gitlog-to-changelog: support multi-author commits.
19836         The FSF cares about keeping track of all authors of patches to its
19837         projects, but Git doesn't provide obvious support for multi-author
19838         changesets. Consensus seems to be forming around the use of extra
19839         Signed-off-by inspired lines in the log message formatted as
19840         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
19841         multi-author commits between version control systems.
19842         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
19843         log message and output in standard ChangeLog multi-author format.
19844         Reported by Peter Rosin <peda@lysator.liu.se>
19846 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
19847             Bruno Haible  <bruno@clisp.org>
19849         Fix some modules' file list.
19850         * modules/fstatat (Files): Add m4/lstat.m4.
19851         * modules/openat (Files): Likewise.
19852         * modules/unlinkat (Files): Likewise.
19854 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
19856         maint.mk: fix tight-scope.mk generation in VPATH builds.
19857         * top/maint.mk (tight-scope.mk): Make sure to prefix file
19858         reference with $(srcdir) so that the file is found correctly even
19859         when running `make syntax-check' in a VPATH build.
19861 2011-11-13  Bruno Haible  <bruno@clisp.org>
19862             Jim Meyering  <meyering@redhat.com>
19864         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
19865         * tests/init.sh (compare): Remove "No differences encountered" or
19866         synonymous output from the 'diff' program.
19868 2011-11-13  Bruno Haible  <bruno@clisp.org>
19870         Makefile: Tweak indentation.
19871         * Makefile: Use tab as first character in every line that contains rule
19872         commands.
19874 2011-11-13  Bruno Haible  <bruno@clisp.org>
19876         Syntax check for copyright statements.
19877         * check-copyright: New file.
19878         * Makefile (sc_check_copyright): New rule.
19880 2011-11-13  Simon Josefsson  <simon@josefsson.org>
19882         * build-aux/git-version-gen: Add --prefix to configure the tag
19883         match string.
19885 2011-11-13  Simon Josefsson  <simon@josefsson.org>
19887         * build-aux/git-version-gen: Add --help and --version.
19889 2011-11-12  Jim Meyering  <meyering@redhat.com>
19891         revamp the other test-exclude?.sh scripts to use init.sh, too
19892         * tests/test-exclude1.sh: Use init.sh.
19893         * tests/test-exclude2.sh: Likewise.
19894         * tests/test-exclude3.sh: Likewise.
19895         * tests/test-exclude4.sh: Likewise.
19896         * tests/test-exclude5.sh: Likewise.
19897         * tests/test-exclude6.sh: Likewise.
19898         * tests/test-exclude7.sh: Likewise.
19899         * tests/test-exclude8.sh: Likewise.
19900         * modules/exclude-tests (Files): List init.sh.
19902         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
19903         These shell scripts ignored failure of the binary test-exclude,
19904         so making the latter return 77 didn't cause them to be skipped.
19905         * tests/test-exclude5.sh: Exit with test-exclude's error status
19906         when that program fails.  Revamp to use init.sh.
19907         * tests/test-exclude2.sh: Likewise.
19909         test-exclude: fix a typo
19910         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
19912 2011-11-11  Bruno Haible  <bruno@clisp.org>
19914         obstack: Fix compilation error on MSVC 9.
19915         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
19917 2011-11-11  Jim Meyering  <meyering@redhat.com>
19919         test-exclude: skip tests rather than failing on deficient systems
19920         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
19921         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
19922         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
19923         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
19925 2011-11-10  Bruno Haible  <bruno@clisp.org>
19927         ptsname_r test: Avoid gcc warning on glibc systems.
19928         * tests/test-ptsname_r.c (null_ptr): New function.
19929         (test_errors): Use it.
19931 2011-11-10  Bruno Haible  <bruno@clisp.org>
19933         ptsname_r: Avoid compilation error on OSF/1 5.1.
19934         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
19935         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
19936         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
19937         function is not declared or incompatibly declared.
19938         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
19939         * modules/ptsname_r (Depends-on, configure.ac): Update.
19940         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
19942 2011-11-10  Bruno Haible  <bruno@clisp.org>
19944         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
19945         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
19946         When cross-compiling, guess yes on all platforms except AIX.
19947         Reported by Ludovic Courtès <ludo@gnu.org>.
19949 2011-11-09  Bruno Haible  <bruno@clisp.org>
19951         ptsname_r tests: Fix bugs.
19952         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
19953         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
19955 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
19957         fstatat: work with cross-compilation
19958         Problem reported by Ludovic Courtès in
19959         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
19960         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
19961         "cross-compiling" and assume the bug is present.  Replace
19962         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
19963         an inverted sense, to be more conservative about our assumptions.
19964         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
19966 2011-11-09  Bruno Haible  <bruno@clisp.org>
19968         Improve MODULES.html output.
19969         * modules/mkfifoat (Description): Use the word "function".
19970         * modules/readlinkat (Description): Likewise.
19971         * modules/symlinkat (Description): Likewise.
19973 2011-11-09  Eric Blake  <eblake@redhat.com>
19975         ptsname_r-tests: new test module
19976         * modules/ptsname_r-tests: New module.
19977         * tests/test-ptsname_r.c: New file.
19979         ptsname_r: new module
19980         * modules/ptsname_r: New module.
19981         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
19982         * lib/ptsname.c (__ptsname_r): Split...
19983         * lib/ptsname_r.c: ...into new file.
19984         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
19985         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
19986         * modules/stdlib (Makefile.am): Substitute witnesses.
19987         * lib/stdlib.in.h (ptsname_r): Declare it.
19988         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
19989         * MODULES.html.sh (Misc): Likewise.
19990         * modules/ptsname (Depends-on): Alter dependency.
19991         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
19993 2011-11-09  Jim Meyering  <meyering@redhat.com>
19995         announce-gen: be more concise when there's only one URL+tarball
19996         * build-aux/announce-gen (get_tool_versions): When you distribute
19997         only one type of tarball, combine the first two "Here are..."
19998         sections and make the key-checking grammar independent of
19999         how many tarballs there are.
20001 2011-11-09  Eric Blake  <eblake@redhat.com>
20003         openpty: provide a stub on mingw
20004         * lib/pty.in.h (includes): Provide forward declarations.
20005         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
20007         raise: fix mingw handling of SIGPIPE
20008         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
20010 2011-11-08  Bruno Haible  <bruno@clisp.org>
20012         More conditional dependencies.
20013         * modules/faccessat (Depends-on): Add conditions.
20014         * modules/fchmodat (Depends-on): Likewise.
20015         * modules/fchownat (Depends-on): Likewise.
20016         * modules/fstatat (Depends-on): Likewise.
20017         * modules/mkfifoat (Depends-on): Likewise.
20018         * modules/readlinkat (Depends-on): Likewise.
20019         * modules/symlinkat (Depends-on): Likewise.
20020         * modules/unlinkat (Depends-on): Likewise.
20021         * modules/utimensat (Depends-on): Likewise.
20022         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
20023         * modules/linkat (Depends-on): Refine the conditions.
20024         * modules/renameat (Depends-on): Likewise.
20026 2011-11-08  Bruno Haible  <bruno@clisp.org>
20028         faccessat: Move AC_LIBOBJ invocation to module description.
20029         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
20030         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
20031         invocation from here...
20032         * modules/faccessat (configure.ac): ... to here. Invoke
20033         gl_PREREQ_FACCESSAT.
20035 2011-11-08  Bruno Haible  <bruno@clisp.org>
20037         faccessat: Simplify autoconf macro.
20038         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
20039         gl_FUNC_EUIDACCESS.
20041 2011-11-08  Bruno Haible  <bruno@clisp.org>
20043         renameat: Fix dependencies.
20044         * modules/renameat (Depends-on): Add stdbool.
20046 2011-11-08  Bruno Haible  <bruno@clisp.org>
20048         mkfifoat: Fix module description.
20049         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
20050         not gl_UNISTD_MODULE_INDICATOR.
20052 2011-11-08  Bruno Haible  <bruno@clisp.org>
20054         fstatat: Remove unused dependency.
20055         * modules/fstatat (Depends-on): Remove fstat.
20057 2011-11-08  Simon Josefsson  <simon@josefsson.org>
20059         GNUmakefile: behave when Makefile is missing.
20060         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
20062 2011-11-08  Bruno Haible  <bruno@clisp.org>
20064         openat: Conditionalize dependencies.
20065         * lib/openat.c: Reduce the scope of some #includes.
20066         * modules/openat (Depends-on): Add conditions.
20068 2011-11-07  Jim Meyering  <meyering@redhat.com>
20070         maint.mk: extract GPG key ID without using a temporary file
20071         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
20072         without using a temporary file.  Based on a suggestion from Werner Koch
20073         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
20075 2011-11-07  Eric Blake  <eblake@redhat.com>
20077         grantpt: fix typo
20078         * lib/stdlib.in.h (grantpt): Check correct function.
20080         maint.mk: silence new syntax check
20081         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
20083 2011-11-06  Bruno Haible  <bruno@clisp.org>
20085         Doc about floating-point and math API.
20086         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
20087         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
20089 2011-11-06  Bruno Haible  <bruno@clisp.org>
20091         stdalign tests: Skip the test when compiled by Sun C.
20092         * tests/test-stdalign.c (main): Skip the test on Sun C.
20094 2011-11-06  Bruno Haible  <bruno@clisp.org>
20096         ansi-c++-opt: Complete the 2011-06-05 change.
20097         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
20098         does not support namespaces, set the variable to "no", not to ":".
20100 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
20102         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
20104 2011-11-06  Bruno Haible  <bruno@clisp.org>
20106         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
20107         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
20108         (minus_zerol) [HP-UX]: New macro.
20109         (unary_minus) [HP-UX]: New function.
20110         (copysignl) [HP-UX]: Use unary_minus function.
20112 2011-11-06  Bruno Haible  <bruno@clisp.org>
20114         ldexp, ldexpf, ldexpl: Enhance tests.
20115         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
20116         and tests/test-ldexpl.c.
20117         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
20118         LDEXP, MIN_EXP, MAX_EXP): New macros.
20119         Include test-ldexp.h.
20120         (main): Just call test_function.
20121         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
20122         infinity.h, nan.h.
20123         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
20124         MAX_EXP): New macros.
20125         Include test-ldexp.h.
20126         (x, y): Remove variables.
20127         (main): Just call test_function.
20128         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
20129         infinity.h, nan.h.
20130         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
20131         MAX_EXP): New macros.
20132         Include test-ldexp.h.
20133         (x, y): Remove variables.
20134         (main): Just call test_function.
20135         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
20136         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
20137         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
20138         (Depends-on): Add isnand-nolibm, signbit, float.
20139         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
20140         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
20141         (Depends-on): Add isnanf-nolibm, signbit, float.
20143 2011-11-06  Bruno Haible  <bruno@clisp.org>
20145         math tests: Cosmetics.
20146         * tests/test-math-c++.cc: Reorder declarations.
20148 2011-11-05  Bruno Haible  <bruno@clisp.org>
20150         fma*: Simplify test.
20151         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
20152         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
20154         Tests for module 'fmal'.
20155         * modules/fmal-tests: New file.
20156         * tests/test-fmal1.c: New file.
20157         * tests/test-fmal2.c: New file.
20159         New module 'fmal'.
20160         * lib/math.in.h (fmal): New declaration.
20161         * lib/fmal.c: New file.
20162         * m4/fmal.m4: New file.
20163         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
20164         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
20165         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
20166         REPLACE_FMAL.
20167         * modules/fmal: New file.
20168         * doc/posix-functions/fmal.texi: Mention the new module and the various
20169         bugs.
20171         Tests for module 'fmaf'.
20172         * modules/fmaf-tests: New file.
20173         * tests/test-fmaf1.c: New file.
20174         * tests/test-fmaf2.c: New file.
20176         New module 'fmaf'.
20177         * lib/math.in.h (fmaf): New declaration.
20178         * lib/fmaf.c: New file.
20179         * m4/fmaf.m4: New file.
20180         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
20181         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
20182         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
20183         REPLACE_FMAF.
20184         * modules/fmaf: New file.
20185         * doc/posix-functions/fmaf.texi: Mention the new module and the various
20186         bugs.
20188         Tests for module 'fma'.
20189         * modules/fma-tests: New file.
20190         * tests/test-fma1.c: New file.
20191         * tests/test-fma1.h: New file.
20192         * tests/test-fma2.c: New file.
20193         * tests/test-fma2.h: New file.
20195         New module 'fma'.
20196         * lib/math.in.h (fma): New declaration.
20197         * lib/fma.c: New file.
20198         * m4/fma.m4: New file.
20199         * m4/fegetround.m4: New file.
20200         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
20201         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
20202         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
20203         REPLACE_FMA.
20204         * modules/fma: New file.
20205         * doc/posix-functions/fma.texi: Mention the new module and the various
20206         bugs.
20208         Extend gl_MATHFUNC.
20209         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
20210         Support 'void' as argument type.
20211         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
20213 2011-11-05  Jim Meyering  <meyering@redhat.com>
20215         maint.mk: also prohibit inclusion of dirent.h without use
20216         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
20218 2011-11-05  Bruno Haible  <bruno@clisp.org>
20220         ldexpl tests: Avoid test failure on MSVC 9.
20221         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
20222         value. Needed in order to enforce the conversion from a value greater
20223         than LDBL_MAX to Infinity.
20225 2011-11-05  Bruno Haible  <bruno@clisp.org>
20227         New modules 'at-internal', 'openat-h', split off from module 'openat'.
20228         * modules/at-internal: New file, extracted from modules/openat.
20229         * modules/openat-h: New file.
20230         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
20231         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
20232         * modules/openat (Description): Add reference to POSIX function.
20233         (Files): Remove lib/openat.h, lib/openat-proc.c.
20234         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
20235         intprops, unistd.
20236         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
20237         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
20238         gl_FCNTL_MODULE_INDICATOR.
20239         (Include): Remove unistd.h, openat.h.
20240         * modules/areadlinkat (Files): Add lib/at-func.c.
20241         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
20242         openat-die, openat-h, save-cwd.
20243         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
20244         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
20245         openat-die, openat-h, save-cwd, unistd.
20246         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
20247         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
20248         openat-h, save-cwd. Remove fcntl-h, openat.
20249         * modules/fchmodat (Files): Remove lib/openat.h.
20250         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
20251         openat, stdbool, unistd.
20252         * modules/fchownat (Files): Remove lib/openat.h.
20253         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
20254         openat, stdbool, sys_stat.
20255         * modules/fdopendir (Files): Remove lib/openat-priv.h,
20256         lib/openat-proc.c.
20257         (Depends-on): Add at-internal.
20258         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
20259         * modules/fstatat (Files): Remove lib/openat.h.
20260         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
20261         stdbool, unistd.
20262         * modules/fts (Depends-on): Add openat-h.
20263         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
20264         openat.
20265         * modules/mkdirat (Files): Remove lib/openat.h.
20266         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
20267         openat, stdbool, sys_stat.
20268         * modules/mkfifoat (Files): Add lib/at-func.c.
20269         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
20270         openat-h, save-cwd. Remove fcntl-h, openat.
20271         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
20272         * modules/readlinkat (Files): Add lib/at-func.c.
20273         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
20274         openat-h, save-cwd. Remove fcntl-h, openat.
20275         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
20276         openat.
20277         * modules/selinux-at (Files): Add lib/at-func.c.
20278         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
20279         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
20280         * modules/symlinkat (Files): Add lib/at-func.c.
20281         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
20282         openat-h, save-cwd. Remove fcntl-h, openat.
20283         * modules/unlinkat (Files): Remove lib/openat.h.
20284         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
20285         stdbool.
20286         * modules/utimensat (Files): Add lib/at-func.c.
20287         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
20288         openat-die, openat-h, save-cwd.
20289         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
20290         * modules/fdutimensat-tests (Depends-on): Add openat.
20291         * modules/fstatat-tests (Depends-on): Add openat-h.
20292         * modules/readlinkat-tests (Depends-on): Add openat.
20293         * modules/symlinkat-tests (Depends-on): Add openat.
20295 2011-11-05  Bruno Haible  <bruno@clisp.org>
20297         openat: Include <stdbool.h>.
20298         * lib/openat.c: Include <stdbool.h>.
20300 2011-11-04  Bruno Haible  <bruno@clisp.org>
20302         fchownat, renameat, unlinkat: Fix dependencies.
20303         * modules/fchownat (Depends-on): Add fstatat.
20304         * modules/renameat (Depends-on): Likewise.
20305         * modules/unlinkat (Depends-on): Likewise.
20307 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
20309         openat: remove direct dependency on dirent
20310         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
20311         and hasn't been needed ever since fdopendir was split into its own
20312         module on 2009-08-31.
20313         * modules/openat (Depends-on): Remove dirent.
20315 2011-11-04  Bruno Haible  <bruno@clisp.org>
20317         renameat: Optimize code size.
20318         * modules/renameat (configure.ac): Don't compile at-func2.c if
20319         REPLACE_RENAMEAT is 1.
20321 2011-11-04  Bruno Haible  <bruno@clisp.org>
20323         openat tests: Fix file list.
20324         * modules/openat-tests (Files): Add tests/test-open.h.
20326 2011-11-04  Bruno Haible  <bruno@clisp.org>
20328         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
20329         * modules/fchmodat (Depends-on): Add openat-die.
20330         * modules/fchownat (Depends-on): Likewise.
20331         * modules/linkat (Depends-on): Likewise.
20332         * modules/renameat (Depends-on): Likewise.
20333         * modules/openat (Depends-on): Add dirent.
20335 2011-11-04  Jim Meyering  <meyering@redhat.com>
20337         at-func*.c: fix comments
20338         * lib/at-func2.c: Correct/improve first-line comment.
20339         * lib/at-func.c: Correct grammar in first-line comment.
20341 2011-11-04  Bruno Haible  <bruno@clisp.org>
20343         New module 'mkdirat', split off from module 'openat'.
20344         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
20345         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
20346         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
20347         * modules/mkdirat: New file, extracted from modules/openat.
20348         * modules/openat (Files): Remove lib/mkdirat.c.
20349         (Depends-on): Remove mkdir.
20350         (configure.ac): Remove AC_LIBOBJ of mkdirat.
20351         (Include): Remove <sys/stat.h>.
20352         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
20353         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
20354         tests/test-mkdir.h.
20355         (Depends-on): Remove ignore-value.
20356         (Makefile.am): Remove rules for test-mkdirat.
20357         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
20358         of module 'openat'.
20359         * NEWS: Mention the change.
20361 2011-11-04  Bruno Haible  <bruno@clisp.org>
20363         closedir: Avoid warning on mingw.
20364         * lib/closedir.c: Include <unistd.h>.
20366 2011-11-04  Bruno Haible  <bruno@clisp.org>
20368         New module 'fstatat', split off from module 'openat'.
20369         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
20370         defined.
20371         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
20372         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
20373         gl_FUNC_FSTATAT.
20374         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
20375         * modules/fstatat: New file, extracted from modules/openat.
20376         * modules/openat (Files): Remove lib/fstatat.c.
20377         (Depends-on): Remove lstat.
20378         (configure.ac): Remove AC_LIBOBJ of fstatat.
20379         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
20380         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
20381         tests/test-lstat.h, tests/test-stat.h.
20382         (Depends-on): Remove getcwd-lgpl.
20383         (Makefile.am): Remove rules for test-fstatat.
20384         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
20385         of module 'openat'.
20386         * NEWS: Mention the change.
20387         * modules/getcwd (Depends-on): Add fstatat.
20388         * modules/linkat (Depends-on): Likewise.
20389         * modules/mkfifoat-tests (Depends-on): Likewise.
20390         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
20392 2011-11-03  Bruno Haible  <bruno@clisp.org>
20394         New module 'unlinkat', split off from module 'openat'.
20395         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
20396         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
20397         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
20398         * modules/unlinkat: New file, extracted from modules/openat. Correct
20399         the dependency conditions.
20400         * modules/openat (Files): Remove lib/unlinkat.c.
20401         (Depends-on): Remove rmdir, unlink.
20402         (configure.ac): Remove AC_LIBOBJ of unlinkat.
20403         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
20404         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
20405         tests/test-rmdir.h, tests/test-unlink.h.
20406         (Depends-on): Remove unlinkdir.
20407         (Makefile.am): Remove rules for test-unlinkat.
20408         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
20409         of module 'openat'.
20410         * NEWS: Mention the change.
20411         * modules/linkat-tests (Depends-on): Add unlinkat.
20412         * modules/mkfifoat-tests (Depends-on): Likewise.
20413         * modules/readlinkat-tests (Depends-on): Likewise.
20415 2011-11-02  Bruno Haible  <bruno@clisp.org>
20417         New module 'fchmodat', split off from module 'openat'.
20418         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
20419         defined.
20420         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
20421         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
20422         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
20423         * modules/fchmodat: New file, extracted from modules/openat.
20424         * modules/openat (Files): Remove lib/fchmodat.c.
20425         (configure.ac): Remove AC_LIBOBJ of fchmodat.
20426         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
20427         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
20428         (Makefile.am): Remove rules for test-fchmodat.
20429         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
20430         of module 'openat'.
20431         * NEWS: Mention the change.
20433 2011-11-02  Jim Meyering  <meyering@redhat.com>
20435         putenv: indent #definition of "environ" to placate cppi
20436         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
20438         gitlog-to-changelog: provide a ChangeLog-repair mechanism
20439         Git logs are often treated as immutable, because editing them
20440         changes the SHA1 checksums of all descendants.  Thus, errors in
20441         git logs tend to stay there forever.  However, when we generate
20442         a ChangeLog file -- typically for distribution -- from that git log,
20443         we can actually make corrections in the generated file.  The key
20444         lies in recording in machine-readable/applicable form the desired
20445         corrections.  See --help for description and an example.
20446         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
20447         (usage): Describe it; alphabetize option descriptions.
20448         (main): Honor the new option, carefully.
20450 2011-11-01  Jim Meyering  <meyering@redhat.com>
20452         gitlog-to-changelog: avoid an infloop
20453         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
20454         that ends up being empty.
20456 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
20458         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
20459         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
20460         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
20461         contains (possibly-quoted) backslashes.  This should avoid
20462         all-too-common shell bugs if COMPLICATED contains backslashes in
20463         the "wrong" places.  Reported by David Evans in
20464         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
20465         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
20466         because we want ASCII ranges.  Is there some reason we don't use
20467         the C locale everywhere in this script?
20468         (func_module, top level): Avoid unwanted pathname expansion when
20469         $repo_url_prefix or $repo_url_suffix_repl contain shell
20470         metacharacters like '?' and '*'.
20472 2011-11-01  Bruno Haible  <bruno@clisp.org>
20474         fchownat: Improve description.
20475         * modules/fchownat (Description): Add link to function.
20477 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
20479         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
20480         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
20481         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
20482         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
20484 2011-11-01  Bruno Haible  <bruno@clisp.org>
20486         alignof: Avoid collision with stdalign module.
20487         * lib/alignof.h (alignof): Remove macro.
20488         * NEWS: Mention the change.
20489         Reported by Paul Eggert.
20491 2011-11-01  Bruno Haible  <bruno@clisp.org>
20493         New module 'fchownat', split off from module 'openat'.
20494         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
20495         defined.
20496         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
20497         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
20498         invoke gl_FUNC_FCHOWNAT.
20499         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
20500         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
20501         * modules/fchownat: New file, extracted from modules/openat.
20502         * modules/openat (Files): Remove lib/fchownat.c.
20503         (Depends-on): Remove lchown.
20504         (configure.ac): Remove AC_LIBOBJ of fchownat.
20505         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
20506         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
20507         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
20508         (Depends-on): Remove mgetgroups, usleep, stat-time.
20509         (configure.ac): Remove test for getegid.
20510         (Makefile.am): Remove rules for test-fchownat.
20511         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
20512         of module 'openat'.
20513         * NEWS: Mention the change.
20515 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
20517         stdalign: port better to MSVC and to Sun C 5.11
20518         This fixes some of the problems reported by Bruno Haible in
20519         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
20520         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
20521         shortcomings of MSVC and of Sun C 5.11.
20522         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
20523         around __declspec arg.
20524         * modules/stdalign-tests (Files): Add tests/macros.h.
20525         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
20526         Include macros.h, for ASSERT.
20527         (DECLARE_ALIGNED): Remove.
20528         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
20529         to catch bug), and to 1 if not (simplifies the rest of the code).
20530         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
20531         (CHECK_AUTO): Remove.
20532         (CHECK_ALIGNED): Check only the alignment of the static vars,
20533         since auto var alignment isn't supported by Sun C 5.11.
20534         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
20535         ASSERT failures are easier to diagnose.
20537 2011-10-31  Bruno Haible  <bruno@clisp.org>
20539         doc about some IRIX 5.3 problems.
20540         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
20541         on IRIX 5.3.
20542         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
20543         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
20544         5.3.
20545         * doc/posix-functions/grantpt.texi: Likewise.
20546         * doc/posix-functions/unlockpt.texi: Likewise.
20547         * doc/posix-functions/lgamma.texi: Likewise.
20548         * doc/posix-functions/nextafter.texi: Likewise.
20549         * doc/posix-functions/remainder.texi: Likewise.
20550         * doc/posix-functions/select.texi: Mention misplaced declaration on
20551         IRIX 5.3.
20552         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20554 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
20556         gitlog-to-changelog: fix git-log invocation.
20557         git-log mishandles date strings before 1970-01-01 UTC, and there is
20558         no use to specify --since=1970-01-01 by default anyway.
20559         * build-aux/gitlog-to-changelog: By default, when no --since option
20560         was given, do not specify explicit --since option to git-log.
20562 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
20564         gitlog-to-changelog: new option --append-dot.
20565         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
20566         first non-blank line of each commit message terminated with a dot.
20568 2011-10-30  Bruno Haible  <bruno@clisp.org>
20570         ffsl, ffsll: Avoid compilation error due to 'restrict'.
20571         * lib/ffsl.h: Include <config.h>.
20572         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
20574 2011-10-30  Jim Meyering  <meyering@redhat.com>
20576         GNUmakefile: reenable "make syntax-check" for most projects
20577         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
20578         build-aux variable", "syntax-check" would do nothing but succeed with
20579         the "No version control files detected..." diagnostic (unless you
20580         happened to override _build-aux via cfg.mk).
20581         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
20582         to precede inclusion of maint.mk.  Otherwise, these variables would
20583         be used undefined in any project that does not override the default.
20585 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
20587         gitlog-to-changelog: treat a message with only blank lines as empty.
20588         * build-aux/gitlog-to-changelog: Move the code that removes leading and
20589         trailing blank lines before the code that issues a warning about an
20590         empty commit message.
20592 2011-10-30  Jim Meyering  <meyering@redhat.com>
20594         test-parse-datetime.c: avoid new DST-related false positive test failure
20595         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
20596         based on the time/date we'll convert, not the current time.
20597         Otherwise, the moment we cross a DST boundary like today's in
20598         Europe, (CEST to CET), that offset ends up being one hour off.
20600 2011-10-27  Bruno Haible  <bruno@clisp.org>
20602         fstat: Tweak documentation.
20603         * modules/fstat (Description): More precise description.
20605 2011-10-27  Bruno Haible  <bruno@clisp.org>
20607         Update documentation regarding 'largefile' module.
20608         * doc/posix-functions/fstat.texi: Tweak wording.
20609         * doc/posix-functions/opendir.texi: Mention that the module fixes the
20610         problems with huge directories and/or small ino_t types.
20611         * doc/posix-functions/readdir.texi: Likewise.
20612         * doc/posix-functions/rewinddir.texi: Likewise.
20614 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
20616         maint.mk: don't maintain a second build-aux variable.
20617         * maint.mk (build_aux): Removed.  The maintainer-makefile module
20618         depends on GNUmakefile, which already maintains a cfg.mk
20619         overridable $(_build-aux) for projects with a non-standard
20620         build-aux directory location, although without the $(srcdir)
20621         prefix.  Use that variable consistently instead of introducing a
20622         second one.  Adjust all call sites.
20624 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
20626         Add stdalign module and use it in other modules.
20627         This is based on a previous proposal by Bruno Haible
20628         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
20630         stdalign: new module
20631         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
20632         * modules/stdalign: New files.
20633         * MODULES.html.sh (c1x_core_properties): Add stdalign.
20634         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
20636         stdalign-tests: new module
20637         * modules/stdalign-tests, tests/test-stdalign.c: New files.
20639         argp: use stdalign
20640         * lib/argp-parse.c: Include <stdalign.h>.
20641         (alignof): Remove.
20642         * modules/argp (Depends-on): Add stdalign.
20644         crypto libraries: use stdalign
20645         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
20646         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
20647         Do not include <stdlib.h> twice, in md4.c.
20648         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
20649         because we are accessing a pointer's bit-pattern, not a size.
20650         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
20651         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
20652         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
20653         * modules/crypto/sha512: Likewise.
20655         sys_socket: use stdalign, not alignof
20656         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
20657         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
20659 2011-10-27  Bruno Haible  <bruno@clisp.org>
20661         raise test: Avoid a test failure on Linux/MIPS.
20662         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
20663         because 99 is a valid signal on Linux/MIPS.
20665 2011-10-27  Bruno Haible  <bruno@clisp.org>
20667         nonblocking tests: Fix test failure on Linux/MIPS.
20668         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
20669         Set to 270000.
20671 2011-10-27  Bruno Haible  <bruno@clisp.org>
20673         utimensat: Work around problem on Linux/hppa.
20674         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
20675         values.
20676         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
20678 2011-10-25  Jim Meyering  <meyering@redhat.com>
20680         maint.mk: fix a bug in sc_prohibit_stddef_without_use
20681         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
20682         after symbols like NULL, size_t, etc.
20683         Reported by Alfred M. Szmidt.
20685         maint.mk: exempt ENODATA from a syntax-check rule
20686         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
20687         from the sc_prohibit_always-defined_macros syntax-check rule.
20688         Add a comment.  See this for more details:
20689         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
20691 2011-10-23  Jim Meyering  <meyering@redhat.com>
20693         fts: close parent dir FD before returning from post-traversal fts_read
20694         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
20695         unlink A, even though an FD open on A remained.  This is suboptimal
20696         (holding a file descriptor open longer than needed), but otherwise not
20697         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
20698         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
20699         that represents a real problem: it causes the removal of A to fail
20700         with e.g., "rm: cannot remove `A': Device or resource busy"
20702         fts visits each directory twice and keeps a cache (fts_fd_ring) of
20703         directory file descriptors.  After completing the final, FTS_DP,
20704         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
20705         cache, but then proceeded to add a new FD to it via the subsequent
20706         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
20707         final file descriptor would be closed only via fts_close's call to
20708         fd_ring_clear.  Now, it is usually closed earlier, via the final
20709         FTS_DP-returning fts_read call.
20710         * lib/fts.c (restore_initial_cwd): New function, converted from
20711         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
20712         Update callers.
20713         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
20714         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
20716 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
20717             Bruno Haible  <bruno@clisp.org>
20718             Jim Meyering  <jim@meyering.net>
20720         readme-release: improve safety of release prep instructions.
20721         * README-release: Don't git pull all branches when only master
20722         is needed for the release process.
20723         Run make maintainer-clean before changing trees and merging.
20724         Don't try to run ./configure right after git pull in case files
20725         that influence the bootstrap process have changed, move the
20726         ./configure step to after running ./bootstrap.
20727         Don't bootstrap "one last time"... it's the first time!
20729 2011-10-22  Bruno Haible  <bruno@clisp.org>
20731         errno, strerror-override: Support for MSVC 10.
20732         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
20733         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
20734         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
20735         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
20736         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
20737         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
20738         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
20739         Assign values compatible with MSVC 10.
20740         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
20741         New macros.
20742         (GNULIB_defined_EWINSOCK): New macro.
20743         * lib/strerror-override.c (strerror_override): Update accordingly.
20744         * lib/strerror-override.h: Likewise.
20745         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
20746         longer equal to the corresponding errno value.
20747         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
20749 2011-10-22  Bruno Haible  <bruno@clisp.org>
20751         perror: Recognize when test program crashes.
20752         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
20753         strerror, set gl_cv_func_perror_works to no.
20754         Reported by Daniel Richard G. <skunk@iskunk.org>.
20756         perror: Fix indentation.
20757         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
20759 2011-10-22  Bruno Haible  <bruno@clisp.org>
20761         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
20762         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
20763         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
20764         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
20765         functions, not as a macro.
20766         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
20767         macros.
20768         (isfinite, isinf, isnan, signbit): Check overloaded functions and
20769         absence of macro.
20770         Suggested by Eric Blake.
20771         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
20773 2011-10-21  Bruno Haible  <bruno@clisp.org>
20775         relocatable-prog-wrapper: Don't leave object files behind.
20776         * build-aux/install-reloc: Re-synchronize list of .o files to be
20777         removed with list of compilation units.
20779 2011-10-20  Bruno Haible  <bruno@clisp.org>
20781         openpty, posix_openpt: Remove code duplication.
20782         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
20783         * lib/openpty.c: Include <stdlib.h>.
20784         (openpty): Use posix_openpt on all platforms except IRIX.
20785         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
20787 2011-10-20  Bruno Haible  <bruno@clisp.org>
20789         unlockpt: Detect invalid argument.
20790         * lib/unlockpt.c: Include <fcntl.h>.
20791         (unlockpt): Check whether fd is valid, using fcntl().
20792         * modules/unlockpt (Depends-on): Add fcntl-h.
20794 2011-10-20  Bruno Haible  <bruno@clisp.org>
20796         openpty: Avoid compilation error on AIX 6.1.
20797         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
20799 2011-10-20  Bruno Haible  <bruno@clisp.org>
20801         posix_openpt: Support for OpenBSD.
20802         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
20803         (posix_openpt) [OpenBSD]: New code.
20804         * lib/grantpt.c: Include <fcntl.h>.
20805         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
20806         * modules/grantpt (Depends-on): Add fcntl-h.
20808 2011-10-20  Bruno Haible  <bruno@clisp.org>
20810         posix_openpt test: Coding style.
20811         * tests/test-posix_openpt.c: Use GNU coding style.
20813 2011-10-20  Bruno Haible  <bruno@clisp.org>
20815         grantpt: Support --avoid=pt_chown.
20816         * modules/grantpt (Files): Add lib/pty-private.h.
20818 2011-10-20  Bruno Haible  <bruno@clisp.org>
20820         posix_openpt: Fix autoconf macro.
20821         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
20822         unneeded check for _getpty.
20824 2011-10-20  Bruno Haible  <bruno@clisp.org>
20826         openpty: Update comments.
20827         * lib/openpty.c: Add comments about Minix.
20829 2011-10-19  Eric Blake  <eblake@redhat.com>
20831         openpty: relax license
20832         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
20834         pt_chown: use configmake to simplify build
20835         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
20837         ptsname and others: relax license
20838         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
20839         * modules/unlockpt (License): Likewise.
20840         * modules/pt_chown (License): Likewise.
20841         * modules/ptsname (License): Likewise.
20842         * modules/ttyname_r (License): Likewise.
20844 2011-10-19  Jim Meyering  <meyering@redhat.com>
20846         posix_openpt: remove spurious #endif
20847         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
20849 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
20851         maint.mk: Respect $(build_aux) in web-manual rule.
20852         * top/maint.mk (web-manual): Find gen-announce script in user's
20853         $(build_aux) directory instead of hard-coding 'build-aux'.
20855 2011-10-19  Bruno Haible  <bruno@clisp.org>
20857         posix_openpt: Fix compilation error.
20858         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
20859         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
20860         Mention the openpty module as an alternative.
20862 2011-10-19  Bruno Haible  <bruno@clisp.org>
20864         Support for old NeXTstep 3.3 frexp().
20865         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
20866         execution time of the test to 5 seconds.
20867         Reported by Daniel Richard G. <skunk@iskunk.org>.
20869 2011-10-19  Bruno Haible  <bruno@clisp.org>
20871         Support for old NeXTstep 3.3 sed.
20872         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
20873         part, use /.../, not \|...|. Escape periods in the header file name.
20874         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
20875         Reported by Daniel Richard G. <skunk@iskunk.org>.
20877 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
20879         Support for old NeXTstep 3.3 gcc.
20880         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
20881         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
20882         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
20883         * lib/spawn.in.h (_Restrict_arr_): Likewise.
20884         * lib/regex.h (_Restrict_arr_): Likewise.
20885         * lib/regex_internal.h (re_token_t): Likewise.
20886         * lib/regexec.c (check_node_accept_bytes): Likewise.
20887         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
20889 2011-10-18  Eric Blake  <eblake@redhat.com>
20891         posix_openpt: new module
20892         * modules/posix_openpt: New module.
20893         * m4/posix_openpt.m4: New file.
20894         * lib/posix_openpt.c: Likewise.
20895         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
20896         (gl_STDLIB_H_DEFAULTS): Set defaults.
20897         * modules/stdlib (Makefile.am): Substitute macros.
20898         * lib/stdlib.in.h (posix_openpt): Declare.
20899         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
20900         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
20901         * modules/posix_openpt-tests: New test module.
20902         * tests/test-posix_openpt.c: New test.
20904 2011-10-15  Bruno Haible  <bruno@clisp.org>
20906         xstrtoll: Fix compilation failure.
20907         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
20908         from lib/strtol.c.
20909         * doc/posix-headers/limits.texi: Mention missing numerical limits on
20910         some platforms.
20911         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20913 2011-10-15  Bruno Haible  <bruno@clisp.org>
20915         vasnprintf: Optimize bit search operation.
20916         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
20917         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
20918         gl_DOUBLE_EXPONENT_LOCATION.
20919         * modules/vasnprintf (Files): Add m4/exponentd.m4.
20920         * modules/unistdio/u8-vasnprintf (Files): Likewise.
20921         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
20922         * modules/unistdio/u16-vasnprintf (Files): Likewise.
20923         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
20924         * modules/unistdio/u32-vasnprintf (Files): Likewise.
20925         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
20926         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
20927         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
20929 2011-10-15  Bruno Haible  <bruno@clisp.org>
20931         vasnprintf: Fix comments.
20932         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
20934 2011-10-14  Bruno Haible  <bruno@clisp.org>
20936         Tests for module 'integer_length_ll'.
20937         * modules/integer_length_ll-tests: New file.
20938         * tests/test-integer_length_ll.c: New file.
20940         New module 'integer_length_ll'.
20941         * lib/integer_length_ll.c: New file.
20942         * modules/integer_length_ll: New file.
20944 2011-10-14  Bruno Haible  <bruno@clisp.org>
20946         Tests for module 'integer_length_l'.
20947         * modules/integer_length_l-tests: New file.
20948         * tests/test-integer_length_l.c: New file.
20950         New module 'integer_length_l'.
20951         * lib/integer_length_l.c: New file.
20952         * modules/integer_length_l: New file.
20954 2011-10-14  Bruno Haible  <bruno@clisp.org>
20956         Tests for module 'integer_length'.
20957         * modules/integer_length-tests: New file.
20958         * tests/test-integer_length.c: New file.
20960         New module 'integer_length'.
20961         * lib/integer_length.h: New file.
20962         * lib/integer_length.c: New file.
20963         * modules/integer_length: New file.
20965 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
20967         popen: Fix dependency conditions.
20968         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
20970 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
20972         perror: Fix autoconf test.
20973         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
20974         <stdlib.h> and <string.h>.
20976 2011-10-14  Bruno Haible  <bruno@clisp.org>
20978         ffsl: Optimize on 64-bit platforms.
20979         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
20980         unrolling.
20982 2011-10-13  Bruno Haible  <bruno@clisp.org>
20984         ffsl: Optimize on 32-bit platforms.
20985         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
20986         use ffs() without a loop.
20988         ffsl, ffsll: Optimize for GCC.
20989         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
20990         * lib/ffsl.c (GCC_BUILTIN): New macro.
20991         * lib/ffsll.c (GCC_BUILTIN): Likewise.
20993 2011-10-13  Bruno Haible  <bruno@clisp.org>
20995         ffs, bcopy, memset: Support symbol renaming via config.h.
20996         * lib/ffs.c: Include <config.h>.
20997         * lib/bcopy.c: Likewise.
20998         * lib/memset.c: Likewise.
21000 2011-10-10  Bruno Haible  <bruno@clisp.org>
21002         atanl: Simplify for platforms where 'long double' == 'double'.
21003         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
21004         alternative implementation.
21005         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
21006         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
21007         * modules/atanl (Depends-on): Add atan. Update conditions.
21009 2011-10-10  Bruno Haible  <bruno@clisp.org>
21011         acosl: Simplify for platforms where 'long double' == 'double'.
21012         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
21013         alternative implementation.
21014         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
21015         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
21016         * modules/acosl (Depends-on): Add acos. Update conditions.
21018 2011-10-10  Bruno Haible  <bruno@clisp.org>
21020         asinl: Simplify for platforms where 'long double' == 'double'.
21021         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
21022         alternative implementation.
21023         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
21024         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
21025         * modules/asinl (Depends-on): Add asin. Update conditions.
21027 2011-10-10  Bruno Haible  <bruno@clisp.org>
21029         tanl: Simplify for platforms where 'long double' == 'double'.
21030         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
21031         implementation.
21032         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
21033         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
21034         * modules/tanl (Depends-on): Add tan. Update conditions.
21035         (configure.ac): Don't compile trigl.c if
21036         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
21038 2011-10-10  Bruno Haible  <bruno@clisp.org>
21040         cosl: Simplify for platforms where 'long double' == 'double'.
21041         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
21042         implementation.
21043         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
21044         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
21045         * modules/cosl (Depends-on): Add cos. Update conditions.
21046         (configure.ac): Don't compile sincosl.c and trigl.c if
21047         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
21049 2011-10-10  Bruno Haible  <bruno@clisp.org>
21051         sinl: Simplify for platforms where 'long double' == 'double'.
21052         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
21053         implementation.
21054         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
21055         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
21056         * modules/sinl (Depends-on): Add sin. Update conditions.
21057         (configure.ac): Don't compile sincosl.c and trigl.c if
21058         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
21060 2011-10-10  Bruno Haible  <bruno@clisp.org>
21062         logl: Simplify for platforms where 'long double' == 'double'.
21063         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
21064         implementation.
21065         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
21066         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
21067         * modules/logl (Depends-on): Add log. Update conditions.
21069 2011-10-10  Bruno Haible  <bruno@clisp.org>
21071         expl: Simplify for platforms where 'long double' == 'double'.
21072         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
21073         implementation.
21074         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
21075         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
21076         * modules/expl (Depends-on): Add exp. Update conditions.
21078 2011-10-10  Bruno Haible  <bruno@clisp.org>
21080         sqrtl: Simplify for platforms where 'long double' == 'double'.
21081         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
21082         alternative implementation.
21083         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
21084         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
21085         * modules/sqrtl (Depends-on): Update conditions.
21087 2011-10-10  Bruno Haible  <bruno@clisp.org>
21089         ldexpl: Simplify for platforms where 'long double' == 'double'.
21090         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
21091         alternative implementation.
21092         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
21093         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
21094         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
21096 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
21098         ffsll: set correct witness
21099         * modules/ffsll (configure.ac): Fix typo.
21101 2011-10-10  Bruno Haible  <bruno@clisp.org>
21103         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
21104         * lib/printf-frexpl.c: Include <config.h>.
21105         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
21106         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
21107         second time.
21108         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
21109         gl_LONG_DOUBLE_VS_DOUBLE.
21110         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
21111         conditions.
21113 2011-10-10  Bruno Haible  <bruno@clisp.org>
21115         frexpl: Simplify for platforms where 'long double' == 'double'.
21116         * lib/frexpl.c: Include <config.h>.
21117         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
21118         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
21119         time.
21120         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
21121         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
21122         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
21123         * modules/frexpl (Depends-on): Add frexp. Update conditions.
21124         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
21125         conditions.
21127 2011-10-10  Jim Meyering  <meyering@redhat.com>
21129         test-renameat: don't leave behind a temporary file
21130         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
21131           ERROR: files left in build directory after distclean:
21132           ./gltests/test-renameat.too
21133           make[1]: *** [distcleancheck] Error 1
21134         Reported by Tom G. Christensen.
21136 2011-10-09  Bruno Haible  <bruno@clisp.org>
21138         rint: Determine RINT_LIBM correctly on AIX 7.
21139         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
21140         directly, not only through a function pointer. Also accept an optional
21141         4th argument with extra code.
21142         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
21143         rintf() call by gcc when optimizing.
21145         mathfunc.m4: Refactor.
21146         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
21147         m4 variable.
21149 2011-10-09  Bruno Haible  <bruno@clisp.org>
21151         rintl: Simplify for platforms where 'long double' == 'double'.
21152         * lib/rintl.c: Include <config.h>.
21153         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
21154         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
21155         time.
21156         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
21157         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
21158         * modules/rintl (Depends-on): Add rint. Update conditions.
21160 2011-10-09  Bruno Haible  <bruno@clisp.org>
21162         roundl: Simplify for platforms where 'long double' == 'double'.
21163         * lib/roundl.c: Include <config.h>.
21164         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
21165         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
21166         time.
21167         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
21168         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
21169         * modules/roundl (Depends-on): Add round. Update conditions.
21171 2011-10-09  Bruno Haible  <bruno@clisp.org>
21173         truncl: Simplify for platforms where 'long double' == 'double'.
21174         * lib/truncl.c: Include <config.h>.
21175         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
21176         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
21177         time.
21178         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
21179         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
21180         * modules/truncl (Depends-on): Add trunc. Update conditions.
21182 2011-10-09  Bruno Haible  <bruno@clisp.org>
21184         ceill: Simplify for platforms where 'long double' == 'double'.
21185         * lib/ceill.c: Include <config.h>.
21186         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
21187         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
21188         time.
21189         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
21190         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
21191         * modules/ceill (Depends-on): Add ceil. Update conditions.
21193 2011-10-09  Bruno Haible  <bruno@clisp.org>
21195         floorl: Simplify for platforms where 'long double' == 'double'.
21196         * lib/floorl.c: Include <config.h>.
21197         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
21198         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
21199         time.
21200         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
21201         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
21202         * modules/floorl (Depends-on): Add floor. Update conditions.
21204 2011-10-09  Bruno Haible  <bruno@clisp.org>
21206         rint: Fix ordering constraints.
21207         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
21208         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
21209         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
21211 2011-10-09  Bruno Haible  <bruno@clisp.org>
21213         copysignl: Simplify for platforms where 'long double' == 'double'.
21214         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
21215         alternative.
21216         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
21217         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
21218         * modules/copysignl (Depends-on): Add copysign. Update conditions.
21220 2011-10-09  Bruno Haible  <bruno@clisp.org>
21222         Tests for module 'rintl'.
21223         * modules/rintl-tests: New file.
21224         * tests/test-rintl.c: New file.
21226         New module 'rintl'.
21227         * lib/math.in.h (rintl): New declaration.
21228         * lib/rintl.c: New file.
21229         * m4/rintl.m4: New file.
21230         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
21231         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
21232         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
21233         * modules/rintl: New file.
21234         * tests/test-math-c++.cc: Check the declaration of rintl.
21235         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
21236         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
21237         * doc/posix-functions/rintl.texi: Mention the new module.
21239 2011-10-09  Bruno Haible  <bruno@clisp.org>
21241         Tests for module 'rintf'.
21242         * modules/rintf-tests: New file.
21243         * tests/test-rintf.c: New file.
21245         New module 'rintf'.
21246         * lib/math.in.h (rintf): New declaration.
21247         * lib/rintf.c: New file.
21248         * m4/rintf.m4: New file.
21249         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
21250         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
21251         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
21252         * modules/rintf: New file.
21253         * tests/test-math-c++.cc: Check the declaration of rintf.
21254         * doc/posix-functions/rintf.texi: Mention the new module.
21256 2011-10-09  Bruno Haible  <bruno@clisp.org>
21258         rint: Support for MSVC.
21259         * lib/math.in.h (rint): New declaration.
21260         * lib/rint.c: New file.
21261         * m4/rint.m4: New file.
21262         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
21263         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
21264         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
21265         * modules/rint (Description): Fix.
21266         (Files): Add lib/rint.c, m4/rint.m4.
21267         (Depends-on): Add math.
21268         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
21269         gl_MATH_MODULE_INDICATOR.
21270         * tests/test-math-c++.cc: Check the declaration of rint.
21271         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
21272         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
21273         * doc/posix-functions/rint.texi: Mention the replacement provided by
21274         the module.
21276         rint tests: More tests.
21277         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
21278         minus-zero.h, infinity.h, nan.h.
21279         (main): Skip the test if the current rounding mode is not standard. Add
21280         tests for negative numbers, minus zero, infinity, NaN.
21281         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
21282         tests/nan.h.
21283         (Depends-on): Add isnand-nolibm.
21285 2011-10-09  Bruno Haible  <bruno@clisp.org>
21287         Tests for module 'copysignl'.
21288         * modules/copysignl-tests: New file.
21289         * tests/test-copysignl.c: New file.
21291         New module 'copysignl'.
21292         * lib/math.in.h (copysignl): New declaration.
21293         * lib/copysignl.c: New file.
21294         * m4/copysignl.m4: New file.
21295         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
21296         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
21297         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
21298         HAVE_COPYSIGNL.
21299         * modules/copysignl: New file.
21300         * tests/test-math-c++.cc: Check the declaration of copysignl.
21301         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
21302         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
21303         * doc/posix-functions/copysignl.texi: Mention the new module.
21305 2011-10-09  Bruno Haible  <bruno@clisp.org>
21307         Tests for module 'copysignf'.
21308         * modules/copysignf-tests: New file.
21309         * tests/test-copysignf.c: New file.
21311         New module 'copysignf'.
21312         * lib/math.in.h (copysignf): New declaration.
21313         * lib/copysignf.c: New file.
21314         * m4/copysignf.m4: New file.
21315         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
21316         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
21317         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
21318         HAVE_COPYSIGNF.
21319         * modules/copysignf: New file.
21320         * tests/test-math-c++.cc: Check the declaration of copysignf.
21321         * doc/posix-functions/copysignf.texi: Mention the new module.
21323 2011-10-09  Bruno Haible  <bruno@clisp.org>
21325         Ensure that HAVE_* variables are set to 1 before they are set to 0.
21326         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
21327         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
21328         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
21329         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
21330         gl_SIGNAL_H_DEFAULTS.
21332 2011-10-09  Bruno Haible  <bruno@clisp.org>
21334         poll: Make macro safer.
21335         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
21336         ac_cv_header_poll_h is not set.
21338 2011-10-09  Bruno Haible  <bruno@clisp.org>
21340         copysign: Provide replacement.
21341         * lib/math.in.h (copysign): New declaration.
21342         * lib/copysign.c: New file.
21343         * m4/copysign.m4: New file.
21344         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
21345         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
21346         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
21347         HAVE_COPYSIGN.
21348         * modules/copysign (Description): Clarify.
21349         (Files): Add lib/copysign.c, m4/copysign.m4.
21350         (Depends-on): Add math, signbit.
21351         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
21352         gl_MATH_MODULE_INDICATOR.
21353         * tests/test-math-c++.cc: Check the declaration of copysign.
21354         * doc/posix-functions/copysign.texi: Mention the effects of the module
21355         on Minix and MSVC.
21357 2011-10-09  Bruno Haible  <bruno@clisp.org>
21359         isinf: Ensure macro on AIX 5.1.
21360         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
21361         macro.
21362         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
21364 2011-10-09  Bruno Haible  <bruno@clisp.org>
21366         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
21367         * modules/snprintf-posix-tests (configure.ac): Require
21368         gl_LONG_DOUBLE_VS_DOUBLE.
21369         * modules/sprintf-posix-tests (configure.ac): Likewise.
21370         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
21371         * modules/vasprintf-posix-tests (configure.ac): Likewise.
21372         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
21373         * modules/vsprintf-posix-tests (configure.ac): Likewise.
21374         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
21375         tests on platforms where 'long double' is the same as 'double'.
21376         * tests/test-sprintf-posix.h (test_function): Likewise.
21377         * tests/test-vasnprintf-posix.c (test_function): Likewise.
21378         * tests/test-vasprintf-posix.c (test_function): Likewise.
21380         *printf: Fix for platforms where 'long double' == 'double'.
21381         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
21382         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
21383         * modules/dprintf-posix (Files): Add m4/math_h.m4.
21384         * modules/fprintf-posix (Files): Likewise.
21385         * modules/obstack-printf-posix (Files): Likewise.
21386         * modules/snprintf-posix (Files): Likewise.
21387         * modules/sprintf-posix (Files): Likewise.
21388         * modules/vasnprintf (Files): Likewise.
21389         * modules/vasnprintf-posix (Files): Likewise.
21390         * modules/vasprintf-posix (Files): Likewise.
21391         * modules/vdprintf-posix (Files): Likewise.
21392         * modules/vfprintf-posix (Files): Likewise.
21393         * modules/vsnprintf-posix (Files): Likewise.
21394         * modules/vsprintf-posix (Files): Likewise.
21395         * modules/unistdio/u8-vasnprintf (Files): Likewise.
21396         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
21397         * modules/unistdio/u16-vasnprintf (Files): Likewise.
21398         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
21399         * modules/unistdio/u32-vasnprintf (Files): Likewise.
21400         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
21401         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
21403         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
21404         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
21405         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
21406         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
21407         'long double'.
21408         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
21410         isinf: Fix for platforms where 'long double' == 'double'.
21411         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
21412         Don't blindly assume 80-bit 'long double'.
21414         isfinite: Fix for platforms where 'long double' == 'double'.
21415         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
21416         Don't blindly assume 80-bit 'long double'.
21418         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
21419         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
21420         * modules/isfinite-tests (configure.ac): Require
21421         gl_LONG_DOUBLE_VS_DOUBLE.
21422         * modules/isinf-tests (configure.ac): Likewise.
21423         * modules/isnan-tests (configure.ac): Likewise.
21424         * modules/isnanl-tests (configure.ac): Likewise.
21425         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
21426         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
21427         tests on platforms where 'long double' is the same as 'double'.
21428         * tests/test-isinf.c (test_isinfl): Likewise.
21429         * tests/test-isnan.c (test_long_double): Likewise.
21430         * tests/test-isnanl.h (main): Likewise.
21432 2011-10-08  Bruno Haible  <bruno@clisp.org>
21434         Tests for module 'tanhf'.
21435         * modules/tanhf-tests: New file.
21436         * tests/test-tanhf.c: New file.
21438         New module 'tanhf'.
21439         * lib/math.in.h (tanhf): New declaration.
21440         * lib/tanhf.c: New file.
21441         * m4/tanhf.m4: New file.
21442         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
21443         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
21444         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
21445         * modules/tanhf: New file.
21446         * tests/test-math-c++.cc: Check the declaration of tanhf.
21447         * doc/posix-functions/tanhf.texi: Mention the new module.
21449         tanh: Use a .m4 file.
21450         * m4/tanh.m4: New file.
21451         * modules/tanh (Files): Add it.
21452         (configure.ac): Just invoke gl_FUNC_TANH.
21454 2011-10-08  Bruno Haible  <bruno@clisp.org>
21456         Tests for module 'coshf'.
21457         * modules/coshf-tests: New file.
21458         * tests/test-coshf.c: New file.
21460         New module 'coshf'.
21461         * lib/math.in.h (coshf): New declaration.
21462         * lib/coshf.c: New file.
21463         * m4/coshf.m4: New file.
21464         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
21465         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
21466         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
21467         * modules/coshf: New file.
21468         * tests/test-math-c++.cc: Check the declaration of coshf.
21469         * doc/posix-functions/coshf.texi: Mention the new module.
21471         cosh: Use a .m4 file.
21472         * m4/cosh.m4: New file.
21473         * modules/cosh (Files): Add it.
21474         (configure.ac): Just invoke gl_FUNC_COSH.
21476 2011-10-08  Bruno Haible  <bruno@clisp.org>
21478         Tests for module 'sinhf'.
21479         * modules/sinhf-tests: New file.
21480         * tests/test-sinhf.c: New file.
21482         New module 'sinhf'.
21483         * lib/math.in.h (sinhf): New declaration.
21484         * lib/sinhf.c: New file.
21485         * m4/sinhf.m4: New file.
21486         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
21487         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
21488         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
21489         * modules/sinhf: New file.
21490         * tests/test-math-c++.cc: Check the declaration of sinhf.
21491         * doc/posix-functions/sinhf.texi: Mention the new module.
21493         sinh: Use a .m4 file.
21494         * m4/sinh.m4: New file.
21495         * modules/sinh (Files): Add it.
21496         (configure.ac): Just invoke gl_FUNC_SINH.
21498 2011-10-08  Bruno Haible  <bruno@clisp.org>
21500         Tests for module 'atan2f'.
21501         * modules/atan2f-tests: New file.
21502         * tests/test-atan2f.c: New file.
21504         New module 'atan2f'.
21505         * lib/math.in.h (atan2f): New declaration.
21506         * lib/atan2f.c: New file.
21507         * m4/atan2f.m4: New file.
21508         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
21509         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
21510         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
21511         * modules/atan2f: New file.
21512         * tests/test-math-c++.cc: Check the declaration of atan2f.
21513         * doc/posix-functions/atan2f.texi: Mention the new module.
21515         atan2: Use a .m4 file.
21516         * m4/atan2.m4: New file.
21517         * modules/atan2 (Files): Add it.
21518         (configure.ac): Just invoke gl_FUNC_ATAN2.
21520 2011-10-08  Bruno Haible  <bruno@clisp.org>
21522         Tests for module 'atanf'.
21523         * modules/atanf-tests: New file.
21524         * tests/test-atanf.c: New file.
21526         New module 'atanf'.
21527         * lib/math.in.h (atanf): New declaration.
21528         * lib/atanf.c: New file.
21529         * m4/atanf.m4: New file.
21530         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
21531         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
21532         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
21533         * modules/atanf: New file.
21534         * tests/test-math-c++.cc: Check the declaration of atanf.
21535         * doc/posix-functions/atanf.texi: Mention the new module.
21537         atan: Use a .m4 file.
21538         * m4/atan.m4: New file.
21539         * modules/atan (Files): Add it.
21540         (configure.ac): Just invoke gl_FUNC_ATAN.
21542 2011-10-08  Bruno Haible  <bruno@clisp.org>
21544         Tests for module 'acosf'.
21545         * modules/acosf-tests: New file.
21546         * tests/test-acosf.c: New file.
21548         New module 'acosf'.
21549         * lib/math.in.h (acosf): New declaration.
21550         * lib/acosf.c: New file.
21551         * m4/acosf.m4: New file.
21552         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
21553         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
21554         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
21555         * modules/acosf: New file.
21556         * tests/test-math-c++.cc: Check the declaration of acosf.
21557         * doc/posix-functions/acosf.texi: Mention the new module.
21559         acos: Use a .m4 file.
21560         * m4/acos.m4: New file.
21561         * modules/acos (Files): Add it.
21562         (configure.ac): Just invoke gl_FUNC_ACOS.
21564 2011-10-08  Bruno Haible  <bruno@clisp.org>
21566         Tests for module 'asinf'.
21567         * modules/asinf-tests: New file.
21568         * tests/test-asinf.c: New file.
21570         New module 'asinf'.
21571         * lib/math.in.h (asinf): New declaration.
21572         * lib/asinf.c: New file.
21573         * m4/asinf.m4: New file.
21574         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
21575         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
21576         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
21577         * modules/asinf: New file.
21578         * tests/test-math-c++.cc: Check the declaration of asinf.
21579         * doc/posix-functions/asinf.texi: Mention the new module.
21581         asin: Use a .m4 file.
21582         * m4/asin.m4: New file.
21583         * modules/asin (Files): Add it.
21584         (configure.ac): Just invoke gl_FUNC_ASIN.
21586 2011-10-08  Bruno Haible  <bruno@clisp.org>
21588         Tests for module 'tanf'.
21589         * modules/tanf-tests: New file.
21590         * tests/test-tanf.c: New file.
21592         New module 'tanf'.
21593         * lib/math.in.h (tanf): New declaration.
21594         * lib/tanf.c: New file.
21595         * m4/tanf.m4: New file.
21596         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
21597         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
21598         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
21599         * modules/tanf: New file.
21600         * tests/test-math-c++.cc: Check the declaration of tanf.
21601         * doc/posix-functions/tanf.texi: Mention the new module.
21603         tan: Use a .m4 file.
21604         * m4/tan.m4: New file.
21605         * modules/tan (Files): Add it.
21606         (configure.ac): Just invoke gl_FUNC_TAN.
21608 2011-10-08  Bruno Haible  <bruno@clisp.org>
21610         Tests for module 'cosf'.
21611         * modules/cosf-tests: New file.
21612         * tests/test-cosf.c: New file.
21614         New module 'cosf'.
21615         * lib/math.in.h (cosf): New declaration.
21616         * lib/cosf.c: New file.
21617         * m4/cosf.m4: New file.
21618         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
21619         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
21620         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
21621         * modules/cosf: New file.
21622         * tests/test-math-c++.cc: Check the declaration of cosf.
21623         * doc/posix-functions/cosf.texi: Mention the new module.
21625         cos: Use a .m4 file.
21626         * m4/cos.m4: New file.
21627         * modules/cos (Files): Add it.
21628         (configure.ac): Just invoke gl_FUNC_COS.
21630 2011-10-08  Bruno Haible  <bruno@clisp.org>
21632         Tests for module 'sinf'.
21633         * modules/sinf-tests: New file.
21634         * tests/test-sinf.c: New file.
21636         New module 'sinf'.
21637         * lib/math.in.h (sinf): New declaration.
21638         * lib/sinf.c: New file.
21639         * m4/sinf.m4: New file.
21640         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
21641         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
21642         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
21643         * modules/sinf: New file.
21644         * tests/test-math-c++.cc: Check the declaration of sinf.
21645         * doc/posix-functions/sinf.texi: Mention the new module.
21647         sin: Use a .m4 file.
21648         * m4/sin.m4: New file.
21649         * modules/sin (Files): Add it.
21650         (configure.ac): Just invoke gl_FUNC_SIN.
21652 2011-10-08  Bruno Haible  <bruno@clisp.org>
21654         Tests for module 'powf'.
21655         * modules/powf-tests: New file.
21656         * tests/test-powf.c: New file.
21658         New module 'powf'.
21659         * lib/math.in.h (powf): New declaration.
21660         * lib/powf.c: New file.
21661         * m4/powf.m4: New file.
21662         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
21663         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
21664         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
21665         * modules/powf: New file.
21666         * tests/test-math-c++.cc: Check the declaration of powf.
21667         * doc/posix-functions/powf.texi: Mention the new module.
21669         pow: Use a .m4 file.
21670         * m4/pow.m4: New file.
21671         * modules/pow (Files): Add it.
21672         (configure.ac): Just invoke gl_FUNC_POW.
21674 2011-10-08  Bruno Haible  <bruno@clisp.org>
21676         Tests for module 'log10f'.
21677         * modules/log10f-tests: New file.
21678         * tests/test-log10f.c: New file.
21680         New module 'log10f'.
21681         * lib/math.in.h (log10f): New declaration.
21682         * lib/log10f.c: New file.
21683         * m4/log10f.m4: New file.
21684         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
21685         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
21686         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
21687         * modules/log10f: New file.
21688         * tests/test-math-c++.cc: Check the declaration of log10f.
21689         * doc/posix-functions/log10f.texi: Mention the new module.
21691         log10: Use a .m4 file.
21692         * m4/log10.m4: New file.
21693         * modules/log10 (Files): Add it.
21694         (configure.ac): Just invoke gl_FUNC_LOG10.
21696 2011-10-08  Bruno Haible  <bruno@clisp.org>
21698         Tests for module 'logf'.
21699         * modules/logf-tests: New file.
21700         * tests/test-logf.c: New file.
21702         New module 'logf'.
21703         * lib/math.in.h (logf): New declaration.
21704         * lib/logf.c: New file.
21705         * m4/logf.m4: New file.
21706         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
21707         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
21708         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
21709         * modules/logf: New file.
21710         * tests/test-math-c++.cc: Check the declaration of logf.
21711         * doc/posix-functions/logf.texi: Mention the new module.
21713         log: Use a .m4 file.
21714         * m4/log.m4: New file.
21715         * modules/log (Files): Add it.
21716         (configure.ac): Just invoke gl_FUNC_LOG.
21718 2011-10-08  Bruno Haible  <bruno@clisp.org>
21720         Tests for module 'expf'.
21721         * modules/expf-tests: New file.
21722         * tests/test-expf.c: New file.
21724         New module 'expf'.
21725         * lib/math.in.h (expf): New declaration.
21726         * lib/expf.c: New file.
21727         * m4/expf.m4: New file.
21728         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
21729         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
21730         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
21731         * modules/expf: New file.
21732         * tests/test-math-c++.cc: Check the declaration of expf.
21733         * doc/posix-functions/expf.texi: Mention the new module.
21735         exp: Use a .m4 file.
21736         * m4/exp.m4: New file.
21737         * modules/exp (Files): Add it.
21738         (configure.ac): Just invoke gl_FUNC_EXP.
21740 2011-10-08  Bruno Haible  <bruno@clisp.org>
21742         Tests for module 'sqrtf'.
21743         * modules/sqrtf-tests: New file.
21744         * tests/test-sqrtf.c: New file.
21746         New module 'sqrtf'.
21747         * lib/math.in.h (sqrtf): New declaration.
21748         * lib/sqrtf.c: New file.
21749         * m4/sqrtf.m4: New file.
21750         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
21751         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
21752         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
21753         * modules/sqrtf: New file.
21754         * tests/test-math-c++.cc: Check the declaration of sqrtf.
21755         * doc/posix-functions/sqrtf.texi: Mention the new module.
21757 2011-10-08  Bruno Haible  <bruno@clisp.org>
21759         Tests: Avoid link failures w.r.t. libintl.
21760         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
21761         $(LIBINTL).
21762         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
21763         $(LIBINTL).
21764         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
21765         against $(LIBINTL).
21766         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
21767         $(LIBINTL).
21768         * modules/openat-tests (Makefile.am): Link test-fchmodat against
21769         $(LIBINTL).
21770         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
21772 2011-10-08  Bruno Haible  <bruno@clisp.org>
21774         pow tests: Defeat compiler optimizations.
21775         * tests/test-pow.c (main): Assign arguments to x and y before use.
21777 2011-10-08  Bruno Haible  <bruno@clisp.org>
21779         gnulib-tool: Improve last commit.
21780         * gnulib-tool (func_modules_transitive_closure): Simplify code.
21781         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
21782         ignore dependencies that are not among the modules list.
21784 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
21786         gnulib-tool: don't follow dependencies to avoided modules
21787         This fixes a bug that is related to the previous one.
21788         * gnulib-tool (func_modules_transitive_closure)
21789         (func_emit_autoconf_snippets):
21790         Check whether a dependency is acceptable before using it.
21791         (--extract-dependencies): Report an error if --avoid is also used,
21792         since this combination of options is not yet supported.
21794         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
21795         Problem reported by Peter Dyballa in
21796         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
21797         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
21798         when echoing "$condition".
21800 2011-10-07  Bruno Haible  <bruno@clisp.org>
21802         Fix documentation about math functions on MacOS X.
21803         * doc/posix-functions/exp2.texi: Don't say the function is missing on
21804         MacOS X 10.5.
21805         * doc/posix-functions/fdim.texi: Likewise.
21806         * doc/posix-functions/feclearexcept.texi: Likewise.
21807         * doc/posix-functions/fegetenv.texi: Likewise.
21808         * doc/posix-functions/fegetround.texi: Likewise.
21809         * doc/posix-functions/feholdexcept.texi: Likewise.
21810         * doc/posix-functions/feraiseexcept.texi: Likewise.
21811         * doc/posix-functions/fesetenv.texi: Likewise.
21812         * doc/posix-functions/fesetround.texi: Likewise.
21813         * doc/posix-functions/fetestexcept.texi: Likewise.
21814         * doc/posix-functions/feupdateenv.texi: Likewise.
21815         * doc/posix-functions/fmax.texi: Likewise.
21816         * doc/posix-functions/fmin.texi: Likewise.
21817         * doc/posix-functions/log2.texi: Likewise.
21818         * doc/posix-functions/modff.texi: Likewise.
21819         * doc/posix-functions/nan.texi: Likewise.
21820         * doc/posix-functions/nanf.texi: Likewise.
21821         * doc/posix-functions/nextafterf.texi: Likewise.
21822         * doc/posix-functions/remquo.texi: Likewise.
21824 2011-10-07  Bruno Haible  <bruno@clisp.org>
21826         modff: Drop assumption about library that defines modff.
21827         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
21828         AC_CHECK_FUNCS.
21829         * modules/modff (Files): Add m4/mathfunc.m4.
21831 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
21833         raise tests: Avoid a GCC warning.
21834         * tests/test-raise.c (handler): Use _Noreturn.
21836 2011-10-07  Bruno Haible  <bruno@clisp.org>
21838         Tests for module 'ldexpf'.
21839         * modules/ldexpf-tests: New file.
21840         * tests/test-ldexpf.c: New file.
21842         New module 'ldexpf'.
21843         * lib/math.in.h (ldexpf): New declaration.
21844         * lib/ldexpf.c: New file.
21845         * m4/ldexpf.m4: New file.
21846         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
21847         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
21848         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
21849         * modules/ldexpf: New file.
21850         * tests/test-math-c++.cc: Check the declaration of ldexpf.
21851         * doc/posix-functions/ldexpf.texi: Mention the new module.
21853 2011-10-06  Bruno Haible  <bruno@clisp.org>
21855         frexpf: Work around problems on IRIX and mingw.
21856         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
21857         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
21858         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
21859         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
21860         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
21861         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
21862         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
21864 2011-10-06  Bruno Haible  <bruno@clisp.org>
21866         fabsf: Drop assumption about library that defines fabsf.
21867         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
21868         AC_CHECK_FUNCS.
21869         * modules/fabsf (Files): Add m4/mathfunc.m4.
21871 2011-10-06  Bruno Haible  <bruno@clisp.org>
21873         frexpf: Drop assumption about library that defines frexpf.
21874         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
21875         'int *', 'float *', 'long double *', 'float', 'long double'.
21876         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
21877         AC_CHECK_FUNCS.
21878         * modules/frexpf (Files): Add m4/mathfunc.m4.
21880         Tests for module 'frexpf'.
21881         * modules/frexpf-tests: New file.
21882         * tests/test-frexpf.c: New file.
21884         New module 'frexpf'.
21885         * lib/math.in.h (frexpf): New declaration.
21886         * lib/frexpf.c: New file.
21887         * m4/frexpf.m4: New file.
21888         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
21889         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
21890         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
21891         * modules/frexpf: New file.
21892         * tests/test-math-c++.cc: Check the declaration of frexpf.
21893         * doc/posix-functions/frexpf.texi: Mention the new module.
21895 2011-10-06  Bruno Haible  <bruno@clisp.org>
21897         math: Sort function declarations of math.in.h.
21898         * lib/math.in.h (frexp, logb): Move declarations.
21900 2011-10-05  Bruno Haible  <bruno@clisp.org>
21902         Tests for module 'modff'.
21903         * modules/modff-tests: New file.
21904         * tests/test-modff.c: New file.
21906         New module 'modff'.
21907         * lib/math.in.h (modff): New declaration.
21908         * lib/modff.c: New file.
21909         * m4/modff.m4: New file.
21910         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
21911         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
21912         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
21913         * modules/modff: New file.
21914         * tests/test-math-c++.cc: Check the declaration of modff.
21915         * doc/posix-functions/modff.texi: Mention the new module.
21917         modf tests: Make test sharper.
21918         * tests/test-modf.c (main): Strengthen upper bound.
21920         modf: Use a .m4 file.
21921         * m4/modf.m4: New file.
21922         * modules/modf (Files): Add it.
21923         (configure.ac): Just invoke gl_FUNC_MODF.
21925 2011-10-05  Bruno Haible  <bruno@clisp.org>
21927         Tests for module 'fmodf'.
21928         * modules/fmodf-tests: New file.
21929         * tests/test-fmodf.c: New file.
21931         New module 'fmodf'.
21932         * lib/math.in.h (fmodf): New declaration.
21933         * lib/fmodf.c: New file.
21934         * m4/fmodf.m4: New file.
21935         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
21936         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
21937         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
21938         * modules/fmodf: New file.
21939         * tests/test-math-c++.cc: Check the declaration of fmodf.
21940         * doc/posix-functions/fmodf.texi: Mention the new module.
21942         fmod: Use a .m4 file.
21943         * m4/fmod.m4: New file.
21944         * modules/fmod (Files): Add it.
21945         (configure.ac): Just invoke gl_FUNC_FMOD.
21947 2011-10-05  Bruno Haible  <bruno@clisp.org>
21949         Tests for module 'fabsf'.
21950         * modules/fabsf-tests: New file.
21951         * tests/test-fabsf.c: New file.
21953         New module 'fabsf'.
21954         * lib/math.in.h (fabsf): New declaration.
21955         * lib/fabsf.c: New file.
21956         * m4/fabsf.m4: New file.
21957         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
21958         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
21959         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
21960         * modules/fabsf: New file.
21961         * tests/test-math-c++.cc: Check the declaration of fabsf.
21962         * doc/posix-functions/fabsf.texi: Mention the new module.
21964         fabs: Use a .m4 file.
21965         * m4/fabs.m4: New file.
21966         * modules/fabs (Files): Add it.
21967         (configure.ac): Just invoke gl_FUNC_FABS.
21969 2011-10-05  Jim Meyering  <meyering@redhat.com>
21971         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
21972         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
21973         ls -lL regression introduced in coreutils-8.12, it does so at the
21974         cost of an additional stat call in the common case.  Besides, now
21975         that the kernel change that prompted commit 95f7c57f has been reverted
21976         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
21977         we have no use for commit 95f7c57f, "file-has-acl: use
21978         acl_extended_file_nofollow if available".
21980 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
21982         file-has-acl: revert unintended change in behavior of ls -L
21983         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
21984         derived from...
21985         (file_has_acl): ...code here.  Call it.
21986         This problem was introduced with 2011-07-22 commit 95f7c57f,
21987         "file-has-acl: use acl_extended_file_nofollow if available".
21988         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
21990 2011-10-03  Bruno Haible  <bruno@clisp.org>
21992         poll: Avoid link errors on MSVC.
21993         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
21994         * modules/poll (Depends-on): Add sockets.
21995         (Link): New section.
21996         * NEWS: Mention the change.
21997         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
21998         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
21999         $(LIB_POLL) instead of $(LIBSOCKET).
22001 2011-10-03  Bruno Haible  <bruno@clisp.org>
22003         sys_select tests: Fix link error on MSVC 9.
22004         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
22005         with $(LIB_SELECT) instead of $(LIBSOCKET).
22007 2011-10-03  Bruno Haible  <bruno@clisp.org>
22009         sys_select: Fix compilation error on mingw.
22010         * lib/sys_select.in.h: On native Windows, include <io.h>.
22012 2011-10-03  Bruno Haible  <bruno@clisp.org>
22014         wmemset: Support for MSVC.
22015         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
22016         whether wmemset() exists.
22018 2011-10-03  Bruno Haible  <bruno@clisp.org>
22020         wmemmove: Support for MSVC.
22021         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
22022         whether wmemmove() exists.
22024 2011-10-03  Bruno Haible  <bruno@clisp.org>
22026         wmemcpy: Support for MSVC.
22027         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
22028         whether wmemcpy() exists.
22030 2011-10-03  Bruno Haible  <bruno@clisp.org>
22032         wmemcmp: Support for MSVC.
22033         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
22034         whether wmemcmp() exists.
22036 2011-10-03  Bruno Haible  <bruno@clisp.org>
22038         wmemchr: Support for MSVC.
22039         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
22040         whether wmemchr() exists.
22042 2011-10-03  Bruno Haible  <bruno@clisp.org>
22044         glthread/*, strsignal: Support for MSVC.
22045         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
22046         including <winsock.h> on MSVC 9.
22047         * lib/glthread/lock.h: Likewise.
22048         * lib/glthread/thread.h: Likewise.
22049         * lib/glthread/tls.h: Likewise.
22050         * lib/glthread/yield.h: Likewise.
22051         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
22052         if HAVE_UNISTD_H is false.
22053         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
22055 2011-10-03  Bruno Haible  <bruno@clisp.org>
22057         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
22058         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
22059         Set to 100000.
22061 2011-10-03  Bruno Haible  <bruno@clisp.org>
22063         acl: Fix specification.
22064         * lib/file-has-acl.c (file_has_acl): Fix specification.
22066 2011-10-03  Bruno Haible  <bruno@clisp.org>
22068         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
22069         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
22070         (compute_curr_prefix, shared_library_fullname,
22071         find_shared_library_fullname, get_shared_library_fullname, relocate):
22072         Use it together with PIC && INSTALLDIR.
22073         Reported by <jojelino@gmail.com>
22074         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
22076 2011-10-01  Jim Meyering  <meyering@redhat.com>
22078         maint.mk: adjust a release-related rule not to require use of gzip
22079         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
22080         Instead, check each file in $(DIST_ARCHIVES).  This is better for
22081         projects that build only .tar.xz files.  Also fix an erroneous test.
22083         test-linkat: don't leave behind a temporary file
22084         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
22085         Otherwise, coreutils' "make distcheck" would fail with this:
22086           Only in /c/cu/tests/torture/coreutils/test/\
22087             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
22088           make[2]: *** [my-distcheck] Error 1
22090         float, math: add omitted file
22091         * lib/itold.c: Add file, required for yesterday's float change.
22093 2011-10-01  Bruno Haible  <bruno@clisp.org>
22095         isinf: Fix for OpenBSD/x86.
22096         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
22097         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
22098         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
22100 2011-10-01  Bruno Haible  <bruno@clisp.org>
22102         isfinite: Fix syntax error in configure test.
22103         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
22105         isfinite: Fix typo.
22106         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
22107         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
22109 2011-10-01  Bruno Haible  <bruno@clisp.org>
22111         nonblocking tests: Fix test failure on Linux/IA-64.
22112         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
22113         Set to 270000.
22115 2011-10-01  Bruno Haible  <bruno@clisp.org>
22117         mkfifoat tests: Fix a test failure on mingw.
22118         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
22119         with error ENOSYS.
22121 2011-09-30  Bruno Haible  <bruno@clisp.org>
22123         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
22124         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
22125         'long double'. Set REPLACE_ITOLD.
22126         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
22127         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
22128         * lib/itold.c: New file.
22129         * modules/float (Files): Add lib/itold.c.
22130         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
22131         (Makefile.am): Substitute REPLACE_ITOLD.
22132         * modules/math (Depends-on): Add float.
22133         (Makefile.am): Substitute REPLACE_ITOLD.
22134         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
22135         * doc/posix-headers/math.texi: Likewise.
22136         * doc/posix-functions/logl.texi: Likewise.
22138 2011-09-30  Bruno Haible  <bruno@clisp.org>
22140         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
22141         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
22142         Set to 140000.
22144 2011-09-30  Bruno Haible  <bruno@clisp.org>
22146         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
22147         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
22148         invocation, say "right after AC_PROG_CC_STDC", not "right after
22149         AC_PROG_CC".
22150         Reported by Gary V. Vaughan <gary@gnu.org>.
22152 2011-09-30  Bruno Haible  <bruno@clisp.org>
22154         Centralize C99 requirement.
22155         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
22156         * modules/stdarg (configure.ac-early): Invoke it instead of
22157         AC_PROG_CC_STDC.
22158         Reported by Gary V. Vaughan and Paul Eggert.
22160 2011-09-29  Bruno Haible  <bruno@clisp.org>
22162         float: Fix LDBL_MAX value on Linux/PowerPC.
22163         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
22164         on Linux/PowerPC.
22165         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
22166         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
22167         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
22168         platform.
22169         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
22171 2011-09-29  Bruno Haible  <bruno@clisp.org>
22173         doc: Improve doc about gl_EARLY.
22174         * doc/gnulib-tool.texi (Initial import): Mention where to place an
22175         AC_PROG_CC_STDC invocation.
22176         Reported by Gary V. Vaughan <gary@gnu.org>.
22178 2011-09-28  Bruno Haible  <bruno@clisp.org>
22180         fgetc, fputc, fread, fwrite tests: Fix link error.
22181         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
22182         on non-MSVC platforms.
22183         * tests/test-fputc.c (main): Likewise.
22184         * tests/test-fread.c (main): Likewise.
22185         * tests/test-fwrite.c (main): Likewise.
22186         Reported by Jim Meyering.
22188 2011-09-27  Bruno Haible  <bruno@clisp.org>
22190         fputc, fwrite tests: Avoid test failure on MSVC.
22191         * tests/test-fgetc.c: Include msvc-inval.h.
22192         (main): Invoke gl_msvc_inval_ensure_handler.
22193         * tests/test-fputc.c: Include msvc-inval.h.
22194         (main): Invoke gl_msvc_inval_ensure_handler.
22195         * tests/test-fread.c: Include msvc-inval.h.
22196         (main): Invoke gl_msvc_inval_ensure_handler.
22197         * tests/test-fwrite.c: Include msvc-inval.h.
22198         (main): Invoke gl_msvc_inval_ensure_handler.
22199         * modules/fgetc-tests (Depends-on): Add msvc-inval.
22200         * modules/fputc-tests (Depends-on): Likewise.
22201         * modules/fread-tests (Depends-on): Likewise.
22202         * modules/fwrite-tests (Depends-on): Likewise.
22204 2011-09-27  Bruno Haible  <bruno@clisp.org>
22206         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
22207         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
22208         (raise): Remove older, duplicated declaration.
22209         (_gl_raise_SIGPIPE): New declaration.
22210         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
22211         (rpl_raise): Remove function.
22212         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
22213         a gnulib-defined SIGPIPE here.
22214         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
22215         'sigprocmask' has detected missing signal-blocking and the module
22216         'sigpipe' is enabled.
22217         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
22219 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
22221         base64-tests: avoid memory leak
22222         * tests/test-base64.c (main): Plug memory leak.
22224         base32: new module
22225         * modules/base32: New module.
22226         * lib/base32.c: New file.
22227         * lib/base32.h: Likewise.
22228         * m4/base32.m4: Likewise.
22229         * modules/base32-tests: New test.
22230         * tests/test-base32.c: Likewise.
22231         * MODULES.html.sh (Misc): Mention it.
22233 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
22235         gnulib: use more-standard license notice wording
22236         * gnulib-tool (func_emit_copyright_notice): When emitting a
22237         license notice into a file, use the standard wording as suggested
22238         by the current information for GNU maintainers, except say "file"
22239         rather than "program".  The new wording gives a license version
22240         number, which addresses an issue raised by Glenn Morris in
22241         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
22242         * m4/onceonly.m4: Use that same wording here, too.
22244         dup2: minor simplification
22245         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
22246         as lib/dup2.c no longer uses 'inline'.
22248 2011-09-25  Bruno Haible  <bruno@clisp.org>
22250         strings: Fix compilation error on MSVC.
22251         * lib/strings.in.h: Include <stddef.h> for size_t.
22253 2011-09-25  Bruno Haible  <bruno@clisp.org>
22255         fflush et al.: Document limitation on MSVC.
22256         * doc/posix-functions/fflush.texi: Document possible crash in handling
22257         mode other than DEFAULT_HANDLING.
22258         * doc/posix-functions/fgetc.texi: Likewise.
22259         * doc/posix-functions/fputc.texi: Likewise.
22260         * doc/posix-functions/fread.texi: Likewise.
22261         * doc/posix-functions/fwrite.texi: Likewise.
22263 2011-09-25  Bruno Haible  <bruno@clisp.org>
22265         msvc-inval: Allow three invalid parameter handling modes.
22266         * lib/msvc-inval.h: Don't include <stdlib.h> here.
22267         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
22268         macros.
22269         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
22270         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
22271         SANE_LIBRARY_HANDLING as a no-op.
22272         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
22273         <stdlib.h>.
22274         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
22276 2011-09-25  Bruno Haible  <bruno@clisp.org>
22278         msvc-inval: Make handler multithread-safe.
22279         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
22280         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
22281         declarations.
22282         (gl_msvc_inval_current): New declaration.
22283         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
22284         Operate on the structure returned by gl_msvc_inval_current().
22285         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
22286         Remove varaiables.
22287         (tls_index, tls_initialized): New variables.
22288         (not_per_thread): New variable.
22289         (gl_msvc_inval_current): New function.
22290         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
22291         returned by gl_msvc_inval_current().
22293 2011-09-25  Bruno Haible  <bruno@clisp.org>
22295         msvc-inval: Install handler globally.
22296         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
22297         !_MSC_VER.
22298         (gl_msvc_invalid_parameter_handler): Remove declaration.
22299         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
22300         declarations.
22301         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
22302         Install the handler globally, don't uninstall it.
22303         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
22304         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
22305         currently valid, call RaiseException instead.
22306         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
22307         for !_MSC_VER.
22309 2011-09-25  Bruno Haible  <bruno@clisp.org>
22311         strerror_r-posix: Fix for MSVC 9.
22312         * lib/strerror_r.c (local_snprintf): New function.
22313         (snprintf): Define to local_snprintf, not to _snprintf.
22315 2011-09-25  Bruno Haible  <bruno@clisp.org>
22317         ftruncate: Support for MSVC 9.
22318         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
22319         (chsize_nothrow): New function.
22320         (chsize): Redefine as a macro.
22321         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
22322         * modules/ftruncate (Depends-on): Add msvc-inval.
22324 2011-09-25  Bruno Haible  <bruno@clisp.org>
22326         New module 'fstat'.
22327         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
22328         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
22329         * lib/fchdir.c (rpl_fstat): Remove function.
22330         * m4/fstat.m4: New file.
22331         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
22332         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
22333         declared.
22334         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
22335         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
22336         * modules/fstat: New file.
22337         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
22338         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
22339         is set.
22340         * doc/posix-functions/fstat.texi: Mention the new module and the
22341         problem on MSVC.
22342         * NEWS: Mention the change.
22343         * modules/acl (Depends-on): Add fstat.
22344         * modules/chdir-safer (Depends-on): Likewise.
22345         * modules/chown (Depends-on): Likewise.
22346         * modules/copy-file (Depends-on): Likewise.
22347         * modules/fchdir (Depends-on): Likewise.
22348         * modules/fdopendir (Depends-on): Likewise.
22349         * modules/fopen (Depends-on): Likewise.
22350         * modules/fts (Depends-on): Likewise.
22351         * modules/getcwd (Depends-on): Likewise.
22352         * modules/isapipe (Depends-on): Likewise.
22353         * modules/linkat (Depends-on): Likewise.
22354         * modules/lseek (Depends-on): Likewise.
22355         * modules/mkdir-p (Depends-on): Likewise.
22356         * modules/open (Depends-on): Likewise.
22357         * modules/openat (Depends-on): Likewise.
22358         * modules/read-file (Depends-on): Likewise.
22359         * modules/renameat (Depends-on): Likewise.
22360         * modules/utimens (Depends-on): Likewise.
22362 2011-09-25  Bruno Haible  <bruno@clisp.org>
22364         linkat: Fix compilation on MSVC 9.
22365         * lib/linkat.c: Don't include <stdint.h>.
22367 2011-09-25  Bruno Haible  <bruno@clisp.org>
22369         fclose: Support for MSVC 9.
22370         * lib/fclose.c: Include msvc-inval.h.
22371         (fclose_nothrow): New function.
22372         (rpl_fclose): Use it.
22373         * modules/fclose (Depends-on): Add msvc-inval.
22374         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
22376 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
22378         dup2: minor simplifications
22379         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
22380         that it's a performance win.
22381         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
22382         ! defined __CYGWIN__)" to "ifdef F_GETFL".
22384 2011-09-24  Jim Meyering  <meyering@redhat.com>
22386         test-futimens: avoid a warning from gcc -Wshadow
22387         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
22388         to avoid a shadowing warning.
22390 2011-09-24  Bruno Haible  <bruno@clisp.org>
22392         fdopen: Support for MSVC 9.
22393         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
22394         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
22395         * lib/fdopen.c: Include msvc-inval.h.
22396         (fdopen_nothrow): New function.
22397         (rpl_fdopen): Use it.
22398         * modules/fdopen (Depends-on): Add msvc-inval.
22399         * modules/fclose-tests (Depends-on): Add fdopen.
22400         * modules/fflush-tests (Depends-on): Likewise.
22401         * modules/fgetc-tests (Depends-on): Likewise.
22402         * modules/fputc-tests (Depends-on): Likewise.
22403         * modules/fread-tests (Depends-on): Likewise.
22404         * modules/freopen-tests (Depends-on): Likewise.
22405         * modules/fseeko-tests (Depends-on): Likewise.
22406         * modules/ftello-tests (Depends-on): Likewise.
22407         * modules/fwrite-tests  (Depends-on): Likewise.
22408         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
22410 2011-09-24  Bruno Haible  <bruno@clisp.org>
22412         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
22413         * modules/fgetc-tests (Depends-on): Add unistd.
22414         * modules/fputc-tests (Depends-on): Likewise.
22415         * modules/fread-tests (Depends-on): Likewise.
22416         * modules/fwrite-tests (Depends-on): Likewise.
22418 2011-09-24  Bruno Haible  <bruno@clisp.org>
22420         dup: Simplify autoconf test.
22421         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
22422         on gl_MSVC_INVAL's result.
22424 2011-09-24  Bruno Haible  <bruno@clisp.org>
22426         Tests for function fwrite().
22427         * modules/fwrite-tests: New file.
22428         * tests/test-fwrite.c: New file.
22429         * modules/stdio-tests (Depends-on): Add fwrite-tests.
22431         Tests for function fread().
22432         * modules/fread-tests: New file.
22433         * tests/test-fread.c: New file.
22434         * modules/stdio-tests (Depends-on): Add fread-tests.
22436         Activate fputc tests.
22437         * modules/stdio-tests (Depends-on): Add fputc-tests.
22439         Enhance fgetc, fputc tests.
22440         * tests/test-fgetc.c (main): Also test the stream's error indicator.
22441         * tests/test-fputc.c (main): Likewise.
22443 2011-09-24  Bruno Haible  <bruno@clisp.org>
22445         write: Support for MSVC 9.
22446         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
22447         is not 1.
22448         * lib/write.c (write_nothrow): New function.
22449         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
22450         not 1. Use write_nothrow.
22451         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
22452         invalid parameter handler.
22453         (gl_PREREQ_WRITE): New macro.
22454         * modules/write (Depends-on): Add msvc-inval.
22455         (configure.ac): Invoke gl_PREREQ_WRITE.
22456         * doc/posix-functions/write.texi: Mention the problem on MSVC.
22458 2011-09-24  Bruno Haible  <bruno@clisp.org>
22460         read: Fix last commit.
22461         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
22463 2011-09-24  Bruno Haible  <bruno@clisp.org>
22465         dup2: Fix last commit.
22466         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
22467         (rpl_dup2): Disable fcntl workaround on native Windows.
22469         sigprocmask: Make code safer.
22470         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
22471         section that changes macro definitions for this compilation unit.
22473 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
22475         dup2: clarify by coalescing Windows-specific material
22476         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
22477         "msvc-nothrow.h"' to the Windows-specific section, so that the
22478         Emacs source need not contain these include files.
22479         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
22480         Windows-specific fixes into this function rather than just the
22481         nothrow fix, as this shortens and clarifies the code.  Always
22482         define as a function, as that's a bit cleaner than having it be
22483         sometimes a function and sometimes a macro.
22484         (rpl_dup2): Move the Windows-specific stuff out of here and into
22485         ms_windows_dup2.  Don't protect the Haiku-related fix with
22486         "#if !defined __linux__", as the same code also works around
22487         a Linux kernel bug, and it doesn't add any system calls on any
22488         platform.  Add comment about FreeBSD 6.1.
22490         sigprocmask: move #include directive
22491         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
22492         Windows-specific section, so that the Emacs source need not
22493         contain msvc-inval.h.
22495 2011-09-23  Bruno Haible  <bruno@clisp.org>
22497         read: Support for MSVC 9.
22498         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
22499         is not 1.
22500         * lib/read.c (read_nothrow): New function.
22501         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
22502         read_nothrow.
22503         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
22504         invalid parameter handler.
22505         (gl_PREREQ_READ): New macro.
22506         * modules/read (Depends-on): Add msvc-inval.
22507         (configure.ac): Invoke gl_PREREQ_READ.
22508         * doc/posix-functions/read.texi: Mention the problem on MSVC.
22510 2011-09-23  Bruno Haible  <bruno@clisp.org>
22512         close: Support for MSVC 9.
22513         * lib/close.c: Include <errno.h>, msvc-inval.h.
22514         (close_nothrow): New function.
22515         (rpl_close): Use it.
22516         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
22517         invalid parameter handler.
22518         * modules/close (Depends-on): Add msvc-inval.
22519         * modules/dup2-tests (Depends-on): Add close.
22520         * modules/dup3-tests (Depends-on): Likewise.
22521         * modules/fcntl-tests (Depends-on): Likewise.
22522         * modules/spawn-pipe-tests (Depends-on): Likewise.
22523         * modules/unistd-safer-tests (Depends-on): Likewise.
22524         * doc/posix-functions/close.texi: Mention the problem on MSVC.
22526 2011-09-23  Bruno Haible  <bruno@clisp.org>
22528         New module 'dup'.
22529         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
22530         Allow replacement.
22531         * lib/dup.c: New file.
22532         * lib/fchdir.c (rpl_dup): Remove function.
22533         * m4/dup.m4: New file.
22534         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
22535         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
22536         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
22537         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
22538         * modules/dup: New file.
22539         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
22540         'dup' module is in use.
22541         * modules/fdopendir (Depends-on): Add dup.
22542         * modules/fdutimensat-tests (Depends-on): Likewise.
22543         * modules/fts (Depends-on): Likewise.
22544         * modules/futimens-tests (Depends-on): Likewise.
22545         * modules/posix_spawnp-tests (Depends-on): Likewise.
22546         * modules/unistd-safer-tests (Depends-on): Likewise.
22547         * modules/utimens-tests (Depends-on): Likewise.
22548         * doc/posix-functions/dup.texi: Mention the new module and the problem
22549         on MSVC.
22551 2011-09-23  Bruno Haible  <bruno@clisp.org>
22553         getdtablesize: Support for MSVC 9.
22554         * lib/getdtablesize.c: Include msvc-inval.h.
22555         (_setmaxstdio_nothrow): New function.
22556         (_setmaxstdio): Redefine it.
22557         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
22558         * modules/getdtablesize (Depends-on): Add msvc-inval.
22559         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
22561 2011-09-23  Bruno Haible  <bruno@clisp.org>
22563         signal-h: Rename from signal.
22564         * modules/signal-h: Renamed from modules/signal.
22565         * modules/pthread_sigmask (Depends-on): Update.
22566         * modules/raise (Depends-on): Likewise.
22567         * modules/sigaction (Depends-on): Likewise.
22568         * modules/sigpipe (Depends-on): Likewise.
22569         * modules/sigprocmask (Depends-on): Likewise.
22570         * modules/sys_select (Depends-on): Likewise.
22571         * modules/signal-h-tests: Renamed from modules/signal-tests.
22572         (Files, Depends-on, Makefile.am): Update.
22573         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
22574         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
22575         (Files, Makefile.am): Update.
22576         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
22577         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
22578         * modules/signal: New placeholder file.
22579         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
22580         * doc/posix-headers/signal.texi: Update.
22581         * NEWS: Mention the change.
22583 2011-09-23  Bruno Haible  <bruno@clisp.org>
22585         sigprocmask: Avoid crashes through signal() on MSVC 9.
22586         * lib/sigprocmask.c: Include msvc-inval.h.
22587         (signal_nothrow): New function.
22588         (signal): Redefine it.
22589         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
22590         * modules/sigprocmask (Depends-on): Add msvc-inval.
22591         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
22593 2011-09-23  Bruno Haible  <bruno@clisp.org>
22595         Tests for module 'raise'.
22596         * modules/raise-tests: New file.
22597         * tests/test-raise.c: New file.
22599         raise: Support for MSVC.
22600         * lib/signal.in.h (raise): New declaration.
22601         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
22602         for native Windows platforms.
22603         * m4/raise.m4: New file.
22604         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
22605         HAVE_RAISE, REPLACE_RAISE.
22606         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
22607         REPLACE_RAISE.
22608         * modules/raise (Status, Notice): Remove fields.
22609         (Files): Add m4/raise.m4.
22610         (Depends-on): Add signal, msvc-inval.
22611         (configure.ac): Use the common idioms.
22612         (Maintainer): Add me.
22613         * tests/test-signal-c++.cc: Check the signature of raise.
22614         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
22616 2011-09-23  Bruno Haible  <bruno@clisp.org>
22618         pipe2: Fix compilation on pre-C99 compilers.
22619         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
22621 2011-09-23  Bruno Haible  <bruno@clisp.org>
22623         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
22624         * lib/msvc-nothrow.h: New file.
22625         * lib/msvc-nothrow.c: New file.
22626         * m4/msvc-nothrow.m4: New file.
22627         * modules/msvc-nothrow: New file.
22628         * lib/dup2.c: Include msvc-nothrow.h.
22629         (rpl_dup2): No need to protect _get_osfhandle call here.
22630         * lib/accept4.c: Include msvc-nothrow.h.
22631         * lib/error.c: Likewise.
22632         * lib/fcntl.c: Likewise.
22633         * lib/lseek.c: Likewise.
22634         * lib/nonblocking.c: Likewise.
22635         * lib/poll.c: Likewise.
22636         * lib/read.c: Likewise.
22637         * lib/select.c: Likewise.
22638         * lib/sockets.h: Likewise.
22639         * lib/sockets.c: Likewise.
22640         * lib/stdio-read.c: Likewise.
22641         * lib/stdio-write.c: Likewise.
22642         * lib/write.c: Likewise.
22643         * lib/w32sock.h: Likewise.
22644         * lib/w32spawn.h: Likewise.
22645         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
22646         * lib/fsync.c: Likewise.
22647         * lib/isapipe.c: Likewise.
22648         * modules/dup2 (Depends-on): Add msvc-nothrow.
22649         * modules/accept4 (Depends-on): Likewise.
22650         * modules/error (Depends-on): Likewise.
22651         * modules/fcntl (Depends-on): Likewise.
22652         * modules/lseek (Depends-on): Likewise.
22653         * modules/nonblocking (Depends-on): Likewise.
22654         * modules/poll (Depends-on): Likewise.
22655         * modules/read (Depends-on): Likewise.
22656         * modules/select (Depends-on): Likewise.
22657         * modules/sockets (Depends-on): Likewise.
22658         * modules/sigpipe (Depends-on): Likewise.
22659         * modules/write (Depends-on): Likewise.
22660         * modules/accept (Depends-on): Likewise.
22661         * modules/bind (Depends-on): Likewise.
22662         * modules/connect (Depends-on): Likewise.
22663         * modules/gethostname (Depends-on): Likewise.
22664         * modules/getpeername (Depends-on): Likewise.
22665         * modules/getsockname (Depends-on): Likewise.
22666         * modules/getsockopt (Depends-on): Likewise.
22667         * modules/ioctl (Depends-on): Likewise.
22668         * modules/listen (Depends-on): Likewise.
22669         * modules/recv (Depends-on): Likewise.
22670         * modules/recvfrom (Depends-on): Likewise.
22671         * modules/send (Depends-on): Likewise.
22672         * modules/sendto (Depends-on): Likewise.
22673         * modules/setsockopt (Depends-on): Likewise.
22674         * modules/shutdown (Depends-on): Likewise.
22675         * modules/socket (Depends-on): Likewise.
22676         * modules/execute (Depends-on): Likewise.
22677         * modules/spawn-pipe (Depends-on): Likewise.
22678         * modules/flock (Depends-on): Likewise.
22679         * modules/fsync (Depends-on): Likewise.
22680         * modules/isapipe (Depends-on): Likewise.
22681         * tests/test-cloexec.c: Include msvc-nothrow.h.
22682         * tests/test-dup-safer.c: Likewise.
22683         * tests/test-dup2.c: Likewise.
22684         * tests/test-dup3.c: Likewise.
22685         * tests/test-fcntl.c: Likewise.
22686         * tests/test-pipe.c: Likewise.
22687         * tests/test-pipe2.c: Likewise.
22688         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
22689         * modules/unistd-safer-tests (Depends-on): Likewise.
22690         * modules/dup2-tests (Depends-on): Likewise.
22691         * modules/dup3-tests (Depends-on): Likewise.
22692         * modules/fcntl-tests (Depends-on): Likewise.
22693         * modules/pipe-posix-tests (Depends-on): Likewise.
22694         * modules/pipe2-tests (Depends-on): Likewise.
22696 2011-09-23  Bruno Haible  <bruno@clisp.org>
22698         dup2: Make code more maintainable.
22699         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
22700         (rpl_dup2): Use it.
22701         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
22702         * modules/dup2 (configure.ac): Invoke it.
22703         Reported by Paul Eggert.
22705 2011-09-23  Bruno Haible  <bruno@clisp.org>
22707         msvc-inval: Fix compilation error.
22708         * lib/msvc-inval.h: Include <excpt.h>.
22710 2011-09-23  Bruno Haible  <bruno@clisp.org>
22712         mkdir: Tweak for MSVC 9.
22713         * lib/sys_stat.in.h: Update comments.
22714         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
22716         Tests for module 'chdir'.
22717         * modules/chdir-tests: New file.
22718         * tests/test-chdir.c: New file.
22720         New module 'chdir'.
22721         * modules/chdir: New file.
22722         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
22723         (chdir): New declaration.
22724         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
22725         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
22726         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
22727         * tests/test-unistd-c++.cc: Check signature of chdir.
22728         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
22729         * modules/chdir-long (Depends-on): Add chdir.
22730         * modules/fchdir (Depends-on): Likewise.
22731         * modules/rename (Depends-on): Likewise.
22732         * modules/savewd (Depends-on): Likewise.
22734         rmdir: Support for mingw, MSVC 9.
22735         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
22736         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
22738         getcwd: Tweak for MSVC 9.
22739         * lib/unistd.in.h: Update comments.
22740         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
22742 2011-09-22  Bruno Haible  <bruno@clisp.org>
22744         strerror_r-posix: Avoid a link error on MSVC.
22745         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
22746         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
22748 2011-09-22  Bruno Haible  <bruno@clisp.org>
22750         select: Avoid link errors on MSVC.
22751         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
22752         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
22753         * modules/pselect (Link): Likewise.
22754         * NEWS: Mention the change.
22755         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
22756         test-select-stdin against $(LIB_SELECT).
22757         * modules/pselect-tests (Makefile.am): Link test-pselect against
22758         $(LIB_SELECT).
22760 2011-09-22  Bruno Haible  <bruno@clisp.org>
22762         select: Avoid compilation error on MSVC.
22763         * lib/select.c: Don't include <stdbool.h>.
22765 2011-09-21  Bruno Haible  <bruno@clisp.org>
22767         Consolidate all uses of PATH_MAX in *.m4 files.
22768         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
22769         macros.
22770         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
22771         and gl_PATHMAX_SNIPPET.
22772         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
22773         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
22774         * modules/chdir-long (Files): Add m4/pathmax.m4.
22775         * modules/getcwd (Files): Likewise.
22777 2011-09-21  Bruno Haible  <bruno@clisp.org>
22779         ftruncate: Un-deprecate, concentrate on Win32 support.
22780         * modules/ftruncate (Status, Notice): Remove sections.
22781         (Depends-on): Add largefile.
22782         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
22783         non-mingw platforms.
22784         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
22785         include <io.h>.
22786         * modules/perror-tests (Depends-on): Add ftruncate.
22787         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
22788         'ftruncate' module.
22790 2011-09-21  Bruno Haible  <bruno@clisp.org>
22792         Add dependencies to new dirent related modules.
22793         * modules/opendir (Depends-on): Add closedir.
22794         * modules/getcwd (Depends-on): Add opendir, closedir.
22795         * modules/dirent-safer-tests (Depends-on): Likewise.
22796         * modules/fdopendir-tests (Depends-on): Likewise.
22797         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
22798         * modules/renameat-tests (Depends-on): Likewise.
22800 2011-09-21  Bruno Haible  <bruno@clisp.org>
22802         opendir: Avoid compilation error on mingw.
22803         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
22804         * modules/opendir (Depends-on): Add unistd.
22806 2011-09-21  Bruno Haible  <bruno@clisp.org>
22808         ftruncate tests: Avoid a test failure on mingw.
22809         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
22811 2011-09-21  Bruno Haible  <bruno@clisp.org>
22813         select tests: Avoid test failures on OSF/1 5.1 and mingw.
22814         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
22815         native Windows.
22817 2011-09-21  Bruno Haible  <bruno@clisp.org>
22819         New module 'fdopen'.
22820         * lib/stdio.in.h (fdopen): New declaration.
22821         * lib/fdopen.c: New file.
22822         * m4/fdopen.m4: New file.
22823         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
22824         REPLACE_FDOPEN.
22825         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
22826         REPLACE_FDOPEN.
22827         * modules/fdopen: New file.
22828         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
22829         * tests/test-stdio-c++.cc: Check signature of fdopen.
22830         * doc/posix-functions/fdopen.texi: Mention the new module.
22832 2011-09-21  Bruno Haible  <bruno@clisp.org>
22834         unlockpt tests: Avoid test failure on NetBSD 5.1.
22835         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
22836         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
22838 2011-09-21  Bruno Haible  <bruno@clisp.org>
22840         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
22841         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
22842         * tests/test-getlogin_r.c (main): Likewise.
22844 2011-09-20  Bruno Haible  <bruno@clisp.org>
22846         time tests: Don't require pid_t.
22847         * doc/posix-headers/time.texi: Revert last change.
22848         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
22849         * tests/test-time.c: Comment out the check for pid_t.
22851 2011-09-20  Bruno Haible  <bruno@clisp.org>
22853         fsync tests: Avoid a test failure on mingw.
22854         * tests/test-fsync.c (main): Allow a failure with EIO.
22856 2011-09-20  Bruno Haible  <bruno@clisp.org>
22858         euidaccess: Update comments.
22859         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
22861 2011-09-20  Bruno Haible  <bruno@clisp.org>
22863         Ensure EBADF returns for socket functions on mingw.
22864         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
22865         descriptor is invalid.
22866         * lib/bind.c (rpl_bind): Likewise.
22867         * lib/connect.c (rpl_connect): Likewise.
22868         * lib/getpeername.c (rpl_getpeername): Likewise.
22869         * lib/getsockname.c (rpl_getsockname): Likewise.
22870         * lib/getsockopt.c (rpl_getsockopt): Likewise.
22871         * lib/listen.c (rpl_listen): Likewise.
22872         * lib/recv.c (rpl_recv): Likewise.
22873         * lib/recvfrom.c (rpl_recvfrom): Likewise.
22874         * lib/send.c (rpl_send): Likewise.
22875         * lib/sendto.c (rpl_sendto): Likewise.
22876         * lib/setsockopt.c (rpl_setsockopt): Likewise.
22877         * lib/shutdown.c (rpl_shutdown): Likewise.
22879 2011-09-20  Bruno Haible  <bruno@clisp.org>
22881         select tests: EBADF tests.
22882         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
22883         test_bad_fd): New functions.
22884         (test_function): Invoke also test_bad_fd.
22886 2011-09-20  Bruno Haible  <bruno@clisp.org>
22888         Tests for module 'posix_spawn_file_actions_addopen.
22889         * modules/posix_spawn_file_actions_addopen-tests: New file.
22890         * tests/test-posix_spawn_file_actions_addopen.c: New file.
22892         Tests for module 'posix_spawn_file_actions_adddup2'.
22893         * modules/posix_spawn_file_actions_adddup2-tests: New file.
22894         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
22896         Tests for module 'posix_spawn_file_actions_addclose'.
22897         * modules/posix_spawn_file_actions_addclose-tests: New file.
22898         * tests/test-posix_spawn_file_actions_addclose.c: New file.
22900 2011-09-20  Bruno Haible  <bruno@clisp.org>
22902         Tests for module 'unlockpt'.
22903         * modules/unlockpt-tests: New file.
22904         * tests/test-unlockpt.c: New file.
22905         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
22907         Tests for module 'grantpt'.
22908         * modules/grantpt-tests: New file.
22909         * tests/test-grantpt.c: New file.
22910         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
22912 2011-09-20  Bruno Haible  <bruno@clisp.org>
22914         freopen tests: EBADF tests.
22915         * tests/test-freopen.c: Include errno.h, unistd.h.
22916         (main): Add tests for EBADF, commented out for the moment.
22918         fclose tests: EBADF tests.
22919         * tests/test-fclose.c (main): Add tests for EBADF.
22921         fflush tests: EBADF tests.
22922         * tests/test-fflush.c: Include errno.h, macros.h.
22923         (main): Add tests for EBADF.
22925         ftello tests: EBADF tests.
22926         * tests/test-ftello4.sh: New file.
22927         * tests/test-ftello4.c: New file.
22928         * modules/ftello-tests (Files): Add them.
22929         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
22931         fseeko tests: EBADF tests.
22932         * tests/test-fseeko4.sh: New file.
22933         * tests/test-fseeko4.c: New file.
22934         * modules/fseeko-tests (Files): Add them.
22935         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
22937         Tests for function fputc().
22938         * modules/fputc-tests: New file.
22939         * tests/test-fputc.c: New file.
22940         * modules/stdio-tests (Depends-on): Add fputc-tests.
22942         Tests for function fgetc().
22943         * modules/fgetc-tests: New file.
22944         * tests/test-fgetc.c: New file.
22945         * modules/stdio-tests (Depends-on): Add fgetc-tests.
22947         Tests for function fdopen().
22948         * modules/fdopen-tests: New file.
22949         * tests/test-fdopen.c: New file.
22950         * modules/stdio-tests (Depends-on): Add fdopen-tests.
22952         Tests for module 'vdprintf'.
22953         * modules/vdprintf-tests: New file.
22954         * tests/test-vdprintf.c: New file.
22956         Tests for module 'dprintf'.
22957         * modules/dprintf-tests: New file.
22958         * tests/test-dprintf.c: New file.
22960 2011-09-20  Bruno Haible  <bruno@clisp.org>
22962         Tests for module 'ioctl'.
22963         * modules/ioctl-tests: New file.
22964         * tests/test-ioctl.c: New file.
22966 2011-09-20  Bruno Haible  <bruno@clisp.org>
22968         fcntl tests: EBADF tests.
22969         * tests/test-fcntl.c (main): Add more tests for EBADF.
22971 2011-09-20  Bruno Haible  <bruno@clisp.org>
22973         utimensat tests: EBADF tests.
22974         * tests/test-utimensat.c (main): Add tests for EBADF.
22976         renameat tests: EBADF tests.
22977         * tests/test-renameat.c (main): Add tests for EBADF.
22979         mkfifoat tests: EBADF tests.
22980         * tests/test-mkfifoat.c (main): Add tests for EBADF.
22982         readlinkat tests: EBADF tests.
22983         * tests/test-readlinkat.c (main): Add tests for EBADF.
22985         symlinkat tests: EBADF tests.
22986         * tests/test-symlinkat.c (main): Add tests for EBADF.
22988         linkat tests: EBADF tests.
22989         * tests/test-linkat.c (main): Add tests for EBADF.
22991         Tests for module 'faccessat'.
22992         * modules/faccessat-tests: New file.
22993         * tests/test-faccessat.c: New file.
22995         fdopendir tests: EBADF tests.
22996         * tests/test-fdopendir.c (main): Add more tests for EBADF.
22998         openat tests: EBADF tests.
22999         * tests/test-fchownat.c (main): Add tests for EBADF.
23000         * tests/test-fstatat.c (main): Likewise.
23001         * tests/test-mkdirat.c (main): Likewise.
23002         * tests/test-openat.c (main): Likewise.
23003         * tests/test-unlinkat.c (main): Likewise.
23004         * tests/test-fchmodat.c: New file.
23005         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
23006         (Makefile.am): Also run 'test-fchmodat'.
23008 2011-09-20  Bruno Haible  <bruno@clisp.org>
23010         utimens, futimens, fdutimensat tests: EBADF tests.
23011         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
23013         Tests for function fstat().
23014         * modules/fstat-tests: New file.
23015         * tests/test-fstat.c: New file.
23016         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
23018 2011-09-20  Bruno Haible  <bruno@clisp.org>
23020         test-ttyname_r tests: EBADF tests.
23021         * tests/test-ttyname_r.c (main): Add tests for EBADF.
23023         Tests for module 'isatty'.
23024         * modules/isatty-tests: New file.
23025         * tests/test-isatty.c: New file.
23027         Tests for module 'write'.
23028         * modules/write-tests: New file.
23029         * tests/test-write.c: New file.
23031         Tests for module 'read'.
23032         * modules/read-tests: New file.
23033         * tests/test-read.c: New file.
23035         pwrite tests: EBADF tests.
23036         * tests/test-pwrite.c (main): Add tests for EBADF.
23038         pread tests: EBADF tests.
23039         * tests/test-pread.c (main): Add tests for EBADF.
23041         lseek tests: EBADF tests.
23042         * tests/test-lseek.c (main): Add more tests for EBADF.
23044         Tests for module 'ftruncate'.
23045         * modules/ftruncate-tests: New file.
23046         * tests/test-ftruncate.sh: New file.
23047         * tests/test-ftruncate.c: New file.
23049         fsync tests: EBADF tests.
23050         * tests/test-fsync.c (main): Add more tests for EBADF.
23052         fdatasync tests: EBADF tests.
23053         * tests/test-fdatasync.c (main): Add more tests for EBADF.
23055         Tests for module 'fchown'.
23056         * modules/fchown-tests: New file.
23057         * tests/test-fchown.c: New file.
23059         Tests for module 'fchmod'.
23060         * modules/fchmod-tests: New file.
23061         * tests/test-fchmod.c: New file.
23063         fchdir tests: EBADF tests.
23064         * tests/test-fchdir.c (main): Add more tests for EBADF.
23066         dup2 tests: EBADF tests.
23067         * tests/test-dup2.c (main): Add more tests for EBADF.
23069         Tests for module 'dup'.
23070         * modules/dup-tests: New file.
23071         * tests/test-dup.c: New file.
23073         Tests for module 'close'.
23074         * modules/close-tests: New file.
23075         * tests/test-close.c: New file.
23077 2011-09-20  Bruno Haible  <bruno@clisp.org>
23079         Tests for module 'shutdown'.
23080         * modules/shutdown-tests: New file.
23081         * tests/test-shutdown.c: New file.
23083         Tests for module 'setsockopt'.
23084         * modules/setsockopt-tests: New file.
23085         * tests/test-setsockopt.c: New file.
23087         Tests for module 'sendto'.
23088         * modules/sendto-tests: New file.
23089         * tests/test-sendto.c: New file.
23091         Tests for module 'send'.
23092         * modules/send-tests: New file.
23093         * tests/test-send.c: New file.
23095         Tests for module 'recvfrom'.
23096         * modules/recvfrom-tests: New file.
23097         * tests/test-recvfrom.c: New file.
23099         Tests for module 'recv'.
23100         * modules/recv-tests: New file.
23101         * tests/test-recv.c: New file.
23103         Tests for module 'listen'.
23104         * modules/listen-tests: New file.
23105         * tests/test-listen.c: New file.
23107         Tests for module 'getsockopt'.
23108         * modules/getsockopt-tests: New file.
23109         * tests/test-getsockopt.c: New file.
23111         Tests for module 'getsockname'.
23112         * modules/getsockname-tests: New file.
23113         * tests/test-getsockname.c: New file.
23115         Tests for module 'getpeername'.
23116         * modules/getpeername-tests: New file.
23117         * tests/test-getpeername.c: New file.
23119         Tests for module 'connect'.
23120         * modules/connect-tests: New file.
23121         * tests/test-connect.c: New file.
23123         Tests for module 'bind'.
23124         * modules/bind-tests: New file.
23125         * tests/test-bind.c: New file.
23127         accept4 tests: Fix for native Windows.
23128         * tests/test-accept4.c: Include sockets.h.
23129         (main): Invoke gl_sockets_startup.
23130         * modules/accept4-tests (Depends-on): Add sockets.
23132         accept tests: Fix for native Windows.
23133         * tests/test-accept.c: Include sockets.h.
23134         (main): Invoke gl_sockets_startup.
23135         * modules/accept-tests (Depends-on): Add sockets.
23137 2011-09-19  Bruno Haible  <bruno@clisp.org>
23139         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
23140         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
23141         do...while(0).
23142         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
23143         Suggested by Paul Eggert.
23145 2011-09-19  Bruno Haible  <bruno@clisp.org>
23147         sched: Ensure pid_t is defined.
23148         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
23149         not define pid_t.
23150         * lib/sched.in.h: Include <sys/types.h>.
23151         * doc/posix-headers/sched.texi: Mention the pid_t problem.
23152         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23154 2011-09-19  Bruno Haible  <bruno@clisp.org>
23156         msvc-inval: Ensure the entire expansion is a single statement.
23157         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
23158         of braces.
23160 2011-09-19  Jim Meyering  <meyering@redhat.com>
23162         tests: use printf, not echo in init.sh's warn_ function
23163         * tests/init.sh (warn_): Use printf, not echo.  The latter would
23164         misbehave when given strings containing a backslash or starting
23165         with e.g., -n.  James Youngman suggested setting IFS.
23167 2011-09-19  Eric Blake  <eblake@redhat.com>
23169         futimens: enhance test
23170         * tests/test-futimens.h (test_futimens): Also check for EBADF on
23171         closed non-negative fd.
23173         date: accept 'hence' as opposite of 'ago'
23174         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
23175         * tests/test-parse-datetime.c (main): Enhance test.
23176         Suggested by Jesse Wilson.
23178 2011-09-19  Jim Meyering  <meyering@redhat.com>
23180         getcwd: don't fail in a deep directory on a system without openat
23181         Before this change, getcwd would fail when called from a directory
23182         of depth PATH_MAX / 3 or greater.  That was due to the fact that
23183         the non-openat implementation used "..", "../..", "../../..", etc.
23184         to access ancestor directories.  With too many, that string would
23185         be longer than PATH_MAX.
23186         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
23187         using gnulib's openat replacement.
23188         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
23189         we're using the replacement function.
23191 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
23193         maint.mk: avoid warnings from perl about missing files
23194         * top/maint.mk (def_sym_regex): Ignore files listed in
23195         $(gl_other_headers_) that do not exist, say because a project
23196         does not use a corresponding module.
23198 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
23200         stat: use pathmax.h only if needed
23201         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
23202         This is better for Emacs, which does not have a mingw port and
23203         therefore can avoid the pathmax module.
23205         utimens: remove dependency on dup2
23206         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
23207         to work around the Linux kernel bug.
23208         * modules/utimens (Depends-on): Remove dup2.
23210 2011-09-18  Bruno Haible  <bruno@clisp.org>
23212         inet_ntop, inet_pton: Look for it also in libresolv.
23213         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
23214         libnsl, search for it in libresolv.
23215         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
23216         Needed on Solaris 7.
23218 2011-09-18  Bruno Haible  <bruno@clisp.org>
23220         accept, accept4 tests: Avoid link error on Solaris.
23221         * modules/accept-tests (Makefile.am): Link test-accept against
23222         $(LIBSOCKET).
23223         * modules/accept4-tests (Makefile.am): Link test-accept4 against
23224         $(LIBSOCKET).
23226         accept4: Avoid link error on Solaris.
23227         * modules/accept4 (Link): New section.
23229         socket functions: Avoid link errors on Solaris.
23230         * modules/accept (Depends-on): Add socketlib.
23231         (Link): New section.
23232         * modules/bind (Depends-on): Add socketlib.
23233         (Link): New section.
23234         * modules/connect (Depends-on): Add socketlib.
23235         (Link): New section.
23236         * modules/getpeername (Depends-on): Add socketlib.
23237         (Link): New section.
23238         * modules/getsockname (Depends-on): Add socketlib.
23239         (Link): New section.
23240         * modules/getsockopt (Depends-on): Add socketlib.
23241         (Link): New section.
23242         * modules/listen (Depends-on): Add socketlib.
23243         (Link): New section.
23244         * modules/recv (Depends-on): Add socketlib.
23245         (Link): New section.
23246         * modules/recvfrom (Depends-on): Add socketlib.
23247         (Link): New section.
23248         * modules/send (Depends-on): Add socketlib.
23249         (Link): New section.
23250         * modules/sendto (Depends-on): Add socketlib.
23251         (Link): New section.
23252         * modules/setsockopt (Depends-on): Add socketlib.
23253         (Link): New section.
23254         * modules/shutdown (Depends-on): Add socketlib.
23255         (Link): New section.
23256         * modules/socket (Depends-on): Add socketlib.
23257         (Link): New section.
23259 2011-09-18  Bruno Haible  <bruno@clisp.org>
23261         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
23262         * tests/test-ptsname.c (main): Terminate the test if it takes longer
23263         than 5 seconds.
23264         * modules/ptsname-tests (configure.ac): Test for alarm.
23266 2011-09-18  Bruno Haible  <bruno@clisp.org>
23268         posix_spawn_file_actions_add*: Fix module dependencies.
23269         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
23270         posix_spawn_file_actions_init.
23271         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
23272         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
23274 2011-09-18  Bruno Haible  <bruno@clisp.org>
23276         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
23277         * tests/test-rename.h (test_rename): Allow error code EEXIST.
23278         * tests/test-renameat.c (main): Likewise.
23280 2011-09-18  Bruno Haible  <bruno@clisp.org>
23282         Tests for module 'accept4'.
23283         * modules/accept4-tests: New file.
23284         * tests/test-accept4.c: New file.
23286 2011-09-18  Bruno Haible  <bruno@clisp.org>
23288         Tests for module 'accept'.
23289         * modules/accept-tests: New file.
23290         * tests/test-accept.c: New file.
23292 2011-09-18  Bruno Haible  <bruno@clisp.org>
23294         dup2: Support for MSVC.
23295         * lib/dup2.c: Include msvc-inval.h.
23296         (rpl_dup2): Handle invalid parameter notifications during dup2 and
23297         _get_osfhandle calls.
23298         * modules/dup2 (Depends-on): Add msvc-inval.
23299         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
23301         New module 'msvc-inval'.
23302         * lib/msvc-inval.h: New file.
23303         * lib/msvc-inval.c: New file.
23304         * m4/msvc-inval.m4: New file.
23305         * modules/msvc-inval: New file.
23307 2011-09-17  Bruno Haible  <bruno@clisp.org>
23309         Tests for module 'pclose'.
23310         * modules/pclose-tests: New file.
23312         New module 'pclose'.
23313         * lib/stdio.in.h (pclose): New declaration.
23314         * lib/pclose.c: New file.
23315         * m4/pclose.m4: New file.
23316         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
23317         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
23318         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
23319         * modules/pclose: New file.
23320         * modules/popen-tests (Depends-on): Add pclose.
23321         * modules/popen-safer-tests (Depends-on): Likewise.
23322         * doc/posix-functions/pclose.texi: Mention the new module.
23324 2011-09-17  Bruno Haible  <bruno@clisp.org>
23326         popen: Support for MSVC.
23327         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
23328         * lib/popen.c (popen): Provide alternate definition for native Windows.
23329         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
23330         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
23331         * modules/popen (Depends-on, configure.ac): Update condition.
23332         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
23333         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
23334         fixed.
23336 2011-09-17  Bruno Haible  <bruno@clisp.org>
23338         isnanl, isnand, isnanf: Work around MSVC bug.
23339         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
23341 2011-09-17  Bruno Haible  <bruno@clisp.org>
23343         sys_socket tests: Fix recent mistake.
23344         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
23346 2011-09-17  Bruno Haible  <bruno@clisp.org>
23348         putenv: Support for MSVC.
23349         * modules/putenv (Depends-on): Add environ.
23350         * lib/putenv.c (environ): Disable declaration.
23351         * lib/unistd.in.h: Update comment.
23353 2011-09-17  Bruno Haible  <bruno@clisp.org>
23355         math: Avoid macro redefinition warnings on MSVC.
23356         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
23357         Undefine before redefining.
23359 2011-09-17  Bruno Haible  <bruno@clisp.org>
23361         doc: Mention functions which are declared as macros.
23362         * doc/posix-functions/*[fl].texi: Mention that some functions are
23363         defined as macros with arguments only.
23365 2011-09-17  Bruno Haible  <bruno@clisp.org>
23367         Add dependencies to new dirent related modules.
23368         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
23369         * modules/fts (Depends-on): Likewise.
23370         * modules/glob (Depends-on): Likewise.
23371         * modules/savedir (Depends-on): Likewise.
23372         * modules/scandir (Depends-on): Likewise.
23373         * modules/dirent-safer (Depends-on): Add opendir, closedir.
23374         * modules/fdopendir (Depends-on): Add opendir.
23376 2011-09-17  Bruno Haible  <bruno@clisp.org>
23378         inet_pton: Support for MSVC on Windows Vista or newer.
23379         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
23380         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
23381         HAVE_DECL_INET_PTON is defined.
23382         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
23383         On platforms with <winsock2.h>, test whether inet_pton is declared in
23384         <ws2tcpip.h>. If so, arrange to replace it.
23385         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
23386         REPLACE_INET_PTON.
23387         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
23388         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
23389         (Depends-on, configure.ac): Update condition.
23390         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
23392 2011-09-17  Bruno Haible  <bruno@clisp.org>
23394         inet_ntop: Support for MSVC on Windows Vista or newer.
23395         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
23396         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
23397         HAVE_DECL_INET_NTOP is defined.
23398         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
23399         On platforms with <winsock2.h>, test whether inet_ntop is declared in
23400         <ws2tcpip.h>. If so, arrange to replace it.
23401         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
23402         REPLACE_INET_NTOP.
23403         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
23404         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
23405         (Depends-on, configure.ac): Update condition.
23406         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
23408 2011-09-16  Eric Blake  <eblake@redhat.com>
23410         test-fsync: yet another enhancement
23411         * tests/test-fsync.c (main): Also test behavior on read-only text
23412         file.
23414 2011-09-16  Bruno Haible  <bruno@clisp.org>
23416         Enhance fsync, fdatasync tests.
23417         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
23418         * tests/test-fdatasync.c (main): Likewise.
23420 2011-09-16  Bruno Haible  <bruno@clisp.org>
23422         Support for MSVC compiler: Ensure mode_t gets defined.
23423         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
23424         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
23425         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
23426         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
23427         * tests/test-fcntl-h.c: Check that mode_t is defined.
23428         * tests/test-sys_stat.c: Likewise.
23429         * tests/test-sys_types.c: Likewise.
23430         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
23431         * doc/posix-headers/sys_stat.texi: Likewise.
23432         * doc/posix-headers/sys_types.texi: Likewise.
23434 2011-09-16  Bruno Haible  <bruno@clisp.org>
23436         sys_stat: Support for MSVC.
23437         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
23438         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
23439         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
23440         MSVC.
23442 2011-09-16  Bruno Haible  <bruno@clisp.org>
23444         Support for MSVC compiler: Ensure off_t gets defined.
23445         * lib/unistd.in.h: Include <sys/types.h>.
23446         * tests/test-fcntl-h.c: Check that off_t is defined.
23447         * tests/test-sys_stat.c: Likewise.
23448         * tests/test-sys_types.c: Likewise.
23450 2011-09-16  Eric Blake  <eblake@redhat.com>
23452         fdatasync: port to Solaris
23453         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
23454         * modules/fdatasync (Link): Document it.
23455         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
23457         fdatasync: port to MacOS X 10.7
23458         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
23459         declared.
23460         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
23461         * modules/unistd (Makefile.am): Substitute it.
23462         * lib/unistd.in.h (fdatasync): Declare on MacOS.
23463         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
23465         fdatasync: minor improvements
23466         * modules/fdatasync (Depends-on): Add condition for fsync.
23467         * lib/fdatasync.c (fdatasync): Add comment.
23468         * tests/test-unistd-c++.cc: Test fdatasync.
23470         unistd: update refs to newer POSIX
23471         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
23472         Suggested by Bruno Haible.
23474         fdatasync: new module
23475         * modules/fsync (Description): Document difference to fdatasync.
23476         * modules/fdatasync: New module.
23477         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
23478         * lib/fdatasync.c (fdatasync): Likewise.
23479         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
23480         defaults.
23481         * modules/unistd (Makefile.am): Set witnesses.
23482         * lib/unistd.in.h (fdatasync): Declare.
23483         * MODULES.html.sh: Document it.
23484         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
23485         * modules/fdatasync-tests: New test.
23486         * tests/test-fdatasync.c: Likewise.
23488 2011-09-16  Eric Blake  <eblake@redhat.com>
23490         test-fsync: enhance tests
23491         * modules/fsync-tests (Depends-on): Add errno, for mingw.
23492         * tests/test-fsync.c (main): Enhance test.
23494 2011-09-15  Bruno Haible  <bruno@clisp.org>
23496         Support for MSVC compiler: Ensure ssize_t gets defined.
23497         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
23498         * doc/posix-headers/stdio.texi: Likewise.
23499         * modules/stdio (Depends-on): Add ssize_t.
23500         * modules/sys_socket (Depends-on): Likewise.
23501         * modules/sys_types (Depends-on): Likewise.
23502         * modules/sys_uio (Depends-on): Likewise.
23503         * modules/unistd (Depends-on): Likewise.
23504         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
23505         * tests/test-sys_types.c: Check that ssize_t is defined.
23507 2011-09-14  Bruno Haible  <bruno@clisp.org>
23509         Avoid using #, the m4 comment starter character, near brackets.
23510         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
23511         delimiter character in sed expressions.
23512         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
23513         Suggested by Eric Blake.
23515         Properly quote AC_CHECK_DECLS' 4th argument.
23516         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
23517         argument.
23518         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
23519         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
23520         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23521         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
23522         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
23523         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
23524         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
23525         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
23526         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
23527         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
23528         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
23529         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
23530         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
23531         * m4/isinf.m4 (gl_ISINF): Likewise.
23532         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
23533         * m4/readutmp.m4 (gl_READUTMP): Likewise.
23534         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
23535         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
23536         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
23537         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
23538         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
23539         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
23540         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
23541         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
23542         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
23543         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
23544         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
23545         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
23546         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23547         Reported by Eric Blake.
23549         Properly quote AC_CHECK_DECL's 4th argument.
23550         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
23551         argument.
23552         * m4/argp.m4 (gl_ARGP): Likewise.
23553         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
23554         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
23555         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
23556         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
23557         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
23558         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
23559         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
23560         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
23561         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
23562         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
23563         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
23564         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
23565         Reported by Eric Blake.
23567 2011-09-14  Eric Blake  <eblake@redhat.com>
23569         opendir: avoid compile warning
23570         * lib/opendir.c (includes): Always include errno.h.
23571         Reported by Tatsuro MATSUOKA.
23573 2011-09-14  Jim Meyering  <meyering@redhat.com>
23575         maint.mk: sc_tight_scope: propagate failure from sub-make
23576         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
23577         Reported by Martin von Gagern.
23579 2011-09-13  Bruno Haible  <bruno@clisp.org>
23581         tempname: Support for MSVC.
23582         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
23583         MSVC.
23584         * modules/tempname (Depends-on): Add fcntl-h.
23586 2011-09-13  Bruno Haible  <bruno@clisp.org>
23588         sys_time: Support for MSVC.
23589         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
23590         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
23591         include <winsock2.h>.
23592         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
23593         function declarations that collide with POSIX.
23594         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
23595         (Makefile.am): Substitute HAVE_WINSOCK2_H.
23597 2011-09-13  Bruno Haible  <bruno@clisp.org>
23599         stat: Support for MSVC.
23600         * lib/stat.c: Include pathmax.h.
23601         * modules/stat (Depends-on): Add pathmax.
23603         pathmax: Support for native Windows.
23604         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
23606 2011-09-12  Bruno Haible  <bruno@clisp.org>
23608         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
23609         * lib/dirent.in.h (struct dirent): New type.
23610         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
23611         DT_WHT): New macros.
23612         (DIR): New type.
23613         (opendir, closedir): Declare only if the module 'opendir' is enabled.
23614         (readdir, rewinddir): New declarations.
23615         * lib/dirent-private.h: New file.
23616         * lib/opendir.c: New file.
23617         * lib/readdir.c: New file.
23618         * lib/rewinddir.c: New file.
23619         * lib/closedir.c: New file.
23620         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
23621         * m4/opendir.m4: New file.
23622         * m4/readdir.m4: New file.
23623         * m4/rewinddir.m4: New file.
23624         * m4/closedir.m4: New file.
23625         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
23626         REPLACE_CLOSEDIR here.
23627         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
23628         readdir, rewinddir are declared.
23629         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
23630         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
23631         HAVE_REWINDDIR, HAVE_CLOSEDIR.
23632         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
23633         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
23634         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
23635         * modules/opendir: New file.
23636         * modules/readdir: New file.
23637         * modules/rewinddir: New file.
23638         * modules/closedir: New file.
23639         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
23640         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
23641         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
23642         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
23643         * NEWS: Mention the 'fchdir' change.
23645 2011-09-11  Bruno Haible  <bruno@clisp.org>
23647         asm-underscore.m4: Support for MSVC.
23648         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
23649         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
23651 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
23653         Doc about crypt functions.
23654         * doc/posix-functions/crypt.texi: Expand range of glibc versions
23655         needing for _GNU_SOURCE to get crypt.
23656         * doc/posix-functions/encrypt.texi: Likewise.
23657         * doc/posix-functions/setkey.texi: Likewise.
23659 2011-09-11  Bruno Haible  <bruno@clisp.org>
23661         doc: Update regarding MSVC 9.
23662         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
23663         tested".
23664         * doc/posix-functions/*.texi: Update with info about MSVC 9.
23665         * doc/posix-headers/*.texi: Likewise.
23666         * doc/pastposix-functions/*.texi: Likewise.
23667         * doc/glibc-functions/*.texi: Likewise.
23668         * doc/glibc-headers/*.texi: Likewise.
23670 2011-09-11  Bruno Haible  <bruno@clisp.org>
23672         unistd et al.: Don't assume <unistd.h> exists.
23673         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
23674         does not exist.
23675         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
23676         exist. But include <stdlib.h>.
23677         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
23678         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
23679         symlink() does not exist.
23680         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
23681         include <io.h> instead.
23682         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
23683         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
23684         include <direct.h> instead.
23685         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
23686         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
23687         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
23688         <io.h> instead.
23689         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
23690         correctly if the system does not have hard links.
23691         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
23692         <direct.h> instead.
23693         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
23694         it when looking for function declarations.
23695         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
23696         <direct.h> and <io.h> instead.
23697         * doc/posix-headers/unistd.texi: More details about MSVC problem.
23699 2011-09-11  Bruno Haible  <bruno@clisp.org>
23701         strcase: Support for MSVC.
23702         * modules/strcase (Status, Notice): Remove obsoletion mark.
23703         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
23704         * doc/posix-functions/strncasecmp.texi: Likewise.
23706         strings: Don't assume <strings.h> exists.
23707         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
23708         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
23709         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
23710         * doc/posix-headers/strings.texi: Mention the MSVC problem.
23712 2011-09-11  Bruno Haible  <bruno@clisp.org>
23714         dirent: Don't assume <dirent.h> exists.
23715         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
23716         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
23717         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
23718         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
23720 2011-09-11  Bruno Haible  <bruno@clisp.org>
23722         Fix wint_t on MSVC.
23723         * lib/wchar.in.h (wint_t): On MSVC, override it.
23724         * lib/wctype.in.h (wint_t): Likewise.
23725         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
23726         MSVC.
23727         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
23728         * doc/posix-headers/wctype.texi: Likewise.
23730 2011-09-11  Bruno Haible  <bruno@clisp.org>
23732         sys_types: Fix typo.
23733         * lib/sys_types.in.h: Fix typo in comment.
23734         Reported by Paul Eggert.
23736         Support for MSVC compiler: Ensure size_t gets defined.
23737         * modules/strings (Depends-on): Add 'sys_types'.
23738         * modules/sys_uio (Depends-on): Likewise.
23739         * lib/sys_uio.in.h: Update comment.
23741         C++ tests for module 'sys_types'.
23742         * modules/sys_types-c++-tests: New file.
23743         * tests/test-sys_types-c++.cc: New file.
23745         Tests for module 'sys_types'.
23746         * modules/sys_types-tests: New file.
23747         * tests/test-sys_types.c: New file.
23749         New module 'sys_types'.
23750         * lib/sys_types.in.h: New file.
23751         * m4/sys_types_h.m4: New file.
23752         * modules/sys_types: New file.
23753         * doc/posix-headers/sys_types.texi: Mention the new module and the
23754         size_t problem on MSVC 9.
23756 2011-09-11  Bruno Haible  <bruno@clisp.org>
23758         Support for MSVC compiler: Avoid division by a literal 0.
23759         * lib/math.in.h (NAN): Define through a function call also on MSVC.
23760         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
23761         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
23762         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
23763         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
23764         * tests/infinity.h: New file.
23765         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
23766         on MSVC.
23767         * tests/test-ceilf1.c: Include infinity.h.
23768         (main): Use Infinityf.
23769         * tests/test-ceil1.c: Include infinity.h.
23770         (main): Use Infinityd.
23771         * tests/test-ceill.c: Include infinity.h.
23772         (main): Use Infinityl.
23773         * tests/test-dprintf-posix.c: Include infinity.h.
23774         (test_function): Use Infinityd.
23775         * tests/test-floorf1.c: Include infinity.h.
23776         (main): Use Infinityf.
23777         * tests/test-floor1.c: Include infinity.h.
23778         (main): Use Infinityd.
23779         * tests/test-floorl.c: Include infinity.h.
23780         (main): Use Infinityl.
23781         * tests/test-fprintf-posix.c: Include infinity.h.
23782         (test_function): Use Infinityd.
23783         * tests/test-frexp.c: Include infinity.h.
23784         (main): Use Infinityd.
23785         * tests/test-frexpl.c: Include infinity.h.
23786         (main): Use Infinityl.
23787         * tests/test-isfinite.c: Include infinity.h.
23788         (test_isfinitef): Use Infinityf.
23789         (test_isfinited): Use Infinityd.
23790         (test_isfinitel): Use Infinityl.
23791         * tests/test-isinf.c: Include infinity.h.
23792         (test_isinff): Use Infinityf.
23793         (test_isinfd): Use Infinityd.
23794         (test_isinfl): Use Infinityl.
23795         * tests/test-isnan.c: Include infinity.h.
23796         (test_float): Use Infinityf.
23797         (test_double): Use Infinityd.
23798         (test_long_double): Use Infinityl.
23799         * tests/test-isnanf.h: Include infinity.h.
23800         (main): Use Infinityf.
23801         * tests/test-isnand.h: Include infinity.h.
23802         (main): Use Infinityd.
23803         * tests/test-isnanl.h: Include infinity.h.
23804         (main): Use Infinityl.
23805         * tests/test-ldexpl.c: Include infinity.h.
23806         (main): Use Infinityl.
23807         * tests/test-printf-posix.h: Include infinity.h.
23808         (test_function): Use Infinityd.
23809         * tests/test-roundf1.c: Include infinity.h.
23810         (main): Use Infinityf.
23811         * tests/test-round1.c: Include infinity.h.
23812         (main): Use Infinityd.
23813         * tests/test-roundl.c: Include infinity.h.
23814         (main): Use Infinityl.
23815         * tests/test-signbit.c: Include infinity.h.
23816         (test_signbitf): Use Infinityf.
23817         (test_signbitd): Use Infinityd.
23818         (test_signbitl): Use Infinityl.
23819         * tests/test-snprintf-posix.h: Include infinity.h.
23820         (test_function): Use Infinityd, Infinityl.
23821         * tests/test-sprintf-posix.h: Include infinity.h.
23822         (test_function): Use Infinityd, Infinityl.
23823         * tests/test-truncf1.c: Include infinity.h.
23824         (main): Use Infinityf.
23825         * tests/test-trunc1.c: Include infinity.h.
23826         (main): Use Infinityd.
23827         * tests/test-truncl.c: Include infinity.h.
23828         (main): Use Infinityl.
23829         * tests/test-vasnprintf-posix.c: Include infinity.h.
23830         (test_function): Use Infinityd, Infinityl.
23831         * tests/test-vasprintf-posix.c: Include infinity.h.
23832         (test_function): Use Infinityd, Infinityl.
23833         * modules/ceilf-tests (Files): Add tests/infinity.h.
23834         * modules/ceil-tests (Files): Likewise.
23835         * modules/ceill-tests (Files): Likewise.
23836         * modules/dprintf-posix-tests (Files): Likewise.
23837         * modules/floorf-tests (Files): Likewise.
23838         * modules/floor-tests (Files): Likewise.
23839         * modules/floorl-tests (Files): Likewise.
23840         * modules/fprintf-posix-tests (Files): Likewise.
23841         * modules/frexp-tests (Files): Likewise.
23842         * modules/frexp-nolibm-tests (Files): Likewise.
23843         * modules/frexpl-tests (Files): Likewise.
23844         * modules/frexpl-nolibm-tests (Files): Likewise.
23845         * modules/isfinite-tests (Files): Likewise.
23846         * modules/isinf-tests (Files): Likewise.
23847         * modules/isnan-tests (Files): Likewise.
23848         * modules/isnanf-tests (Files): Likewise.
23849         * modules/isnanf-nolibm-tests (Files): Likewise.
23850         * modules/isnand-tests (Files): Likewise.
23851         * modules/isnand-nolibm-tests (Files): Likewise.
23852         * modules/isnanl-tests (Files): Likewise.
23853         * modules/isnanl-nolibm-tests (Files): Likewise.
23854         * modules/ldexpl-tests (Files): Likewise.
23855         * modules/printf-posix-tests (Files): Likewise.
23856         * modules/roundf-tests (Files): Likewise.
23857         * modules/round-tests (Files): Likewise.
23858         * modules/roundl-tests (Files): Likewise.
23859         * modules/signbit-tests (Files): Likewise.
23860         * modules/snprintf-posix-tests (Files): Likewise.
23861         * modules/sprintf-posix-tests (Files): Likewise.
23862         * modules/truncf-tests (Files): Likewise.
23863         * modules/trunc-tests (Files): Likewise.
23864         * modules/truncl-tests (Files): Likewise.
23865         * modules/vasnprintf-posix-tests (Files): Likewise.
23866         * modules/vasprintf-posix-tests (Files): Likewise.
23867         * modules/vdprintf-posix-tests (Files): Likewise.
23868         * modules/vfprintf-posix-tests (Files): Likewise.
23869         * modules/vprintf-posix-tests (Files): Likewise.
23870         * modules/vsnprintf-posix-tests (Files): Likewise.
23871         * modules/vsprintf-posix-tests (Files): Likewise.
23872         * modules/xprintf-posix-tests (Files): Likewise.
23874 2011-09-11  Bruno Haible  <bruno@clisp.org>
23876         Ensure pid_t gets defined.
23877         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
23878         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
23879         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
23880         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
23881         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
23882         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
23883         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
23884         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23885         * tests/test-fcntl-h.c: Check that pid_t is defined.
23886         * tests/test-sched.c: Likewise.
23887         * tests/test-termios.c: Likewise.
23888         * tests/test-time.c: Likewise.
23889         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
23890         * doc/posix-headers/signal.texi: Likewise.
23891         * doc/posix-headers/sys_types.texi: Likewise.
23892         * doc/posix-headers/time.texi: Likewise.
23894 2011-09-11  Bruno Haible  <bruno@clisp.org>
23896         acl: Fix compilation on Solaris 10 (older version).
23897         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
23898         of ACE_EVERYONE.
23899         * lib/set-mode-acl.c (qset_acl): Likewise.
23900         Reported by Christian Jullien <eligis@orange.fr>.
23902 2011-09-10  Bruno Haible  <bruno@clisp.org>
23904         iconv, unsetenv: Add support for MSVC compiler.
23905         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
23906         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
23908 2011-09-10  Bruno Haible  <bruno@clisp.org>
23910         *printf: Add support for MSVC compiler.
23911         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
23912         handles the exception caused by the %n directive. When cross-compiling,
23913         guess no on native Windows.
23914         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
23915         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
23916         emulate it through vsnprintf.
23917         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
23918         * doc/posix-functions/dprintf.texi: Update documentation regarding
23919         MSVC 9.
23920         * doc/posix-functions/fprintf.texi: Likewise.
23921         * doc/posix-functions/printf.texi: Likewise.
23922         * doc/posix-functions/snprintf.texi: Likewise.
23923         * doc/posix-functions/sprintf.texi: Likewise.
23924         * doc/posix-functions/swprintf.texi: Likewise.
23925         * doc/posix-functions/vdprintf.texi: Likewise.
23926         * doc/posix-functions/vfprintf.texi: Likewise.
23927         * doc/posix-functions/vprintf.texi: Likewise.
23928         * doc/posix-functions/vsnprintf.texi: Likewise.
23929         * doc/posix-functions/vsprintf.texi: Likewise.
23930         * doc/glibc-functions/asprintf.texi: Likewise.
23931         * doc/glibc-functions/obstack_printf.texi: Likewise.
23932         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
23933         * doc/glibc-functions/vasprintf.texi: Likewise.
23935 2011-09-10  Bruno Haible  <bruno@clisp.org>
23937         nocrash: Add support for native Windows.
23938         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
23940 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
23941             Bruno Haible  <bruno@clisp.org>
23943         absolute-header, include-next: Add support for MSVC compiler.
23944         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
23945         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
23946         directory separator in #line directives.
23947         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
23948         recognize also backslash as directory separator in #line directives.
23950 2011-09-08  Jim Meyering  <meyering@redhat.com>
23952         maint.mk: mark the post-release commit log with "maint: " prefix
23953         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
23954         one-line commit-log summary.
23956 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
23957             Bruno Haible  <bruno@clisp.org>
23959         Doc about crypt functions.
23960         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
23961         systems.
23962         * doc/posix-functions/encrypt.texi: Likewise.
23963         * doc/posix-functions/setkey.texi: Likewise.
23965 2011-09-08  Simon Josefsson  <simon@josefsson.org>
23967         * lib/gc.h: Fix copyright header.
23969 2011-09-07  Bruno Haible  <bruno@clisp.org>
23971         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
23972         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
23973         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
23975 2011-09-07  Bruno Haible  <bruno@clisp.org>
23977         openat: Work around compilation error with OSF/1 5.1 DTK cc.
23978         * lib/fopen.c: Use different syntax for include of <stdio.h>.
23979         * lib/freopen.c: Likewise.
23980         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
23981         * lib/lstat.c: Likewise.
23982         * lib/stat.c: Likewise.
23983         * lib/open.c: Use different syntax for include of <fcntl.h>.
23984         * lib/openat.c: Include fcntl.h again, explicitly.
23986 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
23988         parse-datetime: document the newly accepted format
23989         * doc/parse-datetime.texi (Combined date and time of day items):
23990         New section.
23992 2011-09-06  Bruno Haible  <bruno@clisp.org>
23994         acl: Fix a test failure on newer Solaris 10 with ZFS.
23995         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
23996         ENOSYS as no ACL.
23997         Reported by Jim Meyering.
23999 2011-09-06  Bruno Haible  <bruno@clisp.org>
24001         acl: Update for AIX >= 5.3 with NFS.
24002         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
24003         ENOSYS as no ACL.
24005         acl: Fix a test failure on AIX >= 5.3 with NFS.
24006         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
24007         as no ACL.
24009 2011-09-06  Bruno Haible  <bruno@clisp.org>
24011         acl: Fix a test failure on IRIX 6.5 with NFS.
24012         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
24013         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
24014         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
24015         * lib/copy-acl.c (qcopy_acl): Likewise.
24017 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
24019         openat: port to AIX 7.1 with large files
24020         AIX 7.1 does a "#define openat open64at" if large files are in use,
24021         so we can't simply #undef openat.  Use the orig_openat trick (similar
24022         to orig_open in lib/open.c) to work around the problem.  Problem
24023         reported by Kevin Brott for GNU tar, in the thread containing
24024         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
24025         * lib/openat.c (__need_system_fcntl_h): Define first.
24026         Include <fcntl.h> and <sys/types.h> before undefining.
24027         (orig_openat) [HAVE_OPENAT]: New inline function.
24028         (openat) [HAVE_OPENAT]: Do not undef.
24029         (rpl_openat): Use orig_openat, not openat.
24031 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
24032             Bruno Haible  <bruno@clisp.org>
24034         acl: Avoid errors on NonStop Kernel.
24035         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
24036         ENOTSUP errors.
24038 2011-09-05  Bruno Haible  <bruno@clisp.org>
24040         acl: Clean up Solaris code.
24041         * lib/acl-internal.h: Remove no-op #if.
24042         * lib/file-has-acl.c: Likewise.
24043         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
24044         * lib/copy-acl.c (qcopy_acl): Likewise.
24046 2011-09-05  Bruno Haible  <bruno@clisp.org>
24048         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
24049         binaries built on the original Solaris 10.
24050         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
24051         trivial.
24053 2011-09-05  Bruno Haible  <bruno@clisp.org>
24055         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
24056         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
24057         10.
24058         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
24059         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
24060         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
24061         instead of acl_get, facl_get, acl_set, facl_set.
24063 2011-09-05  Bruno Haible  <bruno@clisp.org>
24065         copy-file: Try unit tests on more file systems.
24066         * tests/test-copy-file-1.sh: New file.
24067         * tests/test-copy-file-2.sh: New file.
24068         * modules/copy-file-tests (Files): Add them.
24069         (Makefile.am): Add them to TESTS.
24071         acl: Try unit tests on more file systems.
24072         * tests/test-file-has-acl-1.sh: New file.
24073         * tests/test-file-has-acl-2.sh: New file.
24074         * tests/test-set-mode-acl-1.sh: New file.
24075         * tests/test-set-mode-acl-2.sh: New file.
24076         * tests/test-copy-acl-1.sh: New file.
24077         * tests/test-copy-acl-2.sh: New file.
24078         * modules/acl-tests (Files): Add them.
24079         (Makefile.am): Add them to TESTS.
24081 2011-09-04  Bruno Haible  <bruno@clisp.org>
24083         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
24084         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
24085         10.
24086         (OLD_ALLOW, OLD_DENY): New macros.
24087         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
24088         ACE_ACCESS_ALLOWED_ACE_TYPE.
24089         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
24090         ACE_ACCESS_DENIED_ACE_TYPE.
24091         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
24092         (NEW_ACE_EXECUTE): Fix value.
24093         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
24094         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
24095         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
24096         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
24097         NEW_ACE_SYNCHRONIZE): New macros.
24098         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
24099         instead of acl_fromtext, acl_set, facl_set.
24100         Fixes a coreutils/tests/cp/perm failure.
24102 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
24104         openat: test for fstatat (..., 0) bug
24105         Further testing with tar suggests that fstatat (..., 0)
24106         does not work in general, on AIX 7.1; see
24107         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
24108         So, give up entirely on AIX 7.1's fstatat, and fall back on our
24109         replacement fstatat (which is what older AIX releases were using
24110         anyway).
24111         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
24112         use is now changed to orig_fstatat.  This was probably the right
24113         thing to do anyway.
24114         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
24115         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
24116         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
24117         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
24118         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
24119         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
24120         if the bug is found.
24122         openat: test for fstatat (AT_FDCWD, ..., 0) bug
24123         This tests for another fstatat bug on AIX 7.1:
24124         fstatat (AT_FDCWD, ..., 0) does not work.  See
24125         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
24126         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
24127         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
24128         (rpl_fstatat): Adjust so that it works around either (or both)
24129         bugs if present.
24130         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
24132 2011-09-03  Karl Berry  <karl@gnu.org>
24134         * doc/regex.texi (Character Class Operators): Avoid literal ":"
24135         in index entries.
24137 2011-09-02  Bruno Haible  <bruno@clisp.org>
24139         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
24140         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
24141         values of AR, ARFLAGS, RANLIB.
24142         Reported by John W. Eaton <jwe@gnu.org> for Octave.
24144 2011-09-02  Bruno Haible  <bruno@clisp.org>
24146         Find 'ar' program that fits with --host argument.
24147         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
24149 2011-09-02  Bruno Haible  <bruno@clisp.org>
24151         tests: init.sh: Support any non-GNU diff.
24152         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
24153         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
24154         Solaris 8.
24156 2011-09-02  Bruno Haible  <bruno@clisp.org>
24158         tests: init.sh: work also with any non-GNU diff that supports -u
24159         * tests/init.sh: Relax check for diff -u support.
24160         Rather than checking for GNU diff via --version, simply check
24161         for support for -u itself.  Useful at least on OpenBSD 4.9,
24162         AIX 7.1, IRIX 6.5, and Solaris 10.
24164 2011-09-01  Bruno Haible  <bruno@clisp.org>
24166         strtoimax, strtoumax: Document problem on HP-UX 11.
24167         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
24168         * doc/posix-functions/strtoumax.texi: Likewise.
24170 2011-09-01  Bruno Haible  <bruno@clisp.org>
24172         strtoumax: Avoid link error on OSF/1 with DTK cc.
24173         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
24174         defined as a function.
24175         * modules/strtoumax (Depends-on, configure.ac): Test only whether
24176         strtoumax is defined, not whether it is declared.
24178 2011-09-01  Bruno Haible  <bruno@clisp.org>
24180         strtoimax: Avoid link error on OSF/1 with DTK cc.
24181         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
24182         defined as a function.
24183         * modules/strtoimax (Depends-on, configure.ac): Test only whether
24184         strtoimax is defined, not whether it is declared.
24186 2011-09-01  Bruno Haible  <bruno@clisp.org>
24188         imaxdiv: Avoid link error on OSF/1 with DTK cc.
24189         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
24190         as a function.
24191         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
24192         whether it is declared.
24194 2011-09-01  Bruno Haible  <bruno@clisp.org>
24196         imaxabs: Avoid link error on OSF/1 with DTK cc.
24197         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
24198         as a function.
24199         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
24200         whether it is declared.
24202 2011-09-01  Bruno Haible  <bruno@clisp.org>
24204         Tests for module 'strtoumax'.
24205         * modules/strtoumax-tests: New file.
24206         * tests/test-strtoumax.c: New file.
24208         Tests for module 'strtoimax'.
24209         * modules/strtoimax-tests: New file.
24210         * tests/test-strtoimax.c: New file.
24212         Tests for module 'imaxdiv'.
24213         * modules/imaxdiv-tests: New file.
24214         * tests/test-imaxdiv.c: New file.
24216         Tests for module 'imaxabs'.
24217         * modules/imaxabs-tests: New file.
24218         * tests/test-imaxabs.c: New file.
24220 2011-09-01  Bruno Haible  <bruno@clisp.org>
24222         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
24223         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
24224         pthread_create.
24226 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
24228         openat: work around AIX 7.1 fstatat issue
24229         This should fix the problem that was not properly fixed
24230         in the previous change, dated 2011-08-30.
24231         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
24232         __need_system_stat_h defined.
24233         (orig_fstatat) [HAVE_FSTATAT]: New function.
24234         (rpl_fstatat): Go back to the old way of doing things,
24235         except call orig_fstatat instead of fstatat.
24236         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
24237         Remove unnecessary check whether fstatat fills in st_size etc.
24239 2011-09-01  Bruno Haible  <bruno@clisp.org>
24241         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
24242         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
24243         just include the system's header.
24245 2011-08-31  Jim Meyering  <meyering@redhat.com>
24247         tests: avoid spurious assertion failure in test-float.c on ppc64
24248         * tests/test-float.c (test_long_double): Comment out an assertion,
24249         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
24250         with gcc-4.4.4.
24252         maint: indent with spaces, not TABs
24253         I need to get in the habit of running gnulib's "make check".
24254         Both of these would have been caught.
24255         * m4/largefile.m4: Indent with spaces, not TABs.
24256         * lib/parse-datetime.y (iso_8601_time): Likewise.
24257         Spotted by Pádraig Brady.
24259         test-parse-datetime.c: accommodate a relatively strict gcc warning
24260         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
24261         to avoid a warning from gcc's -Werror=missing-declarations.
24262         Insert a few spaces-before-funcall-parenthesis.
24264 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
24266         parse-datetime: accept ISO 8601 date and time rep with "T" separator
24267         The parser now accepts ISO 8601 date-time strings with "T" as the
24268         separator.  It has long parsed dates like "2004-02-29 16:21:42"
24269         with a space between the date and time strings.  Now it also parses
24270         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
24271         variants like "2004-02-29T16:21:42.333-07:00"
24272         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
24273         of day representation using the 'T' separator character.
24274         * doc/parse-datetime.texi (General date syntax): replace use of
24275         deprecated --iso-8601 option with --rfc-3339 in example of date
24276         command output formats that can be parsed.
24277         * tests/test-parse-datetime.c (tm_diff): New function, taken from
24278         lib/parse-datetime.y.
24279         (gmt_offset): New function.
24280         (main): Add additional test cases to validate ISO8601 extended
24281         date and time of day parsing.
24283 2011-08-31  Bruno Haible  <bruno@clisp.org>
24285         freopen: Documentation.
24286         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
24287         name.
24288         Reported by Claudio Bley <claudio.bley@gmail.com>.
24290 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
24292         freopen: Don't crash if the filename argument is NULL.
24293         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
24294         NULL.
24296 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
24298         openat: work around AIX 7.1 fstatat bug
24299         Problem reported by Kevin Brott for GNU tar, in the thread containing
24300         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
24301         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
24302         FSTATAT_ST_SIZE_ETC_BROKEN.
24303         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
24304         rpl_fstatat.
24305         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
24306         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
24307         AC_CHECK_FUNCS_ONCE for fstatat.
24308         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
24309         fchmodat, mkdirat, openat and unlinkat.
24311 2011-08-30  Bruno Haible  <bruno@clisp.org>
24313         Avoid endless recursions if config.h includes some header files.
24314         * lib/fopen.c (__need_FILE): Define already before including config.h.
24315         * lib/freopen.c (__need_FILE): Likewise.
24316         * lib/open.c (__need_system_fcntl_h): Likewise.
24317         * lib/stat.c (__need_system_sys_stat_h): Likewise.
24318         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
24319         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
24321 2011-08-25  Karl Berry  <karl@gnu.org>
24323         * config/srclist.txt (ylwrap): new try.
24324         * build-aux/ylwrap: new file.
24326 2011-08-23  Bruno Haible  <bruno@clisp.org>
24328         tmpdir: Use a good default directory on native Windows.
24329         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
24330         (P_tmpdir): Default to _P_tmpdir on native Windows.
24331         (path_search): On native Windows, try the value returned by GetTempPath
24332         before trying P_tmpdir.
24333         * modules/tmpdir (Depends-on): Add pathmax.
24334         Suggested by John Darrington <john@darrington.wattle.id.au>.
24336 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
24338         doc: fix typo in README-release
24339         * top/README-release: Capitalize first word of a sentence.
24341 2011-08-19  Jim Meyering  <meyering@redhat.com>
24343         fts: do not exhaust memory when processing million-entry directories
24344         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
24345         directory would require about 256*N bytes of memory.  Thus, it was
24346         easy to construct a directory too large to be processed by any of
24347         those tools.  With this change, fts' maximum memory utilization is
24348         now limited to around 30MB.
24349         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
24350         (fts_read): When we've processed the final entry (i.e., when
24351         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
24352         using the parent entry to read any remaining entries.  Dispatch
24353         depending on what fts_build returns:
24354         - NULL+stop, aka failure: stop
24355         - NULL otherwise: move up in the dir hierarchy
24356         - non-NULL: handle this new entry
24357         (fts_build): Declare and use new local, continue_readdir.
24358         Prepare to be called from fts_read, when the entries
24359         from a partially-read directory have just been exhausted.
24360         In that case, we'll skip the opendir and instead use the parent's
24361         fts_dirp and derive dir_fd from that.
24362         Finally, in the readdir loop, if we read max_entries entries,
24363         exit the loop ensuring *not* to call closedir.  This is required
24364         so that fts_dirp can be reused on a subsequent call.
24365         Prompted by Ben England's report of memory exhaustion in find
24366         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
24368         maint: fts: move decl of `dp' down into while loop; split a long line
24369         * lib/fts.c (fts_build): No semantic change.
24371         fts: add/use new struct member, fts_dirp
24372         We are about to use this to manage any directory with
24373         too many entries to read all of them into memory at once.
24374         To do that, we'll need to save the DIR* pointer in each
24375         affected FTSENT struct.
24376         * lib/fts_.h: Include <dirent.h>.
24377         (struct FTSENT) [fts_dirp]: New member.
24378         * lib/fts.c (closedir_and_clear): Define.
24379         Use it in place of closedir so that we are sure to
24380         clear the new fts_dirp member when done with it.
24381         (fts_alloc): Initialize the new member.
24382         (fts_lfree): Free, if needed.
24384         maint: fts: give __opendir2 a new parameter and rename
24385         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
24386         than surreptitiously using sole caller's "dir_fd".
24387         (fts_opendir): Rename from __opendir2.
24389         maint: fts.c: remove __opendir2's now-unused parameter, oflag
24390         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
24392         maint: fts.c: correct off-by-one indentation
24393         * lib/fts.c (fts_build): Correct indentation, change style
24394         of a couple of block comments, and bracing style.
24396         maint: fts.c: move __opendir2 #define "up" out of function body
24397         * lib/fts.c (__opendir2): Move "up".  No semantic change.
24399         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
24400         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
24401         out for a long time and besides was useful only on BSD systems.
24403 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
24405         regex: port to Stratus OpenVOS
24406         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
24407         define to empty, rather than attempting nonportable optimizations.
24408         Problem reported by Paul Green in:
24409         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
24410         and fix suggested by Eric Blake in:
24411         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
24413 2011-08-17  Eric Blake  <eblake@redhat.com>
24415         getcwd: fix test failures on mingw
24416         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
24417         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
24418         test if long directory cannot be created, and allow mingw errno.
24420         getcwd-lgpl: fix m4 to match relaxed test for BSD
24421         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
24422         (gl_FUNC_GETCWD_SIGNATURE): New macro.
24423         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
24424         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
24425         signature problem.
24427         getcwd: fix compilation on mingw64
24428         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
24429         getcwd.
24430         Reported by Marc-André Lureau.
24432         pipe2: silence compiler warning
24433         * lib/pipe2.c (pipe2): Hide label if it is not used.
24435 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
24437         relocatable-prog: fix link error
24438         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
24439         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
24440         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
24441         into modules/relocatable-lib without noticing that
24442         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
24443         also needs to build relocatable.c.
24445 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
24447         getaddrinfo: fix sh typo in gai_strerrorA decl checking
24448         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
24449         shell code: it contained a 'break' that was not in a loop.
24450         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
24451         via a shell-language loop; this may have been true in old Autoconf
24452         versions, but it's not true in Autoconf 2.68.  I found this bug
24453         when testing coreutils git on Solaris 8, whose shell complains
24454         about the syntax error.
24456 2011-08-12  Simon Josefsson  <simon@josefsson.org>
24458         * lib/base64.c: Fix comment to reference RFC 4648.
24459         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
24460         <gvtulder@gmail.com>.
24462 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
24464         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
24466         po/Makefile.in.in: fix make -q problem
24467         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
24468         rule, since there's no file named 'check-macro-version' and its
24469         use as a file breaks make -q.
24470         (all): Don't depend on check-macro-version.
24471         (CHECK_MACRO_VERSION): New macro.
24472         (stamp-po): Use it.
24474         configmake: fix make -q problem
24475         * modules/configmake (configmake.h): Update configmake.h's time stamp
24476         even if the file does not change.  Otherwise, 'make -q' fails.
24477         Problem reported by Simon Josefsson in
24478         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
24480 2011-08-11  Jim Meyering  <meyering@redhat.com>
24482         git-version-gen: correct the advice in a comment
24483         * build-aux/git-version-gen: Correct comment.
24484         Don't recommend to list .tarball-version in .gitignore.
24486 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
24488         base64: fix off-by-one buffer size bug
24489         Problem and (trivial) fix reported by Gijs van Tulder in
24490         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
24491         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
24492         * tests/test-base64.c (main): Catch the bug.
24494 2011-08-10  Eric Blake  <eblake@redhat.com>
24496         closein: correct comments
24497         * lib/closein.c (close_stdin): Improve comments.
24499 2011-08-09  Bruno Haible  <bruno@clisp.org>
24501         More tests for 'fseeko'.
24502         * tests/test-fseeko3.c: New file, from Eric Blake.
24503         * tests/test-fseeko3.sh: New file.
24504         * modules/fseeko-tests (Files): Add them.
24505         (TESTS): Add test-fseeko3.sh.
24506         (check_PROGRAMS): Add test-fseeko3.
24508 2011-08-09  Eric Blake  <eblake@redhat.com>
24510         fseeko: remove unneeded hack
24511         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
24513         fseeko: fix bug on glibc
24514         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
24515         Reported by John W. Eaton.
24517 2011-08-08  Bruno Haible  <bruno@clisp.org>
24519         unictype/base: Fix interoperability with preinstalled libunistring.
24520         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
24521         Reported by Simon Josefsson.
24523 2011-08-08  Bruno Haible  <bruno@clisp.org>
24525         iswblank: Detect declaration correctly.
24526         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
24527         AC_CHECK_DECLS invocation.
24529 2011-08-08  Bruno Haible  <bruno@clisp.org>
24531         tcgetsid: Detect declaration correctly.
24532         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
24533         AC_CHECK_DECLS invocation.
24534         Reported by Simon Josefsson.
24536 2011-08-08  Eric Blake  <eblake@redhat.com>
24538         largefile: fix typo that regressed large file support
24539         * modules/largefile (configure.ac-early): Fix section name.
24541 2011-08-06  Karl Berry  <karl@gnu.org>
24543         * MODULES.html.sh (func_all_files): _Noreturn is no longer
24544         a separate module.
24546 2011-08-05  Simon Josefsson  <simon@josefsson.org>
24548         openat: Fix warnings and commens when building unlinkat.c on Hurd.
24549         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
24550         get prototype for free.
24552 2011-08-04  Bruno Haible  <bruno@clisp.org>
24554         Tests for module 'pathmax'.
24555         * modules/pathmax-tests: New file.
24556         * tests/test-pathmax.c: New file.
24558         canonicalize-lgpl: Support larger filenames on the Hurd.
24559         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
24560         Reported by Paul Eggert.
24562         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
24563         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
24564         * lib/chdir-long.h: Include pathmax.h.
24565         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
24566         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
24567         (PATH_MAX): Remove code that is done by pathmax.h.
24568         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
24569         * lib/tmpfile.c: Add a comment.
24570         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
24571         * modules/chdir-long (Depends-on): Add pathmax.
24572         * modules/getcwd (Depends-on): Add pathmax.
24573         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
24574         is not defined.
24575         * doc/posix-headers/limits.texi: Mention the pathmax module.
24576         * NEWS: Mention the change.
24578 2011-08-02  Bruno Haible  <bruno@clisp.org>
24580         pthread_sigmask: Actually use results of gl_THREADLIB.
24581         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
24582         gl_THREADLIB, not gl_[]THREADLIB.
24583         Reported by Eric Blake.
24585 2011-08-02  Jim Meyering  <meyering@redhat.com>
24587         maint.mk: relax the default _gl_TS_function_match regexp
24588         * top/maint.mk (_gl_TS_function_match): Don't require at least one
24589         space between function name and "(" in an "extern" declaration.
24590         That would fail to match a decl with no space there: extern void foo();
24592 2011-07-31  Iain Nicol  <iain@thenicols.net>
24594         git-version-gen: document that EXTRA_DIST must include .version
24595         * build-aux/git-version-gen: In the how-to-use comment, document
24596         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
24597         will fail when run from an unpacked distribution tarball.
24599 2011-08-01  Bruno Haible  <bruno@clisp.org>
24601         wctype-h: Fix last change.
24602         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
24603         REPLACE_TOWLOWER to 0.
24604         Reported by Sam Steingold <sds@gnu.org>.
24606 2011-07-31  Bruno Haible  <bruno@clisp.org>
24608         frexpl: Update autoconf test.
24609         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
24610         according to changes of 2011-06-20.
24612 2011-07-31  Bruno Haible  <bruno@clisp.org>
24614         sys_utsname: Add support for Minix.
24615         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
24616         <sys/utsname.h>.
24617         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24618         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
24620 2011-07-31  Bruno Haible  <bruno@clisp.org>
24622         strings: Add support for Minix.
24623         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
24624         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
24625         * doc/posix-headers/strings.texi: Document the Minix problem.
24627 2011-07-31  Bruno Haible  <bruno@clisp.org>
24629         wctype-h: Add support for Minix.
24630         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
24631         REPLACE_TOWLOWER.
24632         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
24633         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
24634         REPLACE_ISWCNTRL.
24636 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
24638         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
24639         This is a performance improvement for 64-bit hosts: it causes the
24640         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
24642 2011-07-31  Bruno Haible  <bruno@clisp.org>
24644         stdioext: Add support for Minix.
24645         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
24646         * lib/fpurge.c (fpurge): Likewise.
24647         * lib/freadahead.c (freadahead): Likewise.
24648         * lib/freadable.c (freadable): Likewise.
24649         * lib/freading.c (freading): Likewise.
24650         * lib/freadptr.c (freadptr): Likewise.
24651         * lib/freadseek.c (freadptrinc): Likewise.
24652         * lib/fseeko.c (rpl_fseeko): Likewise.
24653         * lib/fseterr.c (fseterr): Likewise.
24654         * lib/fwritable.c (fwritable): Likewise.
24655         * lib/fwriting.c (fwriting): Likewise.
24656         * lib/fflush.c (clear_ungetc_buffer): Update comment.
24657         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
24659 2011-07-31  Bruno Haible  <bruno@clisp.org>
24661         errno: Port to Minix.
24662         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
24663         ECONNABORTED are defined.
24664         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
24665         GNULIB_defined_ECONNABORTED): New macros.
24666         * lib/strerror-override.h (strerror_override): Test also
24667         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
24668         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
24669         ECONNABORTED.
24670         * doc/posix-headers/errno.texi: Mention the Minix problem.
24672 2011-07-31  Bruno Haible  <bruno@clisp.org>
24674         Work around declaration collisions on Minix.
24675         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
24676         defined, set REPLACE_MBSINIT.
24677         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
24678         defined, set REPLACE_MBRTOWC.
24679         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
24680         set REPLACE_MBRLEN.
24681         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
24682         defined, set REPLACE_MBSRTOWCS.
24683         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
24684         defined, set REPLACE_WCRTOMB.
24685         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
24686         defined, set REPLACE_WCSRTOMBS.
24688 2011-07-31  Bruno Haible  <bruno@clisp.org>
24690         Add support for Minix with ACK compiler.
24691         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
24692         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
24693         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
24695 2011-07-31  Bruno Haible  <bruno@clisp.org>
24697         Documentation about Minix.
24698         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
24699         * doc/glibc-headers/*.texi: Likewise.
24700         * doc/posix-functions/*.texi: Likewise.
24701         * doc/glibc-functions/*.texi: Likewise.
24703 2011-07-31  Bruno Haible  <bruno@clisp.org>
24705         snippet/warn-on-use: Fix indentation.
24706         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
24708 2011-07-25  Jim Meyering  <meyering@redhat.com>
24710         tests: test-update-copyright.sh: remove unnecessary "rm" commands
24711         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
24712         commands.
24714 2011-07-27  Jim Meyering  <meyering@redhat.com>
24716         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
24717         * top/maint.mk (gl_extract_significant_defines_): Now that
24718         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
24719         gnulib/lib/signal.in.h, and now that we recommend to
24720         define-if-undefined those two symbols in application code,
24721         we must filter them out of the "significant" list.
24722         This avoids a "make syntax-check" failure in coreutils.
24724 2011-07-26  Eric Blake  <eblake@redhat.com>
24726         warnings: add comments about previous patch
24727         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
24728         * m4/include_next.m4: Likewise.
24729         * m4/warn-on-use.m4: Likewise.
24730         * m4/warnings.m4: Likewise, and simplify use.
24731         Suggested by Stefano Lattarini.
24733         include-next, warnings: support older autoconf
24734         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
24735         AS_VAR_PUSHDEF in a way that works with older autoconf.
24736         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
24737         Reported by Daniel P. Berrange.
24739 2011-07-25  Bruno Haible  <bruno@clisp.org>
24741         fseek, ftell: Fix doc.
24742         * doc/posix-functions/fseek.texi: Reword statement about
24743         AC_SYS_LARGEFILE.
24744         * doc/posix-functions/ftell.texi: Likewise.
24746 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
24747             Bruno Haible  <bruno@clisp.org>
24749         Add dependencies to the 'largefile' module.
24750         * modules/fopen (Depends-on): Add 'largefile'.
24751         * modules/freopen (Depends-on): Likewise.
24752         * modules/fseeko (Depends-on): Likewise.
24753         * modules/ftello (Depends-on): Likewise.
24754         * modules/glob (Depends-on): Likewise.
24755         * modules/lseek (Depends-on): Likewise.
24756         * modules/lstat (Depends-on): Likewise.
24757         * modules/mkostemp (Depends-on): Likewise.
24758         * modules/mkostemps (Depends-on): Likewise.
24759         * modules/mkstemp (Depends-on): Likewise.
24760         * modules/mkstemps (Depends-on): Likewise.
24761         * modules/open (Depends-on): Likewise.
24762         * modules/openat (Depends-on): Likewise.
24763         * modules/pread (Depends-on): Likewise.
24764         * modules/pwrite (Depends-on): Likewise.
24765         * modules/scandir (Depends-on): Likewise.
24766         * modules/stat (Depends-on): Likewise.
24767         * modules/tmpfile (Depends-on): Likewise.
24768         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
24769         since the containing module now depends on the largefile module.
24770         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
24771         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
24772         off_t is fixed by gnulib.
24773         * doc/posix-functions/freopen.texi: Likewise.
24774         * doc/posix-functions/fseeko.texi: Likewise.
24775         * doc/posix-functions/fstatat.texi: Likewise.
24776         * doc/posix-functions/ftello.texi: Likewise.
24777         * doc/posix-functions/glob.texi: Likewise.
24778         * doc/posix-functions/lseek.texi: Likewise.
24779         * doc/posix-functions/lstat.texi: Likewise.
24780         * doc/posix-functions/mkstemp.texi: Likewise.
24781         * doc/posix-functions/open.texi: Likewise.
24782         * doc/posix-functions/openat.texi: Likewise.
24783         * doc/posix-functions/pread.texi: Likewise.
24784         * doc/posix-functions/pwrite.texi: Likewise.
24785         * doc/posix-functions/scandir.texi: Likewise.
24786         * doc/posix-functions/stat.texi: Likewise.
24787         * doc/posix-functions/tmpfile.texi: Likewise.
24788         * doc/glibc-functions/mkostemp.texi: Likewise.
24789         * doc/glibc-functions/mkostemps.texi: Likewise.
24790         * doc/glibc-functions/mkstemps.texi: Likewise.
24792 2011-07-25  Bruno Haible  <bruno@clisp.org>
24794         fcntl: Move AC_LIBOBJ invocation to module description.
24795         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
24796         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
24798         fcntl: Remove call-in from fchdir.m4.
24799         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
24800         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
24802         dup3: Remove potential call-in from fchdir.m4.
24803         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
24804         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
24806         dup2: Move AC_LIBOBJ invocation to module description.
24807         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
24808         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
24809         Don't invoke AC_LIBOBJ.
24810         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
24812         dup2: Remove call-in from fchdir.m4.
24813         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
24814         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
24816         fclose: Move AC_LIBOBJ invocation to module description.
24817         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
24818         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
24819         to 1.
24820         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
24822         fclose: Remove call-in from close.m4.
24823         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
24824         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
24826         close: Move AC_LIBOBJ invocation to module description.
24827         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
24828         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
24829         1.
24830         * modules/close (configure.ac): Invoke AC_LIBOBJ.
24832         close: Remove call-in from fchdir.m4.
24833         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
24834         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
24836         open: Move AC_LIBOBJ invocation to module description.
24837         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
24838         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
24839         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
24841         open: Remove call-in from fchdir.m4.
24842         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
24843         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
24845         fchdir: Start to remove gl_REPLACE_* idiom.
24846         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
24847         (gl_FUNC_FCHDIR): Invoke it.
24849 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
24851         * lib/ftell.c (ftell): Comment out cast.
24853         close: use gl_REPLACE_FCLOSE only if defined
24854         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
24855         is defined.  The close module doesn't depend on the fclose module
24856         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
24857         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
24858         I reproduced the problem with "./gnulib-tool --test close sys_socket".
24860 2011-07-24  Jim Meyering  <meyering@redhat.com>
24862         test-select.h: avoid warning when using gcc's -Wmissing-declarations
24863         * tests/test-select.h (test_function): Declare as "static".
24865 2011-07-24  Bruno Haible  <bruno@clisp.org>
24867         doc: Mention the effects of AC_SYS_LARGEFILE.
24868         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
24869         on this function.
24870         * doc/posix-functions/aio_error.texi: Likewise.
24871         * doc/posix-functions/aio_fsync.texi: Likewise.
24872         * doc/posix-functions/aio_read.texi: Likewise.
24873         * doc/posix-functions/aio_return.texi: Likewise.
24874         * doc/posix-functions/aio_suspend.texi: Likewise.
24875         * doc/posix-functions/aio_write.texi: Likewise.
24876         * doc/posix-functions/fgetpos.texi: Likewise.
24877         * doc/posix-functions/fopen.texi: Likewise.
24878         * doc/posix-functions/freopen.texi: Likewise.
24879         * doc/posix-functions/fsetpos.texi: Likewise.
24880         * doc/posix-functions/fstatvfs.texi: Likewise.
24881         * doc/posix-functions/ftruncate.texi: Likewise.
24882         * doc/posix-functions/ftw.texi: Likewise.
24883         * doc/posix-functions/getrlimit.texi: Likewise.
24884         * doc/posix-functions/glob.texi: Likewise.
24885         * doc/posix-functions/lio_listio.texi: Likewise.
24886         * doc/posix-functions/lockf.texi: Likewise.
24887         * doc/posix-functions/mkstemp.texi: Likewise.
24888         * doc/posix-functions/mmap.texi: Likewise.
24889         * doc/posix-functions/nftw.texi: Likewise.
24890         * doc/posix-functions/openat.texi: Likewise.
24891         * doc/posix-functions/opendir.texi: Likewise.
24892         * doc/posix-functions/posix_fadvise.texi: Likewise.
24893         * doc/posix-functions/posix_fallocate.texi: Likewise.
24894         * doc/posix-functions/pread.texi: Likewise.
24895         * doc/posix-functions/pwrite.texi: Likewise.
24896         * doc/posix-functions/readdir.texi: Likewise.
24897         * doc/posix-functions/readdir_r.texi: Likewise.
24898         * doc/posix-functions/rewinddir.texi: Likewise.
24899         * doc/posix-functions/scandir.texi: Likewise.
24900         * doc/posix-functions/seekdir.texi: Likewise.
24901         * doc/posix-functions/setrlimit.texi: Likewise.
24902         * doc/posix-functions/statvfs.texi: Likewise.
24903         * doc/posix-functions/telldir.texi: Likewise.
24904         * doc/posix-functions/tmpfile.texi: Likewise.
24905         * doc/posix-functions/truncate.texi: Likewise.
24906         * doc/glibc-functions/fallocate.texi: Likewise.
24907         * doc/glibc-functions/fstatfs.texi: Likewise.
24908         * doc/glibc-functions/fts_children.texi: Likewise.
24909         * doc/glibc-functions/fts_read.texi: Likewise.
24910         * doc/glibc-functions/getdirentries.texi: Likewise.
24911         * doc/glibc-functions/mkostemp.texi: Likewise.
24912         * doc/glibc-functions/mkostemps.texi: Likewise.
24913         * doc/glibc-functions/mkstemps.texi: Likewise.
24914         * doc/glibc-functions/preadv.texi: Likewise.
24915         * doc/glibc-functions/pwritev.texi: Likewise.
24916         * doc/glibc-functions/sendfile.texi: Likewise.
24917         * doc/glibc-functions/statfs.texi: Likewise.
24919 2011-07-24  Bruno Haible  <bruno@clisp.org>
24921         doc: Fix typo.
24922         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
24924 2011-07-24  Bruno Haible  <bruno@clisp.org>
24926         doc: Mention fsusage.
24927         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
24929 2011-07-24  Bruno Haible  <bruno@clisp.org>
24931         doc: Mention new glibc headers and functions.
24932         * doc/glibc-headers/gshadow.texi: New file.
24933         * doc/glibc-functions/endsgent.texi: New file.
24934         * doc/glibc-functions/fgetsgent.texi: New file.
24935         * doc/glibc-functions/fgetsgent_r.texi: New file.
24936         * doc/glibc-functions/getsgent.texi: New file.
24937         * doc/glibc-functions/getsgent_r.texi: New file.
24938         * doc/glibc-functions/getsgnam.texi: New file.
24939         * doc/glibc-functions/getsgnam_r.texi: New file.
24940         * doc/glibc-functions/putsgent.texi: New file.
24941         * doc/glibc-functions/setsgent.texi: New file.
24942         * doc/glibc-functions/sgetsgent.texi: New file.
24943         * doc/glibc-functions/sgetsgent_r.texi: New file.
24944         * doc/glibc-functions/malloc_info.texi: New file.
24945         * doc/glibc-functions/preadv.texi: New file.
24946         * doc/glibc-functions/pwritev.texi: New file.
24947         * doc/glibc-functions/register_printf_modifier.texi: New file.
24948         * doc/glibc-functions/register_printf_specifier.texi: New file.
24949         * doc/glibc-functions/register_printf_type.texi: New file.
24950         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
24951         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
24952         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
24953         * doc/glibc-functions/pthread_getname_np.texi: New file.
24954         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
24955         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
24956         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
24957         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
24958         * doc/glibc-functions/pthread_setname_np.texi: New file.
24959         * doc/glibc-functions/pthread_sigqueue.texi: New file.
24960         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
24961         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
24962         * doc/glibc-functions/qsort_r.texi: New file.
24963         * doc/glibc-functions/quick_exit.texi: New file.
24964         * doc/glibc-functions/syncfs.texi: New file.
24965         * doc/gnulib.texi: Include them.
24966         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
24967         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
24968         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
24969         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
24970         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
24971         * doc/glibc-functions/execvpe.texi: Likewise.
24973 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
24975         ftell: don't include <unistd.h>
24976         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
24977         guaranteed to define off_t, and the ftell module depends on the
24978         stdio module.
24980         ftell: do not assume wraparound signed arithmetic
24981         * lib/ftell.c: Include <limits.h>.
24982         (ftell): Don't assume wraparound signed arithmetic.
24984 2011-07-24  Bruno Haible  <bruno@clisp.org>
24986         close: No longer depend on module 'fclose'.
24987         * modules/close (Depends-on): Remove fclose.
24988         * NEWS: Mention the change.
24989         Suggested by Sam Steingold <sds@gnu.org>.
24991 2011-07-24  Bruno Haible  <bruno@clisp.org>
24993         fsusage: Enable large volume support on AIX >= 5.2.
24994         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
24995         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
24996         instead of STAT_STATVFS.
24997         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
24999         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
25000         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
25001         f_blocks field only on MacOS X.
25003         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
25004         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
25005         * modules/fsusage (Depends-on): Add largefile.
25007 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
25009         * README: Modernize discussion of signed integers.
25010         Assuming overflow wraparound is no longer safe.
25011         Mention ones' complement and signed magnitude.
25013 2011-07-22  Bruno Haible  <bruno@clisp.org>
25015         select tests, pselect tests: Refactor.
25016         * tests/test-select.h: New file, extracted from tests/test-select.c.
25017         (select_fn): New type.
25018         (test, do_select, do_select_nowait, do_select_wait, test_tty,
25019         test_connect_first, test_accept_first, test_pair, test_socket_pair,
25020         test_pipe): Add my_select argument.
25021         (test_function): Renamed from main. Add my_select argument.
25022         * tests/test-select.c: Move most code to tests/test-select.h. Include
25023         test-select.h.
25024         * modules/select-tests (Files): Add tests/test-select.h.
25025         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
25026         (my_select, main): New functions.
25027         * modules/pselect-tests (Files): Add tests/test-select.h,
25028         tests/macros.h, tests/signature.h.
25029         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
25030         (configure.ac): Check for <sys/wait.h>.
25032 2011-07-22  Bruno Haible  <bruno@clisp.org>
25034         sys_select tests: Check the signature of FD_*.
25035         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
25036         signature tests from here...
25037         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
25038         here.
25039         * modules/sys_select-tests (Files): Add tests/signature.h.
25041 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
25043         largefile: new module, replacing large-inode
25044         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
25045         * MODULES.html.sh: Add largefile, remove large-inode.
25046         * modules/largefile, m4/largefile.m4: New files.
25047         * modules/large-inode, m4/large-inode.m4: Remove.
25049         fsusage: port to MacOS X 10.7 with 4 TiB file systems
25050         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
25051         implementations that use only 32 bits to count blocks.
25052         On typical hosts with 1024-byte blocks, this fails with file
25053         systems as small as 4 TiB.  Problem reported by Herb Wartens
25054         <http://debbugs.gnu.org/9140> and this should also fix a similar
25055         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
25057         large-inode: New module
25058         * MODULES.html.sh: Add it.
25059         * modules/large-inode, m4/large-inode.m4: New files.
25061         extensions: Enable extensions on MacOS X 10.5 and later.
25062         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
25064 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
25066         file-has-acl: use acl_extended_file_nofollow if available
25067         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
25068         (acl_extended_file): New macro.
25069         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
25070         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
25072 2011-07-21  Bruno Haible  <bruno@clisp.org>
25074         Declare system functions in a way that works with C++.
25075         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
25076         declare fdopendir as extern "C".
25077         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
25078         declare frexpl as extern "C".
25079         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
25080         declare gai_strerror as extern "C".
25081         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
25082         programs, declare gai_strerror as extern "C".
25083         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
25084         declare getlogin_r as extern "C".
25085         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
25086         as extern "C".
25087         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
25088         declare ldexpl as extern "C".
25089         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
25090         as extern "C".
25091         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
25092         program, declare getmntinfo as extern "C".
25093         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
25094         stpncpy as extern "C".
25095         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
25096         program, declare __xpg_strerror_r as extern "C".
25097         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
25098         strndup as extern "C".
25099         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
25100         declare memset and bzero as extern "C".
25101         Reported by Sam Steingold <sds@gnu.org>.
25103 2011-07-12  Jim Meyering  <meyering@redhat.com>
25105         maint.mk: prohibit inclusion of "verify.h" without use
25106         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
25108 2011-07-19  Pádraig Brady  <P@draigBrady.com>
25110         timer-time: A new module to check for timer_settime()
25111         * m4/timer_time.m4: Check for the posix function.
25112         * modules/timer-time: Add the new module.
25113         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
25114         Mention it.
25116 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
25117             Bruno Haible  <bruno@clisp.org>
25119         pthread_sigmask: assume POSIX threads if --avoid=threadlib
25120         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
25121         not defined, assume POSIX threads and look for pthread_sigmask in
25122         $LIBS, without changing $CPPFLAGS.
25124 2011-07-19  Bruno Haible  <bruno@clisp.org>
25126         strstr: Update cross-compilation guess.
25127         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
25128         CPUs, guess no, in view of glibc
25129         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
25130         Suggested by Eric Blake. Reported by Reuben Thomas.
25132 2011-07-19  Pádraig Brady  <P@draigBrady.com>
25134         getopt-gnu: suppress core dumps from detection code
25135         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
25136         to suppress core dumps that may well occur on glibc systems.
25137         * modules/getopt-gnu: Depend on nocrash.
25139 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
25141         pthread_sigmask: ensure usleep is declared
25142         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
25143         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
25145 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
25147         doc: Document NonStop portability issues.
25148         * doc/posix-functions/sigaction.texi (sigaction):
25149         * doc/posix-headers/signal.texi (signal.h):
25150         Document NonStop.  See Joachim Schmitz in
25151         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
25153 2011-07-15  Bruno Haible  <bruno@clisp.org>
25155         ffsl, ffsll: Avoid unportable behaviour.
25156         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
25158 2011-07-15  Bruno Haible  <bruno@clisp.org>
25160         ffs: More tests.
25161         * tests/test-ffs.c (NBITS): New macro.
25162         (main): Add more tests.
25163         * tests/test-ffsl.c (NBITS): New macro.
25164         (main): Add more tests.
25165         * tests/test-ffsll.c (NBITS): New macro.
25166         (main): Add more tests.
25168 2011-07-15  Eric Blake  <eblake@redhat.com>
25170         ffsl, ffsll: new modules
25171         * modules/ffsl: New file.
25172         * modules/ffsll: Likewise.
25173         * m4/ffsl.m4: Likewise.
25174         * m4/ffsll.m4: Likewise.
25175         * lib/ffsl.c: Likewise.
25176         * lib/ffsl.h: Likewise.
25177         * lib/ffsll.c: Likewise.
25178         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
25179         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
25180         * modules/string (Makefile.am): Substitute witnesses.
25181         * lib/strings.in.h (ffsl, ffsll): Declare.
25182         * modules/ffsl-tests: New test file.
25183         * modules/ffsll-tests: Likewise.
25184         * tests/test-ffsl.c: Likewise.
25185         * tests/test-ffsll.c: Likewise.
25186         * MODULES.html.sh (Integer arithmetic functions): Mention it.
25187         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
25188         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
25190         ffs: fix m4 prerequisite
25191         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
25193         ffs: avoid undefined behavior
25194         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
25195         * tests/test-ffs.c (naive, main): Avoid signed shifts.
25196         Reported by Bruno Haible.
25198 2011-07-12  Bruno Haible  <bruno@clisp.org>
25200         pthread_sigmask: Rely on module 'threadlib'.
25201         * modules/pthread_sigmask (Depends-on): Add threadlib.
25202         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
25203         is defined.
25205 2011-07-12  Bruno Haible  <bruno@clisp.org>
25207         regex: Depend on module 'strcase'.
25208         * modules/regex (Depends-on): Add strcase, for strcasecmp().
25210 2011-07-12  Jim Meyering  <meyering@redhat.com>
25212         warn-on-use: fix typo in file name
25213         * modules/snippet/warn-on-use (Files): Correct file name:
25214         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
25216 2011-07-12  Bruno Haible  <bruno@clisp.org>
25218         strings: Document module.
25219         * doc/posix-headers/strings.texi: Mention module 'strings'.
25221 2011-07-12  Bruno Haible  <bruno@clisp.org>
25223         Rename module '_Noreturn' to 'snippet/_Noreturn'.
25224         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
25225         (Files, Makefile.am): Update.
25226         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
25227         * modules/stdlib (Depends-on): Update.
25229 2011-07-12  Bruno Haible  <bruno@clisp.org>
25231         * NEWS: Mention the changes.
25233         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
25234         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
25235         (Files, Makefile.am): Update.
25236         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
25237         * modules/arpa_inet (Depends-on): Update.
25238         * modules/ctype (Depends-on): Update.
25239         * modules/dirent (Depends-on): Update.
25240         * modules/fcntl-h (Depends-on): Update.
25241         * modules/glob (Depends-on): Update.
25242         * modules/iconv-h (Depends-on): Update.
25243         * modules/inttypes-incomplete (Depends-on): Update.
25244         * modules/langinfo (Depends-on): Update.
25245         * modules/locale (Depends-on): Update.
25246         * modules/math (Depends-on): Update.
25247         * modules/netdb (Depends-on): Update.
25248         * modules/poll-h (Depends-on): Update.
25249         * modules/pty (Depends-on): Update.
25250         * modules/search (Depends-on): Update.
25251         * modules/signal (Depends-on): Update.
25252         * modules/spawn (Depends-on): Update.
25253         * modules/stdio (Depends-on): Update.
25254         * modules/stdlib (Depends-on): Update.
25255         * modules/string (Depends-on): Update.
25256         * modules/strings (Depends-on): Update.
25257         * modules/sys_file (Depends-on): Update.
25258         * modules/sys_ioctl (Depends-on): Update.
25259         * modules/sys_select (Depends-on): Update.
25260         * modules/sys_socket (Depends-on): Update.
25261         * modules/sys_stat (Depends-on): Update.
25262         * modules/sys_time (Depends-on): Update.
25263         * modules/sys_times (Depends-on): Update.
25264         * modules/sys_utsname (Depends-on): Update.
25265         * modules/sys_wait (Depends-on): Update.
25266         * modules/termios (Depends-on): Update.
25267         * modules/time (Depends-on): Update.
25268         * modules/unistd (Depends-on): Update.
25269         * modules/wchar (Depends-on): Update.
25270         * modules/wctype-h (Depends-on): Update.
25271         * MODULES.html.sh (Support for building libraries and executables):
25272         Update.
25274         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
25275         * modules/snippet/unused-parameter: Renamed from
25276         modules/unused-parameter.
25277         (Files, Makefile.am): Update.
25278         * build-aux/snippet/unused-parameter.h: Renamed from
25279         build-aux/unused-parameter.h.
25280         * modules/selinux-h (Depends-on): Update.
25281         * modules/unistr/base (Depends-on): Update.
25282         * MODULES.html.sh (Core language properties): Update.
25284         Rename module 'link-warning' to 'snippet/link-warning'.
25285         * modules/snippet/link-warning: Renamed from modules/link-warning.
25286         (Files, Makefile.am): Update.
25287         * build-aux/snippet/link-warning.h: Renamed from
25288         build-aux/link-warning.h.
25289         * MODULES.html.sh (Support for building libraries and executables):
25290         Update.
25292         Rename module 'c++defs' to 'snippet/c++defs'.
25293         * modules/snippet/c++defs: Renamed from modules/c++defs.
25294         (Files, Makefile.am): Update.
25295         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
25296         * modules/arpa_inet (Depends-on): Update.
25297         * modules/ctype (Depends-on): Update.
25298         * modules/dirent (Depends-on): Update.
25299         * modules/fcntl-h (Depends-on): Update.
25300         * modules/glob (Depends-on): Update.
25301         * modules/iconv-h (Depends-on): Update.
25302         * modules/langinfo (Depends-on): Update.
25303         * modules/locale (Depends-on): Update.
25304         * modules/math (Depends-on): Update.
25305         * modules/netdb (Depends-on): Update.
25306         * modules/poll-h (Depends-on): Update.
25307         * modules/pty (Depends-on): Update.
25308         * modules/search (Depends-on): Update.
25309         * modules/signal (Depends-on): Update.
25310         * modules/spawn (Depends-on): Update.
25311         * modules/stdio (Depends-on): Update.
25312         * modules/stdlib (Depends-on): Update.
25313         * modules/string (Depends-on): Update.
25314         * modules/strings (Depends-on): Update.
25315         * modules/sys_ioctl (Depends-on): Update.
25316         * modules/sys_select (Depends-on): Update.
25317         * modules/sys_socket (Depends-on): Update.
25318         * modules/sys_stat (Depends-on): Update.
25319         * modules/sys_time (Depends-on): Update.
25320         * modules/sys_wait (Depends-on): Update.
25321         * modules/termios (Depends-on): Update.
25322         * modules/time (Depends-on): Update.
25323         * modules/unistd (Depends-on): Update.
25324         * modules/wchar (Depends-on): Update.
25325         * modules/wctype-h (Depends-on): Update.
25327         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
25328         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
25329         (Files, Makefile.am): Update.
25330         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
25331         * modules/argv-iter (Depends-on): Update.
25332         * modules/arpa_inet (Depends-on): Update.
25333         * modules/dirent (Depends-on): Update.
25334         * modules/fcntl-h (Depends-on): Update.
25335         * modules/fnmatch (Depends-on): Update.
25336         * modules/getopt-posix (Depends-on): Update.
25337         * modules/glob (Depends-on): Update.
25338         * modules/iconv-h (Depends-on): Update.
25339         * modules/inttypes-incomplete (Depends-on): Update.
25340         * modules/locale (Depends-on): Update.
25341         * modules/math (Depends-on): Update.
25342         * modules/netdb (Depends-on): Update.
25343         * modules/search (Depends-on): Update.
25344         * modules/signal (Depends-on): Update.
25345         * modules/spawn (Depends-on): Update.
25346         * modules/stdio (Depends-on): Update.
25347         * modules/stdlib (Depends-on): Update.
25348         * modules/string (Depends-on): Update.
25349         * modules/strings (Depends-on): Update.
25350         * modules/sys_socket (Depends-on): Update.
25351         * modules/sys_stat (Depends-on): Update.
25352         * modules/sys_time (Depends-on): Update.
25353         * modules/sys_times (Depends-on): Update.
25354         * modules/sys_utsname (Depends-on): Update.
25355         * modules/time (Depends-on): Update.
25356         * modules/unistd (Depends-on): Update.
25357         * modules/wchar (Depends-on): Update.
25358         * MODULES.html.sh (Support for building libraries and executables):
25359         Update.
25361 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
25363         Improvements on _Noreturn and related modules.
25365         modules/_Exit-tests: test _Noreturn too
25366         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
25367         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
25368         (main): Use them.
25370         stdnoreturn, stdnoreturn-tests: remove modules
25371         They're not needed here and a bit premature for use elsewhere.  See
25372         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
25373         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
25374         * tests/test-stdnoreturn.c: Remove files.
25375         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
25376         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
25377         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
25378         and using noreturn.
25379         * modules/openat, modules/sigpipe-die, modules/xalloc:
25380         * modules/xmemdup0, modules/xstrtol:
25381         Remove dependency on stdnoreturn.
25383         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
25384         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
25385         Reparenthesize to avoid GCC warning.
25386         Support Microsoft's syntax.
25387         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
25389         _Noreturn-tests: remove module
25390         * modules/_Noreturn-tests: Remove.
25391         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
25392         * tests/test-_Noreturn.c: Remove.
25393         * tests/test-stdnoreturn.c: Merge from the old
25394         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
25396 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
25398         _Noreturn, stdnoreturn, and related modules.
25400         * top/maint.mk: Adjust to new noreturn support.
25401         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
25402         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
25404         xalloc: use stdnoreturn.h
25405         * lib/xalloc.h: Include <stdnoreturn.h>.
25406         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
25407         * modules/xalloc (Depends-on): Add stdnoreturn.
25409         xstrtol: use stdnoreturn.h
25410         * lib/xstrtol.h: Include <stdnoreturn.h>.
25411         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
25412         * modules/xstrtol (Depends-on): Add stdnoreturn.
25414         xmemdup0: use stdnoreturn.h
25415         * lib/xmemdup0.h: Include <stdnoreturn.h>.
25416         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
25417         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
25419         sigpipe-die: use stdnoreturn.h
25420         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
25421         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
25422         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
25424         openat: use stdnoreturn.h
25425         * lib/openat.h: Include <stdnoreturn.h>.
25426         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
25427         * modules/openat (Depends-on): Add stdnoreturn.
25429         * lib/openat-die.c (openat_save_fail): Modernize comment.
25431         * lib/xalloc-die.c (xalloc_die): Modernize comment.
25433         * lib/glthread/thread.h: Modernize comment.
25435         obstack: use _Noreturn
25436         * lib/obstack.c (__attribute__): Remove macro.
25437         (print_and_abort): Use _Noreturn.
25439         c-stack: use _Noreturn
25440         * lib/c-stack.c (die, overflow_handler, segv_handler):
25441         Use _Noreturn rather than __attribute__((noreturn)).
25443         argmatch-tests, exclude_tests: use _Noreturn
25444         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
25445         Remove.
25446         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
25448         stdlib: use _Noreturn
25449         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
25450         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
25451         * modules/stdlib (Depends-on): Add _Noreturn.
25452         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
25454         stdnoreturn-tests: new module
25455         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
25457         stdnoreturn: new module
25458         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
25459         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
25461         _Noreturn-tests: new module
25462         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
25464         _Noreturn: new module
25465         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
25466         New section, mentioning it.
25467         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
25469         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
25471 2011-07-11  Eric Blake  <eblake@redhat.com>
25473         ffs: new module
25474         * modules/ffs: New file.
25475         * m4/ffs.m4: Likewise.
25476         * lib/ffs.c: Likewise.
25477         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
25478         * modules/strings (Makefile.am): Substitute witness.
25479         (Depends-on): Add c++defs.
25480         * lib/strings.in.h (ffs): Declare.
25481         * modules/ffs-tests: New test file.
25482         * tests/test-ffs.c: Test new module.
25483         * MODULES.html.sh (Integer arithmetic functions): Mention it.
25484         * doc/posix-functions/ffs.texi (ffs): Likewise.
25486         regex: avoid compiler warning
25487         * lib/regex.c (includes): Include <strings.h>, for use of
25488         strcasecmp in regcomp.c.
25489         Reported by Joachim Schmitz.
25491 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
25493         stdint: respect system's intmax_t if INTMAX_MAX
25494         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
25495         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
25496         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
25497         long but int64_t is long long, and where we will clash with the
25498         system intmax_t if we override it.  See
25499         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
25500         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
25501         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
25502         similarly for UINTMAX_C.
25504 2011-07-08  Bruno Haible  <bruno@clisp.org>
25506         pthread_sigmask tests: Avoid a compiler warning.
25507         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
25508         non-zero.
25510         sigprocmask tests: A better way to avoid a compiler warning.
25511         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
25512         (main): Complain if system() returns non-zero.
25513         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
25515 2011-07-08  Bruno Haible  <bruno@clisp.org>
25517         pthread_sigmask: Work around IRIX bug.
25518         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
25519         bug.
25520         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
25521         there may be unblocked pending signals.
25522         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
25524 2011-07-08  Bruno Haible  <bruno@clisp.org>
25526         pthread_sigmask: Work around Cygwin bug.
25527         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
25528         bug.
25529         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
25530         the system's pthread_sigmask function.
25531         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
25533 2011-07-08  Bruno Haible  <bruno@clisp.org>
25535         pthread_sigmask: Work around bug in single-threaded implementation.
25536         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
25537         FreeBSD, HP-UX, Solaris bug.
25538         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
25539         * lib/pthread_sigmask.c: Include <stddef.h>.
25540         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
25541         the system's pthread_sigmask function.
25542         * modules/pthread_sigmask (configure.ac): Invoke
25543         gl_PREREQ_PTHREAD_SIGMASK.
25544         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
25545         HP-UX, Solaris.
25547 2011-07-08  Eric Blake  <eblake@redhat.com>
25549         test-sigprocmask: avoid compiler warning
25550         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
25551         * tests/test-sigprocmask.c (main): Use it to silence warning.
25552         Reported by Jim Meyering.
25554         test-snprintf: avoid compiler warning
25555         * tests/test-snprintf.c (main): Avoid shadowed declaration.
25556         * tests/test-vsnprintf.c (main): Likewise.
25557         Reported by Jim Meyering.
25559 2011-07-08  Bruno Haible  <bruno@clisp.org>
25561         Tests for module 'pthread_sigmask'.
25562         * modules/pthread_sigmask-tests: New file.
25563         * tests/test-pthread_sigmask1.c: New file, based on
25564         tests/test-sigprocmask.c.
25565         * tests/test-pthread_sigmask2.c: New file.
25567 2011-07-08  Jim Meyering  <meyering@redhat.com>
25569         test-getopt.h: avoid warning about an unused variable
25570         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
25572 2011-07-07  Jim Meyering  <meyering@redhat.com>
25574         maint: reduce list of files exempt from sc_prohibit_leading_TABs
25575         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
25576         now that it no longer contains leading TABs.
25577         Remove unused "url=FIXME" statement.
25579 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
25581         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
25582         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
25583         When gl_THREADLIB is not in use, assume that the POSIX sematics
25584         are desired.  This is better for Emacs, which uses POSIX semantics
25585         on GNUish and/or POSIXish platforms, and does not use threads at
25586         all otherwise.
25588         pthread_sigmask: fix typo when testing for libraries
25589         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
25590         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
25592 2011-07-08  Eric Blake  <eblake@redhat.com>
25594         fts: introduce FTS_NOATIME
25595         * lib/fts_.h (FTS_NOATIME): New bit flag.
25596         (FTS_OPTIONMASK): Adjust.
25597         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
25598         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
25600 2011-07-08  Bruno Haible  <bruno@clisp.org>
25602         Tests for module 'thread'.
25603         * modules/thread-tests: New file.
25604         * tests/test-thread_self.c: New file.
25605         * tests/test-thread_create.cc: New file.
25607 2011-07-08  Bruno Haible  <bruno@clisp.org>
25609         thread: Avoid gcc warnings when using gl_thread_self().
25610         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
25611         'void *'.
25612         (gl_thread_self_pointer): Update.
25614 2011-07-07  Bruno Haible  <bruno@clisp.org>
25616         signal-c++-tests: Check declaration of pthread_sigmask.
25617         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
25618         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
25619         $(LIB_PTHREAD_SIGMASK).
25621 2011-07-07  Bruno Haible  <bruno@clisp.org>
25623         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
25624         * lib/signal.in.h (pthread_sigmask): Override if
25625         REPLACE_PTHREAD_SIGMASK is 1.
25626         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
25627         REPLACE_PTHREAD_SIGMASK.
25628         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
25629         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
25630         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
25631         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
25632         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
25634 2011-07-07  Bruno Haible  <bruno@clisp.org>
25636         pthread_sigmask: Ensure declaration in <signal.h>.
25637         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
25638         include <pthread.h>.
25639         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
25640         problem.
25642 2011-07-07  Bruno Haible  <bruno@clisp.org>
25644         pthread_sigmask: Document the module.
25645         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
25647 2011-07-07  Bruno Haible  <bruno@clisp.org>
25649         pthread_sigmask: Follow gnulib conventions.
25650         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
25651         gl_PTHREAD_SIGMASK.
25652         * modules/pthread_sigmask (configure.ac): Update.
25654 2011-07-07  Bruno Haible  <bruno@clisp.org>
25656         pthread_sigmask: Make declaration C++ safe.
25657         * lib/signal.in.h: In two special conditions, just do an #include_next.
25658         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
25659         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
25660         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
25661         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
25662         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
25663         not REPLACE_PTHREAD_MASK.
25664         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
25665         not REPLACE_PTHREAD_MASK.
25666         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
25668 2011-07-07  Bruno Haible  <bruno@clisp.org>
25670         pthread_sigmask: Fix return value.
25671         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
25672         * lib/pthread_sigmask.c: New file.
25673         * modules/pthread_sigmask (Files): Add it.
25674         (configure.ac): Invoke AC_LIBOBJ.
25676 2011-07-07  Eric Blake  <eblake@redhat.com>
25678         getopt: more portable argv creation
25679         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
25680         const, use char arrays rather than strings.
25681         Suggested by Paul Eggert.
25683 2011-07-07  Bruno Haible  <bruno@clisp.org>
25685         Tests for module 'sigprocmask'.
25686         * modules/sigprocmask-tests: New file.
25687         * tests/test-sigprocmask.c: New file.
25689 2011-07-07  Bruno Haible  <bruno@clisp.org>
25691         float tests: Tweak.
25692         * tests/test-float.c (main): Tweak skip message.
25694 2011-07-07  Eric Blake  <eblake@redhat.com>
25696         getopt: avoid compiler warning during configure
25697         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
25698         assigning string literals to non-const pointer.
25700         getopt-gnu: avoid crash in glibc getopt
25701         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
25702         * tests/test-getopt.h (test_getopt): Enhance test.
25703         * tests/test-getopt_long.h (test_getopt_long): Likewise.
25704         * doc/posix-functions/getopt.texi (getopt): Document it.
25705         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
25706         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25707         Likewise.
25709 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
25711         getopt: handle W; without long options in getopt [BZ #12922]
25712         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
25713         but no long options are defined, just return 'W'.
25715 2011-07-07  Bruno Haible  <bruno@clisp.org>
25717         Avoid literal tabs.
25718         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
25719         variable containing a tab instead of a literal tab.
25720         Reported by Jim Meyering.
25722 2011-07-07  Bruno Haible  <bruno@clisp.org>
25724         Comments.
25725         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
25727 2011-07-06  Bruno Haible  <bruno@clisp.org>
25729         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
25730         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
25731         <winsock2.h>.
25732         (rpl_fd_isset, FD_ISSET): New definitions, copied from
25733         lib/sys_socket.in.h.
25734         (close, gethostname): Hide declarations from <winsock2.h>.
25735         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
25736         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
25737         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
25738         (select): Don't override if gnulib's <sys/select.h> was already
25739         included.
25740         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
25741         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
25742         setsockopt, shutdown, select): Tweak indentation.
25744 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
25746         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
25747         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
25748         in an application that does not use the sys_select module.
25750 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
25752         poll: do not return 0 on timeout=-1
25753         * lib/poll.c: Loop with yield if no events occurred.
25755 2011-07-06  Eric Blake  <eblake@redhat.com>
25757         pthread_sigmask: always replace when not using pthread
25758         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
25759         replacement when using some threading other than pthread.  Fix
25760         logic bug.
25762 2011-07-06  Bruno Haible  <bruno@clisp.org>
25764         Comments.
25765         * m4/printf.m4: Update comments about mingw.
25767 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
25769         sys_select: define sigset_t more portably
25770         * lib/sys_select.in.h: Always include <sys/types.h>, since
25771         we now need sigset_t and mingw defines it there.
25772         Include <signal.h> before split inclusion guard, to avoid
25773         mishaps on Solaris, whose <signal.h> eventually includes us.
25774         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
25775         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
25776         which come from ...
25777         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
25778         gl_CHECK_TYPE_SIGSET_T.
25779         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
25780         does the real work.
25781         * modules/sys_select (Depends-on): Add 'signal'.
25783         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
25784         Suggested by Bruno Haible.
25786         pselect: Use pthread_sigmask, not sigprocmask.
25787         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
25788         multithreaded apps better than sigprocmask does.
25789         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
25790         sigprocmask directly.
25792 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
25794         * lib/pselect.c (pselect): Use plain name, without "rpl_".
25795         Don't #undef,  since we don't need any underlying pselect.
25796         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
25797         (Depends-on): Add select.
25798         (Link): Add $(LIBSOCKET).
25799         These changes suggested by Bruno Haible.
25801         pselect: document better
25802         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
25803         * doc/posix-functions/pselect.texi (pselect): Document new module.
25805         pthread_sigmask: new module
25806         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
25807         * doc/posix-functions/pthread_sigmask.texi: Document new module.
25808         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
25809         This is done only as a macro; I don't know how well that'll
25810         work for C++.  Move <sys/types.h> include before the include_next,
25811         to avoid mishap on Solaris.
25812         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
25813         * modules/signal (Makefile.am): Substitute the check's results.
25814         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
25816         test-pselect: new module
25817         * modules/pselect-tests, tests/test-pselect.c: New files.
25818         * tests/test-select.c, tests/test-sys_select-c++.cc:
25819         If TEST_PSELECT is defined, test pselect instead of testing select.
25821         * tests/test-sys_select.c (sigset_t): Test for it, too.
25822         Suggested by Bruno Haible.
25824 2011-07-05  Eric Blake  <eblake@redhat.com>
25826         snprintf: guarantee %1$d, for libintl
25827         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
25828         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
25829         * doc/posix-functions/snprintf.texi (snprintf): Update.
25830         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
25831         * tests/test-snprintf.c (main): Enhance test.
25832         * tests/test-vsnprintf.c (main): Likewise.
25834 2011-07-05  Jim Meyering  <meyering@redhat.com>
25836         maint: exempt stdio-read.c and stdio-write.c from the cppi check
25837         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
25838         per Bruno's request, to accommodate this idiom (no space after "#")
25839         even when the function is inside an #if block:
25840         char *
25841         gets (char *s)
25842         #undef gets
25843         {
25844           ...
25845         }
25847 2011-07-04  Jim Meyering  <meyering@redhat.com>
25849         maint: indent with spaces, not TABs, and add a rule to check this
25850         * tests/test-userspec.c: Indent with spaces, not TABs.
25851         * tests/test-argp.c: Likewise.
25852         * tests/test-c-stack2.sh: Likewise.
25853         * tests/test-parse-duration.sh: Likewise
25854         * m4/strtod.m4: Likewise.
25855         * m4/alloca.m4: Likewise.
25856         * m4/pselect.m4: Likewise.
25857         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
25859 2011-07-03  Jim Meyering  <meyering@redhat.com>
25861         maint.mk: correct omissions in prohibit_argmatch_without_use check
25862         This rule would mistakenly report that argmatch.h is included without
25863         use even when both the argmatch and invalid_arg macro were used.
25864         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
25865         of argmatch and invalid_arg.
25867 2011-07-03  Bruno Haible  <bruno@clisp.org>
25869         Comments about EINTR.
25870         * lib/safe-read.h: Explain the purpose of this module.
25871         * lib/safe-write.h: Likewise.
25872         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
25873         module.
25874         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
25875         module.
25876         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25878 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
25880         xnanosleep: Rewrite to use new dtotimespec module.
25881         It has the conversion code that used to be in xnanosleep.
25882         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
25883         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
25884         (TIME_T_MAX): Remove.
25885         (xnanosleep): Rewrite in terms of dtotimespec.
25886         * modules/xnanosleep (Depends-on): Add dtotimespec.
25887         Remove intprops, stdbool.
25889         timespec-add, timespec-sub: new modules
25890         * lib/timespec.h (timespec_add, timespec_sub): New decls.
25891         * lib/timespec-add.c, lib/timespec-sub.c:
25892         * modules/timespec-add, modules/timespec-sub: New files.
25894         dtotimespec: new module
25895         * lib/timespec.h (dtotimespec): New decl.
25896         * lib/dtotimespec.c, modules/dtotimespec: New files.
25898         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
25900         pselect: new module
25901         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
25902         (pselect): New decls.
25903         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
25904         since the standard pselect decl uses 'restrict'.
25905         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
25906         HAVE_PSELECT, REPLACE_PSELECT.
25907         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
25908         HAVE_PSELECT, REPLACE_PSELECT.
25909         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
25911         sys_select: don't depend on sys_socket
25912         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
25913         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
25914         This fix works on GNU and GNU-like platforms, but has not been tested
25915         on native Windows.
25916         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
25917         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
25918         gl_HEADER_SYS_SOCKET.
25919         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
25920         gl_PREREQ_SYS_H_WINSOCK2.
25922 2011-06-29  Eric Blake  <eblake@redhat.com>
25924         pipe2: fix C89 compile problem
25925         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
25926         Reported by Bruno Haible.
25928         pipe, pipe2: don't corrupt fd on error
25929         * lib/pipe.c (pipe): Leave fd unchanged on error.
25930         * lib/pipe2.c (pipe2): Likewise.
25931         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
25932         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
25934 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
25936         mmap-anon: do not use regular expressions inadvertently
25937         * m4/mmap-anon.m4: Remove trailing period from strings sought
25938         in the output.
25940 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
25942         nanosleep: fix integer overflow problem
25943         * lib/nanosleep.c (my_usleep): Don't assume signed integer
25944         arithmetic wraps around on overflow.
25946         nanosleep: simplify carrying
25947         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
25948         first call to the underyling nanosleep, not for the last one.
25949         This doesn't fix any bugs, but it simplifies the computation of
25950         the remaining delay.  Found while auditing integer overflow issues.
25952         dup2: remove test for existence of fcntl
25953         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
25954         "#if HAVE_FCNTL", in the configure-time test program.
25955         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
25956         and therefore speeds up "configure" a bit.  Found while
25957         adding the dup2 module to Emacs.
25959 2011-06-24  Eric Blake  <eblake@redhat.com>
25961         maint.mk: enhance useless header checks
25962         * top/maint.mk (_sc_header_without_use): Check both include
25963         styles.
25964         (sc_prohibit_assert_without_use)
25965         (sc_prohibit_close_stream_without_use)
25966         (sc_prohibit_getopt_without_use)
25967         (sc_prohibit_quotearg_without_use)
25968         (sc_prohibit_quote_without_use)
25969         (sc_prohibit_long_options_without_use)
25970         (sc_prohibit_inttostr_without_use)
25971         (sc_prohibit_ignore_value_without_use)
25972         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
25973         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
25974         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
25975         (sc_prohibit_hash_pjw_without_use)
25976         (sc_prohibit_safe_read_without_use)
25977         (sc_prohibit_argmatch_without_use)
25978         (sc_prohibit_canonicalize_without_use)
25979         (sc_prohibit_root_dev_ino_without_use)
25980         (sc_prohibit_openat_without_use)
25981         (sc_prohibit_c_ctype_without_use)
25982         (sc_prohibit_signal_without_use)
25983         (sc_prohibit_stdio--_without_use)
25984         (sc_prohibit_stdio-safer_without_use)
25985         (sc_prohibit_strings_without_use)
25986         (sc_prohibit_intprops_without_use)
25987         (sc_prohibit_stddef_without_use)
25988         (sc_prohibit_xfreopen_without_use): Update clients.
25990 2011-06-24  Jim Meyering  <meyering@redhat.com>
25992         syntax-check: keep one maint.mk rule in sync with its header
25993         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
25994         of the bug Eric has just fixed, with today's commit 25e4c2ec.
25995         I prefer to avoid temporary files here, so use <(...), but that
25996         is not supported by /bin/sh, so...
25997         (SHELL): Define to /bin/bash.
25999 2011-06-24  Eric Blake  <eblake@redhat.com>
26001         maint.mk: update sc_prohibit_intprops_without_use
26002         * top/maint.mk (_intprops_names): Match recent changes.
26004 2011-06-24  Bruno Haible  <bruno@clisp.org>
26006         strerror-override: No-op tweak.
26007         * lib/strerror-override.h (strerror_override): Reorder conditions,
26008         for consistency with lib/strerror-override.c.
26010 2011-06-23  Eric Blake  <eblake@redhat.com>
26012         maint.mk: test further PATH_MAX issues
26013         * top/maint.mk (sc_prohibit_path_max_array): Rename...
26014         (sc_prohibit_path_max_allocation): ...and also test alloca.
26015         Suggested by Jim Meyering.
26017 2011-06-22  Eric Blake  <eblake@redhat.com>
26019         maint.mk: add syntax-check to avoid char[PATH_MAX]
26020         * top/maint.mk (sc_prohibit_path_max_array): New rule.
26022         stat: be robust to PATH_MAX definition
26023         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
26024         * modules/stat (Depends-on): Add verify.
26026         link: work around IRIX bug
26027         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
26028         * lib/link.c (rpl_link): Work around it.
26029         * tests/test-link.h (test_link): Enhance test.
26030         * doc/posix-functions/link.texi (link): Document the bug.
26032         getopt: silence clang warning
26033         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
26034         dereference.
26035         Reported by Gustavo Martin Domato.
26037 2011-06-22  Jim Meyering  <meyering@redhat.com>
26039         bootstrap: do not insert a blank line into each .gitignore file
26040         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
26042 2011-06-21  Eric Blake  <eblake@redhat.com>
26044         perror: test for output mismatch
26045         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
26046         perror on IRIX.
26048         strerror_r: fix OpenBSD behavior on out-of-range
26049         * lib/strerror_r.c (strerror_r): Always use maximal string.
26050         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
26052         strerror_r: fix OpenBSD behavior on 0
26053         * lib/strerror-override.c (strerror_override): Also override 0
26054         when needed.
26055         * lib/strerror-override.h (strerror_override): Likewise.
26056         * lib/strerror.c (strerror): Simplify, now that 0 override is done
26057         earlier.
26058         * lib/strerror_r.c (strerror_r): Likewise.
26059         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
26060         behavior...
26061         (gl_FUNC_STRERROR_0): ...into new macro.
26062         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
26063         is overridden.
26064         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
26065         * modules/strerror-override (Files): Add strerror.m4.
26066         (configure.ac): Also provide override for 0 when needed.
26067         * doc/posix-functions/strerror.texi (strerror): Document this.
26068         * doc/posix-functions/perror.texi (perror): Likewise.
26070         perror: adjust array size
26071         * modules/perror (Depends-on): Add strerror-override.
26072         * lib/perror.c (perror): Use it to avoid magic number.
26074         strerror-override: reduce size
26075         * lib/strerror-override.c (strerror_override): Use fewer lines.
26077 2011-06-20  Bruno Haible  <bruno@clisp.org>
26079         pathmax: Ensure correct value for PATH_MAX on HP-UX.
26080         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
26082 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
26084         alloca: port to compilers that can optimize like GCC 4.6.0
26085         * lib/alloca.c (find_stack_direction): New signature, taken from
26086         Autoconf git.  This works with GCC 4.6.0.  This code should never
26087         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
26088         be used with other compilers that optimize as well as GCC 4.6.0 does.
26089         (alloca): Adjust to new signature.
26090         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
26091         New macro, which patches Autoconf in a similar way.
26093         c-stack: stop worrying about stack direction
26094         * lib/c-stack.c (find_stack_direction): Remove.
26095         (segv_handler): Don't worry about stack direction growth, as it's
26096         too much of a pain to configure this correctly, given how compilers
26097         are optimizing-away our stack-growth detection code.  Instead, assume
26098         that any access to just before or just after the stack is OK.
26099         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
26100         Don't require AC_FUNC_ALLOCA; no longer needed.
26102 2011-06-20  Eric Blake  <eblake@redhat.com>
26104         test-stat: don't allocate PATH_MAX bytes
26105         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
26106         PATH_MAX-sized buffer.
26107         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
26108         * modules/stat-tests (Depends-on): Likewise.
26109         * tests/test-fstatat.c (includes): Drop pathmax.h.
26110         * tests/test-stat.c (includes): Likewise.
26111         Reported by Bruno Haible.
26113 2011-06-20  Bruno Haible  <bruno@clisp.org>
26115         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
26116         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
26117         * lib/float.c: New file.
26118         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
26119         REPLACE_FLOAT_LDBL.
26120         * modules/float (Files): Add lib/float.c.
26121         (configure.ac): Invoke AC_LIBOBJ.
26122         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
26124 2011-06-20  Bruno Haible  <bruno@clisp.org>
26126         Tests for module 'float'.
26127         * modules/float-tests: New file.
26128         * tests/test-float.c: New file.
26130 2011-06-19  Bruno Haible  <bruno@clisp.org>
26132         isinf: Coding style.
26133         * lib/isinf.c: Use GNU coding style.
26135 2011-06-19  Bruno Haible  <bruno@clisp.org>
26137         linkat test: Avoid test failure on AIX 7.1.
26138         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
26139         * tests/test-link.h (test_link): Likewise.
26141 2011-06-19  Bruno Haible  <bruno@clisp.org>
26143         pread test: Avoid test failure on OpenBSD 4.9.
26144         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
26146 2011-06-19  Bruno Haible  <bruno@clisp.org>
26148         sprintf-posix: Fix test failure on AIX 7.1.
26149         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
26150         * doc/posix-functions/dprintf.texi: Mention limited precision problem
26151         on AIX.
26152         * doc/posix-functions/fprintf.texi: Likewise.
26153         * doc/posix-functions/printf.texi: Likewise.
26154         * doc/posix-functions/snprintf.texi: Likewise.
26155         * doc/posix-functions/sprintf.texi: Likewise.
26156         * doc/posix-functions/vdprintf.texi: Likewise.
26157         * doc/posix-functions/vfprintf.texi: Likewise.
26158         * doc/posix-functions/vprintf.texi: Likewise.
26159         * doc/posix-functions/vsnprintf.texi: Likewise.
26160         * doc/posix-functions/vsprintf.texi: Likewise.
26162 2011-06-19  Bruno Haible  <bruno@clisp.org>
26164         roundl-ieee: Fix test failure on AIX 7.1.
26165         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
26166         * doc/posix-functions/roundl.texi: Mention problem with negative
26167         arguments.
26169 2011-06-19  Bruno Haible  <bruno@clisp.org>
26171         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
26172         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
26173         * doc/posix-functions/round.texi: Mention problem with negative
26174         arguments.
26175         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
26177 2011-06-19  Bruno Haible  <bruno@clisp.org>
26179         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
26180         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
26181         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
26182         * doc/posix-functions/roundf.texi: Mention problem with negative
26183         arguments.
26184         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
26186 2011-06-19  Bruno Haible  <bruno@clisp.org>
26188         ceilf-ieee: Work around bug on MacOS X 10.5.
26189         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
26191         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
26192         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
26193         IEEE compliant, avoid compiler optimizations.
26194         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
26195         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
26196         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
26197         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
26198         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26199         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
26200         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26201         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
26202         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
26203         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
26205 2011-06-19  Bruno Haible  <bruno@clisp.org>
26207         ceilf-ieee: Work around bug on AIX 7.1.
26208         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
26209         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
26211 2011-06-19  Bruno Haible  <bruno@clisp.org>
26213         ceil-ieee: Work around bug on AIX 7.1.
26214         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
26215         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
26217 2011-06-18  Bruno Haible  <bruno@clisp.org>
26219         fsync test: Avoid test failure on MacOS X and AIX.
26220         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
26221         EINVAL.
26223 2011-06-18  Bruno Haible  <bruno@clisp.org>
26225         openat, fdopendir tests: Fix link errors.
26226         * modules/openat-tests (Depends-on): Add progname.
26227         * modules/fdopendir-tests (Depends-on): Likewise.
26228         * tests/test-fchownat.c: Include progname.h.
26229         (main): Call set_program_name.
26230         * tests/test-fstatat.c: Include progname.h.
26231         (main): Call set_program_name.
26232         * tests/test-mkdirat.c: Include progname.h.
26233         (main): Call set_program_name.
26234         * tests/test-openat.c: Include progname.h.
26235         (main): Call set_program_name.
26236         * tests/test-unlinkat.c: Include progname.h.
26237         (main): Call set_program_name.
26238         * tests/test-fdopendir.c: Include progname.h.
26239         (main): Call set_program_name.
26241 2011-06-18  Bruno Haible  <bruno@clisp.org>
26243         Doc update.
26244         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
26245         HP-UX.
26246         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
26248 2011-06-18  Bruno Haible  <bruno@clisp.org>
26250         getcwd tests: Avoid compilation error on HP-UX 11.31.
26251         * modules/getcwd-tests (Depends-on): Add pathmax.
26252         * tests/test-getcwd.c: Include pathmax.h.
26254 2011-06-18  Bruno Haible  <bruno@clisp.org>
26256         isfinite, isinf: Fix link error on AIX 6 and 7.
26257         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
26258         needed, also test the macro with a 'float' argument.
26259         * m4/isinf.m4 (gl_ISINF): Likewise.
26261 2011-06-18  Bruno Haible  <bruno@clisp.org>
26263         getloadavg: Don't clobber LIBS. Regression from previous commit.
26264         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
26265         AC_CHECK_LIB from here...
26266         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
26267         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
26268         gl_func_getloadavg_done.
26269         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26271 2011-06-18  Bruno Haible  <bruno@clisp.org>
26273         clean-temp: Improve documentation.
26274         * lib/clean-temp.h: Explain better how to use this module.
26275         Reported by John Darrington <john@darrington.wattle.id.au>.
26277 2011-06-17  Bruno Haible  <bruno@clisp.org>
26279         pread, pwrite: Avoid cc warning on AIX.
26280         * lib/unistd.in.h (pread): Undefine before defining as a macro.
26281         (pwrite): Likewise.
26283 2011-06-17  Bruno Haible  <bruno@clisp.org>
26285         spawn-pipe tests: Fix link error.
26286         * tests/test-spawn-pipe-child.c: Undefine fprintf.
26287         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26289 2011-06-17  Bruno Haible  <bruno@clisp.org>
26291         Tests: Remove unnecessary dependency.
26292         * modules/canonicalize-tests (Depends-on): Remove progname.
26293         * modules/chown-tests (Depends-on): Likewise.
26294         * modules/dirname-tests (Depends-on): Likewise.
26295         * modules/fdopendir-tests (Depends-on): Likewise.
26296         * modules/fdutimensat-tests (Depends-on): Likewise.
26297         * modules/hash-tests (Depends-on): Likewise.
26298         * modules/lchown-tests (Depends-on): Likewise.
26299         * modules/linkat-tests (Depends-on): Likewise.
26300         * modules/renameat-tests (Depends-on): Likewise.
26301         * modules/spawn-pipe-tests (Depends-on): Likewise.
26302         * modules/utimensat-tests (Depends-on): Likewise.
26304 2011-06-17  Bruno Haible  <bruno@clisp.org>
26306         spawn-pipe tests: Fix link error.
26307         * tests/test-spawn-pipe-child.c: Undefine fflush.
26309 2011-06-17  Bruno Haible  <bruno@clisp.org>
26311         Fix tests link errors.
26312         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
26313         * modules/chown-tests (Makefile.am): Don't link test-chown with
26314         LIBINTL.
26315         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
26316         LIBINTL.
26317         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
26318         LIBINTL.
26319         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
26320         LIBINTL.
26322 2011-06-16  Bruno Haible  <bruno@clisp.org>
26324         crypto/gc-sha1: Fix recent regression.
26325         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
26326         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
26328         crypto/gc-md5: Fix recent regression.
26329         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
26331         crypto/gc-md4: Fix recent regression.
26332         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
26333         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
26335         crypto/gc-arctwo: Fix recent regression.
26336         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
26337         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
26339         crypto/gc-rijndael: Fix recent regression.
26340         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
26341         (configure.ac): Invoke AC_LIBOBJ here.
26342         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
26343         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26345         crypto/gc-hmac-sha1: Fix recent regression.
26346         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
26347         (configure.ac): Invoke AC_LIBOBJ here.
26348         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
26349         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26351         crypto/gc-hmac-md5: Fix recent regression.
26352         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
26353         (configure.ac): Invoke AC_LIBOBJ here.
26354         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
26355         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26357         crypto/gc-des: Fix recent regression.
26358         * modules/crypto/gc-des (Files): Remove m4/des.m4.
26359         (configure.ac): Invoke AC_LIBOBJ here.
26360         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
26361         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26363         crypto/gc-arcfour: Fix recent regression.
26364         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
26365         (configure.ac): Invoke AC_LIBOBJ here.
26366         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
26367         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26369 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
26371         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
26372         After the 2011-05-21 change, this macro requires
26373         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
26374         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
26376 2011-06-16  Bruno Haible  <bruno@clisp.org>
26378         fprintftime: Move AC_LIBOBJ invocations to module description.
26379         * m4/fprintftime.m4: Remove file.
26380         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
26381         (configure.ac): Remove gl_FPRINTFTIME call.
26382         (Makefile.am): Augment lib_SOURCES.
26383         Reported by Jim Meyering.
26385 2011-06-16  Bruno Haible  <bruno@clisp.org>
26387         tmpfile-safer: Finish 2011-05-23 commit.
26388         * m4/stdio-safer.m4: Really remove file.
26389         Reported by Jim Meyering.
26391 2011-06-16  Bruno Haible  <bruno@clisp.org>
26393         syntax-check: Fix typo.
26394         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
26395         printf-posix.m4.
26396         Reported by Jim Meyering.
26398 2011-06-13  Jim Meyering  <meyering@redhat.com>
26400         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
26401         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
26403 2011-05-23  Bruno Haible  <bruno@clisp.org>
26405         yesno: Move AC_LIBOBJ invocations to module description.
26406         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
26407         * modules/yesno (Makefile.am): Augment lib_SOURCES.
26409 2011-05-23  Bruno Haible  <bruno@clisp.org>
26411         xstrtol: Move AC_LIBOBJ invocations to module description.
26412         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
26413         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
26415 2011-05-23  Bruno Haible  <bruno@clisp.org>
26417         xstrtold: Move AC_LIBOBJ invocations to module description.
26418         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
26419         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
26421 2011-05-23  Bruno Haible  <bruno@clisp.org>
26423         xstrtod: Move AC_LIBOBJ invocations to module description.
26424         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
26425         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
26427 2011-05-23  Bruno Haible  <bruno@clisp.org>
26429         xnanosleep: Move AC_LIBOBJ invocations to module description.
26430         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
26431         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
26433 2011-05-23  Bruno Haible  <bruno@clisp.org>
26435         xgetcwd: Move AC_LIBOBJ invocations to module description.
26436         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
26437         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
26439 2011-05-23  Bruno Haible  <bruno@clisp.org>
26441         xalloc: Move AC_LIBOBJ invocations to module description.
26442         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
26443         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
26445 2011-05-23  Bruno Haible  <bruno@clisp.org>
26447         write-any-file: Move AC_LIBOBJ invocations to module description.
26448         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
26449         invocation.
26450         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
26452 2011-05-23  Bruno Haible  <bruno@clisp.org>
26454         utimens: Move AC_LIBOBJ invocations to module description.
26455         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
26456         * modules/utimens (Makefile.am): Augment lib_SOURCES.
26458 2011-05-23  Bruno Haible  <bruno@clisp.org>
26460         utimecmp: Move AC_LIBOBJ invocations to module description.
26461         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
26462         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
26464 2011-05-23  Bruno Haible  <bruno@clisp.org>
26466         userspec: Move AC_LIBOBJ invocations to module description.
26467         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
26468         * modules/userspec (Makefile.am): Augment lib_SOURCES.
26470 2011-05-23  Bruno Haible  <bruno@clisp.org>
26472         unlinkdir: Move AC_LIBOBJ invocations to module description.
26473         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
26474         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
26476 2011-05-23  Bruno Haible  <bruno@clisp.org>
26478         unistd-safer: Move AC_LIBOBJ invocations to module description.
26479         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
26480         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
26482 2011-05-23  Bruno Haible  <bruno@clisp.org>
26484         tempname: Move AC_LIBOBJ invocations to module description.
26485         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
26486         * modules/tempname (Makefile.am): Augment lib_SOURCES.
26488 2011-05-23  Bruno Haible  <bruno@clisp.org>
26490         strftime: Move AC_LIBOBJ invocations to module description.
26491         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
26492         * modules/strftime (Makefile.am): Augment lib_SOURCES.
26494 2011-05-23  Bruno Haible  <bruno@clisp.org>
26496         stdlib-safer: Move AC_LIBOBJ invocations to module description.
26497         * m4/stdlib-safer.m4: Remove file.
26498         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
26499         (configure.ac): Remove gl_STDLIB_SAFER call.
26500         (Makefile.am): Augment lib_SOURCES.
26502 2011-05-23  Bruno Haible  <bruno@clisp.org>
26504         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
26505         * m4/stdio-safer.m4: Remove file.
26506         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
26507         (configure.ac): Remove gl_TMPFILE_SAFER call.
26508         (Makefile.am): Augment lib_SOURCES.
26510 2011-05-23  Bruno Haible  <bruno@clisp.org>
26512         popen-safer: Move AC_LIBOBJ invocations to module description.
26513         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
26514         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
26515         (configure.ac): Remove gl_POPEN_SAFER call.
26516         (Makefile.am): Augment lib_SOURCES.
26518 2011-05-23  Bruno Haible  <bruno@clisp.org>
26520         freopen-safer: Move AC_LIBOBJ invocations to module description.
26521         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
26522         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
26523         (configure.ac): Remove gl_FREOPEN_SAFER call.
26524         (Makefile.am): Augment lib_SOURCES.
26526 2011-05-23  Bruno Haible  <bruno@clisp.org>
26528         fopen-safer: Move AC_LIBOBJ invocations to module description.
26529         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
26530         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
26531         (configure.ac): Remove gl_FOPEN_SAFER call.
26532         (Makefile.am): Augment lib_SOURCES.
26534 2011-05-23  Bruno Haible  <bruno@clisp.org>
26536         crypto/sha512: Move AC_LIBOBJ invocations to module description.
26537         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
26538         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
26540 2011-05-23  Bruno Haible  <bruno@clisp.org>
26542         crypto/sha256: Move AC_LIBOBJ invocations to module description.
26543         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
26544         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
26546 2011-05-23  Bruno Haible  <bruno@clisp.org>
26548         crypto/sha1: Move AC_LIBOBJ invocations to module description.
26549         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
26550         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
26552 2011-05-23  Bruno Haible  <bruno@clisp.org>
26554         settime: Move AC_LIBOBJ invocations to module description.
26555         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
26556         * modules/settime (Makefile.am): Augment lib_SOURCES.
26558 2011-05-23  Bruno Haible  <bruno@clisp.org>
26560         savedir: Move AC_LIBOBJ invocations to module description.
26561         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
26562         * modules/savedir (Makefile.am): Augment lib_SOURCES.
26564 2011-05-23  Bruno Haible  <bruno@clisp.org>
26566         save-cwd: Move AC_LIBOBJ invocations to module description.
26567         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
26568         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
26570 2011-05-23  Bruno Haible  <bruno@clisp.org>
26572         same: Move AC_LIBOBJ invocations to module description.
26573         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
26574         * modules/same (Makefile.am): Augment lib_SOURCES.
26576 2011-05-23  Bruno Haible  <bruno@clisp.org>
26578         safe-write: Move AC_LIBOBJ invocations to module description.
26579         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
26580         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
26581         instead of gl_SAFE_WRITE.
26582         (Makefile.am): Augment lib_SOURCES.
26584 2011-05-23  Bruno Haible  <bruno@clisp.org>
26586         safe-read: Move AC_LIBOBJ invocations to module description.
26587         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
26588         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
26589         of gl_SAFE_READ.
26590         (Makefile.am): Augment lib_SOURCES.
26592 2011-05-23  Bruno Haible  <bruno@clisp.org>
26594         safe-alloc: Move AC_LIBOBJ invocations to module description.
26595         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
26596         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
26598 2011-05-23  Bruno Haible  <bruno@clisp.org>
26600         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
26601         * m4/rijndael.m4: Remove file.
26602         * modules/crypto/rijndael (Files): Remove it.
26603         (configure.ac): Remove gl_RIJNDAEL call.
26604         (Makefile.am): Augment lib_SOURCES.
26606 2011-05-23  Bruno Haible  <bruno@clisp.org>
26608         readtokens: Move AC_LIBOBJ invocations to module description.
26609         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
26610         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
26612 2011-05-23  Bruno Haible  <bruno@clisp.org>
26614         read-file: Move AC_LIBOBJ invocations to module description.
26615         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
26616         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
26617         of gl_FUNC_READ_FILE.
26618         (Makefile.am): Augment lib_SOURCES.
26620 2011-05-23  Bruno Haible  <bruno@clisp.org>
26622         quotearg: Move AC_LIBOBJ invocations to module description.
26623         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
26624         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
26626 2011-05-23  Bruno Haible  <bruno@clisp.org>
26628         quote: Move AC_LIBOBJ invocations to module description.
26629         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
26630         * modules/quote (Makefile.am): Augment lib_SOURCES.
26632 2011-05-23  Bruno Haible  <bruno@clisp.org>
26634         posixver: Move AC_LIBOBJ invocations to module description.
26635         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
26636         * modules/posixver (Makefile.am): Augment lib_SOURCES.
26638 2011-05-23  Bruno Haible  <bruno@clisp.org>
26640         posixtm: Move AC_LIBOBJ invocations to module description.
26641         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
26642         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
26644 2011-05-23  Bruno Haible  <bruno@clisp.org>
26646         physmem: Move AC_LIBOBJ invocations to module description.
26647         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
26648         * modules/physmem (Makefile.am): Augment lib_SOURCES.
26650 2011-05-23  Bruno Haible  <bruno@clisp.org>
26652         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
26653         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
26654         invocation.
26655         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
26657 2011-05-23  Bruno Haible  <bruno@clisp.org>
26659         mpsort: Move AC_LIBOBJ invocations to module description.
26660         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
26661         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
26663 2011-05-23  Bruno Haible  <bruno@clisp.org>
26665         modechange: Move AC_LIBOBJ invocations to module description.
26666         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
26667         * modules/modechange (Makefile.am): Augment lib_SOURCES.
26669 2011-05-23  Bruno Haible  <bruno@clisp.org>
26671         mkdir-p: Move AC_LIBOBJ invocations to module description.
26672         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
26673         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
26675 2011-05-23  Bruno Haible  <bruno@clisp.org>
26677         mkancesdirs: Move AC_LIBOBJ invocations to module description.
26678         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
26679         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
26681 2011-05-23  Bruno Haible  <bruno@clisp.org>
26683         mgetgroups: Move AC_LIBOBJ invocations to module description.
26684         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
26685         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
26687 2011-05-23  Bruno Haible  <bruno@clisp.org>
26689         memxor: Move AC_LIBOBJ invocations to module description.
26690         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
26691         * modules/memxor (Makefile.am): Augment lib_SOURCES.
26693 2011-05-23  Bruno Haible  <bruno@clisp.org>
26695         memcoll: Move AC_LIBOBJ invocations to module description.
26696         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
26697         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
26699 2011-05-23  Bruno Haible  <bruno@clisp.org>
26701         memcasecmp: Move AC_LIBOBJ invocations to module description.
26702         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
26703         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
26705 2011-05-23  Bruno Haible  <bruno@clisp.org>
26707         crypto/md5: Move AC_LIBOBJ invocations to module description.
26708         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
26709         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
26711 2011-05-23  Bruno Haible  <bruno@clisp.org>
26713         crypto/md4: Move AC_LIBOBJ invocations to module description.
26714         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
26715         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
26717 2011-05-23  Bruno Haible  <bruno@clisp.org>
26719         crypto/md2: Move AC_LIBOBJ invocations to module description.
26720         * m4/md2.m4: Remove file.
26721         * modules/crypto/md2 (Files): Remove it.
26722         (configure.ac): Remove gl_MD2 call.
26723         (Makefile.am): Augment lib_SOURCES.
26725 2011-05-23  Bruno Haible  <bruno@clisp.org>
26727         long-options: Move AC_LIBOBJ invocations to module description.
26728         * m4/long-options.m4: Remove file.
26729         * modules/long-options (Files): Remove it.
26730         (configure.ac): Remove gl_LONG_OPTIONS call.
26731         (Makefile.am): Augment lib_SOURCES.
26733 2011-05-23  Bruno Haible  <bruno@clisp.org>
26735         i-ring: Move AC_LIBOBJ invocations to module description.
26736         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
26737         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
26739 2011-05-23  Bruno Haible  <bruno@clisp.org>
26741         idcache: Move AC_LIBOBJ invocations to module description.
26742         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
26743         * modules/idcache (Makefile.am): Augment lib_SOURCES.
26745 2011-05-23  Bruno Haible  <bruno@clisp.org>
26747         human: Move AC_LIBOBJ invocations to module description.
26748         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
26749         * modules/human (Makefile.am): Augment lib_SOURCES.
26751 2011-05-23  Bruno Haible  <bruno@clisp.org>
26753         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
26754         * m4/hmac-sha1.m4: Remove file.
26755         * modules/crypto/hmac-sha1 (Files): Remove it.
26756         (configure.ac): Remove gl_HMAC_SHA1 call.
26757         (Makefile.am): Augment lib_SOURCES.
26759 2011-05-23  Bruno Haible  <bruno@clisp.org>
26761         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
26762         * m4/hmac-md5.m4: Remove file.
26763         * modules/crypto/hmac-md5 (Files): Remove it.
26764         (configure.ac): Remove gl_HMAC_MD5 call.
26765         (Makefile.am): Augment lib_SOURCES.
26767 2011-05-23  Bruno Haible  <bruno@clisp.org>
26769         hash: Move AC_LIBOBJ invocations to module description.
26770         * m4/hash.m4: Remove file.
26771         * modules/hash (Files): Remove it.
26772         (configure.ac): Remove gl_HASH call.
26773         (Makefile.am): Augment lib_SOURCES.
26775 2011-05-23  Bruno Haible  <bruno@clisp.org>
26777         hard-locale: Move AC_LIBOBJ invocations to module description.
26778         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
26779         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
26781 2011-05-23  Bruno Haible  <bruno@clisp.org>
26783         getugroups: Move AC_LIBOBJ invocations to module description.
26784         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
26785         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
26787 2011-05-23  Bruno Haible  <bruno@clisp.org>
26789         gettime: Move AC_LIBOBJ invocations to module description.
26790         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
26791         * modules/gettime (Makefile.am): Augment lib_SOURCES.
26793 2011-05-23  Bruno Haible  <bruno@clisp.org>
26795         getndelim2: Move AC_LIBOBJ invocations to module description.
26796         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
26797         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
26799 2011-05-23  Bruno Haible  <bruno@clisp.org>
26801         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
26802         * m4/gc-pbkdf2-sha1.m4: Remove file.
26803         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
26804         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
26805         (Makefile.am): Augment lib_SOURCES.
26807 2011-05-23  Bruno Haible  <bruno@clisp.org>
26809         fts: Move AC_LIBOBJ invocations to module description.
26810         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
26811         * modules/fts (configure.ac): ... to here.
26813 2011-05-23  Bruno Haible  <bruno@clisp.org>
26815         file-type: Move AC_LIBOBJ invocations to module description.
26816         * m4/file-type.m4: Remove file.
26817         * modules/file-type (Files): Remove it.
26818         (configure.ac): Remove gl_FILE_TYPE call.
26819         (Makefile.am): Augment lib_SOURCES.
26821 2011-05-23  Bruno Haible  <bruno@clisp.org>
26823         filenamecat*: Respect rules for use of AC_LIBOBJ.
26824         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
26825         Remove AC_LIBOBJ invocation.
26826         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
26827         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
26829 2011-05-23  Bruno Haible  <bruno@clisp.org>
26831         filemode: Move AC_LIBOBJ invocations to module description.
26832         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
26833         * modules/filemode (Makefile.am): Augment lib_SOURCES.
26835 2011-05-23  Bruno Haible  <bruno@clisp.org>
26837         openat-safer: Move AC_LIBOBJ invocations to module description.
26838         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
26839         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
26841 2011-05-23  Bruno Haible  <bruno@clisp.org>
26843         fcntl-safer: Move AC_LIBOBJ invocations to module description.
26844         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
26845         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
26847 2011-05-23  Bruno Haible  <bruno@clisp.org>
26849         exclude: Move AC_LIBOBJ invocations to module description.
26850         * m4/exclude.m4: Remove file.
26851         * modules/exclude (Files): Remove it.
26852         (configure.ac): Remove gl_EXCLUDE call.
26853         (Makefile.am): Augment lib_SOURCES.
26855 2011-05-23  Bruno Haible  <bruno@clisp.org>
26857         dirname*: Respect rules for use of AC_LIBOBJ.
26858         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
26859         invocations.
26860         * modules/dirname (Makefile.am): Augment lib_SOURCES.
26861         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
26863 2011-05-23  Bruno Haible  <bruno@clisp.org>
26865         dirent-safer: Move AC_LIBOBJ invocations to module description.
26866         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
26867         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
26869 2011-05-23  Bruno Haible  <bruno@clisp.org>
26871         crypto/des: Move AC_LIBOBJ invocations to module description.
26872         * m4/des.m4: Remove file.
26873         * modules/crypto/des (Files): Remove it.
26874         (configure.ac): Remove gl_DES call.
26875         (Makefile.am): Augment lib_SOURCES.
26877 2011-05-23  Bruno Haible  <bruno@clisp.org>
26879         cycle-check: Move AC_LIBOBJ invocations to module description.
26880         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
26881         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
26883 2011-05-23  Bruno Haible  <bruno@clisp.org>
26885         c-strtold: Move AC_LIBOBJ invocations to module description.
26886         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
26887         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
26889 2011-05-23  Bruno Haible  <bruno@clisp.org>
26891         c-strtod: Move AC_LIBOBJ invocations to module description.
26892         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
26893         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
26895 2011-05-23  Bruno Haible  <bruno@clisp.org>
26897         crc: Move AC_LIBOBJ invocations to module description.
26898         * m4/crc.m4: Remove file.
26899         * modules/crc (Files): Remove it.
26900         (configure.ac): Remove gl_CRC call.
26901         (Makefile.am): Augment lib_SOURCES.
26903 2011-05-23  Bruno Haible  <bruno@clisp.org>
26905         close-stream: Move AC_LIBOBJ invocations to module description.
26906         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
26907         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
26909 2011-05-23  Bruno Haible  <bruno@clisp.org>
26911         closeout: Move AC_LIBOBJ invocations to module description.
26912         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
26913         * modules/closeout (Makefile.am): Augment lib_SOURCES.
26915 2011-05-23  Bruno Haible  <bruno@clisp.org>
26917         closein: Move AC_LIBOBJ invocations to module description.
26918         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
26919         * modules/closein (Makefile.am): Augment lib_SOURCES.
26921 2011-05-23  Bruno Haible  <bruno@clisp.org>
26923         cloexec: Move AC_LIBOBJ invocations to module description.
26924         * m4/cloexec.m4: Remove file.
26925         * modules/cloexec (Files): Remove it.
26926         (configure.ac): Remove gl_CLOEXEC call.
26927         (Makefile.am): Augment lib_SOURCES.
26929 2011-05-23  Bruno Haible  <bruno@clisp.org>
26931         check-version: Move AC_LIBOBJ invocations to module description.
26932         * m4/check-version.m4: Remove file.
26933         * modules/check-version (Files): Remove it.
26934         (configure.ac): Remove gl_CHECK_VERSION call.
26935         (Makefile.am): Augment lib_SOURCES.
26937 2011-05-23  Bruno Haible  <bruno@clisp.org>
26939         chdir-safer: Move AC_LIBOBJ invocations to module description.
26940         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
26941         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
26943 2011-05-23  Bruno Haible  <bruno@clisp.org>
26945         canonicalize: Move AC_LIBOBJ invocations to module description.
26946         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
26947         AC_LIBOBJ invocation.
26948         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
26950 2011-05-23  Bruno Haible  <bruno@clisp.org>
26952         canon-host: Move AC_LIBOBJ invocations to module description.
26953         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
26954         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
26955         instead of gl_CANON_HOST.
26956         (Makefile.am): Augment lib_SOURCES.
26958 2011-05-23  Bruno Haible  <bruno@clisp.org>
26960         backupfile: Move AC_LIBOBJ invocations to module description.
26961         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
26962         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
26964 2011-05-23  Bruno Haible  <bruno@clisp.org>
26966         argmatch: Move AC_LIBOBJ invocations to module description.
26967         * m4/argmatch.m4: Remove file.
26968         * modules/argmatch (Files): Remove it.
26969         (configure.ac): Remove gl_ARGMATCH call.
26970         (Makefile.am): Augment lib_SOURCES.
26972 2011-05-23  Bruno Haible  <bruno@clisp.org>
26974         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
26975         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
26976         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
26978 2011-05-23  Bruno Haible  <bruno@clisp.org>
26980         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
26981         * m4/arcfour.m4: Remove file.
26982         * modules/crypto/arcfour (Files): Remove it.
26983         (configure.ac): Remove gl_ARCFOUR call.
26984         (Makefile.am): Augment lib_SOURCES.
26986 2011-05-22  Bruno Haible  <bruno@clisp.org>
26988         write: Move AC_LIBOBJ invocations to module description.
26989         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
26990         * modules/write (configure.ac): ... to here.
26992 2011-05-22  Bruno Haible  <bruno@clisp.org>
26994         wmemset: Move AC_LIBOBJ invocations to module description.
26995         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
26996         here...
26997         * modules/wmemset (configure.ac): ... to here.
26999 2011-05-22  Bruno Haible  <bruno@clisp.org>
27001         wmemmove: Move AC_LIBOBJ invocations to module description.
27002         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
27003         here...
27004         * modules/wmemmove (configure.ac): ... to here.
27006 2011-05-22  Bruno Haible  <bruno@clisp.org>
27008         wmemcpy: Move AC_LIBOBJ invocations to module description.
27009         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
27010         here...
27011         * modules/wmemcpy (configure.ac): ... to here.
27013 2011-05-22  Bruno Haible  <bruno@clisp.org>
27015         wmemcmp: Move AC_LIBOBJ invocations to module description.
27016         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
27017         here...
27018         * modules/wmemcmp (configure.ac): ... to here.
27020 2011-05-22  Bruno Haible  <bruno@clisp.org>
27022         wmemchr: Move AC_LIBOBJ invocations to module description.
27023         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
27024         here...
27025         * modules/wmemchr (configure.ac): ... to here.
27027 2011-05-22  Bruno Haible  <bruno@clisp.org>
27029         wcswidth: Move AC_LIBOBJ invocations to module description.
27030         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
27031         here...
27032         * modules/wcswidth (configure.ac): ... to here.
27034 2011-05-22  Bruno Haible  <bruno@clisp.org>
27036         wcwidth: Respect rules for use of AC_LIBOBJ.
27037         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
27038         invocation from here...
27039         * modules/wcwidth (configure.ac): ... to here.
27040         (Depends-on): Update conditions.
27042 2011-05-22  Bruno Haible  <bruno@clisp.org>
27044         wctype: Move AC_LIBOBJ invocations to module description.
27045         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
27046         invocation from here...
27047         * modules/wctype (configure.ac): ... to here.
27048         (Depends-on): Update conditions.
27050 2011-05-22  Bruno Haible  <bruno@clisp.org>
27052         wctrans: Move AC_LIBOBJ invocations to module description.
27053         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
27054         invocation from here...
27055         * modules/wctrans (configure.ac): ... to here.
27057 2011-05-22  Bruno Haible  <bruno@clisp.org>
27059         wctomb: Move AC_LIBOBJ invocations to module description.
27060         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
27061         invocations from here...
27062         * modules/wctomb (configure.ac): ... to here.
27064 2011-05-22  Bruno Haible  <bruno@clisp.org>
27066         wctob: Move AC_LIBOBJ invocations to module description.
27067         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
27068         gl_PREREQ_WCTOB invocations from here...
27069         * modules/wctob (configure.ac): ... to here.
27070         (Depends-on): Update conditions.
27072 2011-05-22  Bruno Haible  <bruno@clisp.org>
27074         wcsxfrm: Move AC_LIBOBJ invocations to module description.
27075         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
27076         here...
27077         * modules/wcsxfrm (configure.ac): ... to here.
27079 2011-05-22  Bruno Haible  <bruno@clisp.org>
27081         wcstok: Move AC_LIBOBJ invocations to module description.
27082         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
27083         * modules/wcstok (configure.ac): ... to here.
27085 2011-05-22  Bruno Haible  <bruno@clisp.org>
27087         wcsstr: Move AC_LIBOBJ invocations to module description.
27088         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
27089         * modules/wcsstr (configure.ac): ... to here.
27091 2011-05-22  Bruno Haible  <bruno@clisp.org>
27093         wcsspn: Move AC_LIBOBJ invocations to module description.
27094         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
27095         * modules/wcsspn (configure.ac): ... to here.
27097 2011-05-22  Bruno Haible  <bruno@clisp.org>
27099         wcsrtombs: Move AC_LIBOBJ invocations to module description.
27100         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
27101         gl_PREREQ_WCSRTOMBS invocations from here...
27102         * modules/wcsrtombs (configure.ac): ... to here.
27104 2011-05-22  Bruno Haible  <bruno@clisp.org>
27106         wcsrchr: Move AC_LIBOBJ invocations to module description.
27107         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
27108         here...
27109         * modules/wcsrchr (configure.ac): ... to here.
27111 2011-05-22  Bruno Haible  <bruno@clisp.org>
27113         wcspbrk: Move AC_LIBOBJ invocations to module description.
27114         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
27115         here...
27116         * modules/wcspbrk (configure.ac): ... to here.
27118 2011-05-22  Bruno Haible  <bruno@clisp.org>
27120         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
27121         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
27122         gl_PREREQ_WCSNRTOMBS invocations from here...
27123         * modules/wcsnrtombs (configure.ac): ... to here.
27125 2011-05-22  Bruno Haible  <bruno@clisp.org>
27127         wcsnlen: Move AC_LIBOBJ invocations to module description.
27128         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
27129         here...
27130         * modules/wcsnlen (configure.ac): ... to here.
27132 2011-05-22  Bruno Haible  <bruno@clisp.org>
27134         wcsncpy: Move AC_LIBOBJ invocations to module description.
27135         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
27136         here...
27137         * modules/wcsncpy (configure.ac): ... to here.
27139 2011-05-22  Bruno Haible  <bruno@clisp.org>
27141         wcsncmp: Move AC_LIBOBJ invocations to module description.
27142         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
27143         here...
27144         * modules/wcsncmp (configure.ac): ... to here.
27146 2011-05-22  Bruno Haible  <bruno@clisp.org>
27148         wcsncat: Move AC_LIBOBJ invocations to module description.
27149         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
27150         here...
27151         * modules/wcsncat (configure.ac): ... to here.
27153 2011-05-22  Bruno Haible  <bruno@clisp.org>
27155         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
27156         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
27157         from here...
27158         * modules/wcsncasecmp (configure.ac): ... to here.
27160 2011-05-22  Bruno Haible  <bruno@clisp.org>
27162         wcslen: Move AC_LIBOBJ invocations to module description.
27163         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
27164         * modules/wcslen (configure.ac): ... to here.
27166 2011-05-22  Bruno Haible  <bruno@clisp.org>
27168         wcsdup: Move AC_LIBOBJ invocations to module description.
27169         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
27170         * modules/wcsdup (configure.ac): ... to here.
27172 2011-05-22  Bruno Haible  <bruno@clisp.org>
27174         wcscspn: Move AC_LIBOBJ invocations to module description.
27175         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
27176         here...
27177         * modules/wcscspn (configure.ac): ... to here.
27179 2011-05-22  Bruno Haible  <bruno@clisp.org>
27181         wcscpy: Move AC_LIBOBJ invocations to module description.
27182         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
27183         * modules/wcscpy (configure.ac): ... to here.
27185 2011-05-22  Bruno Haible  <bruno@clisp.org>
27187         wcscoll: Move AC_LIBOBJ invocations to module description.
27188         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
27189         here...
27190         * modules/wcscoll (configure.ac): ... to here.
27192 2011-05-22  Bruno Haible  <bruno@clisp.org>
27194         wcscmp: Move AC_LIBOBJ invocations to module description.
27195         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
27196         * modules/wcscmp (configure.ac): ... to here.
27198 2011-05-22  Bruno Haible  <bruno@clisp.org>
27200         wcschr: Move AC_LIBOBJ invocations to module description.
27201         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
27202         * modules/wcschr (configure.ac): ... to here.
27204 2011-05-22  Bruno Haible  <bruno@clisp.org>
27206         wcscat: Move AC_LIBOBJ invocations to module description.
27207         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
27208         * modules/wcscat (configure.ac): ... to here.
27210 2011-05-22  Bruno Haible  <bruno@clisp.org>
27212         wcscasecmp: Move AC_LIBOBJ invocations to module description.
27213         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
27214         here...
27215         * modules/wcscasecmp (configure.ac): ... to here.
27217 2011-05-22  Bruno Haible  <bruno@clisp.org>
27219         wcrtomb: Move AC_LIBOBJ invocations to module description.
27220         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
27221         invocations from here...
27222         * modules/wcrtomb (configure.ac): ... to here.
27224 2011-05-22  Bruno Haible  <bruno@clisp.org>
27226         wcpncpy: Move AC_LIBOBJ invocations to module description.
27227         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
27228         here...
27229         * modules/wcpncpy (configure.ac): ... to here.
27231 2011-05-22  Bruno Haible  <bruno@clisp.org>
27233         wcpcpy: Move AC_LIBOBJ invocations to module description.
27234         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
27235         * modules/wcpcpy (configure.ac): ... to here.
27237 2011-05-22  Bruno Haible  <bruno@clisp.org>
27239         waitpid: Move AC_LIBOBJ invocations to module description.
27240         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
27241         invocation from here...
27242         * modules/waitpid (configure.ac): ... to here.
27244 2011-05-22  Bruno Haible  <bruno@clisp.org>
27246         utimensat: Move AC_LIBOBJ invocations to module description.
27247         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
27248         here...
27249         * modules/utimensat (configure.ac): ... to here.
27251 2011-05-22  Bruno Haible  <bruno@clisp.org>
27253         usleep: Move AC_LIBOBJ invocations to module description.
27254         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
27255         here...
27256         * modules/usleep (configure.ac): ... to here.
27258 2011-05-22  Bruno Haible  <bruno@clisp.org>
27260         unlockpt: Move AC_LIBOBJ invocations to module description.
27261         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
27262         gl_PREREQ_UNLOCKPT invocations from here...
27263         * modules/unlockpt (configure.ac): ... to here.
27265 2011-05-22  Bruno Haible  <bruno@clisp.org>
27267         unlink: Respect rules for use of AC_LIBOBJ.
27268         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
27269         * modules/unlink (configure.ac): ... to here.
27271 2011-05-22  Bruno Haible  <bruno@clisp.org>
27273         uname: Move AC_LIBOBJ invocations to module description.
27274         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
27275         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
27276         here...
27277         * modules/uname (configure.ac): ... to here.
27279 2011-05-22  Bruno Haible  <bruno@clisp.org>
27281         ttyname_r: Move AC_LIBOBJ invocations to module description.
27282         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
27283         gl_PREREQ_TTYNAME_R invocations from here...
27284         * modules/ttyname_r (configure.ac): ... to here.
27286 2011-05-22  Bruno Haible  <bruno@clisp.org>
27288         tsearch: Move AC_LIBOBJ invocations to module description.
27289         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
27290         invocations from here...
27291         * modules/tsearch (configure.ac): ... to here.
27293 2011-05-22  Bruno Haible  <bruno@clisp.org>
27295         towctrans: Move AC_LIBOBJ invocations to module description.
27296         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
27297         AC_LIBOBJ invocation from here...
27298         * modules/towctrans (configure.ac): ... to here.
27300 2011-05-22  Bruno Haible  <bruno@clisp.org>
27302         tmpfile: Move AC_LIBOBJ invocations to module description.
27303         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
27304         invocations from here...
27305         * modules/tmpfile (configure.ac): ... to here.
27307 2011-05-22  Bruno Haible  <bruno@clisp.org>
27309         times: Move AC_LIBOBJ invocations to module description.
27310         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
27311         * modules/times (configure.ac): ... to here.
27313 2011-05-22  Bruno Haible  <bruno@clisp.org>
27315         time_r: Move AC_LIBOBJ invocations to module description.
27316         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
27317         invocations from here...
27318         * modules/time_r (configure.ac): ... to here.
27320 2011-05-22  Bruno Haible  <bruno@clisp.org>
27322         timegm: Move AC_LIBOBJ invocations to module description.
27323         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
27324         invocations from here...
27325         * modules/timegm (configure.ac): ... to here.
27327 2011-05-22  Bruno Haible  <bruno@clisp.org>
27329         tcgetsid: Move AC_LIBOBJ invocations to module description.
27330         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
27331         and gl_PREREQ_TCGETSID invocations from here...
27332         * modules/tcgetsid (configure.ac): ... to here.
27333         (Depends-on): Update conditions.
27335 2011-05-22  Bruno Haible  <bruno@clisp.org>
27337         symlinkat: Move AC_LIBOBJ invocations to module description.
27338         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
27339         here...
27340         * modules/symlinkat (configure.ac): ... to here.
27342 2011-05-22  Bruno Haible  <bruno@clisp.org>
27344         symlink: Move AC_LIBOBJ invocations to module description.
27345         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
27346         here...
27347         * modules/symlink (configure.ac): ... to here.
27349 2011-05-22  Bruno Haible  <bruno@clisp.org>
27351         strverscmp: Move AC_LIBOBJ invocations to module description.
27352         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
27353         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
27354         from here...
27355         * modules/strverscmp (configure.ac): ... to here.
27357 2011-05-22  Bruno Haible  <bruno@clisp.org>
27359         strtok_r: Move AC_LIBOBJ invocations to module description.
27360         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
27361         and gl_PREREQ_STRTOK_R invocations from here...
27362         * modules/strtok_r (configure.ac): ... to here.
27363         (Depends-on): Update conditions.
27365 2011-05-22  Bruno Haible  <bruno@clisp.org>
27367         strtoumax: Move AC_LIBOBJ invocations to module description.
27368         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
27369         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
27370         from here...
27371         * modules/strtoumax (configure.ac): ... to here.
27373 2011-05-22  Bruno Haible  <bruno@clisp.org>
27375         strtoimax: Move AC_LIBOBJ invocations to module description.
27376         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
27377         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
27378         from here...
27379         * modules/strtoimax (configure.ac): ... to here.
27381 2011-05-22  Bruno Haible  <bruno@clisp.org>
27383         strtoull: Move AC_LIBOBJ invocations to module description.
27384         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
27385         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
27386         from here...
27387         * modules/strtoull (configure.ac): ... to here.
27389 2011-05-22  Bruno Haible  <bruno@clisp.org>
27391         strtoll: Move AC_LIBOBJ invocations to module description.
27392         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
27393         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
27394         here...
27395         * modules/strtoll (configure.ac): ... to here.
27397 2011-05-22  Bruno Haible  <bruno@clisp.org>
27399         strtoul: Move AC_LIBOBJ invocations to module description.
27400         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
27401         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
27402         * modules/strtoul (configure.ac): ... to here.
27404 2011-05-22  Bruno Haible  <bruno@clisp.org>
27406         strtol: Move AC_LIBOBJ invocations to module description.
27407         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
27408         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
27409         * modules/strtol (configure.ac): ... to here.
27411 2011-05-22  Bruno Haible  <bruno@clisp.org>
27413         strtod: Move AC_LIBOBJ invocations to module description.
27414         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
27415         invocations from here...
27416         * modules/strtod (configure.ac): ... to here.
27418 2011-05-22  Bruno Haible  <bruno@clisp.org>
27420         strstr*: Move AC_LIBOBJ invocations to module description.
27421         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
27422         invocations from here...
27423         * modules/strstr-simple (configure.ac): ... to here.
27424         * modules/strstr (configure.ac): ... and here.
27426 2011-05-22  Bruno Haible  <bruno@clisp.org>
27428         strsignal: Move AC_LIBOBJ invocations to module description.
27429         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
27430         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
27431         * modules/strsignal (configure.ac): ... to here.
27432         (Depends-on): Update conditions.
27434 2011-05-22  Bruno Haible  <bruno@clisp.org>
27436         strsep: Move AC_LIBOBJ invocations to module description.
27437         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
27438         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
27439         here...
27440         * modules/strsep (configure.ac): ... to here.
27442 2011-05-22  Bruno Haible  <bruno@clisp.org>
27444         strptime: Move AC_LIBOBJ invocations to module description.
27445         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
27446         gl_PREREQ_STRPTIME invocations from here...
27447         * modules/strptime (configure.ac): ... to here.
27449 2011-05-22  Bruno Haible  <bruno@clisp.org>
27451         strpbrk: Move AC_LIBOBJ invocations to module description.
27452         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
27453         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
27454         here...
27455         * modules/strpbrk (configure.ac): ... to here.
27457 2011-05-22  Bruno Haible  <bruno@clisp.org>
27459         strnlen: Move AC_LIBOBJ invocations to module description.
27460         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
27461         invocations from here...
27462         * modules/strnlen (configure.ac): ... to here.
27464 2011-05-22  Bruno Haible  <bruno@clisp.org>
27466         strndup: Move AC_LIBOBJ invocations to module description.
27467         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
27468         invocations from here...
27469         * modules/strndup (configure.ac): ... to here.
27470         (Depends-on): Update conditions.
27472 2011-05-22  Bruno Haible  <bruno@clisp.org>
27474         strncat: Move AC_LIBOBJ invocations to module description.
27475         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
27476         invocations from here...
27477         * modules/strncat (configure.ac): ... to here.
27479 2011-05-22  Bruno Haible  <bruno@clisp.org>
27481         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
27482         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
27483         invocations from here...
27484         * modules/strdup (configure.ac): ... to here.
27485         * modules/strdup-posix (configure.ac): ... and here.
27487 2011-05-22  Bruno Haible  <bruno@clisp.org>
27489         strcspn: Move AC_LIBOBJ invocations to module description.
27490         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
27491         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
27492         here...
27493         * modules/strcspn (configure.ac): ... to here.
27495 2011-05-22  Bruno Haible  <bruno@clisp.org>
27497         strchrnul: Move AC_LIBOBJ invocations to module description.
27498         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
27499         gl_PREREQ_STRCHRNUL invocations from here...
27500         * modules/strchrnul (configure.ac): ... to here.
27502 2011-05-22  Bruno Haible  <bruno@clisp.org>
27504         strcasestr*: Move AC_LIBOBJ invocations to module description.
27505         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
27506         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
27507         * modules/strcasestr-simple (configure.ac): ... to here.
27508         * modules/strcasestr (configure.ac): ... and here.
27510 2011-05-22  Bruno Haible  <bruno@clisp.org>
27512         strcase: Move AC_LIBOBJ invocations to module description.
27513         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
27514         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
27515         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
27516         gl_PREREQ_STRNCASECMP invocations from here...
27517         * modules/strcase (configure.ac): ... to here.
27519 2011-05-22  Bruno Haible  <bruno@clisp.org>
27521         stpncpy: Move AC_LIBOBJ invocations to module description.
27522         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
27523         here...
27524         * modules/stpncpy (configure.ac): ... to here.
27526 2011-05-22  Bruno Haible  <bruno@clisp.org>
27528         stpcpy: Move AC_LIBOBJ invocations to module description.
27529         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
27530         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
27531         here...
27532         * modules/stpcpy (configure.ac): ... to here.
27534 2011-05-21  Bruno Haible  <bruno@clisp.org>
27536         stat: Move AC_LIBOBJ invocations to module description.
27537         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
27538         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
27539         here...
27540         * modules/stat (configure.ac): ... to here.
27542 2011-05-21  Bruno Haible  <bruno@clisp.org>
27544         sleep: Move AC_LIBOBJ invocations to module description.
27545         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
27546         * modules/sleep (configure.ac): ... to here.
27548 2011-05-21  Bruno Haible  <bruno@clisp.org>
27550         signbit: Move AC_LIBOBJ invocations to module description.
27551         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
27552         * modules/signbit (configure.ac): ... to here.
27554 2011-05-21  Bruno Haible  <bruno@clisp.org>
27556         sigprocmask: Move AC_LIBOBJ invocations to module description.
27557         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
27558         gl_PREREQ_SIGPROMASK invocations from here...
27559         * modules/sigprocmask (configure.ac): ... to here.
27561 2011-05-21  Bruno Haible  <bruno@clisp.org>
27563         sigaction: Move AC_LIBOBJ invocations to module description.
27564         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
27565         gl_PREREQ_SIGACTION invocations from here...
27566         * modules/sigaction (configure.ac): ... to here.
27568 2011-05-21  Bruno Haible  <bruno@clisp.org>
27570         sig2str: Move AC_LIBOBJ invocations to module description.
27571         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
27572         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
27573         here...
27574         * modules/sig2str (configure.ac): ... to here.
27576 2011-05-21  Bruno Haible  <bruno@clisp.org>
27578         setlocale: Move AC_LIBOBJ invocations to module description.
27579         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
27580         gl_PREREQ_SETLOCALE invocations from here...
27581         * modules/setlocale (configure.ac): ... to here.
27583 2011-05-21  Bruno Haible  <bruno@clisp.org>
27585         unsetenv: Move AC_LIBOBJ invocations to module description.
27586         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
27587         and gl_PREREQ_UNSETENV invocations from here...
27588         * modules/unsetenv (configure.ac): ... to here.
27589         (Depends-on): Update.
27591 2011-05-21  Bruno Haible  <bruno@clisp.org>
27593         setenv: Move AC_LIBOBJ invocations to module description.
27594         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
27595         here...
27596         * modules/setenv (configure.ac): ... to here.
27598 2011-05-21  Bruno Haible  <bruno@clisp.org>
27600         selinux-h: Move AC_LIBOBJ invocations to module description.
27601         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
27602         AC_LIBOBJ invocation from here...
27603         * modules/selinux-h (configure.ac): ... to here.
27605 2011-05-21  Bruno Haible  <bruno@clisp.org>
27607         select: Respect rules for use of AC_LIBOBJ.
27608         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
27609         here...
27610         * modules/select (configure.ac): ... to here.
27612 2011-05-21  Bruno Haible  <bruno@clisp.org>
27614         scandir: Move AC_LIBOBJ invocations to module description.
27615         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
27616         invocations from here...
27617         * modules/scandir (configure.ac): ... to here.
27619 2011-05-21  Bruno Haible  <bruno@clisp.org>
27621         rpmatch: Move AC_LIBOBJ invocations to module description.
27622         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
27623         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
27624         here...
27625         * modules/rpmatch (configure.ac): ... to here.
27627 2011-05-21  Bruno Haible  <bruno@clisp.org>
27629         rmdir: Respect rules for use of AC_LIBOBJ.
27630         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
27631         * modules/rmdir (configure.ac): ... to here.
27633 2011-05-21  Bruno Haible  <bruno@clisp.org>
27635         renameat: Move AC_LIBOBJ invocations to module description.
27636         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
27637         here...
27638         * modules/renameat (configure.ac): ... to here.
27640 2011-05-21  Bruno Haible  <bruno@clisp.org>
27642         rename: Respect rules for use of AC_LIBOBJ.
27643         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
27644         here...
27645         * modules/rename (configure.ac): ... to here.
27647 2011-05-21  Bruno Haible  <bruno@clisp.org>
27649         remove: Move AC_LIBOBJ invocations to module description.
27650         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
27651         here...
27652         * modules/remove (configure.ac): ... to here.
27654 2011-05-21  Bruno Haible  <bruno@clisp.org>
27656         relocatable-lib: Move AC_LIBOBJ invocations to module description.
27657         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
27658         macro.
27659         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
27660         * modules/relocatable-lib (configure.ac): ... to here.
27661         * modules/relocatable-prog-wrapper (configure.ac): Invoke
27662         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
27664 2011-05-21  Bruno Haible  <bruno@clisp.org>
27666         relocatable-prog: Move AC_LIBOBJ invocations to module description.
27667         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
27668         here...
27669         * modules/relocatable-prog (configure.ac): ... to here.
27671 2011-05-21  Bruno Haible  <bruno@clisp.org>
27673         regex: Move AC_LIBOBJ invocations to module description.
27674         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
27675         invocations from here...
27676         * modules/regex (configure.ac): ... to here.
27678 2011-05-21  Bruno Haible  <bruno@clisp.org>
27680         realloc-*: Move AC_LIBOBJ invocations to module description.
27681         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
27682         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
27683         AC_LIBOBJ invocations from here...
27684         * modules/realloc-gnu (configure.ac): ... to here.
27685         * modules/realloc-posix (configure.ac): ... and here.
27687 2011-05-21  Bruno Haible  <bruno@clisp.org>
27689         readutmp: Move AC_LIBOBJ invocations to module description.
27690         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
27691         * modules/readutmp (configure.ac): ... to here.
27693 2011-05-21  Bruno Haible  <bruno@clisp.org>
27695         readlinkat: Move AC_LIBOBJ invocations to module description.
27696         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
27697         here...
27698         * modules/readlinkat (configure.ac): ... to here.
27700 2011-05-21  Bruno Haible  <bruno@clisp.org>
27702         readlink: Move AC_LIBOBJ invocations to module description.
27703         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
27704         gl_PREREQ_READLINK invocations from here...
27705         * modules/readlink (configure.ac): ... to here.
27707 2011-05-21  Bruno Haible  <bruno@clisp.org>
27709         readline: Move AC_LIBOBJ invocations to module description.
27710         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
27711         gl_PREREQ_READLINE invocations from here...
27712         * modules/readline (configure.ac): ... to here.
27714 2011-05-21  Bruno Haible  <bruno@clisp.org>
27716         read: Move AC_LIBOBJ invocations to module description.
27717         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
27718         * modules/read (configure.ac): ... to here.
27720 2011-05-21  Bruno Haible  <bruno@clisp.org>
27722         rawmemchr: Move AC_LIBOBJ invocations to module description.
27723         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
27724         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
27725         from here...
27726         * modules/rawmemchr (configure.ac): ... to here.
27728 2011-05-21  Bruno Haible  <bruno@clisp.org>
27730         random_r: Move AC_LIBOBJ invocations to module description.
27731         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
27732         gl_PREREQ_RANDOM_R invocations from here...
27733         * modules/random_r (configure.ac): ... to here.
27735 2011-05-21  Bruno Haible  <bruno@clisp.org>
27737         pwrite: Move AC_LIBOBJ invocations to module description.
27738         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
27739         * modules/pwrite (configure.ac): ... to here.
27741 2011-05-21  Bruno Haible  <bruno@clisp.org>
27743         putenv: Move AC_LIBOBJ invocations to module description.
27744         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
27745         * modules/putenv (configure.ac): ... to here.
27747 2011-05-21  Bruno Haible  <bruno@clisp.org>
27749         login_tty: Move AC_LIBOBJ invocations to module description.
27750         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
27751         * modules/login_tty (configure.ac): ... to here.
27753 2011-05-21  Bruno Haible  <bruno@clisp.org>
27755         openpty: Move AC_LIBOBJ invocations to module description.
27756         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
27757         * modules/openpty (configure.ac): ... to here.
27759 2011-05-21  Bruno Haible  <bruno@clisp.org>
27761         forkpty: Move AC_LIBOBJ invocations to module description.
27762         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
27763         * modules/forkpty (configure.ac): ... to here.
27765 2011-05-21  Bruno Haible  <bruno@clisp.org>
27767         ptsname: Move AC_LIBOBJ invocations to module description.
27768         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
27769         invocations from here...
27770         * modules/ptsname (configure.ac): ... to here.
27772 2011-05-21  Bruno Haible  <bruno@clisp.org>
27774         pread: Move AC_LIBOBJ invocations to module description.
27775         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
27776         * modules/pread (configure.ac): ... to here.
27778 2011-05-21  Bruno Haible  <bruno@clisp.org>
27780         posix_spawn*: Move AC_LIBOBJ invocations to module description.
27781         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
27782         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
27783         * modules/posix_spawn (configure.ac): ... to here.
27784         * modules/posix_spawnp (configure.ac): ... and here.
27786 2011-05-21  Bruno Haible  <bruno@clisp.org>
27788         popen: Move AC_LIBOBJ invocations to module description.
27789         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
27790         invocations from here...
27791         * modules/popen (configure.ac): ... to here.
27793 2011-05-21  Bruno Haible  <bruno@clisp.org>
27795         poll: Move AC_LIBOBJ invocations to module description.
27796         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
27797         invocations from here...
27798         * modules/poll (configure.ac): ... to here.
27800 2011-05-21  Bruno Haible  <bruno@clisp.org>
27802         pipe-posix: Move AC_LIBOBJ invocations to module description.
27803         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
27804         * modules/pipe-posix (configure.ac): ... to here.
27806 2011-05-21  Bruno Haible  <bruno@clisp.org>
27808         openat: Respect rules for use of AC_LIBOBJ.
27809         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
27810         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
27811         * modules/openat (configure.ac): ... to here.
27813 2011-05-21  Bruno Haible  <bruno@clisp.org>
27815         obstack-printf*: Move AC_LIBOBJ invocations to module description.
27816         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
27817         invocation from here...
27818         * modules/obstack-printf (configure.ac): ... to here.
27819         * modules/obstack-printf-posix (configure.ac): ... and here.
27821 2011-05-21  Bruno Haible  <bruno@clisp.org>
27823         nl_langinfo: Move AC_LIBOBJ invocations to module description.
27824         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
27825         from here...
27826         * modules/nl_langinfo (configure.ac): ... to here.
27828 2011-05-21  Bruno Haible  <bruno@clisp.org>
27830         nanosleep: Move AC_LIBOBJ invocations to module description.
27831         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
27832         gl_PREREQ_NANOSLEEP invocations from here...
27833         * modules/nanosleep (configure.ac): ... to here.
27835 2011-05-21  Bruno Haible  <bruno@clisp.org>
27837         mountlist: Move AC_LIBOBJ invocations to module description.
27838         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
27839         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
27840         * modules/mountlist (configure.ac): ... to here.
27842 2011-05-21  Bruno Haible  <bruno@clisp.org>
27844         mktime: Respect rules for use of AC_LIBOBJ.
27845         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
27846         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
27847         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
27848         (gl_FUNC_MKTIME_INTERNAL): ... and here...
27849         * modules/mktime (configure.ac): ... to here.
27850         * modules/mktime-internal (configure.ac): ... and here.
27851         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
27853 2011-05-21  Bruno Haible  <bruno@clisp.org>
27855         mkstemps: Move AC_LIBOBJ invocations to module description.
27856         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
27857         here...
27858         * modules/mkstemps (configure.ac): ... to here.
27860 2011-05-21  Bruno Haible  <bruno@clisp.org>
27862         mkstemp: Move AC_LIBOBJ invocations to module description.
27863         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
27864         gl_PREREQ_MKSTEMP invocations from here...
27865         * modules/mkstemp (configure.ac): ... to here.
27867 2011-05-21  Bruno Haible  <bruno@clisp.org>
27869         mkostemps: Move AC_LIBOBJ invocations to module description.
27870         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
27871         here...
27872         * modules/mkostemps (configure.ac): ... to here.
27874 2011-05-21  Bruno Haible  <bruno@clisp.org>
27876         mkostemp: Move AC_LIBOBJ invocations to module description.
27877         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
27878         gl_PREREQ_MKOSTEMP invocations from here...
27879         * modules/mkostemp (configure.ac): ... to here.
27881 2011-05-21  Bruno Haible  <bruno@clisp.org>
27883         mknod: Move AC_LIBOBJ invocations to module description.
27884         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
27885         * modules/mknod (configure.ac): ... to here.
27887 2011-05-21  Bruno Haible  <bruno@clisp.org>
27889         mkfifoat: Move AC_LIBOBJ invocations to module description.
27890         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
27891         here...
27892         * modules/mkfifoat (configure.ac): ... to here.
27894 2011-05-21  Bruno Haible  <bruno@clisp.org>
27896         mkfifo: Respect rules for use of AC_LIBOBJ.
27897         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
27898         here...
27899         * modules/mkfifo (configure.ac): ... to here.
27901 2011-05-21  Bruno Haible  <bruno@clisp.org>
27903         mkdtemp: Move AC_LIBOBJ invocations to module description.
27904         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
27905         invocations from here...
27906         * modules/mkdtemp (configure.ac): ... to here.
27908 2011-05-21  Bruno Haible  <bruno@clisp.org>
27910         mkdir: Move AC_LIBOBJ invocations to module description.
27911         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
27912         * modules/mkdir (configure.ac): ... to here.
27914 2011-05-21  Bruno Haible  <bruno@clisp.org>
27916         memset: Move AC_LIBOBJ invocations to module description.
27917         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
27918         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
27919         here...
27920         * modules/memset (configure.ac): ... to here.
27922 2011-05-21  Bruno Haible  <bruno@clisp.org>
27924         memrchr: Move AC_LIBOBJ invocations to module description.
27925         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
27926         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
27927         here...
27928         * modules/memrchr (configure.ac): ... to here.
27930 2011-05-21  Bruno Haible  <bruno@clisp.org>
27932         mempcpy: Move AC_LIBOBJ invocations to module description.
27933         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
27934         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
27935         here...
27936         * modules/mempcpy (configure.ac): ... to here.
27938 2011-05-21  Bruno Haible  <bruno@clisp.org>
27940         memmove: Move AC_LIBOBJ invocations to module description.
27941         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
27942         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
27943         here...
27944         * modules/memmove (configure.ac): ... to here.
27946 2011-05-21  Bruno Haible  <bruno@clisp.org>
27948         memmem*: Move AC_LIBOBJ invocations to module description.
27949         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
27950         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
27951         here...
27952         (gl_FUNC_MEMMEM): ... and here...
27953         * modules/memmem-simple (configure.ac): ... to here.
27954         * modules/memmem (configure.ac): ... and here.
27956 2011-05-21  Bruno Haible  <bruno@clisp.org>
27958         memcpy: Move AC_LIBOBJ invocations to module description.
27959         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
27960         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
27961         here...
27962         * modules/memcpy (configure.ac): ... to here.
27964 2011-05-21  Bruno Haible  <bruno@clisp.org>
27966         memcmp: Simplify autoconf macro.
27967         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
27968         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
27969         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
27971 2011-05-21  Bruno Haible  <bruno@clisp.org>
27973         memcmp: Move AC_LIBOBJ invocations to module description.
27974         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
27975         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
27976         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
27977         * modules/memcmp (configure.ac): ... to here.
27978         (Depends-on): Update conditions.
27980 2011-05-21  Bruno Haible  <bruno@clisp.org>
27982         memchr: Respect rules for use of AC_LIBOBJ.
27983         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
27984         invocations from here...
27985         * modules/memchr (configure.ac): ... to here.
27987 2011-05-21  Bruno Haible  <bruno@clisp.org>
27989         mbtowc: Move AC_LIBOBJ invocations to module description.
27990         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
27991         invocations from here...
27992         * modules/mbtowc (configure.ac): ... to here.
27994 2011-05-21  Bruno Haible  <bruno@clisp.org>
27996         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
27997         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
27998         gl_PREREQ_MBSRTOWCS invocations from here...
27999         * modules/mbsrtowcs (configure.ac): ... to here.
28001 2011-05-21  Bruno Haible  <bruno@clisp.org>
28003         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
28004         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
28005         gl_PREREQ_MBSNRTOWCS invocations from here...
28006         * modules/mbsnrtowcs (configure.ac): ... to here.
28008 2011-05-21  Bruno Haible  <bruno@clisp.org>
28010         mbsinit: Move AC_LIBOBJ invocations to module description.
28011         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
28012         invocations from here...
28013         * modules/mbsinit (configure.ac): ... to here.
28015 2011-05-21  Bruno Haible  <bruno@clisp.org>
28017         mbrlen: Move AC_LIBOBJ invocations to module description.
28018         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
28019         invocations from here...
28020         * modules/mbrlen (configure.ac): ... to here.
28022 2011-05-21  Bruno Haible  <bruno@clisp.org>
28024         mbrtowc: Respect rules for use of AC_LIBOBJ.
28025         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
28026         invocations from here...
28027         * modules/mbrtowc (configure.ac): ... to here.
28029 2011-05-21  Bruno Haible  <bruno@clisp.org>
28031         malloc-*: Move AC_LIBOBJ invocations to module description.
28032         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
28033         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
28034         AC_LIBOBJ invocations from here...
28035         * modules/malloc-gnu (configure.ac): ... to here.
28036         * modules/malloc-posix (configure.ac): ... and here.
28038 2011-05-21  Bruno Haible  <bruno@clisp.org>
28040         lstat, openat: Respect rules for use of AC_LIBOBJ.
28041         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
28042         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
28043         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
28044         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
28045         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
28046         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
28047         here.
28048         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
28050 2011-05-21  Bruno Haible  <bruno@clisp.org>
28052         lseek: Move AC_LIBOBJ invocations to module description.
28053         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
28054         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
28055         * modules/lseek (configure.ac): ... to here.
28057 2011-05-21  Bruno Haible  <bruno@clisp.org>
28059         linkat: Move AC_LIBOBJ invocations to module description.
28060         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
28061         here...
28062         * modules/linkat (configure.ac): ... to here.
28064 2011-05-21  Bruno Haible  <bruno@clisp.org>
28066         link: Respect rules for use of AC_LIBOBJ.
28067         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
28068         * modules/link (configure.ac): ... to here.
28070 2011-05-21  Bruno Haible  <bruno@clisp.org>
28072         lchown: Move AC_LIBOBJ invocations to module description.
28073         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
28074         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
28075         * modules/lchown (configure.ac): ... to here.
28077 2011-05-21  Bruno Haible  <bruno@clisp.org>
28079         iswctype: Move AC_LIBOBJ invocations to module description.
28080         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
28081         here...
28082         * modules/iswctype (configure.ac): ... to here.
28084 2011-05-21  Bruno Haible  <bruno@clisp.org>
28086         iswblank: Move AC_LIBOBJ invocations to module description.
28087         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
28088         here...
28089         * modules/iswblank (configure.ac): ... to here.
28091 2011-05-21  Bruno Haible  <bruno@clisp.org>
28093         atanl: Move AC_LIBOBJ invocations to module description.
28094         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
28095         * modules/atanl (configure.ac): ... to here.
28097 2011-05-21  Bruno Haible  <bruno@clisp.org>
28099         acosl: Move AC_LIBOBJ invocations to module description.
28100         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
28101         * modules/acosl (configure.ac): ... to here.
28103 2011-05-21  Bruno Haible  <bruno@clisp.org>
28105         asinl: Respect rules for use of AC_LIBOBJ.
28106         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
28107         * modules/asinl (configure.ac): ... to here.
28109 2011-05-21  Bruno Haible  <bruno@clisp.org>
28111         tanl: Move AC_LIBOBJ invocations to module description.
28112         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
28113         * modules/tanl (configure.ac): ... to here.
28115 2011-05-21  Bruno Haible  <bruno@clisp.org>
28117         cosl: Move AC_LIBOBJ invocations to module description.
28118         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
28119         * modules/cosl (configure.ac): ... to here.
28121 2011-05-21  Bruno Haible  <bruno@clisp.org>
28123         sinl: Move AC_LIBOBJ invocations to module description.
28124         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
28125         * modules/sinl (configure.ac): ... to here.
28127 2011-05-21  Bruno Haible  <bruno@clisp.org>
28129         logl: Move AC_LIBOBJ invocations to module description.
28130         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
28131         * modules/logl (configure.ac): ... to here.
28133 2011-05-21  Bruno Haible  <bruno@clisp.org>
28135         expl: Move AC_LIBOBJ invocations to module description.
28136         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
28137         * modules/expl (configure.ac): ... to here.
28139 2011-05-21  Bruno Haible  <bruno@clisp.org>
28141         roundl: Move AC_LIBOBJ invocations to module description.
28142         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
28143         * modules/roundl (configure.ac): ... to here.
28145 2011-05-21  Bruno Haible  <bruno@clisp.org>
28147         round: Move AC_LIBOBJ invocations to module description.
28148         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
28149         * modules/round (configure.ac): ... to here.
28151 2011-05-21  Bruno Haible  <bruno@clisp.org>
28153         roundf: Move AC_LIBOBJ invocations to module description.
28154         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
28155         * modules/roundf (configure.ac): ... to here.
28157 2011-05-21  Bruno Haible  <bruno@clisp.org>
28159         truncl: Move AC_LIBOBJ invocations to module description.
28160         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
28161         * modules/truncl (configure.ac): ... to here.
28163 2011-05-21  Bruno Haible  <bruno@clisp.org>
28165         trunc: Move AC_LIBOBJ invocations to module description.
28166         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
28167         * modules/trunc (configure.ac): ... to here.
28169 2011-05-21  Bruno Haible  <bruno@clisp.org>
28171         truncf: Move AC_LIBOBJ invocations to module description.
28172         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
28173         * modules/truncf (configure.ac): ... to here.
28175 2011-05-21  Bruno Haible  <bruno@clisp.org>
28177         ceill: Move AC_LIBOBJ invocations to module description.
28178         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
28179         * modules/ceill (configure.ac): ... to here.
28181 2011-05-21  Bruno Haible  <bruno@clisp.org>
28183         ceil: Move AC_LIBOBJ invocations to module description.
28184         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
28185         * modules/ceil (configure.ac): ... to here.
28187 2011-05-21  Bruno Haible  <bruno@clisp.org>
28189         ceilf: Move AC_LIBOBJ invocations to module description.
28190         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
28191         * modules/ceilf (configure.ac): ... to here.
28193 2011-05-21  Bruno Haible  <bruno@clisp.org>
28195         floorl: Respect rules for use of AC_LIBOBJ.
28196         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
28197         * modules/floorl (configure.ac): ... to here.
28199 2011-05-21  Bruno Haible  <bruno@clisp.org>
28201         floor: Respect rules for use of AC_LIBOBJ.
28202         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
28203         * modules/floor (configure.ac): ... to here.
28205 2011-05-21  Bruno Haible  <bruno@clisp.org>
28207         floorf: Move AC_LIBOBJ invocations to module description.
28208         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
28209         * modules/floorf (configure.ac): ... to here.
28211 2011-05-20  Bruno Haible  <bruno@clisp.org>
28213         sqrtl: Respect rules for use of AC_LIBOBJ.
28214         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
28215         * modules/sqrtl (configure.ac): ... to here.
28217 2011-05-20  Bruno Haible  <bruno@clisp.org>
28219         ldexpl: Respect rules for use of AC_LIBOBJ.
28220         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
28221         * modules/ldexpl (configure.ac): ... to here.
28223 2011-05-20  Bruno Haible  <bruno@clisp.org>
28225         frexpl*: Respect rules for use of AC_LIBOBJ.
28226         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
28227         invocation from here...
28228         * modules/frexpl (configure.ac): ... to here.
28229         * modules/frexpl-nolibm (configure.ac): ... and here.
28231 2011-05-20  Bruno Haible  <bruno@clisp.org>
28233         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
28234         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
28235         invocation from here...
28236         * modules/frexp (configure.ac): ... to here.
28237         * modules/frexp-nolibm (configure.ac): ... and here.
28239 2011-05-20  Bruno Haible  <bruno@clisp.org>
28241         isnan: Respect rules for use of AC_LIBOBJ.
28242         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
28243         invocations here.
28244         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
28245         REPLACE_ISNAN.
28246         * modules/isnand (configure.ac): Likewise.
28247         * modules/isnanl (configure.ac): Likewise.
28249 2011-05-20  Bruno Haible  <bruno@clisp.org>
28251         isnanl*: Respect rules for use of AC_LIBOBJ.
28252         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
28253         invocation from here...
28254         * modules/isnanl (configure.ac): ... to here.
28255         * modules/isnanl-nolibm (configure.ac): ... and here.
28257 2011-05-20  Bruno Haible  <bruno@clisp.org>
28259         isnand*: Move AC_LIBOBJ invocations to module description.
28260         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
28261         invocation from here...
28262         * modules/isnand (configure.ac): ... to here.
28263         * modules/isnand-nolibm (configure.ac): ... and here.
28265 2011-05-20  Bruno Haible  <bruno@clisp.org>
28267         isnanf*: Move AC_LIBOBJ invocations to module description.
28268         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
28269         invocation from here...
28270         * modules/isnanf (configure.ac): ... to here.
28271         * modules/isnanf-nolibm (configure.ac): ... and here.
28273 2011-05-20  Bruno Haible  <bruno@clisp.org>
28275         isnan*: Separate the AC_LIBOBJ invocations.
28276         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
28277         AC_LIBOBJ invocation.
28278         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
28279         here.
28280         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
28281         AC_LIBOBJ invocation.
28282         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
28283         here.
28284         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
28285         AC_LIBOBJ invocation.
28286         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
28287         here.
28288         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
28290 2011-05-08  Bruno Haible  <bruno@clisp.org>
28292         isinf: Move AC_LIBOBJ invocations to module description.
28293         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
28294         * modules/isinf (configure.ac): ... to here.
28296 2011-05-08  Bruno Haible  <bruno@clisp.org>
28298         isfinite: Move AC_LIBOBJ invocations to module description.
28299         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
28300         * modules/isfinite (configure.ac): ... to here.
28302 2011-05-08  Bruno Haible  <bruno@clisp.org>
28304         isblank: Move AC_LIBOBJ invocations to module description.
28305         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
28306         here...
28307         * modules/isblank (configure.ac): ... to here.
28309 2011-05-08  Bruno Haible  <bruno@clisp.org>
28311         isapipe: Move AC_LIBOBJ invocations to module description.
28312         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
28313         gl_PREREQ_ISAPIPE invocations from here...
28314         * modules/isapipe (configure.ac): ... to here.
28315         (Depends-on): Update condition.
28317 2011-05-08  Bruno Haible  <bruno@clisp.org>
28319         ioctl: Move AC_LIBOBJ invocations to module description.
28320         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
28321         invocations from here...
28322         * modules/ioctl (configure.ac): ... to here.
28323         (Depends-on): Update condition.
28325 2011-05-08  Bruno Haible  <bruno@clisp.org>
28327         imaxdiv: Move AC_LIBOBJ invocations to module description.
28328         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
28329         invocations from here...
28330         * modules/imaxdiv (configure.ac): ... to here.
28332 2011-05-08  Bruno Haible  <bruno@clisp.org>
28334         imaxabs: Move AC_LIBOBJ invocations to module description.
28335         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
28336         invocations from here...
28337         * modules/imaxabs (configure.ac): ... to here.
28339 2011-05-08  Bruno Haible  <bruno@clisp.org>
28341         getaddrinfo: Move AC_LIBOBJ invocations to module description.
28342         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
28343         AC_LIBOBJ invocations from here...
28344         * modules/getaddrinfo (configure.ac): ... to here.
28345         (Depends-on): Add conditions.
28347 2011-05-08  Bruno Haible  <bruno@clisp.org>
28349         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
28350         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
28351         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
28352         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
28353         (gl_PREREQ_INET_PTON): ... from here.
28354         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
28355         gl_PREREQ_INET_PTON here.
28356         (Depends-on): Update condition.
28358 2011-05-08  Bruno Haible  <bruno@clisp.org>
28360         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
28361         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
28362         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
28363         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
28364         (gl_PREREQ_INET_NTOP): ... from here.
28365         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
28366         gl_PREREQ_INET_NTOP here.
28367         (Depends-on): Update condition.
28369 2011-05-08  Bruno Haible  <bruno@clisp.org>
28371         iconv_open: Move AC_LIBOBJ invocations to module description.
28372         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
28373         AC_LIBOBJ invocations from here...
28374         * modules/iconv_open (configure.ac): ... to here.
28376 2011-05-08  Bruno Haible  <bruno@clisp.org>
28378         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
28379         If module 'iconv_open' is among the main modules and module
28380         'iconv_open-utf' is among the tests dependencies, then
28381         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
28382         return the special iconv_t values. Therefore iconv() and iconv_close()
28383         must support these special iconv_t values, already in lib, not only in
28384         tests.
28385         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
28386         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
28387         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
28388         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
28389         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
28390         (Depends-on): Add the dependencies of iconv_open-utf.
28391         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
28392         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
28393         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
28395 2011-05-08  Bruno Haible  <bruno@clisp.org>
28397         group-member: Move AC_LIBOBJ invocations to module description.
28398         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
28399         gl_PREREQ_GROUP_MEMBER invocations from here...
28400         * modules/group-member (configure.ac): ... to here.
28402 2011-05-08  Bruno Haible  <bruno@clisp.org>
28404         grantpt: Move AC_LIBOBJ invocations to module description.
28405         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
28406         invocations from here...
28407         * modules/grantpt (configure.ac): ... to here.
28409 2011-05-08  Bruno Haible  <bruno@clisp.org>
28411         glob: Move AC_LIBOBJ invocations to module description.
28412         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
28413         from here...
28414         * modules/glob (configure.ac): ... to here.
28416 2011-05-08  Bruno Haible  <bruno@clisp.org>
28418         getusershell: Move AC_LIBOBJ invocations to module description.
28419         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
28420         Move AC_LIBOBJ invocation from here...
28421         * modules/getusershell (configure.ac): ... to here.
28422         (Depends-on): Update condition.
28424 2011-05-08  Bruno Haible  <bruno@clisp.org>
28426         gettimeofday: Move AC_LIBOBJ invocations to module description.
28427         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
28428         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
28429         gl_PREREQ_GETTIMEOFDAY invocations from here...
28430         * modules/gettimeofday (configure.ac): ... to here.
28432 2011-05-08  Bruno Haible  <bruno@clisp.org>
28434         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
28435         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
28436         just gl_FUNC_TZSET.
28437         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
28438         (gl_FUNC_TZSET_CLOBBER): Remove actions.
28439         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
28440         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
28442 2011-05-08  Bruno Haible  <bruno@clisp.org>
28444         getsubopt: Move AC_LIBOBJ invocations to module description.
28445         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
28446         gl_PREREQ_GETSUBOPT invocations from here...
28447         * modules/getsubopt (configure.ac): ... to here.
28449 2011-05-08  Bruno Haible  <bruno@clisp.org>
28451         getpass-gnu: Move AC_LIBOBJ invocations to module description.
28452         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
28453         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
28454         * modules/getpass-gnu (configure.ac): ... to here.
28456 2011-05-08  Bruno Haible  <bruno@clisp.org>
28458         getpass: Move AC_LIBOBJ invocations to module description.
28459         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
28460         gl_PREREQ_GETPASS invocations from here...
28461         * modules/getpass (configure.ac): ... to here.
28463 2011-05-08  Bruno Haible  <bruno@clisp.org>
28465         getpagesize: Move AC_LIBOBJ invocations to module description.
28466         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
28467         from here...
28468         * modules/getpagesize (configure.ac): ... to here.
28470 2011-05-08  Bruno Haible  <bruno@clisp.org>
28472         getopt: Move AC_LIBOBJ invocations to module description.
28473         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
28474         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
28475         invocations from here...
28476         * modules/getopt-gnu (configure.ac): ... to here.
28477         * modules/getopt-posix (configure.ac): ... and here.
28478         (Depends-on): Update condition.
28480 2011-05-08  Bruno Haible  <bruno@clisp.org>
28482         getopt, argp: Respect rules for use of AC_LIBOBJ.
28483         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
28484         (gl_REPLACE_GETOPT_ALWAYS): New macro.
28485         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
28486         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
28488 2011-05-08  Bruno Haible  <bruno@clisp.org>
28490         getlogin_r: Move AC_LIBOBJ invocations to module description.
28491         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
28492         gl_PREREQ_GETLOGIN_R invocations from here...
28493         * modules/getlogin_r (configure.ac): ... to here.
28495 2011-05-08  Bruno Haible  <bruno@clisp.org>
28497         getlogin: Move AC_LIBOBJ invocations to module description.
28498         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
28499         here...
28500         * modules/getlogin (configure.ac): ... to here.
28502 2011-05-08  Bruno Haible  <bruno@clisp.org>
28504         getloadavg: Move AC_LIBOBJ invocations to module description.
28505         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
28506         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
28507         * modules/getloadavg (configure.ac): ... to here.
28509 2011-05-08  Bruno Haible  <bruno@clisp.org>
28511         gethrxtime: Move AC_LIBOBJ invocations to module description.
28512         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
28513         LIB_GETHRXTIME from here...
28514         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
28515         invocations from here...
28516         * modules/gethrxtime (configure.ac): ... to here.
28518 2011-05-08  Bruno Haible  <bruno@clisp.org>
28520         gethostname: Move AC_LIBOBJ invocations to module description.
28521         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
28522         gl_PREREQ_GETHOSTNAME invocations from here...
28523         * modules/gethostname (configure.ac): ... to here.
28525 2011-05-08  Bruno Haible  <bruno@clisp.org>
28527         getgroups: Move AC_LIBOBJ invocations to module description.
28528         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
28529         here...
28530         * modules/getgroups (configure.ac): ... to here.
28532 2011-05-08  Bruno Haible  <bruno@clisp.org>
28534         getdtablesize: Move AC_LIBOBJ invocations to module description.
28535         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
28536         invocation from here...
28537         * modules/getdtablesize (configure.ac): ... to here.
28539 2011-05-08  Bruno Haible  <bruno@clisp.org>
28541         getdomainname: Move AC_LIBOBJ invocations to module description.
28542         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
28543         gl_PREREQ_GETDOMAINNAME invocations from here...
28544         * modules/getdomainname (configure.ac): ... to here.
28546 2011-05-08  Bruno Haible  <bruno@clisp.org>
28548         getline: Move AC_LIBOBJ invocations to module description.
28549         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
28550         invocations from here...
28551         * modules/getline (configure.ac): ... to here.
28553 2011-05-08  Bruno Haible  <bruno@clisp.org>
28555         getline: Simplify.
28556         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
28557         It's already handled through the module dependency.
28559 2011-05-08  Bruno Haible  <bruno@clisp.org>
28561         getdelim: Move AC_LIBOBJ invocations to module description.
28562         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
28563         and gl_PREREQ_GETDELIM invocations from here...
28564         * modules/getdelim (configure.ac): ... to here.
28565         (Depends-on): Fix condition.
28567 2011-05-08  Bruno Haible  <bruno@clisp.org>
28569         getcwd: Move AC_LIBOBJ invocations to module description.
28570         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
28571         invocations from here...
28572         * modules/getcwd (configure.ac): ... to here.
28574 2011-05-08  Bruno Haible  <bruno@clisp.org>
28576         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
28577         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
28578         here...
28579         * modules/getcwd-lgpl (configure.ac): ... to here.
28581 2011-05-07  Bruno Haible  <bruno@clisp.org>
28583         crypto/gc: Move AC_LIBOBJ invocations to module description.
28584         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
28585         * modules/crypto/gc (configure.ac): ... to here.
28587 2011-05-07  Bruno Haible  <bruno@clisp.org>
28589         fwriting: Move AC_LIBOBJ invocations to module description.
28590         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
28591         here...
28592         * modules/fwriting (configure.ac): ... to here.
28594 2011-05-07  Bruno Haible  <bruno@clisp.org>
28596         fwritable: Move AC_LIBOBJ invocations to module description.
28597         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
28598         here...
28599         * modules/fwritable (configure.ac): ... to here.
28601 2011-05-07  Bruno Haible  <bruno@clisp.org>
28603         futimens: Move AC_LIBOBJ invocations to module description.
28604         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
28605         here...
28606         * modules/futimens (configure.ac): ... to here.
28608 2011-05-07  Bruno Haible  <bruno@clisp.org>
28610         ftruncate: Move AC_LIBOBJ invocations to module description.
28611         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
28612         gl_PREREQ_FTRUNCATE invocations from here...
28613         * modules/ftruncate (configure.ac): ... to here.
28615 2011-05-07  Bruno Haible  <bruno@clisp.org>
28617         fsync: Move AC_LIBOBJ invocations to module description.
28618         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
28619         invocations from here...
28620         * modules/fsync (configure.ac): ... to here.
28622 2011-05-07  Bruno Haible  <bruno@clisp.org>
28624         fsusage: Move AC_LIBOBJ invocations to module description.
28625         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
28626         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
28627         * modules/fsusage (configure.ac): ... to here.
28629 2011-05-07  Bruno Haible  <bruno@clisp.org>
28631         freopen: Move AC_LIBOBJ invocations to module description.
28632         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
28633         invocations from here...
28634         * modules/freopen (configure.ac): ... to here.
28636 2011-05-07  Bruno Haible  <bruno@clisp.org>
28638         free: Move AC_LIBOBJ invocations to module description.
28639         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
28640         invocations from here...
28641         * modules/free (configure.ac): ... to here.
28643 2011-05-07  Bruno Haible  <bruno@clisp.org>
28645         freadable: Move AC_LIBOBJ invocations to module description.
28646         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
28647         here...
28648         * modules/freadable (configure.ac): ... to here.
28650 2011-05-07  Bruno Haible  <bruno@clisp.org>
28652         fpurge: Move AC_LIBOBJ invocations to module description.
28653         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
28654         invocations from here...
28655         * modules/fpurge (configure.ac): ... to here.
28657 2011-05-07  Bruno Haible  <bruno@clisp.org>
28659         fpending: Move AC_LIBOBJ invocations to module description.
28660         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
28661         gl_FUNC_FPENDING.
28662         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
28663         invocations from here...
28664         * modules/fpending (configure.ac): ... to here.
28666 2011-05-07  Bruno Haible  <bruno@clisp.org>
28668         fopen: Move AC_LIBOBJ invocations to module description.
28669         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
28670         invocations from here...
28671         * modules/fopen (configure.ac): ... to here.
28673 2011-05-07  Bruno Haible  <bruno@clisp.org>
28675         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
28676         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
28677         gl_FUNC_FNMATCH_POSIX.
28678         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
28679         invocations from here...
28680         * modules/fnmatch (configure.ac): ... to here.
28681         * modules/fnmatch-gnu (configure.ac): ... and here.
28683 2011-05-07  Bruno Haible  <bruno@clisp.org>
28685         flock: Move AC_LIBOBJ invocations to module description.
28686         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
28687         invocations from here...
28688         * modules/flock (configure.ac): ... to here.
28690 2011-05-07  Bruno Haible  <bruno@clisp.org>
28692         fileblocks: Move AC_LIBOBJ invocations to module description.
28693         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
28694         gl_PREREQ_FILEBLOCKS invocations from here...
28695         * modules/fileblocks (configure.ac): ... to here.
28697 2011-05-06  Bruno Haible  <bruno@clisp.org>
28699         fflush: Move AC_LIBOBJ invocations to module description.
28700         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
28701         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
28702         invocations from here...
28703         * modules/fflush (configure.ac): ... to here.
28705 2011-05-06  Bruno Haible  <bruno@clisp.org>
28707         fdopendir: Move AC_LIBOBJ invocations to module description.
28708         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
28709         here...
28710         * modules/fdopendir (configure.ac): ... to here.
28711         (Depends-on): Improve conditions.
28713 2011-05-06  Bruno Haible  <bruno@clisp.org>
28715         _Exit: Move AC_LIBOBJ invocations to module description.
28716         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
28717         invocations from here...
28718         * modules/_Exit (configure.ac): ... to here.
28720 2011-05-21  Bruno Haible  <bruno@clisp.org>
28722         euidaccess: Respect rules for use of AC_LIBOBJ.
28723         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
28724         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
28725         from here...
28726         * modules/euidaccess (configure.ac): ... to here.
28728 2011-05-06  Bruno Haible  <bruno@clisp.org>
28730         error: Move AC_LIBOBJ invocations to module description.
28731         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
28732         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
28733         invocations from here...
28734         * modules/error (configure.ac): ... to here.
28736 2011-05-06  Bruno Haible  <bruno@clisp.org>
28738         duplocale: Move AC_LIBOBJ invocations to module description.
28739         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
28740         gl_PREREQ_DUPLOCALE invocations from here...
28741         * modules/duplocale (configure.ac): ... to here.
28743 2011-05-05  Bruno Haible  <bruno@clisp.org>
28745         dirfd: Move AC_LIBOBJ invocations to module description.
28746         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
28747         gl_FUNC_DIRFD.
28748         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
28749         here...
28750         * modules/dirfd (configure.ac): ... to here.
28751         (Depends-on): Fix condition.
28753 2011-05-05  Bruno Haible  <bruno@clisp.org>
28755         chown: Respect rules for use of AC_LIBOBJ.
28756         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
28757         * modules/chown (configure.ac): ... to here.
28759 2011-05-05  Bruno Haible  <bruno@clisp.org>
28761         chdir-long: Move AC_LIBOBJ invocations to module description.
28762         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
28763         gl_PREREQ_CHDIR_LONG invocations from here...
28764         * modules/chdir-long (configure.ac): ... to here.
28766 2011-05-05  Bruno Haible  <bruno@clisp.org>
28768         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
28769         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
28770         from here...
28771         * modules/canonicalize-lgpl (configure.ac): ... to here.
28773 2011-05-05  Bruno Haible  <bruno@clisp.org>
28775         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
28776         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
28777         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
28778         REPLACE_CALLOC.
28779         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
28780         * modules/calloc-gnu (configure.ac): Likewise.
28782 2011-05-05  Bruno Haible  <bruno@clisp.org>
28784         btowc: Move AC_LIBOBJ invocations to module description.
28785         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
28786         invocations from here...
28787         * modules/btowc (configure.ac): ... to here.
28789 2011-05-21  Bruno Haible  <bruno@clisp.org>
28791         atexit: Move AC_LIBOBJ invocations to module description.
28792         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
28793         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
28794         here...
28795         * modules/atexit (configure.ac): ... to here.
28797 2011-05-05  Bruno Haible  <bruno@clisp.org>
28799         atoll: Move AC_LIBOBJ invocations to module description.
28800         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
28801         invocations from here...
28802         * modules/atoll (configure.ac): ... to here.
28804 2011-05-05  Bruno Haible  <bruno@clisp.org>
28806         argz: Move AC_LIBOBJ invocations to module description.
28807         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
28808         * modules/argz (configure.ac): ... to here.
28810 2011-05-05  Bruno Haible  <bruno@clisp.org>
28812         alphasort: Move AC_LIBOBJ invocations to module description.
28813         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
28814         gl_PREREQ_ALPHASORT invocations from here...
28815         * modules/alphasort (configure.ac): ... to here.
28817 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
28819         verify: new macro verify_expr; verify_true deprecated
28820         * NEWS: Mention this.
28821         * doc/verify.texi (Compile-time Assertions): Document this.
28822         * lib/verify.h (verify_true): Deprecate.
28823         (verify_expr): New macro.
28824         * tests/test-verify.c (function): Test verify_expr.
28826 2011-06-14  Jim Meyering  <meyering@redhat.com>
28828         init.sh: give more portable redirection-related advice in a comment
28829         * tests/init.sh (stderr_fileno_): Update the advice in comments.
28830         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
28831         for lots of discussion.  Stefano Lattarini suggested the solution
28832         of putting "9>&2" after the command.  Reported by Bruno Haible.
28834 2011-06-13  Bruno Haible  <bruno@clisp.org>
28836         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
28837         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
28838         'none'.
28840 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
28842         ftoastr: use strtof only if HAVE_STRTOF
28843         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
28844         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
28845         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
28846         * modules/ftoastr (configure.ac): Check for strtof.
28848 2011-06-13  Bruno Haible  <bruno@clisp.org>
28850         gnulib-tool: Addendum to 2011-06-08 commit.
28851         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
28852         and --witness-c-macro have been given, augment AM_CPPFLAGS.
28854 2011-06-13  Bruno Haible  <bruno@clisp.org>
28856         fseeko: Provide a non-inline replacement of fseek().
28857         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
28858         * modules/fseeko (Depends-on): Add fseek.
28859         * modules/fseek (License): Change to LGPLv2+.
28861 2011-06-13  Bruno Haible  <bruno@clisp.org>
28863         ftello: Provide a non-inline replacement of ftell().
28864         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
28865         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
28866         not have ftello() (such as on mingw).
28867         * modules/ftello (Depends-on): Add ftell.
28868         * modules/ftell (License): Change to LGPLv2+.
28870 2011-05-07  Bruno Haible  <bruno@clisp.org>
28872         ftell: Move AC_LIBOBJ invocations to module description.
28873         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
28874         * modules/ftell (configure.ac): ... to here.
28876 2011-05-07  Bruno Haible  <bruno@clisp.org>
28878         ftello: Respect rules for use of AC_LIBOBJ.
28879         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
28880         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
28881         here...
28882         * modules/ftello (configure.ac): ... to here.
28884 2011-05-07  Bruno Haible  <bruno@clisp.org>
28886         fseeko: Simplify.
28887         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
28888         (gl_FUNC_FSEEKO): Inline it here.
28890 2011-05-07  Bruno Haible  <bruno@clisp.org>
28892         fseek: Move AC_LIBOBJ invocations to module description.
28893         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
28894         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
28895         * modules/fseek (configure.ac): ... to here.
28897 2011-05-07  Bruno Haible  <bruno@clisp.org>
28899         fseek: Respect rules for use of AC_LIBOBJ.
28900         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
28901         here...
28902         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
28904 2011-05-07  Bruno Haible  <bruno@clisp.org>
28906         fseeko: Respect rules for use of AC_LIBOBJ.
28907         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
28908         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
28909         here...
28910         * modules/fseeko (configure.ac): ... to here.
28912 2011-06-13  Bruno Haible  <bruno@clisp.org>
28914         gnulib-tool: Allow comments in the 'Depends-on' section.
28915         * doc/gnulib.texi (Module description): Mention comment syntax in the
28916         Depends-on section.
28917         * gnulib-tool (func_get_dependencies): Filter out comment lines.
28919 2011-06-13  Bruno Haible  <bruno@clisp.org>
28921         file-set.h: guard __attibute__ use, now that it's not always defined
28922         * lib/file-set.h (record_file): Use __attribute__ only with compiler
28923         versions that support it.  This fixes a coreutils build failure with
28924         the vendor cc on HP-UX 11.31.
28926 2011-06-12  Bruno Haible  <bruno@clisp.org>
28928         acl: Add support for HP-UX >= 11.11 JFS ACLs.
28929         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
28930         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
28931         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
28932         (acl, aclsort): New declarations.
28933         (aclv_nontrivial): New declaration.
28934         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
28935         (file_has_acl): Read also the second kind of HP-UX ACLs.
28936         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
28937         kind of HP-UX ACLs if the first kind fails.
28938         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
28939         second kind of HP-UX ACLs.
28940         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
28941         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
28942         agree.
28943         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
28944         hpuxjfs.
28945         Handle hpuxjfs.
28946         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
28947         hpuxjfs.
28948         Handle hpuxjfs.
28949         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
28950         (func_test_same_acls): Use both lsacl and getacl.
28951         Handle hpuxjfs.
28952         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
28953         (func_test_same_acls): Use both lsacl and getacl.
28954         Handle hpuxjfs.
28956 2011-06-12  Bruno Haible  <bruno@clisp.org>
28958         acl: Complete the 2010-08-10 fix.
28959         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
28960         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
28961         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
28962         explicitly.
28963         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
28964         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
28966 2011-06-12  Bruno Haible  <bruno@clisp.org>
28968         spawn-pipe tests: Comments.
28969         * tests/test-spawn-pipe-child.c (main): Update comment.
28970         Reported by James Youngman <jay@gnu.org>.
28972 2011-06-11  James Youngman  <jay@gnu.org>
28974         New module 'stat-size'.
28975         * modules/stat-size: New module.  Provides macros for accessing
28976         file size information in instances of struct stat.  Depends on the
28977         fileblocks module because it calls st_blocks.
28978         * lib/stat-size.h: New file, adapted from coreutils' system.h.
28979         * doc/gnulib.texi: Include stat-size.texi.
28980         * doc/stat-size.texi: Documentation for this module.
28981         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
28982         * m4/fileblocks.m4: Mention that stat-size depends on the call to
28983         AC_STRUCT_ST_BLOCKS.
28985 2011-06-09  Bruno Haible  <bruno@clisp.org>
28987         thread: Support pthreads-win32.
28988         * lib/glthread/thread.h (gl_thread_self): Define differently on
28989         pthreads-win32.
28990         (gl_null_thread): New declaration.
28991         (gl_thread_self_pointer): New macro.
28992         * lib/glthread/thread.c (gl_null_thread): New constant.
28993         * tests/test-lock.c: Use gl_thread_self_pointer instead of
28994         gl_thread_self.
28995         * tests/test-tls.c: Likewise.
28996         Suggested by Paul Eggert. Reported by Eric Blake.
28998 2011-06-09  Bruno Haible  <bruno@clisp.org>
29000         thread: Fix confusion between NULL and 0.
29001         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
29002         Reported by Paul Eggert.
29004 2011-06-09  Bruno Haible  <bruno@clisp.org>
29006         spawn-pipe tests: Avoid test failure on HP-UX 11.
29007         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
29008         is closed.
29010 2011-06-09  Bruno Haible  <bruno@clisp.org>
29012         acl tests: Fix compilation error on HP-UX 11.
29013         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
29015 2011-06-09  Bruno Haible  <bruno@clisp.org>
29017         rmdir: Avoid test failure on HP-UX 10.20.
29018         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
29019         EEXIST.
29021 2011-06-08  Eric Blake  <eblake@redhat.com>
29023         perror: fix test on mingw
29024         * modules/perror-tests (Depends-on): Add dup2.
29026         strerror_r-posix: fix on MacOS
29027         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
29028         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
29029         logic bug.
29030         * lib/strerror_r.c (strerror_r): Fix the bug.
29031         * lib/strerror.c (strerror): Likewise.
29032         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
29033         problem.
29034         * doc/posix-functions/strerror.texi (strerror): Likewise.
29035         * doc/posix-functions/perror.texi (perror): Likewise.
29036         * tests/test-strerror.c (main): Enhance test.
29037         * tests/test-strerror_r.c (main): Likewise.
29039 2011-06-08  Bruno Haible  <bruno@clisp.org>
29041         gnulib-tool: Better isolation between different gnulib-tool invocations.
29042         * gnulib-tool: New option --witness-c-macro.
29043         (witness_c_macro): New variable.
29044         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
29045         AM_CPPFLAGS define it as a C macro.
29046         (func_emit_tests_Makefile_am): Likewise.
29047         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
29048         read it from there.
29049         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
29050         m4_define, not AC_DEFUN.
29051         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
29052         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
29053         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
29054         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
29055         s|...|...|, to substitute the values of the GNULIB_* module indicator
29056         variables.
29057         * modules/dirent (Makefile.am): Likewise.
29058         * modules/fcntl-h (Makefile.am): Likewise.
29059         * modules/iconv-h (Makefile.am): Likewise.
29060         * modules/langinfo (Makefile.am): Likewise.
29061         * modules/locale (Makefile.am): Likewise.
29062         * modules/math (Makefile.am): Likewise.
29063         * modules/netdb (Makefile.am): Likewise.
29064         * modules/poll-h (Makefile.am): Likewise.
29065         * modules/pty (Makefile.am): Likewise.
29066         * modules/search (Makefile.am): Likewise.
29067         * modules/signal (Makefile.am): Likewise.
29068         * modules/spawn (Makefile.am): Likewise.
29069         * modules/stdio (Makefile.am): Likewise.
29070         * modules/stdlib (Makefile.am): Likewise.
29071         * modules/string (Makefile.am): Likewise.
29072         * modules/sys_ioctl (Makefile.am): Likewise.
29073         * modules/sys_select (Makefile.am): Likewise.
29074         * modules/sys_socket (Makefile.am): Likewise.
29075         * modules/sys_stat (Makefile.am): Likewise.
29076         * modules/sys_times (Makefile.am): Likewise.
29077         * modules/sys_utsname (Makefile.am): Likewise.
29078         * modules/sys_wait (Makefile.am): Likewise.
29079         * modules/termios (Makefile.am): Likewise.
29080         * modules/time (Makefile.am): Likewise.
29081         * modules/unistd (Makefile.am): Likewise.
29082         * modules/wchar (Makefile.am): Likewise.
29084 2011-06-08  Eric Blake  <eblake@redhat.com>
29086         strerror: simplify replacement
29087         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
29088         * modules/strerror (configure.ac): No prereqs needed here...
29089         * modules/strerror-override (configure.ac): ...but this needs it.
29090         (Files): Add file for needed prereq macro.
29092 2011-06-08  Bruno Haible  <bruno@clisp.org>
29094         strerror_r-posix: Tweaks.
29095         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
29096         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
29097         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
29098         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
29099         (gl_FUNC_STRERROR_R): ... to here.
29100         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
29102 2011-06-07  Eric Blake  <eblake@redhat.com>
29104         perror: document fixed bugs
29105         * doc/posix-functions/perror.texi (perror): Document recent
29106         patches.
29108 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
29110         stat-time: get_stat_birthtime failure is better-defined
29111         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
29112         return a timestamp whose tv_sec and tv_nsec values are both -1.
29113         Previously, the spec said only that the tv_nsec value was negative.
29114         This upward-compatible change simplifies GNU tar a bit.
29116 2011-06-07  Eric Blake  <eblake@redhat.com>
29118         strerror_r-posix: work around cygwin 1.7.9
29119         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
29120         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
29121         bug without replacing strerror_r.
29122         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
29123         strerror_r is buggy, but without requiring strerror_r compilation.
29124         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
29126         test-perror: relax test to ignore cygwin bug
29127         * tests/test-perror2.c (main): Relax test on requiring detection
29128         of stream errors, and use unbuffered stream.
29129         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
29130         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
29131         * doc/posix-functions/fputc.texi (fputc): Likewise.
29132         * doc/posix-functions/fputs.texi (fputs): Likewise.
29133         * doc/posix-functions/fputws.texi (fputws): Likewise.
29134         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
29135         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
29136         * doc/posix-functions/getopt.texi (getopt): Likewise.
29137         * doc/posix-functions/perror.texi (perror): Likewise.
29138         * doc/posix-functions/printf.texi (printf): Likewise.
29139         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
29140         * doc/posix-functions/psignal.texi (psignal): Likewise.
29141         * doc/posix-functions/putc.texi (putc): Likewise.
29142         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
29143         Likewise.
29144         * doc/posix-functions/putchar.texi (putchar): Likewise.
29145         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
29146         Likewise.
29147         * doc/posix-functions/puts.texi (puts): Likewise.
29148         * doc/posix-functions/putwc.texi (putwc): Likewise.
29149         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
29150         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
29151         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
29152         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
29153         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
29154         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
29155         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
29156         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
29158 2011-05-22  Bruno Haible  <bruno@clisp.org>
29160         strerror: Move AC_LIBOBJ invocations to module description.
29161         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
29162         gl_PREREQ_STRERROR invocations from here...
29163         * modules/strerror (configure.ac): ... to here.
29165 2011-05-21  Bruno Haible  <bruno@clisp.org>
29167         perror: Use common idiom.
29168         * modules/perror (configure.ac): Reorder statements.
29170 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
29172         tests: fix usage message in 'mktempd_'
29173         * tests/init.sh (mktempd_): In the usage message, use literal
29174         'mktempd_', not '$ME' (which is even undefined), as the name of
29175         the subroutine.
29177 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
29179         tests init: new function 'fatal_', for hard errors
29180         Before this patch, the only way offered by tests/init.sh to
29181         properly signal a hard error was the `framework_failure_'
29182         function.  But the error message issued by that function,
29183         as its name would suggest, refers to a set-up failure in the
29184         testsuite, while hard errors can obviously also be due to
29185         other reasons.  The best way to fix this inconsistency is to
29186         introduce a new function with a more general error message.
29187         * tests/init.sh (fatal_): New function.
29189 2011-06-06  Eric Blake  <eblake@redhat.com>
29191         canonicalize-lgpl: use common idiom
29192         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
29193         over newer POSIX -Rf.
29194         Reported by Bruno Haible.
29196         canonicalize-lgpl: work around AIX realpath bug
29197         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
29198         * doc/posix-functions/realpath.texi (realpath): Document it.
29199         Reported by Bruno Haible.
29201         strerror: work around FreeBSD bug
29202         * lib/strerror.c (strerror): Special case 0.
29203         Reported by Bruno Haible.
29205         strerror-override: avoid bloating errno module
29206         * modules/errno (Files, configure.ac): Move replacement strings...
29207         * modules/strerror-override: ...to new module.
29208         * modules/strerror (Depends-on): Add strerror-override.
29209         * modules/strerror_r-posix (Depends-on): Likewise.
29210         * MODULES.html.sh: Document new module.
29211         Reported by Bruno Haible.
29213 2011-06-06  Bruno Haible  <bruno@clisp.org>
29215         spawn-pipe tests: Rename program.
29216         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
29217         * tests/test-spawn-pipe-child.c: Update comment.
29218         * tests/test-spawn-pipe.sh: Update.
29219         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
29221         spawn-pipe tests: Link the child program only against libc.
29222         * tests/test-spawn-pipe-child.c: New file, extracted from
29223         tests/test-spawn-pipe.c.
29224         (main): Expect only one argument.
29225         (is_open): New function, copied from tests/test-pipe.c.
29226         * tests/test-spawn-pipe.c: Don't include <errno.h>.
29227         (child_main): Remove function.
29228         (test_pipe): Pass only one argument to the child program.
29229         (main): Remove child process code. Expect the child program's name as
29230         first argument.
29231         * tests/test-spawn-pipe.sh: Pass the child program's name as first
29232         argument.
29233         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
29234         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
29235         test-spawn-pipe-child against no libraries.
29237 2011-06-06  Bruno Haible  <bruno@clisp.org>
29239         careadlinkat: Avoid mismatch between ssize_t and int.
29240         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
29241         * lib/careadlinkat.c (careadlinkatcwd): Define always.
29243 2011-06-06  Jim Meyering  <meyering@redhat.com>
29245         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
29246         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
29247         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
29249 2011-06-05  Bruno Haible  <bruno@clisp.org>
29251         ansi-c++-opt: Interoperability with libtool.
29252         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
29253         set the variable to "no", not to ":".
29254         * NEWS: Mention the change.
29256 2011-06-05  Bruno Haible  <bruno@clisp.org>
29258         acl: Fix test failure on AIX 7.
29259         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
29260         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
29262 2011-06-05  Bruno Haible  <bruno@clisp.org>
29264         pipe-filter-ii: Fix test failure on AIX and IRIX.
29265         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
29266         with EAGAIN, retry with a smaller buffer size.
29268 2011-06-05  Bruno Haible  <bruno@clisp.org>
29270         localename: Fix link dependencies.
29271         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
29272         * modules/localename-tests (Makefile.am): Link test-localename with
29273         $(LIBTHREAD).
29275 2011-06-05  Bruno Haible  <bruno@clisp.org>
29277         error: Avoid gcc warning.
29278         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
29280 2011-06-05  Bruno Haible  <bruno@clisp.org>
29282         unsetenv: Avoid gcc warning.
29283         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
29285 2011-06-05  Bruno Haible  <bruno@clisp.org>
29287         setenv: Avoid gcc warning.
29288         * lib/setenv.c (setenv): Provide declaration if system lacks it.
29290 2011-06-05  Bruno Haible  <bruno@clisp.org>
29292         sys_select: Ensure memset is declared also on AIX 7.
29293         * lib/sys_select.in.h: Include <string.h> also on AIX.
29294         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
29295         self-contained also on AIX 7.1.
29297 2011-06-04  Jim Meyering  <meyering@redhat.com>
29299         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
29300         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
29301         function name, "error".
29302         (_gl_translatable_diag_func_re): New configurable variable.
29304 2011-06-04  Bruno Haible  <bruno@clisp.org>
29306         getopt: Avoid gcc warning.
29307         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
29309 2011-06-04  Bruno Haible  <bruno@clisp.org>
29311         strerror_r: Fix comments.
29312         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
29313         commit.
29315 2011-06-04  Bruno Haible  <bruno@clisp.org>
29317         perror: Fix compilation error.
29318         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
29319         Undefine fprintf, not sprintf.
29320         * modules/perror (Depends-on): Remove intprops, verify.
29322 2011-06-04  Bruno Haible  <bruno@clisp.org>
29324         setlocale: Enable replacement on Cygwin 1.5.
29325         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
29326         Cygwin 1.5.x.
29327         * doc/posix-functions/setlocale.texi: Mention that the problem with the
29328         LC_CTYPE category also exists on Cygwin 1.5.x.
29330 2011-06-04  Bruno Haible  <bruno@clisp.org>
29332         strerror-override: Don't disable symbol renamings.
29333         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
29334         * lib/strerror-override.c: Include config.h.
29335         (strerror_override): Don't undefine.
29337 2011-06-03  Bruno Haible  <bruno@clisp.org>
29339         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
29340         * lib/localename.h: Update copyright header.
29341         * lib/localename.c: Likewise.
29342         * lib/relocatable.h: Likewise.
29343         * lib/relocatable.c: Likewise.
29345 2011-06-02  Bruno Haible  <bruno@clisp.org>
29347         doc: Fix a module name.
29348         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
29350 2011-06-02  Bruno Haible  <bruno@clisp.org>
29352         pipe2: Remove dependency on 'nonblocking' module.
29353         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
29354         O_NONBLOCK is defined by gnulib.
29355         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
29356         is zero.
29357         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
29358         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
29359         defined by gnulib.
29360         (get_nonblocking_flag): New function.
29361         (main): Test O_NONBLOCK flag only if it is nonzero.
29362         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
29364 2011-06-03  Jim Meyering  <meyering@redhat.com>
29366         maint: three new prohibit-header-without-use rules
29367         Prohibit use of cloexec.h, posixver.h, same.h without use.
29368         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
29369         (sc_prohibit_posixver_without_use): Likewise.
29370         (sc_prohibit_same_without_use): Likewise.
29372 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
29374         allocator: 'die' routine is now given requested size
29375         * lib/allocator.h (struct allocator.die): New size arg.
29376         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
29377         If the actual problem is an ssize_t limitation, not a size_t or
29378         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
29380 2011-06-01  Eric Blake  <eblake@redhat.com>
29382         strerror: drop strerror_r dependency
29383         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
29384         * lib/strerror-override.c (strerror_override): ...to new file.
29385         * lib/strerror-override.h: Add prototype.
29386         * lib/strerror-impl.h: Delete.
29387         * lib/strerror.c (strerror): New implementation.
29388         * modules/errno (Files): Add new files.
29389         (configure.ac): Compile new file as appropriate.
29390         * modules/strerror (Files): Drop unused file.
29391         (Depends-on): Drop strerror_r-posix.
29392         * MODULES.html.sh: Document strerror_r-posix.
29393         Requested by Sam Steingold.
29395         perror: call strerror_r directly
29396         * modules/perror (Files): Drop strerror-impl.h.
29397         * lib/perror.c (perror): Use our own stack buffer, rather than
29398         calling a wrapper that uses static storage.
29399         * doc/posix-functions/perror.texi (perror): Document a limitation
29400         of our replacement.
29402         strerror_r: fix includes for FreeBSD
29403         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
29404         since we use abort on some platforms.
29405         Reported by Matthias Bolte.
29407 2011-05-31  Bruno Haible  <bruno@clisp.org>
29409         Fix link errors in tests: openat-die uses gettext-h.
29410         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
29411         against $(LIBINTL).
29412         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
29413         against $(LIBINTL).
29414         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
29415         $(LIBINTL).
29416         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
29417         against $(LIBINTL).
29418         * modules/linkat-tests (Makefile.am): Link test-linkat against
29419         $(LIBINTL).
29420         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
29421         $(LIBINTL).
29422         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
29423         against $(LIBINTL).
29424         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
29425         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
29426         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
29427         $(LIBINTL).
29428         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
29429         $(LIBINTL).
29430         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
29431         $(LIBINTL).
29432         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29434 2011-05-31  Bruno Haible  <bruno@clisp.org>
29436         Fix link errors in tests: wait-process uses gettext-h.
29437         * modules/nonblocking-pipe-tests (Makefile.am): Set
29438         test_nonblocking_pipe_main_LDADD.
29439         * modules/nonblocking-socket-tests (Makefile.am): Link
29440         test-nonblocking-socket-main against $(LIBINTL).
29441         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29443 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
29445         assert-h: work around 'verify' incompatibility
29446         * lib/verify.h: Use @...@ directives, not ifdef.
29447         * modules/assert-h (assert.h): Implement the directives.
29448         (assert.h): Substitute the symbol-prefix more consistently.
29450 2011-05-29  Jim Meyering  <meyering@redhat.com>
29452         trim: remove three superfluous assignments
29453         * lib/trim.c (trim2): Remove three superfluous assignments
29454         and correct brace positioning.
29456 2011-05-29  Bruno Haible  <bruno@clisp.org>
29458         wctype-h: Avoid namespace pollution on Solaris 2.6.
29459         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
29460         identifiers.
29461         * doc/posix-headers/wctype.texi: Mention the problem.
29462         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29464 2011-05-28  Jim Meyering  <meyering@redhat.com>
29466         parse-datetime.y: accommodate -Wstrict-overflow
29467         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
29468         placate -Wstrict-overflow.
29470         trim: avoid a warning from -O2 -Wstrict-overflow
29471         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
29473 2011-05-29  Bruno Haible  <bruno@clisp.org>
29475         gnulib-tool: Fix bug in yesterday's commit.
29476         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
29477         twice.
29479 2011-05-29  Bruno Haible  <bruno@clisp.org>
29481         Allow multiple gnulib generated include files to be combined.
29482         * gnulib-tool (func_compute_include_guard_prefix): New function.
29483         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
29484         ${gl_include_guard_prefix} references.
29485         (func_import, func_create_testdir): Invoke
29486         func_compute_include_guard_prefix.
29487         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
29488         * lib/ctype.in.h: Likewise.
29489         * lib/dirent.in.h: Likewise.
29490         * lib/errno.in.h: Likewise.
29491         * lib/fcntl.in.h: Likewise.
29492         * lib/float.in.h: Likewise.
29493         * lib/getopt.in.h: Likewise.
29494         * lib/iconv.in.h: Likewise.
29495         * lib/langinfo.in.h: Likewise.
29496         * lib/locale.in.h: Likewise.
29497         * lib/math.in.h: Likewise.
29498         * lib/netdb.in.h: Likewise.
29499         * lib/netinet_in.in.h: Likewise.
29500         * lib/poll.in.h: Likewise.
29501         * lib/pthread.in.h: Likewise.
29502         * lib/pty.in.h: Likewise.
29503         * lib/sched.in.h: Likewise.
29504         * lib/se-selinux.in.h: Likewise.
29505         * lib/search.in.h: Likewise.
29506         * lib/signal.in.h: Likewise.
29507         * lib/spawn.in.h: Likewise.
29508         * lib/stdarg.in.h: Likewise.
29509         * lib/stddef.in.h: Likewise.
29510         * lib/stdint.in.h: Likewise.
29511         * lib/stdio.in.h: Likewise.
29512         * lib/stdlib.in.h: Likewise.
29513         * lib/string.in.h: Likewise.
29514         * lib/strings.in.h: Likewise.
29515         * lib/sys_file.in.h: Likewise.
29516         * lib/sys_ioctl.in.h: Likewise.
29517         * lib/sys_select.in.h: Likewise.
29518         * lib/sys_socket.in.h: Likewise.
29519         * lib/sys_stat.in.h: Likewise.
29520         * lib/sys_time.in.h: Likewise.
29521         * lib/sys_times.in.h: Likewise.
29522         * lib/sys_uio.in.h: Likewise.
29523         * lib/sys_utsname.in.h: Likewise.
29524         * lib/sys_wait.in.h: Likewise.
29525         * lib/sysexits.in.h: Likewise.
29526         * lib/termios.in.h: Likewise.
29527         * lib/time.in.h: Likewise.
29528         * lib/unistd.in.h: Likewise.
29529         * lib/wchar.in.h: Likewise.
29530         * lib/wctype.in.h: Likewise.
29531         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
29532         * modules/ctype (Makefile.am): Likewise.
29533         * modules/dirent (Makefile.am): Likewise.
29534         * modules/errno (Makefile.am): Likewise.
29535         * modules/fcntl-h (Makefile.am): Likewise.
29536         * modules/float (Makefile.am): Likewise.
29537         * modules/getopt-posix (Makefile.am): Likewise.
29538         * modules/iconv-h (Makefile.am): Likewise.
29539         * modules/langinfo (Makefile.am): Likewise.
29540         * modules/locale (Makefile.am): Likewise.
29541         * modules/math (Makefile.am): Likewise.
29542         * modules/netdb (Makefile.am): Likewise.
29543         * modules/netinet_in (Makefile.am): Likewise.
29544         * modules/poll-h (Makefile.am): Likewise.
29545         * modules/pthread (Makefile.am): Likewise.
29546         * modules/pty (Makefile.am): Likewise.
29547         * modules/sched (Makefile.am): Likewise.
29548         * modules/search (Makefile.am): Likewise.
29549         * modules/selinux-h (Makefile.am): Likewise.
29550         * modules/signal (Makefile.am): Likewise.
29551         * modules/spawn (Makefile.am): Likewise.
29552         * modules/stdarg (Makefile.am): Likewise.
29553         * modules/stddef (Makefile.am): Likewise.
29554         * modules/stdint (Makefile.am): Likewise.
29555         * modules/stdio (Makefile.am): Likewise.
29556         * modules/stdlib (Makefile.am): Likewise.
29557         * modules/string (Makefile.am): Likewise.
29558         * modules/strings (Makefile.am): Likewise.
29559         * modules/sys_file (Makefile.am): Likewise.
29560         * modules/sys_ioctl (Makefile.am): Likewise.
29561         * modules/sys_select (Makefile.am): Likewise.
29562         * modules/sys_socket (Makefile.am): Likewise.
29563         * modules/sys_stat (Makefile.am): Likewise.
29564         * modules/sys_time (Makefile.am): Likewise.
29565         * modules/sys_times (Makefile.am): Likewise.
29566         * modules/sys_uio (Makefile.am): Likewise.
29567         * modules/sys_utsname (Makefile.am): Likewise.
29568         * modules/sys_wait (Makefile.am): Likewise.
29569         * modules/sysexits (Makefile.am): Likewise.
29570         * modules/termios (Makefile.am): Likewise.
29571         * modules/time (Makefile.am): Likewise.
29572         * modules/unistd (Makefile.am): Likewise.
29573         * modules/wchar (Makefile.am): Likewise.
29574         * modules/wctype-h (Makefile.am): Likewise.
29575         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
29577 2011-05-29  Bruno Haible  <bruno@clisp.org>
29579         assert-h: Allow multiple gnulib generated replacements to coexist.
29580         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
29582 2011-05-29  Bruno Haible  <bruno@clisp.org>
29584         argp: Allow coexistence with strerror_r-posix module.
29585         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
29586         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
29587         by gnulib's <string.h> replacement), assume it has the POSIX signature,
29588         not the glibc signature.
29590 2011-05-28  Bruno Haible  <bruno@clisp.org>
29592         gnulib-tool: Alternative structure of testdirs, similar to --import.
29593         * gnulib-tool: New option --single-configure.
29594         (func_usage): Document it.
29595         (single_configure): New variable.
29596         (func_modules_transitive_closure_separately,
29597         func_modules_transitive_closure_separately,
29598         func_determine_use_libtests, func_modules_add_dummy_separately,
29599         func_modules_to_filelist_separately): New functions, extracted from
29600         func_import.
29601         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
29602         (func_import): Use the new functions.
29603         (func_create_testdir): Set final_modules. Handle $single_configure =
29604         true case.
29606 2011-05-28  Bruno Haible  <bruno@clisp.org>
29608         getloadavg: Remove an unreliable safety check.
29609         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
29610         getloadavg.c is in place.
29611         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
29612         Reported by Sam Steingold <sds@gnu.org>.
29614 2011-05-28  Bruno Haible  <bruno@clisp.org>
29616         doc: Cleanup yet another file produced by texinfo.tex.
29617         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
29619 2011-05-28  Bruno Haible  <bruno@clisp.org>
29621         Finish the conditional dependencies mechanism.
29622         * gnulib-tool: New option --no-conditional-dependencies.
29623         (func_usage): Document it. Don't mark --conditional-dependencies as
29624         experimental.
29625         (cond_dependencies): The possible values can now be true, false, empty.
29626         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
29627         (func_import): Store setting in gnulib-cache.m4 and read it from there.
29628         * doc/gnulib-tool.texi (Conditional dependencies): New section.
29630 2011-05-28  Bruno Haible  <bruno@clisp.org>
29632         doc: Use a recent texinfo.tex.
29633         * doc/Makefile (tex_opts): New variable.
29634         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
29636 2011-05-28  Jim Meyering  <meyering@redhat.com>
29638         intprops.h: adjust comment to match code change
29639         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
29640         only once, it *may* have side effects.  Also fix an unrelated typo.
29641         (_GL_INT_SIGNED): Likewise.
29643 2011-05-26  Simon Josefsson  <simon@josefsson.org>
29645         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
29647 2011-05-26  Bruno Haible  <bruno@clisp.org>
29649         mbsrchr: Avoid collision with system function on Interix.
29650         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
29651         Reported by Markus Duft <mduft@gentoo.org>.
29653 2011-05-15  James Youngman  <jay@gnu.org>
29655         getopt: for ambiguous options, enumerate the possibilities.
29656         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
29657         the ambiguous options when an ambiguous prefix is given. This was
29658         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
29659         glibc change was
29660         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
29662 2011-05-25  Eric Blake  <eblake@redhat.com>
29664         getcwd: work around mingw bug
29665         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
29666         * doc/posix-functions/getcwd.texi (getcwd): Document it.
29667         Reported by Matthias Bolte.
29669 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
29671         test-intprops: disable -Wtype-limits diagnostics
29672         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
29673         diagnostics.  Otherwise, the integer overflow macros generate many
29674         diagnostics.  Reported by Jim Meyering in
29675         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
29677         intprops: shorten, to pacify gcc -Woverlength-strings
29678         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
29679         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
29680         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
29681         likely to run afoul of C compiler limits for string constant lengths.
29682         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
29684 2011-05-24  Eric Blake  <eblake@redhat.com>
29686         docs: document recently fixed glibc printf bug
29687         * doc/posix-functions/fprintf.texi (fprintf): Document it.
29688         * doc/posix-functions/printf.texi (printf): Likewise.
29689         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
29690         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
29692         closein-tests: convert to init.sh
29693         * modules/closein-tests (Files): Add init.sh
29694         * tests/test-closein.sh Use it.
29696         yesno-tests: convert to init.sh
29697         * modules/yesno-tests (Files): Add init.sh.
29698         * tests/test-yesno.sh: Use it.
29700         atexit-tests: ensure reliable exit status
29701         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
29702         Reported by Bruno Haible.
29704 2011-05-24  Bruno Haible  <bruno@clisp.org>
29706         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
29707         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
29708         gl_PREREQ_STRERROR_R invocations from here...
29709         * modules/strerror_r-posix (configure.ac): ... to here.
29711 2011-05-24  Eric Blake  <eblake@redhat.com>
29713         strerror_r: fix missing header
29714         * lib/strerror_r.c: Avoid compiler warning about snprintf.
29716         strerror_r: fix AIX test failures
29717         * lib/strerror_r.c (strerror_r): Convert silent truncation to
29718         ERANGE failure.
29720         strerror_r: fix Solaris test failures
29721         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
29722         failures.
29723         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
29725         strerror_r: enforce POSIX recommendations
29726         * lib/strerror_r.c (safe_copy): New helper method.
29727         (strerror_r): Guarantee a non-empty string.
29728         * tests/test-strerror_r.c (main): Enhance tests to incorporate
29729         recent POSIX rulings and to match our strerror guarantees.
29730         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
29732 2011-05-24  Jim Meyering  <meyering@redhat.com>
29734         test-perror2.c: avoid warning about unused variable
29735         * tests/test-perror2.c (main): Remove declaration of unused "fp".
29737 2011-05-24  Eric Blake  <eblake@redhat.com>
29739         perror: avoid spurious test failure on HP-UX
29740         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
29742         tests: fix logic bug in init.sh
29743         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
29744         shell.
29746 2011-05-24  Jim Meyering  <meyering@redhat.com>
29748         utimensat: do not reference an out-of-scope buffer
29749         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
29750         declared in an inner scope, yet "times" would be dereferenced outside
29751         the scope in which "ts" was valid.
29752         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
29753         of ts[2] "out/up", so that the use of aliased "times" (via
29754         "times = ts;") does not end up referencing an out-of-scope "ts"
29756         opendir-safer.c: don't clobber errno; don't close negative FD
29757         * lib/opendir-safer.c (opendir_safer):
29758         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
29759         file descriptor, and more importantly, don't clobber the
29760         offending errno value with EINVAL.  Before, upon failure
29761         of dup_safer, we would pass the negative file descriptor to
29762         fdopendir, which would clobber errno.
29764 2011-05-23  Bruno Haible  <bruno@clisp.org>
29766         idcache: Fix module description.
29767         * modules/idcache (Include): Set to "idcache.h".
29769 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
29771         gnulib-tool: fix portability problem with MacOS sed
29772         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
29773         before the "}".  Problem reported by Leo in
29774         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
29775         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
29776         sed_extract_condition1, sed_extract_condition2.
29778 2011-05-23  Bruno Haible  <bruno@clisp.org>
29780         hash: Simplify autoconf macro.
29781         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
29783 2011-05-23  Bruno Haible  <bruno@clisp.org>
29785         getugroups: Fix module description.
29786         * modules/getugroups (Include): Set to "getugroups.h".
29788 2011-05-23  Bruno Haible  <bruno@clisp.org>
29790         linkat: Simplify autoconf macro.
29791         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
29793 2011-05-23  Bruno Haible  <bruno@clisp.org>
29794             Eric Blake  <eblake@redhat.com>
29796         linkat, renameat: Update dependencies.
29797         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
29798         * modules/linkat (Depends-on): Likewise. Remove also readlink,
29799         symlinkat.
29801 2011-05-23  Jim Meyering  <meyering@redhat.com>
29803         maint.mk: more tight_scope improvements
29804         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
29805         (_gl_TS_headers): Define only in if-0'd block.
29806         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
29807         sometimes we must *not* use it.  Adjust uses accordingly.
29808         (sc_tight_scope): Use much simpler grep-based test to determine
29809         whether we skip this rule.
29811         maint.mk: generalize/improve the tight-scope rule
29812         * top/maint.mk: Emit a warning when the test is skipped.
29813         (_gl_TS_dir): Add $(srcdir)/ prefix.
29814         (_gl_TS_function_match): Simplify, rather than trying
29815         to enumerate common types.  Otherwise, it would fail to match an
29816         "extern unsigned char const *" declaration in idutils.
29817         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
29818         a way to support use of that type of macro.
29819         (_gl_TS_var_match): Simplify regexp.
29820         (_gl_TS_obj_files): New configurable variable.
29821         (_gl_TS_headers): Likewise.
29823 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
29825         verify: fix bug when gnulib <assert.h> is also included
29826         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
29827         is defined, not if _GL_STATIC_ASSERT_H is not defined.
29828         Perhaps there's a better way, but this fixes the immediate problem.
29829         Problem reported by Bruno Haible in
29830         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
29832 2011-05-22  Bruno Haible  <bruno@clisp.org>
29834         xgetcwd: Simplify autoconf macro.
29835         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
29837 2011-05-22  Bruno Haible  <bruno@clisp.org>
29839         New module 'mktime-internal'.
29840         * modules/mktime-internal: New file.
29841         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
29842         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
29843         mktime_internal as a C macro if libc has __mktime_internal.
29844         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
29845         conditions.
29846         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
29848 2011-05-22  Bruno Haible  <bruno@clisp.org>
29850         timegm: Correct mktime replacement statements.
29851         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
29852         defining mktime as a C macro. This completes a 2009-07-28 commit.
29854 2011-05-22  Bruno Haible  <bruno@clisp.org>
29856         timegm: Simplify autoconf macro.
29857         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
29859 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
29861         clock-time: change to LGPLv2+.
29862         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
29863         BSD-like but we have no mark for that; this is good enough for now.
29865 2011-05-21  Bruno Haible  <bruno@clisp.org>
29867         strerror_r: Fix comments.
29868         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
29870 2011-05-21  Bruno Haible  <bruno@clisp.org>
29872         relocatable-prog-wrapper: Fix possible link error.
29873         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
29874         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
29875         (gl_FUNC_SETENV): ... to here.
29876         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
29877         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
29879 2011-05-21  Bruno Haible  <bruno@clisp.org>
29881         relocatable-prog-wrapper: Assume strerror() exists.
29882         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
29883         m4/strerror.m4.
29884         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
29885         * lib/relocwrapper.c: Remove mention of strerror module.
29886         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
29887         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
29888         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
29889         C macro.
29891 2011-05-21  Bruno Haible  <bruno@clisp.org>
29893         select: Simplify replacement idiom.
29894         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
29895         Win32 platforms.
29896         * lib/sys_select.in.h (select): Simplify accordingly.
29897         * modules/select (Depends-on): Likewise.
29899 2011-05-21  Bruno Haible  <bruno@clisp.org>
29901         mkdir-p: Simplify autoconf macro.
29902         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
29903         gl_FUNC_LCHOWN.
29905 2011-05-21  Eric Blake  <eblake@redhat.com>
29907         strerror_r: avoid clobbering strerror on cygwin
29908         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
29909         fall back instead to sys_errlist.
29910         * modules/strerror (configure.ac): Add witness.
29911         * tests/test-strerror_r.c (main): Enhance test.
29912         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
29913         * tests/test-perror2.c (main): Free memory before exit.
29915 2011-05-21  Bruno Haible  <bruno@clisp.org>
29917         mkdtemp: Use gnulib naming conventions.
29918         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
29919         * modules/mkdtemp (configure.ac): Update.
29921 2011-05-20  Eric Blake  <eblake@redhat.com>
29923         strerror_r: avoid corrupting errno on Solaris
29924         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
29925         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
29927         strerror_r: avoid compiler warning
29928         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
29930         strerror_r: simplify AIX code
29931         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
29933         test-perror: avoid spurious failure on FreeBSD
29934         * modules/perror-tests (Depends-on): Add strerror, now that
29935         strerror_r no longer pulls it in.
29937 2011-05-20  Bruno Haible  <bruno@clisp.org>
29939         strerror_r-posix: Remove unused dependencies.
29940         * modules/strerror_r-posix (Depends-on): Remove strerror.
29941         Reported by Eric Blake.
29943 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
29945         intprops: remove assumption about A|B representation
29946         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
29947         is a valid integer if both A and B are.  Although this is true for
29948         all known practical hosts, the C standard doesn't guarantee it,
29949         and the code need not assume it.  Also, this change may work around
29950         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
29951         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
29953 2011-05-20  Eric Blake  <eblake@redhat.com>
29955         perror: work around FreeBSD bug
29956         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
29957         is broken.  Move AC_LIBOBJ...
29958         * modules/perror (configure.ac): Here.
29959         * doc/posix-functions/perror.texi (perror): Document this.
29960         * tests/test-perror2.c (main): Enhance test.
29962         test-perror: check for strerror interactions
29963         * tests/macros.h (STREQ): Add macro.
29964         * modules/perror-tests (Files): Add second test.
29965         * tests/test-perror2.c (main): New file.
29966         * doc/posix-functions/perror.texi (perror): Document glibc bug.
29968         test-perror: rewrite to use init script
29969         * modules/perror-tests (Files): Add init.sh.
29970         * tests/test-perror.sh: Use temporary directory.
29972 2011-05-20  Jim Meyering  <meyering@redhat.com>
29974         maint: replace misused "a" with "an"
29975         * doc/intprops.texi: "a integer"
29976         * doc/regex.texi: "a explanation"
29977         * lib/alignof.h: "a object"
29978         * lib/argmatch.h: "a explanation"
29979         * lib/argp-help.c: "a option" and "a OPTION_DOC"
29980         * lib/stdint.in.h: "a integer"
29981         * lib/userspec.c: "a owner"
29982         * doc/gnulib.texi: Fix "a idea", and reword.
29984 2011-05-19  Jim Meyering  <meyering@redhat.com>
29986         maint: correct misuse of "a" and "an"
29987         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
29988         * lib/argp-help.c: "an docum...": s/an/a/
29989         * lib/argp-parse.c: "An vector": s/An/A/
29990         * lib/execute.c: "an native": s/an/a/
29991         * lib/spawn-pipe.c: Likewise.
29992         * lib/gc.h: "an Gc_rc": s/an/a/
29993         * lib/unigbrk.in.h: "an grapheme": s/an/a/
29994         * lib/fts.c: "an stat.st_dev": s/an/a/
29996 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
29998         intprops-tests: work around HP-UX 11.23 cc bug with constants
29999         * tests/test-intprops.c (VERIFY): New macro.
30000         (main): Use it, instead of verify, to work around the compiler bug; see
30001         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
30003         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
30004         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
30005         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
30006         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
30007         (_GL_REMAINDER_OVERFLOW): Use it.
30009         intprops-tests: revert unsigned part of previous change
30010         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
30011         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
30012         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
30013         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
30015 2011-05-19  Bruno Haible  <bruno@clisp.org>
30017         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
30018         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
30019         strerror_r() returned without filling the buffer.
30020         Reported by Eric Blake.
30022 2011-05-19  Eric Blake  <eblake@redhat.com>
30024         strerror_r: guarantee unchanged errno
30025         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
30026         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
30027         failure.
30028         * tests/test-strerror_r.c (main): Enhance test.
30030 2011-05-19  Bruno Haible  <bruno@clisp.org>
30032         strerror_r: Reorder #if blocks.
30033         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
30034         for consistency with the previous commit.
30036 2011-05-19  Bruno Haible  <bruno@clisp.org>
30038         perror: Avoid clobbering the strerror buffer when possible.
30039         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
30040         * lib/strerror.c: Include it.
30041         * modules/strerror (Files): Add lib/strerror-impl.h.
30042         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
30043         (my_strerror): New function, defined through lib/strerror-impl.h.
30044         (perror): Use it instead of strerror.
30045         * modules/perror (Files): Add lib/strerror-impl.h.
30046         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
30048 2011-05-19  Eric Blake  <eblake@redhat.com>
30050         strerror_r: fix on newer cygwin
30051         * lib/strerror_r.c (strerror_r): Cygwin now has
30052         __xpg_strerror_r, use it.
30054 2011-05-19  Bruno Haible  <bruno@clisp.org>
30056         strerror_r: Avoid clobbering the strerror buffer when possible.
30057         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
30058         (sys_nerr, sys_errlist): New declarations.
30059         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
30060         HP-UX, native Win32, IRIX, and 32-bit Solaris.
30061         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
30063 2011-05-19  Bruno Haible  <bruno@clisp.org>
30065         strerror_r: Fix test failure on mingw.
30066         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
30067         EXTEND_STRERROR_R.
30068         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
30069         macros from errno.in.h instead.
30071 2011-05-19  Eric Blake  <eblake@redhat.com>
30073         strerror: relax test for Solaris
30074         * tests/test-strerror.c (main): Permit Solaris behavior.
30075         * tests/test-strerror_r.c (main): Likewise.
30077         strerror: enforce POSIX ruling on strerror(0)
30078         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
30079         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
30080         * lib/strerror_r.c (rpl_strerror_r): Work around it.
30081         * doc/posix-functions/strerror.texi (strerror): Document it.
30082         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
30083         * tests/test-strerror.c (main): Strengthen test.
30084         * tests/test-strerror_r.c (main): Likewise.
30086 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
30088         intprop-tests: port to older and more-pedantic compilers
30089         * modules/intprops-tests (Files): Add tests/macros.h.
30090         * tests/test-intprops.c: Include macros.h.
30091         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
30092         it's no longer documented to expand to an integer constant expression.
30093         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
30094         argument is floating point, as it's no longer documented to expand
30095         to an integer constant expression in that case.
30096         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
30097         compiler bugs reported by Bruno Haible.  See
30098         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
30099         (U0, U1): New constants, to work around the same bugs.  Also,
30100         in tests, use e.g., "(unsigned int) 39" rather than "39u".
30102         intprops: work around C compiler bugs
30103         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
30104         bug in Sun C 5.11 2010/08/13 and other compilers; see
30105         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
30107         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
30108         * doc/intprops.texi (Integer Type Determination): Fix
30109         documentation for TYPE_IS_INTEGER: it returns an constant
30110         expression, not an integer constant expression.  Fix doc for
30111         TYPE_SIGNED: it returns an integer constant expression only if its
30112         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
30113         hardly worth documented that way....)
30115 2011-05-18  Bruno Haible  <bruno@clisp.org>
30117         strerror_r: Avoid clobbering the strerror buffer when possible.
30118         * lib/strerror_r.c (strerror_r): Merge the three implementations.
30119         Handle gnulib defined errno values here. When strerror() returns NULL
30120         or an empty string, return EINVAL.
30121         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
30122         gnulib defined errno values here.
30123         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
30125 2011-05-18  Eric Blake  <eblake@redhat.com>
30127         fnmatch: avoid compiler warning
30128         * lib/fnmatch_loop.c (FCT): Use correct type.
30129         Reported by Matthias Bolte.
30131 2011-05-13  Jim Meyering  <meyering@redhat.com>
30133         maint.mk: three new prohibit_<HDR>_without_use rules
30134         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
30135         (sc_prohibit_stdio-safer_without_use): Likewise.
30136         (sc_prohibit_xfreopen_without_use): Likewise.
30138 2011-05-17  Jim Meyering  <meyering@redhat.com>
30140         announce-gen: fail if the NEWS delta is empty
30141         If there's nothing noteworthy in NEWS, then either you forgot
30142         or you shouldn't be releasing.
30143         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
30145 2011-05-17  Pádraig Brady <P@draigBrady.com>
30147         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
30148         reserved symbols starting with double underscore from the check.
30150 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
30152         intprops: add doc
30153         * doc/intprops.texi: New file, documenting intprops.
30154         * doc/gnulib.texi (Particular Modules): Include it.
30156         verify: add doc to gnulib manual and fix example
30157         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
30158         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
30159         (Compile-time Assertions): Fix example so it can't overflow.
30161 2011-05-17  Jim Meyering  <meyering@redhat.com>
30163         warnings.m4: don't usurp save_CPPFLAGS variable name
30164         * m4/warnings.m4: Prefix local temporary variable name with gl_.
30166         doc: fix typo
30167         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
30169 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
30170             Bruno Haible  <bruno@clisp.org>
30172         doc: Tweak recent change.
30173         * README (Portability guidelines): Tweak new text.
30174         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
30175         Interix 6.1.
30177 2011-05-16  Eric Blake  <eblake@redhat.com>
30179         inttypes: avoid autoconf warning
30180         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
30181         * m4/stdint.m4 (gl_STDINT_H): Likewise.
30183 2011-05-16  Sam Steingold <sds@gnu.org>
30184         and Eric Blake  <eblake@redhat.com>
30186         vc-list-files: accept multiple directory operands
30187         * build-aux/vc-list-files: Iterate over all remaining operands.
30189 2011-05-16  Bruno Haible  <bruno@clisp.org>
30191         Fix confusion regarding deprecated modules.
30192         * modules/calloc (Status, Notice): Mark module as deprecated, not
30193         obsolete.
30194         * modules/fnmatch-posix (Status, Notice): Likewise.
30195         * modules/getdate (Status, Notice): Likewise.
30196         * modules/getopt (Status, Notice): Likewise.
30197         * modules/malloc (Status, Notice): Likewise.
30198         * modules/pipe (Status, Notice): Likewise.
30199         * modules/realloc (Status, Notice): Likewise.
30200         * modules/rename-dest-slash (Status, Notice): Likewise.
30201         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
30202         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
30203         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
30204         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
30205         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
30207 2011-05-16  Bruno Haible  <bruno@clisp.org>
30209         doc: List the target platforms.
30210         * doc/gnulib-intro.texi (Target Platforms): New section.
30211         * doc/gnulib.texi (Introduction): Update menu.
30212         * README (Portability guidelines): Refer to the new section. Update
30213         statement about oldest supported environment. Remove rationale why
30214         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
30215         unportable C89 function.
30216         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
30217         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
30219 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
30221         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
30223 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
30225         intprops-tests: new module
30226         * modules/intprops-tests, tests/test-intprops.c: New files.
30228         intprops: add safe, portable integer overflow checking
30229         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
30230         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
30231         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
30232         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
30233         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
30234         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
30235         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
30236         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
30237         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
30238         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
30239         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
30241 2011-05-12  James Youngman  <jay@gnu.org>
30243         Add a test for glibc's Bugzilla bug #12378.
30244         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
30245         doesn't allow the literal matching of a lone "[" (which is
30246         required by POSIX).
30247         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
30249 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
30251         Sync glibc change fixing Bugzilla bug #12378.
30252         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
30253         beginning and fall back to matching as normal character if the
30254         string ends before the matching ']' is found.  This is what POSIX
30255         requires.
30257 2011-05-13  Eric Blake  <eblake@redhat.com>
30259         getcwd-lgpl: relax test for FreeBSD
30260         * doc/posix-functions/getcwd.texi (getcwd): Document portability
30261         issue.
30262         * tests/test-getcwd-lgpl.c (main): Relax test.
30263         Reported by Matthias Bolte.
30265 2011-05-11  Eric Blake  <eblake@redhat.com>
30267         test-fflush: silence compiler warning
30268         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
30270 2011-05-11  Bruno Haible  <bruno@clisp.org>
30272         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
30273         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
30274         * modules/canonicalize (Depends-on): Add 'nocrash'.
30275         * modules/canonicalize-lgpl (Depends-on): Likewise.
30276         * doc/posix-functions/realpath.texi: Update platforms list.
30277         Reported by Ryan Schmidt <ryandesign@macports.org>.
30279 2011-05-11  Bruno Haible  <bruno@clisp.org>
30281         group-member: Declare function in <unistd.h>.
30282         * lib/unistd.in.h (group_member): New declaration.
30283         * lib/group-member.h: Remove file.
30284         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
30285         * tests/test-unistd-c++.cc: Check signature of group_member.
30286         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
30287         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
30288         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
30289         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
30290         HAVE_GROUP_MEMBER.
30291         * modules/group-member (Files): Remove lib/group-member.h.
30292         (Depends-on): Add unistd. Specify conditions.
30293         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
30294         (Include): Change to <unistd.h>.
30295         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
30296         HAVE_GROUP_MEMBER.
30297         * NEWS: Mention the change.
30298         * lib/euidaccess.c: Don't include group-member.h.
30300 2011-05-11  Bruno Haible  <bruno@clisp.org>
30302         group-member: Document module.
30303         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
30304         module.
30306 2011-05-11  Bruno Haible  <bruno@clisp.org>
30308         fclose: Fix mistake earlier today.
30309         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
30311 2011-05-11  Eric Blake  <eblake@redhat.com>
30313         fclose: preserve fflush errors
30314         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
30315         Reported by Jim Meyering.
30317         bootstrap: support a prereq of 'rpcgen -' on RHEL5
30318         * build-aux/bootstrap (check_versions): When no specific version
30319         is required, merely check that the app produces an exit status
30320         that indicates its existence.
30322         maint.mk: drop redundant check
30323         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
30324         the same but better.
30326 2011-05-11  Bruno Haible  <bruno@clisp.org>
30328         fclose: Fix possible link error.
30329         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
30330         unregister_shadow_fd. Improve comments.
30331         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
30332         Eric Blake.
30334 2011-05-11  Jim Meyering  <meyering@redhat.com>
30336         maint.mk: improve "can not" detection and generalize rule name
30337         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
30338         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
30339         Use the same technique as in sc_prohibit_doubled_word, so that
30340         we recognize "can not" also when the words are separated by a newline.
30341         Suggested by Eric Blake.
30342         (perl_filename_lineno_text_): Define.  Factored out of...
30343         (prohibit_doubled_word_): ...here.  Use the new definition.
30344         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
30345         (prohibit_undesirable_word_seq_RE_): New overridable variable.
30346         (ignore_undesirable_word_sequence_RE_): New overridable variable.
30348 2011-05-10  Eric Blake  <eblake@redhat.com>
30350         fclose: avoid double close race when possible
30351         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
30352         all but WINDOWS_SOCKETS.
30354 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
30356         openat: correct new comment
30357         * lib/openat-proc.c (openat_proc_name): Correct the comment.
30359 2011-05-10  Jim Meyering  <meyering@redhat.com>
30361         openat: add comments
30362         * lib/openat-proc.c (openat_proc_name): Add comments,
30363         mostly from Eric Blake.
30365 2011-05-09  Eric Blake  <eblake@redhat.com>
30367         openat: reduce syscalls in first probe of /proc
30368         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
30369         be a directory.  Simplify the probe for .. bugs.
30370         * modules/openat (Depends-on): Drop same-inode.
30371         Reported by Bastien ROUCARIES.
30373 2011-05-09  Jim Meyering  <meyering@redhat.com>
30375         maint.mk: change semantics/name of tight_scope variables
30376         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
30377         Rename variables to align with semantics that make them more useful.
30379         maint.mk: tweak new rule's name not to impinge
30380         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
30381         (sc_tight_scope): Use new rule name rather than $@-0.
30383         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
30384         * top/maint.mk (sc_tight_scope): New rule.
30385         (sc_tight_scope-0): New rule, ifdef'd out.
30386         (_gl_TS_dir): Default.
30387         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
30388         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
30390 2011-05-09  Simon Josefsson  <simon@josefsson.org>
30392         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
30393         Haible <bruno@clisp.org>.
30395 2011-05-08  Bruno Haible  <bruno@clisp.org>
30397         Comments.
30398         * m4/isnanf.m4: Add comment.
30399         * m4/isnanl.m4: Likewise.
30401 2011-05-08  Bruno Haible  <bruno@clisp.org>
30403         glob: Remove obsolete macro.
30404         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
30406 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
30408         intprops: Sun C 5.11 supports __typeof__
30409         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
30410         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
30411         which is new.
30412         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
30414         intprops: switch to usual gnulib indenting and naming
30415         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
30416         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
30418         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
30420 2011-05-08  Jim Meyering  <meyering@redhat.com>
30422         maint.mk: suppress "Entering/Leaving directory" diag in announcement
30423         * top/maint.mk (release-prep): Use make's --no-print-directory
30424         option when generating the announcement.  This eliminates the
30425         pesky "make[2]: Entering/Leaving directory" diagnostics in the
30426         generated announcement template.
30428 2011-05-08  Bruno Haible  <bruno@clisp.org>
30430         tzset: Fix gettimeofday wrapper on Solaris 2.6.
30431         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
30432         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
30434 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
30436         ignore-value, verify: Omit include files from lib_SOURCES.
30437         * modules/ignore-value, modules/verify (Makefile.am):
30438         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
30439         that leads Automake to duplicate use of am__objects_... variables
30440         in Makefile.in.  See
30441         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
30443 2011-05-07  Bruno Haible  <bruno@clisp.org>
30445         fclose: Simplify autoconf macro.
30446         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
30447         defined.
30449 2011-05-07  Bruno Haible  <bruno@clisp.org>
30451         canonicalize-lgpl: Fix autoconf macro ordering bug.
30452         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
30453         gl_STDLIB_H_DEFAULTS.
30455 2011-05-06  Eric Blake  <eblake@redhat.com>
30457         maintainer-makefile: make sc_po_check easier to tune
30458         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
30459         to probe for strings, such as an alternate location for gnulib.
30461         fclose: guarantee behavior on seekable stdin
30462         * modules/fclose (Depends-on): Add fflush.
30463         * doc/posix-functions/fclose.texi (fclose): Document this.
30464         * tests/test-fclose.c (main): Make test for this unconditional.
30466 2011-05-06  Bruno Haible  <bruno@clisp.org>
30468         fflush, fpurge: Relicense under LGPLv2+.
30469         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
30470         * modules/fpurge (License): Likewise.
30471         With permission from Eric Blake and Jim Meyering.
30472         Suggested by Eric Blake.
30474 2011-05-06  Karl Berry  <karl@gnu.org>
30476         * MODULES.html.sh (func_all_modules): remove exit.
30478 2011-05-06  Jim Meyering  <meyering@redhat.com>
30480         maint.mk: use info-gnu@ as the default only for a stable release
30481         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
30482         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
30483         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
30484         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
30486 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
30488         assert-h: new module, which supports C1X-style static_assert
30489         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
30490         * lib/verify.h: Revamp so that this can be copied into assert.h,
30491         while retaining the ability to use it standalone as before.
30492         Rename private identifiers so as not to encroach on the
30493         standard C namespace, since this is now used by assert.h.
30494         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
30495         the old verify_true.
30496         (_GL_VERIFY_TRUE): New macro, with much of the contents of
30497         the old verify_true.  Use _GL_VERIFY_TYPE.
30498         (_GL_VERIFY): New macro, with much of the contents of the old verify.
30499         (static_assert): New macro, if _GL_STATIC_ASSERT_H
30500         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
30501         defined when this file is copied into the replacement assert.h.
30502         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
30503         and _Static_assert is not built in.
30504         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
30505         defined, and use the new macros mentioned above.
30506         * doc/posix-headers/assert.texi: Document this.
30508 2011-05-05  Bruno Haible  <bruno@clisp.org>
30510         fclose, fflush: Respect rules for use of AC_LIBOBJ.
30511         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
30512         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
30513         gl_REPLACE_FCLOSE here.
30514         * modules/fflush (Depends-on): Remove fclose.
30515         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
30516         combination with module 'fclose'.
30518 2011-05-05  Bruno Haible  <bruno@clisp.org>
30520         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
30521         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
30522         gl_FUNC_FFLUSH.
30523         (gl_FUNC_FFLUSH): Use it.
30524         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
30525         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
30526         gl_REPLACE_FSEEKO here.
30528 2011-05-05  Bruno Haible  <bruno@clisp.org>
30530         tzset: Relicense under LGPL.
30531         * modules/tzset (License): Change to LGPL.
30532         No agreement needed; it's a no-op.
30534         strtoimax, strtoumax: Relicense under LGPL.
30535         * modules/strtoimax (License): Change to LGPL.
30536         * modules/strtoumax (License): Likewise.
30537         With permission from Jim Meyering, Paul Eggert:
30538         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
30539         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
30541         getgroups: Relicense under LGPL.
30542         * modules/getgroups (License): Change to LGPL.
30543         With permission from Jim Meyering, Paul Eggert, Eric Blake:
30544         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
30545         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
30546         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
30548         nanosleep: Relicense under LGPL.
30549         * modules/nanosleep (License): Change to LGPL.
30550         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
30551         Haible:
30552         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
30553         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
30554         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
30555         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
30557         futimens: Relicense under LGPL.
30558         * modules/futimens (License): Change to LGPL.
30559         With permission from Eric Blake:
30560         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
30562         fflush: Relicense under LGPL.
30563         * modules/fflush (License): Change to LGPL.
30564         With permission from Eric Blake, Bruno Haible, Jim Meyering:
30565         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
30566         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
30567         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
30569         tmpfile: Relicense under LGPL.
30570         * modules/tmpfile (License): Change to LGPL.
30571         With permission from Ben Pfaff:
30572         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
30574         isfinite: Relicense under LGPL.
30575         * modules/isfinite (License): Change to LGPL.
30576         With permission from Ben Pfaff, Bruno Haible:
30577         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
30578         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
30580         acosl..tanl: Relicense under LGPL.
30581         * modules/acosl (License): Change to LGPL.
30582         * modules/asinl (License): Likewise.
30583         * modules/atanl (License): Likewise.
30584         * modules/cosl (License): Likewise.
30585         * modules/expl (License): Likewise.
30586         * modules/logl (License): Likewise.
30587         * modules/sinl (License): Likewise.
30588         * modules/sqrtl (License): Likewise.
30589         * modules/tanl (License): Likewise.
30590         Source code originally from glibc and Paolo Bonzini. Agreements:
30591         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
30592         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
30594 2011-05-05  Bruno Haible  <bruno@clisp.org>
30596         signal: Define sighandler_t.
30597         * lib/signal.in.h (sighandler_t): New type.
30598         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
30599         whether sighandler_t is defined.
30600         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
30601         * modules/signal (Depends-on): Add extensions.
30602         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
30603         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
30604         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
30606 2011-05-05  Eric Blake  <eblake@redhat.com>
30608         maint: remove useless REPLACE_*_H macros
30609         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
30610         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
30611         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
30612         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
30613         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
30614         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
30615         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
30616         * m4/btowc.m4: Update callers.
30617         * m4/dirfd.m4: Likewise.
30618         * m4/duplocale.m4: Likewise.
30619         * m4/fchdir.m4: Likewise.
30620         * m4/fdopendir.m4: Likewise.
30621         * m4/inet_ntop.m4: Likewise.
30622         * m4/inet_pton.m4: Likewise.
30623         * m4/ioctl.m4: Likewise.
30624         * m4/mbrlen.m4: Likewise.
30625         * m4/mbrtowc.m4: Likewise.
30626         * m4/mbsinit.m4: Likewise.
30627         * m4/mbsnrtowcs.m4: Likewise.
30628         * m4/mbsrtowcs.m4: Likewise.
30629         * m4/poll.m4: Likewise.
30630         * m4/setlocale.m4: Likewise.
30631         * m4/wcrtomb.m4: Likewise.
30632         * m4/wcsnrtombs.m4: Likewise.
30633         * m4/wcsrtombs.m4: Likewise.
30634         * m4/wctob.m4: Likewise.
30635         * m4/wcwidth.m4: Likewise.
30636         * modules/posix_spawn: Likewise.
30637         * modules/posix_spawn_file_actions_addclose: Likewise.
30638         * modules/posix_spawn_file_actions_adddup2: Likewise.
30639         * modules/posix_spawn_file_actions_addopen: Likewise.
30640         * modules/posix_spawn_file_actions_destroy: Likewise.
30641         * modules/posix_spawn_file_actions_init: Likewise.
30642         * modules/posix_spawnattr_destroy: Likewise.
30643         * modules/posix_spawnattr_getflags: Likewise.
30644         * modules/posix_spawnattr_getpgroup: Likewise.
30645         * modules/posix_spawnattr_getschedparam: Likewise.
30646         * modules/posix_spawnattr_getschedpolicy: Likewise.
30647         * modules/posix_spawnattr_getsigdefault: Likewise.
30648         * modules/posix_spawnattr_getsigmask: Likewise.
30649         * modules/posix_spawnattr_init: Likewise.
30650         * modules/posix_spawnattr_setflags: Likewise.
30651         * modules/posix_spawnattr_setpgroup: Likewise.
30652         * modules/posix_spawnattr_setschedparam: Likewise.
30653         * modules/posix_spawnattr_setschedpolicy: Likewise.
30654         * modules/posix_spawnattr_setsigdefault: Likewise.
30655         * modules/posix_spawnattr_setsigmask: Likewise.
30656         * modules/posix_spawnp: Likewise.
30658 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
30660         Add option to do-release-commit-and-tag to specify branch.
30661         * build-aux/do-release-commit-and-tag: Add --branch.
30663 2011-05-03  Bruno Haible  <bruno@clisp.org>
30665         Avoid unnecessary compilation units, through conditional dependencies.
30666         * modules/accept (Depends-on): Add conditions to the dependencies.
30667         * modules/acosl (Depends-on): Likewise.
30668         * modules/argz (Depends-on): Likewise.
30669         * modules/asinl (Depends-on): Likewise.
30670         * modules/atanl (Depends-on): Likewise.
30671         * modules/atoll (Depends-on): Likewise.
30672         * modules/bind (Depends-on): Likewise.
30673         * modules/btowc (Depends-on): Likewise.
30674         * modules/canonicalize-lgpl (Depends-on): Likewise.
30675         * modules/ceil (Depends-on): Likewise.
30676         * modules/ceilf (Depends-on): Likewise.
30677         * modules/ceill (Depends-on): Likewise.
30678         * modules/chdir-long (Depends-on): Likewise.
30679         * modules/chown (Depends-on): Likewise.
30680         * modules/close (Depends-on): Likewise.
30681         * modules/connect (Depends-on): Likewise.
30682         * modules/cosl (Depends-on): Likewise.
30683         * modules/dirfd (Depends-on): Likewise.
30684         * modules/dprintf (Depends-on): Likewise.
30685         * modules/dprintf-posix (Depends-on): Likewise.
30686         * modules/error (Depends-on): Likewise.
30687         * modules/euidaccess (Depends-on): Likewise.
30688         * modules/expl (Depends-on): Likewise.
30689         * modules/faccessat (Depends-on): Likewise.
30690         * modules/fchdir (Depends-on): Likewise.
30691         * modules/fclose (Depends-on): Likewise.
30692         * modules/fcntl (Depends-on): Likewise.
30693         * modules/fdopendir (Depends-on): Likewise.
30694         * modules/fflush (Depends-on): Likewise.
30695         * modules/floor (Depends-on): Likewise.
30696         * modules/floorf (Depends-on): Likewise.
30697         * modules/floorl (Depends-on): Likewise.
30698         * modules/fnmatch (Depends-on): Likewise.
30699         * modules/fopen (Depends-on): Likewise.
30700         * modules/fprintf-posix (Depends-on): Likewise.
30701         * modules/frexp (Depends-on): Likewise.
30702         * modules/frexp-nolibm (Depends-on): Likewise.
30703         * modules/frexpl (Depends-on): Likewise.
30704         * modules/frexpl-nolibm (Depends-on): Likewise.
30705         * modules/fseek (Depends-on): Likewise.
30706         * modules/fsusage (Depends-on): Likewise.
30707         * modules/ftell (Depends-on): Likewise.
30708         * modules/ftello (Depends-on): Likewise.
30709         * modules/futimens (Depends-on): Likewise.
30710         * modules/getcwd (Depends-on): Likewise.
30711         * modules/getcwd-lgpl (Depends-on): Likewise.
30712         * modules/getdelim (Depends-on): Likewise.
30713         * modules/getdomainname (Depends-on): Likewise.
30714         * modules/getgroups (Depends-on): Likewise.
30715         * modules/gethostname (Depends-on): Likewise.
30716         * modules/getline (Depends-on): Likewise.
30717         * modules/getlogin_r (Depends-on): Likewise.
30718         * modules/getopt-posix (Depends-on): Likewise.
30719         * modules/getpeername (Depends-on): Likewise.
30720         * modules/getsockname (Depends-on): Likewise.
30721         * modules/getsockopt (Depends-on): Likewise.
30722         * modules/getsubopt (Depends-on): Likewise.
30723         * modules/getusershell (Depends-on): Likewise.
30724         * modules/glob (Depends-on): Likewise.
30725         * modules/grantpt (Depends-on): Likewise.
30726         * modules/iconv_open (Depends-on): Likewise.
30727         * modules/iconv_open-utf (Depends-on): Likewise.
30728         * modules/inet_ntop (Depends-on): Likewise.
30729         * modules/inet_pton (Depends-on): Likewise.
30730         * modules/ioctl (Depends-on): Likewise.
30731         * modules/isapipe (Depends-on): Likewise.
30732         * modules/isfinite (Depends-on): Likewise.
30733         * modules/isinf (Depends-on): Likewise.
30734         * modules/lchown (Depends-on): Likewise.
30735         * modules/ldexpl (Depends-on): Likewise.
30736         * modules/link (Depends-on): Likewise.
30737         * modules/linkat (Depends-on): Likewise.
30738         * modules/listen (Depends-on): Likewise.
30739         * modules/logl (Depends-on): Likewise.
30740         * modules/lstat (Depends-on): Likewise.
30741         * modules/mbrlen (Depends-on): Likewise.
30742         * modules/mbrtowc (Depends-on): Likewise.
30743         * modules/mbsinit (Depends-on): Likewise.
30744         * modules/mbsnrtowcs (Depends-on): Likewise.
30745         * modules/mbsrtowcs (Depends-on): Likewise.
30746         * modules/mbtowc (Depends-on): Likewise.
30747         * modules/memcmp (Depends-on): Likewise.
30748         * modules/mkdir (Depends-on): Likewise.
30749         * modules/mkdtemp (Depends-on): Likewise.
30750         * modules/mkfifo (Depends-on): Likewise.
30751         * modules/mkfifoat (Depends-on): Likewise.
30752         * modules/mknod (Depends-on): Likewise.
30753         * modules/mkostemp (Depends-on): Likewise.
30754         * modules/mkostemps (Depends-on): Likewise.
30755         * modules/mkstemp (Depends-on): Likewise.
30756         * modules/mkstemps (Depends-on): Likewise.
30757         * modules/mktime (Depends-on): Likewise.
30758         * modules/nanosleep (Depends-on): Likewise.
30759         * modules/open (Depends-on): Likewise.
30760         * modules/openat (Depends-on): Likewise.
30761         * modules/perror (Depends-on): Likewise.
30762         * modules/poll (Depends-on): Likewise.
30763         * modules/popen (Depends-on): Likewise.
30764         * modules/posix_spawn (Depends-on): Likewise.
30765         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
30766         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
30767         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
30768         * modules/posix_spawnp (Depends-on): Likewise.
30769         * modules/pread (Depends-on): Likewise.
30770         * modules/printf-posix (Depends-on): Likewise.
30771         * modules/ptsname (Depends-on): Likewise.
30772         * modules/putenv (Depends-on): Likewise.
30773         * modules/pwrite (Depends-on): Likewise.
30774         * modules/readline (Depends-on): Likewise.
30775         * modules/readlink (Depends-on): Likewise.
30776         * modules/readlinkat (Depends-on): Likewise.
30777         * modules/recv (Depends-on): Likewise.
30778         * modules/recvfrom (Depends-on): Likewise.
30779         * modules/regex (Depends-on): Likewise.
30780         * modules/remove (Depends-on): Likewise.
30781         * modules/rename (Depends-on): Likewise.
30782         * modules/renameat (Depends-on): Likewise.
30783         * modules/rmdir (Depends-on): Likewise.
30784         * modules/round (Depends-on): Likewise.
30785         * modules/roundf (Depends-on): Likewise.
30786         * modules/roundl (Depends-on): Likewise.
30787         * modules/rpmatch (Depends-on): Likewise.
30788         * modules/select (Depends-on): Likewise.
30789         * modules/send (Depends-on): Likewise.
30790         * modules/sendto (Depends-on): Likewise.
30791         * modules/setenv (Depends-on): Likewise.
30792         * modules/setlocale (Depends-on): Likewise.
30793         * modules/setsockopt (Depends-on): Likewise.
30794         * modules/shutdown (Depends-on): Likewise.
30795         * modules/sigaction (Depends-on): Likewise.
30796         * modules/signbit (Depends-on): Likewise.
30797         * modules/sigprocmask (Depends-on): Likewise.
30798         * modules/sinl (Depends-on): Likewise.
30799         * modules/sleep (Depends-on): Likewise.
30800         * modules/snprintf (Depends-on): Likewise.
30801         * modules/snprintf-posix (Depends-on): Likewise.
30802         * modules/socket (Depends-on): Likewise.
30803         * modules/sprintf-posix (Depends-on): Likewise.
30804         * modules/sqrtl (Depends-on): Likewise.
30805         * modules/stat (Depends-on): Likewise.
30806         * modules/strchrnul (Depends-on): Likewise.
30807         * modules/strdup-posix (Depends-on): Likewise.
30808         * modules/strerror (Depends-on): Likewise.
30809         * modules/strerror_r-posix (Depends-on): Likewise.
30810         * modules/strndup (Depends-on): Likewise.
30811         * modules/strnlen (Depends-on): Likewise.
30812         * modules/strptime (Depends-on): Likewise.
30813         * modules/strsep (Depends-on): Likewise.
30814         * modules/strsignal (Depends-on): Likewise.
30815         * modules/strstr-simple (Depends-on): Likewise.
30816         * modules/strtod (Depends-on): Likewise.
30817         * modules/strtoimax (Depends-on): Likewise.
30818         * modules/strtok_r (Depends-on): Likewise.
30819         * modules/strtoumax (Depends-on): Likewise.
30820         * modules/symlink (Depends-on): Likewise.
30821         * modules/symlinkat (Depends-on): Likewise.
30822         * modules/tanl (Depends-on): Likewise.
30823         * modules/tcgetsid (Depends-on): Likewise.
30824         * modules/tmpfile (Depends-on): Likewise.
30825         * modules/trunc (Depends-on): Likewise.
30826         * modules/truncf (Depends-on): Likewise.
30827         * modules/truncl (Depends-on): Likewise.
30828         * modules/uname (Depends-on): Likewise.
30829         * modules/unlink (Depends-on): Likewise.
30830         * modules/unlockpt (Depends-on): Likewise.
30831         * modules/unsetenv (Depends-on): Likewise.
30832         * modules/usleep (Depends-on): Likewise.
30833         * modules/utimensat (Depends-on): Likewise.
30834         * modules/vasprintf (Depends-on): Likewise.
30835         * modules/vdprintf (Depends-on): Likewise.
30836         * modules/vdprintf-posix (Depends-on): Likewise.
30837         * modules/vfprintf-posix (Depends-on): Likewise.
30838         * modules/vprintf-posix (Depends-on): Likewise.
30839         * modules/vsnprintf (Depends-on): Likewise.
30840         * modules/vsnprintf-posix (Depends-on): Likewise.
30841         * modules/vsprintf-posix (Depends-on): Likewise.
30842         * modules/wcrtomb (Depends-on): Likewise.
30843         * modules/wcscasecmp (Depends-on): Likewise.
30844         * modules/wcscspn (Depends-on): Likewise.
30845         * modules/wcsdup (Depends-on): Likewise.
30846         * modules/wcsncasecmp (Depends-on): Likewise.
30847         * modules/wcsnrtombs (Depends-on): Likewise.
30848         * modules/wcspbrk (Depends-on): Likewise.
30849         * modules/wcsrtombs (Depends-on): Likewise.
30850         * modules/wcsspn (Depends-on): Likewise.
30851         * modules/wcsstr (Depends-on): Likewise.
30852         * modules/wcstok (Depends-on): Likewise.
30853         * modules/wcswidth (Depends-on): Likewise.
30854         * modules/wctob (Depends-on): Likewise.
30855         * modules/wctomb (Depends-on): Likewise.
30856         * modules/wctype (Depends-on): Likewise.
30857         * modules/wcwidth (Depends-on): Likewise.
30858         * modules/write (Depends-on): Likewise.
30860 2011-05-03  Bruno Haible  <bruno@clisp.org>
30862         Support for conditional dependencies.
30863         * doc/gnulib.texi (Module description): Document the syntax of
30864         conditional dependencies.
30865         * gnulib-tool: New option --conditional-dependencies.
30866         (func_usage): Document it.
30867         (cond_dependencies): New variable.
30868         (func_get_automake_snippet_conditional,
30869         func_get_automake_snippet_unconditional): New functions, extracted from
30870         func_get_automake_snippet.
30871         (func_get_automake_snippet): Use them.
30872         (sed_first_32_chars): New variable.
30873         (func_module_shellfunc_name): New function.
30874         (func_module_shellvar_name): New function.
30875         (func_module_conditional_name): New function.
30876         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
30877         func_cond_module_condition): New functions.
30878         (func_modules_transitive_closure): Add support for conditional
30879         dependencies.
30880         (func_emit_lib_Makefile_am): For a conditional module, enclose the
30881         conditional automake snippet in an automake conditional.
30882         (func_emit_autoconf_snippets): Emit shell functions that contain the
30883         code for conditional modules.
30884         (func_import, func_create_testdir): Update specification.
30886 2011-05-03  Eric Blake  <eblake@redhat.com>
30888         test-getaddrinfo: report error information
30889         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
30891 2011-05-03  Jim Meyering  <meyering@redhat.com>
30893         bootstrap: avoid build failure when $GZIP is set
30894         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
30895         program name.  If defined at all, it is supposed to list gzip options.
30896         Reported by Alan Curry in http://debbugs.gnu.org/8609
30898 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
30900         readme-release: new module with release instructions
30901         * modules/readme-release: New module.
30902         * top/README-release: New file, from coreutils, grep, diffutils.
30903         * MODULES.html.sh (Support for maintaining and releasing): Add it.
30905 2011-05-02  Eric Blake  <eblake@redhat.com>
30907         fflush: also replace fclose when fixing fflush
30908         * modules/fflush (Depends-on): Add fclose.
30909         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
30910         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
30911         memstreams with no backing fd.
30912         * doc/posix-functions/fclose.texi (fclose): Document the use of
30913         fflush module to fix the bug.
30914         * tests/test-fclose.c (main): Relax test when fclose is used in
30915         isolation.
30917         fclose: add some tests
30918         * modules/fclose-tests: New test module.
30919         * tests/test-fclose.c: New file.
30920         * doc/posix-functions/fclose.texi (fclose): Document the bug.
30922         fclose: reduced dependencies
30923         * modules/fclose (Depends-on): Switch from fflush/fseeko to
30924         simpler lseek.
30925         * lib/fclose.c (rpl_fclose): Likewise.
30926         Reported by Simon Josefsson.
30928         exit: drop remaining clients
30929         * modules/argmatch (Depends-on): Replace exit with stdlib.
30930         * modules/copy-file (Depends-on): Likewise.
30931         * modules/execute (Depends-on): Likewise.
30932         * modules/exitfail (Depends-on): Likewise.
30933         * modules/obstack (Depends-on): Likewise.
30934         * modules/pagealign_alloc (Depends-on): Likewise.
30935         * modules/pipe-filter-gi (Depends-on): Likewise.
30936         * modules/pipe-filter-ii (Depends-on): Likewise.
30937         * modules/savewd (Depends-on): Likewise.
30938         * modules/spawn-pipe (Depends-on): Likewise.
30939         * modules/wait-process (Depends-on): Likewise.
30940         * modules/xsetenv (Depends-on): Likewise.
30941         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
30942         * modules/git-merge-changelog (Depends-on): Likewise.
30943         * modules/long-options (Depends-on): Likewise.
30944         * modules/pt_chown (Depends-on): Likewise.
30945         * modules/sysexits (Depends-on): Likewise.
30947         freading: relax license from LGPLv3+ to LGPLv2+
30948         * modules/freading (License): Relax LGPL version.
30950 2011-05-02  Bruno Haible  <bruno@clisp.org>
30952         fchdir: Remove unused dependencies.
30953         * modules/fchdir (Depends-on): Remove include_next.
30955 2011-05-02  Bruno Haible  <bruno@clisp.org>
30957         gnulib-tool: Refactor.
30958         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
30959         from func_emit_autoconf_snippets.
30960         (func_emit_autoconf_snippets): Use it.
30962 2011-05-02  Simon Josefsson  <simon@josefsson.org>
30964         * NEWS: Document removal of 'exit'.
30965         * modules/exit: Remove file.
30967 2011-05-01  Bruno Haible  <bruno@clisp.org>
30969         Update DEPENDENCIES.
30970         * DEPENDENCIES (gettext): Recommend the newest release.
30971         Reported by Simon Josefsson.
30973 2011-05-01  Bruno Haible  <bruno@clisp.org>
30975         gnulib-tool: Reduce code duplication.
30976         * gnulib-tool (func_emit_autoconf_snippets): New function.
30977         (func_import, func_create_testdir): Use it.
30979 2011-04-30  Eric Blake  <eblake@redhat.com>
30981         fclose: don't fail on non-seekable input stream
30982         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
30983         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
30984         since fflush is allowed to fail in that case.
30986 2011-04-30  Bruno Haible  <bruno@clisp.org>
30988         dup3: cleanup
30989         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
30991 2011-04-30  Bruno Haible  <bruno@clisp.org>
30993         netdb: Make it work in C++ mode.
30994         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
30995         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
30996         module.
30997         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
30998         gl_MODULE_INDICATOR_FOR_TESTS.
30999         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
31000         * modules/netdb-c++-tests: New file.
31001         * tests/test-netdb-c++.cc: New file.
31003 2011-04-30  Bruno Haible  <bruno@clisp.org>
31005         New modules 'vfscanf', 'vscanf'.
31006         * modules/vfscanf: New file.
31007         * modules/vscanf: New file.
31008         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
31009         here.
31010         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
31011         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
31013 2011-04-30  Bruno Haible  <bruno@clisp.org>
31015         passfd: Add comments.
31016         * lib/passfd.c: Add comments about platforms.
31018 2011-04-30  Bruno Haible  <bruno@clisp.org>
31020         sys_uio: Make <sys/uio.h> self-contained.
31021         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
31022         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
31024 2011-04-30  Bruno Haible  <bruno@clisp.org>
31026         sys_socket: Ensure 'struct iovec' definition.
31027         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
31028         <sys/socket.h>.
31029         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
31031 2011-04-30  Bruno Haible  <bruno@clisp.org>
31033         sys_uio: Protect definition of 'struct iovec'.
31034         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
31035         it as a C struct.
31037 2011-04-30  Bruno Haible  <bruno@clisp.org>
31039         manywarnings: fix indentation
31040         * m4/manywarnings.m4: Indent by 2 spaces consistently.
31042 2011-04-30  Pádraig Brady <P@draigBrady.com>
31044         manywarnings: add -Wno-missing-field-initializers if needed.
31045         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
31046         option if it's needed to allow initialization with { 0, }
31048 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
31050         announce-gen: cosmetic improvement
31051         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
31053 2011-04-29  Jim Meyering  <meyering@redhat.com>
31055         vc-list-files: indent with spaces, not TABs
31056         * build-aux/vc-list-files: Convert leading TABs to spaces,
31057         to match the style of most other files in gnulib.
31059         announce-gen: indent with spaces, not TABs
31060         * build-aux/announce-gen: Convert all TABs to spaces, to match
31061         the style of most other files in gnulib.
31063 2011-04-29  Eric Blake  <eblake@redhat.com>
31065         quotearg: avoid uninitialized variable use
31066         * lib/quotearg.c (quoting_options_from_style): Initialize
31067         remaining fields, and ensure that custom styles are only used via
31068         quoting_options rather than quoting_style.
31070 2011-04-29  Jim Meyering  <meyering@redhat.com>
31072         maint.mk: remove unused VC-tag variable
31073         * top/maint.mk (VC-tag): Remove unused variable.
31075 2011-04-29  Bruno Haible  <bruno@clisp.org>
31077         netdb: fix gai_strerror replacements
31078         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
31079         * modules/netdb: Substitute it.
31081 2011-04-29  Jim Meyering  <meyering@redhat.com>
31083         test-getcwd.c: avoid new set-but-not-used warning
31084         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
31085         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
31086         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
31087         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
31089         test-hash.c: avoid a new shadowing warning
31090         * tests/test-hash.c (main): Don't shadow "dup".
31092 2011-04-28  Eric Blake  <eblake@redhat.com>
31094         getaddrinfo: fix gai_strerror signature
31095         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
31096         and work around mingw with UNICODE defined.
31097         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
31098         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
31099         * modules/netdb (Makefile.am): Substitute it.
31100         * lib/netdb.in.h (gai_strerror): Declare replacement.
31101         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
31102         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
31103         the fix.
31105         getsockopt: avoid compiler warning
31106         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
31107         Reported by Matthias Bolte.
31109         tests: drop unused link dependency
31110         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
31111         * modules/dirent-safer-tests (Makefile.am): Likewise.
31112         * modules/fdopendir-tests (Makefile.am): Likewise.
31113         * modules/mkfifoat-tests (Makefile.am): Likewise.
31114         * modules/openat-safer-tests (Makefile.am): Likewise.
31115         * modules/openat-tests (Makefile.am): Likewise.
31116         * modules/readlinkat-tests (Makefile.am): Likewise.
31117         * modules/symlinkat-tests (Makefile.am): Likewise.
31118         * modules/linkat-tests (Makefile.am): Likewise.
31119         (Depends-on): Switch to filenamecat-lgpl.
31120         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
31121         LIBINTL.
31122         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
31123         * tests/test-linkat.c (main): Don't require xalloc.
31125         hash, mgetgroups: drop xalloc dependency
31126         * lib/hash.c (includes): Adjust includes.
31127         * lib/mgetgroups.c (includes): Likewise.
31128         (xgetgroups): Move...
31129         * lib/xgetgroups.c: ...to new file.
31130         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
31131         * modules/xgetgroups: New file, split from...
31132         * modules/mgetgroups: ...here.
31133         (Depends-on): Add xalloc-oversized.
31134         * modules/hash (Depends-on): Likewise.
31135         * modules/hash-tests (Depends-on): Drop xalloc.
31136         (test_hash_LDADD): Drop unused library.
31137         * tests/test-hash.c (main): Break xalloc dependency.
31138         (includes): Drop unused include.
31140         xalloc-oversized: new module
31141         * modules/xalloc-oversized: New module.
31142         * modules/xalloc (Depends-on): Add it.
31143         * lib/xalloc.h (xalloc_oversized): Move...
31144         * lib/xalloc-oversized.h: ...into new file.
31146         utimecmp: drop dependency on xmalloc
31147         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
31148         due to memory pressure.
31149         * modules/utimecmp (Depends-on): Drop xalloc.
31151 2011-04-27  Eric Blake  <eblake@redhat.com>
31153         getcwd: fix mingw bugs
31154         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
31155         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
31156         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
31158 2011-04-27  Bruno Haible  <bruno@clisp.org>
31160         mkstemps: Ensure declaration on MacOS X 10.5.
31161         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
31162         * doc/glibc-functions/mkstemps.texi: Document header file problem on
31163         MacOS X.
31165 2011-04-27  Bruno Haible  <bruno@clisp.org>
31167         mkstemp: More documentation.
31168         * doc/posix-functions/mkstemp.texi: Document header file problem on
31169         MacOS X.
31171 2011-04-27  Bruno Haible  <bruno@clisp.org>
31173         mkstemp: Tweak configure message when cross-compiling.
31174         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
31175         result as a guess.
31177 2011-04-27  Bruno Haible  <bruno@clisp.org>
31179         clean-temp: Clarify what it does.
31180         * lib/clean-temp.h: Add more comments.
31181         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
31182         module.
31183         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
31184         * doc/glibc-functions/mkstemps.texi: Likewise.
31185         * doc/glibc-functions/mkostemps.texi: Likewise.
31187 2011-04-27  Eric Blake  <eblake@redhat.com>
31189         fchdir: avoid extra chdir and fix test
31190         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
31191         getcwd-lgpl.
31192         * lib/fchdir.c (get_name): Any absolute name will do; it does not
31193         have to be canonical.
31194         (canonicalize_file_name): Drop unused macro.
31195         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
31197         filenamecat-lgpl: fix licence
31198         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
31199         when it was first created.
31201         linkat, renameat: add missing dependency
31202         * modules/linkat (Depends-on): Require getcwd-lgpl.
31203         * modules/renameat (Depends-on): Likewise.
31205         tests: reduce dependencies
31206         * tests/test-linkat.c (main): Use lighter-weight getcwd.
31207         * tests/test-renameat.c (main): Likewise.
31208         * modules/linkat-tests (Depends-on): Relax dependency.
31209         * modules/renameat-tests (Depends-on): Likewise.
31210         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
31211         dependency explicit.
31213         save-cwd: reduce default dependency
31214         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
31215         * lib/save-cwd.c: Update comments.
31216         * NEWS: Document the semantic change.
31218         getcwd: enhance tests
31219         * tests/test-getcwd-lgpl.c: New file, taken from...
31220         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
31221         repeat long path stress tests from m4 probe.
31222         * modules/getcwd-lgpl-tests: New module.
31223         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
31224         * m4/getcwd-abort-bug.m4: Update comment.
31225         * m4/getcwd-path-max.m4: Likewise.
31227         getcwd-lgpl: new module
31228         * modules/getcwd-lgpl: New module.
31229         * lib/getcwd-lgpl.c: New file.
31230         * doc/posix-functions/getcwd.texi (getcwd): Document it.
31231         * MODULES.html.sh (lacking POSIX:2008): Likewise.
31232         * modules/getcwd (configure.ac): Set C witness.
31233         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
31235         getcwd: tweak comments
31236         * m4/getcwd-abort-bug.m4: Fix comments.
31237         * m4/getcwd-path-max.m4: Likewise.
31238         * m4/getcwd.m4: Likewise.
31240 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
31241         and Eric Blake  <eblake@redhat.com>
31243         mkstemp: replace if system version uses wrong permissions
31244         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
31245         read/write mode bits set in file created by mkstemp.
31246         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
31248 2011-04-27  Eric Blake  <eblake@redhat.com>
31250         passfd: avoid compiler warning
31251         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
31252         Reported by Laine Stump.
31254 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
31256         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
31257         required by the NetBSD (and perhaps other 4.4BSD derived) join.
31259 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
31260         and Eric Blake  <eblake@redhat.com>
31262         mkstemp: mention clean-temp module
31263         * lib/mkstemp.c: Add comment.
31264         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
31266 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
31268         inttypes: also provide default values for 32-bit tests
31269         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
31270         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
31272 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
31274         strtoumax: remove dependency on strtoimax
31275         This is like the strtoull change of yesterday.
31276         * modules/strtoumax (Files): Add lib/strtoimax.c.
31277         (Depends-on): Remove strtoimax and add verify.
31279         inttypes-incomplete: new module
31280         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
31281         all but the PRI* and SCN* parts of gl_INTTYPES_H.
31282         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
31283         of gl_INTTYPES_H.
31284         (gl_INTTYPES_H): Rewrite in terms of these new macros.
31285         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
31286         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
31287         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
31288         * modules/strtoumax, modules/xstrtol (Depends-on):
31289         Depend on inttypes-incomplete, not inttypes.
31290         * modules/inttypes-incomplete: New module, containing the contents
31291         of the old modules/inttypes module, except that the Files: section
31292         omits m4/inttypes-pri.m4, and the configure.ac section invokes
31293         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
31294         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
31295         (Depends-on): Depend only on inttypes-incomplete.
31296         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
31298         inttypes: omit now-redundant strtoimax and strtoumax work
31299         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
31300         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
31302         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
31303         This supports apps that need pointers to strtoimax and strtoumax,
31304         and ports to HP-UX 11.00 64.bit, which has macros that expand to
31305         nonexistent functions.  See
31306         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
31307         et seq.
31308         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
31309         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
31310         a macro.
31311         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
31313 2011-04-25  Simon Josefsson  <simon@josefsson.org>
31315         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
31317 2011-04-25  Bruno Haible  <bruno@clisp.org>
31319         strtol, strtoul: Mark modules as obsolete.
31320         * modules/strtol (Status, Notice): New sections.
31321         * modules/strtoul (Status, Notice): New sections.
31323 2011-04-25  Bruno Haible  <bruno@clisp.org>
31325         strtod: Remove check for strtod, unless supporting old platforms.
31326         * modules/strtod-obsolete: New file.
31327         * m4/strtod-obsolete.m4: New file.
31328         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
31329         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
31330         * modules/strtod (Depends-on): Add strtod-obsolete.
31331         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
31333 2011-04-25  Bruno Haible  <bruno@clisp.org>
31335         strcase: Make module obsolete.
31336         * modules/strcase (Status, Notice): New sections.
31338 2011-04-25  Bruno Haible  <bruno@clisp.org>
31340         dup2: Remove check for dup2, unless supporting old obsolete platforms.
31341         * modules/dup2-obsolete: New file.
31342         * m4/dup2-obsolete.m4: New file.
31343         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
31344         gl_FUNC_DUP2_OBSOLETE is not also defined.
31345         * modules/dup2 (Depends-on): Add dup2-obsolete.
31346         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
31348 2011-04-25  Bruno Haible  <bruno@clisp.org>
31350         strnlen: Avoid memchr related link error on old obsolete platforms.
31351         * modules/memchr-obsolete: New file.
31352         * m4/memchr-obsolete.m4: New file.
31353         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
31354         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
31355         * modules/memchr (Depends-on): Add memchr-obsolete.
31356         * modules/strnlen (Depends-on): Likewise.
31357         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
31359 2011-04-25  Jim Meyering  <meyering@redhat.com>
31361         maint.mk: makefile_at_at_check extend and clean up
31362         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
31363         in addition to */Makefile.am.
31364         Exempt legitimate uses of @VAR@ notation, e.g.,
31365         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
31366         Remove obsolete coreutils-specific comment.
31367         Prompted by discussion here:
31368         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
31370 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
31372         strtoul: remove dependency on strtol
31373         This is so that 'configure' need not check for strtol merely because
31374         the application needs strtoul.
31375         * modules/strtoul (Files): Add lib/strtol.c.
31376         (Depends-on): Remove strtol.
31378         strtoull: remove dependency on strtoul
31379         This is like the strtoll change.
31380         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
31381         (Depends-on): Remove strtoul.
31383         strtoll: remove dependency on strtol
31384         This is so that 'configure' need not check for strtol merely because
31385         the application needs strtoll.
31386         * modules/strtoll (Files): Add lib/strtol.c.
31387         (Depends-on): Remove strtol.
31389 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
31391         inttypes: Move some configure check to module 'imaxdiv'.
31392         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
31393         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
31394         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
31396 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
31398         inttypes: Move some configure check to module 'imaxabs'.
31399         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
31400         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
31401         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
31403 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
31405         inttypes: Remove configure tests that are not needed since 2009-12-31.
31406         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
31407         gl_cv_header_working_inttypes_h.
31409 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
31411         * modules/strnlen (Depends-on): Remove memchr.
31412         The strnlen implementation doesn't need the memchr module's fixes; see
31413         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
31415         strtol: remove dependency on wchar
31416         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
31417         * modules/strtol (Depends-on): Remove wchar.
31419 2011-04-21  Eric Blake  <eblake@redhat.com>
31421         passfd: fix test regression on Linux
31422         * modules/passfd-tests (configure.ac): Correct socketpair check.
31424         passfd: speed up configure and drop unused code
31425         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
31426         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
31427         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
31428         Instead of probing at configure for unix_scm_rights_bsd44_way,
31429         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
31430         check to a struct member probe.
31431         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
31432         (sendfd, recvfd): Update preprocessor checks.
31433         * modules/passfd (Files): Reflect rename, and drop unused file.
31434         (Depends-on): Drop unused dependency.
31436         passfd: allow compilation on mingw
31437         * modules/sys_socket (Depends-on): Add sys_uio.
31438         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
31439         iovec and a minimal struct msghdr.
31440         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
31441         * tests/test-sys_socket.c (main): Enhance test.
31442         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
31443         guaranteed to provide what we need.
31444         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
31445         * modules/passfd-tests (Depends-on): Add sys_wait.
31446         * tests/test-passfd.c (main): Skip test on mingw, for now.
31447         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
31448         partial 'struct msghdr' implementation.
31450         sys_uio: new module
31451         * modules/sys_uio: New module.
31452         * modules/sys_uio-tests: Likewise.
31453         * lib/sys_uio.in.h: New file.
31454         * m4/sys_uio_h.m4: Likewise.
31455         * tests/test-sys_uio.c: Likewise.
31456         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
31457         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
31459 2011-04-20  Jim Meyering  <meyering@redhat.com>
31461         useless-if-before-free: avoid false-positive
31462         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
31463         disjunct so that it too requires a terminating ";".  Without that,
31464         this script would identify as useless one statement from gcc that
31465         was not:
31466           if (aligned_ptr)
31467             free (((void **) aligned_ptr) [-1]);
31469 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
31471         doc: update users.txt.
31472         * users.txt: Add barcode.
31474 2011-04-19  Bruno Haible  <bruno@clisp.org>
31476         ioctl: Remove link dependency on native Windows.
31477         * lib/fd-hook.h: Renamed from lib/close-hook.h.
31478         (gl_close_fn, gl_ioctl_fn): New types.
31479         (struct fd_hook): Renamed from struct close_hook. Change type of
31480         private_close_fn field. Add private_ioctl_fn field.
31481         (close_hook_fn): Add parameter for primary close method.
31482         (execute_close_hooks, execute_all_close_hooks): Likewise.
31483         (ioctl_hook_fn): New type.
31484         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
31485         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
31486         argument.
31487         (unregister_fd_hook): Renamed from unregister_close_hook.
31488         * lib/fd-hook.c: Renamed from lib/close-hook.c.
31489         Don't include <unistd.h>.
31490         (close): Remove undef.
31491         (anchor): Update.
31492         (execute_close_hooks): Add argument for primary close method.
31493         (execute_all_close_hooks): Likewise.
31494         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
31495         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
31496         argument. Allow each argument to be NULL.
31497         (unregister_fd_hook): Renamed from unregister_close_hook.
31498         * lib/close.c (rpl_close): Pass 'close' function pointer to
31499         execute_all_close_hooks.
31500         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
31501         (primary_ioctl): New function.
31502         (ioctl): Don't call ioctlsocket here. Instead, call
31503         execute_all_ioctl_hooks.
31504         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
31505         close method.
31506         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
31507         (fd_sockets_hook): Renamed from close_sockets_hook.
31508         (gl_sockets_startup, gl_sockets_cleanup): Update.
31509         * modules/fd-hook: Renamed from modules/close-hook. Update.
31510         * modules/close (Depends-on): Add fd-hook, remove close-hook.
31511         * modules/sockets (Depends-on): Likewise.
31512         * modules/ioctl (Depends-on): Add fd-hook.
31513         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
31514         GNULIB_SOCKET.
31516 2011-04-19  Bruno Haible  <bruno@clisp.org>
31518         Move the support of O_NONBLOCK in open() to the 'open' module.
31519         * modules/nonblocking (Depends-on): Remove 'open'.
31520         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
31521         gl_cv_have_open_O_NONBLOCK.
31522         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
31523         O_NONBLOCK support.
31524         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
31526 2011-04-17  Bruno Haible  <bruno@clisp.org>
31528         pipe2: Simplify code.
31529         * lib/pipe2.c (pipe2): Reduce code duplication.
31531 2011-04-17  Bruno Haible  <bruno@clisp.org>
31533         nonblocking: Add comment.
31534         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
31536 2011-04-17  Bruno Haible  <bruno@clisp.org>
31538         nonblocking: Add tests for sockets.
31539         * tests/test-nonblocking-socket.sh: New file.
31540         * tests/test-nonblocking-socket-main.c: New file.
31541         * tests/test-nonblocking-socket-child.c: New file.
31542         * tests/test-nonblocking-socket.h: New file.
31543         * tests/socket-server.h: New file.
31544         * tests/socket-client.h: New file.
31545         * modules/nonblocking-socket-tests: New file.
31546         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
31548 2011-04-17  Bruno Haible  <bruno@clisp.org>
31550         nonblocking: Add tests for pipes.
31551         * tests/test-nonblocking-pipe.sh: New file.
31552         * tests/test-nonblocking-pipe-main.c: New file.
31553         * tests/test-nonblocking-pipe-child.c: New file.
31554         * tests/test-nonblocking-pipe.h: New file.
31555         * tests/test-nonblocking-writer.h: New file.
31556         * tests/test-nonblocking-reader.h: New file.
31557         * tests/test-nonblocking-misc.h: New file.
31558         * modules/nonblocking-pipe-tests: New file.
31559         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
31561 2011-04-16  Bruno Haible  <bruno@clisp.org>
31563         gettext: Clarify the needed programmer actions.
31564         * modules/gettext (Notice): New field.
31565         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
31567 2011-04-16  Bruno Haible  <bruno@clisp.org>
31569         strchrnul: Tweak last commit.
31570         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
31571         bug.
31572         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
31573         as in _GL_FUNCDECL_SYS.
31574         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
31575         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
31577 2011-04-15  Eric Blake  <eblake@redhat.com>
31579         strchrnul: work around cygwin bug
31580         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
31581         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
31582         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
31583         * modules/string (Makefile.am): Substitute it.
31584         * lib/string.in.h (strchrnul): Use it.
31586 2011-04-15  Bruno Haible  <bruno@clisp.org>
31588         Don't require lib/stdio-write.c when only module 'stdio' is used.
31589         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
31590         invocation.
31591         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
31593 2011-04-14  Bruno Haible  <bruno@clisp.org>
31595         Support non-blocking pipe I/O in read() on native Windows.
31596         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
31597         (read): New declaration.
31598         * lib/read.c: New file.
31599         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
31600         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
31601         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
31602         vscanf): New declarations.
31603         * lib/stdio-read.c: New file.
31604         * m4/read.m4: New file.
31605         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
31606         REPLACE_READ.
31607         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
31608         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
31609         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
31610         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
31611         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
31612         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
31613         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
31614         * modules/read: New file.
31615         * modules/nonblocking (Files): Add lib/stdio-read.c.
31616         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
31617         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
31618         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
31619         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
31620         * modules/pread (Depends-on): Add read.
31621         * modules/safe-read (Depends-on): Likewise.
31622         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
31623         gets, scanf, vfscanf, vscanf): Verify signatures.
31624         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
31625         problem with non-blocking pipes.
31626         * doc/posix-functions/fgetc.texi: Likewise.
31627         * doc/posix-functions/fgets.texi: Likewise.
31628         * doc/posix-functions/fread.texi: Likewise.
31629         * doc/posix-functions/fscanf.texi: Likewise.
31630         * doc/posix-functions/getc.texi: Likewise.
31631         * doc/posix-functions/getchar.texi: Likewise.
31632         * doc/posix-functions/gets.texi: Likewise.
31633         * doc/posix-functions/scanf.texi: Likewise.
31634         * doc/posix-functions/vfscanf.texi: Likewise.
31635         * doc/posix-functions/vscanf.texi: Likewise.
31637 2011-04-14  Bruno Haible  <bruno@clisp.org>
31639         Support non-blocking pipe I/O in write() on native Windows.
31640         * lib/write.c (rpl_write): Split a write request that failed merely
31641         because the byte count was larger than the pipe buffer's size.
31642         * doc/posix-functions/write.texi: Mention the problem with large byte
31643         counts.
31645 2011-04-14  Bruno Haible  <bruno@clisp.org>
31647         wchar: Ensure that wchar_t gets defined on uClibc.
31648         * lib/wchar.in.h: On uClibc, include <stddef.h>.
31649         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
31651 2011-04-13  Bruno Haible  <bruno@clisp.org>
31653         safe-write, full-read: Avoid unnecessary compilation units.
31654         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
31655         (Depends-on): Remove safe-read. Add ssize_t.
31656         * modules/full-read (Files): Add lib/full-write.c.
31657         (Depends-on): Add full-write.
31659 2011-04-13  Bruno Haible  <bruno@clisp.org>
31661         Support non-blocking pipe I/O and SIGPIPE in pwrite().
31662         * modules/pwrite (Depends-on): Add 'write'.
31664 2011-04-13  Bruno Haible  <bruno@clisp.org>
31666         Support non-blocking pipe I/O in write() on native Windows.
31667         * lib/unistd.in.h (write): Enable replacement also if
31668         GNULIB_UNISTD_H_NONBLOCKING is 1.
31669         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
31670         (rpl_write): When failing to write on a non-blocking pipe, change
31671         errno from ENOSPC to EAGAIN.
31672         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
31673         putchar, puts, vfprintf, vprintf): Enable replacement also if
31674         GNULIB_STDIO_H_NONBLOCKING is 1.
31675         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
31676         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
31677         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
31678         CALL_WITH_SIGPIPE_EMULATION.
31679         (CALL_WITH_SIGPIPE_EMULATION): Use them.
31680         * m4/nonblocking.m4: New file.
31681         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
31682         for non-blocking I/O support.
31683         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31684         GNULIB_UNISTD_H_NONBLOCKING.
31685         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
31686         required for non-blocking I/O support.
31687         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
31688         * modules/nonblocking (Files): Add m4/nonblocking.m4,
31689         lib/stdio-write.c, m4/asm-underscore.m4.
31690         (Depends-on): Add stdio, unistd.
31691         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
31692         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
31693         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
31694         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
31695         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
31696         problem with non-blocking pipes.
31697         * doc/posix-functions/fputc.texi: Likewise.
31698         * doc/posix-functions/fputs.texi: Likewise.
31699         * doc/posix-functions/fwrite.texi: Likewise.
31700         * doc/posix-functions/printf.texi: Likewise.
31701         * doc/posix-functions/putc.texi: Likewise.
31702         * doc/posix-functions/putchar.texi: Likewise.
31703         * doc/posix-functions/puts.texi: Likewise.
31704         * doc/posix-functions/vfprintf.texi: Likewise.
31705         * doc/posix-functions/vprintf.texi: Likewise.
31706         * doc/posix-functions/write.texi: Likewise.
31708 2011-04-10  Jim Meyering  <meyering@redhat.com>
31710         maint.mk: prohibit doubled words
31711         Detect them also when they're separated by a newline.
31712         There are 3 ways to customize it:
31713           - disable the test on a per file basis, as usual with rules using
31714             $(VC_LIST_EXCEPT)
31715           - replace the default doubled-word-selecting regexp (affects all files)
31716           - ignore a particular file-vs-doubled-word match
31717         I nearly used that last one to ignore the "is is" match in
31718         coreutils' NEWS file, since the text was "ls -is is ..."
31719         To do that, I would have added this line to cfg.mk:
31720           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
31721         but it would have ignored any "is is" match in NEWS.
31722         Low probability, but still...
31723         Instead, I changed the text, slightly:
31724           -  ls -is is now consistent with ls -lis in ignoring values returned
31725           +  "ls -is" is now consistent with ls -lis in ignoring values returned
31726         * top/maint.mk (prohibit_double_word_RE_): Provide default.
31727         (prohibit_doubled_word_): Define.
31728         (sc_prohibit_doubled_word): New rule.
31729         (sc_prohibit_the_the): Remove.  Subsumed by the above.
31731 2011-04-10  Jim Meyering  <meyering@redhat.com>
31733         maint: fix doubled-word typo in comment
31734         * m4/gethostname.m4: s/is is/it is/
31735         * m4/getdomainname.m4: Likewise.
31737 2011-04-10  Jim Meyering  <meyering@redhat.com>
31739         maint: remove doubled word: s/it it/it/
31740         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
31742 2011-04-10  Jim Meyering  <meyering@redhat.com>
31744         maint.mk: remove useless semicolon and backslash
31745         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
31746         semicolon and backslash.
31748 2011-04-10  Bruno Haible  <bruno@clisp.org>
31750         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
31751         * modules/stdint-tests (Depends-on): Add wchar.
31753 2011-04-10  Jim Meyering  <meyering@redhat.com>
31755         maint: remove doubled words in comments, e.g., s/a a/a/
31756         * lib/strptime.c (day_of_the_week): s/the the/the/
31757         * tests/test-chown.h (test_chown): s/a a/a/
31759         test-chown.h: correct a cast
31760         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
31761         when the destination is a stat.st_gid.
31763 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
31765         getaddrinfo: Fix test for sa_len member.
31766         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
31767         include <sys/types.h> before <sys/socket.h>.
31769 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
31771         maint: change "can not" to "cannot"
31772         * doc/posix-functions/iconv.texi (iconv): This one crossed line
31773         boundaries.
31775 2011-04-09  Jim Meyering  <meyering@redhat.com>
31777         maint: change "a a" to "a"
31778         * tests/test-lchown.h (test_lchown): s/a a/a/
31780         maint.mk: prohibit \<the the\>
31781         * top/maint.mk (sc_prohibit_the_the): New rule.
31783         maint: fix "the the" in comment
31784         * lib/count-one-bits.h: s/the the/the/
31786         maint: change "can not" to "cannot"
31787         But do not change the occurrences in maintain.texi or in
31788         build-aux/po/Makefile.in.in, which I presume comes from gettext.
31789         * doc/gnulib-tool.texi: s/can not/cannot/
31790         * doc/posix-functions/accept.texi (accept): Likewise.
31791         * doc/posix-functions/socket.texi (socket): Likewise.
31792         * lib/mbrtowc.c: Likewise.
31794         maint.mk: prohibit use of "can not"
31795         * top/maint.mk (sc_prohibit_can_not): New rule.
31796         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
31798 2011-04-09  Bruno Haible  <bruno@clisp.org>
31800         careadlinkat: Guard against misuse of careadlinkatcwd.
31801         * lib/careadlinkat.c: Include <stdlib.h>.
31802         (careadlinkatcwd): Check that the fd argument is as expected.
31804 2011-04-09  Bruno Haible  <bruno@clisp.org>
31806         careadlinkat: Use common coding style.
31807         * lib/careadlinkat.c: Move gnulib includes after system includes.
31809 2011-04-09  Bruno Haible  <bruno@clisp.org>
31811         careadlinkat: Clarify specification.
31812         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
31813         (careadlinkatcwd): Add comment.
31814         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
31816 2011-04-09  Bruno Haible  <bruno@clisp.org>
31818         areadlinkat: Avoid link error on many platforms.
31819         * modules/areadlinkat (Depends-on): Add areadlink.
31821 2011-04-09  Bruno Haible  <bruno@clisp.org>
31823         allocator, careadlinkat: Fix double-inclusion guard.
31824         * lib/allocator.h: Fix double-inclusion guard.
31825         * lib/careadlinkat.h: Likewise.
31827 2011-04-09  Bruno Haible  <bruno@clisp.org>
31829         relocatable-prog-wrapper: Update after module 'areadlink' changed.
31830         * lib/relocwrapper.c: Update dependencies hierarchy.
31831         * build-aux/install-reloc: Update list of files to be compiled.
31832         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
31833         lib/allocator.[hc].
31835 2011-04-08  Eric Blake  <eblake@redhat.com>
31837         strftime: silence gnulib-tool warning
31838         * modules/strftime-tests (Depends-on): Drop automatic dependency.
31840 2011-04-08  Bruno Haible  <bruno@clisp.org>
31842         verify: Fix syntax error with GCC 4.6 in C++ mode.
31843         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
31844         (HAVE_STATIC_ASSERT): New macro.
31845         (verify_true, verify): Use 'static_assert' if it is supported and
31846         '_Static_assert' is not supported.
31848 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
31850         allocator: New module.
31851         * modules/allocator, lib/allocator.c: New files.
31852         * lib/allocator.h (stdlib_allocator): New decl.
31853         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
31854         Remove.  Do not include <stdlib.h>.
31855         (careadlinkat): Use stdlib_allocator instead of rolling our own.
31856         * modules/careadlinkat (Files): Remove lib/allocator.h.
31857         (Depends-on): Add allocator.
31859         stdlib: let modules use system malloc, realloc
31860         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
31861         if !_GL_USE_STDLIB_ALLOC.
31862         (malloc, realloc): Limit this change to a smaller scope.
31864         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
31865         (malloc, realloc): Don't #undef; no longer needed.
31866         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
31867         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
31868         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
31869         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
31870         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
31871         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
31872         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
31873         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
31875         careadlinkat: rename members to avoid problem
31876         * lib/allocator.h (struct allocator): Rename members from
31877         malloc/realloc to allocate/reallocate, to avoid problems if malloc
31878         and realloc are #define'd.  Reported by Eric Blake in
31879         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
31880         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
31882 2011-04-08  Eric Blake  <eblake@redhat.com>
31884         nonblocking: reduce dependency
31885         * tests/test-nonblocking.c: Only test sockets when in use.
31886         * modules/nonblocking-tests (Depends-on): Drop socket.
31887         (Makefile.am): Link even if sockets are not present.
31888         * modules/pipe2-tests (Makefile.am): Likewise.
31889         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
31891         pipe2: fix O_NONBLOCK support on mingw
31892         * modules/pipe2 (Depends-on): Add nonblocking.
31893         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
31894         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
31895         * tests/test-nonblocking.c (main): Likewise.
31896         * modules/pipe2-tests (Makefile.am): Avoid link failure.
31898         fcntl-h: fix O_ACCMODE on cygwin
31899         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
31900         * lib/fcntl.in.h (O_ACCMODE): Fix it.
31902         pipe-filter: drop O_NONBLOCK workarounds
31903         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
31904         * modules/pipe-filter-ii (Depends-on): Likewise.
31905         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
31907         nonblocking: provide O_NONBLOCK for mingw
31908         * modules/nonblocking (Depends-on): Add open.
31909         (configure.ac): Set new witness macro.
31910         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
31911         * modules/fcntl-h (Makefile.am): Substitute it.
31912         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
31913         nonblocking module is in use.
31914         * lib/nonblocking.c: Adjust portability test.
31915         * lib/open.c (open): Don't let native open see gnulib flag.
31916         * tests/test-fcntl-h.c (main): Enhance test.
31917         * tests/test-open.h (test_open): Likewise.
31918         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
31920         careadlinkat: fix compilation error on mingw
31921         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
31922         within struct allocator.
31924 2011-04-06  Eric Blake  <eblake@redhat.com>
31926         binary-io: relicense under LGPLv2+
31927         * modules/binary-io (License): Relax to LGPLv2+.
31928         Requested for libvirt, and required by pipe2.
31930 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
31932         verify: use _Static_assert if available
31933         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
31934         (verify_true, verify): Use it if available.  This generates better
31935         diagnostics with GCC 4.6.0 and later.
31937 2011-04-05  Bruno Haible  <bruno@clisp.org>
31939         Remove leftover generated .h files after config.status changed.
31941         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
31942         GL_GENERATE_ALLOCA_H.
31943         * modules/alloca-opt (Makefile.am): Remove alloca.h if
31944         GL_GENERATE_ALLOCA_H evaluates to false.
31946         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
31947         GL_GENERATE_ARGZ_H.
31948         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
31949         evaluates to false.
31951         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
31952         GL_GENERATE_BYTESWAP_H.
31953         * modules/byteswap (Makefile.am): Remove byteswap.h if
31954         GL_GENERATE_BYTESWAP_H evaluates to false.
31956         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
31957         GL_GENERATE_ERRNO_H.
31958         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
31959         evaluates to false.
31961         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
31962         GL_GENERATE_FLOAT_H.
31963         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
31964         evaluates to false.
31966         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
31967         GL_GENERATE_FNMATCH_H.
31968         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
31969         GL_GENERATE_FNMATCH_H evaluates to false.
31971         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
31972         GL_GENERATE_GLOB_H.
31973         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
31974         evaluates to false.
31976         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
31977         automake conditional GL_GENERATE_ICONV_H.
31978         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
31979         evaluates to false.
31981         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
31982         GL_GENERATE_NETINET_IN_H.
31983         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
31984         GL_GENERATE_NETINET_IN_H evaluates to false.
31986         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
31987         conditional GL_GENERATE_PTHREAD_H.
31988         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
31989         * modules/pthread (Makefile.am): Remove pthread.h if
31990         GL_GENERATE_PTHREAD_H evaluates to false.
31992         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
31993         GL_GENERATE_SCHED_H.
31994         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
31995         evaluates to false.
31997         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
31998         conditional GL_GENERATE_SELINUX_CONTEXT_H.
31999         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
32000         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
32002         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
32003         GL_GENERATE_STDARG_H.
32004         * modules/stdarg (Makefile.am): Remove stdarg.h if
32005         GL_GENERATE_STDARG_H evaluates to false.
32007         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
32008         GL_GENERATE_STDBOOL_H.
32009         * modules/stdbool (Makefile.am): Remove stdbool.h if
32010         GL_GENERATE_STDBOOL_H evaluates to false.
32012         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
32013         conditional GL_GENERATE_STDDEF_H.
32014         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
32015         * modules/stddef (Makefile.am): Remove stddef.h if
32016         GL_GENERATE_STDDEF_H evaluates to false.
32018         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
32019         GL_GENERATE_STDINT_H.
32020         * modules/stdint (Makefile.am): Remove stdint.h if
32021         GL_GENERATE_STDINT_H evaluates to false.
32023         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
32024         GL_GENERATE_SYSEXITS_H.
32025         * modules/sysexits (Makefile.am): Remove sysexits.h if
32026         GL_GENERATE_SYSEXITS_H evaluates to false.
32028         Reported by Karl Berry and Ralf Wildenhues.
32030 2011-04-05  Bruno Haible  <bruno@clisp.org>
32032         Ensure to rebuild generated .h files when config.status has changed.
32033         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
32034         config.status.
32035         * modules/ctype (Makefile.am): Likewise.
32036         * modules/dirent (Makefile.am): Likewise.
32037         * modules/errno (Makefile.am): Likewise.
32038         * modules/fcntl-h (Makefile.am): Likewise.
32039         * modules/float (Makefile.am): Likewise.
32040         * modules/getopt-posix (Makefile.am): Likewise.
32041         * modules/glob (Makefile.am): Likewise.
32042         * modules/iconv-h (Makefile.am): Likewise.
32043         * modules/inttypes (Makefile.am): Likewise.
32044         * modules/langinfo (Makefile.am): Likewise.
32045         * modules/locale (Makefile.am): Likewise.
32046         * modules/math (Makefile.am): Likewise.
32047         * modules/netdb (Makefile.am): Likewise.
32048         * modules/netinet_in (Makefile.am): Likewise.
32049         * modules/poll-h (Makefile.am): Likewise.
32050         * modules/pthread (Makefile.am): Likewise.
32051         * modules/pty (Makefile.am): Likewise.
32052         * modules/sched (Makefile.am): Likewise.
32053         * modules/search (Makefile.am): Likewise.
32054         * modules/selinux-h (Makefile.am): Likewise.
32055         * modules/signal (Makefile.am): Likewise.
32056         * modules/spawn (Makefile.am): Likewise.
32057         * modules/stdarg (Makefile.am): Likewise.
32058         * modules/stdbool (Makefile.am): Likewise.
32059         * modules/stddef (Makefile.am): Likewise.
32060         * modules/stdint (Makefile.am): Likewise.
32061         * modules/stdio (Makefile.am): Likewise.
32062         * modules/stdlib (Makefile.am): Likewise.
32063         * modules/string (Makefile.am): Likewise.
32064         * modules/strings (Makefile.am): Likewise.
32065         * modules/sys_file (Makefile.am): Likewise.
32066         * modules/sys_ioctl (Makefile.am): Likewise.
32067         * modules/sys_select (Makefile.am): Likewise.
32068         * modules/sys_socket (Makefile.am): Likewise.
32069         * modules/sys_stat (Makefile.am): Likewise.
32070         * modules/sys_time (Makefile.am): Likewise.
32071         * modules/sys_times (Makefile.am): Likewise.
32072         * modules/sys_utsname (Makefile.am): Likewise.
32073         * modules/sys_wait (Makefile.am): Likewise.
32074         * modules/sysexits (Makefile.am): Likewise.
32075         * modules/termios (Makefile.am): Likewise.
32076         * modules/time (Makefile.am): Likewise.
32077         * modules/unistd (Makefile.am): Likewise.
32078         * modules/wchar (Makefile.am): Likewise.
32079         * modules/wctype-h (Makefile.am): Likewise.
32080         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
32082 2011-04-05  Bruno Haible  <bruno@clisp.org>
32084         pipe2: Relicense under LGPLv2+.
32085         * modules/pipe2 (License): Change to LGPLv2+.
32086         Requested by Eric Blake, for libvirt.
32088 2011-04-05  Bruce Korb  <bkorb@gnu.org>
32090         bootstrap: compute gnulib_extra_files after updating build_aux
32091         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
32092         change build_aux or also supply gnulib_extra_files.  Handle correctly.
32094 2011-04-05  Eric Blake  <eblake@redhat.com>
32096         bootstrap: preserve git whitelist item sorting
32097         * build-aux/bootstrap (sort_patterns): New function.
32098         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
32100 2011-04-05  Simon Josefsson  <simon@josefsson.org>
32102         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
32103         sc_space_tab check.
32105 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
32107         areadlink, areadlinkat: rewrite in terms of careadlinkat
32108         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
32109         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
32110         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
32111         (malloc, realloc): Remove #undefs.
32112         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
32113         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
32114         readlink, ssize_t, stdint, unistd.
32115         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
32116         areadlink, stdint.
32118         careadlinkat: new module
32119         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
32120         * modules/careadlinkat: New files, written by me with
32121         a review and feedback from Ben Pfaff in
32122         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
32124 2011-04-01  Bruno Haible  <bruno@clisp.org>
32126         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
32127         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
32128         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
32129         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
32130         Reported by Bruce Korb <bruce.korb@gmail.com>.
32132 2011-04-01  Bruno Haible  <bruno@clisp.org>
32134         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
32135         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
32136         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
32137         * modules/wcpcpy (Depends-on): Add extensions.
32138         * modules/wcpncpy (Depends-on): Likewise.
32139         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
32140         systems.
32141         * doc/posix-functions/wcpncpy.texi: Likewise.
32142         * doc/posix-functions/wcwidth.texi: Likewise.
32144 2011-03-31  Eric Blake  <eblake@redhat.com>
32146         nonblocking: fix mingw test failures
32147         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
32148         non-blocking flag on regular file.
32149         (get_nonblocking_flag): Set errno on invalid fd.
32150         * tests/test-nonblocking.c (main): Avoid test failure on
32151         directories if fchdir is not active.
32152         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
32154 2011-03-31  Bruno Haible  <bruno@clisp.org>
32156         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
32157         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
32158         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
32159         Reported by Simon Josefsson <simon@josefsson.org>.
32161 2011-03-31  Bruno Haible  <bruno@clisp.org>
32162         and Eric Blake  <eblake@redhat.com>
32164         nonblocking: new module
32165         * modules/nonblocking: New module.
32166         * modules/nonblocking-tests: Likewise.
32167         * lib/nonblocking.h: New file.
32168         * lib/nonblocking.c: Likewise.
32169         * tests/test-nonblocking.c: New test.
32170         * lib/ioctl.c (ioctl) [mingw]: Update comment.
32172 2011-03-30  Bruno Haible  <bruno@clisp.org>
32174         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
32175         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
32176         instead of 'printf' format for GCC >= 4.4.
32177         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
32178         (fprintf, printf, vfprintf, vprintf): Declare with
32179         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
32180         the system's vfprintf() function.
32181         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
32183 2011-03-30  Eric Blake  <eblake@redhat.com>
32185         passfd: fix scoping bug
32186         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
32187         before sendmsg/recvmsg.
32189         passfd: standardize coding conventions
32190         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
32191         can be learned at compile time.
32192         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
32193         ifdefs.
32194         (sendfd, recvfd): Follow gnulib code conventions.
32196         passfd: fix incorrect sendmsg arguments
32197         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
32198         incorrect msg_controllen value.
32199         * modules/passfd-tests (Depends-on): Check for alarm.
32200         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
32201         Reported by Bastien ROUCARIES.
32203 2011-03-30  Bruno Haible  <bruno@clisp.org>
32205         c-strcasestr: Relicense under LGPLv2+.
32206         * modules/c-strcasestr (License): Change to LGPLv2+.
32207         Requested by Eric Blake, for libvirt.
32209 2011-03-30  Simon Josefsson  <simon@josefsson.org>
32211         * users.txt: Add libidn2.  Fix libtasn1 link.
32213 2011-03-30  Jim Meyering  <meyering@redhat.com>
32215         tests: readlink* ("",... fails with EINVAL on newer kernels
32216         readlink and readlinkat have typically failed with ENOENT for
32217         the invalid, empty file name,  "".  However, with the advent
32218         of linux-2.6.39, they fail with EINVAL.
32219         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
32220         when operating on the empty file name.
32221         * tests/test-readlink.h (test_readlink): Likewise.
32223 2011-03-29  Bruno Haible  <bruno@clisp.org>
32225         Relicense some modules under LGPLv2+, for libidn2.
32226         * modules/array-mergesort (License): Change to LGPLv2+.
32227         * modules/c-strcaseeq (License): Likewise.
32228         * modules/striconveh (License): Likewise.
32229         * modules/striconveha (License): Likewise.
32230         * modules/uniconv/base (License): Likewise.
32231         * modules/uniconv/u8-conv-from-enc (License): Likewise.
32232         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
32233         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
32234         * modules/unictype/base (License): Likewise.
32235         * modules/unictype/bidiclass-of (License): Likewise.
32236         * modules/unictype/category-M (License): Likewise.
32237         * modules/unictype/category-none (License): Likewise.
32238         * modules/unictype/category-of (License): Likewise.
32239         * modules/unictype/category-test (License): Likewise.
32240         * modules/unictype/category-test-withtable (License): Likewise.
32241         * modules/unictype/combining-class (License): Likewise.
32242         * modules/unictype/joiningtype-of (License): Likewise.
32243         * modules/unictype/scripts (License): Likewise.
32244         * modules/uninorm/base (License): Likewise.
32245         * modules/uninorm/canonical-decomposition (License): Likewise.
32246         * modules/uninorm/composition (License): Likewise.
32247         * modules/uninorm/decompose-internal (License): Likewise.
32248         * modules/uninorm/decomposition-table (License): Likewise.
32249         * modules/uninorm/nfc (License): Likewise.
32250         * modules/uninorm/nfd (License): Likewise.
32251         * modules/uninorm/u32-normalize (License): Likewise.
32252         * modules/unistr/base (License): Likewise.
32253         * modules/unistr/u32-cpy (License): Likewise.
32254         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
32255         * modules/unistr/u32-to-u8 (License): Likewise.
32256         * modules/unistr/u32-uctomb (License): Likewise.
32257         * modules/unistr/u8-check (License): Likewise.
32258         * modules/unistr/u8-mblen (License): Likewise.
32259         * modules/unistr/u8-mbtouc (License): Likewise.
32260         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
32261         * modules/unistr/u8-mbtoucr (License): Likewise.
32262         * modules/unistr/u8-prev (License): Likewise.
32263         * modules/unistr/u8-strlen (License): Likewise.
32264         * modules/unistr/u8-to-u32 (License): Likewise.
32265         * modules/unistr/u8-uctomb (License): Likewise.
32266         * modules/unitypes (License): Likewise.
32267         Requested by Simon Josefsson.
32269 2011-03-29  Simon Josefsson  <simon@josefsson.org>
32271         lib-symbol-visibility: Add a notice.
32272         * modules/lib-symbol-visibility (Notice): New field.
32274 2011-03-29  Bruno Haible  <bruno@clisp.org>
32276         getaddrinfo: Doc fix.
32277         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
32278         section "fixed in Gnulib".
32280 2011-03-28  Simon Josefsson  <simon@josefsson.org>
32282         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
32283         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
32285 2011-03-26  Bruno Haible  <bruno@clisp.org>
32287         unictype/property-byname: Reduce the number of load-time relocations.
32288         * lib/unictype/pr_byname.c: Include <stdlib.h>.
32289         (UC_PROPERTY_INDEX_*): New enumeration values.
32290         (uc_property_byname): Convert an index from the lookup table to an
32291         uc_property_t.
32292         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
32293         values.
32295 2011-03-26  Bruno Haible  <bruno@clisp.org>
32297         unictype/property-byname: Allow omitted word separators and aliases.
32298         * lib/unictype/pr_byname.gperf: Add property names without word
32299         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
32300         for 'space'.
32302 2011-03-26  Bruno Haible  <bruno@clisp.org>
32304         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
32305         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
32306         also hyphens to space.
32307         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
32308         without spaces.
32309         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
32311 2011-03-26  Bruno Haible  <bruno@clisp.org>
32313         unictype/joiningtype-byname: Recognize long names as well.
32314         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
32315         a long name.
32316         * lib/unictype/joiningtype_byname.c: Include <string.h>,
32317         unictype/joiningtype_byname.h.
32318         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
32319         * lib/unictype/joiningtype_byname.gperf: New file.
32320         * modules/unictype/joiningtype-byname (Files): Add
32321         lib/unictype/joiningtype_byname.gperf.
32322         (Depends-on): Add gperf.
32323         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
32324         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
32325         long names.
32327         Tests for module 'unictype/joiningtype-longname'.
32328         * modules/unictype/joiningtype-longname-tests: New file.
32329         * tests/unictype/test-joiningtype_longname.c: New file.
32331         New module 'unictype/joiningtype-longname'.
32332         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
32333         * lib/unictype/joiningtype_longname.c: New file.
32334         * modules/unictype/joiningtype-longname: New file.
32335         * modules/unictype/joiningtype-all (Depends-on): Add
32336         unictype/joiningtype-longname.
32338 2011-03-26  Bruno Haible  <bruno@clisp.org>
32340         unictype/bidiclass-byname: Recognize long names as well.
32341         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
32342         name.
32343         * lib/unictype/bidi_byname.c: Include <string.h>,
32344         unictype/bidi_byname.h.
32345         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
32346         * lib/unictype/bidi_byname.gperf: New file.
32347         * modules/unictype/bidiclass-byname (Files): Add
32348         lib/unictype/bidi_byname.gperf.
32349         (Depends-on): Add gperf.
32350         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
32351         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
32352         long names.
32354         Tests for module 'unictype/bidiclass-longname'.
32355         * modules/unictype/bidiclass-longname-tests: New file.
32356         * tests/unictype/test-bidi_longname.c: New file.
32358         New module 'unictype/bidiclass-longname'.
32359         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
32360         * lib/unictype/bidi_longname.c: New file.
32361         * modules/unictype/bidiclass-longname: New file.
32362         * modules/unictype/bidiclass-all (Depends-on): Add
32363         unictype/bidiclass-longname.
32365 2011-03-26  Bruno Haible  <bruno@clisp.org>
32367         unictype/bidi*: Rename modules.
32368         * modules/unictype/bidiclass-all: Renamed from
32369         modules/unictype/bidicategory-all.
32370         * modules/unictype/bidiclass-name: Renamed from
32371         modules/unictype/bidiclass-name.
32372         (Description): Update.
32373         * modules/unictype/bidiclass-name-tests: Renamed from
32374         modules/unictype/bidicategory-name-tests.
32375         * modules/unictype/bidiclass-byname: Renamed from
32376         modules/unictype/bidicategory-byname.
32377         (Description): Update.
32378         * modules/unictype/bidiclass-byname-tests: Renamed from
32379         modules/unictype/bidicategory-byname-tests.
32380         * modules/unictype/bidiclass-of: Renamed from
32381         modules/unictype/bidicategory-of.
32382         (Description): Update.
32383         * modules/unictype/bidiclass-of-tests: Renamed from
32384         modules/unictype/bidicategory-of-tests.
32385         * modules/unictype/bidiclass-test: Renamed from
32386         modules/unictype/bidicategory-test.
32387         (Description): Update.
32388         * modules/unictype/bidiclass-test-tests: Renamed from
32389         modules/unictype/bidicategory-test-tests.
32390         * modules/unictype/bidicategory-all: New file, a simple redirection.
32391         * modules/unictype/bidicategory-name: Likewise.
32392         * modules/unictype/bidicategory-byname: Likewise.
32393         * modules/unictype/bidicategory-of: Likewise.
32394         * modules/unictype/bidicategory-test: Likewise.
32395         * modules/unictype/property-bidi-* (Dependencies): Update.
32396         * lib/unictype/bidi_*.c: Update comment.
32398 2011-03-26  Bruno Haible  <bruno@clisp.org>
32400         unictype/bidi*: Rename functions, part 2.
32401         * modules/unictype/bidicategory-name (configure.ac): Update required
32402         libunistring version.
32403         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
32405 2011-03-25  Bruno Haible  <bruno@clisp.org>
32407         New module 'unictype/combining-class-all'.
32408         * modules/unictype/combining-class-all: New file.
32410         Tests for module 'unictype/combining-class-byname'.
32411         * modules/unictype/combining-class-byname-tests: New file.
32412         * tests/unictype/test-combiningclass_byname.c: New file.
32414         New module 'unictype/combining-class-byname'.
32415         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
32416         * lib/unictype/combiningclass_byname.c: New file.
32417         * lib/unictype/combiningclass_byname.gperf: New file.
32418         * modules/unictype/combining-class-byname: New file.
32420         Tests for module 'unictype/combining-class-longname'.
32421         * modules/unictype/combining-class-longname-tests: New file.
32422         * tests/unictype/test-combiningclass_longname.c: New file.
32424         New module 'unictype/combining-class-longname'.
32425         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
32426         * lib/unictype/combiningclass_longname.c: New file.
32427         * modules/unictype/combining-class-longname: New file.
32429         Tests for module 'unictype/combining-class-name'.
32430         * modules/unictype/combining-class-name-tests: New file.
32431         * tests/unictype/test-combiningclass_name.c: New file.
32433         New module 'unictype/combining-class-name'.
32434         * lib/unictype.in.h (uc_combining_class_name): New declaration.
32435         * lib/unictype/combiningclass_name.c: New file.
32436         * modules/unictype/combining-class-name: New file.
32438 2011-03-25  Bruno Haible  <bruno@clisp.org>
32440         unictype/combining-class: Rename source files.
32441         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
32442         of unictype/combining.h.
32443         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
32444         Update.
32445         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
32446         * modules/unictype/combining-class (Description): Fix.
32447         (Files, Makefile.am): Update.
32448         * tests/unictype/test-combiningclass.c: Renamed from
32449         tests/unictype/test-combining.c.
32450         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
32452 2011-03-25  Bruno Haible  <bruno@clisp.org>
32454         unictype: Update list of canonical combining classes.
32455         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
32457 2011-03-25  Bruno Haible  <bruno@clisp.org>
32459         unictype/category-byname: Recognize long names as well.
32460         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
32461         a long name.
32462         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
32463         unictype/categ_byname.h.
32464         (UC_CATEGORY_INDEX_*): New enumeration values.
32465         (uc_general_category_byname): Use uc_general_category_lookup and
32466         convert from index to value.
32467         * lib/unictype/categ_byname.gperf: New file.
32468         * modules/unictype/category-byname (Files): Add
32469         lib/unictype/categ_byname.gperf.
32470         (Depends-on): Add gperf.
32471         (Makefile.am): Add rule for generating unictype/categ_byname.h.
32472         * tests/unictype/test-categ_byname.c (main): Test the recognition of
32473         long names.
32475         Tests for module 'unictype/category-longname'.
32476         * modules/unictype/category-longname-tests: New file.
32477         * tests/unictype/test-categ_longname.c: New file.
32479         New module 'unictype/category-longname'.
32480         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
32481         * lib/unictype/categ_longname.c: New file.
32482         * modules/unictype/category-longname: New file.
32483         * modules/unictype/category-all (Depends-on): Add it.
32485 2011-03-25  Bruno Haible  <bruno@clisp.org>
32487         Tests for module 'unictype/category-LC'.
32488         * modules/unictype/category-LC-tests: New file.
32489         * tests/unictype/test-categ_LC.c: New file, automatically generated.
32491         New module 'unictype/category-LC'.
32492         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
32493         (UC_CATEGORY_LC): New declaration.
32494         (UC_CASED_LETTER): New macro.
32495         * lib/gen-uni-tables.c (is_category_LC): New function.
32496         (output_categories): Also handle category LC.
32497         (UC_CATEGORY_MASK_LC): New enumeration value.
32498         (general_category_byname): Also handle category LC.
32499         * lib/unictype/categ_LC.c: New file.
32500         * lib/unictype/categ_LC.h: New file, automatically generated.
32501         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
32502         category LC.
32503         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
32504         * modules/unictype/category-LC: New file.
32505         * modules/unictype/category-byname (Depends-on): Add
32506         unictype/category-LC.
32507         * modules/unictype/category-all (Depends-on): Likewise.
32509 2011-03-25  Eric Blake  <eblake@redhat.com>
32511         xmalloc: revert yesterday's regression
32512         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
32513         realloc's underlying behavior (allowing allocation of zero-size
32514         objects, especially if malloc-gnu is also in use).
32516 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
32518         maint.mk: add missing version to VC-tag
32519         * top/maint.mk: git tag was missing actual tag name; add it.
32521         valgrind: do leak checking, and exit with code 1 on error (not 0)
32522         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
32523         to VALGRIND.
32525 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
32527         posix-modules: say what it does.
32528         * posix-modules: Add a line to the --help output saying what it does.
32530 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
32532         xmalloc: Do not leak if underlying realloc is C99 compatible.
32533         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
32534         This avoids a leak on C99-based systems.  See
32535         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
32537 2011-03-24  Eric Blake  <eblake@redhat.com>
32539         realloc: document portability problem
32540         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
32541         passing 0 size to realloc.
32543 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
32545         doc: update users.txt
32546         * users.txt: Add cvsps, tmpwatch
32548 2011-03-23  Matt Rice  <ratmice@gmail.com>
32550         doc: update users.txt
32551         * users.txt: Add gdb.
32553 2011-03-23  Jim Meyering  <meyering@redhat.com>
32555         doc: update users.txt
32556         Looking through matches up to the following URL (there are still
32557         several more pages), I found several projects that use gnulib:
32558         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
32559         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
32560         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
32562 2011-03-22  Bruno Haible  <bruno@clisp.org>
32564         unictype/bidi*: Rename functions.
32565         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
32566         uc_bidi_class, uc_is_bidi_class): New declarations.
32567         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
32568         uc_bidi_category_byname.
32569         (uc_bidi_category_byname): New function.
32570         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
32571         u_bidi_category_name.
32572         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
32573         (uc_bidi_category_name): New function.
32574         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
32575         uc_bidi_category.
32576         (uc_bidi_category): New function.
32577         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
32578         uc_is_bidi_category. Invoke uc_bidi_class.
32579         (uc_is_bidi_category): New function.
32580         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
32581         instead of uc_bidi_category_byname.
32582         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
32583         instead of uc_bidi_category_name.
32584         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
32585         uc_bidi_category.
32586         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
32587         instead of uc_is_bidi_category.
32589 2011-03-21  Bruno Haible  <bruno@clisp.org>
32591         New module 'unictype/joininggroup-all'.
32592         * modules/unictype/joininggroup-all: New file.
32594         Tests for module 'unictype/joininggroup-of'.
32595         * modules/unictype/joininggroup-of-tests: New file.
32596         * tests/unictype/test-joininggroup_of.c: New file.
32597         * tests/unictype/test-joininggroup_of.h: New file, automatically
32598         generated by gen-uni-tables.
32600         New module 'unictype/joininggroup-of'.
32601         * modules/unictype/joininggroup-of: New file.
32602         * lib/unictype/joininggroup_of.c: New file.
32603         * lib/unictype/joininggroup_of.h: New file, automatically generated by
32604         gen-uni-tables.
32606         Tests for module 'unictype/joininggroup-byname'.
32607         * modules/unictype/joininggroup-byname-tests: New file.
32608         * tests/unictype/test-joininggroup_byname.c: New file.
32610         New module 'unictype/joininggroup-byname'.
32611         * modules/unictype/joininggroup-byname: New file.
32612         * lib/unictype/joininggroup_byname.c: New file.
32613         * lib/unictype/joininggroup_byname.gperf: New file.
32615         Tests for module 'unictype/joininggroup-name'.
32616         * modules/unictype/joininggroup-name-tests: New file.
32617         * tests/unictype/test-joininggroup_name.c: New file.
32619         New module 'unictype/joininggroup-name'.
32620         * modules/unictype/joininggroup-name: New file.
32621         * lib/unictype/joininggroup_name.c: New file.
32622         * lib/unictype/joininggroup_name.h: New file.
32624         New module 'unictype/joiningtype-all'.
32625         * modules/unictype/joiningtype-all: New file.
32627         Tests for module 'unictype/joiningtype-of'.
32628         * modules/unictype/joiningtype-of-tests: New file.
32629         * tests/unictype/test-joiningtype_of.c: New file.
32630         * tests/unictype/test-joiningtype_of.h: New file, automatically
32631         generated by gen-uni-tables.
32633         New module 'unictype/joiningtype-of'.
32634         * modules/unictype/joiningtype-of: New file.
32635         * lib/unictype/joiningtype_of.c: New file.
32636         * lib/unictype/joiningtype_of.h: New file, automatically generated by
32637         gen-uni-tables.
32639         Tests for module 'unictype/joiningtype-byname'.
32640         * modules/unictype/joiningtype-byname-tests: New file.
32641         * tests/unictype/test-joiningtype_byname.c: New file.
32643         New module 'unictype/joiningtype-byname'.
32644         * modules/unictype/joiningtype-byname: New file.
32645         * lib/unictype/joiningtype_byname.c: New file.
32647         Tests for module 'unictype/joiningtype-name'.
32648         * modules/unictype/joiningtype-name-tests: New file.
32649         * tests/unictype/test-joiningtype_name.c: New file.
32651         New module 'unictype/joiningtype-name'.
32652         * modules/unictype/joiningtype-name: New file.
32653         * lib/unictype/joiningtype_name.c: New file.
32655         unictype: Add support for Arabic shaping properties.
32656         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
32657         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
32658         declarations.
32659         (UC_JOINING_GROUP_*): New enumeration values.
32660         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
32661         declarations.
32662         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
32663         (unicode_joining_type): New variable.
32664         (UC_JOINING_GROUP_*): New enumeration values.
32665         (unicode_joining_group): New variable.
32666         (fill_arabicshaping, joining_type_as_c_identifier,
32667         output_joining_type_test, output_joining_type,
32668         joining_group_as_c_identifier, output_joining_group_test,
32669         output_joining_group): New functions.
32670         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
32671         fill_arabicshaping and output_joining_type_test, output_joining_type,
32672         output_joining_group_test, output_joining_group.
32673         Reported by Simon Josefsson.
32675 2011-03-21  Jim Meyering  <meyering@redhat.com>
32677         strftime: fix a bug in yesterday's change
32678         * lib/strftime.c (add): Accommodate width's initial value of -1.
32679         Otherwise, nstrftime would copy uninitialized data into
32680         the result buffer.
32682 2011-03-21  Jim Meyering  <meyering@redhat.com>
32684         tests: add strftime-tests module
32685         * tests/test-strftime.c: New file.
32686         * modules/strftime-tests: New module.
32688 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
32690         strftime: don't assume a byte count fits in 'int'
32691         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
32692         found this problem by static analysis, using gcc -Wstrict-overflow
32693         (GCC 4.5.2, x86-64).  This reported an optimization that depended
32694         on an integer overflow having undefined behavior, but it turns out
32695         that the argument is a size, which might not fit in 'int' anyway,
32697 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
32699         stdio: don't require ignore_value around fwrite
32701         This patch works around libc bug 11959
32702         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
32703         Without this patch, applications must often write
32704         ignore_value (fwrite (...)) even though the ignore_value is
32705         not helpful here.  It's common to write many objects, using
32706         fwrite/printf/etc., and then use ferror to detect output error.
32708         I considered making this patch optional, but decided against it,
32709         because libc is obviously being inconsistent here: there is no
32710         reason libc should insist that user code must inspect fwrite
32711         return's value without also insisting that it inspect printf's,
32712         putchar's, etc.  If user code wants to have a strict style where
32713         all these functions' values are checked (so that ferror need not
32714         be checked), we could add support for that style in a new gnulib
32715         module, but in the meantime it's better to be consistent and to
32716         support common usage.
32718         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
32719         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
32720         that we are compiling in checking mode, and if not C++, and
32721         if not already wrapping fwrite for some other reason.
32722         (fwrite): #define to rpl_fwrite if the latter is defined.
32724 2011-03-20  Bruno Haible  <bruno@clisp.org>
32726         verror: Fix compilation error introduced on 2011-02-13.
32727         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
32728         instead of __attribute__.
32729         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32731 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
32732             Bruno Haible  <bruno@clisp.org>
32734         socklen: do not depend on sys_socket
32735         While trying to modify Emacs to use gnulib's socklen module,
32736         I discovered a circular dependency: socklen depends on sys_socket
32737         and vice versa.  Emacs can use socklen, but it does not need
32738         sys_socket because it has its own substitute for sys/socket.h.
32739         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
32740         gl_TYPE_SOCKLEN_T.
32741         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
32742         gl_PREREQ_SYS_H_SOCKET.
32743         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
32744         gl_PREREQ_SYS_H_SOCKET.
32745         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
32746         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
32747         * modules/socklen (Depends-on): Do not depend on sys_socket.
32748         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
32750 2011-03-20  Jim Meyering  <meyering@redhat.com>
32752         maint.mk: sort file names *after* new transformation
32753         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
32754         prefix would have led to an unwarranted failure in GNU parted.
32755         Sort after that transformation.
32757 2011-03-19  Jim Meyering  <meyering@redhat.com>
32759         maint.mk: fix po-file syntax-check rule
32760         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
32761         Patch by Bruno Haible.
32763 2011-03-19  Bruno Haible  <bruno@clisp.org>
32765         socklen: Update comment.
32766         * m4/socklen.m4: Update comment about platforms.
32768 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
32769             Bruno Haible  <bruno@clisp.org>
32771         inet_ntop, inet_pton: Simplify.
32772         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
32773         documented to provide socklen_t and we already depend on sys_socket.
32774         * modules/inet_pton (Depends-on): Likewise.
32775         * lib/arpa_inet.in.h: Adjust comment.
32777 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
32778             Bruno Haible  <bruno@clisp.org>
32780         netdb: Simplify.
32781         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
32782         documented to provide socklen_t and we already depend on sys_socket.
32783         * lib/netdb.in.h: Adjust comment.
32785 2011-03-19  Bruno Haible  <bruno@clisp.org>
32787         sys_socket, netdb: Document problem with socklen_t.
32788         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
32789         platforms.
32790         * doc/posix-headers/netdb.texi: Likewise.
32792 2011-03-18  Eric Blake  <eblake@redhat.com>
32794         maint.mk: let po check work in VPATH build
32795         * top/maint.mk (po_file): Allow cfg.mk override.
32796         (sc_po_check): Allow VPATH use.
32797         Reported by Jiri Denemark.
32799 2011-03-16  Jim Meyering  <meyering@redhat.com>
32801         maint.mk: allow fine-grained syntax-check exclusion via Make variables
32802         Before, you would have had to create one .x-sc_ file per rule in order
32803         to exempt offending files.  Now, you may instead use a Make variable --
32804         usually defined in cfg.mk -- whose name identifies the affected rule.
32805         * top/maint.mk (_sc_excl): Define.
32806         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
32807         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
32809 2011-03-13  Bruno Haible  <bruno@clisp.org>
32811         ignore-value tests: Avoid warnings.
32812         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
32813         empty for gcc < 3.4.
32815 2011-03-13  Bruno Haible  <bruno@clisp.org>
32817         passfd: Fix link error on Solaris.
32818         * modules/passfd (Description): Correct.
32819         (Depends-on): Add socketlib.
32820         (Link): New section.
32821         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
32823 2011-03-13  Bruno Haible  <bruno@clisp.org>
32825         passfd: Fix link error on AIX 5.2.
32826         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
32828 2011-03-13  Bruno Haible  <bruno@clisp.org>
32830         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
32831         * lib/sys_socket.in.h: Include <stddef.h>.
32832         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
32833         CMSG_FIRSTHDR. Remove unused variable.
32835 2011-03-13  Bruno Haible  <bruno@clisp.org>
32837         passfd: Fix compilation error on OpenBSD.
32838         * lib/passfd.c: Include <sys/uio.h>.
32840 2011-03-13  Bruno Haible  <bruno@clisp.org>
32842         passfd test: Fix warnings.
32843         * tests/test-passfd.c: Include <sys/wait.h>.
32844         (main): Fix typo.
32846 2011-03-13  Bruno Haible  <bruno@clisp.org>
32848         passfd module, part 4, tweaks.
32849         * tests/test-passfd.c: Reorder includes.
32850         (main): Fix perror and printf calls.
32852 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
32854         passfd module, part 4.
32855         * modules/passfd-tests: New file.
32856         * tests/test-passfd.c: New file.
32858 2011-03-13  Jim Meyering  <meyering@redhat.com>
32860         Makefile: rely on GNU make; derive syntax-check rule names
32861         Rather than requiring that each sc_ rule be listed as a dependent
32862         of "check", use features of GNU make to derive the list.
32863         * Makefile (syntax-check-rules): Define.
32864         (check): Depend on the new variable, not the hard-coded list.
32866 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
32867             Bruno Haible  <bruno@clisp.org>
32869         passfd module, part 3.
32870         * lib/passfd.h (recvfd): Add a flags argument.
32871         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
32872         (recvfd): Add a flags argument.
32873         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
32874         exists.
32875         * modules/passfd (Depends-on): Add cloexec.
32876         Suggested by Eric Blake.
32878 2011-03-13  Bruno Haible  <bruno@clisp.org>
32880         passfd module, part 2, tweaks.
32881         * modules/passfd (Files): Reorder.
32882         (Depends-on): Remove errno.
32883         (Include): Remove <sys/socket.h>, <sys/un.h>.
32884         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
32885         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
32886         specification header. Include <sys/socket.h> always. Don't include
32887         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
32888         (sendfd): Clarify that it sets errno when it fails.
32889         (recvfd): Fix specification.
32891 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
32893         passfd module, part 2.
32894         * modules/passfd: New file.
32895         * lib/passfd.h: New file.
32896         * lib/passfd.c: New file.
32898 2011-03-12  Bruno Haible  <bruno@clisp.org>
32900         wcswidth, mbswidth: Avoid integer overflow.
32901         * lib/wcswidth.c: Include <limits.h>.
32902         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
32903         * lib/mbswidth.c: Include <limits.h>.
32904         (mbsnwidth): Avoid 'int' overflow.
32905         Reported by Jim Meyering.
32907 2011-03-12  Bruno Haible  <bruno@clisp.org>
32909         futimens, utimensat: Avoid endless recursion on Solaris 10.
32910         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
32911         Solaris.
32912         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
32913         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
32915 2011-03-11  Jim Meyering  <meyering@redhat.com>
32917         maint.mk: relax a regexp to accommodate other formatting styles
32918         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
32919         between "ngettext" and the following "(".
32921 2011-03-11  Pádraig Brady <P@draigBrady.com>
32923         maint.mk: suppress a false positive warning
32924         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
32925         diagnostics are marked with ngettext.
32927 2011-03-10  Eric Blake  <eblake@redhat.com>
32929         wchar: add explicit dependencies, for Tru64
32930         * modules/mbmemcasecoll (Depends-on): Add wchar.
32931         * modules/mbtowc (Depends-on): Likewise.
32932         * modules/vasnprintf (Depends-on): Likewise.
32933         * modules/unistdio/u-printf-args (Depends-on): Likewise.
32934         * modules/wctomb (Depends-on): Likewise.
32935         Reported by Peter O'Gorman.
32937 2011-03-08  Bruno Haible  <bruno@clisp.org>
32939         passfd module, part 1, tweaks.
32940         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
32941         Improve indentation. Improve AC_MSG_CHECKING messages.
32942         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
32943         gl_SOCKET_FAMILIES.
32945 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
32947         passfd module, part 1.
32948         * m4/afunix.m4: New file.
32949         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
32950         sockets.
32952 2011-03-08  Bruno Haible  <bruno@clisp.org>
32954         regex-quote: New API.
32955         * lib/regex-quote.h: Include <stdbool.h>.
32956         (struct regex_quote_spec): New type.
32957         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
32958         New declarations.
32959         (regex_quote_length, regex_quote_copy, regex_quote): Take a
32960         'const struct regex_quote_spec *' argument.
32961         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
32962         (pcre_special): New constant.
32963         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
32964         New functions.
32965         (regex_quote_length, regex_quote_copy, regex_quote): Take a
32966         'const struct regex_quote_spec *' argument.
32967         * modules/regex-quote (Depends-on): Add stdbool.
32968         * tests/test-regex-quote.c (check): Update for new API. Add test for
32969         anchored results.
32970         * NEWS: Mention the API change.
32971         Reported by Reuben Thomas and Eric Blake.
32973 2011-03-06  Bruno Haible  <bruno@clisp.org>
32975         regex-quote: Fix creation of POSIX extended regular expressions.
32976         * lib/regex-quote.c (ere_special): Add grouping and alternation
32977         operators.
32979 2011-03-05  Bruno Haible  <bruno@clisp.org>
32981         doc: Improve doc regarding autopoint vs. gnulib.
32982         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
32983         disable autopoint while running autoreconf.
32984         Suggested by Ralf Wildenhues.
32986 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32988         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
32989         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
32991 2011-03-03  Bruce Korb  <bkorb@gnu.org>
32993         parse-duration: remove xalloc.h dependency
32994         * lib/parse-duration.c (parse_period): handle NULL return from
32995         strdup instead of calling xstrdup().
32996         * modules/parse-duration: remove "xalloc" dependency
32998 2011-03-03  Matthew Booth  <mbooth@redhat.com>
33000         bootstrap: honor m4_base when running aclocal
33001         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
33003 2011-03-02  Jim Meyering  <meyering@redhat.com>
33005         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
33006         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
33007         on request from Matt Booth.
33009 2011-03-01  Eric Blake  <eblake@redhat.com>
33011         test-link: work on Hurd
33012         * tests/test-link.h (test_link): Hurd rejects linking directories
33013         with EISDIR instead of the POSIX-mandated EPERM.
33015 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
33017         stdio: simplify by moving files to printf-posix, sigpipe
33018         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
33019         since this symbol is needed only if printf is replaced.
33020         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
33021         Require gl_ASM_SYMBOL_PREFIX.
33022         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
33023         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
33024         (Depends-on): Add 'raise'.
33025         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
33026         * modules/stdio (Files): Remove lib/stdio-write.c,
33027         m4/asm-underscore.m4.
33028         (Depends-on): Remove 'raise'.
33030         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
33031         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
33032         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
33033         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
33035 2011-02-28  Bruno Haible  <bruno@clisp.org>
33037         localcharset: Assume ANSI C behaviour of free().
33038         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
33039         calling free().
33040         Suggested by Simon Josefsson <simon@josefsson.org>.
33042 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
33043             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
33044             Bruno Haible  <bruno@clisp.org>  (tiny change)
33046         On Cygwin, use /proc file system instead of win32 API.
33047         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
33048         Win32 file names.
33049         (DllMain): Simplify by removing Cygwin specific code.
33050         (find_shared_library_fullname): Use Linux specific implementation also
33051         for Cygwin.
33052         (get_shared_library_fullname): Update accordingly.
33053         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
33054         Win32 file names.
33055         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
33056         Cygwin specific code.
33058 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
33059             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
33061         Fix OpenMP flag detection for various Fortran compilers.
33062         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
33063         OpenMP-conditional compilation construct, to force compile
33064         failure with missing OpenMP flag.
33065         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
33067 2011-02-25  Eric Blake  <eblake@redhat.com>
33069         strstr: expand test coverage
33070         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
33071         compilation.
33072         * tests/test-memmem.c (main): Duplicate tests.
33073         * tests/test-strcasestr.c (main): Likewise.
33074         * tests/test-c-strcasestr.c (main): Likewise.
33076 2011-02-25  Jim Meyering  <meyering@redhat.com>
33078         maint.mk: detect missing-NL-at-EOF, too
33079         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
33080         it also detects when a file lacks a newline at EOF.
33081         (require_exactly_one_NL_at_EOF_): Renamed from
33082         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
33083         since people may well have .x-sc_... file names tied to the
33084         existing name.  Suggested by Eric Blake.
33086 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
33088         dirname: move m4/dos.m4 functionality into lib/dosname.h
33090         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
33091         extracts symbols from it, puts them into config.h; but it's much
33092         easier to use the symbols directly.  filename.h already does this,
33093         but it disagrees with dos.m4 in some respects.  This patch
33094         introduces a different include file dosname.h that packages up
33095         dos.m4, and then later we can work on merging filename.h and
33096         dosname.h.  Applications that need only the easy-to-configure
33097         symbols should consider including dosname.h rather than dirname.h.
33098         * NEWS: Mention incompatible changes.
33099         * m4/dos.m4: Remove.
33100         * lib/dosname.h, modules/dosname: New files.
33101         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
33102         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
33103         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
33104         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
33105         Include dosname.h, not dirname.h.
33106         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
33107         Include dosname.h, for definitions of symbols like ISSLASH
33108         that used to be in config.h.
33109         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
33110         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
33111         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
33112         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
33113         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
33114         * modules/rmdir (Files): Likewise.
33115         * modules/stat (Files): Likewise.
33116         * modules/unlink (Files): Likewise.
33117         * modules/dirname-lgpl (Depends-on): Add dosname.
33118         * modules/lstat (Depends-on): Likewise.
33119         * modules/openat (Depends-on): Likewise.
33120         * modules/rmdir (Depends-on): Likewise.
33121         * modules/savewd (Depends-on): Likewise.
33122         * modules/stat (Depends-on): Likewise.
33123         * modules/unlink (Depends-on): Likewise.
33124         * modules/openat (Depends-on): Remove dirname-lgpl.
33125         * modules/savewd (Depends-on): Likewise.
33126         * tests/test-dirname.c: Do not use removed symbols like
33127         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
33128         the remaining symbols, e.g., ISSLASH ('\\').
33130 2011-02-25  Eric Blake  <eblake@redhat.com>
33132         strstr: revert patches that introduced bug and pessimization
33133         * lib/str-two-way.h: Add another reference.
33134         (two_way_short_needle, two_way_long_needle): Revert changes from
33135         2011-02-24; they pessimize search speed.
33136         (critical_factorization): Partially revert changes from
33137         2010-06-22; they violate the requirement that the left half of the
33138         needle be smaller than the period of the needle.
33140 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
33142         filenamecat: remove unnecessary dependency on dirname-lgpl
33143         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
33144         is no direct dependency, just an indirect one via filenamecat-lgpl.
33146         remove: remove unnecessary use of m4/dos.m4
33147         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
33148         * modules/remove (FILES): Remove m4/dos.m4.
33150         * lib/openat-proc.c: Don't include dirname.h; not needed.
33152         backupfile: remove unnecessary use of m4/dos.m4
33153         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
33154         of its symbols are used by the backupfile code.  backupfile.c does
33155         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
33156         for the rare case of programs that want all their backup file
33157         names to live within 8+3 limits, and dos.m4 doesn't address that.
33158         * modules/backupfile (Files): Remove m4/dos.m4.
33160 2011-02-24  Jim Meyering  <meyering@redhat.com>
33162         strstr: fix a bug whereby strstr would mistakenly return NULL
33163         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
33164         in period calculation.
33165         (two_way_long_needle): Likewise.
33166         The original problem was reported by Mike Stump in
33167         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
33168         Ralf Wildenhues provided the short needle and haystack.
33169         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
33170         Add a more involved test to trigger the bug in two_way_long_needle.
33172 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
33174         gnulib-tool: remove use of bold display in help screen
33175         * gnulib-tool (func_usage): Do not use bold display anymore in the
33176         help screen.  That was just meant to be a temporary emphasis for a
33177         backward-incompatible change.
33179 2011-02-23  Bruno Haible  <bruno@clisp.org>
33181         Fix misindentation of preprocessor directives.
33182         * lib/argp-namefrob.h: Reindent preprocessor directives.
33183         * lib/getopt_int.h (struct _getopt_data): Likewise.
33184         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
33185         * lib/vasnprintf.c (decode_long_double): Likewise.
33186         * tests/test-argmatch.c: Insert blank lines, for clarity.
33187         * tests/test-exclude.c: Likewise.
33189 2011-02-22  Bruno Haible  <bruno@clisp.org>
33191         ioctl: Fix for MacOS X in 64-bit mode.
33192         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
33193         value.
33194         Suggested by Eric Blake.
33195         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
33197 2011-02-22  Jim Meyering  <meyering@redhat.com>
33199         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
33200         * Makefile (sc_cpp_indent_check): Don't limit the check to files
33201         in lib/.
33203 2011-02-22  Eric Blake  <eblake@redhat.com>
33205         maint: avoid any CDPATH issue
33206         * Makefile (sc_cpp_indent_check): Anchor cd argument.
33208         maint: adjust cpp indentation for my modules, as well
33209         * Makefile (sc_cpp_indent_check): Add my name.
33210         * lib/fbufmode.c: Filter through cppi.
33211         * lib/fpurge.c: Likewise.
33212         * lib/freadable.c: Likewise.
33213         * lib/freading.c: Likewise.
33214         * lib/fwritable.c: Likewise.
33215         * lib/fwriting.c: Likewise.
33216         * lib/sigaction.c: Likewise.
33218 2011-02-22  Jim Meyering  <meyering@redhat.com>
33220         maint: adjust cpp indentation to reflect nesting depth
33221         I.e., in a block of code that begins with an unnested "#if",
33222         put one space between the "#" in column 1 and following token.
33223         For example,
33224         -#include <sys/vfs.h>
33225         +# include <sys/vfs.h>
33226         Do this only in .c files that are part of a module I maintain.
33227         * lib/linkat.c: Filter through cppi.
33228         * lib/nanosleep.c: Likewise.
33229         * lib/openat.c: Likewise.
33230         * lib/openat-die.c: Likewise.
33231         * lib/dup3.c: Likewise.
33232         * lib/fchownat.c: Likewise.
33233         * lib/flock.c: Likewise.
33234         * lib/fsync.c: Likewise.
33235         * lib/fts.c: Likewise.
33236         * lib/getpass.c: Likewise.
33237         * lib/gettimeofday.c: Likewise.
33238         * lib/userspec.c: Likewise.
33239         * Makefile (sc_cpp_indent_check): New rule, to check this.
33241 2011-02-22  Bruno Haible  <bruno@clisp.org>
33243         New module 'wctomb'.
33244         * lib/stdlib.in.h (wctomb): New declaration.
33245         * lib/wctomb.c: New file.
33246         * lib/wctomb-impl.h: New file.
33247         * m4/wctomb.m4: New file.
33248         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
33249         REPLACE_WCTOMB.
33250         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
33251         REPLACE_WCTOMB.
33252         * modules/wctomb: New file.
33253         * tests/test-stdlib-c++.cc: Test signature of wctomb.
33254         * doc/posix-functions/wctomb.texi: Mention the new module.
33255         * modules/wctob (Depends-on): Add wctomb.
33257 2011-02-22  Bruno Haible  <bruno@clisp.org>
33259         New module 'mbtowc'.
33260         * lib/stdlib.in.h (mbtowc): New declaration.
33261         * lib/mbtowc.c: New file.
33262         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
33263         * m4/mbtowc.m4: New file.
33264         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
33265         REPLACE_MBTOWC.
33266         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
33267         REPLACE_MBTOWC.
33268         * modules/mbtowc: New file.
33269         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
33270         * doc/posix-functions/mbtowc.texi: Mention the new module.
33271         * modules/btowc (Depends-on): Add mbtowc.
33273 2011-02-22  Bruno Haible  <bruno@clisp.org>
33275         wcrtomb: Add more tests for native Windows platforms.
33276         * tests/test-wcrtomb-w32-1.sh: New file.
33277         * tests/test-wcrtomb-w32-2.sh: New file.
33278         * tests/test-wcrtomb-w32-3.sh: New file.
33279         * tests/test-wcrtomb-w32-4.sh: New file.
33280         * tests/test-wcrtomb-w32-5.sh: New file.
33281         * tests/test-wcrtomb-w32.c: New file.
33282         * modules/wcrtomb-tests (Files): Add them.
33283         (Makefile.am): Arrange to run these tests.
33284         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
33285         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
33287 2011-02-20  Bruno Haible  <bruno@clisp.org>
33289         wcrtomb: Enhance test.
33290         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
33292 2011-02-20  Bruno Haible  <bruno@clisp.org>
33294         mbrtowc: Tiny optimization.
33295         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
33297 2011-02-20  Jim Meyering  <meyering@redhat.com>
33299         test-exclude.c: remove unmatched #endif
33300         * tests/test-exclude.c: Remove stray #endif, left over from
33301         the change of a week ago.
33303 2011-02-19  Jim Meyering  <meyering@redhat.com>
33305         git-version-gen: skip "-dirty" check when appropriate
33306         * build-aux/git-version-gen: Don't run any git commands when the
33307         version string comes from .tarball-version.  Prior to this, we
33308         would run git update-index --refresh even from a just-unpacked
33309         tarball directory, and that could affect a .git/ directory in a
33310         parent of the build directory.  Reported by Mike Frysinger.
33312 2011-02-19  Bruno Haible  <bruno@clisp.org>
33314         unictype/property-byname: Reduce the size of the 'data' segment.
33315         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
33317 2011-02-19  Bruno Haible  <bruno@clisp.org>
33319         unictype/scripts: Reduce the size of the 'data' segment.
33320         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
33321         '%pic'.
33322         * lib/unictype/scripts_byname.gperf: Regenerated.
33324 2011-02-19  Bruno Haible  <bruno@clisp.org>
33326         stdint: Update documentation.
33327         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
33329 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
33331         stdint: omit redundant check for wchar.h
33332         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
33333         always tests whether wchar.h exists, so remove the now-redundant test.
33335 2011-02-18  Bruno Haible  <bruno@clisp.org>
33337         stdint: Cut dependency to module 'wchar'.
33338         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
33339         include the necessary prerequisites.
33340         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
33341         * modules/stdint (Depends-on): Remove wchar.
33342         (Makefile.am): Substitute HAVE_WCHAR_H.
33343         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
33345 2011-02-18  Eric Blake  <eblake@redhat.com>
33347         longlong: skip, rather than fail, on cross-compilation
33348         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
33349         when cross-compiling; regression from 2011-02-16.
33351 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
33353         * NEWS: Mention 2011-02-08 change to stdlib.
33355 2011-02-17  Bruno Haible  <bruno@clisp.org>
33357         getloadavg: Add comments about platforms.
33358         * m4/getloadavg.m4: Add comment.
33359         * lib/getloadavg.c: Likewise.
33361 2011-02-17  Bruno Haible  <bruno@clisp.org>
33363         getloadavg: Fix link error on Solaris 2.6.
33364         * modules/getloadavg (Link): New section.
33365         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
33366         linking test-getloadavg.
33367         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
33368         getloadavg.
33370 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
33372         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
33373         It was 'int', but this doesn't match the IRIX 6.5 manual.
33374         Suggested by Bruno Haible in
33375         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
33377 2011-02-17  Bruno Haible  <bruno@clisp.org>
33379         havelib: Fix comments.
33380         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
33381         change.
33383 2011-02-17  Bruno Haible  <bruno@clisp.org>
33385         havelib: Update config.rpath.
33386         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
33388 2011-02-17  Bruno Haible  <bruno@clisp.org>
33390         getloadavg test: Add some plausibility checks.
33391         * tests/test-getloadavg.c (check_avg): Print a warning when the value
33392         is improbable.
33394 2011-02-16  Eric Blake  <eblake@redhat.com>
33396         maintainer-makefile: make syntax-check a no-op from tarballs
33397         * top/maint.mk (no-vc-detected): New rule.
33398         (local-checks-available): Use it to avoid hanging if someone tries
33399         'make syntax-check' from a tarball.  Also append to any non-syntax
33400         checks already defined in cfg.mk.
33402 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
33404         longlong: tune, particularly for common case of c99
33406         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
33407         or running anything if c99, or if unsigned long long int does not
33408         work.  In either case, we know the answer without further tests.
33409         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
33410         it at most once, and use its results for both long long int and
33411         unsigned long long int.  This is more likely to be efficient in
33412         the common case where the program wants to check for both long
33413         long int and unsigned long long int.
33414         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
33415         since the answer is already known.
33417 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
33419         getloadavg: set errno
33420         * lib/getloadavg.c: Set errno when returning -1.  If no other
33421         error number looks appropriate, set it to ENOSYS if the getloadavg
33422         looks like it can't possibly ever work, ENOTSUP otherwise.
33423         Suggested by Bruno Haible in
33424         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
33426         getloadavg: trim unused parts and speed up 'configure'
33427         * NEWS: Document this.
33428         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
33429         always compiled if getloadavg is absent.
33430         Move test code to ...
33431         * tests/test-getloadavg.c: New file, containing previous
33432         contents of test from lib/getloadavg.c.  It also contains
33433         suggestions by Bruno Haible in
33434         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
33435         * modules/getloadavg-tests: New file.
33436         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
33437         Do tests in the same order as they're needed for getloadavg.c.
33438         Omit setgid-related tests that generate symbols KMEM_GROUP,
33439         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
33440         Do only the tests that are needed to see whether the system has
33441         getloadavg, moving the other tests into ...
33442         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
33443         NLIST_NAME_UNION; nobody should be using it.  Do not define
33444         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
33445         relevant, as the user of this module shouldn't care how getloadavg
33446         is implemented.
33448         getloadavg: omit unused var
33449         * lib/getloadavg.c (getloadavg): Omit unused local variable.
33451 2011-02-15  Jim Meyering  <meyering@redhat.com>
33453         doc: update users.txt
33454         * users.txt: Update iwhd's URL.
33456 2011-02-13  Bruno Haible  <bruno@clisp.org>
33458         Consistent macro naming for macros that use GCC __attribute__.
33459         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
33460         _ATTRIBUTE_NONNULL_.
33461         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
33462         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
33463         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
33464         ATTRIBUTE_DEPRECATED.
33465         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
33466         ATTRIBUTE_NORETURN.
33467         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
33468         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
33469         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
33470         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
33471         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
33472         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
33473         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
33474         ATTRIBUTE_SENTINEL.
33475         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
33476         ATTRIBUTE_RETURN_CHECK.
33477         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
33478         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
33479         ATTRIBUTE_NORETURN.
33480         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
33481         Reported by Paul Eggert.
33483 2011-02-13  Bruno Haible  <bruno@clisp.org>
33485         Don't interfere with a program's definition of __attribute__.
33486         * lib/argp.h (__attribute__): Remove definition.
33487         (_GL_ATTRIBUTE_FORMAT): New macro.
33488         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
33489         * lib/argp-fmtstream.h (__attribute__): Remove definition.
33490         (_GL_ATTRIBUTE_FORMAT): New macro.
33491         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
33492         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
33493         GCC 3 or newer.
33494         * lib/error.h (__attribute__): Remove definition.
33495         (_GL_ATTRIBUTE_FORMAT): New macro.
33496         (error, error_at_line): Use it.
33497         * lib/hash.h (__attribute__): Remove definition.
33498         (ATTRIBUTE_WUR): Update definition. Define always.
33499         * lib/openat.h (__attribute__): Remove definition.
33500         (ATTRIBUTE_NORETURN): Update definition. Define always.
33501         * lib/sigpipe-die.h (__attribute__): Remove definition.
33502         (ATTRIBUTE_NORETURN): Update definition. Define always.
33503         * lib/vasnprintf.h (__attribute__): Remove definition.
33504         (_GL_ATTRIBUTE_FORMAT): New macro.
33505         (asnprintf, vasnprintf): Use it.
33506         * lib/xalloc.h (__attribute__): Remove definition.
33507         (ATTRIBUTE_NORETURN): Update definition. Define always.
33508         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
33509         * lib/xmemdup0.h (__attribute__): Remove definition.
33510         (ATTRIBUTE_NORETURN): Update definition. Define always.
33511         * lib/xprintf.h (__attribute__): Remove definition.
33512         (_GL_ATTRIBUTE_FORMAT): New macro.
33513         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
33514         * lib/xstrtol.h (__attribute__): Remove definition.
33515         (ATTRIBUTE_NORETURN): Update definition. Define always.
33516         * lib/xvasprintf.h (__attribute__): Remove definition.
33517         (_GL_ATTRIBUTE_FORMAT): New macro.
33518         (xasprintf, xvasprintf): Use it.
33519         * tests/test-argmatch.c (__attribute__): Remove definition.
33520         (ATTRIBUTE_NORETURN): Update definition. Define always.
33521         * tests/test-exclude.c (__attribute__): Remove definition.
33522         (ATTRIBUTE_NORETURN): Update definition. Define always.
33523         Reported by Paul Eggert.
33525 2011-02-13  Bruno Haible  <bruno@clisp.org>
33527         mbrtowc: Add more tests for native Windows platforms.
33528         * tests/test-mbrtowc-w32-1.sh: New file.
33529         * tests/test-mbrtowc-w32-2.sh: New file.
33530         * tests/test-mbrtowc-w32-3.sh: New file.
33531         * tests/test-mbrtowc-w32-4.sh: New file.
33532         * tests/test-mbrtowc-w32-5.sh: New file.
33533         * tests/test-mbrtowc-w32.c: New file.
33534         * modules/mbrtowc-tests (Files): Add them.
33535         (Makefile.am): Arrange to run these tests.
33536         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
33537         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
33539 2011-02-13  Bruno Haible  <bruno@clisp.org>
33541         mbrtowc: Work around native Windows bug.
33542         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
33543         guess when no suitable locale for testing was found.
33544         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
33546 2011-02-13  Bruno Haible  <bruno@clisp.org>
33548         mbsinit: Work around mingw bug.
33549         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
33550         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
33551         Windows.
33552         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
33554 2011-02-13  Bruno Haible  <bruno@clisp.org>
33556         mbsinit: Don't crash for a NULL argument.
33557         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
33558         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
33560 2011-02-13  Bruno Haible  <bruno@clisp.org>
33562         Don't interfere with a program's definition of __attribute__.
33563         * lib/stdio.in.h (__attribute__): Remove definition.
33564         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
33565         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
33566         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
33567         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
33568         * lib/string.in.h (__attribute__): Remove definition.
33569         Reported by Paul Eggert.
33571 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
33573         stdlib: don't get in the way of non-GCC __attribute__
33574         See thread starting at
33575         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
33576         Revert previous stdlib change, installing the following instead:
33577         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
33578         to get in the way of a non-GCC compiler that supports __attribute__.
33579         (_GL_ATTRIBUTE_RETURN): New macro.
33580         (_Exit): Use it instead of __attribute__.
33582 2011-02-12  Bruno Haible  <bruno@clisp.org>
33584         quotearg test: Avoid test failure on mingw.
33585         * tests/test-quotearg.sh: Convert the locale identifier from native
33586         Windows syntax to Unix syntax.
33588 2011-02-12  Bruno Haible  <bruno@clisp.org>
33590         setlocale: Prefer gnulib's override over libintl's override.
33591         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
33592         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
33593         GNULIB_defined_setlocale is set.
33595 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
33597         stdlib: support non-GCC __attribute__
33599         Fix a serious and tricky problem encountered when attempting to
33600         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
33601         5.5, but it crashed due to memory corruption on Solaris 10 with
33602         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
33603         bits that are otherwise zero.  This tagging is optional inside
33604         Emacs but is preferred and is used when __attribute__ ((__aligned
33605         (8))) works, as it does with both recent-enough GCC and with Sun C
33606         5.11.  However, Sun C 5.11 is not GCC and does not #define
33607         __GNUC__ and __GNUC_MINOR__.
33609         When I added the getloadavg module to Emacs, it brought in
33610         stdlib.in.h, which contained this fragment:
33612            #ifndef __attribute__
33613            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
33614            #  define __attribute__(Spec)   /* empty */
33615            # endif
33616            #endif
33618         When files that include <stdlib.h> were compiled with Sun C 5.11,
33619         the above code disabled __attribute__ ((__aligned (8))), which
33620         caused variables to not be properly aligned, which eventually led
33621         to the pointer corruption mentioned above.  (This was a bit hard
33622         to diagnose, unfortunately.)
33624         Several "#define __attribute__(X) /* empty */" code snippets need
33625         to be eradicated from Gnulib to work with non-GCC compilers that
33626         support __attribute__.  The Autoconf way to do this is to test for
33627         each kind of attribute that we want support for, and selectively
33628         enable that in source code.
33630         Fix this problem just for stdlib.h, by adding a test for the
33631         __noreturn__ attribute, and change stdlib.in.h to use that test
33632         when needed.  This technique can be easily generalized to the
33633         other *.in.h files and attributes, and a similar technique can be
33634         used for *.h and *.c files.  This patch is enough to solve the
33635         problem for Emacs + getloadavg, and I thought I'd publish it for
33636         feedback before undertaking further, similar fixes in other
33637         modules.
33639         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
33640         because it's not needed for stdlib.h.  It merely substitutes the
33641         value directly into stdlib.h.  We may well need to #define it, or
33642         similar symbols, for other modules, but it's nice to also have an
33643         option to not #define it for applications like Emacs that do not
33644         need it.
33646         * lib/stdlib.in.h (__attribute__): Do not #define.
33647         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
33648         be defined only if the _Exit module is also used.
33649         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
33650         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
33651         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
33652         platforms.
33653         * modules/_Exit (Files): Add m4/attribute.m4.
33654         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
33655         * m4/attribute.m4: New file.
33657 2011-02-12  Bruno Haible  <bruno@clisp.org>
33659         wcsrtombs: Work around bug on native Windows.
33660         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
33661         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
33662         instead of len.
33663         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
33665 2011-02-12  Bruno Haible  <bruno@clisp.org>
33667         mbsrtowcs: Work around bug on native Windows.
33668         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
33669         against mingw bug.
33670         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
33672 2011-02-12  Bruno Haible  <bruno@clisp.org>
33674         Avoid setlocale bugs in tests.
33675         * modules/btowc (Dependencies): Add setlocale.
33676         * modules/c-strcase (Dependencies): Likewise.
33677         * modules/mbmemcasecmp (Dependencies): Likewise.
33678         * modules/mbmemcasecoll (Dependencies): Likewise.
33679         * modules/mbrtowc (Dependencies): Likewise.
33680         * modules/mbscasecmp (Dependencies): Likewise.
33681         * modules/mbscasestr (Dependencies): Likewise.
33682         * modules/mbschr (Dependencies): Likewise.
33683         * modules/mbscspn (Dependencies): Likewise.
33684         * modules/mbsinit (Dependencies): Likewise.
33685         * modules/mbsncasecmp (Dependencies): Likewise.
33686         * modules/mbsnrtowcs (Dependencies): Likewise.
33687         * modules/mbspbrk (Dependencies): Likewise.
33688         * modules/mbspcasecmp (Dependencies): Likewise.
33689         * modules/mbsrchr (Dependencies): Likewise.
33690         * modules/mbsrtowcs (Dependencies): Likewise.
33691         * modules/mbsspn (Dependencies): Likewise.
33692         * modules/mbsstr (Dependencies): Likewise.
33693         * modules/nl_langinfo (Dependencies): Likewise.
33694         * modules/quotearg (Dependencies): Likewise.
33695         * modules/unicase/locale-language (Dependencies): Likewise.
33696         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
33697         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
33698         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
33699         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
33700         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
33701         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
33702         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
33703         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
33704         * modules/vasnprintf-posix (Dependencies): Likewise.
33705         * modules/wcrtomb (Dependencies): Likewise.
33706         * modules/wcsnrtombs (Dependencies): Likewise.
33707         * modules/wcsrtombs (Dependencies): Likewise.
33709 2011-02-12  Bruno Haible  <bruno@clisp.org>
33711         setlocale: Workaround native Windows bug.
33712         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
33713         succeeds but sets LC_CTYPE to "C", report a failure.
33714         * tests/test-setlocale2.sh: New file.
33715         * tests/test-setlocale2.c: New file.
33716         * modules/setlocale-tests (Files): Add the new files.
33717         (Makefile.am): Enable test-setlocale2.sh test.
33718         * doc/posix-functions/setlocale.texi: Mention workaround.
33720 2011-02-11  Bruno Haible  <bruno@clisp.org>
33722         Tests for module 'setlocale'.
33723         * modules/setlocale-tests: New file.
33724         * tests/test-setlocale1.sh: New file.
33725         * tests/test-setlocale1.c: New file.
33727         New module 'setlocale'.
33728         * lib/locale.in.h (setlocale): New declaration.
33729         * lib/setlocale.c: New file, based on
33730         gettext/gettext-runtime/intl/setlocale.c.
33731         * m4/setlocale.m4: New file.
33732         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
33733         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
33734         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
33735         REPLACE_SETLOCALE.
33736         * modules/setlocale: New file.
33737         * tests/test-locale-c++.cc: Test the declaration of setlocale.
33738         * doc/posix-functions/setlocale.texi: Mention the new module.
33740 2011-02-11  Bruno Haible  <bruno@clisp.org>
33742         Prepare for locale dependent tests on mingw.
33743         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
33744         because it has the wrong locale encoding.
33745         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
33746         French_France.1252 instead of "fr".
33747         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
33748         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
33749         because it has the wrong locale encoding.
33750         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
33751         native Windows, try Turkish_Turkey.65001.
33752         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
33753         Chinese_China.54936.
33755         Prepare for locale dependent tests on mingw.
33756         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
33757         differently.
33758         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
33759         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
33760         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
33761         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
33763 2011-02-11  Eric Blake  <eblake@redhat.com>
33765         strptime: avoid compiler warnings
33766         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
33767         compiler warnings about dead code.
33768         Reported by Daniel P. Berrange.
33770 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
33772         doc: update users.txt
33773         * users.txt: Add rcs.
33775 2011-02-10  John W. Eaton  <jwe@gnu.org>
33777         doc: update users.txt
33778         * users.txt: Add octave.
33780 2011-02-10  Jim Meyering  <meyering@redhat.com>
33782         doc: update users.txt
33783         * users.txt: Add iwhd.
33785 2011-02-09  Bruno Haible  <bruno@clisp.org>
33787         gnulib-tool: Make copyright notice adjustment more robust.
33788         * gnulib-tool (func_import): In sed_transform_main_lib_file,
33789         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
33790         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
33791         License".
33792         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
33794 2011-02-06  Bruno Haible  <bruno@clisp.org>
33796         New module 'towctrans'.
33797         * modules/towctrans: New file.
33798         * lib/wctype.in.h (towctrans): New declaration.
33799         * lib/towctrans.c: New file.
33800         * lib/towctrans-impl.h: New file.
33801         * m4/towctrans.m4: New file.
33802         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
33803         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
33804         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
33805         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
33806         * doc/posix-functions/towctrans.texi: Mention the new module.
33808 2011-02-06  Bruno Haible  <bruno@clisp.org>
33810         New module 'wctrans'.
33811         * modules/wctrans: New file.
33812         * lib/wctype.in.h (wctrans): New declaration.
33813         * lib/wctrans.c: New file.
33814         * lib/wctrans-impl.h: New file.
33815         * m4/wctrans.m4: New file.
33816         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
33817         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
33818         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
33819         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
33820         * doc/posix-functions/wctrans.texi: Mention the new module.
33822 2011-02-06  Bruno Haible  <bruno@clisp.org>
33824         New module 'iswctype'.
33825         * modules/iswctype: New file.
33826         * lib/wctype.in.h (iswctype): New declaration.
33827         * lib/iswctype.c: New file.
33828         * lib/iswctype-impl.h: New file.
33829         * m4/iswctype.m4: New file.
33830         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
33831         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
33832         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
33833         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
33834         * doc/posix-functions/iswctype.texi: Mention the new module and the
33835         HP-UX 11.00 problem.
33837 2011-02-06  Bruno Haible  <bruno@clisp.org>
33839         New module 'wctype'.
33840         * modules/wctype: Change to represent the wctype() substitute.
33841         * lib/wctype.in.h (wctype): New declaration.
33842         * lib/wctype.c: New file.
33843         * lib/wctype-impl.h: New file.
33844         * m4/wctype.m4: New file.
33845         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
33846         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
33847         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
33848         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
33849         * doc/posix-functions/wctype.texi: Mention the new module and the
33850         HP-UX 11.00 problem.
33852 2011-02-06  Bruno Haible  <bruno@clisp.org>
33854         wctype-h: Ensure wctype_t and wctrans_t are defined.
33855         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
33856         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
33857         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
33858         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
33859         HAVE_WCTRANS_T.
33860         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
33862 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
33864         flock: fix license typo
33866         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
33867         omitted.
33869 2011-02-08  Bruno Haible  <bruno@clisp.org>
33871         Split large sed scripts, for HP-UX sed.
33872         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
33873         to avoid HP-UX limit of 99 commands, in the near future.
33874         * modules/stdlib (Makefile.am): Likewise.
33875         * modules/unistd (Makefile.am): Likewise.
33876         * modules/wchar (Makefile.am): Likewise.
33877         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33878         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
33879         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
33881 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
33882             Bruno Haible  <bruno@clisp.org>
33884         stdlib: improve random_r modularization
33885         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
33886         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
33887         you also need the random_r module to get this material right.
33888         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
33889         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
33890         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
33892 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
33894         stdlib: don't depend on stdint
33895         * lib/stdlib.in.h: Don't include <stdint.h> merely because
33896         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
33897         be independent of whether stdint.h is needed.
33898         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
33899         here, instead of ...
33900         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
33901         struct random_data should be using the random_r module, not just
33902         the stdlib module (which wouldn't make sense: what package needs
33903         just struct random_data without also needing random_r?).
33904         * modules/stdlib (Depends-on): Remove stdint.
33906         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
33907         See the thread rooted at
33908         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
33909         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
33910         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
33911         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
33912         __VMS)); previously it was always included (via fcntl--.h).
33913         (getloadavg): Do not use c_strtod.  Instead, approximate it by
33914         hand; this is good enough for load averages.  Also, do not use
33915         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
33916         flags directly if available and don't bother otherwise.  (Packages
33917         that need the extra reliability should use the modules that define
33918         these flags on older platforms that lack them.)
33919         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
33920         fcntl-safer.
33922 2011-02-08  Jim Meyering  <meyering@redhat.com>
33924         di-set.h, ino-map.h: add multiple-inclusion guard
33925         Technically, the guard is required only for ino-map.h, due to its
33926         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
33927         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
33928         * lib/ino-map.h: Likewise.
33930 2011-02-06  Bruno Haible  <bruno@clisp.org>
33932         iswblank: Ensure declaration on glibc systems.
33933         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
33934         * modules/iswblank (Dependencies): Add 'extensions'.
33935         * doc/posix-functions/iswblank.texi: Document the glibc problem.
33937 2011-02-06  Bruno Haible  <bruno@clisp.org>
33939         New module 'iswblank'.
33940         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
33941         * modules/iswblank: New file.
33942         * modules/wctype-h (Files): Remove lib/iswblank.c.
33943         (Makefile.am): Substitute GNULIB_ISWBLANK.
33944         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
33945         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
33946         (gl_WCTYPE_H_DEFAULTS): New macro.
33947         (gl_WCTYPE_H): Require it. Remove iswblank related code.
33948         * modules/iswblank-tests: New file.
33949         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
33950         * tests/test-wctype-h.c (main): Remove iswblank tests.
33951         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
33952         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
33953         of 'wctype-h'.
33954         * NEWS: Mention the change.
33955         * modules/mbchar (Depends-on): Add iswblank.
33957 2011-02-08  Bruno Haible  <bruno@clisp.org>
33959         di-set tests: Refactor.
33960         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
33961         unnecessary includes.
33962         (ASSERT): Remove macro.
33963         (main): Make C90 compliant by avoiding variable declaration after
33964         statement.
33965         * modules/di-set-tests (Files): Add tests/macros.h.
33967 2011-02-08  Bruno Haible  <bruno@clisp.org>
33969         ino-map tests: Refactor.
33970         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
33971         unnecessary includes.
33972         (ASSERT): Remove macro.
33973         (main): Make C90 compliant by avoiding variable declaration after
33974         statement.
33975         * modules/ino-map-tests (Files): Add tests/macros.h.
33977 2011-02-08  Jim Meyering  <meyering@redhat.com>
33979         di-set: add "const" to a cast
33980         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
33981         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
33983 2011-02-06  Bruno Haible  <bruno@clisp.org>
33985         Rename module 'wctype' to 'wctype-h'.
33986         * modules/wctype-h: Renamed from modules/wctype.
33987         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
33988         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
33989         (Files, Depends-on, Makefile.am): Update.
33990         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
33991         (Files, Makefile.am): Update.
33992         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
33993         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
33994         * doc/posix-headers/wctype.texi: Update.
33995         * doc/posix-functions/iswalnum.texi: Update.
33996         * doc/posix-functions/iswalpha.texi: Update.
33997         * doc/posix-functions/iswblank.texi: Update.
33998         * doc/posix-functions/iswcntrl.texi: Update.
33999         * doc/posix-functions/iswdigit.texi: Update.
34000         * doc/posix-functions/iswgraph.texi: Update.
34001         * doc/posix-functions/iswlower.texi: Update.
34002         * doc/posix-functions/iswprint.texi: Update.
34003         * doc/posix-functions/iswpunct.texi: Update.
34004         * doc/posix-functions/iswspace.texi: Update.
34005         * doc/posix-functions/iswupper.texi: Update.
34006         * doc/posix-functions/iswxdigit.texi: Update.
34007         * doc/posix-functions/towlower.texi: Update.
34008         * doc/posix-functions/towupper.texi: Update.
34009         * NEWS: Mention the change.
34010         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
34011         * modules/mbchar (Dependencies): Likewise.
34012         * modules/mbswidth (Dependencies): Likewise.
34013         * modules/quotearg (Dependencies): Likewise.
34014         * modules/regex (Dependencies): Likewise.
34015         * modules/wcscasecmp (Dependencies): Likewise.
34016         * modules/wcsncasecmp (Dependencies): Likewise.
34017         * modules/wcwidth (Dependencies): Likewise.
34019 2011-02-06  Bruno Haible  <bruno@clisp.org>
34021         New module 'wcswidth'.
34022         * modules/wcswidth: New file.
34023         * lib/wchar.in.h (wcswidth): New declaration.
34024         * lib/wcswidth.c: New file.
34025         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
34026         * m4/wcswidth.m4: New file.
34027         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
34028         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
34029         REPLACE_WCSWIDTH.
34030         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
34031         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
34032         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
34033         * doc/posix-functions/wcswidth.texi: Mention the new module.
34035 2011-02-06  Bruno Haible  <bruno@clisp.org>
34037         New module 'wcstok'.
34038         * modules/wcstok: New file.
34039         * lib/wchar.in.h (wcstok): New declaration.
34040         * lib/wcstok.c: New file.
34041         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
34042         * m4/wcstok.m4: New file.
34043         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
34044         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
34045         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
34046         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
34047         * doc/posix-functions/wcstok.texi: Mention the new module.
34049 2011-02-06  Bruno Haible  <bruno@clisp.org>
34051         New module 'wcsstr'.
34052         * modules/wcsstr: New file.
34053         * lib/wchar.in.h (wcsstr): New declaration.
34054         * lib/wcsstr.c: New file.
34055         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
34056         * m4/wcsstr.m4: New file.
34057         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
34058         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
34059         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
34060         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
34061         * doc/posix-functions/wcsstr.texi: Mention the new module.
34063 2011-02-06  Bruno Haible  <bruno@clisp.org>
34065         New module 'wcspbrk'.
34066         * modules/wcspbrk: New file.
34067         * lib/wchar.in.h (wcspbrk): New declaration.
34068         * lib/wcspbrk.c: New file.
34069         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
34070         * m4/wcspbrk.m4: New file.
34071         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
34072         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
34073         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
34074         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
34075         * doc/posix-functions/wcspbrk.texi: Mention the new module.
34077 2011-02-06  Bruno Haible  <bruno@clisp.org>
34079         New module 'wcsspn'.
34080         * modules/wcsspn: New file.
34081         * lib/wchar.in.h (wcsspn): New declaration.
34082         * lib/wcsspn.c: New file.
34083         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
34084         * m4/wcsspn.m4: New file.
34085         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
34086         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
34087         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
34088         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
34089         * doc/posix-functions/wcsspn.texi: Mention the new module.
34091 2011-02-06  Bruno Haible  <bruno@clisp.org>
34093         New module 'wcscspn'.
34094         * modules/wcscspn: New file.
34095         * lib/wchar.in.h (wcscspn): New declaration.
34096         * lib/wcscspn.c: New file.
34097         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
34098         * m4/wcscspn.m4: New file.
34099         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
34100         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
34101         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
34102         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
34103         * doc/posix-functions/wcscspn.texi: Mention the new module.
34105 2011-02-06  Bruno Haible  <bruno@clisp.org>
34107         New module 'wcsrchr'.
34108         * modules/wcsrchr: New file.
34109         * lib/wchar.in.h (wcsrchr): New declaration.
34110         * lib/wcsrchr.c: New file.
34111         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
34112         * m4/wcsrchr.m4: New file.
34113         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
34114         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
34115         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
34116         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
34117         * doc/posix-functions/wcsrchr.texi: Mention the new module.
34119 2011-02-06  Bruno Haible  <bruno@clisp.org>
34121         New module 'wcschr'.
34122         * modules/wcschr: New file.
34123         * lib/wchar.in.h (wcschr): New declaration.
34124         * lib/wcschr.c: New file.
34125         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
34126         * m4/wcschr.m4: New file.
34127         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
34128         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
34129         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
34130         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
34131         * doc/posix-functions/wcschr.texi: Mention the new module.
34133 2011-02-06  Bruno Haible  <bruno@clisp.org>
34135         New module 'wcsdup'.
34136         * modules/wcsdup: New file.
34137         * lib/wchar.in.h (wcsdup): New declaration.
34138         * lib/wcsdup.c: New file.
34139         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
34140         * m4/wcsdup.m4: New file.
34141         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
34142         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
34143         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
34144         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
34145         * doc/posix-functions/wcsdup.texi: Mention the new module.
34147 2011-02-06  Bruno Haible  <bruno@clisp.org>
34149         New module 'wcsxfrm'.
34150         * modules/wcsxfrm: New file.
34151         * lib/wchar.in.h (wcsxfrm): New declaration.
34152         * lib/wcsxfrm.c: New file.
34153         * lib/wcsxfrm-impl.h: New file.
34154         * m4/wcsxfrm.m4: New file.
34155         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
34156         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
34157         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
34158         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
34159         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
34161 2011-02-06  Bruno Haible  <bruno@clisp.org>
34163         New module 'wcscoll'.
34164         * modules/wcscoll: New file.
34165         * lib/wchar.in.h (wcscoll): New declaration.
34166         * lib/wcscoll.c: New file.
34167         * lib/wcscoll-impl.h: New file.
34168         * m4/wcscoll.m4: New file.
34169         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
34170         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
34171         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
34172         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
34173         * doc/posix-functions/wcscoll.texi: Mention the new module.
34175 2011-02-06  Bruno Haible  <bruno@clisp.org>
34177         New module 'wcsncasecmp'.
34178         * modules/wcsncasecmp: New file.
34179         * lib/wchar.in.h (wcsncasecmp): New declaration.
34180         * lib/wcsncasecmp.c: New file.
34181         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
34182         * m4/wcsncasecmp.m4: New file.
34183         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
34184         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
34185         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
34186         HAVE_WCSNCASECMP.
34187         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
34188         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
34190 2011-02-06  Bruno Haible  <bruno@clisp.org>
34192         New module 'wcscasecmp'.
34193         * modules/wcscasecmp: New file.
34194         * lib/wchar.in.h (wcscasecmp): New declaration.
34195         * lib/wcscasecmp.c: New file.
34196         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
34197         * m4/wcscasecmp.m4: New file.
34198         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
34199         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
34200         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
34201         HAVE_WCSCASECMP.
34202         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
34203         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
34205 2011-02-05  Bruno Haible  <bruno@clisp.org>
34207         New module 'wcsncmp'.
34208         * modules/wcsncmp: New file.
34209         * lib/wchar.in.h (wcsncmp): New declaration.
34210         * lib/wcsncmp.c: New file.
34211         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
34212         * m4/wcsncmp.m4: New file.
34213         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
34214         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
34215         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
34216         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
34217         * doc/posix-functions/wcsncmp.texi: Mention the new module.
34219 2011-02-05  Bruno Haible  <bruno@clisp.org>
34221         New module 'wcscmp'.
34222         * modules/wcscmp: New file.
34223         * lib/wchar.in.h (wcscmp): New declaration.
34224         * lib/wcscmp.c: New file.
34225         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
34226         * m4/wcscmp.m4: New file.
34227         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
34228         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
34229         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
34230         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
34231         * doc/posix-functions/wcscmp.texi: Mention the new module.
34233 2011-02-05  Bruno Haible  <bruno@clisp.org>
34235         New module 'wcsncat'.
34236         * modules/wcsncat: New file.
34237         * lib/wchar.in.h (wcsncat): New declaration.
34238         * lib/wcsncat.c: New file.
34239         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
34240         * m4/wcsncat.m4: New file.
34241         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
34242         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
34243         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
34244         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
34245         * doc/posix-functions/wcsncat.texi: Mention the new module.
34247 2011-02-05  Bruno Haible  <bruno@clisp.org>
34249         New module 'wcscat'.
34250         * modules/wcscat: New file.
34251         * lib/wchar.in.h (wcscat): New declaration.
34252         * lib/wcscat.c: New file.
34253         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
34254         * m4/wcscat.m4: New file.
34255         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
34256         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
34257         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
34258         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
34259         * doc/posix-functions/wcscat.texi: Mention the new module.
34261 2011-02-05  Bruno Haible  <bruno@clisp.org>
34263         New module 'wcpncpy'.
34264         * modules/wcpncpy: New file.
34265         * lib/wchar.in.h (wcpncpy): New declaration.
34266         * lib/wcpncpy.c: New file.
34267         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
34268         * m4/wcpncpy.m4: New file.
34269         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
34270         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
34271         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
34272         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
34273         * doc/posix-functions/wcpncpy.texi: Mention the new module.
34275 2011-02-05  Bruno Haible  <bruno@clisp.org>
34277         New module 'wcsncpy'.
34278         * modules/wcsncpy: New file.
34279         * lib/wchar.in.h (wcsncpy): New declaration.
34280         * lib/wcsncpy.c: New file.
34281         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
34282         * m4/wcsncpy.m4: New file.
34283         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
34284         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
34285         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
34286         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
34287         * doc/posix-functions/wcsncpy.texi: Mention the new module.
34289 2011-02-05  Bruno Haible  <bruno@clisp.org>
34291         New module 'wcpcpy'.
34292         * modules/wcpcpy: New file.
34293         * lib/wchar.in.h (wcpcpy): New declaration.
34294         * lib/wcpcpy.c: New file.
34295         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
34296         * m4/wcpcpy.m4: New file.
34297         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
34298         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
34299         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
34300         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
34301         * doc/posix-functions/wcpcpy.texi: Mention the new module.
34303 2011-02-05  Bruno Haible  <bruno@clisp.org>
34305         New module 'wcscpy'.
34306         * modules/wcscpy: New file.
34307         * lib/wchar.in.h (wcscpy): New declaration.
34308         * lib/wcscpy.c: New file.
34309         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
34310         * m4/wcscpy.m4: New file.
34311         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
34312         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
34313         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
34314         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
34315         * doc/posix-functions/wcscpy.texi: Mention the new module.
34317 2011-02-05  Bruno Haible  <bruno@clisp.org>
34319         New module 'wcsnlen'.
34320         * modules/wcsnlen: New file.
34321         * lib/wchar.in.h (wcsnlen): New declaration.
34322         * lib/wcsnlen.c: New file.
34323         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
34324         * m4/wcsnlen.m4: New file.
34325         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
34326         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
34327         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
34328         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
34329         * doc/posix-functions/wcsnlen.texi: Mention the new module.
34331 2011-02-05  Bruno Haible  <bruno@clisp.org>
34333         New module 'wcslen'.
34334         * modules/wcslen: New file.
34335         * lib/wchar.in.h (wcslen): New declaration.
34336         * lib/wcslen.c: New file.
34337         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
34338         * m4/wcslen.m4: New file.
34339         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
34340         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
34341         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
34342         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
34343         * doc/posix-functions/wcslen.texi: Mention the new module.
34345 2011-02-05  Bruno Haible  <bruno@clisp.org>
34347         New module 'wmemset'.
34348         * modules/wmemset: New file.
34349         * lib/wchar.in.h (wmemset): New declaration.
34350         * lib/wmemset.c: New file.
34351         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
34352         * m4/wmemset.m4: New file.
34353         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
34354         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
34355         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
34356         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
34357         * doc/posix-functions/wmemset.texi: Mention the new module.
34359 2011-02-05  Bruno Haible  <bruno@clisp.org>
34361         New module 'wmemmove'.
34362         * modules/wmemmove: New file.
34363         * lib/wchar.in.h (wmemmove): New declaration.
34364         * lib/wmemmove.c: New file.
34365         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
34366         * m4/wmemmove.m4: New file.
34367         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
34368         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
34369         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
34370         HAVE_WMEMMOVE.
34371         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
34372         * doc/posix-functions/wmemmove.texi: Mention the new module.
34374 2011-02-05  Bruno Haible  <bruno@clisp.org>
34376         New module 'wmemcpy'.
34377         * modules/wmemcpy: New file.
34378         * lib/wchar.in.h (wmemcpy): New declaration.
34379         * lib/wmemcpy.c: New file.
34380         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
34381         * m4/wmemcpy.m4: New file.
34382         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
34383         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
34384         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
34385         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
34386         * doc/posix-functions/wmemcpy.texi: Mention the new module.
34388 2011-02-05  Bruno Haible  <bruno@clisp.org>
34390         New module 'wmemcmp'.
34391         * modules/wmemcmp: New file.
34392         * lib/wchar.in.h (wmemcmp): New declaration.
34393         * lib/wmemcmp.c: New file.
34394         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
34395         * m4/wmemcmp.m4: New file.
34396         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
34397         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
34398         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
34399         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
34400         * doc/posix-functions/wmemcmp.texi: Mention the new module.
34402 2011-02-07  Jim Meyering  <meyering@redhat.com>
34404         di-set, ino-map: new modules, from coreutils
34405         * lib/di-set.c: New file.
34406         * lib/di-set.h: Likewise.
34407         * lib/ino-map.c: Likewise.
34408         * lib/ino-map.h: Likewise.
34409         * modules/di-set: Likewise.
34410         * modules/di-set-tests: Likewise.
34411         * modules/ino-map: Likewise.
34412         * modules/ino-map-tests: Likewise.
34413         * tests/test-di-set.c: Likewise.
34414         * tests/test-ino-map.c: Likewise.
34416 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
34418         getloadavg: merge minor changes from Emacs
34420         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
34421         (getloadavg): Use memset, not bzero.
34423         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
34424         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
34425         clash (bug#86).
34427 2010-11-14  Bruno Haible  <bruno@clisp.org>
34429         Allow multiple gnulib generated replacements to coexist.
34430         * lib/getopt.in.h (struct option): Avoid identical redefinition.
34431         * lib/inttypes.in.h (imaxdiv_t): Likewise.
34432         * lib/langinfo.in.h (nl_item): Likewise.
34433         * lib/math.in.h (_NaN, NAN): Likewise.
34434         * lib/netdb.in.h (struct addrinfo): Likewise.
34435         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
34436         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
34437         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
34438         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
34439         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
34440         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
34441         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
34442         pthread_mutexattr_init, pthread_mutexattr_settype,
34443         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
34444         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
34445         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
34446         pthread_spin_trylock, pthread_spin_unlock): Likewise.
34447         * lib/sched.in.h (struct sched_param): Likewise.
34448         * lib/se-selinux.in.h (security_class_t, security_context_t,
34449         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
34450         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
34451         lsetfilecon, fsetfilecon, security_check_context,
34452         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
34453         Likewise.
34454         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
34455         Likewise.
34456         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
34457         _gl_function_taking_int_returning_void_t, union sigval,
34458         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
34459         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
34460         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
34461         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
34462         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
34463         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
34464         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
34465         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
34466         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
34467         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
34468         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
34469         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
34470         socklen_t, rpl_fd_isset): Likewise.
34471         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
34472         * lib/sys_time.in.h (struct timeval): Likewise.
34473         * lib/sys_times.in.h (struct tms): Likewise.
34474         * lib/sys_utsname.in.h (struct utsname):
34475         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
34476         * lib/unistd.in.h (getpagesize): Likewise.
34477         * lib/wchar.in.h (mbstate_t): Likewise.
34478         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
34479         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
34480         towlower, towupper): Likewise.
34481         Reported by Sam Steingold <sds@gnu.org>.
34483 2011-02-05  Eric Blake  <eblake@redhat.com>
34485         unsetenv: work around Haiku issues
34486         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
34487         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
34489 2010-12-30  Bruce Korb  <bkorb@gnu.org>
34491         libposix: avoid calling error() within libposix
34492         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
34493         is defined.
34495 2011-02-05  Eric Blake  <eblake@redhat.com>
34497         strerror_r-posix: port to cygwin
34498         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
34499         implementation.
34500         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
34501         * tests/test-strerror_r.c (main): Fix test.
34502         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
34503         issue.
34505 2011-02-05  Bruno Haible  <bruno@clisp.org>
34507         New module 'wmemchr'.
34508         * modules/wmemchr: New file.
34509         * lib/wchar.in.h (wmemchr): New declaration.
34510         * lib/wmemchr.c: New file.
34511         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
34512         * m4/wmemchr.m4: New file.
34513         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
34514         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
34515         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
34516         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
34517         * doc/posix-functions/wmemchr.texi: Mention the new module.
34519 2011-02-04  Eric Blake  <eblake@redhat.com>
34521         fdopendir: detect FreeBSD bug
34522         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
34523         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
34525 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
34527         stdbool: do not define HAVE_STDBOOL_H
34528         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
34529         AC_HEADER_STDBOOL.  All uses changed.  Do not define
34530         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
34531         imported from the latest Autoconf git.  It was motivated by Emacs,
34532         which uses gnulib but does not need HAVE_STDBOOL_H.
34534 2011-02-04  Bruno Haible  <bruno@clisp.org>
34536         wcsnrtombs: Prepare for new module wwcsnrtombs.
34537         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
34538         * lib/wcsnrtombs.c: Include it.
34539         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
34541         wcsrtombs: Prepare for new module wwcsrtombs.
34542         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
34543         * lib/wcsrtombs.c: Include it.
34544         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
34546         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
34547         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
34548         * lib/mbsnrtowcs.c: Include it.
34549         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
34551         mbsrtowcs: Prepare for new module mbsrtowwcs.
34552         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
34553         * lib/mbsrtowcs.c: Include it.
34554         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
34556 2011-02-04  Bruno Haible  <bruno@clisp.org>
34558         vasnprintf: Reduce use of malloc for small format strings.
34559         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
34560         (arguments): Add room for the first 7 arguments.
34561         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
34562         (char_directives, u8_directives, u16_directives, u32_directives): Add
34563         room for the first 7 directives.
34564         * lib/printf-parse.c: Include <string.h>.
34565         (PRINTF_PARSE): Change memory handling code so that it uses the first
34566         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
34567         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
34568         Reported by Pádraig Brady <P@draigbrady.com>.
34570 2011-01-31  Eric Blake  <eblake@redhat.com>
34572         dup2: work around Haiku bug
34573         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
34574         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
34575         * doc/posix-functions/dup2.texi (dup2): Document the bug.
34576         * tests/test-dup2.c (main): Enhance test.
34578 2011-01-31  Simon Josefsson  <simon@josefsson.org>
34580         doc: off_t is not available in eglibc 2.11.2 stdio.h.
34581         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
34582         declared by eglibc 2.11.2.
34583         * lib/stdio.in.h: Likewise.
34585 2011-01-31  Eric Blake  <eblake@redhat.com>
34587         ignore-value: add missing test dependency
34588         * tests/test-ignore-value.c: Revert previous change; stdio.h
34589         provides off_t.
34590         * modules/ignore-value-tests (Depends-on): Add missing dependency.
34592 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
34594         mktime: clarify long_int width checking
34595         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
34596         the top level, to make it clearer that the assumption about
34597         long_int width is being checked.  See
34598         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
34600 2011-01-30  Simon Josefsson  <simon@josefsson.org>
34602         ignore-value: Fix self-test.
34603         * tests/test-ignore-value.c: Include sys/types.h for off_t.
34605 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
34607         TYPE_MAXIMUM: avoid theoretically undefined behavior
34608         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
34609         negative number, which the C Standard says has undefined behavior.
34610         In practice this is not a problem, but might as well do it by the book.
34611         Reported by Rich Felker and Eric Blake; see
34612         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
34613         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
34614         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
34615         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34616         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
34617         * m4/stdint.m4 (gl_STDINT_H): Likewise.
34618         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
34620         mktime: #undef mktime before #defining it
34621         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
34623         mktime: systematically normalize tm_isdst comparisons
34624         * lib/mktime.c (isdst_differ): New function.
34625         (__mktime_internal): Use it systematically for all isdst comparisons.
34626         This completes the fix for libc BZ #6723, and removes the need for
34627         normalizing tm_isdst.  See
34628         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
34629         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
34631         mktime: fix some integer overflow issues and sidestep the rest
34633         This was prompted by a bug report by Benjamin Lindner for MinGW
34634         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
34635         His bug is due to signed integer overflow (0 - INT_MIN), and I
34636         I scanned through mktime.c looking for other integer overflow
34637         problems, fixing all the bugs I found.
34639         Although the C Standard says the resulting code is still not safe
34640         in the presence of integer overflow, in practice it should be good
34641         enough for all real-world two's-complement implementations, except
34642         for debugging environments that deliberately trap on integer
34643         overflow (e.g., gcc -ftrapv).
34645         * lib/mktime.c (WRAPV): New macro.
34646         (SHR): Also check that long_int and time_t shift right in the
34647         usual way, before using the fast-but-unportable method.
34648         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
34649         used.  The code already assumed two's complement, so there's
34650         no need to test for alternatives.  All uses removed.
34651         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
34652         the C standard.  Problem reported by Rich Felker in
34653         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
34654         (twos_complement_arithmetic): Also check long_int and time_t.
34655         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
34656         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
34657         (__mktime_internal): Avoid integer overflow with unary subtraction
34658         in two instances where -1 - X is an adequate replacement for -X,
34659         since the calculations are approximate.
34661 2011-01-29  Eric Blake  <eblake@redhat.com>
34663         mktime: avoid infinite loop
34664         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
34665         type; behavior is still undefined but portable to all known targets.
34666         Reported by Rich Felker.
34668 2011-01-29  Simon Josefsson  <simon@josefsson.org>
34670         rename, unlink, same-inode: Relicense.
34671         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
34672         * modules/unlink (License): Likewise.
34673         * modules/same-inode (License): Likewise.
34675 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
34677         mktime: avoid problems on NetBSD 5 / i386
34678         * lib/mktime.c (long_int): New type.  This works around a problem
34679         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
34680         but time_t is 64 bits, and where I expect the existing code is
34681         wrong in some cases.
34682         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
34683         (ydhms_diff): Bring back the compile-time check for wide-enough
34684         year and yday.
34686         mktime: fix misspelling in comment
34687         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
34688         This merges all recent glibc changes of importance.
34690 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34692         move-if-change: cope with concurrent mv of identical file.
34693         * build-aux/move-if-change (CMPPROG): Accept environment
34694         variable as an override for `cmp'.
34695         (usage): Document CMPPROG.
34696         Adjust comparison to drop stdout.  Cope with failure of mv if
34697         the target file exists and is identical to the source, for
34698         parallel builds.
34699         Report from H.J. Lu against binutils in PR binutils/12283.
34701 2011-01-28  Bruce Korb  <bkorb@gnu.org>
34703         * users.txt: Mention sharutils.
34705 2011-01-28  Simon Josefsson  <simon@josefsson.org>
34707         * users.txt: Mention OATH Toolkit.
34709 2011-01-27  Bruno Haible  <bruno@clisp.org>
34711         Prepare for supporting FreeBSD 10.
34712         * build-aux/config.libpath: Remove handling of freebsd1*.
34714 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
34716         Prepare for supporting FreeBSD 10.
34717         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
34718         match FreeBSD 10.0.
34720 2011-01-27  Bruno Haible  <bruno@clisp.org>
34722         vma-iter, get-rusage-as: Add OpenBSD support.
34723         * modules/vma-iter (configure.ac): Test for mquery.
34724         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
34725         * lib/vma-iter.c: Include <sys/mman.h>.
34726         (vma_iterate): Add an implementation based on mquery().
34727         * lib/resource-ext.h (get_rusage_as): Update comments.
34728         * lib/get-rusage-as.c: Likewise.
34729         * lib/get-rusage-data.c: Likewise.
34731 2011-01-26  Karl Berry  <karl@gnu.org>
34733         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
34734         variables to make it easier to override the makeinfo program used.
34736 2011-01-26  Eric Blake  <eblake@redhat.com>
34738         fcntl: work around Haiku F_DUPFD bugs
34739         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
34740         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
34741         cloexec bit on duplication.
34742         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
34744 2011-01-26  Bruno Haible  <bruno@clisp.org>
34746         Enable memory leak tests on AIX.
34747         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
34748         * tests/test-fprintf-posix3.c (main): Likewise.
34750 2011-01-26  Bruno Haible  <bruno@clisp.org>
34752         Tests for module 'get-rusage-data'.
34753         * modules/get-rusage-data-tests: New file.
34754         * tests/test-get-rusage-data.c: New file.
34756         New module 'get-rusage-data'.
34757         * lib/resource-ext.h (get_rusage_data): New declaration.
34758         * lib/get-rusage-data.c: New file.
34759         * modules/get-rusage-data: New file.
34761 2011-01-25  Bruno Haible  <bruno@clisp.org>
34763         get-rusage-as: Allow for easier testing.
34764         * lib/resource-ext.h (get_rusage_as): Add comment.
34765         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
34766         (main): New function for interactive testing.
34768 2011-01-25  Bruno Haible  <bruno@clisp.org>
34770         vma-iter: Treat Haiku like BeOS.
34771         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
34772         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
34774 2011-01-25  Eric Blake  <eblake@redhat.com>
34776         c-stack: fix regression on cygwin when libsigsegv is present
34777         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
34779 2011-01-24  Bruno Haible  <bruno@clisp.org>
34781         vma-iter: Avoid empty intervals.
34782         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
34783         on an empty interval.
34785 2011-01-24  Jim Meyering  <meyering@redhat.com>
34787         u64: remove unnecessary #include
34788         * lib/u64.h: Don't include <stddef.h>.  It was not used.
34790 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
34792         Allow the user to avoid the HAVE_RAW_DECL_* macros.
34793         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
34795 2011-01-23  Bruno Haible  <bruno@clisp.org>
34797         New module 'vma-iter'.
34798         * lib/vma-iter.h: New file.
34799         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
34800         * modules/vma-iter: New file.
34801         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
34802         for get_rusage_as_via_iterator.
34803         (vma_iterate_callback): New function.
34804         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
34805         * modules/get-rusage-as (Depends-on): Add vma-iter.
34807 2011-01-23  Bruno Haible  <bruno@clisp.org>
34809         uninorm: Tweak includes.
34810         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
34811         Reported by Jim Meyering.
34813 2011-01-23  Bruno Haible  <bruno@clisp.org>
34815         get-rusage-as: Improve on NetBSD.
34816         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
34817         /proc, like on FreeBSD.
34819 2011-01-23  Jim Meyering  <meyering@redhat.com>
34821         xreadlink.h: remove unnecessary #include
34822         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
34824         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
34825         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
34827 2011-01-23  Bruno Haible  <bruno@clisp.org>
34829         get-rusage-as: Fix bug.
34830         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
34831         original limit when aborting the first loop.
34833 2011-01-23  Bruno Haible  <bruno@clisp.org>
34835         wctype: Ensure valid C syntax.
34836         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
34837         unconditionally, instead of gl_NEXT_HEADERS conditionally.
34839 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
34841         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
34842         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
34843         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
34844         as they are needed only for configure's test case.
34845         This removes two unnecessary symbols from config.h.
34847         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
34848         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
34849         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
34850         AC_CHECK_HEADERS_ONCE on a header that we also invoke
34851         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
34852         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
34853         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
34854         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
34855         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34856         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
34857         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
34858         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34859         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34860         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
34861         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
34862         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
34863         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
34864         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
34866 2011-01-21  Eric Blake  <eblake@redhat.com>
34868         maintainer-makefile: work with older git for submodule check
34869         * top/maint.mk (public-submodule-commit): Rewrite to avoid
34870         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
34871         Reported by Matthias Bolte.
34873         bootstrap: minor portability fixes
34874         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
34875         (usage): Omit leading capital and trailing . on help phrases, per
34876         GNU Coding Standards.
34877         (check_versions, top level): Prefix messages with script name.
34879 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
34881         bootstrap: support --no-git option
34882         * build-aux/bootstrap: Add --no-git option, to be used when
34883         --gnulib-srcdir points to the exact desired checkout.
34885 2011-01-21  Eric Blake  <eblake@redhat.com>
34887         strerror_r-posix: work with glibc 2.13
34888         * lib/strerror_r.c (strerror_r): Fix return type.
34890 2011-01-21  Pádraig Brady  <P@draigBrady.com>
34891             Bruno Haible  <bruno@clisp.org>
34893         uN_strstr: New unit tests.
34894         * modules/unistr/u8-strstr-tests: New file.
34895         * modules/unistr/u16-strstr-tests: New file.
34896         * modules/unistr/u32-strstr-tests: New file.
34897         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
34898         * tests/unistr/test-u8-strstr.c: New file.
34899         * tests/unistr/test-u16-strstr.c: New file.
34900         * tests/unistr/test-u32-strstr.c: New file.
34902 2011-01-21  Pádraig Brady  <P@draigBrady.com>
34903             Bruno Haible  <bruno@clisp.org>
34905         Make uN_strstr functions O(n) worst-case.
34906         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
34907         16-bit and 32-bit unit cases, use the unibyte algorithm from
34908         lib/mbsstr.c.
34909         * lib/unistr/u8-strstr.c: Include <string.h>.
34910         (UNIT_IS_UINT8_T): New macro.
34911         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
34912         (U_STRLEN, U_STRNLEN): New macros.
34913         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
34914         (U_STRLEN, U_STRNLEN): New macros.
34915         * modules/unistr/u8-strstr (Depends-on): Add strstr.
34916         (configure.ac): Update required libunistring version.
34917         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
34918         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
34919         malloca.
34920         (configure.ac): Update required libunistring version.
34921         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
34922         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
34923         malloca.
34924         (configure.ac): Update required libunistring version.
34926 2011-01-21  Pádraig Brady  <P@draigBrady.com>
34927             Bruno Haible  <bruno@clisp.org>
34929         Prepare for faster uN_strstr functions.
34930         * lib/str-kmp.h: Support definable UNITs.
34931         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
34932         needle_len argument.
34933         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
34934         * lib/mbscasestr.c (mbscasestr): Likewise.
34936 2011-01-21  Pádraig Brady <P@draigBrady.com>
34938         malloca-tests: make faster by unsetting MALLOC_PERTURB_
34939         * tests/test-malloca.c (main): Unset the environment variable
34940         to greatly speed up the test.
34941         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
34942         * modules/malloca-tests: Depend on unsetenv.
34944 2011-01-21  Pádraig Brady <P@draigBrady.com>
34946         ignore-value: remove stdint dependency
34947         * lib/ignore-value.h: Remove <stdint.h>
34948         * modules/ignore-value: Remove stdint dependency.
34950 2011-01-21  Jim Meyering  <meyering@redhat.com>
34952         maint.mk: adjust variable name to be consistent with other gl_ vars
34953         * top/maint.mk (gl_public_submodule_commit): Rename the variable
34954         to be lower case.
34956 2011-01-20  Jim Meyering  <meyering@redhat.com>
34958         maint.mk: make "check" depend on public-submodule-commit by default
34959         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
34961 2011-01-20  Bruno Haible  <bruno@clisp.org>
34963         mbfile, mbiter: Complete change from 2008-12-21.
34964         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
34965         * m4/mbiter.m4 (gl_MBITER): Likewise.
34967 2011-01-20  Jim Meyering  <meyering@redhat.com>
34969         init.sh: insert space between each function name and "()"
34970         * tests/init.sh: Make it a little easier to see that a function's
34971         name is "warn_", and not "warn" when looking at the first part of
34972         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
34974 2011-01-20  Jim Meyering  <meyering@redhat.com>
34976         mountlist: clean up code formatting
34977         * lib/mountlist.c (read_file_system_list): Split a long line,
34978         correct bracing style, use NULL in place of "(struct statfs *)0",
34979         don't parenthesize return value, add spaces around "=" and after
34980         ";-in-for-stmt".
34982 2011-01-14  Markus Duft <mduft@gentoo.org>
34984         mountlist: add support for Interix
34985         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
34986         Apply statvfs to all entries of /dev/fs.
34987         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
34988         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
34990 2011-01-20  Jim Meyering  <meyering@redhat.com>
34992         maint.mk: improve the public-submodule-commit rule
34993         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
34994         to suppress printing of its commands... unless V=1.
34995         Add git submodule's --quiet option to suppress printing of e.g.,
34996         "Entering gnulib" output.
34997         "cd" into $(srcdir) before running git submodule.
34999 2011-01-20  Bruno Haible  <bruno@clisp.org>
35001         include_next: Fix bug introduced on 2011-01-18.
35002         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
35003         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
35004         ac_cv_header_... variable if the second argument is not 'check'.
35005         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
35006         gl_NEXT_HEADERS_INTERNAL.
35008 2011-01-20  Bruno Haible  <bruno@clisp.org>
35010         Allow the user to avoid the GNULIB_TEST_* macros.
35011         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
35012         Suggested by Paul Eggert.
35014 2011-01-14  Jim Meyering  <meyering@redhat.com>
35016         bootstrap: avoid failure when there is no .gitmodules file
35017         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
35018         has been assigned to, even when its value is the empty string.
35019         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
35020         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
35021         Reported by John W. Eaton <jwe@gnu.org>.
35023 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
35025         assume <ctype.h>, ..., <time.h> exist
35026         For years gnulib has been assuming the existence of the headers
35027         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
35028         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
35029         them, since they don't appear to be needed.
35030         * README (Portability guidelines): Document this.
35031         * lib/flock.c: Assume <fcntl.h> exists.
35032         * lib/regex_internal.h: Assume <locale.h> exists.
35033         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
35034         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
35035         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
35036         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
35037         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
35038         * m4/regex.m4 (gl_REGEX): Likewise.
35039         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
35040         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
35041         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
35042         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
35043         * tests/test-argp.c: Likewise.
35044         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
35046         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
35047         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
35048         AA_APPLE_UNIVERSAL_BUILD.  See
35049         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
35050         * NEWS: Document this.
35052 2011-01-19  Eric Blake  <eblake@redhat.com>
35054         c-stack: assume stack overflow if SA_SIGINFO unsupported
35055         * lib/c-stack.c (SIGACTION_WORKS): Rename...
35056         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
35057         sigaction will work.
35058         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
35059         behavior match Linux.
35060         * tests/test-c-stack.c (main): Prefer NULL for pointers.
35062         stdbool-tests: accommodate Haiku
35063         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
35065         binary-io: fix O_TEXT on Haiku
35066         * modules/binary-io (Depends-on): Add fcntl-h.
35067         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
35068         than blindly undefining O_TEXT.
35069         Reported by Scott McCreary.
35071 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
35073         include_next: do not check for standard headers like stddef.h
35075         I found this problem when modifying Emacs to use gnulib.
35076         I noticed that it added HAVE_STDDEF_H to config.h, even though
35077         gnulib always assumes <stddef.h> exists as per README and this
35078         symbol is unnecessary.
35079         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
35080         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
35081         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
35082         faster for headers like stddef.h that are known to exist.
35083         (gl_CHECK_NEXT_HEADERS): Use it.
35084         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
35085         rather than gl_CHECK_NEXT_HEADERS.
35086         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
35087         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
35089 2011-01-18  Eric Blake  <eblake@redhat.com>
35091         ansi-c++-opt: skip C++ dependency style if C++ is unused
35092         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
35093         tests when we know C++ compilation is not desired.
35094         Reported by Scott McCreary.
35096 2011-01-18  Bruno Haible  <bruno@clisp.org>
35098         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
35099         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
35100         (main): Perform test also when getrlimit and setrlimit don't exist or
35101         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
35102         limiting the address space size using setrlimit, compare the address
35103         space size before and after the the test.
35104         * tests/test-dprintf-posix2.c: Likewise.
35105         * tests/test-fprintf-posix3.sh: Update skip messages.
35106         * tests/test-dprintf-posix2.sh: Likewise.
35107         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
35108         * modules/dprintf-posix-tests (Depends-on): Likewise.
35109         Reported by Bruce Korb <bkorb@gnu.org> and
35110         Gary V. Vaughan <gary@gnu.org>.
35112 2011-01-18  Bruno Haible  <bruno@clisp.org>
35114         get-rusage-as: Improvement for Cygwin.
35115         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
35116         areas that are merely reserved.
35118 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
35120         strftime: remove dependencies on multibyte modules
35122         strftime depended on mbrlen, mbsinit, and wchar, but these modules
35123         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
35124         only if __osf__ is defined, and I suspect OSF doesn't need these
35125         other modules.  If my guess is wrong, we'll need to come up with a
35126         variant of strftime that doesn't need the multibyte modules.
35128         I discovered this problem when attempting modify Emacs to use the
35129         strftime module.  With the previous gnulib, this caused Emacs to
35130         need 31 new files, ranging from lib/config.charset to
35131         m4/wint_t.m4.  This was overkill and I expect would be offputting
35132         to the Emacs maintainers.  After this change, only 6 new files are
35133         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
35134         stdbool.m4, and tm_gmtoff.m4.
35136         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
35137         Suggested by Bruno Haible in
35138         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
35139         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
35140         and do not check for wchar.h.
35141         * modules/strftime (Files): Remove m4/mbstate_t.m4.
35142         (Depends-on): Remove mbrlen, mbsinit, wchar.
35144 2011-01-18  Bruno Haible  <bruno@clisp.org>
35146         Tests for module 'get-rusage-as'.
35147         * modules/get-rusage-as-tests: New file.
35148         * tests/test-get-rusage-as.c: New file.
35150         New module 'get-rusage-as'.
35151         * modules/get-rusage-as: New file.
35152         * lib/resource-ext.h: New file.
35153         * lib/get-rusage-as.c: New file.
35155 2011-01-17  Eric Blake  <eblake@redhat.com>
35157         sigaction: relax license from LGPLv3+ to LGPLv2+
35158         * modules/sigaction (License): Relax to LGPLv2+.
35160 2011-01-14  Bruno Haible  <bruno@clisp.org>
35162         filemode: Make function declarations usable in C++ mode.
35163         * lib/filemode.h: Enclose function declarations in extern "C" block.
35164         Reported by John W. Eaton <jwe@gnu.org>.
35166 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
35168         save-cwd: no longer include "xgetcwd.h"
35169         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
35170         This avoids a compilation failure in projects that use save-cwd
35171         without also using the xgetcwd module.
35173 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
35175         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
35176         This is so that a program like Emacs, which needs only dtoastr,
35177         does not have to bother with distributing and compiling ftoastr
35178         and ldtoastr.
35179         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
35180         * modules/dtoastr, modules/ldtoastr: New files.
35181         * modules/ftoastr: Now works just for 'float'.
35182         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
35183         (Makefile.am): Remove ftoastr.h (not needed and no effect),
35184         dtoastr.c, ldtoastr.c.
35186 2011-01-11  Jim Meyering  <meyering@redhat.com>
35188         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
35189         There is no need to work around the lack of the fchdir function,
35190         since gnulib can now provide a replacement when required.
35191         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
35192         * modules/save-cwd (Depends-on): Add fchdir.
35194 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
35196         openat, save-cwd: avoid xmalloc
35198         This removes a direct (but undocumented) dependency of openat on
35199         xalloc, along with an indirect dependency via save-cwd.  It also
35200         removes a dependency of save-cwd on xgetcwd, and thereby
35201         indirectly on xalloc.  This change causes the openat substitute
35202         to fall back on save_cwd when memory is tight, and for save_cwd to
35203         fail instead of dying when memory is tight, but that's good enough.
35204         Problem and initial idea for fix reported by Bastien Roucaries in
35205         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
35207         * lib/openat-proc.c: Include stdlib.h (for malloc), not
35208         xalloc.h (for xmalloc).
35209         (openat_proc_name): Use malloc, not xmalloc.
35210         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
35211         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
35213         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
35214         This avoids heap allocation for file names whose lengths are in
35215         the range 512..1023, with the upper bound increasing to at most
35216         4031 depending on the platform's PATH_MAX.  (We do not want
35217         pathmax.h here as it might supply a non-constant PATH_MAX.)
35218         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
35219         Perhaps they should be moved to malloca.h?
35220         (OPENAT_BUFFER_SIZE): Use them.
35222 2011-01-10  Bruno Haible  <bruno@clisp.org>
35224         doc: Update users.txt.
35225         * users.txt: Add recutils.
35227 2011-01-09  Karl Berry  <karl@gnu.org>
35229         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
35231         * doc/configmake.texi: New file.
35232         * doc/gnulib.texi: Include it.
35233         * modules/configmake: Move documentation from here.
35235 2011-01-09  Bruno Haible  <bruno@clisp.org>
35237         Update to Unicode 6.0.0.
35238         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
35239         (get_lbp): Update for Unicode 6.0.0.
35240         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
35241         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
35242         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
35243         U+11001, U+11038..U+11046. Remove U+06DE.
35244         (uc_width): Fix bounds of planes.
35245         * tests/uniwidth/test-uc_width2.sh: Same updates as in
35246         lib/uniwidth/width.c.
35247         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
35248         trailing whitespace removed.
35249         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
35250         without comments, but with the original copyright notice.
35251         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
35252         * lib/unicase/ignorable.h: Likewise.
35253         * lib/unicase/tocasefold.h: Likewise.
35254         * lib/unicase/tolower.h: Likewise.
35255         * lib/unicase/totitle.h: Likewise.
35256         * lib/unicase/toupper.h: Likewise.
35257         * lib/unictype/bidi_of.h: Likewise.
35258         * lib/unictype/blocks.h: Likewise.
35259         * lib/unictype/categ_C.h: Likewise.
35260         * lib/unictype/categ_Cn.h: Likewise.
35261         * lib/unictype/categ_L.h: Likewise.
35262         * lib/unictype/categ_Ll.h: Likewise.
35263         * lib/unictype/categ_Lm.h: Likewise.
35264         * lib/unictype/categ_Lo.h: Likewise.
35265         * lib/unictype/categ_Lu.h: Likewise.
35266         * lib/unictype/categ_M.h: Likewise.
35267         * lib/unictype/categ_Mc.h: Likewise.
35268         * lib/unictype/categ_Me.h: Likewise.
35269         * lib/unictype/categ_Mn.h: Likewise.
35270         * lib/unictype/categ_N.h: Likewise.
35271         * lib/unictype/categ_Nd.h: Likewise.
35272         * lib/unictype/categ_No.h: Likewise.
35273         * lib/unictype/categ_P.h: Likewise.
35274         * lib/unictype/categ_Po.h: Likewise.
35275         * lib/unictype/categ_S.h: Likewise.
35276         * lib/unictype/categ_Sc.h: Likewise.
35277         * lib/unictype/categ_Sk.h: Likewise.
35278         * lib/unictype/categ_Sm.h: Likewise.
35279         * lib/unictype/categ_So.h: Likewise.
35280         * lib/unictype/categ_of.h: Likewise.
35281         * lib/unictype/combining.h: Likewise.
35282         * lib/unictype/ctype_alnum.h: Likewise.
35283         * lib/unictype/ctype_alpha.h: Likewise.
35284         * lib/unictype/ctype_graph.h: Likewise.
35285         * lib/unictype/ctype_lower.h: Likewise.
35286         * lib/unictype/ctype_print.h: Likewise.
35287         * lib/unictype/ctype_punct.h: Likewise.
35288         * lib/unictype/ctype_upper.h: Likewise.
35289         * lib/unictype/decdigit.h: Likewise.
35290         * lib/unictype/digit.h: Likewise.
35291         * lib/unictype/numeric.h: Likewise.
35292         * lib/unictype/pr_alphabetic.h: Likewise.
35293         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
35294         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
35295         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
35296         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
35297         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
35298         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
35299         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
35300         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
35301         * lib/unictype/pr_case_ignorable.h: Likewise.
35302         * lib/unictype/pr_cased.h: Likewise.
35303         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
35304         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
35305         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
35306         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
35307         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
35308         * lib/unictype/pr_combining.h: Likewise.
35309         * lib/unictype/pr_composite.h: Likewise.
35310         * lib/unictype/pr_currency_symbol.h: Likewise.
35311         * lib/unictype/pr_decimal_digit.h: Likewise.
35312         * lib/unictype/pr_deprecated.h: Likewise.
35313         * lib/unictype/pr_format_control.h: Likewise.
35314         * lib/unictype/pr_grapheme_base.h: Likewise.
35315         * lib/unictype/pr_grapheme_extend.h: Likewise.
35316         * lib/unictype/pr_grapheme_link.h: Likewise.
35317         * lib/unictype/pr_id_continue.h: Likewise.
35318         * lib/unictype/pr_id_start.h: Likewise.
35319         * lib/unictype/pr_ideographic.h: Likewise.
35320         * lib/unictype/pr_lowercase.h: Likewise.
35321         * lib/unictype/pr_math.h: Likewise.
35322         * lib/unictype/pr_numeric.h: Likewise.
35323         * lib/unictype/pr_other_alphabetic.h: Likewise.
35324         * lib/unictype/pr_other_id_continue.h: Likewise.
35325         * lib/unictype/pr_other_math.h: Likewise.
35326         * lib/unictype/pr_punctuation.h: Likewise.
35327         * lib/unictype/pr_sentence_terminal.h: Likewise.
35328         * lib/unictype/pr_terminal_punctuation.h: Likewise.
35329         * lib/unictype/pr_unassigned_code_value.h: Likewise.
35330         * lib/unictype/pr_unified_ideograph.h: Likewise.
35331         * lib/unictype/pr_uppercase.h: Likewise.
35332         * lib/unictype/pr_xid_continue.h: Likewise.
35333         * lib/unictype/pr_xid_start.h: Likewise.
35334         * lib/unictype/scripts.h: Likewise.
35335         * lib/unictype/scripts_byname.gperf: Likewise.
35336         * lib/unictype/sy_java_ident.h: Likewise.
35337         * lib/unigbrk/gbrkprop.h: Likewise.
35338         * lib/unilbrk/lbrkprop1.h: Likewise.
35339         * lib/unilbrk/lbrkprop2.h: Likewise.
35340         * lib/uninorm/decomposition-table2.h: Likewise.
35341         * lib/uniwbrk/wbrkprop.h: Likewise.
35342         * tests/unicase/test-cased.c: Likewise.
35343         * tests/unicase/test-ignorable.c: Likewise.
35344         * tests/unicase/test-uc_tolower.c: Likewise.
35345         * tests/unicase/test-uc_totitle.c: Likewise.
35346         * tests/unicase/test-uc_toupper.c: Likewise.
35347         * tests/unictype/test-categ_C.c: Likewise.
35348         * tests/unictype/test-categ_Cn.c: Likewise.
35349         * tests/unictype/test-categ_L.c: Likewise.
35350         * tests/unictype/test-categ_Ll.c: Likewise.
35351         * tests/unictype/test-categ_Lm.c: Likewise.
35352         * tests/unictype/test-categ_Lo.c: Likewise.
35353         * tests/unictype/test-categ_Lu.c: Likewise.
35354         * tests/unictype/test-categ_M.c: Likewise.
35355         * tests/unictype/test-categ_Mc.c: Likewise.
35356         * tests/unictype/test-categ_Me.c: Likewise.
35357         * tests/unictype/test-categ_Mn.c: Likewise.
35358         * tests/unictype/test-categ_N.c: Likewise.
35359         * tests/unictype/test-categ_Nd.c: Likewise.
35360         * tests/unictype/test-categ_No.c: Likewise.
35361         * tests/unictype/test-categ_P.c: Likewise.
35362         * tests/unictype/test-categ_Po.c: Likewise.
35363         * tests/unictype/test-categ_S.c: Likewise.
35364         * tests/unictype/test-categ_Sc.c: Likewise.
35365         * tests/unictype/test-categ_Sk.c: Likewise.
35366         * tests/unictype/test-categ_Sm.c: Likewise.
35367         * tests/unictype/test-categ_So.c: Likewise.
35368         * tests/unictype/test-ctype_alnum.c: Likewise.
35369         * tests/unictype/test-ctype_alpha.c: Likewise.
35370         * tests/unictype/test-ctype_graph.c: Likewise.
35371         * tests/unictype/test-ctype_lower.c: Likewise.
35372         * tests/unictype/test-ctype_print.c: Likewise.
35373         * tests/unictype/test-ctype_punct.c: Likewise.
35374         * tests/unictype/test-ctype_upper.c: Likewise.
35375         * tests/unictype/test-decdigit.h: Likewise.
35376         * tests/unictype/test-digit.h: Likewise.
35377         * tests/unictype/test-numeric.h: Likewise.
35378         * tests/unictype/test-pr_alphabetic.c: Likewise.
35379         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
35380         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
35381         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
35382         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
35383         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
35384         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
35385         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
35386         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
35387         * tests/unictype/test-pr_case_ignorable.c: Likewise.
35388         * tests/unictype/test-pr_cased.c: Likewise.
35389         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
35390         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
35391         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
35392         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
35393         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
35394         * tests/unictype/test-pr_combining.c: Likewise.
35395         * tests/unictype/test-pr_composite.c: Likewise.
35396         * tests/unictype/test-pr_currency_symbol.c: Likewise.
35397         * tests/unictype/test-pr_decimal_digit.c: Likewise.
35398         * tests/unictype/test-pr_deprecated.c: Likewise.
35399         * tests/unictype/test-pr_format_control.c: Likewise.
35400         * tests/unictype/test-pr_grapheme_base.c: Likewise.
35401         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
35402         * tests/unictype/test-pr_grapheme_link.c: Likewise.
35403         * tests/unictype/test-pr_id_continue.c: Likewise.
35404         * tests/unictype/test-pr_id_start.c: Likewise.
35405         * tests/unictype/test-pr_ideographic.c: Likewise.
35406         * tests/unictype/test-pr_lowercase.c: Likewise.
35407         * tests/unictype/test-pr_math.c: Likewise.
35408         * tests/unictype/test-pr_numeric.c: Likewise.
35409         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
35410         * tests/unictype/test-pr_other_id_continue.c: Likewise.
35411         * tests/unictype/test-pr_other_math.c: Likewise.
35412         * tests/unictype/test-pr_punctuation.c: Likewise.
35413         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
35414         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
35415         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
35416         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
35417         * tests/unictype/test-pr_uppercase.c: Likewise.
35418         * tests/unictype/test-pr_xid_continue.c: Likewise.
35419         * tests/unictype/test-pr_xid_start.c: Likewise.
35420         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
35421         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
35422         changes.
35423         * lib/unictype/categ_Cc.h: Likewise.
35424         * lib/unictype/categ_Cf.h: Likewise.
35425         * lib/unictype/categ_Co.h: Likewise.
35426         * lib/unictype/categ_Cs.h: Likewise.
35427         * lib/unictype/categ_Lt.h: Likewise.
35428         * lib/unictype/categ_Nl.h: Likewise.
35429         * lib/unictype/categ_Pc.h: Likewise.
35430         * lib/unictype/categ_Pd.h: Likewise.
35431         * lib/unictype/categ_Pe.h: Likewise.
35432         * lib/unictype/categ_Pf.h: Likewise.
35433         * lib/unictype/categ_Pi.h: Likewise.
35434         * lib/unictype/categ_Ps.h: Likewise.
35435         * lib/unictype/categ_Z.h: Likewise.
35436         * lib/unictype/categ_Zl.h: Likewise.
35437         * lib/unictype/categ_Zp.h: Likewise.
35438         * lib/unictype/categ_Zs.h: Likewise.
35439         * lib/unictype/ctype_blank.h: Likewise.
35440         * lib/unictype/ctype_cntrl.h: Likewise.
35441         * lib/unictype/ctype_digit.h: Likewise.
35442         * lib/unictype/ctype_space.h: Likewise.
35443         * lib/unictype/ctype_xdigit.h: Likewise.
35444         * lib/unictype/mirror.h: Likewise.
35445         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
35446         * lib/unictype/pr_bidi_block_separator.h: Likewise.
35447         * lib/unictype/pr_bidi_common_separator.h: Likewise.
35448         * lib/unictype/pr_bidi_control.h: Likewise.
35449         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
35450         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
35451         * lib/unictype/pr_bidi_european_digit.h: Likewise.
35452         * lib/unictype/pr_bidi_pdf.h: Likewise.
35453         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
35454         * lib/unictype/pr_bidi_whitespace.h: Likewise.
35455         * lib/unictype/pr_dash.h: Likewise.
35456         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
35457         * lib/unictype/pr_diacritic.h: Likewise.
35458         * lib/unictype/pr_extender.h: Likewise.
35459         * lib/unictype/pr_hex_digit.h: Likewise.
35460         * lib/unictype/pr_hyphen.h: Likewise.
35461         * lib/unictype/pr_ids_binary_operator.h: Likewise.
35462         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
35463         * lib/unictype/pr_ignorable_control.h: Likewise.
35464         * lib/unictype/pr_iso_control.h: Likewise.
35465         * lib/unictype/pr_join_control.h: Likewise.
35466         * lib/unictype/pr_left_of_pair.h: Likewise.
35467         * lib/unictype/pr_line_separator.h: Likewise.
35468         * lib/unictype/pr_logical_order_exception.h: Likewise.
35469         * lib/unictype/pr_non_break.h: Likewise.
35470         * lib/unictype/pr_not_a_character.h: Likewise.
35471         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
35472         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
35473         * lib/unictype/pr_other_id_start.h: Likewise.
35474         * lib/unictype/pr_other_lowercase.h: Likewise.
35475         * lib/unictype/pr_other_uppercase.h: Likewise.
35476         * lib/unictype/pr_paired_punctuation.h: Likewise.
35477         * lib/unictype/pr_paragraph_separator.h: Likewise.
35478         * lib/unictype/pr_pattern_syntax.h: Likewise.
35479         * lib/unictype/pr_pattern_white_space.h: Likewise.
35480         * lib/unictype/pr_private_use.h: Likewise.
35481         * lib/unictype/pr_quotation_mark.h: Likewise.
35482         * lib/unictype/pr_radical.h: Likewise.
35483         * lib/unictype/pr_soft_dotted.h: Likewise.
35484         * lib/unictype/pr_space.h: Likewise.
35485         * lib/unictype/pr_titlecase.h: Likewise.
35486         * lib/unictype/pr_variation_selector.h: Likewise.
35487         * lib/unictype/pr_white_space.h: Likewise.
35488         * lib/unictype/pr_zero_width.h: Likewise.
35489         * lib/unictype/sy_c_ident.h: Likewise.
35490         * lib/unictype/sy_c_whitespace.h: Likewise.
35491         * lib/unictype/sy_java_whitespace.h: Likewise.
35492         * lib/uninorm/composition-table.gperf: Likewise.
35493         * lib/uninorm/decomposition-table1.h: Likewise.
35494         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
35495         LB8.
35496         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
35497         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
35498         * modules/unictype/*: Bump version number of expected libunistring
35499         version.
35501 2011-01-09  Bruno Haible  <bruno@clisp.org>
35503         Update to Unicode 5.2.0.
35504         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
35505         trailing whitespace removed.
35507 2011-01-09  Bruno Haible  <bruno@clisp.org>
35509         New Unicode character properties, from Unicode 5.2.0.
35510         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
35511         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
35512         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
35513         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
35514         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
35515         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
35516         uc_is_property_cased, uc_is_property_case_ignorable,
35517         uc_is_property_changes_when_lowercased,
35518         uc_is_property_changes_when_uppercased,
35519         uc_is_property_changes_when_titlecased,
35520         uc_is_property_changes_when_casefolded,
35521         uc_is_property_changes_when_casemapped): New declarations.
35522         * lib/unictype/pr_byname.gperf: Add the new properties.
35523         * modules/unictype/property-byname (Depends-on): Depend on the new
35524         properties modules.
35525         * modules/unictype/property-all (Depends-on): Likewise.
35526         * MODULES.html.sh (Unicode string functions): Add
35527         unictype/property-case-ignorable, unictype/property-cased,
35528         unictype/property-changes-when-casefolded,
35529         unictype/property-changes-when-casemapped,
35530         unictype/property-changes-when-lowercased,
35531         unictype/property-changes-when-titlecased,
35532         unictype/property-changes-when-uppercased.
35534         New module 'unictype/property-changes-when-casemapped'.
35535         * modules/unictype/property-changes-when-casemapped: New file.
35536         * lib/unictype/pr_changes_when_casemapped.c: New file.
35537         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
35538         generated by gen-uni-tables.
35539         * modules/unictype/property-changes-when-casemapped-tests: New file.
35540         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
35541         automatically generated by gen-uni-tables.
35543         New module 'unictype/property-changes-when-casefolded'.
35544         * modules/unictype/property-changes-when-casefolded: New file.
35545         * lib/unictype/pr_changes_when_casefolded.c: New file.
35546         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
35547         generated by gen-uni-tables.
35548         * modules/unictype/property-changes-when-casefolded-tests: New file.
35549         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
35550         automatically generated by gen-uni-tables.
35552         New module 'unictype/property-changes-when-titlecased'.
35553         * modules/unictype/property-changes-when-titlecased: New file.
35554         * lib/unictype/pr_changes_when_titlecased.c: New file.
35555         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
35556         generated by gen-uni-tables.
35557         * modules/unictype/property-changes-when-titlecased-tests: New file.
35558         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
35559         automatically generated by gen-uni-tables.
35561         New module 'unictype/property-changes-when-uppercased'.
35562         * modules/unictype/property-changes-when-uppercased: New file.
35563         * lib/unictype/pr_changes_when_uppercased.c: New file.
35564         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
35565         generated by gen-uni-tables.
35566         * modules/unictype/property-changes-when-uppercased-tests: New file.
35567         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
35568         automatically generated by gen-uni-tables.
35570         New module 'unictype/property-changes-when-lowercased'.
35571         * modules/unictype/property-changes-when-lowercased: New file.
35572         * lib/unictype/pr_changes_when_lowercased.c: New file.
35573         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
35574         generated by gen-uni-tables.
35575         * modules/unictype/property-changes-when-lowercased-tests: New file.
35576         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
35577         automatically generated by gen-uni-tables.
35579         New module 'unictype/property-case-ignorable'.
35580         * modules/unictype/property-case-ignorable: New file.
35581         * lib/unictype/pr_case_ignorable.c: New file.
35582         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
35583         by gen-uni-tables.
35584         * modules/unictype/property-case-ignorable-tests: New file.
35585         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
35586         generated by gen-uni-tables.
35588         New module 'unictype/property-cased'.
35589         * modules/unictype/property-cased: New file.
35590         * lib/unictype/pr_cased.c: New file.
35591         * lib/unictype/pr_cased.h: New file, automatically generated by
35592         gen-uni-tables.
35593         * modules/unictype/property-cased-tests: New file.
35594         * tests/unictype/test-pr_cased.c: New file, automatically generated by
35595         gen-uni-tables.
35597 2011-01-09  Bruno Haible  <bruno@clisp.org>
35599         Update to Unicode 5.2.0.
35600         * lib/gen-uni-tables.c (output_predicate, output_category,
35601         output_combclass, output_bidi_category, output_decimal_digit_test,
35602         output_decimal_digit, output_digit_test, output_digit,
35603         output_numeric_test, output_numeric, output_mirror, output_scripts,
35604         output_scripts_byname, output_blocks, output_ident_category): Fix
35605         comment header.
35606         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
35607         get_wbp.
35608         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
35609         items.
35610         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
35611         Changes_When_Lowercased, Changes_When_Uppercased,
35612         Changes_When_Titlecased, Changes_When_Casefolded,
35613         Changes_When_Casemapped.
35614         (is_property_alphabetic, is_property_default_ignorable_code_point):
35615         Update for Unicode 5.2.0.
35616         (is_property_cased, is_property_case_ignorable,
35617         is_property_changes_when_lowercased,
35618         is_property_changes_when_uppercased,
35619         is_property_changes_when_titlecased,
35620         is_property_changes_when_casefolded,
35621         is_property_changes_when_casemapped): New functions.
35622         (output_properties): Output also the properties cased, case_ignorable,
35623         changes_when_lowercased, changes_when_uppercased,
35624         changes_when_titlecased, changes_when_casefolded,
35625         changes_when_casemapped.
35626         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
35627         Unicode TR#11 revision 17 -> 19.
35628         (LBP_CP): New enumeration value.
35629         (LBP_*): Adjust values accordingly.
35630         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
35631         TR#14 revision 22 -> 24.
35632         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
35633         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
35634         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
35635         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
35636         is_WBP_MIDLETTER.
35637         (output_composition_tables): Allow for 24 bits instead of 16 bits in
35638         the code1 and code2 of each composition rule.
35639         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
35640         * lib/unicase/ignorable.h: Likewise.
35641         * lib/unicase/tocasefold.h: Likewise.
35642         * lib/unicase/tolower.h: Likewise.
35643         * lib/unicase/totitle.h: Likewise.
35644         * lib/unicase/toupper.h: Likewise.
35645         * lib/unictype/bidi_of.h: Likewise.
35646         * lib/unictype/blocks.h: Likewise.
35647         * lib/unictype/categ_C.h: Likewise.
35648         * lib/unictype/categ_Cf.h: Likewise.
35649         * lib/unictype/categ_Cn.h: Likewise.
35650         * lib/unictype/categ_L.h: Likewise.
35651         * lib/unictype/categ_Ll.h: Likewise.
35652         * lib/unictype/categ_Lm.h: Likewise.
35653         * lib/unictype/categ_Lo.h: Likewise.
35654         * lib/unictype/categ_Lu.h: Likewise.
35655         * lib/unictype/categ_M.h: Likewise.
35656         * lib/unictype/categ_Mc.h: Likewise.
35657         * lib/unictype/categ_Mn.h: Likewise.
35658         * lib/unictype/categ_N.h: Likewise.
35659         * lib/unictype/categ_Nd.h: Likewise.
35660         * lib/unictype/categ_Nl.h: Likewise.
35661         * lib/unictype/categ_No.h: Likewise.
35662         * lib/unictype/categ_P.h: Likewise.
35663         * lib/unictype/categ_Pd.h: Likewise.
35664         * lib/unictype/categ_Po.h: Likewise.
35665         * lib/unictype/categ_S.h: Likewise.
35666         * lib/unictype/categ_Sc.h: Likewise.
35667         * lib/unictype/categ_So.h: Likewise.
35668         * lib/unictype/categ_of.h: Likewise.
35669         * lib/unictype/combining.h: Likewise.
35670         * lib/unictype/ctype_alnum.h: Likewise.
35671         * lib/unictype/ctype_alpha.h: Likewise.
35672         * lib/unictype/ctype_graph.h: Likewise.
35673         * lib/unictype/ctype_lower.h: Likewise.
35674         * lib/unictype/ctype_print.h: Likewise.
35675         * lib/unictype/ctype_punct.h: Likewise.
35676         * lib/unictype/ctype_upper.h: Likewise.
35677         * lib/unictype/decdigit.h: Likewise.
35678         * lib/unictype/digit.h: Likewise.
35679         * lib/unictype/numeric.h: Likewise.
35680         * lib/unictype/pr_alphabetic.h: Likewise.
35681         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
35682         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
35683         * lib/unictype/pr_bidi_european_digit.h: Likewise.
35684         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
35685         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
35686         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
35687         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
35688         * lib/unictype/pr_combining.h: Likewise.
35689         * lib/unictype/pr_composite.h: Likewise.
35690         * lib/unictype/pr_currency_symbol.h: Likewise.
35691         * lib/unictype/pr_dash.h: Likewise.
35692         * lib/unictype/pr_decimal_digit.h: Likewise.
35693         * lib/unictype/pr_deprecated.h: Likewise.
35694         * lib/unictype/pr_diacritic.h: Likewise.
35695         * lib/unictype/pr_extender.h: Likewise.
35696         * lib/unictype/pr_grapheme_base.h: Likewise.
35697         * lib/unictype/pr_grapheme_extend.h: Likewise.
35698         * lib/unictype/pr_grapheme_link.h: Likewise.
35699         * lib/unictype/pr_id_continue.h: Likewise.
35700         * lib/unictype/pr_id_start.h: Likewise.
35701         * lib/unictype/pr_ideographic.h: Likewise.
35702         * lib/unictype/pr_ignorable_control.h: Likewise.
35703         * lib/unictype/pr_logical_order_exception.h: Likewise.
35704         * lib/unictype/pr_lowercase.h: Likewise.
35705         * lib/unictype/pr_numeric.h: Likewise.
35706         * lib/unictype/pr_other_alphabetic.h: Likewise.
35707         * lib/unictype/pr_punctuation.h: Likewise.
35708         * lib/unictype/pr_sentence_terminal.h: Likewise.
35709         * lib/unictype/pr_terminal_punctuation.h: Likewise.
35710         * lib/unictype/pr_unassigned_code_value.h: Likewise.
35711         * lib/unictype/pr_unified_ideograph.h: Likewise.
35712         * lib/unictype/pr_uppercase.h: Likewise.
35713         * lib/unictype/pr_xid_continue.h: Likewise.
35714         * lib/unictype/pr_xid_start.h: Likewise.
35715         * lib/unictype/pr_zero_width.h: Likewise.
35716         * lib/unictype/scripts.h: Likewise.
35717         * lib/unictype/scripts_byname.gperf: Likewise.
35718         * lib/unictype/sy_java_ident.h: Likewise.
35719         * lib/unigbrk/gbrkprop.h: Likewise.
35720         * lib/unilbrk/lbrkprop1.h: Likewise.
35721         * lib/unilbrk/lbrkprop2.h: Likewise.
35722         * lib/unilbrk/lbrktables.h: Likewise.
35723         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
35724         LBP_CP. Implement rule LB30.
35725         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
35726         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
35727         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
35728         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
35729         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
35730         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
35731         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
35732         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
35733         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
35734         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
35735         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
35736         bits instead of 16 bits in the code1 and code2 of each composition
35737         rule.
35738         (uc_composition): Update for Unicode 5.2.0.
35739         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
35740         * lib/uninorm/decomposition-table2.h: Likewise.
35741         * lib/uniwbrk/wbrkprop.h: Likewise.
35742         * tests/unicase/test-cased.c: Likewise.
35743         * tests/unicase/test-ignorable.c: Likewise.
35744         * tests/unicase/test-uc_tolower.c: Likewise.
35745         * tests/unicase/test-uc_totitle.c: Likewise.
35746         * tests/unicase/test-uc_toupper.c: Likewise.
35747         * tests/unictype/test-categ_C.c: Likewise.
35748         * tests/unictype/test-categ_Cf.c: Likewise.
35749         * tests/unictype/test-categ_Cn.c: Likewise.
35750         * tests/unictype/test-categ_L.c: Likewise.
35751         * tests/unictype/test-categ_Ll.c: Likewise.
35752         * tests/unictype/test-categ_Lm.c: Likewise.
35753         * tests/unictype/test-categ_Lo.c: Likewise.
35754         * tests/unictype/test-categ_Lu.c: Likewise.
35755         * tests/unictype/test-categ_M.c: Likewise.
35756         * tests/unictype/test-categ_Mc.c: Likewise.
35757         * tests/unictype/test-categ_Mn.c: Likewise.
35758         * tests/unictype/test-categ_N.c: Likewise.
35759         * tests/unictype/test-categ_Nd.c: Likewise.
35760         * tests/unictype/test-categ_Nl.c: Likewise.
35761         * tests/unictype/test-categ_No.c: Likewise.
35762         * tests/unictype/test-categ_P.c: Likewise.
35763         * tests/unictype/test-categ_Pd.c: Likewise.
35764         * tests/unictype/test-categ_Po.c: Likewise.
35765         * tests/unictype/test-categ_S.c: Likewise.
35766         * tests/unictype/test-categ_Sc.c: Likewise.
35767         * tests/unictype/test-categ_So.c: Likewise.
35768         * tests/unictype/test-ctype_alnum.c: Likewise.
35769         * tests/unictype/test-ctype_alpha.c: Likewise.
35770         * tests/unictype/test-ctype_graph.c: Likewise.
35771         * tests/unictype/test-ctype_lower.c: Likewise.
35772         * tests/unictype/test-ctype_print.c: Likewise.
35773         * tests/unictype/test-ctype_punct.c: Likewise.
35774         * tests/unictype/test-ctype_upper.c: Likewise.
35775         * tests/unictype/test-decdigit.h: Likewise.
35776         * tests/unictype/test-digit.h: Likewise.
35777         * tests/unictype/test-numeric.h: Likewise.
35778         * tests/unictype/test-pr_alphabetic.c: Likewise.
35779         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
35780         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
35781         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
35782         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
35783         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
35784         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
35785         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
35786         * tests/unictype/test-pr_combining.c: Likewise.
35787         * tests/unictype/test-pr_composite.c: Likewise.
35788         * tests/unictype/test-pr_currency_symbol.c: Likewise.
35789         * tests/unictype/test-pr_dash.c: Likewise.
35790         * tests/unictype/test-pr_decimal_digit.c: Likewise.
35791         * tests/unictype/test-pr_deprecated.c: Likewise.
35792         * tests/unictype/test-pr_diacritic.c: Likewise.
35793         * tests/unictype/test-pr_extender.c: Likewise.
35794         * tests/unictype/test-pr_grapheme_base.c: Likewise.
35795         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
35796         * tests/unictype/test-pr_grapheme_link.c: Likewise.
35797         * tests/unictype/test-pr_id_continue.c: Likewise.
35798         * tests/unictype/test-pr_id_start.c: Likewise.
35799         * tests/unictype/test-pr_ideographic.c: Likewise.
35800         * tests/unictype/test-pr_ignorable_control.c: Likewise.
35801         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
35802         * tests/unictype/test-pr_lowercase.c: Likewise.
35803         * tests/unictype/test-pr_numeric.c: Likewise.
35804         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
35805         * tests/unictype/test-pr_punctuation.c: Likewise.
35806         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
35807         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
35808         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
35809         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
35810         * tests/unictype/test-pr_uppercase.c: Likewise.
35811         * tests/unictype/test-pr_xid_continue.c: Likewise.
35812         * tests/unictype/test-pr_xid_start.c: Likewise.
35813         * tests/unictype/test-pr_zero_width.c: Likewise.
35814         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
35815         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
35816         changed behaviour: line breaking is now disallowed between a letter
35817         or '=' and '('.
35818         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
35819         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
35820         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
35821         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
35822         * tests/uniwidth/test-uc_width2.sh: Same updates as in
35823         lib/uniwidth/width.c.
35824         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
35825         without comments, but with the original copyright notice.
35826         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
35827         changes.
35828         * lib/unictype/categ_Cc.h: Likewise.
35829         * lib/unictype/categ_Co.h: Likewise.
35830         * lib/unictype/categ_Cs.h: Likewise.
35831         * lib/unictype/categ_Lt.h: Likewise.
35832         * lib/unictype/categ_Me.h: Likewise.
35833         * lib/unictype/categ_Pc.h: Likewise.
35834         * lib/unictype/categ_Pe.h: Likewise.
35835         * lib/unictype/categ_Pf.h: Likewise.
35836         * lib/unictype/categ_Pi.h: Likewise.
35837         * lib/unictype/categ_Ps.h: Likewise.
35838         * lib/unictype/categ_Sk.h: Likewise.
35839         * lib/unictype/categ_Sm.h: Likewise.
35840         * lib/unictype/categ_Z.h: Likewise.
35841         * lib/unictype/categ_Zl.h: Likewise.
35842         * lib/unictype/categ_Zp.h: Likewise.
35843         * lib/unictype/categ_Zs.h: Likewise.
35844         * lib/unictype/ctype_blank.h: Likewise.
35845         * lib/unictype/ctype_cntrl.h: Likewise.
35846         * lib/unictype/ctype_digit.h: Likewise.
35847         * lib/unictype/ctype_space.h: Likewise.
35848         * lib/unictype/ctype_xdigit.h: Likewise.
35849         * lib/unictype/mirror.h: Likewise.
35850         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
35851         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
35852         * lib/unictype/pr_bidi_block_separator.h: Likewise.
35853         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
35854         * lib/unictype/pr_bidi_common_separator.h: Likewise.
35855         * lib/unictype/pr_bidi_control.h: Likewise.
35856         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
35857         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
35858         * lib/unictype/pr_bidi_pdf.h: Likewise.
35859         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
35860         * lib/unictype/pr_bidi_whitespace.h: Likewise.
35861         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
35862         * lib/unictype/pr_format_control.h: Likewise.
35863         * lib/unictype/pr_hex_digit.h: Likewise.
35864         * lib/unictype/pr_hyphen.h: Likewise.
35865         * lib/unictype/pr_ids_binary_operator.h: Likewise.
35866         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
35867         * lib/unictype/pr_iso_control.h: Likewise.
35868         * lib/unictype/pr_join_control.h: Likewise.
35869         * lib/unictype/pr_left_of_pair.h: Likewise.
35870         * lib/unictype/pr_line_separator.h: Likewise.
35871         * lib/unictype/pr_math.h: Likewise.
35872         * lib/unictype/pr_non_break.h: Likewise.
35873         * lib/unictype/pr_not_a_character.h: Likewise.
35874         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
35875         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
35876         * lib/unictype/pr_other_id_continue.h: Likewise.
35877         * lib/unictype/pr_other_id_start.h: Likewise.
35878         * lib/unictype/pr_other_lowercase.h: Likewise.
35879         * lib/unictype/pr_other_math.h: Likewise.
35880         * lib/unictype/pr_other_uppercase.h: Likewise.
35881         * lib/unictype/pr_paired_punctuation.h: Likewise.
35882         * lib/unictype/pr_paragraph_separator.h: Likewise.
35883         * lib/unictype/pr_pattern_syntax.h: Likewise.
35884         * lib/unictype/pr_pattern_white_space.h: Likewise.
35885         * lib/unictype/pr_private_use.h: Likewise.
35886         * lib/unictype/pr_quotation_mark.h: Likewise.
35887         * lib/unictype/pr_radical.h: Likewise.
35888         * lib/unictype/pr_soft_dotted.h: Likewise.
35889         * lib/unictype/pr_space.h: Likewise.
35890         * lib/unictype/pr_titlecase.h: Likewise.
35891         * lib/unictype/pr_variation_selector.h: Likewise.
35892         * lib/unictype/pr_white_space.h: Likewise.
35893         * lib/unictype/sy_c_ident.h: Likewise.
35894         * lib/unictype/sy_c_whitespace.h: Likewise.
35895         * lib/unictype/sy_java_whitespace.h: Likewise.
35896         * modules/uni*/*: Bump version number of expected libunistring version.
35897         Reported by Simon Josefsson.
35899 2011-01-09  Karl Heuer  <kwzh@gnu.org>
35901         useless-if-before-free: fix typo in --help and make the internal,
35902         automatic version date update process work once again.
35903         --help output contained a NUL character instead of the
35904         backslash-zero that was intended.  Also, the "must lie within
35905         the first 8 lines" line is on line 9, and hence not getting
35906         automatically updated.
35907         * build-aux/useless-if-before-free: Fix the former by adding a
35908         backslash, and the latter by condensing the three lines of what-it-does
35909         to a single line, leaving one line of slack for the future.
35911 2011-01-09  Bruno Haible  <bruno@clisp.org>
35913         uniwidth/width: Fix width of U+1D173..U+1D17A.
35914         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
35915         symbolic_width, output_width_property_test): New functions.
35916         (main): Invoke output_nonspacing_property, output_width_property_test.
35917         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
35918         U+1D173..U+1D17A.
35919         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
35920         1.
35921         * modules/uniwidth/*: Bump version number of expected libunistring
35922         version.
35923         * modules/unilbrk/*: Likewise.
35925 2011-01-08  Bruno Haible  <bruno@clisp.org>
35927         uninorm tests: Preserve copyright of Unicode data file.
35928         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
35929         Mention modifications.
35931 2011-01-08  Bruno Haible  <bruno@clisp.org>
35933         gen-uni-tables: Prepare for Unicode 5.2.0.
35934         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
35935         (debug_output_lbp, output_lbp): Update.
35937 2011-01-08  Bruno Haible  <bruno@clisp.org>
35939         unilbrk: Clarify gen-uni-tables.c code.
35940         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
35941         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
35942         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
35944 2011-01-07  Bruno Haible  <bruno@clisp.org>
35946         strtod: Restore errno when successfully parsing Infinity or NaN.
35947         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
35948         restore the original errno.
35950 2011-01-07  Bruno Haible  <bruno@clisp.org>
35952         remove test: Avoid failure on HP-UX 11.
35953         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
35955 2011-01-07  Bruno Haible  <bruno@clisp.org>
35957         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
35958         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
35959         error code.
35961 2011-01-07  Pádraig Brady <P@draigBrady.com>
35963         ignore-value: fixup comments, and add Eric Blake
35964         as an author since he rewrote the macros.
35965         * lib/ignore-value.h (ignore_value):  State that
35966         we now support aggregates.  Also specify exactly
35967         when the GCC warn_unused_result feature was added.
35969 2011-01-06  Eric Blake  <eblake@redhat.com>
35971         ignore-value: support aggregate types
35972         * lib/ignore-value.h (ignore_value): Provide separate gcc
35973         definition.
35974         * modules/ignore-value-tests: New test module.
35975         * tests/test-ignore-value.c: New test.
35977         maint.mk: improve sc_prohibit_strcmp regex
35978         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
35979         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
35980         definition of STRNEQ.
35982         signal: work around Haiku issue with SIGBUS
35983         * lib/siglist.h: Add comment.
35984         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
35985         strsignal's favoring of SIGSEGV.
35986         * tests/test-signal.c (main): Avoid test failure.
35987         * doc/posix-headers/signal.texi (signal.h): Document the issue.
35988         Reported by Scott McCreary.
35990         maint.mk: add pre-release check to ensure submodule commits are public
35991         * top/maint.mk (public-submodule-commit): New rule.
35992         (submodule-checks): New variable.
35993         (alpha beta stable): Depend on the variable.
35995 2011-01-05  Pádraig Brady <P@draigBrady.com>
35996         and Jim Meyering  <meyering@redhat.com>
35998         ignore-value: make ignore_value more generic; deprecate ignore_ptr
35999         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
36000         (ATTRIBUTE_DEPRECATED): Define.
36001         (_ignore_case): New function.
36002         (ignore_value): New macro, to replace the old function.
36003         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
36004         * modules/ignore-value (Depends-on): Add stdint.
36006 2011-01-04  Eric Blake  <eblake@redhat.com>
36008         doc: regenerate INSTALL
36009         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
36010         @firstparagraphindent support, now that autoconf dropped it.
36011         (INSTALL_PRELUDE): Reinstate old macro.
36012         * doc/install.texi: Resync from autoconf.
36013         * doc/INSTALL: Reflect recent autoconf update.
36014         * doc/INSTALL.ISO: Likewise.
36015         * doc/INSTALL.UTF-8: Likewise.
36016         Reported by Karl Berry.
36018 2011-01-04  Bruce Korb  <address@hidden>
36020         git-version-gen: avoid a sub-shell
36021         * build-aux/git-version-gen: Redirect stderr in `...` via
36022         "exec 2>...", rather than via an added sub-shell.
36024 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
36026         git-version-gen: use (...) rather than sh -c '...'
36027         * build-aux/git-version-gen: Rather than hard-coding a shell's name
36028         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
36030 2011-01-03  Jim Meyering  <meyering@redhat.com>
36032         git-version-gen: convert leading TABs to spaces
36033         * build-aux/git-version-gen: Expand leading TABs.
36035         git-version-gen: handle failed "git rev-list"
36036         * build-aux/git-version-gen: Rather than leaking a "fatal" error
36037         from git and proceeding as if it had succeeded but printed no SHA1
36038         checksums, suppress the diagnostic and handle the failure.
36039         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
36041         git-version-gen: include command name in one more diagnostic
36042         * build-aux/git-version-gen: When the required .tarball-version file
36043         was missing or unreadable, you might see the diagnostic from "cat",
36044         but no trace of the name of the invoking script.  Now, you still see
36045         the diagnostic from cat, but also get one from "git-version-gen: ".
36046         Inspired by a patch from Bruce Korb.
36048         update-copyright: adjust test to match changed code
36049         * tests/test-update-copyright.sh: Change test's expected output
36050         to match new actual output.
36052 2011-01-02  Bruno Haible  <bruno@clisp.org>
36054         getlogin_r: Avoid test failure on HP-UX 11.
36055         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
36056         ERANGE when the second argument is zero.
36057         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
36058         portability problem.
36060 2011-01-02  Bruce Korb  <bkorb@gnu.org>
36062         * build-aux/update-copyright: doc Simon's changes
36064 2011-01-02  Simon Josefsson  <simon@josefsson.org>
36066         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
36067         environment variable.
36069 2011-01-02  Bruno Haible  <bruno@clisp.org>
36071         unigbrk: Avoid gcc warnings.
36072         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
36073         unused variable.
36074         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
36075         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
36076         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
36077         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
36078         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
36079         Change type of first argument to 'const char *'.
36080         (main): Remove unused variable.
36081         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
36082         type of first argument to 'const char *'.
36083         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
36084         Likewise.
36085         (main): Change type of variable 's'.
36086         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
36087         to 'int'.
36089 2011-01-02  Bruno Haible  <bruno@clisp.org>
36091         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
36092         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
36093         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
36094         bug.
36095         * lib/pwrite.c: Undo 2010-12-31 patch.
36096         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
36098 2011-01-02  Bruno Haible  <bruno@clisp.org>
36100         pread: Fix test whether it works.
36101         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
36103 2011-01-02  Bruno Haible  <bruno@clisp.org>
36105         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
36106         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
36107         ends in "6". Don't require a specific month name. Try also the locale
36108         names found on HP-UX 11 and Solaris 7.
36110 2011-01-02  Bruno Haible  <bruno@clisp.org>
36112         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
36113         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
36114         C linkage.
36115         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
36117 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
36119         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
36120         for consistency, since the "cluster" term is not used elsewhere.
36121         * lib/unigbrk.in.h: Update name.
36122         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
36123         * lib/unigbrk/u16-grapheme-next.c: Update name.
36124         * lib/unigbrk/u16-grapheme-prev.c: Update name.
36125         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
36126         * lib/unigbrk/u32-grapheme-next.c: Update name.
36127         * lib/unigbrk/u32-grapheme-prev.c: Update name.
36128         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
36129         * lib/unigbrk/u8-grapheme-next.c: Update name.
36130         * lib/unigbrk/u8-grapheme-prev.c: Update name.
36131         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
36132         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
36133         Suggested by Bruno Haible.
36135 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
36137         Remove module 'u8-grapheme-len' as too redundant with
36138         'u8-grapheme-next'.
36139         * modules/unigbrk/u8-grapheme-len: Delete file.
36140         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
36141         * lib/unigbrk.in.h: Remove prototype for deleted function.
36142         * lib/unigbrk/u8-grapheme-len.c: Delete file.
36143         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
36145         Remove module 'u16-grapheme-len' as too redundant with
36146         'u16-grapheme-next'.
36147         * modules/unigbrk/u16-grapheme-len: Delete file.
36148         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
36149         * lib/unigbrk.in.h: Remove prototype for deleted function.
36150         * lib/unigbrk/u16-grapheme-len.c: Delete file.
36151         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
36153         Remove module 'u32-grapheme-len' as too redundant with
36154         'u32-grapheme-next'.
36155         * modules/unigbrk/u32-grapheme-len: Delete file.
36156         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
36157         * lib/unigbrk.in.h: Remove prototype for deleted function.
36158         * lib/unigbrk/u32-grapheme-len.c: Delete file.
36159         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
36161         Suggested by Bruno Haible.
36163 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
36165         * unigbrk.in.h: Fix typo: "ben" => "been".
36166         Reported by Bruno Haible.
36168 2011-01-01  Jim Meyering  <meyering@redhat.com>
36170         maint: update almost all copyright ranges to include 2011
36171         Run the new "make update-copyright" rule.
36173 2011-01-01  Jim Meyering  <meyering@redhat.com>
36175         maint: update-copyright: exempt doc/INSTALL*
36176         * Makefile (update-copyright): Also exclude doc/INSTALL*,
36177         since they are generated.  Suggested by Bruno Haible.
36179 2011-01-01  Jim Meyering  <meyering@redhat.com>
36181         maint: refine the update-copyright rule
36182         * Makefile (update-copyright): Also exclude any file that includes
36183         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
36184         code that merely generates the comment.
36186 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
36188         New module 'u8-grapheme-len'.
36189         * modules/unigbrk/u8-grapheme-len: New file.
36190         * modules/unigbrk/u8-grapheme-len-tests: New file.
36191         * lib/unigbrk.in.h: Add prototype for new function.
36192         * lib/unigbrk/u8-grapheme-len.c: New file.
36193         * tests/unigbrk/test-u8-grapheme-len.c: New file.
36195         New module 'u16-grapheme-len'.
36196         * modules/unigbrk/u16-grapheme-len: New file.
36197         * modules/unigbrk/u16-grapheme-len-tests: New file.
36198         * lib/unigbrk.in.h: Add prototype for new function.
36199         * lib/unigbrk/u16-grapheme-len.c: New file.
36200         * tests/unigbrk/test-u16-grapheme-len.c: New file.
36202         New module 'u32-grapheme-len'.
36203         * modules/unigbrk/u32-grapheme-len: New file.
36204         * modules/unigbrk/u32-grapheme-len-tests: New file.
36205         * lib/unigbrk.in.h: Add prototype for new function.
36206         * lib/unigbrk/u32-grapheme-len.c: New file.
36207         * tests/unigbrk/test-u32-grapheme-len.c: New file.
36209         New module 'u8-grapheme-next'.
36210         * modules/unigbrk/u8-grapheme-next: New file.
36211         * modules/unigbrk/u8-grapheme-next-tests: New file.
36212         * lib/unigbrk.in.h: Add prototype for new function.
36213         * lib/unigbrk/u8-grapheme-next.c: New file.
36214         * tests/unigbrk/test-u8-grapheme-next.c: New file.
36216         New module 'u16-grapheme-next'.
36217         * modules/unigbrk/u16-grapheme-next: New file.
36218         * modules/unigbrk/u16-grapheme-next-tests: New file.
36219         * lib/unigbrk.in.h: Add prototype for new function.
36220         * lib/unigbrk/u16-grapheme-next.c: New file.
36221         * tests/unigbrk/test-u16-grapheme-next.c: New file.
36223         New module 'u32-grapheme-next'.
36224         * modules/unigbrk/u32-grapheme-next: New file.
36225         * modules/unigbrk/u32-grapheme-next-tests: New file.
36226         * lib/unigbrk.in.h: Add prototype for new function.
36227         * lib/unigbrk/u32-grapheme-next.c: New file.
36228         * tests/unigbrk/test-u32-grapheme-next.c: New file.
36230         New module 'u8-grapheme-prev'.
36231         * modules/unigbrk/u8-grapheme-prev: New file.
36232         * modules/unigbrk/u8-grapheme-prev-tests: New file.
36233         * lib/unigbrk.in.h: Add prototype for new function.
36234         * lib/unigbrk/u8-grapheme-prev.c: New file.
36235         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
36237         New module 'u16-grapheme-prev'.
36238         * modules/unigbrk/u16-grapheme-prev: New file.
36239         * modules/unigbrk/u16-grapheme-prev-tests: New file.
36240         * lib/unigbrk.in.h: Add prototype for new function.
36241         * lib/unigbrk/u16-grapheme-prev.c: New file.
36242         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
36244         New module 'u32-grapheme-prev'.
36245         * modules/unigbrk/u32-grapheme-prev: New file.
36246         * modules/unigbrk/u32-grapheme-prev-tests: New file.
36247         * lib/unigbrk.in.h: Add prototype for new function.
36248         * lib/unigbrk/u32-grapheme-prev.c: New file.
36249         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
36251         New module 'u8-grapheme-breaks'.
36252         * modules/unigbrk/u8-grapheme-breaks: New file.
36253         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
36254         * lib/unigbrk.in.h: Add prototype for new function.
36255         * lib/unigbrk/u8-grapheme-breaks.c: New file.
36256         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
36258         New module 'u16-grapheme-breaks'.
36259         * modules/unigbrk/u16-grapheme-breaks: New file.
36260         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
36261         * lib/unigbrk.in.h: Add prototype for new function.
36262         * lib/unigbrk/u16-grapheme-breaks.c: New file.
36263         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
36265         New module 'u32-grapheme-breaks'.
36266         * modules/unigbrk/u32-grapheme-breaks: New file.
36267         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
36268         * lib/unigbrk.in.h: Add prototype for new function.
36269         * lib/unigbrk/u32-grapheme-breaks.c: New file.
36270         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
36272         New module 'ulc-grapheme-breaks'.
36273         * modules/unigbrk/ulc-grapheme-breaks: New file.
36274         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
36275         * m4/locale-ar.m4: New file.
36276         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
36277         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
36278         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
36280 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
36282         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
36283         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
36284         modified how this file was generated before I initially submitted
36285         the module, but failed to regenerate it.  This meant that several
36286         of the level2 entries were wrong.
36287         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
36288         Remove the division-by-2 that is folded into the table now that
36289         gbrkprop.h has been regenerated properly.  Now -1 entries are
36290         handled correctly.
36292         New module 'unigbrk/uc-gbrk-prop-tests'.
36293         * modules/unigbrk/uc-gbrk-prop-tests: New file.
36294         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
36295         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
36296         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
36298 2011-01-01  Bruno Haible  <bruno@clisp.org>
36300         Avoid use of hexadecimal escapes.
36301         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
36302         instead of hexadecimal escapes.
36304 2011-01-01  Jim Meyering  <meyering@redhat.com>
36306         maint: new rule to update copyright year ranges
36307         * Makefile (update-copyright): New rule.
36309         maint: indent with TABs in Makefile
36310         * Makefile: Expand leading sequences of spaces to TABs
36312         version-etc: update the copyright year it reports
36313         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
36315 2010-12-31  Bruno Haible  <bruno@clisp.org>
36317         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
36318         * lib/isfinite.c (zerof, zerod, zerol): New variables.
36319         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
36320         zero.
36322 2010-12-31  Bruno Haible  <bruno@clisp.org>
36324         pwrite: Work around HP-UX 11.11 bug.
36325         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
36326         works and set REPLACE_PWRITE if not.
36327         * lib/pwrite.c (pwrite): Add an implementation that uses the system
36328         function.
36329         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
36331 2010-12-31  Bruno Haible  <bruno@clisp.org>
36333         pread: Work around HP-UX 11 bugs.
36334         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
36335         and set REPLACE_PREAD if not.
36336         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
36338 2010-12-31  Eric Blake  <eblake@redhat.com>
36340         nl_langinfo: fix YESEXPR on Irix 6.5
36341         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
36342         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
36343         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
36344         it.
36346 2010-12-31  Bruno Haible  <bruno@clisp.org>
36348         iconv: Document HP-UX 11 bug.
36349         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
36351 2010-12-31  Bruno Haible  <bruno@clisp.org>
36353         ldexpl: Fix link error on HP-UX 11.
36354         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
36355         LDEXPL_LIBM, using $ISNANL_LIBM.
36357 2010-12-31  Eric Blake  <eblake@redhat.com>
36359         ftello: avoid compilation failure with SunStudio c89
36360         * lib/ftello.c (ftello): Use lseek, not llseek.
36362         tests: avoid failing coreutils tests on cygwin
36363         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
36364         (create_exe_shims_): Return 0 when skipping.
36366 2010-12-31  Bruno Haible  <bruno@clisp.org>
36368         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
36369         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
36371 2010-12-31  Bruno Haible  <bruno@clisp.org>
36373         waitpid: Fix link error in C++ mode.
36374         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
36376 2010-12-31  Bruno Haible  <bruno@clisp.org>
36378         isnan: Use GCC built-ins when possible.
36379         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
36380         __builtin_isnan.
36381         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
36382         (isnan): Define using GCC built-ins for GCC >= 4.0.
36384 2010-12-31  Bruno Haible  <bruno@clisp.org>
36386         isnand: Fix mistake.
36387         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
36388         __builtin_isnand.
36390 2010-12-31  Bruno Haible  <bruno@clisp.org>
36392         open: Avoid C++ error on HP-UX 11.
36393         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
36395 2010-12-31  Bruno Haible  <bruno@clisp.org>
36397         time_r: Add missing declarations on HP-UX 11.
36398         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
36399         instead of HAVE_LOCALTIME_R.
36400         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
36401         HAVE_LOCALTIME_R always.
36402         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
36403         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
36404         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
36405         HAVE_LOCALTIME_R.
36406         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
36407         * doc/posix-functions/localtime_r.texi: Likewise.
36409 2010-12-29  Eric Blake  <eblake@redhat.com>
36411         mountlist: tweak previous commit
36412         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
36413         Reported by Paul Eggert.
36415         mountlist: fix local drive detection on cygwin
36416         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
36417         that works for cygwin.
36419 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
36421         ftoastr, snprintf: ftoastr + snprintf module
36422         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
36423         since the snprintf module now should be good enough here.
36424         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
36425         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
36426         and gl_MODULE_INDICATOR([snprintf]), but the former enables
36427         GNULIB_SNPRINTF only for the test directory, and the latter
36428         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
36429         seems to suffice by itself.
36431 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
36433         alloca: one step towards thread-safety
36434         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
36435         need for a static variable.  All callers changed.  This does not
36436         make the alloca replacement thread-safe, but it's one step.
36438         tests: minor indenting change
36439         * tests/init.sh: Sync from coreutils housekeeping patch
36440         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
36441         to keep lines within 80 columns.
36443 2010-12-28  Jim Meyering  <meyering@redhat.com>
36445         regex: don't infloop on persistent failing calloc
36446         * lib/regexec.c (build_trtable): Return failure indication upon
36447         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
36448         In glibc, this was fixed for version 2.13:
36449         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
36451 2010-12-28  Bruno Haible  <bruno@clisp.org>
36452             Paul Eggert <eggert@cs.ucla.edu>
36454         linkat: Make implementation robust against system behaviour variations.
36455         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
36456         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
36457         way, and to -2 if it needs a generic runtime test.
36458         * lib/linkat.c (solaris_optimized_link_immediate,
36459         solaris_optimized_link_follow): New functions.
36460         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
36461         (check_same_link): Use it.
36463 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
36465         New module 'unigbrk/base'.
36466         * modules/unigbrk/base: New file.
36467         * lib/unigbrk.in.h: New file.
36469         New module 'unigbrk/uc-gbrk-prop'.
36470         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
36471         * modules/unigbrk/uc-gbrk-prop: New file.
36472         * lib/unigbrk/gbrkprop.h: New file.
36473         * lib/unigbrk/uc-gbrk-prop.c: New file.
36475         New module 'unigbrk/uc-is-grapheme-break'.
36476         * modules/unigbrk/uc-is-grapheme-break: New file.
36477         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
36478         * lib/unigbrk/uc-is-grapheme-break.c: New file.
36479         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
36480         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
36481         * tests/unigbrk/GraphemeBreakTest.txt: New file.
36483         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
36485 2010-12-27  Bruno Haible  <bruno@clisp.org>
36487         linkat test: Avoid failure on Solaris 11 2010-11.
36488         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
36490 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
36492         utimens: work around glibc rounding bug on more platforms
36493         * lib/utimens.c (fdutimens): Work around rounding bug even if
36494         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
36495         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
36497 2010-12-27  Bruno Haible  <bruno@clisp.org>
36499         select tests: Improve comments.
36500         * tests/test-select.c (do_select): Add comments.
36502 2010-12-27  Bruno Haible  <bruno@clisp.org>
36504         select tests: Safer way of handling timeout.
36505         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
36506         at every invocation.
36508 2010-12-27  Bruno Haible  <bruno@clisp.org>
36510         select tests: Use 'bool' where appropriate.
36511         * tests/test-select.c (connect_to_socket): Change argument type to
36512         'bool'.
36514 2010-12-27  Bruno Haible  <bruno@clisp.org>
36516         select tests: Use existing modules.
36517         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
36518         (configure.ac): Don't test for unistd.h.
36519         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
36520         declared in <unistd.h>.
36522 2010-12-27  Bruno Haible  <bruno@clisp.org>
36524         mbrtowc: Work around a Solaris 7 bug.
36525         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
36526         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
36527         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
36528         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
36529         MBRTOWC_NULL_ARG1_BUG.
36530         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
36531         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
36532         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
36533         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
36535 2010-12-27  Jim Meyering  <meyering@redhat.com>
36537         read-file.c: tweak syntax
36538         * lib/read-file.c (fread_file): Remove space after "*" in function
36539         definitions.
36541 2010-12-27  Bruno Haible  <bruno@clisp.org>
36543         times test: Avoid gcc warnings on OSF/1.
36544         * tests/test-times.c (main): Cast printf arguments from clock_t to
36545         'long int'.
36547 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
36549         utimens: work around glibc rounding bug on older Linux kernels
36550         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
36551         on Linux with a glibc whose utimes might not work, then work
36552         around a longstanding glibc bug involving rounding rather than
36553         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
36554         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
36556 2010-12-26  Bruno Haible  <bruno@clisp.org>
36558         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
36559         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
36560         _GL_CXXALIAS_SYS.
36561         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
36563 2010-12-26  Bruno Haible  <bruno@clisp.org>
36565         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
36566         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
36567         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
36568         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
36569         looking for the declaration.
36570         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
36571         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
36572         problem.
36573         * doc/posix-functions/inet_pton.texi: Likewise.
36575 2010-12-26  Bruno Haible  <bruno@clisp.org>
36577         arpa_inet: Use the common idioms with C++ support.
36578         * lib/arpa_inet.in.h: Include c++defs.h.
36579         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
36580         support.
36581         * modules/arpa_inet (Depends-on): Add c++defs.
36582         (Makefile.am): Substitute the contents of c++defs.h.
36583         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
36584         * modules/arpa_inet-c++-tests: New file.
36585         * tests/test-arpa_inet-c++.cc: New file.
36587 2010-12-25  Bruno Haible  <bruno@clisp.org>
36589         Fix more C++ link errors on Solaris 8.
36590         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
36591         $(LIB_EACCESS).
36592         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
36593         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
36594         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
36595         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
36596         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
36598 2010-12-25  Bruno Haible  <bruno@clisp.org>
36600         printf-posix: Fix link error when a non-GCC compiler is used.
36601         * lib/stdio.in.h (printf): When not using GCC, override printf
36602         correctly.
36603         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
36605 2010-12-25  Bruno Haible  <bruno@clisp.org>
36607         strerror_r-posix: Update doc.
36608         * doc/posix-functions/strerror_r.texi: Update doc about the return
36609         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
36611 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
36613         utimens: simplify the logic of the previous change
36614         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
36615         This should not affect whether the test succeeds or fails.
36617         utimens: configure better on hosts with NFS clock skew
36618         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
36619         uses the clock of the local host.  It might use the clock of the
36620         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
36621         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
36623 2010-12-25  Bruno Haible  <bruno@clisp.org>
36625         ptsname test: Avoid failure on Solaris.
36626         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
36627         open a pseudo-terminal; don't use BSD-style ptys.
36628         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
36630 2010-12-25  Bruno Haible  <bruno@clisp.org>
36632         ptsname: Avoid ERANGE failure on some systems.
36633         * lib/ptsname.c (buffer): Increase size.
36635 2010-12-25  Bruno Haible  <bruno@clisp.org>
36637         rename, renameat: Avoid test failures at NFS mounted locations.
36638         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
36639         so that subsequent mkdir calls succeed.
36641 2010-12-25  Bruno Haible  <bruno@clisp.org>
36643         iswblank: Fix C++ link error on Solaris 8.
36644         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
36645         _GL_FUNCDECL_SYS.
36647 2010-12-25  Bruno Haible  <bruno@clisp.org>
36649         unistd: Fix C++ link error on Solaris 8.
36650         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
36652 2010-12-25  Bruno Haible  <bruno@clisp.org>
36654         readlink doc: Mention an old glibc bug.
36655         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
36657 2010-12-25  Bruno Haible  <bruno@clisp.org>
36659         fcntl-h: Fix for use of C++ on glibc systems.
36660         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
36661         also on glibc systems in C++ mode.
36662         Reported by Gary V. Vaughan <gary@gnu.org>.
36664 2010-12-25  Bruno Haible  <bruno@clisp.org>
36666         roundl-ieee: Make it work on OSF/1 5.1 with cc.
36667         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
36669 2010-12-25  Bruno Haible  <bruno@clisp.org>
36671         truncl-ieee: Make it work on OSF/1 5.1 with cc.
36672         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
36673         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
36674         test whether truncl works according to ISO C 99 with IEC 60559.
36675         * m4/truncl-ieee.m4: New file.
36676         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
36677         m4/signbit.m4.
36678         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
36680 2010-12-25  Bruno Haible  <bruno@clisp.org>
36682         ceill-ieee: Make it work on OSF/1 5.1 with cc.
36683         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
36684         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
36685         test whether ceill works according to ISO C 99 with IEC 60559.
36686         * m4/ceill-ieee.m4: New file.
36687         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
36688         m4/signbit.m4.
36689         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
36691 2010-12-25  Bruno Haible  <bruno@clisp.org>
36693         Ensure all prerequisites of <wchar.h> are included.
36694         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
36695         before <wchar.h>.
36696         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
36697         gl_MBRLEN_NUL_RETVAL): Likewise.
36698         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
36699         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
36700         AC_FUNC_MBRTOWC): Likewise.
36701         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
36702         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
36703         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
36704         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
36705         Likewise.
36706         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
36707         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
36708         (gl_WCHAR_H): Improve comments.
36709         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
36711 2010-12-25  Bruno Haible  <bruno@clisp.org>
36713         strtok_r: Fix C syntax error in autoconf macro.
36714         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
36715         characters in test program.
36717 2010-12-24  Bruno Haible  <bruno@clisp.org>
36719         ceil, trunc, round: Fix gcc warnings.
36720         * lib/ceil.c (MIN): Undefine before redefining.
36721         * lib/trunc.c (MIN): Likewise.
36722         * lib/round.c (MIN): Likewise.
36723         Include <math.h> first.
36725 2010-12-24  Bruno Haible  <bruno@clisp.org>
36727         select tests: Avoid failures on OSF/1 5.1.
36728         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
36729         failure of closing the last socket; it may fail with ECONNRESET.
36731 2010-12-24  Eric Blake  <eblake@redhat.com>
36733         stdint: avoid HP-UX 10.20 preprocessor bug
36734         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
36735         than #if.
36736         * tests/test-floor2.c (main): Likewise.
36737         Reported by Peter O'Gorman.
36739         pipe: make obsoletion transition easier
36740         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
36741         * modules/pipe (Files): Include revived file.
36742         (Include): Drop reference, to mirror getdate's behavior.
36744 2010-12-24  Bruno Haible  <bruno@clisp.org>
36746         sys_socket: Hide mismatch of declarations on NonStop Kernel.
36747         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
36748         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
36749         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
36751 2010-12-24  Bruno Haible  <bruno@clisp.org>
36753         gethostname: Ensure declaration on NonStop Kernel.
36754         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
36755         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
36757 2010-12-24  Bruno Haible  <bruno@clisp.org>
36759         sys_select: Ensure all necessary types on NonStop Kernel.
36760         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
36761         include <sys/time.h>.
36762         * doc/posix-headers/sys_select.texi: Mention that it's missing on
36763         NonStop Kernel.
36764         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
36766 2010-12-24  Bruno Haible  <bruno@clisp.org>
36768         sys_select: Remove unneeded include.
36769         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
36770         have <sys/select.h>.
36772 2010-12-24  Bruno Haible  <bruno@clisp.org>
36774         gethostname: Provide a fallback for HOST_NAME_MAX.
36775         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
36776         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
36777         instead.
36778         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
36780 2010-12-24  Bruno Haible  <bruno@clisp.org>
36782         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
36783         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
36784         (SA_RESTART): Likewise.
36785         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
36787 2010-12-24  Bruno Haible  <bruno@clisp.org>
36789         signal: Define NSIG.
36790         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
36791         * tests/test-signal.c (nsig): New variable.
36792         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
36794 2010-12-24  Bruno Haible  <bruno@clisp.org>
36796         rename, renameat: Avoid test failures on OSF/1 5.1.
36797         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
36798         alternative error codes.
36799         * tests/test-renameat.c (main): Likewise.
36801 2010-12-24  Bruno Haible  <bruno@clisp.org>
36803         *printf: Detect large precisions bug on Solaris 10/SPARC.
36804         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
36805         by Paul Eggert.
36806         * tests/test-snprintf-posix.h (test_function): Add this test code here
36807         too.
36808         * tests/test-sprintf-posix.h (test_function): Likewise.
36809         * tests/test-vasnprintf-posix.c (test_function): Likewise.
36810         * tests/test-vasprintf-posix.c (test_function): Likewise.
36811         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
36812         around by gnulib.
36813         * doc/posix-functions/printf.texi: Likewise.
36814         * doc/posix-functions/snprintf.texi: Likewise.
36815         * doc/posix-functions/sprintf.texi: Likewise.
36816         * doc/posix-functions/vfprintf.texi: Likewise.
36817         * doc/posix-functions/vprintf.texi: Likewise.
36818         * doc/posix-functions/vsnprintf.texi: Likewise.
36819         * doc/posix-functions/vsprintf.texi: Likewise.
36820         * doc/posix-functions/dprintf.texi: Undo last commit.
36821         * doc/posix-functions/vdprintf.texi: Likewise.
36823 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
36825         tests: port test-fdutimensat.c to Solaris 8
36826         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
36827         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
36828         On Solaris 8, it fails with errno == ENOSYS, because there is no
36829         futimens (so it can't use the fd), and there is no lutimens (so it
36830         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
36832         vsnprintf: make more consistent with snprintf; doc fixes
36834         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
36835         the byte count return problem was promoted from the snprintf-posix
36836         to the snprintf module.
36837         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
36838         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
36839         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
36840         * tests/test-snprintf.c (main): Check the byte count returned.
36841         * tests/test-vsnprintf.c (main): Likewise.
36843 2010-12-23  Eric Blake  <eblake@redhat.com>
36845         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
36846         * modules/sigpipe (License): Relax license.
36848 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
36850         doc: document Solaris printf bug with large float precisions
36851         * doc/posix-functions/dprintf.texi (dprintf):
36852         * doc/posix-functions/fprintf.texi (fprintf):
36853         * doc/posix-functions/printf.texi (printf):
36854         * doc/posix-functions/snprintf.texi (snprintf):
36855         * doc/posix-functions/sprintf.texi (sprintf):
36856         * doc/posix-functions/vdprintf.texi (vdprintf):
36857         * doc/posix-functions/vfprintf.texi (vfprintf):
36858         * doc/posix-functions/vprintf.texi (vprintf):
36859         * doc/posix-functions/vsnprintf.texi (vsnprintf):
36860         * doc/posix-functions/vsprintf.texi (vsprintf):
36861         Mention that these functions mishandle large floating point
36862         precisions on Solaris 10.  The same bug is also present in Solaris
36863         8, and I assume earlier.  This causes "cd gnulib-tests; make
36864         check" to fail on Solaris 8 (and I assume, later) when building
36865         the latest coreutils, in test-vasprintf-posix's call to
36866         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
36867         the wide flavors (e.g., wprintf) so this patch just updates the
36868         documentation for the narrow ones.
36870         test-posixtm.c: add two tests
36871         * tests/test-posixtm.c: Add two tests, to highlight the
36872         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
36873         around this bug; this is merely to document it.
36875 2010-12-22  Bruno Haible  <bruno@clisp.org>
36877         getlogin_r: Work around portability problem on OSF/1.
36878         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
36879         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
36880         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
36881         test for a truncated result.
36882         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
36883         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
36884         * modules/getlogin_r (Depends-on): Add memchr.
36885         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
36887 2010-12-22  Bruno Haible  <bruno@clisp.org>
36889         ptsname: Avoid test failure on OSF/1 5.1.
36890         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
36891         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
36892         (same_slave): New function.
36893         (main): Use it to compare ptsname's result with the expected file name.
36895 2010-12-22  Bruno Haible  <bruno@clisp.org>
36897         Port extended stdio modules to HP NonStop Kernel.
36898         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
36899         macros.
36900         * lib/fbufmode.c: Update comments.
36901         * lib/fflush.c: Likewise.
36902         * lib/fpurge.c: Likewise.
36903         * lib/freadable.c: Likewise.
36904         * lib/freadahead.c: Likewise.
36905         * lib/freading.c: Likewise.
36906         * lib/freadptr.c: Likewise.
36907         * lib/freadseek.c: Likewise.
36908         * lib/fseeko.c: Likewise.
36909         * lib/fseterr.c: Likewise.
36910         * lib/fwritable.c: Likewise.
36911         * lib/fwriting.c: Likewise.
36912         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
36914 2010-12-22  Bruno Haible  <bruno@clisp.org>
36916         ttyname_r: Work around bug on OSF/1 5.1.
36917         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
36918         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
36919         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
36920         present.
36921         * lib/ttyname_r.c (ttyname_r): Update comments.
36923 2010-12-22  Bruno Haible  <bruno@clisp.org>
36925         round: Implement result sign according to IEEE 754.
36926         * lib/round.c (MIN, MINUS_ZERO): New macros.
36927         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
36928         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
36929         * tests/test-round-ieee.c (main): Likewise.
36930         * tests/test-roundl-ieee.c (main): Likewise.
36932         trunc: Implement result sign according to IEEE 754.
36933         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
36934         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
36935         * tests/test-trunc2.c: Include minus-zero.h.
36936         (MINUS_ZERO): New macro.
36937         (trunc_reference): Keep in sync with lib/trunc.c.
36938         * tests/test-truncf2.c: Include minus-zero.h.
36939         (MINUS_ZERO): New macro.
36940         (truncf_reference): Keep in sync with lib/trunc.c.
36941         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
36942         * tests/test-trunc-ieee.c (main): Likewise.
36943         * tests/test-truncl-ieee.c (main): Likewise.
36945         ceil: Implement result sign according to IEEE 754.
36946         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
36947         (FUNC): Return -0.0 for -1 < x < 0.
36948         * tests/test-ceil2.c: Include minus-zero.h.
36949         (MINUS_ZERO): New macro.
36950         (ceil_reference): Keep in sync with lib/ceil.c.
36951         * tests/test-ceilf2.c: Include minus-zero.h.
36952         (MINUS_ZERO): New macro.
36953         (ceilf_reference): Keep in sync with lib/ceil.c.
36954         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
36955         * tests/test-ceil-ieee.c (main): Likewise.
36956         * tests/test-ceill-ieee.c (main): Likewise.
36958         floor: Implement result sign according to IEEE 754.
36959         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
36960         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
36961         * tests/test-floorf2.c (floorf_reference): Likewise.
36962         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
36963         * tests/test-floor-ieee.c (main): Likewise.
36964         * tests/test-floorl-ieee.c (main): Likewise.
36966 2010-12-22  Bruno Haible  <bruno@clisp.org>
36968         getaddrinfo: Update doc.
36969         * doc/posix-functions/gai_strerror.texi: Return type is also different
36970         on AIX and HP-UX.
36972 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
36974         getaddrinfo, inet_ntop: Update doc for Solaris.
36975         * doc/posix-functions/gai_strerror.texi: Return type is also an
36976         issue on Solaris 9 and earlier.
36977         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
36978         on Solaris 10 and earlier.
36980 2010-12-21  Bruno Haible  <bruno@clisp.org>
36982         New module 'roundl-ieee'.
36983         * modules/roundl-ieee: New file.
36984         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
36985         test whether roundl works according to ISO C 99 with IEC 60559.
36986         * m4/roundl-ieee.m4: New file.
36987         * modules/roundl-ieee-tests: New file.
36988         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
36989         * tests/test-roundl.c (main): Remove signbit tests.
36990         * modules/roundl-tests (Depends-on): Remove signbit.
36991         * doc/posix-functions/roundl.texi: Mention the new module.
36993 2010-12-21  Bruno Haible  <bruno@clisp.org>
36995         New module 'truncl-ieee'.
36996         * modules/truncl-ieee: New file.
36997         * modules/truncl-ieee-tests: New file.
36998         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
36999         * tests/test-truncl.c (main): Remove signbit tests.
37000         * modules/truncl-tests (Depends-on): Remove signbit.
37001         * doc/posix-functions/truncl.texi: Mention the new module.
37003 2010-12-21  Bruno Haible  <bruno@clisp.org>
37005         New module 'ceill-ieee'.
37006         * modules/ceill-ieee: New file.
37007         * modules/ceill-ieee-tests: New file.
37008         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
37009         * tests/test-ceill.c (main): Remove signbit tests.
37010         * modules/ceill-tests (Depends-on): Remove signbit.
37011         * doc/posix-functions/ceill.texi: Mention the new module.
37013 2010-12-21  Bruno Haible  <bruno@clisp.org>
37015         New module 'floorl-ieee'.
37016         * modules/floorl-ieee: New file.
37017         * modules/floorl-ieee-tests: New file.
37018         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
37019         * tests/test-floorl.c (main): Remove signbit tests.
37020         * modules/floorl-tests (Depends-on): Remove signbit.
37021         * doc/posix-functions/floorl.texi: Mention the new module.
37023 2010-12-21  Bruno Haible  <bruno@clisp.org>
37025         New module 'round-ieee'.
37026         * modules/round-ieee: New file.
37027         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
37028         whether round works according to ISO C 99 with IEC 60559.
37029         * m4/round-ieee.m4: New file.
37030         * modules/round-ieee-tests: New file.
37031         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
37032         * tests/test-round1.c (main): Remove signbit tests.
37033         * modules/round-tests (Depends-on): Remove 'signbit'.
37034         * doc/posix-functions/round.texi: Mention the new module.
37036 2010-12-21  Bruno Haible  <bruno@clisp.org>
37038         New module 'trunc-ieee'.
37039         * modules/trunc-ieee: New file.
37040         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
37041         whether trunc works according to ISO C 99 with IEC 60559.
37042         * m4/trunc-ieee.m4: New file.
37043         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
37044         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
37045         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
37046         * modules/trunc-ieee-tests: New file.
37047         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
37048         * tests/test-trunc1.c (main): Remove signbit tests.
37049         * modules/trunc-tests (Depends-on): Remove 'signbit'.
37050         * doc/posix-functions/trunc.texi: Mention the new module.
37052 2010-12-21  Bruno Haible  <bruno@clisp.org>
37054         New module 'ceil-ieee'.
37055         * modules/ceil-ieee: New file.
37056         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
37057         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
37058         ISO C 99 with IEC 60559.
37059         * m4/ceil-ieee.m4: New file.
37060         * modules/ceil (Files): Add lib/ceil.c.
37061         (Depends-on): Add 'float'.
37062         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
37063         * lib/math.in.h (ceil): New declaration.
37064         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
37065         REPLACE_CEIL.
37066         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
37067         * modules/ceil-ieee-tests: New file.
37068         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
37069         * tests/test-math-c++.cc: Check the signature of 'ceil'.
37070         * doc/posix-functions/ceil.texi: Mention the new module.
37072 2010-12-21  Bruno Haible  <bruno@clisp.org>
37074         New module 'floor-ieee'.
37075         * modules/floor-ieee: New file.
37076         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
37077         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
37078         ISO C 99 with IEC 60559.
37079         * m4/floor-ieee.m4: New file.
37080         * modules/floor (Files): Add lib/floor.c.
37081         (Depends-on): Add 'float'.
37082         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
37083         * lib/math.in.h (floor): New declaration.
37084         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
37085         REPLACE_FLOOR.
37086         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
37087         * modules/floor-ieee-tests: New file.
37088         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
37089         * tests/test-math-c++.cc: Check the signature of 'floor'.
37090         * doc/posix-functions/floor.texi: Mention the new module.
37092 2010-12-21  Bruno Haible  <bruno@clisp.org>
37094         New module 'roundf-ieee'.
37095         * modules/roundf-ieee: New file.
37096         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
37097         test whether roundf works according to ISO C 99 with IEC 60559.
37098         * m4/roundf-ieee.m4: New file.
37099         * modules/roundf-ieee-tests: New file.
37100         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
37101         * tests/test-roundf1.c (main): Remove signbit tests.
37102         * modules/roundf-tests (Depends-on): Remove 'signbit'.
37103         * doc/posix-functions/roundf.texi: Mention the new module.
37105 2010-12-21  Bruno Haible  <bruno@clisp.org>
37107         New module 'truncf-ieee'.
37108         * modules/truncf-ieee: New file.
37109         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
37110         test whether truncf works according to ISO C 99 with IEC 60559.
37111         * m4/truncf-ieee.m4: New file.
37112         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
37113         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
37114         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
37115         * modules/truncf-ieee-tests: New file.
37116         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
37117         * tests/test-truncf1.c (main): Remove signbit tests.
37118         * modules/truncf-tests (Depends-on): Remove 'signbit'.
37119         * doc/posix-functions/truncf.texi: Mention the new module.
37121 2010-12-21  Bruno Haible  <bruno@clisp.org>
37123         New module 'ceilf-ieee'.
37124         * modules/ceilf-ieee: New file.
37125         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
37126         test whether ceilf works according to ISO C 99 with IEC 60559.
37127         * m4/ceilf-ieee.m4: New file.
37128         * modules/ceilf-ieee-tests: New file.
37129         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
37130         * tests/test-ceilf1.c (main): Remove signbit tests.
37131         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
37132         * doc/posix-functions/ceilf.texi: Mention the new module.
37134 2010-12-21  Bruno Haible  <bruno@clisp.org>
37136         New module 'floorf-ieee'.
37137         * modules/floorf-ieee: New file.
37138         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
37139         test whether floorf works according to ISO C 99 with IEC 60559.
37140         * m4/floorf-ieee.m4: New file.
37141         * modules/floorf-ieee-tests: New file.
37142         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
37143         * tests/test-floorf1.c (main): Remove signbit tests.
37144         * modules/floorf-tests (Depends-on): Remove 'signbit'.
37145         * doc/posix-functions/floorf.texi: Mention the new module.
37147 2010-12-21  Bruno Haible  <bruno@clisp.org>
37149         Support for minus zero in autoconf macros.
37150         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
37151         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
37152         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
37153         * tests/minus-zero.h: Update comments.
37155 2010-12-21  Bruno Haible  <bruno@clisp.org>
37157         Tests for module 'ceil'.
37158         * modules/ceil-tests: New file.
37159         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
37160         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
37162 2010-12-21  Bruno Haible  <bruno@clisp.org>
37164         Tests for module 'floor'.
37165         * modules/floor-tests: New file.
37166         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
37167         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
37169 2010-12-21  Bruno Haible  <bruno@clisp.org>
37171         math: Fix indentation.
37172         * lib/math.in.h (floorf): Fix indentation.
37174 2010-12-21  Bruno Haible  <bruno@clisp.org>
37176         Fix cross-compilation guesses on Solaris.
37177         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
37178         not match "solaris2.10".
37179         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
37180         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
37181         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
37183 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
37185         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
37186         This fixes a problem observed with the latest coreutils snapshot
37187         that caused a test to fail on Solaris 8.  src/csplit.c's call
37188         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
37189         earlier, instead of returning the number of bytes that would have
37190         been generated; this causes csplit to incorrectly report memory
37191         exhaustion.
37192         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
37193         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
37194         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
37195         comments to match.
37196         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
37197         Fix typo in matching older versions of Solaris: "solaris2.10"
37198         is matched by the shell pattern "solaris2.[0-9]*".  This matters
37199         only for guessing while cross-compiling.
37200         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
37202 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
37204         ftoastr: fix comment again
37205         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
37206         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
37207         Also, simplify example a bit by using flags = 0.
37209 2010-12-20  Bruno Haible  <bruno@clisp.org>
37211         round*, trunc*: Update documentation regarding glibc.
37212         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
37213         * doc/posix-functions/round.texi: Likewise.
37214         * doc/posix-functions/roundl.texi: Likewise.
37215         * doc/posix-functions/truncf.texi: Likewise.
37216         * doc/posix-functions/trunc.texi: Likewise.
37217         * doc/posix-functions/truncl.texi: Likewise.
37219 2010-12-20  Bruno Haible  <bruno@clisp.org>
37221         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
37222         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
37223         * doc/posix-functions/round.texi: Likewise.
37224         * doc/posix-functions/roundl.texi: Likewise.
37226 2010-12-20  Bruno Haible  <bruno@clisp.org>
37228         ttyname_r: Add missing declaration on HP-UX 11.
37229         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
37230         HAVE_TTYNAME_R.
37231         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
37232         declared. Set HAVE_TTYNAME_R always.
37233         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37234         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
37235         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
37236         HAVE_TTYNAME_R.
37237         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
37239 2010-12-20  Bruno Haible  <bruno@clisp.org>
37241         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
37242         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
37243         * doc/posix-functions/getlogin_r.texi: Likewise.
37244         * tests/test-getlogin.c: Include <errno.h>.
37245         (main): Avoid test failure on HP-UX 11.11.
37246         * tests/test-getlogin_r.c (main): Likewise.
37248 2010-12-20  Bruno Haible  <bruno@clisp.org>
37250         getlogin_r: Add missing declaration on HP-UX 11.
37251         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
37252         declared also when it exists as a function.
37253         * doc/posix-functions/getlogin_r.texi: Document this workaround.
37255 2010-12-20  Bruno Haible  <bruno@clisp.org>
37257         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
37258         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
37259         through wcrtomb.
37261 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
37263         ftoastr: fix comment
37264         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
37265         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
37267 2010-12-19  Bruno Haible  <bruno@clisp.org>
37269         isnan: Ensure it is a macro.
37270         * lib/math.in.h (isnan): Define as a macro if not already a macro.
37271         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
37272         Solaris.
37274 2010-12-19  Bruno Haible  <bruno@clisp.org>
37276         ldexpl test: Fix link error on OSF/1 5.1.
37277         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
37279 2010-12-19  Bruno Haible  <bruno@clisp.org>
37281         wctype: Make it work in C++ mode on OSF/1 5.1.
37282         * lib/wctype.in.h (iswblank): Declare but not define here.
37283         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
37284         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
37285         * modules/wctype (Files): Add lib/iswblank.c.
37287 2010-12-19  Bruno Haible  <bruno@clisp.org>
37289         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
37290         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
37291         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
37293 2010-12-19  Bruno Haible  <bruno@clisp.org>
37295         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
37296         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
37297         _POSIX_PII_SOCKET.
37298         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
37299         * doc/posix-functions/recvfrom.texi: Likewise.
37300         * doc/posix-functions/send.texi: Likewise.
37301         * doc/posix-functions/sendto.texi: Likewise.
37303 2010-12-19  Bruno Haible  <bruno@clisp.org>
37305         tcgetsid: Add missing declaration on OSF/1 5.1.
37306         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
37307         HAVE_TCGETSID.
37308         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
37309         Don't set HAVE_TCGETSID.
37310         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
37311         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
37312         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
37313         HAVE_TCGETSID.
37314         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
37316 2010-12-19  Bruno Haible  <bruno@clisp.org>
37318         stdio: Fix problem with popen() declaration on OSF/1 5.1.
37319         * lib/stdio.in.h: During the include_next statement, let recursive
37320         includes of this file include only the system header file.
37322 2010-12-19  Bruno Haible  <bruno@clisp.org>
37324         iconv_open: Fix regression from 2010-12-04.
37325         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
37326         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
37328 2010-12-19  Bruno Haible  <bruno@clisp.org>
37330         stdbool test: Avoid a gcc warning.
37331         * tests/test-stdbool.c (main): Fail if e1 is false.
37332         Reported by Jim Meyering.
37334 2010-12-19  Jim Meyering  <meyering@redhat.com>
37336         setenv: restore to working order
37337         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
37338         mistakenly removed.
37339         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
37340         HAVE_SETENV.
37341         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
37342         HAVE_SETENV.
37344 2010-12-19  Bruno Haible  <bruno@clisp.org>
37346         Document some different function declarations on OSF/1 5.1.
37347         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
37348         * doc/posix-functions/inet_ntop.texi: Likewise.
37349         * doc/posix-functions/gethostname.texi: Likewise.
37350         * lib/unistd.in.h (gethostname): Update comment.
37352 2010-12-19  Bruno Haible  <bruno@clisp.org>
37354         doc: Mention vasprintf-posix module.
37355         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
37356         the 'vasprintf-posix' module.
37357         * doc/glibc-functions/vasprintf.texi: Likewise.
37359 2010-12-19  Bruno Haible  <bruno@clisp.org>
37361         unsetenv: Add missing declaration on OSF/1 5.1.
37362         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
37363         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
37364         Don't set HAVE_UNSETENV. In the test program, set _BSD.
37365         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
37366         not HAVE_UNSETENV.
37367         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
37368         HAVE_UNSETENV.
37369         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
37371 2010-12-19  Bruno Haible  <bruno@clisp.org>
37373         setenv: Add missing declaration on OSF/1 5.1.
37374         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
37375         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
37376         declared. Don't set HAVE_SETENV.
37377         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
37378         not HAVE_SETENV.
37379         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
37380         HAVE_SETENV.
37381         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
37383 2010-12-19  Bruno Haible  <bruno@clisp.org>
37385         nl_langinfo tests: Avoid gcc warning.
37386         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
37388 2010-12-19  Bruno Haible  <bruno@clisp.org>
37390         mknod: Avoid error in C++ mode on OSF/1 with GCC.
37391         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
37392         _GL_CXXALIAS_SYS.
37394 2010-12-19  Bruno Haible  <bruno@clisp.org>
37396         stdbool: Relax test.
37397         * tests/test-stdbool.c (e): Don't require that casts from a variable's
37398         address to 'bool' work in static initializer, for compilers other than
37399         GCC.
37401 2010-12-19  Bruno Haible  <bruno@clisp.org>
37403         ftello: Add missing declaration on OSF/1 5.1.
37404         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
37405         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
37406         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
37407         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
37408         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
37410 2010-12-19  Bruno Haible  <bruno@clisp.org>
37412         fseeko: Add missing declaration on OSF/1 5.1.
37413         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
37414         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
37415         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
37416         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
37417         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
37419 2010-12-19  Bruno Haible  <bruno@clisp.org>
37421         fchdir: Add missing declaration on OSF/1 5.1.
37422         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
37423         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
37424         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
37425         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
37426         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
37428 2010-12-19  Bruno Haible  <bruno@clisp.org>
37430         relocatable-prog-wrapper: Separate from relocatable-prog.
37431         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
37432         uninstall-relocwrapper rule here.
37433         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
37434         Reported by Ian Beckwith <ianb@erislabs.net>.
37436 2010-12-19  Bruno Haible  <bruno@clisp.org>
37438         unistr/u8-mbsnlen: Add missing dependency.
37439         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
37440         Reported by Ian Beckwith <ianb@erislabs.net>.
37442 2010-12-19  Bruno Haible  <bruno@clisp.org>
37444         iconv: Make it possible again to use this module without 'iconv-h'.
37445         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
37446         if it is not defined.
37447         Reported by Ian Beckwith <ianb@erislabs.net>.
37449 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
37451         acl: port to Solaris 8 when copying from tmpfs to ufs
37452         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
37453         error number.  Problem observed on Solaris 8 with latest
37454         coreutils, with "mv A B", where A is on a tmpfs file system and B
37455         is on a ufs file system.  This caused coreutils' mv/part-symlink
37456         test to fail.
37458         tests: set fail=0 at start
37459         * tests/init.sh (setup_): Move fail=0 initialization here ...
37460         (mktempd_): ... from here, so that tests can rely on fail being
37461         set to 0 initially.  This fixes a problem in coreutils; see:
37462         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
37464 2010-12-18  Bruno Haible  <bruno@clisp.org>
37466         memmem-simple: Stylistic changes.
37467         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
37468         Fix preprocessor directive indentation.
37470 2010-12-15  Pádraig Brady <P@draigBrady.com>
37472         memmem, memmem-simple: reorganize and expand empty needle check
37473         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
37474         functional checks to memmem-simple so that one has a fully functional
37475         memmem by using just this module.
37476         Restrict the performance only check to the memmem module.
37477         Also expand the empty needle check to ensure the correct
37478         pointer is returned, not just a non NULL pointer.
37479         * doc/glibc-functions/memmem.texi: Rearrange the portability
37480         documentation to correlate with the rearranged checks.
37481         Clarify exactly how the memmem and memmem-simple modules
37482         relate to each other.
37484 2010-12-15  Pádraig Brady <P@draigBrady.com>
37485             Bruno Haible  <bruno@clisp.org>
37487         Improve cross-compilation guesses for uClibc.
37488         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
37489         that uClibc does not have the glibc bug.
37490         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
37491         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
37493 2010-12-14  Eric Blake  <eblake@redhat.com>
37495         configmake: provide fallbacks for oldest supported autotools
37496         * m4/configmake.m4: New file.
37497         * modules/configmake (Files): Ship it.
37498         (configure.ac): Use it to guarantee fallbacks.
37500 2010-12-13  Pádraig Brady <P@draigBrady.com>
37502         read-file: Improve handling of large files
37503         * lib/read-file.c (fread_file): Minimize realloc()s
37504         for regular files, and better manage sizes around SIZE_MAX.
37506 2010-12-13  Eric Blake  <eblake@redhat.com>
37508         cloexec, fcntl: relax license
37509         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
37510         consent from all contributors.
37511         * modules/fcntl (License): Likewise.
37513 2010-12-10  Bruno Haible  <bruno@clisp.org>
37515         Tests for module 'pipe-posix'.
37516         * modules/pipe-posix-tests: New file.
37517         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
37519 2010-12-10  Bruno Haible  <bruno@clisp.org>
37521         pipe-posix: Make it work in C++ mode.
37522         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
37523         (pipe): Use common idiom, not a macro definition.
37524         * lib/pipe.c: New file.
37525         * m4/pipe.m4: New file.
37526         * modules/pipe-posix (Description): Enhance.
37527         (Files): Add lib/pipe.c, m4/pipe.m4.
37528         (configure.ac): Invoke gl_FUNC_PIPE.
37529         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
37530         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
37531         * tests/test-unistd-c++.cc: Check the signature of pipe.
37533 2010-12-10  Bruno Haible  <bruno@clisp.org>
37535         Rename module 'pipe' to 'spawn-pipe'.
37536         * modules/spawn-pipe: New file, renamed from modules/pipe.
37537         (Files, configure.ac, Makefile.am): Update.
37538         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
37539         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
37540         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
37541         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
37542         "spawn-pipe.h" instead of "pipe.h".
37543         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
37544         to gl_SPAWN_PIPE.
37545         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
37546         (Files, Makefile.am): Update.
37547         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
37548         Update.
37549         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
37550         Include "spawn-pipe.h" instead of "pipe.h".
37551         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
37552         * lib/javacomp.c: Likewise.
37553         * lib/javaversion.c: Likewise.
37554         * lib/pipe-filter-gi.c: Likewise.
37555         * lib/pipe-filter-ii.c: Likewise.
37556         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
37557         * modules/javacomp (Depends-on): Likewise.
37558         * modules/javaversion (Depends-on): Likewise.
37559         * modules/pipe-filter-gi (Depends-on): Likewise.
37560         * modules/pipe-filter-ii (Depends-on): Likewise.
37561         * MODULES.html.sh (Executing programs): Update.
37562         * NEWS: Mention the change.
37564 2010-12-10  Eric Blake  <eblake@redhat.com>
37566         pipe-posix: new module
37567         * modules/pipe-posix: New file.
37568         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
37569         (gl_UNISTD_H): Check for declaration.
37570         * modules/unistd (Makefile.am): Substitute it.
37571         * lib/unistd.in.h (pipe): Provide it for mingw.
37572         * doc/posix-functions/pipe.texi (pipe): Update documentation.
37573         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
37575 2010-12-07  Bruno Haible  <bruno@clisp.org>
37577         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
37578         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
37579         u8_strcmp_gnu.
37580         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
37582 2010-12-06  Bruno Haible  <bruno@clisp.org>
37584         Update internal documentation.
37585         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
37587 2010-12-04  Bruno Haible  <bruno@clisp.org>
37589         Put more information about failed tests into the test return codes.
37590         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
37591         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
37592         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
37593         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
37594         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
37595         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
37596         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
37597         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
37598         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
37599         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
37600         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
37601         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
37602         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
37603         * m4/stdint.m4 (gl_STDINT_H): Likewise.
37604         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
37605         returns a bit mask.
37606         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
37607         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
37608         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
37609         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
37610         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
37611         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
37612         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
37613         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
37614         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
37615         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
37616         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
37617         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
37618         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
37619         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
37620         * m4/link.m4 (gl_FUNC_LINK): Likewise.
37621         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
37622         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
37623         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
37624         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
37625         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
37626         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
37627         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
37628         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
37629         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
37630         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
37631         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
37632         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
37633         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
37634         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
37635         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
37636         gl_PRINTF_PRECISION): Likewise.
37637         * m4/regex.m4 (gl_REGEX): Likewise.
37638         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
37639         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
37640         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
37641         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
37642         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
37643         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37644         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
37645         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
37646         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
37647         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
37648         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
37649         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
37650         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
37651         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
37652         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
37653         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
37654         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
37655         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
37656         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
37657         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
37658         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
37659         enumerated value.
37660         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
37662 2010-12-04  Bruno Haible  <bruno@clisp.org>
37664         Update for Solaris 11 2010-11.
37665         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
37666         Express, released in November 2010.
37668 2010-12-04  Bruno Haible  <bruno@clisp.org>
37670         nproc: Relax license.
37671         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
37672         and Paul Eggert.
37673         Requested by Ludovic Courtès <ludo@gnu.org>.
37675 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
37677         utimecmp: fine-grained src to nearby coarse-grained dest
37679         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
37680         and the source is on a file system with higher-resolution time
37681         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
37682         not work, and the time stamps are close together, the algorithm to
37683         determine the exact resolution from the read-back mtime was buggy:
37684         it had a "!=" where it should have had an "==".  This bug has been
37685         in the code ever since it was introduced to gnulib.
37686         Problem reported by Dan Jacobson in
37687         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
37689 2010-11-30  Bruno Haible  <bruno@clisp.org>
37691         strerror_r-posix: Fix autoconf test.
37692         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
37694 2010-11-28  Bruno Haible  <bruno@clisp.org>
37695             Paul Eggert  <eggert@cs.ucla.edu>
37697         Tests for module 'getdomainname'.
37698         * modules/getdomainname-tests: New file.
37699         * tests/test-getdomainname.c: New file, based on
37700         tests/test-gethostname.c.
37702 2010-11-28  Bruno Haible  <bruno@clisp.org>
37703             Paul Eggert  <eggert@cs.ucla.edu>
37705         getdomainname: Use the system function when possible.
37706         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
37707         (getdomainname): Replace if needed. Provide the declaration if it is
37708         missing. Don't use _GL_CXXALIAS_SYS_CAST.
37709         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
37710         (getdomainname): When the system has getdomainname, call the system
37711         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
37712         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
37713         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
37714         found in libnsl. Look for the declaration also in <netdb.h>. Replace
37715         the function if its second argument is of type 'int' or if it is found
37716         in libnsl.
37717         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
37718         <sys/systeminfo.h> and sysinfo().
37719         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
37720         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37721         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
37722         HAVE_GETDOMAINNAME.
37723         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
37724         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
37725         * doc/glibc-functions/getdomainname.texi: Document the problems with
37726         the getdomainname declaration.
37728 2010-11-28  Bruno Haible  <bruno@clisp.org>
37730         sys_socket: Ensure ss_family field on AIX.
37731         * lib/sys_socket.in.h (ss_family): New macro definition.
37732         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
37733         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
37734         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
37735         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
37736         * modules/sys_socket (Makefile.am): Substitute
37737         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
37738         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
37740 2010-11-27  Bruno Haible  <bruno@clisp.org>
37742         readline: Improve configure output.
37743         * m4/readline.m4 (gl_FUNC_READLINE): Make the
37744         "checking for readline..." result understandable.
37746 2010-11-27  Bruno Haible  <bruno@clisp.org>
37748         *printf-posix: Detect a bug on Solaris 10/x86.
37749         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
37750         for floating-point output.
37751         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
37752         directive.
37753         * tests/test-snprintf-posix.h (test_function): Likewise.
37754         * tests/test-sprintf-posix.h (test_function): Likewise.
37755         * tests/test-vasprintf-posix.c (test_function): Likewise.
37756         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
37757         * doc/posix-functions/printf.texi: Likewise.
37758         * doc/posix-functions/snprintf.texi: Likewise.
37759         * doc/posix-functions/sprintf.texi: Likewise.
37760         * doc/posix-functions/vfprintf.texi: Likewise.
37761         * doc/posix-functions/vprintf.texi: Likewise.
37762         * doc/posix-functions/vsnprintf.texi: Likewise.
37763         * doc/posix-functions/vsprintf.texi: Likewise.
37764         * doc/glibc-functions/obstack_printf.texi: Likewise.
37765         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
37767 2010-11-27  Bruno Haible  <bruno@clisp.org>
37769         Fix link error when module libunistring-optional is in use.
37770         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
37771         * modules/striconveha-tests (Makefile.am): Likewise.
37773 2010-11-27  Bruno Haible  <bruno@clisp.org>
37775         regex: Mention link dependencies.
37776         * modules/regex (Link): New section.
37777         * modules/rpmatch (Link): Likewise.
37778         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
37780 2010-11-27  Bruno Haible  <bruno@clisp.org>
37782         ftoastr: Fix compilation error on Solaris.
37783         * lib/ftoastr.c: Include <config.h>.
37785 2010-11-27  Bruno Haible  <bruno@clisp.org>
37787         getloadavg: Update documentation.
37788         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
37790 2010-11-27  Bruno Haible  <bruno@clisp.org>
37792         sys_socket: Fix test whether the functions are declared.
37793         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
37794         not <sys/select.h>.
37796 2010-11-27  Bruno Haible  <bruno@clisp.org>
37798         getpass: Make sure to get system declaration on some platforms.
37799         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
37800         gl_USE_SYSTEM_EXTENSIONS.
37801         * modules/getpass (Depends-on): Add extensions.
37803 2010-11-26  Bruno Haible  <bruno@clisp.org>
37805         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
37806         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
37807         'iconv' module is present.
37808         (ICONV_CONST): New macro.
37809         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
37810         ICONV_CONST.
37811         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
37812         set ICONV_CONST.
37813         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
37814         here.
37815         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
37816         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
37817         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
37818         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
37819         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
37820         present.
37822 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
37824         ftoastr: comment fix
37825         * lib/ftoastr.c: "little" -> "little or no" in comment
37827 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
37829         stdint: port to GCC 4.3 + OSX + Octave
37830         On this platform, stdint.h is buggy and defines int64_t to long
37831         long int.  The replacement defined it to long int, causing
37832         problems with C++ style name mangling.  Instead, trust the system
37833         definition if INT64_MAX is defined, and likewise for the unsigned
37834         variant.   Problem reported by Jarno Rajahalme in
37835         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
37836         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
37837         and don't mess with int64_t and INT64_MAX in this case.
37838         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
37840 2010-11-24  Bruno Haible  <bruno@clisp.org>
37842         doc: Corrections regarding MacOS X 10.4 and 10.5.
37843         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
37844         MacOS X.
37845         Reported by Simon Josefsson.
37847 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
37849         Uninstall ".bin" files installed by relocwrapper.
37850         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
37851         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
37852         unless it is already there.
37854 2010-11-21  Bruno Haible  <bruno@clisp.org>
37856         Update for NetBSD 5.0.
37857         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
37858         NetBSD; the test fails on NetBSD 5.0.
37859         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
37860         about NetBSD.
37862 2010-11-21  Bruno Haible  <bruno@clisp.org>
37864         Update for HP-UX 11.23 and HP-UX 11.31.
37865         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
37866         HP-UX.
37868 2010-11-21  Bruno Haible  <bruno@clisp.org>
37870         Update for MacOS X 10.5.
37871         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
37872         MacOS X; the test fails on MacOS X 10.5.8.
37873         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
37874         about MacOS X.
37876 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
37878         bootstrap: add bootstrap_sync option.
37879         See discussion at
37880         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
37881         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
37882         * build-aux/bootstrap: Accept --bootstrap-sync to update
37883         bootstrap if it is not identical to the local gnulib's
37884         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
37885         enable this by default.  Accept --no-bootstrap-sync to disable
37886         it.
37888 2010-11-20  Bruno Haible  <bruno@clisp.org>
37890         Ensure that <features.h> is included before __GLIBC__ is tested.
37891         * lib/printf-parse.h: Include <features.h>.
37892         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
37893         Reported by Mike Frysinger <vapier@gentoo.org>.
37895         Ensure that <features.h> is included before __GLIBC__ is tested.
37896         * lib/wchar.in.h: Include <features.h>.
37897         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
37898         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
37899         Reported by Mike Frysinger <vapier@gentoo.org>.
37901         Ensure that <features.h> is included before __GLIBC__ is tested.
37902         * lib/arpa_inet.in.h: Include <features.h>.
37903         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
37904         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
37905         Reported by Mike Frysinger <vapier@gentoo.org>.
37907         Ensure that <features.h> is included before __GLIBC__ is tested.
37908         * build-aux/link-warning.h: Include <features.h>.
37909         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
37910         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
37911         Reported by Mike Frysinger <vapier@gentoo.org>.
37913         Ensure that <features.h> is included before __GLIBC__ is tested.
37914         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
37915         Reported by Mike Frysinger <vapier@gentoo.org>.
37917 2010-11-20  Bruno Haible  <bruno@clisp.org>
37919         memmem: Fix autoconf test.
37920         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
37922 2010-11-20  Bruno Haible  <bruno@clisp.org>
37924         Port to uClibc.
37925         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
37926         * lib/fcntl.in.h: Likewise.
37927         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
37928         * lib/mbrtowc.c (mbrtowc): Likewise.
37929         * lib/relocatable.c (find_shared_library_fullname): Likewise.
37930         * lib/strerror_r.c: Likewise.
37931         * lib/unistr/u8-strnlen.c: Likewise.
37932         * lib/vasnprintf.c (decimal_point_char): Likewise.
37933         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
37934         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
37935         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
37936         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
37937         * tests/test-sigaction.c (handler, main): Likewise.
37938         * lib/freading.h: Treat uClibc like a non-glibc platform.
37939         * lib/freading.c: Likewise.
37940         * lib/gettext.h: Likewise.
37941         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
37942         Likewise.
37943         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
37944         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
37945         * lib/propername.c (proper_name_utf8): Likewise.
37946         * lib/spawn.in.h: Likewise.
37947         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
37948         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
37949         mem_cd_iconveh_internal): Likewise.
37950         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
37951         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
37952         strstr, strcasestr): Likewise.
37953         * lib/unicodeio.c (unicode_to_mb): Likewise.
37954         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
37955         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
37956         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
37957         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
37958         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
37959         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
37960         * lib/unistr/u8-stpncpy.c: Likewise.
37961         * lib/vasnprintf.c (VASNPRINTF): Likewise.
37962         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
37963         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
37964         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
37965         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
37966         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
37967         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
37968         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
37969         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
37970         Likewise.
37971         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
37972         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
37973         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
37974         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37975         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
37976         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
37977         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
37978         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
37979         * tests/test-getopt.h (OPTIND_MIN): Likewise.
37980         * tests/test-striconveha.c (main): Likewise.
37981         * tests/test-vasnprintf-posix.c (test_function): Likewise.
37982         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
37983         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
37984         * doc/posix-functions/getline.texi: Likewise.
37985         Reported by Mike Frysinger <vapier@gentoo.org>.
37987 2010-11-20  Bruno Haible  <bruno@clisp.org>
37989         nproc: Fix condition.
37990         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
37991         HAVE_PTHREAD_AFFINITY_NP.
37993 2010-11-20  Bruno Haible  <bruno@clisp.org>
37995         Fix a comment.
37996         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
37998 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
38000         ftoastr: don't assume snprintf
38001         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
38002         Implement a subset of snprintf here, by using sprintf safely.
38003         * modules/ftoastr (Depends-on): Remove snprintf.
38005 2010-11-19  Jim Meyering  <meyering@redhat.com>
38007         test-rename.h: fix compilation failure
38008         * tests/test-rename.h (test_rename): Add omitted "}".
38010 2010-11-17  Jim Meyering  <meyering@redhat.com>
38012         maint.mk: add a URL discussing the no-@acronym policy
38013         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
38015 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
38017         ftoastr: depend on snprintf, improve comments
38018         * lib/ftoastr.c: Also mention Loitsch's draft.
38019         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
38020         needed in the current implementation, but it might simplify
38021         speeding up the code later.
38022         * modules/ftoastr: Depend on snprintf; this improves portability.
38023         Suggested by Bruno Haible in the same email.
38025         ftoastr: port to hosts lacking strtof and strtold
38026         Problem reported by Bruno Haible in
38027         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
38028         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
38029         environment and strtold (and presumably strtof) are not available.
38030         * modules/ftoastr (Files): Add m4/c-strtod.m4.
38031         (configure.ac): Require gl_C99_STRTOLD.
38033 2010-11-18  Bruno Haible  <bruno@clisp.org>
38035         c-strtold: Avoid link error on AIX 7.
38036         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
38037         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
38038         (gl_C_STRTOLD): Test whether strtold_l exists.
38039         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38041 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
38043         intprops: new macro INT_BITS_STRLEN_BOUND
38044         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
38045         ftoastr.h.  This exposes an internal of intprops.h that was formerly
38046         not exposed.  Also, it uses a slightly tighter bound than before;
38047         though this makes no practical difference, we might as well be as
38048         tight as we easily can.
38050         ftoastr: new module, for lossless conversion of floats to short strings
38051         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
38052         * modules/ftoastr: New files.
38054 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
38056         bootstrap: port to Solaris sed
38057         * build-aux/bootstrap (get_version): Port to Solaris sed.
38058         See Ralf Wildenhues's note in
38059         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
38061 2010-11-14  Jim Meyering  <meyering@redhat.com>
38063         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
38064         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
38065         and move definition closer to sole use.
38067 2010-11-13  Jim Meyering  <meyering@redhat.com>
38069         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
38070         Now we require at least autoconf-2.59, which means the work-around
38071         is no longer needed.
38072         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
38073         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
38074         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
38075         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
38076         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
38078 2010-11-13  Bruno Haible  <bruno@clisp.org>
38080         rename, renameat: Avoid test failures at NFS mounted locations.
38081         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
38082         functions.
38083         (test_rename): Use assert_nonexistent.
38084         * tests/test-rename.c: Include <dirent.h>.
38085         * tests/test-renameat.c: Likewise.
38086         Reported by Gary V. Vaughan <gary@gnu.org>.
38088         rename, renameat: Document Linux bug with NFS
38089         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
38090         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
38091         * doc/posix-functions/renameat.texi: Likewise.
38092         Suggested by Eric Blake.
38094 2010-11-13  Bruno Haible  <bruno@clisp.org>
38096         rename test: Add comments.
38097         * tests/test-rename.h (test_rename): Add structure and comments.
38099 2010-11-13  Eric Blake  <eblake@redhat.com>
38101         maintainer-makefile: cover a few more files
38102         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
38103         scripts generated within C files, for libvirt.
38105 2010-11-13  Bruno Haible  <bruno@clisp.org>
38107         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
38108         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
38109         character, return the number of bytes that belong together, not always
38110         1.
38111         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
38112         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
38113         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
38114         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
38115         number of bytes of an invalid character.
38116         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
38117         (main): Invoke it.
38118         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
38119         results.
38120         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
38121         malformed byte sequences.
38122         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
38123         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
38124         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
38125         Reported by Ben Pfaff and Paolo Bonzini.
38127 2010-11-13  Bruno Haible  <bruno@clisp.org>
38129         openat: Work around glibc bug with fchownat() and empty file names.
38130         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
38131         (gl_FUNC_FCHOWNAT): Invoke it.
38132         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
38133         * doc/posix-functions/fchownat.texi: Document the glibc bug.
38134         Reported by Gary V. Vaughan <gary@gnu.org>.
38136 2010-11-13  Bruno Haible  <bruno@clisp.org>
38138         openat: Ensure autoconf macro ordering.
38139         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
38140         gl_USE_SYSTEM_EXTENSIONS.
38141         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
38143 2010-11-13  Bruno Haible  <bruno@clisp.org>
38145         Update comments.
38146         * lib/unistr/u8-check.c: Update file name in comments.
38147         * lib/unistr/u8-mblen.c: Likewise.
38148         * lib/unistr/u8-prev.c: Likewise.
38149         * lib/unistr/u8-strmblen.c: Likewise.
38150         * lib/unistr/u8-strmbtouc.c: Likewise.
38152 2010-11-13  Jim Meyering  <meyering@redhat.com>
38154         tests: avoid test failure on Solaris 10 due to lack of PATH export
38155         * tests/test-update-copyright.sh: Don't forget to export PATH.
38157         init.sh: ensure that IFS is defined, just in case...
38158         * tests/init.sh (setup_): Ensure that IFS is defined,
38159         so that saving and restoring it works as expected.  This
38160         appears to be useful at least for an old version of dash
38161         from a long time ago (RH 6).  See here for details:
38162         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
38164         maint.mk: tighten "test a == b" check
38165         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
38166         test to files that contain something like #!/bin/sh.
38167         Without this, coreutils would get two false positives in
38168         the comments of C source files.
38170 2010-11-12  Eric Blake  <eblake@redhat.com>
38172         bootstrap: fix typo in previous attempt
38173         * build-aux/bootstrap (buildreq): Correct the grouping.
38174         Reported by Paul Eggert.
38176         maintainer-makefile: prohibit test x == x
38177         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
38178         Based on a report by Matthias Bolte.
38180         bootstrap: allow FreeBSD gzip
38181         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
38182         which has no '.' and goes to stderr.
38183         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
38184         Reported by Matthias Bolte.
38186         maintainer-makefile: check for i18n setup
38187         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
38188         will likely work.
38190 2010-11-12  Bruno Haible  <bruno@clisp.org>
38192         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
38193         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
38194         * lib/nanosleep.c (nanosleep): Likewise.
38196 2010-11-11  Bruno Haible  <bruno@clisp.org>
38198         fcntl-h: Fix for use of C++ on glibc systems.
38199         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
38200         also on glibc systems in C++ mode.
38201         Reported by Gary V. Vaughan <gary@gnu.org>.
38203 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
38205         mknod: avoid false failure with dash
38206         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
38208 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
38210         unlink: Fix "is it should" typo in diagnostic.
38211         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
38212         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
38214 2010-11-11  Bruno Haible  <bruno@clisp.org>
38216         Tests for module 'strerror_r-posix'.
38217         * modules/strerror_r-posix-tests: New file.
38218         * tests/test-strerror_r.c: New file.
38219         * tests/test-string-c++.cc: Check the signature of strerror_r.
38221         New module 'strerror_r-posix'.
38222         * lib/string.in.h (strerror_r): New declaration.
38223         * lib/strerror_r.c: New file.
38224         * m4/strerror_r.m4: New file.
38225         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
38226         of strerror_r.
38227         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
38228         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
38229         * modules/strerror_r-posix: New file.
38230         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
38231         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
38232         * doc/posix-functions/strerror_r.texi: Mention the new module and the
38233         portability problems.
38235 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
38237         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
38238         line is also considered for output. Quoted function name in shell
38239         command, so temporary files for functions like MyClass::operator()
38240         are removed correctly without errors.
38242 2010-11-09  Bruno Haible  <bruno@clisp.org>
38244         * doc/posix-functions/strerror.texi: List more failing platforms.
38246         * doc/posix-functions/strerror.texi: Add a comment.
38248 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
38250         fdopendir: fix bug on MacOS X when low on file descriptors
38252         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
38253         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
38254         All callers changed.
38255         (fdopendir): Invoke save_cwd at the top level, not after using
38256         multiple dup() calls to use up file descriptors.  Then retry
38257         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
38258         less than the maximum number of open file descriptors, because
38259         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
38260         on Mac OS X 10.6.4 for tar 1.24
38261         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
38262         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
38263         and for tar 1.25
38264         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
38266 2010-11-07  Bruno Haible  <bruno@clisp.org>
38268         vasnprintf: Support I flag on glibc systems.
38269         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
38270         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
38271         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
38272         snprintf function.
38273         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
38274         glibc systems.
38275         * tests/test-vasnprintf-posix3.c: New file.
38276         * modules/vasnprintf-posix-tests (Files): Add it.
38277         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
38279 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
38281         [html] Fix copy/paste bug: Use unique name for compiler warnings.
38282         * MODULES.html.sh: For compiler warnings, use name
38283         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
38285 2010-11-05  Eric Blake  <eblake@redhat.com>
38287         ceil, floor: avoid spurious failure with icc
38288         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
38289         [denormals-as-zero] when optimizing without -mieee-fp option.
38290         * tests/test-floorf2.c (floorf_reference): Likewise.
38291         * tests/test-ceilf1.c (dummy): New function.
38292         (main): Use it to outsmart icc's optimization.
38293         * tests/test-floorf1.c (dummy, main): Likewise.
38295         tests: require working signbit
38296         * modules/ceilf-tests (Depends-on): Add signbit.
38297         * modules/ceill-tests (Depends-on): Likewise.
38298         * modules/floorf-tests (Depends-on): Likewise.
38299         * modules/floorl-tests (Depends-on): Likewise.
38300         * modules/round-tests (Depends-on): Likewise.
38301         * modules/roundf-tests (Depends-on): Likewise.
38302         * modules/roundl-tests (Depends-on): Likewise.
38303         * modules/trunc-tests (Depends-on): Likewise.
38304         * modules/truncf-tests (Depends-on): Likewise.
38305         * modules/truncl-tests (Depends-on): Likewise.
38307         strtod: work around icc bug
38308         * lib/strtod.c (minus_zero): Define to working value.
38309         (strtod): Use it to avoid icc bug.
38311         copysign: enhance tests
38312         * modules/copysign-tests (Files): Add minus-zero.h.
38313         * tests/test-copysign.c (main): Also test zeros.
38315 2010-11-04  Eric Blake  <eblake@redhat.com>
38317         ceil, floor, round, trunc: enhance tests of -0
38318         * tests/test-ceilf1.c (main): Ensure correct sign of result.
38319         * tests/test-ceill.c (main): Likewise.
38320         * tests/test-floorf1.c (main): Likewise.
38321         * tests/test-floorl.c (main): Likewise.
38322         * tests/test-round1.c (main): Likewise.
38323         * tests/test-roundf1.c (main): Likewise.
38324         * tests/test-roundl.c (main): Likewise.
38325         * tests/test-trunc1.c (main): Likewise.
38326         * tests/test-truncf1.c (main): Likewise.
38327         * tests/test-truncl.c (main): Likewise.
38329 2010-11-04  Eric Blake  <eblake@redhat.com>
38331         frexp, tests: work around ICC bug with -zero
38332         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
38333         works with more compilers.
38334         * tests/minus-zero.h: New file.
38335         * modules/ceilf-tests (Files): Include it.
38336         * modules/ceill-tests (Files): Likewise.
38337         * modules/floorf-tests (Files): Likewise.
38338         * modules/floorl-tests (Files): Likewise.
38339         * modules/frexp-nolibm-tests (Files): Likewise.
38340         * modules/frexp-tests (Files): Likewise.
38341         * modules/frexpl-nolibm-tests (Files): Likewise.
38342         * modules/frexpl-tests (Files): Likewise.
38343         * modules/isnan-tests (Files): Likewise.
38344         * modules/isnand-nolibm-tests (Files): Likewise.
38345         * modules/isnand-tests (Files): Likewise.
38346         * modules/isnanf-nolibm-tests (Files): Likewise.
38347         * modules/isnanf-tests (Files): Likewise.
38348         * modules/isnanl-nolibm-tests (Files): Likewise.
38349         * modules/isnanl-tests (Files): Likewise.
38350         * modules/round-tests (Files): Likewise.
38351         * modules/roundf-tests (Files): Likewise.
38352         * modules/roundl-tests (Files): Likewise.
38353         * modules/ldexpl-tests (Files): Likewise.
38354         * modules/signbit-tests (Files): Likewise.
38355         * modules/snprintf-posix-tests (Files): Likewise.
38356         * modules/sprintf-posix-tests (Files): Likewise.
38357         * modules/strtod-tests (Files): Likewise.
38358         * modules/trunc-tests (Files): Likewise.
38359         * modules/truncf-tests (Files): Likewise.
38360         * modules/truncl-tests (Files): Likewise.
38361         * modules/vsnprintf-posix-tests (Files): Likewise.
38362         * modules/vsprintf-posix-tests (Files): Likewise.
38363         * modules/vasnprintf-posix-tests (Files): Likewise.
38364         * modules/vasprintf-posix-tests (Files): Likewise.
38365         * tests/test-ceilf1.c (main): Use it.
38366         * tests/test-ceill.c (main): Likewise.
38367         * tests/test-floorf1.c (main): Likewise.
38368         * tests/test-floorl.c (main): Likewise.
38369         * tests/test-frexp.c (main): Likewise.
38370         * tests/test-frexpl.c (main): Likewise.
38371         * tests/test-isnan.c (main): Likewise.
38372         * tests/test-isnand.h (main): Likewise.
38373         * tests/test-isnanf.h (main): Likewise.
38374         * tests/test-isnanl.h (main): Likewise.
38375         * tests/test-ldexpl.c (main): Likewise.
38376         * tests/test-round.c (main): Likewise.
38377         * tests/test-roundf.c (main): Likewise.
38378         * tests/test-roundl.c (main): Likewise.
38379         * tests/test-signbit.c (test_signbitf, test_signbitd)
38380         (test_signbitl): Likewise.
38381         * tests/test-snprintf-posix.h (test_function): Likewise.
38382         * tests/test-sprintf-posix.h (test_function): Likewise.
38383         * tests/test-strtod.c (main): Likewise.
38384         * tests/test-trunc1.c (main): Likewise.
38385         * tests/test-truncf1.c (main): Likewise.
38386         * tests/test-truncl.c (main): Likewise.
38388         isnanl: work around icc bug
38389         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
38391 2010-11-03  Eric Blake  <eblake@redhat.com>
38393         tests: fix compiler warnings
38394         * tests/test-getopt.h (test_getopt): Fix condition.
38395         * tests/test-getopt_long.h (test_getopt_long): Likewise.
38396         * tests/test-pipe2.c (main): Likewise.
38397         * tests/test-quotearg-simple.c (main): Avoid icc warning.
38399         utimens: fix broken m4 test
38400         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
38402 2010-10-28  Bruno Haible  <bruno@clisp.org>
38404         posix_spawn*, getdtablesize: Relax license.
38405         * modules/posix_spawn (License): Change to LGPLv2+.
38406         * modules/posix_spawnp (License): Likewise.
38407         * modules/posix_spawn-internal (License): Likewise.
38408         * modules/posix_spawnattr_init (License): Likewise.
38409         * modules/posix_spawnattr_getflags (License): Likewise.
38410         * modules/posix_spawnattr_setflags (License): Likewise.
38411         * modules/posix_spawnattr_getpgroup (License): Likewise.
38412         * modules/posix_spawnattr_setpgroup (License): Likewise.
38413         * modules/posix_spawnattr_getschedparam (License): Likewise.
38414         * modules/posix_spawnattr_setschedparam (License): Likewise.
38415         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
38416         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
38417         * modules/posix_spawnattr_getsigdefault (License): Likewise.
38418         * modules/posix_spawnattr_setsigdefault (License): Likewise.
38419         * modules/posix_spawnattr_getsigmask (License): Likewise.
38420         * modules/posix_spawnattr_setsigmask (License): Likewise.
38421         * modules/posix_spawnattr_destroy (License): Likewise.
38422         * modules/posix_spawn_file_actions_init (License): Likewise.
38423         * modules/posix_spawn_file_actions_addclose (License): Likewise.
38424         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
38425         * modules/posix_spawn_file_actions_addopen (License): Likewise.
38426         * modules/posix_spawn_file_actions_destroy (License): Likewise.
38427         * modules/getdtablesize (License): Likewise.
38428         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
38430 2010-10-26  Bruno Haible  <bruno@clisp.org>
38432         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
38433         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
38434         Cygwin and mingw.
38435         Suggested by Eric Blake.
38437 2010-10-26  Bruno Haible  <bruno@clisp.org>
38439         stdio: Work around compilation error due to renameat() on Solaris 10.
38440         * lib/stdio.in.h: Include <unistd.h> on Solaris.
38441         * lib/renameat.c: Don't include <unistd.h> here.
38442         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
38443         Reported by Paul Eggert and Eric Blake.
38445 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
38447         renameat: port to Solaris 10, which declares renameat in unistd.h
38449         * lib/renameat.c: Include unistd.h before stdio.h, because
38450         Solaris 10 declares renameat in unistd.h.  Problem encountered
38451         when building GNU tar 1.24 on Solaris 10.
38453 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
38455         fdopendir: fix C89 compilation
38456         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
38457         compilers.
38459 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
38461         inttostr: simplify by removing unnecessary redundancy
38462         * lib/anytostr.c: Don't include verify.h.
38463         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
38464         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
38465         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
38466         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
38467         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
38468         Likewise.
38469         * modules/inttostr (Depends-on): Remove 'verify'.
38471 2010-10-23  Bruno Haible  <bruno@clisp.org>
38473         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
38474         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
38475         Reported by Eric Blake.
38477 2010-10-23  Bruno Haible  <bruno@clisp.org>
38479         Tests: Fix LOCALE_JA on MirBSD 10.
38480         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
38481         to an UTF-8 locale.
38482         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
38483         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
38484         Reported by Eric Blake.
38486 2010-10-21  Bruno Haible  <bruno@clisp.org>
38488         nl_langinfo test: Avoid test failure on NetBSD 5.
38489         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
38490         Reported by Eric Blake.
38492 2010-10-21  Eric Blake  <eblake@redhat.com>
38494         c-stack: work around libsigsegv 2.8 bug
38495         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
38496         overflow on at least PowerPC64.
38498 2010-10-17  Bruno Haible  <bruno@clisp.org>
38500         userspec: Drop redundant file.
38501         * modules/userspec (Files): Remove lib/inttostr.h.
38503 2010-10-17  Bruno Haible  <bruno@clisp.org>
38505         nl_langinfo tests: Silence some warnings.
38506         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
38507         Reported by Jim Meyering.
38509 2010-10-17  Bruno Haible  <bruno@clisp.org>
38511         Make use of GCC's attribute __alloc_size__.
38512         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
38513         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
38514         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
38515         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
38516         __alloc_size__.
38517         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
38518         Suggested by Jim Meyering.
38520 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
38522         bootstrap: anchor .gitignore entries.
38523         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
38524         with...
38525         (insert_vc_ignore): ... this new function, which prepends `/' to
38526         all .gitignore entries before passing them to
38527         insert_sorted_if_absent.
38529 2010-10-16  Bruno Haible  <bruno@clisp.org>
38531         nextafter: Fix configure check.
38532         * modules/nextafter (configure.ac): Correct expected prototype.
38534 2010-10-16  Bruno Haible  <bruno@clisp.org>
38536         termios: Update documentation.
38537         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
38539 2010-10-16  Bruno Haible  <bruno@clisp.org>
38541         tests: Make them compile with TinyCC.
38542         * tests/test-strstr.c (main): Remove parentheses around array
38543         initializer.
38545 2010-10-15  Eric Blake  <eblake@redhat.com>
38547         ignore-value: make header idempotent
38548         * lib/ignore-value.h: Add double-inclusion guards.
38549         Reported by Stefan Berger.
38551 2010-10-15  Jim Meyering  <meyering@redhat.com>
38553         GNUmakefile: handle "stable" target, not "major"
38554         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
38555         lists in maint.mk and announce-gen.  Without this, "make stable"
38556         would fail to ensure that $(VERSION) is up to date.
38558 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
38560         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
38561         & co.
38563 2010-10-14  Bruno Haible  <bruno@clisp.org>
38565         vasnprintf: Don't set errno to 0.
38566         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
38567         block that sets it to 0.
38568         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
38570 2010-10-14  Bruno Haible  <bruno@clisp.org>
38572         socketlib: Fix.
38573         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
38574         gl_PREREQ_SYS_H_WINSOCK2.
38575         Reported by Ian Beckwith <ianb@erislabs.net>.
38577 2010-10-13  Jim Meyering  <meyering@redhat.com>
38579         test-select-stdin.c: avoid warn_unused_result warnings
38580         * tests/test-select-stdin.c: Include "macros.h".
38581         ASSERT that read and fflush succeed.
38583 2010-10-13  Jim Meyering  <meyering@redhat.com>
38585         git-version-gen: do require git-VC'd files in cwd
38586         * build-aux/git-version-gen: Reject a git version string
38587         if there are no commits associated with the current directory.
38588         This avoids an unlikely false-positive (unrelated dir whose parent
38589         repository also contains a tag matching v*), as pointed out
38590         by Giuseppe Scrivano in
38591         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
38593 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
38595         argv-iter: omit nonconforming declaration
38596         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
38597         enum arg_iter_err declaration, which doesn't conform to C99.
38598         Solaris 10 cc warns about this.
38600 2010-10-13  Eric Blake  <eblake@redhat.com>
38602         termios: fix compilation on mingw
38603         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
38604         (gl_TERMIOS_H): Adjust it on mingw.
38605         * modules/termios (Makefile.am): Substitute new key.
38606         * lib/termios.in.h (includes): Make include_next conditional.
38607         * doc/posix-headers/termios.texi (termios.h): Update
38608         documentation.
38609         Reported by Daniel P. Berrange.
38611 2010-10-13  Jim Meyering  <meyering@redhat.com>
38613         git-version-gen: don't require that .git/ be in the current dir
38614         * build-aux/git-version-gen: Adjust this script so that it works
38615         when run from any working directory beneath the top-level .git/-
38616         containing directory.  Inspired by a patch from Giuseppe Scrivano,
38617         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
38619         test-select: avoid warn_unused_result warnings
38620         * tests/test-select.c: Include "macros.h".
38621         ASSERT that each call to read, write, and pipe succeeds.
38622         While not technically required, also check each "close".
38623         * modules/select-tests (Files): Add tests/macros.h.
38625         test-symlinkat: remove declaration of unused local
38626         * tests/test-symlinkat.c (main): Remove unused local, "buf".
38628         test-inttostr: avoid shadowing warnings
38629         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
38630         and use malloc rather than the stack for the same reason as
38631         mentioned in the comment justifying the other allocation.
38633 2010-10-11  Bruno Haible  <bruno@clisp.org>
38635         stdlib: Allow multiple gnulib generated replacements to coexist.
38636         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
38637         Reported by Sam Steingold <sds@gnu.org>.
38639 2010-10-11  Jim Meyering  <meyering@redhat.com>
38641         fix a documentation typo
38642         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
38644 2010-10-11  Eric Blake  <eblake@redhat.com>
38646         futimens: work around Solaris 11 bug
38647         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
38648         * tests/test-futimens.h (test_futimens): Enhance, rather than
38649         weaken test.
38650         * doc/posix-functions/futimens.texi (futimens): Document the bug.
38652 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
38654         Indentation.
38655         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
38656         higher-level operators more to the left.
38658 2010-10-11  Jim Meyering  <meyering@redhat.com>
38660         test-futimens: avoid unwarranted test failure on Solaris 5.11
38661         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
38662         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
38663         because it tries to dereference the NULL name argument.
38665 2010-10-11  Bruno Haible  <bruno@clisp.org>
38667         Indentation.
38668         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
38669         indentation.
38671 2010-10-11  Jim Meyering  <meyering@redhat.com>
38673         spawn.in.h: make indentation consistent with parentheses
38674         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
38675         Make indentation consistent with parentheses.
38677 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
38679         Fix mismatched parens in previous commit
38680         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
38681         parens.
38683 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
38685         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
38687         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
38688         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
38689         * lib/malloca.c: Include "verify.h".
38690         (verify1): Remove, replacing with a verify call.
38691         * lib/relocwrapper.c (verify1): Likewise.
38692         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
38693         Likewise.
38694         * modules/malloca (Depends-on): Add 'verify'.
38695         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
38696         * modules/vasnprintf (Depends-on): Add 'verify'.
38697         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
38698         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38699         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38700         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38701         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38702         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38703         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38705         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
38707         Formerly the style was sometimes 2*X - 1, because the C standard
38708         was wrongly thought to disallow ?: in integral constant expressions.
38709         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
38710         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
38711         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
38712         * lib/stdint.in.h (_verify_intmax_size): Likewise.
38713         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
38714         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
38715         verify that time_t cannot be floating.
38717 2010-10-08  Eric Blake  <eblake@redhat.com>
38719         time: enforce recent POSIX ruling that time_t is integral
38720         * lib/time.in.h (__time_t_must_be_integral): Detect any
38721         problematic systems, allowing the rest of gnulib to assume POSIX.
38723 2010-10-08  Jim Meyering  <meyering@redhat.com>
38725         fdopendir: fix a bug on systems lacking openat and /proc support
38726         OpenBSD 4.7 is one such system.  The most noticeable effect was
38727         failure of any application making nontrivial use of fts: rm, du,
38728         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
38729           ./rm: traversal failed: `a': Bad file descriptor
38730         Debugging that, you see that even though FD 6 was closed just
38731         prior to the opendir call in fd_clone_opendir, its resulting
38732         dir->dd_fd was 8, rather than the expected value of 6:
38734         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
38735         93                close (fd);
38736         (gdb) n
38737         94                dir = fd_clone_opendir (dupfd);
38738         (gdb) n
38739         95                saved_errno = errno;
38740         (gdb) p dir->dd_fd
38741         $11 = 8
38743         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
38744         The problem is that on OpenBSD, fd_clone_opendir has to resort
38745         to using the old-style save/restore CWD mechanism, due to its
38746         lack of openat/proc support, and *that* would steal the FD (6)
38747         that opendir was supposed to use.
38749         The fix is to squirrel away the desired FD so that save_cwd uses a
38750         different one, and then free the dest FD right before calling opendir.
38751         That guarantees opendir will use the required file descriptor.
38753         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
38755 2010-10-08  Bruno Haible  <bruno@clisp.org>
38757         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
38758         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
38760 2010-10-08  Bruno Haible  <bruno@clisp.org>
38762         nanosleep: Make replacement POSIX compliant.
38763         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
38764         is out of range.
38765         Reported by Jim Meyering.
38767 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
38769         bootstrap: add hook for altering gnulib.mk, for Bison
38770         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
38771         the Bison bootstrapping process can rewrite file names and variables
38772         in this file before later parts of 'bootstrap' use the file.
38773         Bison wants to include lib/gnulib.mk from the top-level makefile,
38774         so it needs the file names in this file to be relative to the top
38775         level, not relative to lib; plus it needs variable names to be
38776         rewritten.
38777         (slurp): Use the new function.
38779         bootstrap: reformat for readability
38780         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
38782 2010-10-08  Eric Blake  <eblake@redhat.com>
38784         docs: update cygwin progress
38785         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
38786         1.7.7.
38787         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
38788         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
38789         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
38790         * doc/posix-functions/carg.texi (carg): Likewise.
38791         * doc/posix-functions/cargf.texi (cargf): Likewise.
38792         * doc/posix-functions/casin.texi (casin): Likewise.
38793         * doc/posix-functions/casinf.texi (casinf): Likewise.
38794         * doc/posix-functions/casinh.texi (casinh): Likewise.
38795         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
38796         * doc/posix-functions/catan.texi (catan): Likewise.
38797         * doc/posix-functions/catanf.texi (catanf): Likewise.
38798         * doc/posix-functions/catanh.texi (catanh): Likewise.
38799         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
38800         * doc/posix-functions/ccos.texi (ccos): Likewise.
38801         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
38802         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
38803         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
38804         * doc/posix-functions/cexp.texi (cexp): Likewise.
38805         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
38806         * doc/posix-functions/cimag.texi (cimag): Likewise.
38807         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
38808         * doc/posix-functions/clog.texi (clog): Likewise.
38809         * doc/posix-functions/clogf.texi (clogf): Likewise.
38810         * doc/posix-functions/conj.texi (conj): Likewise.
38811         * doc/posix-functions/conjf.texi (conjf): Likewise.
38812         * doc/posix-functions/cpow.texi (cpow): Likewise.
38813         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
38814         * doc/posix-functions/cproj.texi (cproj): Likewise.
38815         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
38816         * doc/posix-functions/creal.texi (creal): Likewise.
38817         * doc/posix-functions/crealf.texi (crealf): Likewise.
38818         * doc/posix-functions/csin.texi (csin): Likewise.
38819         * doc/posix-functions/csinf.texi (csinf): Likewise.
38820         * doc/posix-functions/csinh.texi (csinh): Likewise.
38821         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
38822         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
38823         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
38824         * doc/posix-functions/ctan.texi (ctan): Likewise.
38825         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
38826         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
38827         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
38828         * doc/posix-headers/complex.texi (complex.h): Likewise.
38830 2010-10-07  Jim Meyering  <meyering@redhat.com>
38832         parse-datetime: avoid compilation failure on OpenBSD 4.7
38833         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
38834         This works around a compilation failure on OpenBSD 4.7:
38835         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
38837 2010-10-07  Eric Blake  <eblake@redhat.com>
38839         docs: update cygwin progress
38840         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
38841         1.7.6.
38842         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
38843         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
38844         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
38845         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
38846         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
38847         Likewise.
38848         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
38849         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
38850         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
38851         Likewise.
38852         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
38853         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
38854         Likewise.
38855         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
38856         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
38857         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
38858         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
38859         Likewise.
38860         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
38861         Likewise.
38862         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
38864         docs: update parse-datetime history
38865         * doc/parse-datetime.texi (Authors of parse_datetime): Better
38866         documentation of this function's history and alternatives.
38868         cygwin: use more robust version check
38869         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
38870         exclude an eventual cygwin 1.9.1.
38871         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
38872         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
38873         (gl_FUNC_STRCASESTR): Likewise.
38874         Reported by Bruno Haible.
38876 2010-10-06  Bruno Haible  <bruno@clisp.org>
38878         string, sys_select: Avoid #including large headers unless necessary.
38879         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
38880         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
38881         OSF/1, BeOS, Haiku.
38882         Reported by Jim Meyering.
38884 2010-10-05  Eric Blake  <eblake@redhat.com>
38886         memmem, strstr, strcasestr: fix bug with long periodic needle
38887         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
38888         periodic needle having false positive.
38889         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
38890         and cygwin 1.7.7.
38891         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
38892         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
38893         (gl_FUNC_STRCASESTR): Likewise.
38894         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
38895         * tests/test-memmem.c (main): Expose the bug.
38896         * tests/test-strcasestr.c (main): Likewise.
38897         * tests/test-strstr.c (main): Likewise.
38898         * tests/test-c-strcasestr.c (main): Likewise.
38899         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
38900         * doc/posix-functions/strstr.texi (strstr): Likewise.
38901         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
38902         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
38904 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
38906         parse-datetime: do some more renaming
38907         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
38908         parse_datetime, not get_date.  Mention the renaming.
38909         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
38910         in comments.
38911         * m4/bison.m4: Likewise.
38913 2010-10-05  Eric Blake  <eblake@redhat.com>
38915         parse-datetime: better name than get_date
38916         * NEWS: Reword the deprecation notice.
38917         * modules/get_date: Rename to modules/parse-datetime.
38918         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
38919         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
38920         * lib/get_date.y: Rename to lib/parse-datetime.y.
38921         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
38922         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
38923         * doc/getdate.texi: Provide fallback wrapper.
38924         * lib/getdate.h: Move guts, and wrap...
38925         * lib/parse-datetime.h: ...new file.
38926         * lib/parse-datetime.y (get_date): Rename...
38927         (parse_datetime): ...to this.
38928         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
38929         (gl_PARSE_DATETIME): ...to this.
38930         * doc/posix-functions/getdate.texi (get_date): Provide fallback
38931         documentation.
38932         * modules/getdate (Files): Provide fallback docs and header.
38933         (Notice, Depends-on): Update references.
38934         * tests/test-parse-datetime.c: Likewise.
38935         * DEPENDENCIES: Likewise.
38936         * MODULES.html.sh (Date and time <time.h>): Likewise.
38937         * doc/parse-datetime.texi (Date input formats)
38938         (Authors of parse_datetime): Likewise.
38939         * modules/parse-datetime (Files, configure.ac, Makefile.am)
38940         (Include): Likewise.
38941         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
38942         * gnulib-tool: Likewise.
38943         * m4/bison.m4 (gl_BISON): Likewise.
38944         Suggested by Bruno Haible.
38946 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
38948         more ports to Solaris tr, which needs [] around ranges
38949         * gnulib-tool: Solaris tr needs [] around ranges.
38950         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
38951         * tests/test-pipe-filter-gi1.c (main): Likewise.
38952         * tests/test-pipe-filter-ii1.c (main): Likewise.
38954 2010-10-05  Eric Blake  <eblake@redhat.com>
38956         bootstrap: fix Solaris regression
38957         * build-aux/bootstrap (check_versions): Solaris tr still needs []
38958         around ranges.
38959         Reported by Pádraig Brady.
38961         bootstrap: work with pkg-config
38962         * build-aux/bootstrap (check_versions): Also transliterate - in
38963         prerequisite name.
38964         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
38965         prerequisites that were already found, to avoid confusion.
38966         Reported by Justin Clift.
38968         faccessat: remove unused wrappers
38969         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
38970         presence of these wrappers dragged in -lgen on Solaris.
38971         Reported by Clemens Brogi; fix suggested by Paul Eggert.
38973 2010-10-05  Jim Meyering  <meyering@redhat.com>
38975         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
38976         * Makefile (sc_pragma_columns): New syntax-check rule.
38978 2010-10-04  Bruno Haible  <bruno@clisp.org>
38980         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
38981         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
38982         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
38983         Reported by Bruce Korb and Eric Blake.
38985 2010-10-04  Bruno Haible  <bruno@clisp.org>
38987         threadlib: Make option --with-libpth-prefix work.
38988         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
38989         use $LIBPTH, not just -lpth.
38991 2010-10-04  Bruno Haible  <bruno@clisp.org>
38993         Avoid line length limitation from HP NonStop system header files.
38994         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
38995         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
38996         * lib/ctype.in.h: Likewise.
38997         * lib/dirent.in.h: Likewise.
38998         * lib/errno.in.h: Likewise.
38999         * lib/fcntl.in.h: Likewise.
39000         * lib/float.in.h: Likewise.
39001         * lib/getopt.in.h: Likewise.
39002         * lib/iconv.in.h: Likewise.
39003         * lib/inttypes.in.h: Likewise.
39004         * lib/langinfo.in.h: Likewise.
39005         * lib/locale.in.h: Likewise.
39006         * lib/math.in.h: Likewise.
39007         * lib/netdb.in.h: Likewise.
39008         * lib/netinet_in.in.h: Likewise.
39009         * lib/poll.in.h: Likewise.
39010         * lib/pthread.in.h: Likewise.
39011         * lib/pty.in.h: Likewise.
39012         * lib/sched.in.h: Likewise.
39013         * lib/se-selinux.in.h: Likewise.
39014         * lib/search.in.h: Likewise.
39015         * lib/signal.in.h: Likewise.
39016         * lib/spawn.in.h: Likewise.
39017         * lib/stdarg.in.h: Likewise.
39018         * lib/stddef.in.h: Likewise.
39019         * lib/stdint.in.h: Likewise.
39020         * lib/stdio.in.h: Likewise.
39021         * lib/stdlib.in.h: Likewise.
39022         * lib/string.in.h: Likewise.
39023         * lib/strings.in.h: Likewise.
39024         * lib/sys_file.in.h: Likewise.
39025         * lib/sys_ioctl.in.h: Likewise.
39026         * lib/sys_select.in.h: Likewise.
39027         * lib/sys_socket.in.h: Likewise.
39028         * lib/sys_stat.in.h: Likewise.
39029         * lib/sys_time.in.h: Likewise.
39030         * lib/sys_times.in.h: Likewise.
39031         * lib/sys_utsname.in.h: Likewise.
39032         * lib/sys_wait.in.h: Likewise.
39033         * lib/sysexits.in.h: Likewise.
39034         * lib/termios.in.h: Likewise.
39035         * lib/time.in.h: Likewise.
39036         * lib/unistd.in.h: Likewise.
39037         * lib/wchar.in.h: Likewise.
39038         * lib/wctype.in.h: Likewise.
39039         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
39040         * modules/ctype (Makefile.am): Likewise.
39041         * modules/dirent (Makefile.am): Likewise.
39042         * modules/errno (Makefile.am): Likewise.
39043         * modules/fcntl-h (Makefile.am): Likewise.
39044         * modules/float (Makefile.am): Likewise.
39045         * modules/getopt-posix (Makefile.am): Likewise.
39046         * modules/iconv-h (Makefile.am): Likewise.
39047         * modules/inttypes (Makefile.am): Likewise.
39048         * modules/langinfo (Makefile.am): Likewise.
39049         * modules/locale (Makefile.am): Likewise.
39050         * modules/math (Makefile.am): Likewise.
39051         * modules/netdb (Makefile.am): Likewise.
39052         * modules/netinet_in (Makefile.am): Likewise.
39053         * modules/poll-h (Makefile.am): Likewise.
39054         * modules/pthread (Makefile.am): Likewise.
39055         * modules/pty (Makefile.am): Likewise.
39056         * modules/sched (Makefile.am): Likewise.
39057         * modules/search (Makefile.am): Likewise.
39058         * modules/selinux-h (Makefile.am): Likewise.
39059         * modules/signal (Makefile.am): Likewise.
39060         * modules/spawn (Makefile.am): Likewise.
39061         * modules/stdarg (Makefile.am): Likewise.
39062         * modules/stddef (Makefile.am): Likewise.
39063         * modules/stdint (Makefile.am): Likewise.
39064         * modules/stdio (Makefile.am): Likewise.
39065         * modules/stdlib (Makefile.am): Likewise.
39066         * modules/string (Makefile.am): Likewise.
39067         * modules/strings (Makefile.am): Likewise.
39068         * modules/sys_file (Makefile.am): Likewise.
39069         * modules/sys_ioctl (Makefile.am): Likewise.
39070         * modules/sys_select (Makefile.am): Likewise.
39071         * modules/sys_socket (Makefile.am): Likewise.
39072         * modules/sys_stat (Makefile.am): Likewise.
39073         * modules/sys_time (Makefile.am): Likewise.
39074         * modules/sys_times (Makefile.am): Likewise.
39075         * modules/sys_utsname (Makefile.am): Likewise.
39076         * modules/sys_wait (Makefile.am): Likewise.
39077         * modules/sysexits (Makefile.am): Likewise.
39078         * modules/termios (Makefile.am): Likewise.
39079         * modules/time (Makefile.am): Likewise.
39080         * modules/unistd (Makefile.am): Likewise.
39081         * modules/wchar (Makefile.am): Likewise.
39082         * modules/wctype (Makefile.am): Likewise.
39084 2010-10-04  Bruno Haible  <bruno@clisp.org>
39086         read-file tests: Avoid a test failure on NonStop Kernel.
39087         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
39088         a regular file.
39089         Reported by Joachim Schmitz <schmitz@hp.com>.
39091 2010-10-03  Bruno Haible  <bruno@clisp.org>
39093         gnulib-tool: Fixes for --create-testdir with --libtool.
39094         * gnulib-tool (func_get_automake_snippet): Don't augment
39095         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
39096         an executable.
39097         (func_create_testdir): Handle module 'alloca' like func_import.
39098         Reported by Bruce Korb <bruce.korb@gmail.com>.
39100 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
39102         Avoid some lines longer than 80 characters.
39103         * lib/stdint.in.h: Break long comment lines.
39104         * lib/math.in.h: Likewise.
39105         (_GL_NUM_UINT_WORDS): New macro, for readability.
39106         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
39107         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
39108         * lib/stdlib.in.h: Likewise.
39109         * lib/spawn.in.h: Likewise.
39110         * lib/sys_socket.in.h: Update an URL.
39111         * lib/sys_stat.in.h: Break long line.
39113 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
39115         Improve pmccabe2html.
39116         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
39117         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
39118         when the sources change. Remove the line in the HTML about "Used
39119         ranges" (which implied that there might be other unused ranges),
39120         rename "Resume" to "Summary" (easier to understand for more users).
39121         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
39122         styles, and some unnecessary blank lines.
39124 2010-10-03  Bruno Haible  <bruno@clisp.org>
39125             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
39127         acl: Add support for ACLs on NonStop Kernel.
39128         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
39129         Check whether the function aclsort() exists.
39130         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
39131         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
39132         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
39133         (acl_nontrivial [HAVE_ACLSORT]: New function.
39134         (file_has_acl): Implement for NonStop Kernel.
39135         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
39136         (qset_acl): Implement for NonStop Kernel.
39137         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
39138         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
39139         (main): Implement for NonStop Kernel.
39140         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
39141         Kernel. Handle this flavor.
39142         * tests/test-set-mode-acl.sh: Likewise.
39143         * tests/test-copy-acl.sh: Likewise.
39144         * tests/test-copy-file.sh: Likewise.
39146 2010-10-03  Bruno Haible  <bruno@clisp.org>
39148         Info about ACLs on NonStop Kernel.
39149         * doc/acl-resources.txt: Add info about NonStop Kernel.
39150         References by Joachim Schmitz <schmitz@hp.com>.
39152 2010-10-02  Bruno Haible  <bruno@clisp.org>
39154         Define missing EDQUOT on NonStop Kernel.
39155         * lib/errno.in.h (EDQUOT): Assign a value if missing.
39156         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
39157         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
39158         missing.
39159         * doc/posix-headers/errno.texi: Mention the NSK bug.
39160         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
39161         Reported by Joachim Schmitz <schmitz@hp.com>.
39163 2010-10-02  Bruno Haible  <bruno@clisp.org>
39165         Update doc for POSIX:2008.
39166         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
39167         Update URL of POSIX specification.
39169 2010-10-02  Bruno Haible  <bruno@clisp.org>
39171         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
39172         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
39173         from gnulib, not from Automake.
39175 2010-10-02  Bruno Haible  <bruno@clisp.org>
39177         New module 'system-posix'.
39178         * modules/system-posix: New file.
39179         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
39180         module is present.
39181         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
39182         GNULIB_SYSTEM_POSIX.
39183         * modules/stdlib (Depends-on): Remove sys_wait.
39184         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
39185         * doc/posix-functions/system.texi: Mention the new module.
39186         * doc/posix-headers/stdlib.texi: Likewise.
39187         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
39188         define test_sys_wait_macros to a no-op.
39189         Reported by Sam Steingold <sds@gnu.org>.
39191 2010-09-30  Bruno Haible  <bruno@clisp.org>
39193         More renaming from 'getdate' to 'get_date'.
39194         * doc/get_date.texi: Renamed from doc/getdate.texi.
39195         * modules/get_date (Files): Update.
39196         * MODULES.html.sh (Date and time <time.h>): Update.
39197         * DEPENDENCIES: Update.
39198         * gnulib-tool: Update comment.
39199         * m4/bison.m4 (gl_BISON): Likewise.
39200         * m4/get_date.m4 (gl_GET_DATE): Likewise.
39202 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
39204         bootstrap: support ACLOCAL_FLAGS during aclocal
39205         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
39206         can add additional -I dir for third-party .m4 files.
39208 2010-09-30  Eric Blake  <eblake@redhat.com>
39210         bootstrap: use glibtoolize on MacOS
39211         * build-aux/bootstrap (check_versions): Convert libtool into
39212         libtoolize.
39213         (tool search): Move libtool check earlier, and look for
39214         glibtoolize for MacOS.
39215         (gnulib_tool_options): Auto-add --libtool when appropriate.
39216         Reported by Justin Clift.
39218         poll: fix typo that broke test on MacOS
39219         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
39220         Reported by Justin Clift.
39222         getdate: rename to get_date
39223         Note: getdate.h is not renamed, to minimize client impact.
39224         * modules/getdate: Mark obsolete.  Move old contents...
39225         * modules/get_date: ...to new module name.
39226         * modules/getdate-tests: Move...
39227         * modules/get_date-tests: ...here.
39228         * m4/getdate.m4: Move...
39229         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
39230         * lib/getdate.y: Move...
39231         * lib/get_date.y: ...here.
39232         * tests/test-getdate.c: Move...
39233         * tests/test-get_date.c: ...here.
39234         * doc/posix-functions/getdate.texi (getdate): Update name.
39235         * NEWS: Mention the change.
39237 2010-09-29  Bruno Haible  <bruno@clisp.org>
39239         Separate the module 'waitpid' from the module 'sys_wait'.
39240         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
39241         present.
39242         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
39243         gl_MODULE_INDICATOR_FOR_TESTS.
39244         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
39245         * modules/sys_wait (Depends-on): Remove waitpid.
39246         (Makefile.am): Substitute GNULIB_WAITPID.
39247         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
39248         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
39249         signature only if the 'waitpid' module is present.
39250         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
39251         * NEWS: Mention the change.
39252         * modules/grantpt (Depends-on): Add waitpid.
39253         * modules/wait-process (Depends-on): Likewise.
39255 2010-09-29  Bruno Haible  <bruno@clisp.org>
39257         More tests for module 'sys_wait'.
39258         * modules/sys_wait-c++-tests: New file.
39259         * tests/test-sys_wait-c++.cc: New file.
39260         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
39261         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
39263 2010-09-29  Bruno Haible  <bruno@clisp.org>
39265         New module 'waitpid'.
39266         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
39267         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
39268         Don't include <process.h>.
39269         (waitpid): Declare only, using modern idiom.
39270         * m4/waitpid.m4: New file.
39271         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
39272         * modules/waitpid: New file.
39273         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
39274         (Makefile.am): Update.
39275         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
39277 2010-09-28  Bruno Haible  <bruno@clisp.org>
39279         poll: Assume ANSI C.
39280         * lib/poll.c (poll): Use an ANSI C declaration.
39282 2010-09-28  Bruno Haible  <bruno@clisp.org>
39284         poll-h: Create poll.h on all platforms.
39285         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
39286         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
39287         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
39288         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
39289         (gl_REPLACE_POLL_H): Don't set POLL_H.
39290         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
39291         * modules/poll-h (Depends-on): Add include_next.
39292         (Makefile.am): Create poll.h unconditionally. Substitute also
39293         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
39295 2010-09-28  Bruno Haible  <bruno@clisp.org>
39297         Tests for module 'poll-h'.
39298         * modules/poll-h-c++-tests: New file.
39299         * tests/test-poll-h-c++.cc: New file.
39301         Tests for module 'poll-h'.
39302         * modules/poll-h-tests: New file.
39303         * tests/test-poll-h.c: New file.
39305 2010-09-28  Bruno Haible  <bruno@clisp.org>
39307         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
39308         * modules/poll-h (Depends-on): Add 'extensions'.
39310 2010-09-28  Bruno Haible  <bruno@clisp.org>
39312         New module 'poll-h'.
39313         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
39314         (poll): Use modern idiom.
39315         * modules/poll-h: New file.
39316         * modules/poll (Files): Remove lib/poll.in.h.
39317         (Depends-on): Add poll-h.
39318         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
39319         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
39320         * m4/poll_h.m4: New file.
39321         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
39322         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
39323         and invoke gl_REPLACE_POLL_H.
39324         * lib/poll.c: Use common idiom.
39325         * tests/test-poll.c: Likewise.
39326         * doc/posix-headers/poll.texi: Mention the poll-h module.
39327         Suggested by Eric Blake.
39329 2010-09-26  Bruno Haible  <bruno@clisp.org>
39331         sys_wait: Implement WSTOPSIG.
39332         * lib/sys_wait.in.h (WSTOPSIG): New macro.
39333         Reported by Simon Josefsson.
39335 2010-09-26  Simon Josefsson  <simon@josefsson.org>
39337         stdlib, sys_wait: Avoid compilation error on mingw.
39338         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
39340 2010-09-26  Bruno Haible  <bruno@clisp.org>
39342         stdlib tests: Avoid code duplication.
39343         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
39344         * modules/sys_wait-tests (Files): Likewise.
39345         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
39346         * tests/test-stdlib.c: Include test-sys_wait.h.
39347         (main): Invoke test_sys_wait_macros.
39348         * tests/test-sys_wait.c: Include test-sys_wait.h.
39349         (main): Invoke test_sys_wait_macros.
39351 2010-09-25  Simon Josefsson  <simon@josefsson.org>
39353         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
39354         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
39355         sure Windows sockets are working before calling getaddrinfo.
39356         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
39357         * doc/gnulib.texi (Windows sockets): Fix typo.
39359 2010-09-25  Bruno Haible  <bruno@clisp.org>
39361         Tests for module 'regex-quote'.
39362         * modules/regex-quote-tests: New file.
39363         * tests/test-regex-quote.c: New file.
39365         New module 'regex-quote'.
39366         * lib/regex-quote.h: New file.
39367         * lib/regex-quote.c: New file.
39368         * modules/regex-quote: New file.
39369         Suggested by Reuben Thomas <rrt@sc3d.org>.
39371 2010-09-24  Bruno Haible  <bruno@clisp.org>
39373         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
39374         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
39376 2010-09-23  Bruno Haible  <bruno@clisp.org>
39378         setenv: Relax license.
39379         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
39380         Blake.
39381         Requested by Eric Blake.
39383 2010-09-22  Bruno Haible  <bruno@clisp.org>
39385         termios: Relax license.
39386         * modules/termios (License): Change to LGPLv2+.
39387         Requested by Eric Blake.
39389 2010-09-22  Bruno Haible  <bruno@clisp.org>
39391         threadlib: Allow the package to change the default to 'no'.
39392         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
39393         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
39394         Reported by Paul Eggert.
39396 2010-09-22  Pádraig Brady  <P@draigbrady.com>
39397             Bruno Haible  <bruno@clisp.org>
39399         Fix endless loop in mbmemcasecoll.
39400         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
39401         byte.
39402         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
39404 2010-09-22  Bruno Haible  <bruno@clisp.org>
39406         Tests for module 'memcoll'.
39407         * modules/memcoll-tests: New file.
39408         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
39410         memcoll, xmemcoll: Clarify size vs. length.
39411         * modules/memcoll.c (memcoll0): Clarify specification.
39412         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
39413         passed to collate_error.
39415 2010-09-22  Bruno Haible  <bruno@clisp.org>
39417         Tests for module 'memcasecmp'.
39418         * modules/memcasecmp-tests: New file.
39419         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
39421 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
39423         * lib/pthread.in.h: Add split double-inclusion guard, and include
39424         system <pthread.h> if there is one.  Use @@-style as in other
39425         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
39426         pthread.h doesn't.
39427         (pthread_mutexattr_destroy, pthread_mutexattr_init):
39428         (pthread_mutexattr_settype, pthread_mutex_trylock):
39429         New static inline functions, if there's no system <pthread.h>.
39430         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
39431         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
39432         Approximate with mutexes if the system lacks spinlocks, as in
39433         MacOS.
39434         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
39435         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
39436         @@-style.  Check for spinlocks separately.
39437         (gl_PTHREAD_DEFAULTS): New macro.
39438         * modules/pthread: Redo to use a more typical style for in.h files.
39440 2010-09-21  Eric Blake  <eblake@redhat.com>
39442         net_if: enhance tests
39443         * tests/test-net_if.c (main): Move signature checks earlier.
39444         Print failures to stderr.
39445         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
39446         Document the bug that we do not yet fix.
39448 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
39450         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
39451         about gnulib, not GSS.
39453 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
39455         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
39456         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
39457         for Emacs.
39458         * build-aux/pmccabe2html: Make Makefile.am example code more
39459         cut-and-paste friendly.
39461 2010-09-21  Simon Josefsson  <simon@josefsson.org>
39463         * tests/test-net_if.c: New file.
39464         * modules/net_if-tests: New file.
39466 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
39468         pthread: add pthread_spin_destroy
39469         * lib/pthread.in.h (pthread_spin_destroy): New function.
39471 2010-09-19  Bruno Haible  <bruno@clisp.org>
39473         gnulib-tool: Fix --help output.
39474         * gnulib-tool (func_usage): Fix help message.
39475         Reported by Reuben Thomas <rrt@sc3d.org>.
39477 2010-09-18  Jim Meyering  <meyering@redhat.com>
39479         maint.mk: avoid unexpanded \n in two diagnostics
39480         * top/maint.mk (sc_prohibit_always_true_header_tests):
39481         Don't use a literal \n in a halt=... assignment.  It would not be
39482         expanded, and the two \n bytes would appear in the diagnostic output
39483         rather than the desired newline.  Use halt=$$(printf ... instead.
39484         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
39486 2010-09-18  Bruno Haible  <bruno@clisp.org>
39488         netinet_in: Doc tweak.
39489         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
39490         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
39492 2010-09-18  Jim Meyering  <meyering@redhat.com>
39494         init.sh: correct an outdated comment
39495         * tests/init.sh (create_exe_shims_):  s/function/alias/
39497         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
39498         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
39499         a file named "*.exe" is removed between the glob expansion and the
39500         processing of that oddly named file.
39502 2010-09-17  Eric Blake  <eblake@redhat.com>
39504         mirbsd: add some more support
39505         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
39506         in BSD family.
39507         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
39508         devices as OpenBSD.
39509         * m4/host-os.m4 (mirbsd): Add MirBSD.
39511         tests: fix unportable assumption on sys/wait.h
39512         * tests/test-sys_wait.c (main): Relax test.
39513         * tests/test-stdlib.c (main): Likewise.
39515         init.sh: accommodate directory with no .exes
39516         * tests/init.sh: Accomodate directory containing only scripts.
39518         tests: avoid compiler warning
39519         * tests/test-stdlib.c (main): Use the variable.
39521         fdutimens, fdutimensat: update signature, again
39522         * lib/utimens.h (gl_futimens): Delete, and move signature...
39523         (fdutimens): ...here.
39524         (fdutimensat): Rearrange signature.
39525         (lutimensat): Rename variable for clarity.
39526         * lib/fdutimensat.c (fdutimensat): Update signature.
39527         * lib/utimens.c (fdutimens): Likewise.
39528         (gl_futimens): Delete.
39529         (utimens, lutimens): Update callers.
39530         * lib/futimens.c (futimens): Likewise.
39531         * tests/test-fdutimensat.c: Likewise.
39532         * tests/test-utimens.c: Likewise.
39533         * tests/test-futimens.h: Update comment.
39534         * NEWS: Mention this.
39535         Suggested by Paul Eggert.
39537 2010-09-17  Bruno Haible  <bruno@clisp.org>
39539         Take over the maintenance of some older macros from Autoconf.
39540         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
39541         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
39542         GNU Autoconf.
39543         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
39544         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
39546 2010-09-17  Eric Blake  <eblake@redhat.com>
39548         fdutimensat: drop atflag validation
39549         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
39550         with valid fd, to close a race scenario where futimens is
39551         unsupported and FILE was replaced by a symlink.
39552         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
39553         accordingly.
39554         Suggested by Paul Eggert.
39556 2010-09-16  Bruno Haible  <bruno@clisp.org>
39558         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
39559         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
39561 2010-09-16  Bruno Haible  <bruno@clisp.org>
39563         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
39564         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
39565         login_tty exists.
39566         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
39568 2010-09-16  Bruno Haible  <bruno@clisp.org>
39570         login_tty: Make the replacement code work on BSD systems.
39571         * lib/login_tty.c: Include <sys/ioctl.h>.
39572         (login_tty): Use ioctl TIOCSCTTY when available.
39573         * modules/login_tty (Depends-on): Add sys_ioctl.
39574         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
39576 2010-09-16  Bruno Haible  <bruno@clisp.org>
39578         login_tty: Stricter unit test.
39579         * modules/login_tty-tests (Depends-on): Add tcgetsid.
39580         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
39581         and tcgetsid() after login_tty.
39582         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
39584 2010-09-16  Bruno Haible  <bruno@clisp.org>
39586         New module 'tcgetsid'.
39587         * lib/tcgetsid.c: New file.
39588         * m4/tcgetsid.m4: New file.
39589         * modules/tcgetsid: New file.
39590         * modules/termios (Depends-on): Add c++defs, warn-on-use.
39591         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
39592         GNULIB_TCGETSID, HAVE_TCGETSID.
39593         * lib/termios.in.h: Include <sys/types.h>.
39594         (tcgetsid): New declaration.
39595         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
39596         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
39597         * doc/posix-functions/tcgetsid.texi: Mention the new module.
39598         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
39600 2010-09-16  Bruno Haible  <bruno@clisp.org>
39602         Tests for module 'termios'.
39603         * modules/termios-c++-tests: New file.
39604         * modules/termios-tests: New file.
39605         * tests/test-termios-c++.cc: New file.
39606         * tests/test-termios.c: New file.
39608         New module 'termios'.
39609         * modules/termios: New file.
39610         * lib/termios.in.h: New file.
39611         * m4/termios_h.m4: New file.
39612         * doc/posix-headers/termios.texi: Mention the new module.
39614 2010-09-16  Eric Blake  <eblake@redhat.com>
39616         fdutimensat: add an atflag parameter
39617         * lib/fdutimensat.c (fdutimensat): Add new parameter.
39618         * lib/utimens.h (fdutimensat): Update prototype.
39619         * tests/test-fdutimensat.c: Adjust test to match.
39620         * NEWS: Document the change.
39621         Suggested by Paul Eggert.
39623 2010-09-16  Bruno Haible  <bruno@clisp.org>
39625         Fix typos in comments.
39626         * lib/striconveh.h: Fix typo in comment.
39627         * lib/login_tty.c (login_tty): Likewise.
39629 2010-09-15  Bruno Haible  <bruno@clisp.org>
39631         stdlib: clarify MirBSD WEXITSTATUS bug
39632         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
39633         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
39635 2010-09-15  Eric Blake  <eblake@redhat.com>
39637         stdlib: work around MirBSD WEXITSTATUS bug
39638         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
39639         * modules/stdlib (Depends-on): Add sys_wait.
39640         * tests/test-sys_wait.c (main): Enhance test.
39641         * tests/test-stdlib.c (main): Likewise.
39642         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
39644         docs: mention MacOS issue with WEXITSTATUS(constant)
39645         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
39646         issue.
39647         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
39649         strnlen: add tests
39650         * modules/strnlen-tests: New file.
39651         * tests/test-strnlen.c: Likewise.
39653 2010-09-14  Bruno Haible  <bruno@clisp.org>
39655         unistr/base: Avoid link errors when module 'libunistring' is also used.
39656         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
39657         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
39658         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
39659         Declare also when HAVE_LIBUNISTRING is set.
39660         Reported by Pádraig Brady <P@draigbrady.com>.
39662 2010-09-14  Eric Blake  <eblake@redhat.com>
39664         test-rawmemchr: make more robust
39665         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
39666         (Depends-on, configure.ac): Add needed prerequisites to use it.
39667         * modules/memchr-tests (Files, Depends-on, configure.ac):
39668         Likewise, to avoid implicit reliance on memchr module prereqs.
39669         * tests/test-memchr.c (main): Ensure proper masking.
39670         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
39671         reads.
39673         memchr: detect glibc Alpha bug
39674         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
39675         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
39676         Alpha.
39677         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
39678         * tests/test-memchr.c (main): Enhance test.
39679         Reported by Nelson H. F. Beebe.
39681 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
39683         fts, getcwd, glob: audit for dirfd returning -1
39684         * lib/fts.c (opendir): Remove #define; no longer used.
39685         (opendirat): New arg PDIR_FD.  All callers changed.
39686         (fts_build, _opendir2): Use new opendirat to avoid the need for
39687         dirfd, or for checking whether dirfd returns a negative value.
39688         Don't use opendir; always use openat followed by fdopendir.
39689         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
39690         it.
39691         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
39692         returns -1 here.
39693         * modules/fts (Depends-on): Remove dirfd.
39694         * modules/getcwd (Depends-on): Likewise.
39696 2010-09-13  Eric Blake  <eblake@redhat.com>
39698         float: fix broken MirBSD header
39699         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
39700         * doc/posix-headers/float.texi (float.h): Document it.
39702 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
39704         fts: use O_NOFOLLOW to avoid race condition when opening a directory
39705         * lib/fts.c (opendirat): New arg extra_flags.
39706         (__opendir2): Use it to avoid following symlinks when opening
39707         a directory, if symlinks are not supposed to be followed.  See
39708         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
39710         fdopendir: preserve argument fd before returning
39711         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
39712         (fdopendir_with_dup, fd_clone_opendir): New static functions.
39713         (fdopendir): Use them, arranging for FD to be open to the same
39714         directory that it was when it started.  (It might be temporarily
39715         closed while fdopendir is running, so this not thread- or
39716         signal-safe.)  Be careful to do the right thing even when file
39717         descriptors are scarce and dup fails with errno == EMFILE.  See
39718         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
39720 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
39722         regex: Pass the system regex if its only problem is 32-bit regoff_t.
39723         * NEWS: Document change.
39724         * m4/regex.m4: Disable test for regoff_t size.
39726 2010-09-13  Jim Meyering  <meyering@redhat.com>
39728         fts: don't operate on an invalid file descriptor after failed dup
39729         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
39730         negative file descriptor.
39732 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
39734         savedir: add streamsavedir, deprecate fdsavedir
39735         * NEWS: Mention deprecation of fdsavedir.
39736         * lib/savedir.c (streamsavedir): New extern function, whose name
39737         ends in "savedir" to be consistent with the others.  This differs
39738         from savedirstream in that it doesn't close its argument.  The
39739         next version of GNU tar will use this instead of fdsavedir, to
39740         avoid some race conditions and conserve file descriptors.
39741         (savedirstream): Reimplement as a wrapper around streamsavedir.
39742         (fdsavedir): Add a comment deprecating this function.  As far as
39743         I know, only GNU tar used it, and GNU tar doesn't need it any more.
39744         * lib/savedir.h (streamsavedir): New decl.
39745         (fdsavedir): Add a comment deprecating this.
39747 2010-09-10  Bruno Haible  <bruno@clisp.org>
39749         langinfo: Fix last commit.
39750         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
39751         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
39752         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39754 2010-09-10  Bruno Haible  <bruno@clisp.org>
39756         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
39757         * lib/progreloc.c (O_EXEC): Define fallback.
39759 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
39761         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
39762         * NEWS: Document recent changes to fcntl-h.
39763         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
39764         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
39765         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
39766         Similarly for O_SEARCH; this last was already true, but not documented.
39767         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
39768         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
39769         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
39770         Likewise.
39771         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
39772         is zero, not whether it is defined.
39773         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
39774         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
39775         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
39777 2010-09-10  Bruno Haible  <bruno@clisp.org>
39779         langinfo, nl_langinfo: Fix for IRIX 5.3.
39780         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
39781         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
39782         HAVE_LANGINFO_YESEXPR.
39783         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
39784         HAVE_LANGINFO_YESEXPR.
39785         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
39786         HAVE_LANGINFO_T_FMT_AMPM is 0.
39787         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
39788         HAVE_LANGINFO_YESEXPR is 0.
39789         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
39790         NOEXPR.
39791         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
39792         * doc/posix-functions/nl_langinfo.texi: Likewise.
39793         Reported by Eric Blake.
39795 2010-09-10  Bruno Haible  <bruno@clisp.org>
39797         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
39798         * doc/glibc-functions/login_tty.texi: Mention the include file problem
39799         on FreeBSD 8.0 and OpenBSD 4.6.
39800         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
39801         * m4/pty_h.m4 (gl_PTY_H): Likewise.
39802         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
39803         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
39804         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
39805         ac_includes_default.
39806         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
39808 2010-09-09  Eric Blake  <eblake@redhat.com>
39810         strsignal: work around NetBSD bug
39811         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
39812         * lib/string.in.h (includes): Likewise.
39813         * doc/posix-functions/strsignal.texi (strsignal): Document the
39814         bug.
39815         Reported by Nelson H. F. Beebe.
39817         gnulib-tool: work with NetBSD /bin/sh
39818         * gnulib-tool (func_cache_var, func_cache_lookup_module)
39819         (func_get_description, func_get_comment, func_get_status)
39820         (func_get_notice, func_get_applicability, func_get_filelist)
39821         (func_get_dependencies, func_get_autoconf_early_snippet)
39822         (func_get_autoconf_snippet, func_get_automake_snippet)
39823         (func_get_include_directive, func_get_link_directive)
39824         (func_get_license, func_get_maintainer, func_import): Avoid
39825         shell syntax errors from parsing syntax extensions.
39827 2010-09-09  Bruno Haible  <bruno@clisp.org>
39829         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
39830         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
39831         a reliable way to determine whether the 'alias' command works.
39833 2010-09-08  Jim Meyering  <meyering@redhat.com>
39835         init.sh: penalize a set-x-impaired shell; don't disqualify it
39836         * tests/init.sh: Too many shells corrupt application stderr when
39837         you set -x, so we can't afford to disqualify them, since at least
39838         on Irix-6.5, that would disqualify all bourne shells.
39839         Instead, use a two-pass approach.
39840         On the first pass, try to find a shell that meets the stricter
39841         condition that set -x does not corrupt stderr.
39842         If no shell meets the stricter condition, retest each candidate
39843         shell, but without that extra condition.  Finally, when
39844         VERBOSE=yes is requested and set -x might cause trouble, simply
39845         issue a warning and refrain from enabling debug output.
39847 2010-09-08  Eric Blake  <eblake@redhat.com>
39849         unsetenv: fix OpenBSD bug
39850         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
39851         * doc/posix-functions/unsetenv.texi (unsetenv): Update
39852         documentation.
39853         Reported by Jim Meyering.
39855         strtod: work around IRIX 6.5 bug
39856         * lib/strtod.c (strtod): Reparse number on shorter string if
39857         exponent parse was invalid.
39858         * tests/test-strtod.c (main): Add check for "0x1p 2".
39859         Reported by Tom G. Christensen.
39861         getopt: optimize previous patch
39862         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
39863         empty variable.  Speed up awk script.
39864         Reported by Paolo Bonzini.
39866 2010-09-08  Jim Meyering  <meyering@redhat.com>
39868         test.sh: disqualify shells for which set -x corrupts stderr
39869         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
39870         and OpenBSD 4.7.  They make it so with "set -x", environment settings
39871         appear in stderr output.  For example, this command:
39872             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
39873         prints "P=1" on those two systems:
39875 2010-09-08  Bruno Haible  <bruno@clisp.org>
39877         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
39878         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
39879         commands, because some shells ignore redirections when there is an
39880         error in the command lookup.
39881         Reported by Eric Blake.
39883 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
39885         * lib/regex.h: Fix a mention of `regex_compile' (should be
39886         `re_compile_pattern').
39887         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
39888         (re_set_registers): Correct name of parameter in comment.
39890         * doc/regex.texi: Add documentation for missing syntax flags.
39891         Remove commented-out documentation of defunct syntax option
39892         RE_NO_EMPTY_ALTS.
39893         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
39894         Add documentation of re_set_registers.
39895         Document trick to re-use a pattern buffer by setting fastmap manually.
39896         Update documentation of struct re_pattern_buffer per public members.
39897         Uncomment documentation of equivalence class operators and
39898         collating symbol operators, since they are now implemented,
39899         Explain leftmost-longest matching in relation to alternatives.
39900         Tidy documentation of substring matching.
39901         Remove POSIX documentation, which is done better in
39902         glibc, and refer the reader there. Keep BSD API documentation, as
39903         that is not readily available elsewhere.
39905 2010-09-07  Eric Blake  <eblake@redhat.com>
39907         getopt: handle POSIXLY_CORRECT set but not exported
39908         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
39909         export state of POSIXLY_CORRECT, due to bash set -o posix.
39910         Reported by Dustin J. Mitchell.
39912 2010-09-05  Bruno Haible  <bruno@clisp.org>
39914         gnulib-tool: Highlight the changed options.
39915         * gnulib-tool (func_usage): Display the --import, --add-import,
39916         --remove-import explanations in bold font.
39918 2010-09-06  Karl Berry  <karl@gnu.org>
39920         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
39922 2010-09-05  Bruno Haible  <bruno@clisp.org>
39924         uniwidth/width: Update comment.
39925         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
39926         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
39928 2010-09-05  Bruno Haible  <bruno@clisp.org>
39930         isinf, isnan: Relax license.
39931         * modules/isinf (License): Change from GPL to LGPL, with consent from
39932         Ben Pfaff.
39933         * modules/isnan (License): Likewise.
39934         Requested by Ludovic Courtès.
39936 2010-09-04  Bruno Haible  <bruno@clisp.org>
39938         gnulib-tool: Help migration from --import to --add-import or --update.
39939         * gnulib-tool: Emit a verbose error message when --import is used
39940         without any module name.
39942 2010-09-04  Bruno Haible  <bruno@clisp.org>
39944         Update doc about gnulib-tool.
39945         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
39946         'gnulib-tool --update' in more detail.
39947         Reported by Eric Blake.
39949 2010-09-04  Bruno Haible  <bruno@clisp.org>
39951         gnulib-tool: Change --import. New options --add/remove-import.
39952         * gnulib-tool: New options --add-import, --remove-import.
39953         (func_usage): Document them.
39954         (have_associative): Define always.
39955         (func_import): In import mode, don't merge the specified settings with
39956         the cached settings. Implement remove-import mode.
39957         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
39958         Explain when to use them versus --import.
39959         (Simple update): Use --add-import instead of --import.
39960         * NEWS: Mention the change.
39962 2010-09-04  Bruno Haible  <bruno@clisp.org>
39964         * doc/gnulib-tool.texi (Initial import): Update paragraph about
39965         separate gnulib.mk.
39967 2010-09-04  Bruno Haible  <bruno@clisp.org>
39969         gnulib-tool: Don't talk about CVS any more.
39970         * gnulib-tool (func_usage, func_import): Write "version control"
39971         instead of CVS.
39973 2010-09-04  Jim Meyering  <meyering@redhat.com>
39975         maint.mk: avoid obscure sc_copyright_check failure in coreutils
39976         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
39977         false positives (whose names may be ill-chosen) when searching
39978         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
39979         would cause a false-positive.
39981         avoid coreutils "make distcheck" failure
39982         Coreutils tests with an absolute build directory name that contains
39983         a space.  Not quoting this directory name caused a failure.
39984         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
39985         * tests/test-vc-list-files-cvs.sh: Likewise.
39987 2010-09-04  Bruno Haible  <bruno@clisp.org>
39989         gnulib-tool: Avoid error when run in a package without Makefile.am.
39990         * gnulib-tool: When collecting the m4dirs in a package that does not
39991         have a Makefile.am, eliminate those directories that contain no
39992         gnulib-cache.m4. Fix expression that counts these directories.
39994 2010-09-04  Bruno Haible  <bruno@clisp.org>
39996         update-copyright test: Improve output when perl is missing or too old.
39997         * tests/test-update-copyright.sh: Move test of Perl version down after
39998         the test whether Perl exists. Provide an explanation relating Perl's
39999         error message to Automake's SKIP: message.
40001 2010-09-04  Bruno Haible  <bruno@clisp.org>
40003         Don't augment PATH in TESTS_ENVIRONMENT.
40004         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
40005         set abs_aux_dir instead of augmenting PATH.
40006         * modules/vc-list-files-tests (Makefile.am): Likewise.
40007         * tests/test-update-copyright.sh: Augment PATH here.
40008         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
40009         path_prepend_.
40010         * tests/test-vc-list-files-git.sh: Likewise.
40012 2010-09-04  Jim Meyering  <meyering@redhat.com>
40014         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
40015         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
40017 2010-09-04  Bruno Haible  <bruno@clisp.org>
40019         strdup: Fix compilation error in C++ mode.
40020         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
40021         the macro.
40023 2010-09-04  Bruno Haible  <bruno@clisp.org>
40025         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
40026         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
40027         macro into a function.
40028         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
40030 2010-09-04  Bruno Haible  <bruno@clisp.org>
40032         Set PATH_SEPARATOR the same way autoconf does.
40033         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
40034         the value of PATH_SEPARATOR the same way autoconf-generated configure
40035         scripts do.
40036         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
40037         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
40039 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
40041         Set PATH_SEPARATOR the same way autoconf does.
40042         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
40043         the same way autoconf-generated configure scripts do.
40044         * posix-modules: Likewise.
40046 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
40048         hash: fix safe_hasher const typo
40049         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
40050         const; otherwise, there is a type error later.
40052 2010-09-02  Jim Meyering  <meyering@redhat.com>
40054         test-update-copyright.sh: require perl 5.8.0
40055         * tests/test-update-copyright.sh: Require 5.8.0,
40056         which Tom G. Christensen has confirmed is adequate,
40057         while 5.6.1 is not.
40059 2010-09-02  Eric Blake  <eblake@redhat.com>
40061         tests: init.sh improvements for re-exec'ing with zsh
40062         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
40063         -vx through shell re-exec.
40064         Reported by Tom G. Christensen.
40066         wctype: fix typo in previous commit
40067         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
40068         Reported by Ludovic Courtès.
40070 2010-09-02  Jim Meyering  <meyering@redhat.com>
40072         test-update-copyright.sh: skip test if Perl is too old
40073         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
40074         Reported by Tom G. Christensen.
40076 2010-09-02  Bruno Haible  <bruno@clisp.org>
40078         wctype: Avoid compilation error on IRIX 6.5.30.
40079         * lib/wctype.in.h (iswblank): Declare with a replacement if
40080         REPLACE_ISWBLANK is set.
40081         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
40082         declared. Set REPLACE_ISWBLANK.
40083         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
40084         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
40085         * doc/posix-headers/wctype.texi: Likewise.
40086         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40088 2010-09-01  Bruno Haible  <bruno@clisp.org>
40090         New module 'socketlib'.
40091         * modules/socketlib: New file.
40092         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
40093         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
40094         * modules/sockets (Depends-on): Add socketlib.
40095         Suggested by Sam Steingold <sds@gnu.org>.
40097 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
40099         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
40101         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
40102         when one needs search access to a directory but not read access.
40103         On systems where it is available, it works in some cases where
40104         O_RDONLY does not, namely on directories that are searchable but
40105         not readable, and which need only to be searchable.  If O_SEARCH
40106         is not available, fall back to the traditional method of using
40107         O_RDONLY.
40109         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
40110         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
40111         when opening a directory that needs only to be searchable.
40112         * lib/chdir-safer.c (chdir_no_follow): Likewise.
40113         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
40114         * lib/openat-proc.c (openat_proc_name): Likewise.
40115         * lib/openat.c (openat_needs_fchdir): Likewise.
40116         * lib/save-cwd.c (save_cwd): Likewise.
40117         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
40119 2010-08-28  Bruno Haible  <bruno@clisp.org>
40121         New module 'host-cpu-c-abi'.
40122         * modules/host-cpu-c-abi: New file.
40123         * m4/host-cpu-c-abi.m4: New file, based on part of
40124         clisp/src/m4/general.m4.
40125         Requested by Sam Steingold <sds@gnu.org>.
40127 2010-08-31  Eric Blake  <eblake@redhat.com>
40128         and Jim Meyering  <meyering@redhat.com>
40130         hash: factor, and guard against misbehaving hasher function
40131         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
40132         of table->hasher's return value.  Also protect against a hash value
40133         so large that adding it to table->bucket results in a NULL pointer.
40134         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
40135         Use it in place of open-coded check-and-abort.
40137 2010-08-30  Bruno Haible  <bruno@clisp.org>
40139         hash: silence spurious clang warning
40140         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
40141         Reported by Eric Blake.
40143 2010-08-30  Eric Blake  <eblake@redhat.com>
40145         strstr, memmem, strcasestr: avoid leaked shell message
40146         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
40147         FreeBSD.
40148         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40149         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
40151         tests: silence clang warning
40152         * tests/test-malloca.c (do_allocation): Avoid dead store.
40154 2010-08-29  Bruno Haible  <bruno@clisp.org>
40156         gettext: Fix recent mistake.
40157         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
40159 2010-08-29  Bruno Haible  <bruno@clisp.org>
40161         selinux-h: Offer a --without-selinux option.
40162         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
40163         --without-selinux was specified, skip all tests and define
40164         HAVE_SELINUX_SELINUX_H to 0.
40165         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
40166         set LIB_SELINUX to empty.
40167         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
40168         gl_LIBSELINUX. If --without-selinux was specified, replace
40169         selinux/context.h.
40170         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
40172 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40173             Bruno Haible  <bruno@clisp.org>
40175         Make the module 'realloc-gnu' work again on AIX and OSF/1.
40176         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
40177         of HAVE_REALLOC.
40178         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
40179         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
40180         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
40181         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
40183 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40184             Bruno Haible  <bruno@clisp.org>
40186         Make the module 'calloc-gnu' work again on AIX and OSF/1.
40187         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
40188         HAVE_CALLOC.
40189         * lib/xmalloc.c: Update accordingly.
40190         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
40191         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
40192         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
40194 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40195             Bruno Haible  <bruno@clisp.org>
40197         Make the module 'malloc-gnu' work again on AIX and OSF/1.
40198         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
40199         HAVE_MALLOC.
40200         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
40201         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
40202         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
40204 2010-08-29  Bruno Haible  <bruno@clisp.org>
40206         Update modules list.
40207         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
40208         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
40209         (String handling <string.h>): Add astrxfrm.
40210         (File system functions): Add readlinkat.
40212 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40214         Tests for module 'realloc-gnu'.
40215         * modules/realloc-gnu-tests: New file.
40216         * tests/test-realloc-gnu.c: New file.
40218         Tests for module 'calloc-gnu'.
40219         * modules/calloc-gnu-tests: New file.
40220         * tests/test-calloc-gnu.c: New file.
40222         Tests for module 'malloc-gnu'.
40223         * modules/malloc-gnu-tests: New file.
40224         * tests/test-malloc-gnu.c: New file.
40226 2010-08-28  Bruno Haible  <bruno@clisp.org>
40228         Rename module 'realloc' -> 'realloc-gnu'.
40229         * modules/realloc-gnu: New file, copied from modules/realloc.
40230         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
40231         obsolete.
40232         * modules/mgetgroups (Depends-on): Update.
40233         * doc/posix-functions/realloc.texi: Update.
40234         * NEWS: Mention the change.
40236         Rename module 'calloc' -> 'calloc-gnu'.
40237         * modules/calloc-gnu: New file, copied from modules/calloc.
40238         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
40239         obsolete.
40240         * doc/posix-functions/calloc.texi: Update.
40241         * NEWS: Mention the change.
40243         Rename module 'malloc' -> 'malloc-gnu'.
40244         * modules/malloc-gnu: New file, copied from modules/malloc.
40245         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
40246         obsolete.
40247         * modules/argp (Depends-on): Update.
40248         * modules/regex (Depends-on): Update.
40249         * doc/posix-functions/malloc.texi: Update.
40250         * NEWS: Mention the change.
40252 2010-08-28  Eric Blake  <eblake@redhat.com>
40254         pread, pwrite: add missing dependency
40255         * modules/pread (Depends-on): Add extensions.
40256         * modules/pwrite (Depends-on): Likewise.
40258 2010-08-28  Bruno Haible  <bruno@clisp.org>
40260         unistr/u*-strchr: Fix tests dependencies.
40261         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
40262         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
40263         Reported by Ian Beckwith <ianb@erislabs.net>.
40265 2010-08-28  Bruno Haible  <bruno@clisp.org>
40267         read-file: Don't occupy too much unused memory.
40268         * lib/read-file.c (fread_file): Shrink the buffer at the end.
40270 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
40271             Eric Blake  <eblake@redhat.com>
40272             Bruno Haible  <bruno@clisp.org>
40274         read-file: Avoid memory reallocations with regular files.
40275         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
40276         (fread_file): With regular files, use the remaining length as the
40277         initial buffer size.  Check against overflow.
40278         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
40279         sys_stat.
40281 2010-08-28  Bruno Haible  <bruno@clisp.org>
40283         ftello: Relax license.
40284         * modules/ftello (License): Relax to LGPLv2+.
40285         Reported by Eric Blake.
40287 2010-08-28  Bruno Haible  <bruno@clisp.org>
40289         Avoid relocwrapper link errors due to gnulib replacement functions.
40290         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
40291         function.
40292         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40294 2010-08-28  Bruno Haible  <bruno@clisp.org>
40296         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
40297         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
40298         defined.
40299         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
40300         Suggested by Eric Blake.
40302 2010-08-28  Bruno Haible  <bruno@clisp.org>
40304         sys_socket, netdb: Ensure socklen_t gets defined.
40305         * modules/sys_socket (Depends-on): Add socklen.
40306         * modules/netdb (Depends-on): Likewise.
40307         * modules/getaddrinfo (Depends-on): Remove socklen.
40308         * modules/getsockopt (Depends-on): Likewise.
40309         * modules/setsockopt (Depends-on): Likewise.
40310         * tests/test-sys_socket.c: Check that socklen_t is defined.
40311         * tests/test-netdb.c: Likewise.
40312         * m4/socklen.m4: Update comments.
40313         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40315 2010-08-27  Eric Blake  <eblake@redhat.com>
40317         login_tty: add missing dependency
40318         * modules/login_tty (Depends-on): Add pty.
40320 2010-08-26  Eric Blake  <eblake@redhat.com>
40322         lib-symbol-versions: fix m4 quoting
40323         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
40324         format for AC_LINK_IFELSE.
40326         glob: fix compile test
40327         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
40329         btowc: fix missing file
40330         * modules/btowc (Files): Also ship locale-fr.m4.
40332         lseek: fix link test
40333         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
40334         AC_LINK_IFELSE.
40336         include_next: silence autoconf 2.68 warning
40337         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
40338         AC_COMPILE_IFELSE as special.
40339         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
40340         autoconf < 2.68.
40342         acl: fix compilation test
40343         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
40344         AC_COMPILE_IFELSE.
40346 2010-08-26  Bruno Haible  <bruno@clisp.org>
40348         Modernize AC_TRY_RUN invocations.
40349         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
40350         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
40351         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
40352         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
40353         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
40354         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
40355         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
40356         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
40357         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
40358         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
40359         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
40360         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
40361         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
40362         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
40363         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
40364         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
40365         gl_MBRLEN_NUL_RETVAL): Likewise.
40366         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
40367         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
40368         Likewise.
40369         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
40370         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
40371         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
40372         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
40373         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
40374         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
40375         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
40376         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
40377         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
40378         Likewise.
40379         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
40380         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
40381         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
40382         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
40383         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
40384         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
40385         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
40386         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
40387         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
40388         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40390 2010-08-26  Bruno Haible  <bruno@clisp.org>
40392         Modernize AC_TRY_LINK invocations.
40393         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
40394         AC_TRY_LINK.
40395         * m4/argp.m4 (gl_ARGP): Likewise.
40396         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
40397         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
40398         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
40399         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
40400         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
40401         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
40402         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
40403         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
40404         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
40405         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
40406         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
40407         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
40408         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
40409         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
40410         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
40411         * m4/hostent.m4 (gl_HOSTENT): Likewise.
40412         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
40413         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
40414         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
40415         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
40416         Likewise.
40417         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
40418         Likewise.
40419         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
40420         Likewise.
40421         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
40422         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
40423         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
40424         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
40425         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
40426         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
40427         * m4/servent.m4 (gl_SERVENT): Likewise.
40428         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
40429         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
40430         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
40431         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
40432         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
40433         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
40434         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
40435         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
40436         * modules/tsearch-tests (configure.ac): Likewise.
40438 2010-08-26  Bruno Haible  <bruno@clisp.org>
40440         Modernize AC_TRY_COMPILE invocations.
40441         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
40442         AC_TRY_COMPILE.
40443         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
40444         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
40445         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
40446         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
40447         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
40448         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
40449         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
40450         * m4/lock.m4 (gl_LOCK): Likewise.
40451         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
40452         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
40453         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
40454         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
40455         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
40456         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
40457         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
40458         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
40459         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
40460         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
40461         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
40462         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
40463         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
40464         extraneous semicolon.
40466 2010-08-26  Jim Meyering  <meyering@redhat.com>
40468         stat-time: relax license LGPL
40469         * modules/stat-time (License): Change from GPL to LGPL,
40470         with consent from all contributors, for use in libguile.
40471         Requested by Ludovic Courtès.
40473 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
40475         poll: return immediately on POLLHUP.
40476         * lib/poll.c (poll): Always set timeout before wait_timeout is
40477         computed.
40479 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40481         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
40482         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
40483         rmdir ("dir/.//"), unlinkat.
40485 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
40487         stdbool: avoid spurious failure with modern xlc
40488         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
40490 2010-08-24  Bruno Haible  <bruno@clisp.org>
40492         getloadavg: simplify code
40493         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
40494         gl_have_func. Update comments.
40496 2010-08-24  Eric Blake  <eblake@redhat.com>
40498         getloadavg: don't define SVR4 on cygwin
40499         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
40500         only define SVR4 when -lkvm is required.
40501         Reported by Yaakov Selkowitz.
40503 2010-08-24  Bruno Haible  <bruno@clisp.org>
40505         priv-set: fix comment
40506         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
40508 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
40510         priv-set: fix comments
40511         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
40512         to match code, as suggested by David Bartley in:
40513         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
40515 2010-08-23  Eric Blake  <eblake@redhat.com>
40517         stdbool: avoid rejecting clang
40518         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
40519         * tests/test-stdbool.c: Enable more tests if using the system
40520         <stdbool.h> instead of the gnulib replacement.
40521         (main): Move xlc bug test to a runtime test for all compilers.
40522         Reported by Anders Kaseorg.
40524         argz: fix shell quoting issue
40525         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
40526         Reported by Charles Wilson.
40528 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
40529             Erik Faye-Lund <kusmabite@gmail.com>
40531         poll, select: handle ERROR_BROKEN_PIPE.
40532         * lib/poll.c (win32_compute_revents): Return POLLHUP when
40533         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
40534         * lib/select.c (win32_compute_revents): Do not mark a pipe
40535         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
40537 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
40539         fts: allow compilation with C++
40540         * lib/fts_.h: Specify extern "C" linkage with C++.
40542 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40544         Fix gnulib-tool sed script de-commentation for AIX sed.
40545         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
40546         sed.
40548 2010-08-17  Eric Blake  <eblake@redhat.com>
40550         test-stddef: test for (some) offsetof bugs
40551         * tests/test-stddef.c: Enhance test to ensure correct type of
40552         offsetof.
40553         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
40554         that we are not fixing at this time.
40556 2010-08-15  Bruno Haible  <bruno@clisp.org>
40558         stpncpy: Allow stpncpy to be defined as a macro.
40559         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
40560         if it's already correctly declared.
40561         * lib/string.in.h (stpncpy): Undefine before redefining.
40562         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
40564 2010-08-14  Bruno Haible  <bruno@clisp.org>
40566         Rename module 'memxfrm' to 'amemxfrm'.
40567         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
40568         (amemxfrm): Renamed from memxfrm.
40569         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
40570         (amemxfrm): Renamed from memxfrm.
40571         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
40572         * NEWS: Mention the change.
40573         * MODULES.html.sh (String handling <string.h>): Update.
40574         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
40575         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
40576         * lib/unicase/u16-casexfrm.c: Likewise.
40577         * lib/unicase/u32-casexfrm.c: Likewise.
40578         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
40579         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
40580         * lib/uninorm/u16-normxfrm.c: Likewise.
40581         * lib/uninorm/u32-normxfrm.c: Likewise.
40582         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
40583         memxfrm.
40584         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
40585         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
40586         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
40587         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
40588         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
40589         Suggested by Paul Eggert.
40591 2010-08-14  Bruno Haible  <bruno@clisp.org>
40593         Tests for module 'astrxfrm'.
40594         * modules/astrxfrm-tests: New file.
40595         * tests/test-astrxfrm.c: New file.
40597         New module 'astrxfrm'.
40598         * lib/astrxfrm.h: New file.
40599         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
40600         * modules/astrxfrm: New file.
40602 2010-08-14  Reuben Thomas <rrt@sc3d.org>
40604         regex: Tweak doc.
40605         * doc/regex.texi (Overview): Don't mention regex.c.
40606         (GNU Regular Expression Compiling): Likewise.
40607         (Match-end-of-line Operator): Mention 'not_eol'.
40609 2010-08-14  Brian Gough  <bjg@gnu.org>
40610             Bruno Haible  <bruno@clisp.org>
40612         git-merge-changelog: add doc relating to use with bzr and hg.
40613         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
40615 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
40617         pthread: fix pthread.h creation for srcdir != builddir
40618         * modules/pthread (Makefile.am): Fix the rule to work also in a
40619         non-srcdir build.
40621 2010-08-13  Karl Berry  <karl@gnu.org>
40623         * doc/regex.texi (Predefined Syntaxes): @smallexample.
40624         * doc/posix-*/*: force line break before @url of POSIX
40625         specifications.
40626         Suggested by Werner Lemberg.
40628 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
40630         strtod: fix const diagnostic
40631         * lib/strtod.c (strtod): Don't assign const char * to char *,
40632         as this elicits a warning from GCC when warnings are enabled.
40634 2010-08-10  Pádraig Brady <P@draigbrady.com>
40635         and Eric Blake  <eblake@redhat.com>
40637         copy-acl: ignore ENOTSUP on HP-UX
40638         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
40639         so that it is available for HP-UX.
40640         * lib/copy-acl.c (qcopy_acl): Use it.
40641         Reported by Patrick M. Callahan.
40643 2010-08-10  Eric Blake  <eblake@redhat.com>
40645         open, chown: relax license
40646         * modules/open (License): Change to LGPLv2+, with consent by all
40647         authors, for use in augeas.
40648         * modules/chown (License): Likewise.
40649         * modules/lchown (Likewise): Likewise.
40650         Requested by Adam Stokes.
40652 2010-08-09  Karl Berry  <karl@gnu.org>
40654         * build-aux/ar-lib: new file, import from Automake.
40655         * config/srclist.txt: autocheck for updates.
40657 2010-08-09  Eric Blake  <eblake@redhat.com>
40659         readlinkat: adjust client modules
40660         * modules/areadlinkat (Depends-on): Use readlinkat, not
40661         symlinkat.
40662         * modules/areadlinkat-with-size (Depends-on): Likewise.
40664         mknod: be more vocal about danger of running tests as root
40665         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
40666         root, since that is just asking for problems.
40667         Suggested by Bruno Haible, based on a report by Rainer Tammer.
40669         readlinkat: split into its own module
40670         * modules/symlinkat: Split readlinkat...
40671         * modules/readlinkat: ...into separate module.
40672         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
40673         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
40674         * lib/symlinkat.c (readlinkat): Move...
40675         * lib/readlinkat.c: ...into new file.
40676         * modules/symlinkat-tests: Split readlinkat test...
40677         * modules/readlinkat-tests: ...into separate module.
40678         * tests/test-symlinkat.c: Split...
40679         * tests/test-readlinkat.c: ...into new file.
40680         * NEWS: Document the split.
40681         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40682         * lib/unistd.in.h (readlinkat): Likewise.
40683         Suggested by Bruno Haible.
40685 2010-08-08  Bruno Haible  <bruno@clisp.org>
40687         memxfrm: Speed up.
40688         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
40689         that usually only one call to strxfrm is necessary for each string
40690         part.
40691         Reported by Paul Eggert <eggert@cs.ucla.edu>.
40693 2010-08-07  Karl Berry  <karl@gnu.org>
40695         * doc/posix-headers/limits.texi,
40696         * doc/posix-functions/malloc.texi,
40697         * doc/posix-functions/strsignal.texi: missing @item.
40698         * doc/ld-version-script.texi: spurious leading i.
40699         * doc/regex.texi (Interval Operators): no commas inside @var.
40701 2010-08-01  Bruno Haible  <bruno@clisp.org>
40703         Integrate the regex documentation.
40704         * doc/gnulib.texi: Define 'cn' index.
40705         (Regular expressions): New a chapter that includes regex.texi and
40706         regexprops-generic.texi.
40707         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
40708         syntax.
40710         Whitespace cleanup.
40711         * doc/regex.texi: Remove trailing spaces.
40713         Add regex documentation.
40714         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
40715         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
40716         Written by Kathy A. Hargreaves and Karl Berry.
40718 2010-08-01  Bruno Haible  <bruno@clisp.org>
40720         link: Update documentation.
40721         * doc/posix-functions/link.texi: Update regarding Solaris.
40723 2010-07-31  Bruno Haible  <bruno@clisp.org>
40725         Update modules list.
40726         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
40727         (String handling <string.h>): Add memcmp2, memxfrm.
40728         (Container data structures): Add xlist, xsublist, xoset.
40729         (Core language properties): Add alignof, unused-parameter.
40730         (Process control, Numeric conversion functions <stdlib.h>): Renamed
40731         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
40732         (Unibyte characters <ctype.h>): New section.
40733         (String handling <string.h>): New section.
40734         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
40735         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
40736         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
40737         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
40738         tan, tanh, tanl, y0, y1, yn.
40739         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
40740         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
40741         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
40742         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
40743         unlockpt, vdprintf, vdprintf-posix.
40744         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
40745         (File system functions): Add concat-filename, sys_file, sys_ioctl,
40746         xconcat-filename.
40747         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
40748         getdtablesize, pipe2, pipe2-safer.
40749         (Security): New section.
40750         (Networking functions): Add accept4.
40751         (Signal handling): Add sigpipe.
40752         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
40753         mbmemcasecoll.
40754         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
40755         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
40756         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
40757         pipe-filter-ii.
40758         (Misc): Add argp-version-etc, login_tty, parse-duration.
40760 2010-07-31  Bruno Haible  <bruno@clisp.org>
40762         Improve doc in MODULES.html.
40763         * modules/linkat (Description): Add the word "function".
40764         * modules/mkfifo (Description): Likewise.
40765         * modules/mknod (Description): Likewise.
40766         * modules/remove (Description): Likewise.
40767         * modules/renameat (Description): Likewise.
40768         * modules/stat (Description): Likewise.
40769         * modules/symlink (Description): Likewise.
40770         * modules/unlink (Description): Likewise.
40772 2010-07-31  Bruno Haible  <bruno@clisp.org>
40774         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
40775         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
40776         option --enable/disable-c++ instead of --enable/disable-cxx.
40777         * NEWS: Mention the change.
40779 2010-07-31  Bruno Haible  <bruno@clisp.org>
40781         readlink, areadlink: Relax test a bit.
40782         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
40783         alternative to ENOTDIR.
40784         * tests/test-areadlink.h (test_areadlink): Likewise.
40785         Reported by Rainer Tammer.
40787 2010-07-31  Bruno Haible  <bruno@clisp.org>
40789         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
40790         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
40791         character, perform the search using U_STRCHR.
40792         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
40793         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
40794         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
40795         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
40796         Suggested by Paolo Bonzini.
40798 2010-07-31  Bruno Haible  <bruno@clisp.org>
40800         unistr/u*-strstr: Fix dependencies.
40801         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
40802         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
40803         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
40805 2010-07-31  Bruno Haible  <bruno@clisp.org>
40807         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
40808         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
40809         the beginning of the loop.
40810         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
40811         cases in 'switch' statement.
40813         unistr/u8-strchr: Fix several bugs.
40814         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
40815         the string. When not found, return NULL, not a pointer near the end.
40817         More tests for unistr/u8-strchr.
40818         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
40819         that the function does not read past the first occurrence of the byte
40820         being searched.
40821         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
40822         * tests/unistr/test-u16-strchr.c (main): New function.
40823         * tests/unistr/test-u32-strchr.c (main): New function.
40825 2010-07-31  Bruno Haible  <bruno@clisp.org>
40827         posix-modules: Ignore backup files of documentation files.
40828         * posix-modules: grep only through files named *.texi.
40830 2010-07-31  Bruno Haible  <bruno@clisp.org>
40832         symlinkat: Fix documentation.
40833         * doc/posix-functions/readlinkat.texi: Fix module name.
40835 2010-07-31  Bruno Haible  <bruno@clisp.org>
40837         fchownat: Replace also when chown has the trailing slash bug.
40838         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
40839         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
40840         introduced on 2010-04-10.
40841         Reported by Rainer Tammer.
40843 2010-07-31  Bruno Haible  <bruno@clisp.org>
40845         linkat: Work around AIX 7.1 bug.
40846         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
40847         whether linkat handles trailing slash correctly. If not, replace linkat
40848         and define LINKAT_TRAILING_SLASH_BUG.
40849         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
40850         check whether (fd1,file1) points to a directory if file1 or file2 ends
40851         in a slash. Code taken from lib/link.c.
40852         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
40853         Reported by Rainer Tammer.
40855 2010-07-31  Bruno Haible  <bruno@clisp.org>
40857         Correctly determine whether pow is available in libc on AIX 7 with xlc.
40858         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
40859         This disables an xlc optimization that was causing wrong test results.
40860         Reported by Rainer Tammer.
40862 2010-07-31  Bruno Haible  <bruno@clisp.org>
40864         iconv: Work around AIX 6.1..7.1 bug.
40865         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
40866         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
40867         cross-compiling, guess no on all versions of AIX.
40868         Reported by Rainer Tammer.
40870 2010-07-31  Bruno Haible  <bruno@clisp.org>
40872         readlink: Relax test a bit.
40873         * tests/test-readlink.h (test_readlink): Allow different errno value
40874         when readlink is called with a file name that ends in / and refers to
40875         a file.
40876         Suggested by Eric Blake.
40877         Reported by Rainer Tammer.
40879 2010-07-31  Bruno Haible  <bruno@clisp.org>
40881         copysign: Does not require -lm on glibc systems.
40882         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
40883         gl_COMMON_DOUBLE_MATHFUNC.
40884         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
40886 2010-07-31  Bruno Haible  <bruno@clisp.org>
40888         duplocale: Work around AIX 7.1 bug.
40889         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
40890         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
40891         * lib/duplocale.c (rpl_duplocale): Update comment.
40892         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
40893         Reported by Rainer Tammer.
40895 2010-07-30  Bruno Haible  <bruno@clisp.org>
40897         dirfd: Avoid link error on AIX 7.1.
40898         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
40899         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
40900         exist, set REPLACE_DIRFD.
40901         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
40902         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
40903         * doc/posix-functions/dirfd.texi: Update.
40904         Reported by Rainer Tammer.
40906 2010-07-30  Eric Blake  <eblake@redhat.com>
40908         strtod: next round of AIX fixes
40909         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
40910         exponent.
40911         * tests/test-strtod.c (main): Enhance tests.
40912         * doc/posix-functions/strtod.texi (strtod): Document next bug.
40913         Reported by Rainer Tammer.
40915         futimens: fix configure check
40916         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
40917         Reported by Bruno Haible.
40919 2010-07-30  Bruno Haible  <bruno@clisp.org>
40921         getline: Update regarding AIX.
40922         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
40923         Reported by Rainer Tammer.
40925 2010-07-30  Bruno Haible  <bruno@clisp.org>
40927         wcwidth: Drop replacement on AIX 7.
40928         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
40929         AIX 7.
40930         Reported by Rainer Tammer.
40932 2010-07-30  Bruno Haible  <bruno@clisp.org>
40934         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
40935         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
40936         a 'char *'.
40937         Reported by Rainer Tammer.
40939 2010-07-30  Bruno Haible  <bruno@clisp.org>
40941         unlink: Update regarding AIX.
40942         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
40943         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
40944         Reported by Rainer Tammer.
40946 2010-07-30  Bruno Haible  <bruno@clisp.org>
40948         symlink: Update regarding AIX.
40949         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
40950         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
40951         Reported by Rainer Tammer.
40953 2010-07-30  Bruno Haible  <bruno@clisp.org>
40955         strndup: Update regarding AIX.
40956         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
40957         AIX 7.
40958         Reported by Rainer Tammer.
40960 2010-07-30  Bruno Haible  <bruno@clisp.org>
40962         stat: Update regarding AIX.
40963         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
40964         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
40965         Reported by Rainer Tammer.
40967 2010-07-30  Bruno Haible  <bruno@clisp.org>
40969         truncl: Fix autoconf test.
40970         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
40971         whether truncl works.
40972         Reported by Rainer Tammer.
40974 2010-07-30  Bruno Haible  <bruno@clisp.org>
40976         round: Update regarding AIX.
40977         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
40978         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
40979         Reported by Rainer Tammer.
40981 2010-07-30  Bruno Haible  <bruno@clisp.org>
40983         rename: Update regarding AIX.
40984         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
40985         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
40986         Reported by Rainer Tammer.
40988 2010-07-30  Bruno Haible  <bruno@clisp.org>
40990         printf.m4: Update regarding AIX.
40991         * m4/printf.m4: Update comments regarding AIX.
40992         Reported by Rainer Tammer.
40994 2010-07-30  Bruno Haible  <bruno@clisp.org>
40996         iconv: Update regarding AIX.
40997         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
40998         AIX 7.
40999         Reported by Rainer Tammer.
41001 2010-07-30  Bruno Haible  <bruno@clisp.org>
41003         getopt: Update regarding AIX.
41004         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
41005         no on AIX.
41006         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
41007         Reported by Rainer Tammer.
41009 2010-07-30  Bruno Haible  <bruno@clisp.org>
41011         ldexpl; Update regarding AIX.
41012         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
41013         on AIX 7.
41014         Reported by Rainer Tammer.
41016 2010-07-30  Bruno Haible  <bruno@clisp.org>
41018         frexpl: Update regarding AIX.
41019         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
41020         on AIX 7.
41021         Reported by Rainer Tammer.
41023 2010-07-30  Bruno Haible  <bruno@clisp.org>
41025         open, fopen: Update regarding AIX.
41026         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
41027         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
41028         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
41029         * doc/posix-functions/fopen.texi: Likewise.
41030         Reported by Rainer Tammer.
41032 2010-07-30  Bruno Haible  <bruno@clisp.org>
41034         chown: Update doc regarding AIX.
41035         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
41036         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
41037         Reported by Rainer Tammer.
41039 2010-07-30  Eric Blake  <eblake@redhat.com>
41041         strtod: fix bug in replacement function on AIX
41042         * lib/strtod.c (strtod): Special case broken "0x" parse in
41043         underlying strtod.
41044         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
41045         * doc/posix-functions/strtod.texi (strtod): Likewise.
41046         Reported by Rainer Tammer.
41048 2010-07-30  Bruno Haible  <bruno@clisp.org>
41050         mbrlen: Fix cross-compilation guess for AIX.
41051         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
41052         guess. Leftover from 2008-12-22.
41054 2010-07-30  Bruno Haible  <bruno@clisp.org>
41056         mbrtowc: Fix cross-compilation guess for AIX.
41057         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
41058         guess. Leftover from 2008-12-21.
41060 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
41062         init.sh: work around trap limitation of some shells
41063         * tests/init.sh (setup_): Move exit trap outside of shell function.
41065 2010-07-29  Eric Blake  <eblake@redhat.com>
41067         strtod: aid debugging
41068         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
41069         understanding why strtod is rejected.
41071 2010-07-28  Bruno Haible  <bruno@clisp.org>
41073         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
41074         * lib/unistr/u8-chr.c: Include <string.h>.
41075         * tests/unistr/test-u8-chr.c: Likewise.
41076         * tests/unistr/test-u16-chr.c: Likewise.
41077         * tests/unistr/test-u32-chr.c: Likewise.
41078         * tests/unistr/test-u8-strchr.c: Likewise.
41079         * tests/unistr/test-u16-strchr.c: Likewise.
41080         * tests/unistr/test-u32-strchr.c: Likewise.
41081         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
41082         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
41083         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
41084         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
41086 2010-07-28  Bruno Haible  <bruno@clisp.org>
41088         Use spaces for indentation, not tabs.
41089         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
41091 2010-07-27  Bruno Haible  <bruno@clisp.org>
41093         mbspcasecmp: Fix function specification.
41094         * lib/string.in.h (mbspcasecmp): Fix specification comment.
41095         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
41096         Reported by Eric Blake <eblake@redhat.com>.
41098 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
41100         timespec: use cast and not conditional, as truncation isn't possible
41101         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
41102         instead of a conditional.  Comment about the situation in more detail.
41103         This undoes most of the 2009-10-29 patch.
41105 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
41107         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
41108         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
41109         * lib/unistr/u8-strchr.c: Likewise.
41110         * modules/unistr/u8-chr: Depend on memchr.
41112         unistr/u*-strchr: add tests
41113         * modules/unistr/u8-strchr-tests: New file.
41114         * modules/unistr/u16-strchr-tests: New file.
41115         * modules/unistr/u32-strchr-tests: New file.
41116         * tests/unistr/test-strchr.h: New file.
41117         * tests/unistr/test-u8-strchr.c: New file.
41118         * tests/unistr/test-u16-strchr.c: New file.
41119         * tests/unistr/test-u32-strchr.c: New file.
41121         unistr/u*-chr: test multibyte sequences more
41122         * tests/unistr/test-chr.h: Do complete testing of the characters in the
41123         test vector.
41124         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
41125         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
41126         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
41128         unistr/u*-chr: test multibyte sequences
41129         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
41131         unistr/u*-chr: prepare for multibyte tests
41132         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
41133         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
41134         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
41135         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
41136         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
41137         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
41139 2010-07-18  Bruno Haible  <bruno@clisp.org>
41141         unistr/u8-strchr: Optimize non-ASCII argument case.
41142         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
41143         because the first byte often matches anyway.
41144         Reported by Pádraig Brady <P@draigbrady.com>.
41146 2010-07-15  Karl Berry  <karl@gnu.org>
41148         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
41150 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
41152         getcwd: on Solaris, work better if ancestors are inaccessible
41153         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
41154         buffer and size, try again with a large buffer.  This works better
41155         on Solaris, since its getcwd succeeds even if the path to the root
41156         is inaccessible, and this is helpful in common cases such as .zfs
41157         hidden directories.  Problem reported by J Chapman Flack in
41158         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
41159         Use system getcwd if it's declared, not merely if it's partly
41160         working; use the partly-working test only to avoid needless effort
41161         if the system getcwd fails.
41162         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
41163         comment that was already obsolete and is now even more obsolete.
41164         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
41165         now might call strdup.
41167 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
41169         pthread: Add enough so that coreutils/src/sort.c compiles.
41170         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
41171         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
41172         gnulib. Include <sched.h> and <time.h>, as per POSIX.
41173         Include <sys/types.h>, in case it defines pthread_t.
41174         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
41175         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
41176         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
41177         (pthread_rwlockattr_t, pthread_spinlock_t):
41178         New typedefs, if HAVE_PTHREAD_T is not defined.
41179         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
41180         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
41181         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
41182         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
41183         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
41184         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
41185         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
41186         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
41187         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
41188         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
41189         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
41190         New macros.
41191         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
41192         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
41193         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
41194         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
41195         (pthread_spin_unlock): New dummy functions.
41196         (pthread_create): Return EAGAIN; don't set errno.
41197         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
41198         require AC_C_INLINE.
41199         * modules/pthread (Depends-on): Add sched, time.
41200         (pthread.h): Use AM_V_GEN.
41202 2010-07-13  Bruno Haible  <bruno@clisp.org>
41204         striconveh: Don't malloc memory if the result buffer is sufficient.
41205         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
41206         buffer if its size is sufficient.
41207         Reported by Ludovic Courtès <ludo@gnu.org>.
41209 2010-07-13  Bruno Haible  <bruno@clisp.org>
41211         strtod: Add safety check.
41212         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
41214 2010-07-12  Bruno Haible  <bruno@clisp.org>
41216         Unify tests that set gl_cv_func_ldexpl_no_libm.
41217         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
41218         gl_FUNC_LDEXPL.
41219         (gl_FUNC_LDEXPL): Invoke it.
41220         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
41222 2010-07-12  Bruno Haible  <bruno@clisp.org>
41224         Unify tests that set gl_cv_func_ldexp_no_libm.
41225         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
41226         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
41227         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
41228         (configure.ac): Simply invoke gl_FUNC_LDEXP.
41229         * modules/strtod (Files): Add m4/ldexp.m4.
41231 2010-07-12  Bruno Haible  <bruno@clisp.org>
41233         Unify tests that set gl_cv_func_frexpl_no_libm.
41234         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
41235         gl_FUNC_FREXPL_NO_LIBM.
41236         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
41237         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
41239 2010-07-12  Bruno Haible  <bruno@clisp.org>
41241         Unify tests that set gl_cv_func_frexp_no_libm.
41242         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
41243         gl_FUNC_FREXP_NO_LIBM.
41244         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
41245         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
41247 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
41249         memcoll: clarify sizes versus lengths, document better, and tweak perf
41250         * lib/memcoll.c (strcoll_loop, memcoll0):
41251         Improve quality of descriptive comments.  Name variables
41252         consistently as to whether they are lengths (which do not include
41253         terminating null) versus sizes (which do).
41254         * lib/xmemcoll.c (xmemcoll0): Likewise.
41255         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
41256         returned when s1size == 0; this is easier to compile and saves
41257         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
41259 2010-07-12  Bruno Haible  <bruno@clisp.org>
41261         Tests for module '_Exit'.
41262         * modules/_Exit-tests: New file.
41263         * tests/test-_Exit.sh: New file.
41264         * tests/test-_Exit.c: New file.
41266         New module '_Exit'.
41267         * lib/stdlib.in.h (__attribute__): New macro.
41268         (_Exit): New declaration.
41269         * lib/_Exit.c: New file.
41270         * m4/_Exit.m4: New file.
41271         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
41272         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
41273         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
41274         * modules/_Exit: New file.
41275         * tests/test-stdlib-c++.cc (_Exit): Check signature.
41276         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
41278 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
41280         strtod: make it more-accurate typically, and don't require libm
41281         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
41282         Include limits.h.  Don't include string.h.
41283         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
41284         (locale_isspace): New function, so that no casts are needed to
41285         check whether *s is a space.
41286         (ldexp): Provide an unused dummy if not available.
41287         (scale_radix_exp, parse_number, underlying_strtod): New functions.
41288         (strtod): Use them.  This implementation prefers to use the
41289         underlying strtod if available, falling back on our own code
41290         only to fix known bugs.  This is more likely to produce an
41291         accurate result.  Also, it avoids the use of libm functions.
41292         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
41293         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
41294         was absent, but it caused a test failure with coreutils.
41295         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
41296         with libm.
41297         * modules/strtod (Makefile.am, Link): libm is no longer needed.
41298         * modules/strtod-tests (Makefile.am): Likewise.
41300 2010-07-11  Pádraig Brady  <P@draigBrady.com>
41301             Bruno Haible  <bruno@clisp.org>
41303         unistr/u8-strchr: Optimize ASCII argument case.
41304         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
41306 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
41308         (x)memcoll: minor tweaks
41309         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
41310         is after the type that it qualifies.
41311         (memcoll0): Likewise.
41312         * lib/memcoll.h (memcoll0): Likewise.
41313         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
41314         * lib/xmemcoll.h (xmemcoll0): Likewise.
41315         * lib/memcoll.c (memcoll0): Correct the comment.  This function
41316         differs from memcoll in that the NUL byte is part of the argument.
41317         Omit the abort-checks, as performance is a real issue here.  Plus,
41318         the checks were wrong anyway (an off-by-one error).  Omit local
41319         variable 'diff', as it's a bit clearer that way.
41320         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
41321         no longer needed.
41323 2010-07-08  Chen Guo <chenguo4@yahoo.com>
41325         (x)memcoll: speedup when input is known to be NUL delimited
41326         * lib/memcoll.c: Include stdlib.
41327         (memcoll0): New function.
41328         (strcoll_loop): New function, refactored for use in both memcoll
41329         and memcoll0.
41330         * lib/memcoll.h (memcoll0): Add prototype.
41331         * lib/xmemcoll.c (xmemcoll0): New function.
41332         (collate_error): New function, refactored for use in both xmemcoll
41333         and xmemcoll0.
41334         * lib/xmemcoll.h (xmemcoll0): Add prototype.
41335         * m4/memcoll.m4: add inline invocation.
41337 2010-07-06  Pádraig Brady  <P@draigBrady.com>
41339         * build-aux/bootstrap: Remove any local translations
41340         from the translation project synchronization directory,
41341         so that local only translations are not distributed.
41343 2010-07-04  Bruno Haible  <bruno@clisp.org>
41345         fsusage: Clarify which code applies to which platforms.
41346         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
41347         platform.
41348         * lib/fsusage.c (get_fs_usage): Likewise.
41350 2010-07-04  Bruno Haible  <bruno@clisp.org>
41352         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
41353         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
41354         Reported by Martin Lambers <marlam@marlam.de>.
41356 2010-07-04  Jim Meyering  <meyering@redhat.com>
41358         hash: once again explicitly disallow insertion of NULL
41359         * lib/hash.c (hash_insert0): Reinstate just-removed test:
41360         inserting a NULL pointer cannot work with these functions.
41361         Add a comment with details.
41362         This reverts part of the 2010-07-01 commit, 5bef1a35
41363         "hash: extend module to deal with non-pointer keys".
41365 2010-07-01  Bruno Haible  <bruno@clisp.org>
41367         stdbool: Update doc.
41368         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
41369         Info from Christian Weisgerber <naddy@mips.inka.de>.
41371 2010-07-01  Jim Meyering  <meyering@redhat.com>
41373         hash: extend module to deal with non-pointer keys
41374         * lib/hash.c (hash_insert0): New interface, much like hash_insert
41375         but that allows insertion of non-pointer entries.
41376         Do not disallow an ENTRY value of NULL.
41377         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
41378         * lib/hash.h (hash_insert0): Declare.
41380 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
41382         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
41383         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
41384         not present (i.e. with autoconf 2.59 and when using gettextize, not
41385         gnulib), require AC_GNU_SOURCE instead.
41387 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
41389         idpriv-drop: Fix tests.
41390         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
41391         not to the test-idpriv-droptemp program.
41393 2010-06-29  Bruno Haible  <bruno@clisp.org>
41395         string: Fix syntax error with g++ 2.96.
41396         * lib/string.in.h (__pure__): Remove definition.
41397         (_GL_ATTRIBUTE_PURE): New macro.
41398         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
41399         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
41400         Reported by Christian Weisgerber <naddy@mips.inka.de>.
41402 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
41404         unitypes: Fix bug introduced on 2010-05-18.
41405         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
41407 2010-06-22  Eric Blake  <eblake@redhat.com>
41409         memmem: slight optimization
41410         * lib/str-two-way.h (critical_factorization): Update comments.
41411         Reduce work during factorization phase.
41412         Reported by Carlos Bueno <carlos@bueno.org>.
41414 2010-06-21  Bruno Haible  <bruno@clisp.org>
41416         Fix HAVE_CALLOC_POSIX misnomer.
41417         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
41418         !HAVE_CALLOC_POSIX.
41419         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
41420         HAVE_CALLOC_POSIX.
41421         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
41422         instead of HAVE_CALLOC_POSIX.
41423         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
41424         HAVE_CALLOC_POSIX.
41426         Use modern idiom for calloc() replacement.
41427         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
41428         AC_FUNC_CALLOC.
41429         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
41430         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
41431         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
41432         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
41433         (gl_REPLACE_CALLOC): New macro.
41435 2010-06-21  Bruno Haible  <bruno@clisp.org>
41437         Fix HAVE_REALLOC_POSIX misnomer.
41438         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
41439         !HAVE_REALLOC_POSIX.
41440         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
41441         HAVE_REALLOC_POSIX.
41442         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
41443         instead of HAVE_REALLOC_POSIX.
41444         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
41445         HAVE_REALLOC_POSIX.
41447         Use modern idiom for realloc() replacement.
41448         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
41449         AC_FUNC_REALLOC.
41450         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
41451         Autoconf's AC_FUNC_REALLOC.
41452         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
41453         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
41454         (gl_REPLACE_REALLOC): New macro.
41455         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
41457 2010-06-21  Bruno Haible  <bruno@clisp.org>
41459         Fix HAVE_MALLOC_POSIX misnomer.
41460         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
41461         !HAVE_MALLOC_POSIX.
41462         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
41463         HAVE_MALLOC_POSIX.
41464         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
41465         instead of HAVE_MALLOC_POSIX.
41466         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
41467         HAVE_MALLOC_POSIX.
41469         Use modern idiom for malloc() replacement.
41470         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
41471         AC_FUNC_MALLOC.
41472         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
41473         Autoconf's AC_FUNC_MALLOC.
41474         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
41475         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
41476         (gl_REPLACE_MALLOC): New macro.
41477         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
41479 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
41481         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
41482         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
41483         This macro takes 3 arguments, not 4.
41485 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
41487         ipv6: fix detection under mingw
41488         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
41489         in6_addr.
41491 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
41493         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
41494         that strtod() works when cross-compiling to a glibc version known
41495         to work.
41497 2010-06-15  Bruno Haible  <bruno@clisp.org>
41499         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
41501 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
41503         select: Correct timeout.
41504         * lib/select.c (rpl_select): Compute wait_timeout correctly.
41506 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
41508         git-version-gen: init shell var to avoid env var influence
41509         * build-aux/git-version-gen (v): Init shell var to empty.
41511 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
41513         priv-set: Don't assume that priv.h exists merely because getppriv does.
41514         See Jan Andersen's bug report about AIX 5L in
41515         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
41516         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
41517         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
41518         * lib/priv-set.h: Likewise.
41519         * tests/test-priv-set.c: Likewise.
41521 2010-06-13  Bruno Haible  <bruno@clisp.org>
41523         relocatable: Make it easier to test whether to install wrappers.
41524         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
41525         RELOCATABLE_VIA_WRAPPER.
41527 2010-06-13  Bruno Haible  <bruno@clisp.org>
41529         gnulib-tool: Display specified modules and dependencies differently.
41530         * gnulib-tool (func_show_module_list): New function.
41531         (func_import, func_create_testdir): Invoke it.
41532         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
41534 2010-06-13  Bruno Haible  <bruno@clisp.org>
41536         gnulib-tool: Align code of func_import and func_create_testdir.
41537         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
41538         specified_modules.
41540 2010-06-12  Jim Meyering  <meyering@redhat.com>
41542         test-inttostr: avoid spurious failure on Solaris 9
41543         * tests/test-inttostr.c (main): Skip the test when snprintf fails
41544         to accept "%ju".  Reported by Bruno Haible.
41546 2010-06-11  Jim Meyering  <meyering@redhat.com>
41548         test-sys_socket: mark variables as used more readably
41549         * tests/test-sys_socket.c (main): Mark otherwise unused variables
41550         as "used" explicitly via (void) statement casts.  This is more
41551         readable than using them in an artificial return expression.
41552         Suggestion from Bruno Haible.
41554 2010-06-11  Bruno Haible  <bruno@clisp.org>
41556         Avoid some more warnings from "gcc -Wwrite-strings".
41557         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
41558         to 'const char *'.
41559         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
41560         * tests/test-c-strcasestr.c (main): Likewise.
41561         * tests/test-mbscasestr1.c (main): Likewise.
41562         * tests/test-mbscasestr2.c (main): Likewise.
41563         * tests/test-memmem.c (main): Likewise.
41564         * tests/test-strstr.c (main): Likewise.
41565         * tests/test-strcasestr.c (main): Likewise.
41567 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41569         init.sh: change framework_failure_ to fail with status 99, not 1
41570         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
41571         automake's parallel-tests rule that this is an unexpected failure,
41572         even if the test is listed in XFAIL_TESTS.
41574 2010-06-11  Jim Meyering  <meyering@redhat.com>
41576         test-inttostr: avoid warnings about 4-6KB literal strings
41577         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
41578         Include "macros.h", for its definition of ASSERT.
41579         (CK): s/assert/ASSERT/
41580         * modules/inttostr-tests (Files): Add macros.h.
41582         init.sh: don't use $ME_ or skip_ before they are defined
41583         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
41584         their first uses.  Also hoist their companions: warn_, fail_,
41585         framework_failure_, $stderr_fileno.  Prompted by a patch from
41586         Stefano Lattarini.
41588         test-sys_socket: avoid set-but-not-used warnings from gcc
41589         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
41590         avoid warning about set-but-not-used variables.
41592         test-xvasprintf: avoid 'const' discard warnings
41593         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
41594         "const" when assigning from literal strings.
41595         (test_xasprintf): Add "void" in function argument list to placate
41596         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
41598         tests: avoid compilation warnings in argmatch and exclude tests...
41599         in packages that define ARGMATCH_DIE_DECL, like coreutils.
41600         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
41601         Since it always exits, declare with the "noreturn" attribute.
41602         * tests/test-argmatch.c: Likewise.
41604         tests: avoid 'const' discard warnings in mbsstr tests
41605         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
41606         * tests/test-mbsstr2.c (main): Likewise.
41608         test-verify: avoid warning from gcc's -Wmissing-declarations
41609         * tests/test-verify.c (function): Declare to be static.
41611         test-inttostr.c: include <string.h> for use of strcmp
41612         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
41614         test-linkat: avoid failed assertion on "other" architectures
41615         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
41616         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
41617         sparc: https://bugs.launchpad.net/bugs/591968
41619 2010-06-11  Jim Meyering  <meyering@redhat.com>
41621         printf.m4: avoid autoconf's "Expanded Before Required" warning
41622         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
41623         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
41624         autoconf warning.
41626 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
41628         Replacement header templates are now named with ".in", not "_".
41629         * doc/gnulib-intro.texi: Correct.
41631 2010-06-10  Jim Meyering  <meyering@redhat.com>
41633         inttostr-tests: depend on snprintf, not snprintf-posix
41634         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
41635         snprintf-posix, to avoid this aclocal failure:
41636           missing file gnulib-tests/vasnprintf.c
41637           configure.ac:45: error: expected source file, required through \
41638           AC_LIBSOURCES, not found
41640 2010-06-10  Jim Meyering  <meyering@redhat.com>
41642         inttostr: add a new function, inttostr, and tests
41643         The namesake function was not available.  The existence of the
41644         template file, inttostr.c makes its addition nontrivial.
41645         * lib/anytostr.c: Rename from inttostr.c.
41646         (anytostr): Rename from inttostr.
41647         * lib/inttostr.c: New file.
41648         * modules/inttostr (Files): Add anytostr.c.
41649         (Makefile.am): Set lib_SOURCES instead of ...
41650         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
41651         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
41652         * lib/offtostr.c: Likewise.
41653         * lib/uinttostr.c: Likewise.
41654         * lib/umaxtostr.c: Likewise.
41655         * modules/inttostr-tests: New file.
41656         * tests/test-inttostr.c: New file.  Test these functions.
41658 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
41659             Bruno Haible  <bruno@clisp.org>
41661         Add "Extending Gnulib" chapter to manual.
41662         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
41663         chapter.
41664         (Extending Gnulib): New chapter.
41665         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
41666         chapter.
41668 2010-06-09  Bruno Haible  <bruno@clisp.org>
41670         Avoid relocwrapper link errors due to gnulib replacement functions.
41671         * lib/areadlink.c: Use the system's malloc, realloc functions.
41672         (areadlink): Set errno to ENOMEM explicitly.
41673         * modules/areadlink (Depends-on): Remove malloc-posix.
41674         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41676 2010-06-09  Bruno Haible  <bruno@clisp.org>
41678         Avoid relocwrapper link errors due to gnulib replacement functions.
41679         * lib/canonicalize-lgpl.c: Use the system's malloc function.
41680         * lib/malloca.c: Likewise.
41681         * lib/relocatable.c: Likewise.
41682         * lib/progreloc.c: Use the system's malloc, sprintf functions.
41683         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
41684         * lib/setenv.c: Use the system's malloc, realloc functions.
41685         * lib/strerror.c: Use the system's sprintf function.
41686         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41688 2010-06-04  Bruno Haible  <bruno@clisp.org>
41690         Prefer documented low-level autoconf macro names.
41691         * m4/lib-link.m4: Use m4_translit instead of translit.
41692         * m4/environ.m4: Likewise.
41693         * m4/mathfunc.m4: Likewise.
41694         * m4/onceonly.m4: Likewise.
41695         * m4/stdint.m4: Likewise.
41696         Suggested by Eric Blake.
41698 2010-06-04  Martin Lambers  <marlam@marlam.de>
41699             Bruno Haible  <bruno@clisp.org>
41701         havelib: Allow library names with '+' characters.
41702         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
41703         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
41705 2010-06-09  Bruno Haible  <bruno@clisp.org>
41707         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
41708         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
41709         realloc failed.
41711 2010-06-08  Peter Simons  <simons@cryp.to>
41713         maint.mk: make the news-check rule more configurable
41714         * top/maint.mk (news-check-lines-spec): New variable.
41715         (news-check): Use "sed -n 1,10p" in place of "head".
41717 2010-06-07  Jim Meyering  <meyering@redhat.com>
41719         do-release-commit-and-tag: fix typo in --help
41720         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
41722         regex: avoid new dead-code warning with gcc-4.6.0
41723         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
41724         if-block containing a while-loop.  It's been unused for at least
41725         5 years.
41727 2010-06-05  Bruno Haible  <bruno@clisp.org>
41729         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
41730         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
41732 2010-06-04  Bruno Haible  <bruno@clisp.org>
41734         Update to GNU gettext 0.18.1.
41735         * modules/gettext (configure.ac): Require gettext infrastructure from
41736         version 0.18.1.
41738 2010-06-03  Bruno Haible  <bruno@clisp.org>
41740         Don't use AC_LIBOBJ with file names in subdirectories.
41741         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
41742         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
41743         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
41744         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
41745         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
41746         gl_LIBUNISTRING_LIBSOURCE.
41747         (Makefile.am): Augment lib_SOURCES here, conditionally.
41748         * NEWS: Drop requirement for Automake option 'subdir-objects'.
41750 2010-06-03  Bruno Haible  <bruno@clisp.org>
41752         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
41753         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
41754         expansion does not end with a newline.
41755         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
41756         unnecessary newline.
41758 2010-06-03  Bruno Haible  <bruno@clisp.org>
41760         Reduce dependencies.
41761         * tests/test-quotearg.h: New file, extracted from
41762         tests/test-quotearg.c.
41763         * tests/test-quotearg-simple.c: New file, extracted from
41764         tests/test-quotearg.c.
41765         * tests/test-quotearg.c: Don't include <ctype.h>.
41766         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
41767         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
41768         use_quote_double_quotes, use_quotearg_colon): Moved to
41769         tests/test-quotearg.h.
41770         (results_g, flag_results, custom_quotes, custom_results): Moved
41771         to tests/test-quotearg-simple.c.
41772         (main): Moved the part that does not depend on gettext to
41773         tests/test-quotearg-simple.c. Return 77 if the test cannot be
41774         performed.
41775         * modules/quotearg-simple: New file.
41776         * modules/quotearg-simple-tests: New file.
41777         * modules/quotearg (Depends-on): Add quotearg-simple.
41778         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
41779         (Files): Add tests/test-quotearg.h.
41780         Reported by Paolo Bonzini.
41782 2010-06-03  Bruno Haible  <bruno@clisp.org>
41784         Reduce dependencies.
41785         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
41787 2010-06-03  Bruno Haible  <bruno@clisp.org>
41789         time: Undefine more broken macros.
41790         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
41791         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
41792         Reported by Eric Blake.
41794 2010-06-03  Bruno Haible  <bruno@clisp.org>
41796         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
41797         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
41798         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
41799         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
41800         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
41801         Reported by Ludovic Courtès <ludo@gnu.org>.
41803 2010-06-02  Eric Blake  <eblake@redhat.com>
41805         time: work with mingw + pthreads-win32 library
41806         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
41807         if timespec is defined only in pthread.h.
41808         * modules/time (Makefile.am): Substitute it.
41809         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
41810         <pthread.h>, when needed.
41811         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
41812         from the library.
41814 2010-05-31  Bruno Haible  <bruno@clisp.org>
41816         Avoid expanding two macros in the wrong order.
41817         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
41818         gl_LIBUNISTRING if it is defined.
41819         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
41820         autoconf >= 2.64.
41821         Reported by Ludovic Courtès <ludo@gnu.org>.
41823 2010-05-27  Jim Meyering  <meyering@redhat.com>
41825         maint.mk: also prohibit "#undef" of always-defined symbols
41826         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
41827         Allow more than one space before the symbol name.
41828         (sc_prohibit_always-defined_macros): Use grep's -E, now that
41829         the regexp uses alternation.
41831 2010-05-26  Eric Blake  <eblake@redhat.com>
41833         maint.mk: avoid echo -e
41834         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
41835         Convert all uses of echo -* to printf.
41836         Reported by Matthias Bolte.
41838 2010-05-25  Bruno Haible  <bruno@clisp.org>
41840         Update to GNU gettext 0.18, part 2.
41841         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
41842         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
41844 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41846         Add missing include in test-pwrite.c.
41847         * tests/test-pwrite.c: Include string.h, for strcmp.
41849 2010-05-24  Bruno Haible  <bruno@clisp.org>
41851         * NEWS: Mention requirement for Automake option 'subdir-objects'.
41853 2010-05-24  Bruno Haible  <bruno@clisp.org>
41855         Don't use conversion with transliteration in u{8,16,32}_strcoll.
41856         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
41857         iconveh_error argument.
41858         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
41859         U_STRCONV_TO_LOCALE.
41860         * lib/unistr/u16-strcoll.c: Likewise.
41861         * lib/unistr/u32-strcoll.c: Likewise.
41862         * modules/unistr/u8-strcoll (Depends-on): Add
41863         uniconv/u8-strconv-to-enc, localcharset. Remove
41864         uniconv/u8-strconv-to-locale.
41865         (configure.ac): Bump version number.
41866         * modules/unistr/u16-strcoll (Depends-on): Add
41867         uniconv/u16-strconv-to-enc, localcharset. Remove
41868         uniconv/u16-strconv-to-locale.
41869         (configure.ac): Bump version number.
41870         * modules/unistr/u32-strcoll (Depends-on): Add
41871         uniconv/u32-strconv-to-enc, localcharset. Remove
41872         uniconv/u32-strconv-to-locale.
41873         (configure.ac): Bump version number.
41875 2010-05-24  Bruno Haible  <bruno@clisp.org>
41877         Avoid a test failure on NetBSD 5.0.
41878         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
41879         an iconv() bug.
41881 2010-05-24  Bruno Haible  <bruno@clisp.org>
41883         Adjust #include directive style.
41884         * modules/regex (Includes): Recommend to write <regex.h>.
41886 2010-05-24  Bruno Haible  <bruno@clisp.org>
41888         regex: Don't require alloca.
41889         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
41890         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
41891         only inside if (0).
41893 2010-05-23  Jim Meyering  <meyering@redhat.com>
41895         test-renameat.c: include <sys/stat.h>
41896         * tests/test-renameat.c: Include <sys/stat.h>; required for
41897         definition of S_IS* macros.
41899 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
41901         Update maintainer documentation for 'relocatable-prog' module.
41902         * doc/relocatable-maint.texi: Update.
41903         Comments by Bruno Haible.
41905 2010-05-23  Bruno Haible  <bruno@clisp.org>
41907         git-merge-changelog: Enable --split-merged-entry by default.
41908         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
41909         (usage): Don't mention this option any more.
41910         Reported by Ralf Wildenhues.
41912 2010-05-23  Jim Meyering  <meyering@redhat.com>
41914         test-pwrite: do not leave behind a test file named "out"
41915         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
41916         The trivial-looking use of init.sh is really necessary.
41917         It ensures that the temporary file, "out", is created in
41918         a temporary directory, and removed upon termination.
41919         * tests/test-pwrite.sh: Re-add file.
41920         * modules/pwrite-tests: Reference it.
41922 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41924         Fix output redirection buglet in init.sh.
41925         * tests/init.sh: Fix redirection of stderr.
41927 2010-05-20  Simon Josefsson  <simon@josefsson.org>
41929         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
41931 2010-05-17  Simon Josefsson  <simon@josefsson.org>
41933         * modules/valgrind-tests: New file.
41934         * m4/valgrind-tests.m4: New file.
41935         * doc/valgrind-tests.texi: New file.
41936         * doc/gnulib.texi (Running self-tests under valgrind): New
41937         section.
41939 2010-05-19  Bruno Haible  <bruno@clisp.org>
41941         Clean up dead code in recent commit.
41942         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
41943         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
41944         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
41945         Suggested by Paolo Bonzini.
41947 2010-05-19  Bruno Haible  <bruno@clisp.org>
41949         Avoid valgrind error reports from libunistring.
41950         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
41951         * modules/libunistring (Files): Add it.
41952         * modules/libunistring-optional (Files): Likewise.
41954 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
41955             Bruno Haible  <bruno@clisp.org>
41957         New module 'libunistring-optional'.
41958         * modules/libunistring-optional: New file.
41959         * m4/libunistring-base.m4: New file.
41960         * m4/libunistring-optional.m4: New file.
41961         * lib/unicase.in.h: Renamed from lib/unicase.h.
41962         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
41963         * lib/unictype.in.h: Renamed from lib/unictype.h.
41964         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
41965         * lib/uniname.in.h: Renamed from lib/uniname.h.
41966         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
41967         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
41968         * lib/unistr.in.h: Renamed from lib/unistr.h.
41969         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
41970         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
41971         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
41972         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
41973         gl_LIBUNISTRING. If the library was found, determine the installed
41974         version and set LIBUNISTRING_VERSION.
41975         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
41976         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
41977         handle a configuration option --with-included-libunistring.
41978         * modules/libunistring (Files): Add m4/absolute-header.m4.
41979         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
41980         Add m4/libunistring-base.m4.
41981         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
41982         (Makefile.am): Build unicase.h from unicase.in.h.
41983         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
41984         Add m4/libunistring-base.m4.
41985         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
41986         (Makefile.am): Build uniconv.h from uniconv.in.h.
41987         * modules/unictype/base (Files): Use unictype.in.h instead of
41988         unictype.h. Add m4/libunistring-base.m4.
41989         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
41990         (Makefile.am): Build unictype.h from unictype.in.h.
41991         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
41992         Add m4/libunistring-base.m4.
41993         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
41994         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
41995         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
41996         Add m4/libunistring-base.m4.
41997         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
41998         (Makefile.am): Build uniname.h from uniname.in.h.
41999         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
42000         Add m4/libunistring-base.m4.
42001         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
42002         (Makefile.am): Build uninorm.h from uninorm.in.h.
42003         * modules/unistdio/base (Files): Use unistdio.in.h instead of
42004         unistdio.h. Add m4/libunistring-base.m4.
42005         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
42006         (Makefile.am): Build unistdio.h from unistdio.in.h.
42007         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
42008         Add m4/libunistring-base.m4.
42009         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
42010         (Makefile.am): Build unistr.h from unistr.in.h.
42011         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
42012         Add m4/libunistring-base.m4.
42013         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
42014         (Makefile.am): Build unitypes.h from unitypes.in.h.
42015         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
42016         Add m4/libunistring-base.m4.
42017         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
42018         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
42019         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
42020         uniwidth.h. Add m4/libunistring-base.m4.
42021         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
42022         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
42023         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
42024         instead of augmenting lib_SOURCES.
42025         * modules/unicase/empty-suffix-context: Likewise.
42026         * modules/unicase/locale-language: Likewise.
42027         * modules/unicase/tolower: Likewise.
42028         * modules/unicase/totitle: Likewise.
42029         * modules/unicase/toupper: Likewise.
42030         * modules/unicase/u8-casecmp: Likewise.
42031         * modules/unicase/u8-casecoll: Likewise.
42032         * modules/unicase/u8-casefold: Likewise.
42033         * modules/unicase/u8-casexfrm: Likewise.
42034         * modules/unicase/u8-ct-casefold: Likewise.
42035         * modules/unicase/u8-ct-tolower: Likewise.
42036         * modules/unicase/u8-ct-totitle: Likewise.
42037         * modules/unicase/u8-ct-toupper: Likewise.
42038         * modules/unicase/u8-is-cased: Likewise.
42039         * modules/unicase/u8-is-casefolded: Likewise.
42040         * modules/unicase/u8-is-lowercase: Likewise.
42041         * modules/unicase/u8-is-titlecase: Likewise.
42042         * modules/unicase/u8-is-uppercase: Likewise.
42043         * modules/unicase/u8-prefix-context: Likewise.
42044         * modules/unicase/u8-suffix-context: Likewise.
42045         * modules/unicase/u8-tolower: Likewise.
42046         * modules/unicase/u8-totitle: Likewise.
42047         * modules/unicase/u8-toupper: Likewise.
42048         * modules/unicase/u16-casecmp: Likewise.
42049         * modules/unicase/u16-casecoll: Likewise.
42050         * modules/unicase/u16-casefold: Likewise.
42051         * modules/unicase/u16-casexfrm: Likewise.
42052         * modules/unicase/u16-ct-casefold: Likewise.
42053         * modules/unicase/u16-ct-tolower: Likewise.
42054         * modules/unicase/u16-ct-totitle: Likewise.
42055         * modules/unicase/u16-ct-toupper: Likewise.
42056         * modules/unicase/u16-is-cased: Likewise.
42057         * modules/unicase/u16-is-casefolded: Likewise.
42058         * modules/unicase/u16-is-lowercase: Likewise.
42059         * modules/unicase/u16-is-titlecase: Likewise.
42060         * modules/unicase/u16-is-uppercase: Likewise.
42061         * modules/unicase/u16-prefix-context: Likewise.
42062         * modules/unicase/u16-suffix-context: Likewise.
42063         * modules/unicase/u16-tolower: Likewise.
42064         * modules/unicase/u16-totitle: Likewise.
42065         * modules/unicase/u16-toupper: Likewise.
42066         * modules/unicase/u32-casecmp: Likewise.
42067         * modules/unicase/u32-casecoll: Likewise.
42068         * modules/unicase/u32-casefold: Likewise.
42069         * modules/unicase/u32-casexfrm: Likewise.
42070         * modules/unicase/u32-ct-casefold: Likewise.
42071         * modules/unicase/u32-ct-tolower: Likewise.
42072         * modules/unicase/u32-ct-totitle: Likewise.
42073         * modules/unicase/u32-ct-toupper: Likewise.
42074         * modules/unicase/u32-is-cased: Likewise.
42075         * modules/unicase/u32-is-casefolded: Likewise.
42076         * modules/unicase/u32-is-lowercase: Likewise.
42077         * modules/unicase/u32-is-titlecase: Likewise.
42078         * modules/unicase/u32-is-uppercase: Likewise.
42079         * modules/unicase/u32-prefix-context: Likewise.
42080         * modules/unicase/u32-suffix-context: Likewise.
42081         * modules/unicase/u32-tolower: Likewise.
42082         * modules/unicase/u32-totitle: Likewise.
42083         * modules/unicase/u32-toupper: Likewise.
42084         * modules/unicase/ulc-casecmp: Likewise.
42085         * modules/unicase/ulc-casecoll: Likewise.
42086         * modules/unicase/ulc-casexfrm: Likewise.
42087         * modules/uniconv/u8-conv-from-enc: Likewise.
42088         * modules/uniconv/u8-conv-to-enc: Likewise.
42089         * modules/uniconv/u8-strconv-from-enc: Likewise.
42090         * modules/uniconv/u8-strconv-from-locale: Likewise.
42091         * modules/uniconv/u8-strconv-to-enc: Likewise.
42092         * modules/uniconv/u8-strconv-to-locale: Likewise.
42093         * modules/uniconv/u16-conv-from-enc: Likewise.
42094         * modules/uniconv/u16-conv-to-enc: Likewise.
42095         * modules/uniconv/u16-strconv-from-enc: Likewise.
42096         * modules/uniconv/u16-strconv-from-locale: Likewise.
42097         * modules/uniconv/u16-strconv-to-enc: Likewise.
42098         * modules/uniconv/u16-strconv-to-locale: Likewise.
42099         * modules/uniconv/u32-conv-from-enc: Likewise.
42100         * modules/uniconv/u32-conv-to-enc: Likewise.
42101         * modules/uniconv/u32-strconv-from-enc: Likewise.
42102         * modules/uniconv/u32-strconv-from-locale: Likewise.
42103         * modules/uniconv/u32-strconv-to-enc: Likewise.
42104         * modules/uniconv/u32-strconv-to-locale: Likewise.
42105         * modules/unictype/bidicategory-byname: Likewise.
42106         * modules/unictype/bidicategory-name: Likewise.
42107         * modules/unictype/bidicategory-of: Likewise.
42108         * modules/unictype/bidicategory-test: Likewise.
42109         * modules/unictype/block-list: Likewise.
42110         * modules/unictype/block-test: Likewise.
42111         * modules/unictype/category-C: Likewise.
42112         * modules/unictype/category-Cc: Likewise.
42113         * modules/unictype/category-Cf: Likewise.
42114         * modules/unictype/category-Cn: Likewise.
42115         * modules/unictype/category-Co: Likewise.
42116         * modules/unictype/category-Cs: Likewise.
42117         * modules/unictype/category-L: Likewise.
42118         * modules/unictype/category-Ll: Likewise.
42119         * modules/unictype/category-Lm: Likewise.
42120         * modules/unictype/category-Lo: Likewise.
42121         * modules/unictype/category-Lt: Likewise.
42122         * modules/unictype/category-Lu: Likewise.
42123         * modules/unictype/category-M: Likewise.
42124         * modules/unictype/category-Mc: Likewise.
42125         * modules/unictype/category-Me: Likewise.
42126         * modules/unictype/category-Mn: Likewise.
42127         * modules/unictype/category-N: Likewise.
42128         * modules/unictype/category-Nd: Likewise.
42129         * modules/unictype/category-Nl: Likewise.
42130         * modules/unictype/category-No: Likewise.
42131         * modules/unictype/category-P: Likewise.
42132         * modules/unictype/category-Pc: Likewise.
42133         * modules/unictype/category-Pd: Likewise.
42134         * modules/unictype/category-Pe: Likewise.
42135         * modules/unictype/category-Pf: Likewise.
42136         * modules/unictype/category-Pi: Likewise.
42137         * modules/unictype/category-Po: Likewise.
42138         * modules/unictype/category-Ps: Likewise.
42139         * modules/unictype/category-S: Likewise.
42140         * modules/unictype/category-Sc: Likewise.
42141         * modules/unictype/category-Sk: Likewise.
42142         * modules/unictype/category-Sm: Likewise.
42143         * modules/unictype/category-So: Likewise.
42144         * modules/unictype/category-Z: Likewise.
42145         * modules/unictype/category-Zl: Likewise.
42146         * modules/unictype/category-Zp: Likewise.
42147         * modules/unictype/category-Zs: Likewise.
42148         * modules/unictype/category-and: Likewise.
42149         * modules/unictype/category-and-not: Likewise.
42150         * modules/unictype/category-byname: Likewise.
42151         * modules/unictype/category-name: Likewise.
42152         * modules/unictype/category-none: Likewise.
42153         * modules/unictype/category-of: Likewise.
42154         * modules/unictype/category-or: Likewise.
42155         * modules/unictype/category-test: Likewise.
42156         * modules/unictype/combining-class: Likewise.
42157         * modules/unictype/ctype-alnum: Likewise.
42158         * modules/unictype/ctype-alpha: Likewise.
42159         * modules/unictype/ctype-blank: Likewise.
42160         * modules/unictype/ctype-cntrl: Likewise.
42161         * modules/unictype/ctype-digit: Likewise.
42162         * modules/unictype/ctype-graph: Likewise.
42163         * modules/unictype/ctype-lower: Likewise.
42164         * modules/unictype/ctype-print: Likewise.
42165         * modules/unictype/ctype-punct: Likewise.
42166         * modules/unictype/ctype-space: Likewise.
42167         * modules/unictype/ctype-upper: Likewise.
42168         * modules/unictype/ctype-xdigit: Likewise.
42169         * modules/unictype/decimal-digit: Likewise.
42170         * modules/unictype/digit: Likewise.
42171         * modules/unictype/mirror: Likewise.
42172         * modules/unictype/numeric: Likewise.
42173         * modules/unictype/property-alphabetic: Likewise.
42174         * modules/unictype/property-ascii-hex-digit: Likewise.
42175         * modules/unictype/property-bidi-arabic-digit: Likewise.
42176         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
42177         * modules/unictype/property-bidi-block-separator: Likewise.
42178         * modules/unictype/property-bidi-boundary-neutral: Likewise.
42179         * modules/unictype/property-bidi-common-separator: Likewise.
42180         * modules/unictype/property-bidi-control: Likewise.
42181         * modules/unictype/property-bidi-embedding-or-override: Likewise.
42182         * modules/unictype/property-bidi-eur-num-separator: Likewise.
42183         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
42184         * modules/unictype/property-bidi-european-digit: Likewise.
42185         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
42186         * modules/unictype/property-bidi-left-to-right: Likewise.
42187         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
42188         * modules/unictype/property-bidi-other-neutral: Likewise.
42189         * modules/unictype/property-bidi-pdf: Likewise.
42190         * modules/unictype/property-bidi-segment-separator: Likewise.
42191         * modules/unictype/property-bidi-whitespace: Likewise.
42192         * modules/unictype/property-byname: Likewise.
42193         * modules/unictype/property-combining: Likewise.
42194         * modules/unictype/property-composite: Likewise.
42195         * modules/unictype/property-currency-symbol: Likewise.
42196         * modules/unictype/property-dash: Likewise.
42197         * modules/unictype/property-decimal-digit: Likewise.
42198         * modules/unictype/property-default-ignorable-code-point: Likewise.
42199         * modules/unictype/property-deprecated: Likewise.
42200         * modules/unictype/property-diacritic: Likewise.
42201         * modules/unictype/property-extender: Likewise.
42202         * modules/unictype/property-format-control: Likewise.
42203         * modules/unictype/property-grapheme-base: Likewise.
42204         * modules/unictype/property-grapheme-extend: Likewise.
42205         * modules/unictype/property-grapheme-link: Likewise.
42206         * modules/unictype/property-hex-digit: Likewise.
42207         * modules/unictype/property-hyphen: Likewise.
42208         * modules/unictype/property-id-continue: Likewise.
42209         * modules/unictype/property-id-start: Likewise.
42210         * modules/unictype/property-ideographic: Likewise.
42211         * modules/unictype/property-ids-binary-operator: Likewise.
42212         * modules/unictype/property-ids-trinary-operator: Likewise.
42213         * modules/unictype/property-ignorable-control: Likewise.
42214         * modules/unictype/property-iso-control: Likewise.
42215         * modules/unictype/property-join-control: Likewise.
42216         * modules/unictype/property-left-of-pair: Likewise.
42217         * modules/unictype/property-line-separator: Likewise.
42218         * modules/unictype/property-logical-order-exception: Likewise.
42219         * modules/unictype/property-lowercase: Likewise.
42220         * modules/unictype/property-math: Likewise.
42221         * modules/unictype/property-non-break: Likewise.
42222         * modules/unictype/property-not-a-character: Likewise.
42223         * modules/unictype/property-numeric: Likewise.
42224         * modules/unictype/property-other-alphabetic: Likewise.
42225         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
42226         * modules/unictype/property-other-grapheme-extend: Likewise.
42227         * modules/unictype/property-other-id-continue: Likewise.
42228         * modules/unictype/property-other-id-start: Likewise.
42229         * modules/unictype/property-other-lowercase: Likewise.
42230         * modules/unictype/property-other-math: Likewise.
42231         * modules/unictype/property-other-uppercase: Likewise.
42232         * modules/unictype/property-paired-punctuation: Likewise.
42233         * modules/unictype/property-paragraph-separator: Likewise.
42234         * modules/unictype/property-pattern-syntax: Likewise.
42235         * modules/unictype/property-pattern-white-space: Likewise.
42236         * modules/unictype/property-private-use: Likewise.
42237         * modules/unictype/property-punctuation: Likewise.
42238         * modules/unictype/property-quotation-mark: Likewise.
42239         * modules/unictype/property-radical: Likewise.
42240         * modules/unictype/property-sentence-terminal: Likewise.
42241         * modules/unictype/property-soft-dotted: Likewise.
42242         * modules/unictype/property-space: Likewise.
42243         * modules/unictype/property-terminal-punctuation: Likewise.
42244         * modules/unictype/property-test: Likewise.
42245         * modules/unictype/property-titlecase: Likewise.
42246         * modules/unictype/property-unassigned-code-value: Likewise.
42247         * modules/unictype/property-unified-ideograph: Likewise.
42248         * modules/unictype/property-uppercase: Likewise.
42249         * modules/unictype/property-variation-selector: Likewise.
42250         * modules/unictype/property-white-space: Likewise.
42251         * modules/unictype/property-xid-continue: Likewise.
42252         * modules/unictype/property-xid-start: Likewise.
42253         * modules/unictype/property-zero-width: Likewise.
42254         * modules/unictype/scripts: Likewise.
42255         * modules/unictype/syntax-c-ident: Likewise.
42256         * modules/unictype/syntax-c-whitespace: Likewise.
42257         * modules/unictype/syntax-java-ident: Likewise.
42258         * modules/unictype/syntax-java-whitespace: Likewise.
42259         * modules/unilbrk/u8-possible-linebreaks: Likewise.
42260         * modules/unilbrk/u8-width-linebreaks: Likewise.
42261         * modules/unilbrk/u16-possible-linebreaks: Likewise.
42262         * modules/unilbrk/u16-width-linebreaks: Likewise.
42263         * modules/unilbrk/u32-possible-linebreaks: Likewise.
42264         * modules/unilbrk/u32-width-linebreaks: Likewise.
42265         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
42266         * modules/unilbrk/ulc-width-linebreaks: Likewise.
42267         * modules/uniname/uniname: Likewise.
42268         * modules/uninorm/canonical-decomposition: Likewise.
42269         * modules/uninorm/composition: Likewise.
42270         * modules/uninorm/decomposing-form: Likewise.
42271         * modules/uninorm/decomposition: Likewise.
42272         * modules/uninorm/filter: Likewise.
42273         * modules/uninorm/nfc: Likewise.
42274         * modules/uninorm/nfd: Likewise.
42275         * modules/uninorm/nfkc: Likewise.
42276         * modules/uninorm/nfkd: Likewise.
42277         * modules/uninorm/u8-normalize: Likewise.
42278         * modules/uninorm/u8-normcmp: Likewise.
42279         * modules/uninorm/u8-normcoll: Likewise.
42280         * modules/uninorm/u8-normxfrm: Likewise.
42281         * modules/uninorm/u16-normalize: Likewise.
42282         * modules/uninorm/u16-normcmp: Likewise.
42283         * modules/uninorm/u16-normcoll: Likewise.
42284         * modules/uninorm/u16-normxfrm: Likewise.
42285         * modules/uninorm/u32-normalize: Likewise.
42286         * modules/uninorm/u32-normcmp: Likewise.
42287         * modules/uninorm/u32-normcoll: Likewise.
42288         * modules/uninorm/u32-normxfrm: Likewise.
42289         * modules/unistdio/u8-asnprintf: Likewise.
42290         * modules/unistdio/u8-asprintf: Likewise.
42291         * modules/unistdio/u8-snprintf: Likewise.
42292         * modules/unistdio/u8-sprintf: Likewise.
42293         * modules/unistdio/u8-u8-asnprintf: Likewise.
42294         * modules/unistdio/u8-u8-asprintf: Likewise.
42295         * modules/unistdio/u8-u8-snprintf: Likewise.
42296         * modules/unistdio/u8-u8-sprintf: Likewise.
42297         * modules/unistdio/u8-u8-vasnprintf: Likewise.
42298         * modules/unistdio/u8-u8-vasprintf: Likewise.
42299         * modules/unistdio/u8-u8-vsnprintf: Likewise.
42300         * modules/unistdio/u8-u8-vsprintf: Likewise.
42301         * modules/unistdio/u8-vasnprintf: Likewise.
42302         * modules/unistdio/u8-vasprintf: Likewise.
42303         * modules/unistdio/u8-vsnprintf: Likewise.
42304         * modules/unistdio/u8-vsprintf: Likewise.
42305         * modules/unistdio/u16-asnprintf: Likewise.
42306         * modules/unistdio/u16-asprintf: Likewise.
42307         * modules/unistdio/u16-snprintf: Likewise.
42308         * modules/unistdio/u16-sprintf: Likewise.
42309         * modules/unistdio/u16-u16-asnprintf: Likewise.
42310         * modules/unistdio/u16-u16-asprintf: Likewise.
42311         * modules/unistdio/u16-u16-snprintf: Likewise.
42312         * modules/unistdio/u16-u16-sprintf: Likewise.
42313         * modules/unistdio/u16-u16-vasnprintf: Likewise.
42314         * modules/unistdio/u16-u16-vasprintf: Likewise.
42315         * modules/unistdio/u16-u16-vsnprintf: Likewise.
42316         * modules/unistdio/u16-u16-vsprintf: Likewise.
42317         * modules/unistdio/u16-vasnprintf: Likewise.
42318         * modules/unistdio/u16-vasprintf: Likewise.
42319         * modules/unistdio/u16-vsnprintf: Likewise.
42320         * modules/unistdio/u16-vsprintf: Likewise.
42321         * modules/unistdio/u32-asnprintf: Likewise.
42322         * modules/unistdio/u32-asprintf: Likewise.
42323         * modules/unistdio/u32-snprintf: Likewise.
42324         * modules/unistdio/u32-sprintf: Likewise.
42325         * modules/unistdio/u32-u32-asnprintf: Likewise.
42326         * modules/unistdio/u32-u32-asprintf: Likewise.
42327         * modules/unistdio/u32-u32-snprintf: Likewise.
42328         * modules/unistdio/u32-u32-sprintf: Likewise.
42329         * modules/unistdio/u32-u32-vasnprintf: Likewise.
42330         * modules/unistdio/u32-u32-vasprintf: Likewise.
42331         * modules/unistdio/u32-u32-vsnprintf: Likewise.
42332         * modules/unistdio/u32-u32-vsprintf: Likewise.
42333         * modules/unistdio/u32-vasnprintf: Likewise.
42334         * modules/unistdio/u32-vasprintf: Likewise.
42335         * modules/unistdio/u32-vsnprintf: Likewise.
42336         * modules/unistdio/u32-vsprintf: Likewise.
42337         * modules/unistdio/ulc-asnprintf: Likewise.
42338         * modules/unistdio/ulc-asprintf: Likewise.
42339         * modules/unistdio/ulc-fprintf: Likewise.
42340         * modules/unistdio/ulc-snprintf: Likewise.
42341         * modules/unistdio/ulc-sprintf: Likewise.
42342         * modules/unistdio/ulc-vasnprintf: Likewise.
42343         * modules/unistdio/ulc-vasprintf: Likewise.
42344         * modules/unistdio/ulc-vfprintf: Likewise.
42345         * modules/unistdio/ulc-vsnprintf: Likewise.
42346         * modules/unistdio/ulc-vsprintf: Likewise.
42347         * modules/unistr/u8-check: Likewise.
42348         * modules/unistr/u8-chr: Likewise.
42349         * modules/unistr/u8-cmp: Likewise.
42350         * modules/unistr/u8-cmp2: Likewise.
42351         * modules/unistr/u8-cpy: Likewise.
42352         * modules/unistr/u8-cpy-alloc: Likewise.
42353         * modules/unistr/u8-endswith: Likewise.
42354         * modules/unistr/u8-mblen: Likewise.
42355         * modules/unistr/u8-mbsnlen: Likewise.
42356         * modules/unistr/u8-mbtouc: Likewise.
42357         * modules/unistr/u8-mbtouc-unsafe: Likewise.
42358         * modules/unistr/u8-mbtoucr: Likewise.
42359         * modules/unistr/u8-move: Likewise.
42360         * modules/unistr/u8-next: Likewise.
42361         * modules/unistr/u8-prev: Likewise.
42362         * modules/unistr/u8-set: Likewise.
42363         * modules/unistr/u8-startswith: Likewise.
42364         * modules/unistr/u8-stpcpy: Likewise.
42365         * modules/unistr/u8-stpncpy: Likewise.
42366         * modules/unistr/u8-strcat: Likewise.
42367         * modules/unistr/u8-strchr: Likewise.
42368         * modules/unistr/u8-strcmp: Likewise.
42369         * modules/unistr/u8-strcoll: Likewise.
42370         * modules/unistr/u8-strcpy: Likewise.
42371         * modules/unistr/u8-strcspn: Likewise.
42372         * modules/unistr/u8-strdup: Likewise.
42373         * modules/unistr/u8-strlen: Likewise.
42374         * modules/unistr/u8-strmblen: Likewise.
42375         * modules/unistr/u8-strmbtouc: Likewise.
42376         * modules/unistr/u8-strncat: Likewise.
42377         * modules/unistr/u8-strncmp: Likewise.
42378         * modules/unistr/u8-strncpy: Likewise.
42379         * modules/unistr/u8-strnlen: Likewise.
42380         * modules/unistr/u8-strpbrk: Likewise.
42381         * modules/unistr/u8-strrchr: Likewise.
42382         * modules/unistr/u8-strspn: Likewise.
42383         * modules/unistr/u8-strstr: Likewise.
42384         * modules/unistr/u8-strtok: Likewise.
42385         * modules/unistr/u8-to-u16: Likewise.
42386         * modules/unistr/u8-to-u32: Likewise.
42387         * modules/unistr/u8-uctomb: Likewise.
42388         * modules/unistr/u16-check: Likewise.
42389         * modules/unistr/u16-chr: Likewise.
42390         * modules/unistr/u16-cmp: Likewise.
42391         * modules/unistr/u16-cmp2: Likewise.
42392         * modules/unistr/u16-cpy: Likewise.
42393         * modules/unistr/u16-cpy-alloc: Likewise.
42394         * modules/unistr/u16-endswith: Likewise.
42395         * modules/unistr/u16-mblen: Likewise.
42396         * modules/unistr/u16-mbsnlen: Likewise.
42397         * modules/unistr/u16-mbtouc: Likewise.
42398         * modules/unistr/u16-mbtouc-unsafe: Likewise.
42399         * modules/unistr/u16-mbtoucr: Likewise.
42400         * modules/unistr/u16-move: Likewise.
42401         * modules/unistr/u16-next: Likewise.
42402         * modules/unistr/u16-prev: Likewise.
42403         * modules/unistr/u16-set: Likewise.
42404         * modules/unistr/u16-startswith: Likewise.
42405         * modules/unistr/u16-stpcpy: Likewise.
42406         * modules/unistr/u16-stpncpy: Likewise.
42407         * modules/unistr/u16-strcat: Likewise.
42408         * modules/unistr/u16-strchr: Likewise.
42409         * modules/unistr/u16-strcmp: Likewise.
42410         * modules/unistr/u16-strcoll: Likewise.
42411         * modules/unistr/u16-strcpy: Likewise.
42412         * modules/unistr/u16-strcspn: Likewise.
42413         * modules/unistr/u16-strdup: Likewise.
42414         * modules/unistr/u16-strlen: Likewise.
42415         * modules/unistr/u16-strmblen: Likewise.
42416         * modules/unistr/u16-strmbtouc: Likewise.
42417         * modules/unistr/u16-strncat: Likewise.
42418         * modules/unistr/u16-strncmp: Likewise.
42419         * modules/unistr/u16-strncpy: Likewise.
42420         * modules/unistr/u16-strnlen: Likewise.
42421         * modules/unistr/u16-strpbrk: Likewise.
42422         * modules/unistr/u16-strrchr: Likewise.
42423         * modules/unistr/u16-strspn: Likewise.
42424         * modules/unistr/u16-strstr: Likewise.
42425         * modules/unistr/u16-strtok: Likewise.
42426         * modules/unistr/u16-to-u32: Likewise.
42427         * modules/unistr/u16-to-u8: Likewise.
42428         * modules/unistr/u16-uctomb: Likewise.
42429         * modules/unistr/u32-check: Likewise.
42430         * modules/unistr/u32-chr: Likewise.
42431         * modules/unistr/u32-cmp: Likewise.
42432         * modules/unistr/u32-cmp2: Likewise.
42433         * modules/unistr/u32-cpy: Likewise.
42434         * modules/unistr/u32-cpy-alloc: Likewise.
42435         * modules/unistr/u32-endswith: Likewise.
42436         * modules/unistr/u32-mblen: Likewise.
42437         * modules/unistr/u32-mbsnlen: Likewise.
42438         * modules/unistr/u32-mbtouc: Likewise.
42439         * modules/unistr/u32-mbtouc-unsafe: Likewise.
42440         * modules/unistr/u32-mbtoucr: Likewise.
42441         * modules/unistr/u32-move: Likewise.
42442         * modules/unistr/u32-next: Likewise.
42443         * modules/unistr/u32-prev: Likewise.
42444         * modules/unistr/u32-set: Likewise.
42445         * modules/unistr/u32-startswith: Likewise.
42446         * modules/unistr/u32-stpcpy: Likewise.
42447         * modules/unistr/u32-stpncpy: Likewise.
42448         * modules/unistr/u32-strcat: Likewise.
42449         * modules/unistr/u32-strchr: Likewise.
42450         * modules/unistr/u32-strcmp: Likewise.
42451         * modules/unistr/u32-strcoll: Likewise.
42452         * modules/unistr/u32-strcpy: Likewise.
42453         * modules/unistr/u32-strcspn: Likewise.
42454         * modules/unistr/u32-strdup: Likewise.
42455         * modules/unistr/u32-strlen: Likewise.
42456         * modules/unistr/u32-strmblen: Likewise.
42457         * modules/unistr/u32-strmbtouc: Likewise.
42458         * modules/unistr/u32-strncat: Likewise.
42459         * modules/unistr/u32-strncmp: Likewise.
42460         * modules/unistr/u32-strncpy: Likewise.
42461         * modules/unistr/u32-strnlen: Likewise.
42462         * modules/unistr/u32-strpbrk: Likewise.
42463         * modules/unistr/u32-strrchr: Likewise.
42464         * modules/unistr/u32-strspn: Likewise.
42465         * modules/unistr/u32-strstr: Likewise.
42466         * modules/unistr/u32-strtok: Likewise.
42467         * modules/unistr/u32-to-u16: Likewise.
42468         * modules/unistr/u32-to-u8: Likewise.
42469         * modules/unistr/u32-uctomb: Likewise.
42470         * modules/uniwbrk/u8-wordbreaks: Likewise.
42471         * modules/uniwbrk/u16-wordbreaks: Likewise.
42472         * modules/uniwbrk/u32-wordbreaks: Likewise.
42473         * modules/uniwbrk/ulc-wordbreaks: Likewise.
42474         * modules/uniwbrk/wordbreak-property: Likewise.
42475         * modules/uniwidth/u8-strwidth: Likewise.
42476         * modules/uniwidth/u8-width: Likewise.
42477         * modules/uniwidth/u16-strwidth: Likewise.
42478         * modules/uniwidth/u16-width: Likewise.
42479         * modules/uniwidth/u32-strwidth: Likewise.
42480         * modules/uniwidth/u32-width: Likewise.
42481         * modules/uniwidth/width: Likewise.
42482         * modules/unicase/cased-tests (Makefile.am): Link all test programs
42483         with $(LIBUNISTRING).
42484         * modules/unicase/ignorable-tests: Likewise.
42485         * modules/unicase/locale-language-tests: Likewise.
42486         * modules/unicase/tolower-tests: Likewise.
42487         * modules/unicase/totitle-tests: Likewise.
42488         * modules/unicase/toupper-tests: Likewise.
42489         * modules/unicase/u8-casecmp-tests: Likewise.
42490         * modules/unicase/u8-casecoll-tests: Likewise.
42491         * modules/unicase/u8-casefold-tests: Likewise.
42492         * modules/unicase/u8-is-cased-tests: Likewise.
42493         * modules/unicase/u8-is-casefolded-tests: Likewise.
42494         * modules/unicase/u8-is-lowercase-tests: Likewise.
42495         * modules/unicase/u8-is-titlecase-tests: Likewise.
42496         * modules/unicase/u8-is-uppercase-tests: Likewise.
42497         * modules/unicase/u8-tolower-tests: Likewise.
42498         * modules/unicase/u8-totitle-tests: Likewise.
42499         * modules/unicase/u8-toupper-tests: Likewise.
42500         * modules/unicase/u16-casecmp-tests: Likewise.
42501         * modules/unicase/u16-casecoll-tests: Likewise.
42502         * modules/unicase/u16-casefold-tests: Likewise.
42503         * modules/unicase/u16-is-cased-tests: Likewise.
42504         * modules/unicase/u16-is-casefolded-tests: Likewise.
42505         * modules/unicase/u16-is-lowercase-tests: Likewise.
42506         * modules/unicase/u16-is-titlecase-tests: Likewise.
42507         * modules/unicase/u16-is-uppercase-tests: Likewise.
42508         * modules/unicase/u16-tolower-tests: Likewise.
42509         * modules/unicase/u16-totitle-tests: Likewise.
42510         * modules/unicase/u16-toupper-tests: Likewise.
42511         * modules/unicase/u32-casecmp-tests: Likewise.
42512         * modules/unicase/u32-casecoll-tests: Likewise.
42513         * modules/unicase/u32-casefold-tests: Likewise.
42514         * modules/unicase/u32-is-cased-tests: Likewise.
42515         * modules/unicase/u32-is-casefolded-tests: Likewise.
42516         * modules/unicase/u32-is-lowercase-tests: Likewise.
42517         * modules/unicase/u32-is-titlecase-tests: Likewise.
42518         * modules/unicase/u32-is-uppercase-tests: Likewise.
42519         * modules/unicase/u32-tolower-tests: Likewise.
42520         * modules/unicase/u32-totitle-tests: Likewise.
42521         * modules/unicase/u32-toupper-tests: Likewise.
42522         * modules/unicase/ulc-casecmp-tests: Likewise.
42523         * modules/unicase/ulc-casecoll-tests: Likewise.
42524         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
42525         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
42526         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
42527         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
42528         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
42529         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
42530         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
42531         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
42532         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
42533         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
42534         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
42535         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
42536         * modules/unictype/bidicategory-byname-tests: Likewise.
42537         * modules/unictype/bidicategory-name-tests: Likewise.
42538         * modules/unictype/bidicategory-of-tests: Likewise.
42539         * modules/unictype/bidicategory-test-tests: Likewise.
42540         * modules/unictype/block-list-tests: Likewise.
42541         * modules/unictype/block-of-tests: Likewise.
42542         * modules/unictype/block-test-tests: Likewise.
42543         * modules/unictype/category-C-tests: Likewise.
42544         * modules/unictype/category-Cc-tests: Likewise.
42545         * modules/unictype/category-Cf-tests: Likewise.
42546         * modules/unictype/category-Cn-tests: Likewise.
42547         * modules/unictype/category-Co-tests: Likewise.
42548         * modules/unictype/category-Cs-tests: Likewise.
42549         * modules/unictype/category-L-tests: Likewise.
42550         * modules/unictype/category-Ll-tests: Likewise.
42551         * modules/unictype/category-Lm-tests: Likewise.
42552         * modules/unictype/category-Lo-tests: Likewise.
42553         * modules/unictype/category-Lt-tests: Likewise.
42554         * modules/unictype/category-Lu-tests: Likewise.
42555         * modules/unictype/category-M-tests: Likewise.
42556         * modules/unictype/category-Mc-tests: Likewise.
42557         * modules/unictype/category-Me-tests: Likewise.
42558         * modules/unictype/category-Mn-tests: Likewise.
42559         * modules/unictype/category-N-tests: Likewise.
42560         * modules/unictype/category-Nd-tests: Likewise.
42561         * modules/unictype/category-Nl-tests: Likewise.
42562         * modules/unictype/category-No-tests: Likewise.
42563         * modules/unictype/category-P-tests: Likewise.
42564         * modules/unictype/category-Pc-tests: Likewise.
42565         * modules/unictype/category-Pd-tests: Likewise.
42566         * modules/unictype/category-Pe-tests: Likewise.
42567         * modules/unictype/category-Pf-tests: Likewise.
42568         * modules/unictype/category-Pi-tests: Likewise.
42569         * modules/unictype/category-Po-tests: Likewise.
42570         * modules/unictype/category-Ps-tests: Likewise.
42571         * modules/unictype/category-S-tests: Likewise.
42572         * modules/unictype/category-Sc-tests: Likewise.
42573         * modules/unictype/category-Sk-tests: Likewise.
42574         * modules/unictype/category-Sm-tests: Likewise.
42575         * modules/unictype/category-So-tests: Likewise.
42576         * modules/unictype/category-Z-tests: Likewise.
42577         * modules/unictype/category-Zl-tests: Likewise.
42578         * modules/unictype/category-Zp-tests: Likewise.
42579         * modules/unictype/category-Zs-tests: Likewise.
42580         * modules/unictype/category-and-not-tests: Likewise.
42581         * modules/unictype/category-and-tests: Likewise.
42582         * modules/unictype/category-byname-tests: Likewise.
42583         * modules/unictype/category-name-tests: Likewise.
42584         * modules/unictype/category-none-tests: Likewise.
42585         * modules/unictype/category-of-tests: Likewise.
42586         * modules/unictype/category-or-tests: Likewise.
42587         * modules/unictype/category-test-withtable-tests: Likewise.
42588         * modules/unictype/combining-class-tests: Likewise.
42589         * modules/unictype/ctype-alnum-tests: Likewise.
42590         * modules/unictype/ctype-alpha-tests: Likewise.
42591         * modules/unictype/ctype-blank-tests: Likewise.
42592         * modules/unictype/ctype-cntrl-tests: Likewise.
42593         * modules/unictype/ctype-digit-tests: Likewise.
42594         * modules/unictype/ctype-graph-tests: Likewise.
42595         * modules/unictype/ctype-lower-tests: Likewise.
42596         * modules/unictype/ctype-print-tests: Likewise.
42597         * modules/unictype/ctype-punct-tests: Likewise.
42598         * modules/unictype/ctype-space-tests: Likewise.
42599         * modules/unictype/ctype-upper-tests: Likewise.
42600         * modules/unictype/ctype-xdigit-tests: Likewise.
42601         * modules/unictype/decimal-digit-tests: Likewise.
42602         * modules/unictype/digit-tests: Likewise.
42603         * modules/unictype/mirror-tests: Likewise.
42604         * modules/unictype/numeric-tests: Likewise.
42605         * modules/unictype/property-alphabetic-tests: Likewise.
42606         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
42607         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
42608         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
42609         * modules/unictype/property-bidi-block-separator-tests: Likewise.
42610         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
42611         * modules/unictype/property-bidi-common-separator-tests: Likewise.
42612         * modules/unictype/property-bidi-control-tests: Likewise.
42613         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
42614         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
42615         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
42616         * modules/unictype/property-bidi-european-digit-tests: Likewise.
42617         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
42618         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
42619         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
42620         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
42621         * modules/unictype/property-bidi-pdf-tests: Likewise.
42622         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
42623         * modules/unictype/property-bidi-whitespace-tests: Likewise.
42624         * modules/unictype/property-byname-tests: Likewise.
42625         * modules/unictype/property-combining-tests: Likewise.
42626         * modules/unictype/property-composite-tests: Likewise.
42627         * modules/unictype/property-currency-symbol-tests: Likewise.
42628         * modules/unictype/property-dash-tests: Likewise.
42629         * modules/unictype/property-decimal-digit-tests: Likewise.
42630         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
42631         * modules/unictype/property-deprecated-tests: Likewise.
42632         * modules/unictype/property-diacritic-tests: Likewise.
42633         * modules/unictype/property-extender-tests: Likewise.
42634         * modules/unictype/property-format-control-tests: Likewise.
42635         * modules/unictype/property-grapheme-base-tests: Likewise.
42636         * modules/unictype/property-grapheme-extend-tests: Likewise.
42637         * modules/unictype/property-grapheme-link-tests: Likewise.
42638         * modules/unictype/property-hex-digit-tests: Likewise.
42639         * modules/unictype/property-hyphen-tests: Likewise.
42640         * modules/unictype/property-id-continue-tests: Likewise.
42641         * modules/unictype/property-id-start-tests: Likewise.
42642         * modules/unictype/property-ideographic-tests: Likewise.
42643         * modules/unictype/property-ids-binary-operator-tests: Likewise.
42644         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
42645         * modules/unictype/property-ignorable-control-tests: Likewise.
42646         * modules/unictype/property-iso-control-tests: Likewise.
42647         * modules/unictype/property-join-control-tests: Likewise.
42648         * modules/unictype/property-left-of-pair-tests: Likewise.
42649         * modules/unictype/property-line-separator-tests: Likewise.
42650         * modules/unictype/property-logical-order-exception-tests: Likewise.
42651         * modules/unictype/property-lowercase-tests: Likewise.
42652         * modules/unictype/property-math-tests: Likewise.
42653         * modules/unictype/property-non-break-tests: Likewise.
42654         * modules/unictype/property-not-a-character-tests: Likewise.
42655         * modules/unictype/property-numeric-tests: Likewise.
42656         * modules/unictype/property-other-alphabetic-tests: Likewise.
42657         * modules/unictype/property-other-default-ignorable-code-point-tests:
42658         Likewise.
42659         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
42660         * modules/unictype/property-other-id-continue-tests: Likewise.
42661         * modules/unictype/property-other-id-start-tests: Likewise.
42662         * modules/unictype/property-other-lowercase-tests: Likewise.
42663         * modules/unictype/property-other-math-tests: Likewise.
42664         * modules/unictype/property-other-uppercase-tests: Likewise.
42665         * modules/unictype/property-paired-punctuation-tests: Likewise.
42666         * modules/unictype/property-paragraph-separator-tests: Likewise.
42667         * modules/unictype/property-pattern-syntax-tests: Likewise.
42668         * modules/unictype/property-pattern-white-space-tests: Likewise.
42669         * modules/unictype/property-private-use-tests: Likewise.
42670         * modules/unictype/property-punctuation-tests: Likewise.
42671         * modules/unictype/property-quotation-mark-tests: Likewise.
42672         * modules/unictype/property-radical-tests: Likewise.
42673         * modules/unictype/property-sentence-terminal-tests: Likewise.
42674         * modules/unictype/property-soft-dotted-tests: Likewise.
42675         * modules/unictype/property-space-tests: Likewise.
42676         * modules/unictype/property-terminal-punctuation-tests: Likewise.
42677         * modules/unictype/property-test-tests: Likewise.
42678         * modules/unictype/property-titlecase-tests: Likewise.
42679         * modules/unictype/property-unassigned-code-value-tests: Likewise.
42680         * modules/unictype/property-unified-ideograph-tests: Likewise.
42681         * modules/unictype/property-uppercase-tests: Likewise.
42682         * modules/unictype/property-variation-selector-tests: Likewise.
42683         * modules/unictype/property-white-space-tests: Likewise.
42684         * modules/unictype/property-xid-continue-tests: Likewise.
42685         * modules/unictype/property-xid-start-tests: Likewise.
42686         * modules/unictype/property-zero-width-tests: Likewise.
42687         * modules/unictype/scripts-tests: Likewise.
42688         * modules/unictype/syntax-c-ident-tests: Likewise.
42689         * modules/unictype/syntax-c-whitespace-tests: Likewise.
42690         * modules/unictype/syntax-java-ident-tests: Likewise.
42691         * modules/unictype/syntax-java-whitespace-tests: Likewise.
42692         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
42693         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
42694         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
42695         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
42696         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
42697         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
42698         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
42699         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
42700         * modules/uniname/uniname-tests: Likewise.
42701         * modules/uninorm/canonical-decomposition-tests: Likewise.
42702         * modules/uninorm/compat-decomposition-tests: Likewise.
42703         * modules/uninorm/composition-tests: Likewise.
42704         * modules/uninorm/decomposing-form-tests: Likewise.
42705         * modules/uninorm/decomposition-tests: Likewise.
42706         * modules/uninorm/filter-tests: Likewise.
42707         * modules/uninorm/nfc-tests: Likewise.
42708         * modules/uninorm/nfd-tests: Likewise.
42709         * modules/uninorm/nfkc-tests: Likewise.
42710         * modules/uninorm/nfkd-tests: Likewise.
42711         * modules/uninorm/u8-normcmp-tests: Likewise.
42712         * modules/uninorm/u8-normcoll-tests: Likewise.
42713         * modules/uninorm/u16-normcmp-tests: Likewise.
42714         * modules/uninorm/u16-normcoll-tests: Likewise.
42715         * modules/uninorm/u32-normcmp-tests: Likewise.
42716         * modules/uninorm/u32-normcoll-tests: Likewise.
42717         * modules/unistdio/u8-asnprintf-tests: Likewise.
42718         * modules/unistdio/u8-vasnprintf-tests: Likewise.
42719         * modules/unistdio/u8-vasprintf-tests: Likewise.
42720         * modules/unistdio/u8-vsnprintf-tests: Likewise.
42721         * modules/unistdio/u8-vsprintf-tests: Likewise.
42722         * modules/unistdio/u16-asnprintf-tests: Likewise.
42723         * modules/unistdio/u16-vasnprintf-tests: Likewise.
42724         * modules/unistdio/u16-vasprintf-tests: Likewise.
42725         * modules/unistdio/u16-vsnprintf-tests: Likewise.
42726         * modules/unistdio/u16-vsprintf-tests: Likewise.
42727         * modules/unistdio/u32-asnprintf-tests: Likewise.
42728         * modules/unistdio/u32-vasnprintf-tests: Likewise.
42729         * modules/unistdio/u32-vasprintf-tests: Likewise.
42730         * modules/unistdio/u32-vsnprintf-tests: Likewise.
42731         * modules/unistdio/u32-vsprintf-tests: Likewise.
42732         * modules/unistdio/ulc-asnprintf-tests: Likewise.
42733         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
42734         * modules/unistdio/ulc-vasprintf-tests: Likewise.
42735         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
42736         * modules/unistdio/ulc-vsprintf-tests: Likewise.
42737         * modules/unistr/u8-check-tests: Likewise.
42738         * modules/unistr/u8-chr-tests: Likewise.
42739         * modules/unistr/u8-cmp-tests: Likewise.
42740         * modules/unistr/u8-cmp2-tests: Likewise.
42741         * modules/unistr/u8-cpy-alloc-tests: Likewise.
42742         * modules/unistr/u8-cpy-tests: Likewise.
42743         * modules/unistr/u8-mblen-tests: Likewise.
42744         * modules/unistr/u8-mbsnlen-tests: Likewise.
42745         * modules/unistr/u8-mbtouc-tests: Likewise.
42746         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
42747         * modules/unistr/u8-mbtoucr-tests: Likewise.
42748         * modules/unistr/u8-move-tests: Likewise.
42749         * modules/unistr/u8-next-tests: Likewise.
42750         * modules/unistr/u8-prev-tests: Likewise.
42751         * modules/unistr/u8-set-tests: Likewise.
42752         * modules/unistr/u8-stpcpy-tests: Likewise.
42753         * modules/unistr/u8-stpncpy-tests: Likewise.
42754         * modules/unistr/u8-strcat-tests: Likewise.
42755         * modules/unistr/u8-strcmp-tests: Likewise.
42756         * modules/unistr/u8-strcoll-tests: Likewise.
42757         * modules/unistr/u8-strcpy-tests: Likewise.
42758         * modules/unistr/u8-strdup-tests: Likewise.
42759         * modules/unistr/u8-strlen-tests: Likewise.
42760         * modules/unistr/u8-strmblen-tests: Likewise.
42761         * modules/unistr/u8-strmbtouc-tests: Likewise.
42762         * modules/unistr/u8-strncat-tests: Likewise.
42763         * modules/unistr/u8-strncmp-tests: Likewise.
42764         * modules/unistr/u8-strncpy-tests: Likewise.
42765         * modules/unistr/u8-strnlen-tests: Likewise.
42766         * modules/unistr/u8-to-u16-tests: Likewise.
42767         * modules/unistr/u8-to-u32-tests: Likewise.
42768         * modules/unistr/u8-uctomb-tests: Likewise.
42769         * modules/unistr/u16-check-tests: Likewise.
42770         * modules/unistr/u16-chr-tests: Likewise.
42771         * modules/unistr/u16-cmp-tests: Likewise.
42772         * modules/unistr/u16-cmp2-tests: Likewise.
42773         * modules/unistr/u16-cpy-alloc-tests: Likewise.
42774         * modules/unistr/u16-cpy-tests: Likewise.
42775         * modules/unistr/u16-mblen-tests: Likewise.
42776         * modules/unistr/u16-mbsnlen-tests: Likewise.
42777         * modules/unistr/u16-mbtouc-tests: Likewise.
42778         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
42779         * modules/unistr/u16-mbtoucr-tests: Likewise.
42780         * modules/unistr/u16-move-tests: Likewise.
42781         * modules/unistr/u16-next-tests: Likewise.
42782         * modules/unistr/u16-prev-tests: Likewise.
42783         * modules/unistr/u16-set-tests: Likewise.
42784         * modules/unistr/u16-stpcpy-tests: Likewise.
42785         * modules/unistr/u16-stpncpy-tests: Likewise.
42786         * modules/unistr/u16-strcat-tests: Likewise.
42787         * modules/unistr/u16-strcmp-tests: Likewise.
42788         * modules/unistr/u16-strcoll-tests: Likewise.
42789         * modules/unistr/u16-strcpy-tests: Likewise.
42790         * modules/unistr/u16-strdup-tests: Likewise.
42791         * modules/unistr/u16-strlen-tests: Likewise.
42792         * modules/unistr/u16-strmblen-tests: Likewise.
42793         * modules/unistr/u16-strmbtouc-tests: Likewise.
42794         * modules/unistr/u16-strncat-tests: Likewise.
42795         * modules/unistr/u16-strncmp-tests: Likewise.
42796         * modules/unistr/u16-strncpy-tests: Likewise.
42797         * modules/unistr/u16-strnlen-tests: Likewise.
42798         * modules/unistr/u16-to-u32-tests: Likewise.
42799         * modules/unistr/u16-to-u8-tests: Likewise.
42800         * modules/unistr/u16-uctomb-tests: Likewise.
42801         * modules/unistr/u32-check-tests: Likewise.
42802         * modules/unistr/u32-chr-tests: Likewise.
42803         * modules/unistr/u32-cmp-tests: Likewise.
42804         * modules/unistr/u32-cmp2-tests: Likewise.
42805         * modules/unistr/u32-cpy-alloc-tests: Likewise.
42806         * modules/unistr/u32-cpy-tests: Likewise.
42807         * modules/unistr/u32-mblen-tests: Likewise.
42808         * modules/unistr/u32-mbsnlen-tests: Likewise.
42809         * modules/unistr/u32-mbtouc-tests: Likewise.
42810         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
42811         * modules/unistr/u32-mbtoucr-tests: Likewise.
42812         * modules/unistr/u32-move-tests: Likewise.
42813         * modules/unistr/u32-next-tests: Likewise.
42814         * modules/unistr/u32-prev-tests: Likewise.
42815         * modules/unistr/u32-set-tests: Likewise.
42816         * modules/unistr/u32-stpcpy-tests: Likewise.
42817         * modules/unistr/u32-stpncpy-tests: Likewise.
42818         * modules/unistr/u32-strcat-tests: Likewise.
42819         * modules/unistr/u32-strcmp-tests: Likewise.
42820         * modules/unistr/u32-strcoll-tests: Likewise.
42821         * modules/unistr/u32-strcpy-tests: Likewise.
42822         * modules/unistr/u32-strdup-tests: Likewise.
42823         * modules/unistr/u32-strlen-tests: Likewise.
42824         * modules/unistr/u32-strmblen-tests: Likewise.
42825         * modules/unistr/u32-strmbtouc-tests: Likewise.
42826         * modules/unistr/u32-strncat-tests: Likewise.
42827         * modules/unistr/u32-strncmp-tests: Likewise.
42828         * modules/unistr/u32-strncpy-tests: Likewise.
42829         * modules/unistr/u32-strnlen-tests: Likewise.
42830         * modules/unistr/u32-to-u16-tests: Likewise.
42831         * modules/unistr/u32-to-u8-tests: Likewise.
42832         * modules/unistr/u32-uctomb-tests: Likewise.
42833         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
42834         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
42835         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
42836         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
42837         * modules/uniwidth/u8-strwidth-tests: Likewise.
42838         * modules/uniwidth/u8-width-tests: Likewise.
42839         * modules/uniwidth/u16-strwidth-tests: Likewise.
42840         * modules/uniwidth/u16-width-tests: Likewise.
42841         * modules/uniwidth/u32-strwidth-tests: Likewise.
42842         * modules/uniwidth/u32-width-tests: Likewise.
42843         * modules/uniwidth/width-tests: Likewise.
42845 2010-05-18  Richard Jones  <rjones@redhat.com>
42847         doc: users.txt: list hivex
42848         * users.txt: Add hivex.
42850 2010-05-18  Richard Jones  <rjones@redhat.com>
42852         doc: users.txt: list febootstrap
42853         * users.txt: Add febootstrap.
42855 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
42857         bootstrap: fix an error when gnulib is not used as a git submodule
42858         * build-aux/bootstrap (gnulib_path): If its length is zero then
42859         assign "gnulib" to it.
42860         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
42862 2010-05-16  Bruno Haible  <bruno@clisp.org>
42864         Avoid autoconf warnings about AM_ICONV.
42865         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
42866         2.64.
42868 2010-05-16  Bruno Haible  <bruno@clisp.org>
42870         absolute-header: Make the macro usable in more situations.
42871         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
42872         from gl_ABSOLUTE_HEADER.
42873         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
42875 2010-05-16  James Youngman  <jay@gnu.org>
42877         doc: update users.txt
42878         * users.txt: Add CSSC.
42880 2010-05-16  Jim Meyering  <meyering@redhat.com>
42882         init.sh: fix an error in the previous change; add more comments
42883         * tests/init.sh: Compare exit code in loop against 9, not 2.
42884         Patch by Bruno Haible.
42885         Make the two tests more similar by adding an empty "then" clause.
42886         Add comments.
42888         init.sh: avoid unnecessary shell re-exec
42889         * tests/init.sh: Improve the re-exec-required check to first test the
42890         current shell.  If it passes the test, do not search for a shell that
42891         does pass, and do not re-exec.  This test is particularly contorted to
42892         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
42893         of $(...) evokes a syntax error and causes immediate shell exit with
42894         status 2.  Bruno Haible reported that the re-exec made it impossible
42895         to single-step through any init.sh-using script.
42897 2010-05-16  Bruno Haible  <bruno@clisp.org>
42899         Fix collision between gnulib's and libintl's printf replacements.
42900         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
42901         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
42902         (printf): When using GNU C, map the __printf__ function to rpl_printf
42903         via __asm__. When not using GNU C, define rpl_printf instead of
42904         __printf__.
42905         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
42906         commit.
42907         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
42908         commit.
42909         * m4/asm-underscore.m4: New file.
42910         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
42911         * modules/stdio (Files): Add m4/asm-underscore.m4.
42912         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
42913         Reported by Ben Pfaff.
42915 2010-05-16  Bruno Haible  <bruno@clisp.org>
42917         verify: Avoid skipping the test on openSUSE 11.0.
42918         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
42920 2010-05-13  Bruno Haible  <bruno@clisp.org>
42922         Avoid useless warnings from G++.
42923         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
42924         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
42925         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
42927 2010-05-11  Jim Meyering  <meyering@redhat.com>
42929         maint.mk: tweak preceding change
42930         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
42931         regexps tighter by anchoring at EOL, and make the new group "shy"
42932         for slightly decreased overhead.
42934 2010-05-11  Eric Blake  <eblake@redhat.com>
42936         maint.mk: gnulib doesn't guarantee NSIG
42937         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
42939 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
42941         test-pwrite.c: Remove unused variable declaration.
42942         * tests/test-pwrite.c (main): Remove read_buf declaration.
42944         Remove useless test-pwrite.sh file.
42945         * tests/test-pwrite.sh: Delete file.
42946         * modules/pwrite-tests: Remove references.
42947         Reported by Bruno Haible.
42949 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
42951         init.sh: fix a typo
42952         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
42954 2010-05-10  Jim Meyering  <meyering@redhat.com>
42956         maint.mk: avoid using a temporary file in the always-defined-macros check
42957         * top/maint.mk (.re-defmac): Remove rule.
42958         (gl_trap_): Remove definition.
42959         (sc_prohibit_always-defined_macros): Rewrite not to create and
42960         depend on a temporary file.  Instead, depend on GNU grep's ability
42961         to read a list of regular expressions from stdin when given "-f -".
42963 2010-05-09  Bruno Haible  <bruno@clisp.org>
42965         Update to GNU gettext 0.18, part 1.
42966         * m4/gettext.m4: Update to GNU gettext 0.18.
42967         * m4/intl.m4: Likewise.
42968         * m4/po.m4: Likewise.
42969         * modules/gettext (Files): Add m4/fcntl-o.m4.
42970         (configure.ac): Require gettext infrastructure from version 0.18.
42972 2010-05-09  Jim Meyering  <meyering@redhat.com>
42974         init.sh: enable MALLOC_PERTURB_
42975         * tests/init.sh: Enable glibc's malloc-perturbing option.
42977         maint.mk: improve sc_cross_check_PATH_usage_in_tests
42978         With my recent change in init.sh from the two-line form:
42979             -#   : ${srcdir=.}
42980             -#   . "$srcdir/init.sh"; path_prepend_ .
42981             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
42982         I noticed that using the one-line form would cause this test
42983         to fail with a false-positive, or to stop working altogether,
42984         depending on whether help-version changed or all the tests did.
42985         * top/maint.mk (_hv_regex): Remove this definition.
42986         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
42987         (_hv_regex_strong): Use a stronger regex to check for conformance.
42988         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
42989         Give a separate diagnostic for lack of conforming use.
42991         maint.mk: prohibit definition of symbols defined by gnulib
42992         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
42993         definition of symbols defined by gnulib.
42995 2010-05-09  Bruno Haible  <bruno@clisp.org>
42997         acl: Avoid test failure on Cygwin-hosted mingw.
42998         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
43000 2010-05-09  Bruno Haible  <bruno@clisp.org>
43002         error: Use system's fcntl function.
43003         * lib/error.c (fcntl): Undefine.
43005 2010-05-09  Jim Meyering  <meyering@redhat.com>
43007         verify: adjust formatting to be more consistent
43008         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
43009         argument-list '('s, and after one comma.
43011 2010-05-09  Bruno Haible  <bruno@clisp.org>
43013         error: More reliable output on mingw.
43014         * lib/error.c: Include <windows.h>.
43015         (is_open): New function.
43016         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
43017         defined.
43019 2010-05-09  Bruno Haible  <bruno@clisp.org>
43021         vasnprintf: Fix syntax errors in libintl build on mingw.
43022         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
43023         pad_ourselves and prec_ourselves after use.
43025 2010-05-08  Bruno Haible  <bruno@clisp.org>
43027         * lib/config.charset: Update comments for Cygwin 1.7.
43028         * lib/localcharset.c: Likewise.
43030 2010-05-07  Jim Meyering  <meyering@redhat.com>
43032         init.sh: improve comments
43033         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
43034         . "${srcdir=.}/init.sh"; path_prepend_ .
43035         Add a note about path_prepend_ and the alternative of using
43036         TESTS_ENVIRONMENT.
43038 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
43040         exclude: Unescape hashed patterns in wildcard mode.
43041         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
43042         to the hash list.
43043         * tests/test-exclude8.sh: New test case.
43044         * modules/exclude-tests: Add new test.
43046 2010-05-05  Eric Blake  <eblake@redhat.com>
43048         verify: automate tests
43049         * modules/verify-tests: New module.
43050         * tests/test-verify.sh: New file.
43051         * tests/test-verify.c: Guard each negative test with a unique id.
43052         Also avoid warning about unused left hand of comma expressions.
43054 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
43056         Further improvements to verify.h, suggested by Eric Blake.
43057         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
43058         the GL_* versions, to avoid collision with OpenGL.
43059         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
43060         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
43061         than testing merely whether it's defined.
43063         Modify verify.h to pacify gcc -Wredundant_decls.
43064         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
43065         These use the prefix "GL_" since they're likely to be useful elsewhere.
43066         We may need to break them out into a different .h file.
43067         (__COUNTER__): Define to 0 if the compiler doesn't support it.
43068         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
43069         of verify_function__.
43071 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
43073         Tests for module pwrite.
43074         * modules/pwrite-tests: New file.
43075         * tests/test-pwrite.sh: New file.
43076         * tests/test-pwrite.c: New file.
43078         New module pwrite.
43079         * lib/unistd.in.h (pwrite): New declaration.
43080         * lib/pwrite.c: New file, from glibc with modifications.
43081         * m4/pwrite.m4: New file.
43082         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
43083         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
43084         REPLACE_PWRITE.
43085         * modules/pwrite: New file.
43086         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
43087         REPLACE_PWRITE.
43088         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
43089         * doc/posix-functions/pwrite.texi: Mention the new module.
43091 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
43093         pread: Update documentation.
43094         * doc/posix-functions/pread.texi: Mention the 'pread' module.
43096 2010-05-04  Eric Blake  <eblake@redhat.com>
43098         docs: update cygwin progress
43099         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
43100         this bug.
43101         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
43102         Added in cygwin 1.7.2.
43103         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
43104         Likewise.
43105         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
43106         Likewise.
43107         * doc/glibc-functions/dup3.texi (dup3): Likewise.
43108         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
43109         * doc/glibc-functions/accept4.texi (accept4): Likewise.
43110         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
43111         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
43112         Mention nproc module.
43113         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
43114         bug in cygwin 1.7.5 addition.
43115         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
43116         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
43117         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
43118         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
43119         1.7.5.
43120         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
43121         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
43122         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
43123         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
43124         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
43125         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
43126         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
43127         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
43128         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
43129         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
43130         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
43131         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
43132         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
43133         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
43134         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
43135         Likewise.
43136         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
43137         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
43138         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
43139         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
43140         Likewise.
43141         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
43142         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
43143         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
43144         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
43145         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
43146         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
43147         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
43148         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
43149         Likewise.
43150         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
43151         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
43152         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
43153         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
43154         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
43155         Likewise.
43156         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
43157         Likewise.
43158         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
43159         Likewise.
43160         * doc/glibc-functions/xdrrec_endofrecord.texi
43161         (xdrrec_endofrecord): Likewise.
43162         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
43163         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
43164         Likewise.
43165         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
43166         Likewise.
43168 2010-05-04  Jim Meyering  <meyering@redhat.com>
43170         gendocs.sh: make its "-s FILE" option more useful
43171         * build-aux/gendocs.sh: When honoring the -s FILE option, update
43172         $PACKAGE to reflect the probably-different basename of "FILE".
43174 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
43176         bootstrap: don't ignore download_po_files failure
43177         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
43178         failure.
43180 2010-05-03  Jim Meyering  <meyering@redhat.com>
43182         maint.mk: allow to pass options to gendocs.sh
43183         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
43184         (gendocs_options_): New overridable variable.
43186         gnu-web-doc-update: don't ignore configure or build failure
43187         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
43189         announce-gen: backslash-escape '@'s in --help output
43190         * build-aux/announce-gen: Fix syntax errors.
43192         maint.mk, announce-gen: allow project-specific announcement mail headers
43193         * top/maint.mk (translation_project_): Define default.
43194         (announcement_Cc_, announcement_mail_headers_): Likewise.
43195         (announcement): Invoke announce-gen with new --mail-headers option.
43196         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
43198         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
43199         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
43200         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
43201         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
43202         line in the "err2" output file when running "make check" in verbose
43203         mode (i.e., with set -x enabled).
43205 2010-05-03  Bruno Haible  <bruno@clisp.org>
43207         wctob: Fix for weird platforms.
43208         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
43209         argument value.
43211 2010-05-03  Jim Meyering  <meyering@redhat.com>
43213         maint.mk: prohibit unwarranted use of <strings.h>
43214         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
43215         strings.h in a file that does not also use strcasecmp, strncasecmp,
43216         ffs or ffsll.
43218         maint.mk: remove obsolete comments
43219         * top/maint.mk: Remove stale, commented-out rules.
43221 2010-05-02  Bruno Haible  <bruno@clisp.org>
43223         wcwidth: Declare also when it's aliased.
43224         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
43225         macro.
43227 2010-05-02  Bruno Haible  <bruno@clisp.org>
43229         Fix regression from 2010-04-25.
43230         * gnulib-tool (func_modules_transitive_closure): Check the status of
43231         all modules, not only of the tests that are of the form foo-tests where
43232         foo is a module.
43234 2010-05-02  Bruno Haible  <bruno@clisp.org>
43236         wctob: Work around nasty Cygwin 1.7.2 bug.
43237         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
43238         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
43240 2010-05-01  Bruno Haible  <bruno@clisp.org>
43242         fpurge: Sharper test.
43243         * tests/test-fpurge.c (main): Add one more ftell check.
43244         * modules/fpurge-tests (Depends-on): Add ftell.
43245         Suggested by Eric Blake.
43247 2010-05-01  Bruno Haible  <bruno@clisp.org>
43249         ftello: Another test.
43250         * tests/test-ftello3.c: New file.
43251         * modules/ftello-tests (Files): Add it.
43252         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
43253         MOSTLYCLEANFILES.
43255         ftell: Another test.
43256         * tests/test-ftell3.c: New file.
43257         * modules/ftell-tests (Files): Add it.
43258         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
43259         MOSTLYCLEANFILES.
43261 2010-05-01  Bruno Haible  <bruno@clisp.org>
43263         ftell, ftello: Work around Solaris bug.
43264         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
43265         * lib/ftello.c: Include stdio-impl.h.
43266         (ftello): On Solaris, when _IOWRT is set, compute the result without
43267         looking at _IOREAD.
43268         * modules/ftello (Files): Add lib/stdio-impl.h.
43269         * doc/posix-functions/ftell.texi: Mention Solaris bug.
43270         * doc/posix-functions/ftello.texi: Likewise.
43271         Reported by Eric Blake.
43273 2010-05-01  Bruno Haible  <bruno@clisp.org>
43275         freading: Adapt to special meaning of _IOREAD flag on Solaris.
43276         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
43277         the _IOWRT flag is also set.
43279 2010-05-01  Bruno Haible  <bruno@clisp.org>
43281         Fix doc about a HP-UX stdio bug.
43282         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
43283         * doc/posix-functions/ftello.texi: Likewise.
43285 2010-05-01  Bruno Haible  <bruno@clisp.org>
43287         lseek test: Fix failure on Solaris.
43288         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
43289         output.
43291 2010-04-30  Jim Meyering  <meyering@redhat.com>
43293         bootstrap: don't ignore failure to generate po*/Makevars
43294         * build-aux/bootstrap (with_gettext): Don't ignore failure
43295         to create po/Makevars or runtime-po/Makevars.
43297 2010-04-29  Eric Blake  <eblake@redhat.com>
43299         headers: relax license to LGPLv2+
43300         * modules/fcntl-h (License): Relax license.
43301         * modules/getopt-posix (License): Likewise.
43302         * modules/locale (License): Likewise.
43303         * modules/math (License): Likewise.
43304         * modules/pty (License): Likewise.
43305         * modules/sched (License): Likewise.
43306         * modules/search (License): Likewise.
43307         * modules/spawn (License): Likewise.
43308         * modules/stdarg (License): Likewise.
43309         * modules/sysexits (License): Likewise.
43311 2010-04-29  Jim Meyering  <meyering@redhat.com>
43313         inttypes: relax license to LGPLv2+
43314         * modules/inttypes (License): Relax license.
43316 2010-04-29  Simon Josefsson  <simon@josefsson.org>
43318         * top/maint.mk (indent): Run twice to produce idempotent results.
43320 2010-04-28  Bruno Haible  <bruno@clisp.org>
43322         getdate: Generate getdate.c in the source directory.
43323         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
43324         MOSTLYCLEANFILES.
43325         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
43327 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
43329         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
43330         is not declared as a const *; avoid warnings in that case.
43332 2010-04-28  Eric Blake  <eblake@redhat.com>
43334         canonicalize-lgpl: avoid compiler warning
43335         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
43336         declaration' / 'extraneous semicolon' warning with some compilers.
43337         Reported by Andreas Gruenbacher.
43339 2010-04-28  Jim Meyering  <meyering@redhat.com>
43341         init.sh: ensure a more reliable exit status when exiting via trap
43342         * tests/init.sh (setup_): Don't rely on $? in signal handler.
43343         Inspired by patches from Dmitry V. Levin.
43344         Also trap on signal 3 (SIGQUIT).
43346 2010-04-27  Bruno Haible  <bruno@clisp.org>
43348         Update doc about utimes().
43349         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
43350         'utimens' module.
43351         Reported by Andreas Gruenbacher <agruen@suse.de>.
43353 2010-04-27  Eric Blake  <eblake@redhat.com>
43355         full-read, full-write: relax license
43356         * modules/full-read (License): Drop to LGPLv2+.
43357         * modules/full-write (License): Likewise.
43358         * modules/safe-read (License): Likewise.
43359         * modules/safe-write (License): Likewise.
43361         pthread: mention library for linking
43362         * modules/pthread (Link): Mention $(LIB_PTHREAD).
43364 2010-04-27  Jim Meyering  <meyering@redhat.com>
43366         maint.mk: fix a bug introduced in last change
43367         * top/maint.mk (gl_assured_headers_): Now that all names are on
43368         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
43369         is not anchored to end of word, it should be adequate.
43371         maint.mk: avoid side-effect in latest syntax-check
43372         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
43373         to run commands via $(shell...), and hence to incur cost only when
43374         the new rule is actually run.
43376         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
43377         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
43378         and use that to create a regexp used to detect all #if HAVE_..._H uses.
43379         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
43380         (gl_assured_headers_, az_, AZ_): Define.
43381         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
43383 2010-04-26  Jim Meyering  <jim@meyering.net>
43384             Bruno Haible  <bruno@clisp.org>
43386         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
43387         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
43388         Prompted by an exchange with Gilles Espinasse.
43390 2010-04-26  Jim Meyering  <meyering@redhat.com>
43392         git-version-gen: aesthetic tweak
43393         * build-aux/git-version-gen: Use "$nl" rather than a literal,
43394         so that the command remains on a single line.
43396 2010-04-26  Eric Blake  <eblake@redhat.com>
43398         git-version-gen: allow use on EBCDIC hosts
43399         * build-aux/git-version-gen (dirty): Use literal rather than tying
43400         ourselves to ascii.
43401         Reported by Steve Goetze.
43403 2010-04-25  Bruno Haible  <bruno@clisp.org>
43405         netdb: Add support for GNULIB_POSIXCHECK.
43406         * lib/netdb.in.h: Include warn-on-use.h.
43407         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
43408         functions are used when GNULIB_POSIXCHECK is defined and the
43409         getaddrinfo module is not in use.
43410         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
43411         freeaddrinfo, gai_strerror, getnameinfo are declared.
43412         * modules/netdb (Depends-on): Add warn-on-use.
43413         (Makefile.am): Include warn-on-use.h in netdb.h.
43415 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
43417         build: avoid "make check" failure without .git/ directory
43418         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
43419         there is no .git/ directory.
43421 2010-04-25  Bruno Haible  <bruno@clisp.org>
43423         ptsname: Fix misuse of ttyname_r.
43424         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
43425         of errno.
43427 2010-04-25  Bruno Haible  <bruno@clisp.org>
43429         ttyname_r: Make it work on Solaris 10.
43430         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
43431         if the system function has the POSIX declaration. Test whether the
43432         function fails if the buffer is less than 128 bytes large.
43433         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
43434         system's ttyname_r function. Provide a reasonably large buffer.
43435         * modules/ttyname_r (Depends-on): Add extensions.
43436         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
43438 2010-04-25  Bruno Haible  <bruno@clisp.org>
43440         Use the 'extensions' module for some more functions on Solaris.
43441         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
43442         module.
43443         * doc/posix-functions/ctime_r.texi: Likewise.
43444         * doc/posix-functions/getgrgid_r.texi: Likewise.
43445         * doc/posix-functions/getgrnam_r.texi: Likewise.
43446         * doc/posix-functions/getpwnam_r.texi: Likewise.
43447         * doc/posix-functions/getpwuid_r.texi: Likewise.
43448         * doc/posix-functions/readdir_r.texi: Likewise.
43449         * doc/posix-functions/sigwait.texi: Likewise.
43450         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
43451         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
43453 2010-04-25  Bruno Haible  <bruno@clisp.org>
43455         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
43456         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
43457         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
43458         * lib/ttyname_r.c: Include <limits.h>.
43459         (ttyname_r): Define using the system's ttyname_r function, if it exists
43460         and not on Solaris.
43461         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
43462         set.
43463         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
43464         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
43465         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
43466         Reported by Simon Josefsson.
43468 2010-04-25  Bruno Haible  <bruno@clisp.org>
43470         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
43471         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
43472         * doc/posix-functions/ctime_r.texi: Likewise.
43473         * doc/posix-functions/getgrgid_r.texi: Likewise.
43474         * doc/posix-functions/getgrnam_r.texi: Likewise.
43475         * doc/posix-functions/getlogin_r.texi: Likewise.
43476         * doc/posix-functions/getpwnam_r.texi: Likewise.
43477         * doc/posix-functions/getpwuid_r.texi: Likewise.
43478         * doc/posix-functions/readdir_r.texi: Likewise.
43479         * doc/posix-functions/sigwait.texi: Likewise.
43480         * doc/posix-functions/ttyname_r.texi: Likewise.
43481         Reported by Simon Josefsson.
43483 2010-04-25  Bruno Haible  <bruno@clisp.org>
43485         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
43486         * gnulib-tool (func_usage): Document that --with-*-tests options apply
43487         also to --create-testdir.
43488         (func_acceptable): Don't consider the status of *-tests modules here.
43489         (func_modules_transitive_closure): Consider it here, before including a
43490         test module.
43491         (func_import, func_create_testdir): Set inc_all_direct_tests,
43492         inc_all_indirect_tests.
43493         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
43494         --create-testdir and --create-megatestdir.
43496 2010-04-25  Bruno Haible  <bruno@clisp.org>
43498         gnulib-tool: Add --without-*-tests options.
43499         * gnulib-tool (func_usage): Document the --without-*-tests options.
43500         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
43501         excl_unportable_tests): New variables.
43502         Fail if they are specified with --import or --update.
43503         (func_acceptable): Respect the excl_*_tests variables.
43504         (func_import): Set the excl_*_tests variables to empty.
43506 2010-04-25  Simon Josefsson  <simon@josefsson.org>
43507             Bruno Haible  <bruno@clisp.org>
43509         Work around a MacOS X 10.4 bug with openpty.
43510         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
43511         * tests/test-openpty.c (main): Close the master side explicitly.
43513 2010-04-25  Bruno Haible  <bruno@clisp.org>
43515         strnlen: Fix a C++ test error on MacOS X and Solaris.
43516         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
43517         the function is not declared.
43518         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
43519         Simon Josefsson.
43521 2010-04-24  Bruno Haible  <bruno@clisp.org>
43523         Avoid a gcc warning.
43524         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
43525         of correct type for %08lx directive.
43526         Reported by Eric Blake.
43528 2010-04-24  Bruno Haible  <bruno@clisp.org>
43530         vasnprintf: Correct errno value in case of out-of-memory.
43531         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
43532         or sprintf. Use the errno value from SNPRINTF or sprintf.
43533         Reported by Ian Beckwith <ianb@erislabs.net>.
43535 2010-04-24  Bruno Haible  <bruno@clisp.org>
43537         ansi-c++-opt: Find correct compiler when cross-compiling.
43538         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
43539         AC_CHECK_PROGS.
43540         Reported by Simon Josefsson.
43542 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
43544         vc-list-files: Add support for subversion
43545         * build-aux/vc-list-files: Use "svn list" to generate the list of
43546         files controlled by subversion.
43548 2010-04-23  Jim Meyering  <meyering@redhat.com>
43550         vc-list-files tests: convert to use init.sh
43551         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
43552         path_prepend_.
43553         Use Exit, not exit.
43554         Use skip_ rather than open coding it.
43555         Remove trap set-up and compare definitions.
43556         * tests/test-vc-list-files-git.sh: Likewise.
43557         * modules/vc-list-files-tests (Files): Add tests/init.sh.
43559 2010-04-22  Simon Josefsson  <simon@josefsson.org>
43561         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
43562         backup files.
43564 2010-04-21  Simon Josefsson  <simon@josefsson.org>
43566         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
43568 2010-04-20  Eric Blake  <eblake@redhat.com>
43570         tests: be robust to ignored SIGPIPE
43571         * tests/test-select-in.sh: Consume all output.
43572         * tests/test-lseek.sh: Check correct exit status, while avoiding
43573         EPIPE.
43575 2010-04-20  Simon Josefsson  <simon@josefsson.org>
43576             Bruno Haible  <bruno@clisp.org>
43578         visibility: Don't use -fvisibility if it leads to a warning.
43579         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
43580         yes, don't pretend that visibility works if it leads to a warning.
43581         Reported by Mike Gran <spk121@yahoo.com>.
43583 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
43585         * build-aux/bootstrap: Use "git -h" for testing for supported options
43586         instead of "git --help".  The short-form option only shows a summary,
43587         and doesn't layout the full man page.  Grep for the full option name
43588         in the summary, too.
43590 2010-04-19  Bruno Haible  <bruno@clisp.org>
43592         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
43593         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
43594         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
43595         mention of RELOCATABLE_STRIP.
43596         Reported by Sylvain Beucler <beuc@beuc.net>.
43598 2010-04-19  Bruno Haible  <bruno@clisp.org>
43600         * lib/diffseq.h: Fix typo in comment.
43601         Reported by Eric Blake.
43603 2010-04-19  Bruno Haible  <bruno@clisp.org>
43605         ioctl: Move autoconf macro to a .m4 file.
43606         * m4/ioctl.m4: New file, extracted from modules/ioctl.
43607         * modules/ioctl (Files): Add it.
43608         (configure.ac): Simply invoke gl_FUNC_IOCTL.
43609         Reported by Ian Beckwith <ianb@erislabs.net>.
43611 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
43612             Bruno Haible  <bruno@clisp.org>
43614         diffseq: Accommodate use-case with abstract arrays.
43615         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
43616         is not defined.
43617         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
43618         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
43620 2010-04-18  Bruno Haible  <bruno@clisp.org>
43622         * doc/posix-headers/stdbool.texi: More precise wording.
43624 2010-04-17  Jim Meyering  <meyering@redhat.com>
43626         maint.mk: use gnu-style indentation in an embedded perl script
43627         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
43628         Rename variable: s/two/last_two_bytes/
43630 2010-04-16  Eric Blake  <eblake@redhat.com>
43632         test-stdbool: skip test that fails with Solaris CC
43633         * tests/test-stdbool.c (f): Skip test that causes compilation
43634         error under buggy C++ compiler.
43635         * lib/stdbool.in.h: Document the limitation.
43636         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
43638         setenv: allow compilation with C++
43639         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
43640         register keyword.
43642         stdint: allow test to pass with C++
43643         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
43645         getopt: allow compilation with C++
43646         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
43647         struct.
43648         * lib/getopt.c (_getopt_internal_r): Use correct type.
43649         Reported by Dagobert Michelson, via Joel E. Denny.
43651 2010-04-16  Bruno Haible  <bruno@clisp.org>
43653         Override netdb.h always.
43654         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
43655         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
43656         Reported by Ludovic Courtès <ludo@gnu.org>.
43658 2010-04-15  Bruno Haible  <bruno@clisp.org>
43660         openpty: Fix mistake from 2010-03-21.
43661         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
43662         Reported by Simon Josefsson.
43664 2010-04-15  Eric Blake  <eblake@redhat.com>
43666         test-forkpty: fix expected signature
43667         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
43668         Reported by Simon Josefsson.
43670 2010-04-15  Jim Meyering  <meyering@redhat.com>
43672         maint.mk: texinfo_suffix_re_: correct the default regexp
43673         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
43675         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
43676         make it configurable via texinfo_suffix_re_.
43678 2010-04-14  Eric Blake  <eblake@redhat.com>
43680         strtok_r: relax license to LGPLv2+
43681         * modules/strtok_r (License): Relax license.
43682         Reported by Matthias Bolte.
43684 2010-04-14  Simon Josefsson  <simon@josefsson.org>
43686         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
43687         version 1.4.4 by default instead of requiring the libgcrypt
43688         version used during build.  This makes it possible to use the
43689         application with older but still binary compatible libgcrypt
43690         versions.
43692 2010-04-13  Eric Blake  <eblake@redhat.com>
43694         getopt-gnu: match recent glibc fixes and posix ruling
43695         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
43696         '+' handling, when requesting extensions.
43697         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
43698         'W;' handling.
43699         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
43700         * doc/posix-functions/getopt.texi (getopt): Document this.
43701         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
43702         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
43703         Likewise.
43705         getopt: merge bug fixes from glibc
43706         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
43707         diagnostics.  Honor '+:' correctly.  Reject ';'.
43709         getopt-posix: detect MacOS bug
43710         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
43711         optind when missing a required argument.
43712         * doc/posix-functions/getopt.texi (getopt): Document the bug.
43713         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
43714         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
43715         Likewise.
43717         getopt-posix: avoid spurious failure on Solaris
43718         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
43719         an indicator that setting optind=1 is sufficient for reset.
43721         getopt-posix: avoid spurious failure on FreeBSD
43722         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
43723         in POSIX mode, since the m4 test uses it.
43725         gnulib-tool: silence warning on BSD sh
43726         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
43728 2010-04-13  Jim Meyering  <meyering@redhat.com>
43730         doc: users.txt: GNU patch now uses gnulib
43731         * users.txt: Add patch.
43733 2010-04-12  Jim Meyering  <meyering@redhat.com>
43735         maint.mk: generate more concise timing data for syntax-check rules
43736         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
43737         " done" from each line that reports a syntax-check test duration.
43739 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
43741         git-version-gen: use "git update-index..." rather than "git status"
43742         * build-aux/git-version-gen: Use git update-index --refresh, not
43743         "git status".  With some versions of git, "git status" would fail
43744         to update the index and result in an unwarranted "-dirty" suffix.
43746 2010-04-11  Jim Meyering  <meyering@redhat.com>
43748         openat: correct formatting (no semantic change)
43749         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
43750         Suggested by Bruno Haible.
43752 2010-04-11  Bruno Haible  <bruno@clisp.org>
43754         Stricter declaration checking in testdirs.
43755         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43756         If for_tests is true, augment AM_CPPFLAGS to define
43757         GNULIB_STRICT_CHECKING.
43758         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
43759         GNULIB_STRICT_CHECKING is defined, verify that the function is
43760         declared.
43762 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
43763             Bruno Haible  <bruno@clisp.org>
43765         libunistring: Improve configure output.
43766         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
43767         Don't say "consider installing GNU libunistring" when checking again
43768         with libiconv.
43770 2010-04-11  Bruno Haible  <bruno@clisp.org>
43772         libunistring: Correct value of $LTLIBUNISTRING.
43773         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
43774         correct the value of $LTLIBUNISTRING.
43776 2010-04-11  Bruno Haible  <bruno@clisp.org>
43778         havelib: Add static libraries to LIBS in the right order.
43779         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
43780         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
43782 2010-04-11  Bruno Haible  <bruno@clisp.org>
43784         libunistring: Detect libunistring also when it depends on libiconv.
43785         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
43786         the second AC_LIB_HAVE_LINKFLAGS invocation.
43788 2010-04-11  James Youngman  <jay@gnu.org>
43790         close-stream: declare local scalars to be "const"
43791         * lib/close-stream.c (close_stream): Make boolean variables const
43792         to document the fact that we set but do not change them.
43794 2010-04-11  Bruno Haible  <bruno@clisp.org>
43796         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
43798 2010-04-11  Jim Meyering  <meyering@redhat.com>
43800         maint.mk: don't include dist-check.mk
43801         * top/maint.mk: Remove bogus include directive.
43803         maint.mk: improve empty-line-at-EOF check
43804         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
43805         solution, rather than tail+Perl-based one.  The latter would read
43806         a few kilobytes from the end of each file, and did not handle empty
43807         files properly.
43809         maint.mk: print the elapsed time for each syntax-check rule
43810         * top/maint.mk (sc_m_rules_): Save start time in a file.
43811         (sc_z_rules_): New rules: remove temp file and print elapsed time.
43812         (local-check): Interpose the .z rules
43814 2010-04-11  Jim Meyering  <meyering@redhat.com>
43816         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
43817         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
43818         empty file with one that ends in an empty line.
43820 2010-04-10  Bruno Haible  <bruno@clisp.org>
43822         mkdir: Make it work on mingw64.
43823         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
43824         * lib/mkdir.c: Update comment.
43825         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
43827 2010-04-10  Bruno Haible  <bruno@clisp.org>
43829         Don't override improved macro from newer autoconf.
43830         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
43831         autoconf >= 2.62.
43832         Reported by Joel E. Denny <jdenny@clemson.edu>.
43834 2010-04-10  Jim Meyering  <meyering@redhat.com>
43836         maint.mk: new syntax-check rule: prohibit empty lines at end of file
43837         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
43839         maint.mk: correct a diagnostic
43840         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
43841         in diagnostic; now use $prohibit.
43843 2010-04-10  Bruno Haible  <address@hidden>
43845         fchownat: Fix a C++ test error on Solaris 8.
43846         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
43847         the function does not exist.
43849 2010-04-10  Bruno Haible  <bruno@clisp.org>
43851         vasnprintf: Add more tests.
43852         * tests/test-vasnprintf-posix.c: Include <errno.h>.
43853         (test_function): Test converting an invalid wide string.
43855         vasnprintf: Correct handling of unconvertible wide string arguments.
43856         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
43857         VASNPRINTF.
43858         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
43859         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
43860         smaller than the expected maximum need for the directive. Set errno to
43861         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
43862         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
43863         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
43864         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
43865         * modules/vasnprintf (Files): Add m4/printf.m4.
43866         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
43868 2010-04-10  Bruno Haible  <bruno@clisp.org>
43870         vasnprintf: Fix crash in %ls directive.
43871         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
43872         string is passed as argument to %ls, with no precision and no width.
43873         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
43875 2010-04-10  Bruno Haible  <bruno@clisp.org>
43877         vasnprintf: Fix multiple test failures on mingw.
43878         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
43879         _snprintf, or snwprintf, not _snwprintf.
43881 2010-04-10  Bruno Haible  <bruno@clisp.org>
43883         write: Fix a C++ test error on mingw.
43884         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
43886 2010-04-10  Bruno Haible  <bruno@clisp.org>
43888         vasnprintf test: Reduce code duplication.
43889         * tests/test-vasnprintf.c (test_function): New function, extracted from
43890         test_vasnprintf.
43891         (test_vasnprintf, test_asnprintf): Invoke it.
43893 2010-04-10  Bruno Haible  <bruno@clisp.org>
43895         strnlen: Fix warning in C++ mode on MacOS X.
43896         * lib/string.in.h (strnlen): Use the modern idiom.
43897         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
43898         defining strnlen as a macro already in <config.h>.
43899         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43900         REPLACE_STRNLEN.
43901         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
43902         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
43904 2010-04-08  James Youngman  <jay@gnu.org>
43906         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
43907         the example.
43909 2010-04-09  Jim Meyering  <meyering@redhat.com>
43911         maint.mk: print better diagnostic when there is no $(_hv_file)
43912         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
43913         announce that when $(_hv_file) (aka help-version) does not exist.
43915         init.sh: run tr in the "C" locale to avoid multibyte interpretation
43916         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
43917         not try to interpret its random input bytes.  Jarno Rajahalme reported
43918         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
43919         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
43920         (mktempd_): Likewise, just in case.
43922         ftruncate: add two years to projected module removal date: 2012
43923         * m4/ftruncate.m4: Adjust comments.
43925         ftruncate: mark module as obsolete; even MinGW provides it, now
43926         * modules/ftruncate (Status): Obsolete.
43927         (Notice): Say that.
43928         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
43929         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
43931 2010-04-08  Bruno Haible  <bruno@clisp.org>
43933         Fix side effects from tests-related modules.
43934         * modules/dprintf-posix (Comment): New section.
43935         * modules/fprintf-posix (Comment): Likewise.
43936         * modules/obstack-printf-posix (Comment): Likewise.
43937         * modules/printf-posix (Comment): Likewise.
43938         * modules/snprintf-posix (Comment): Likewise.
43939         * modules/sprintf-posix (Comment): Likewise.
43940         * modules/vasnprintf-posix (Comment): Likewise.
43941         * modules/vasprintf-posix (Comment): Likewise.
43942         * modules/vdprintf-posix (Comment): Likewise.
43943         * modules/vfprintf-posix (Comment): Likewise.
43944         * modules/vprintf-posix (Comment): Likewise.
43945         * modules/vsnprintf-posix (Comment): Likewise.
43946         * modules/vsprintf-posix (Comment): Likewise.
43947         * modules/xprintf-posix (Comment): Likewise.
43948         * modules/xvasprintf-posix (Comment): Likewise.
43949         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
43950         * modules/floorf-tests (Depends-on): Likewise.
43951         * modules/round-tests (Depends-on): Likewise.
43952         * modules/roundf-tests (Depends-on): Likewise.
43953         * modules/trunc-tests (Depends-on): Likewise.
43954         * modules/truncf-tests (Depends-on): Likewise.
43955         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
43956         'fprintf-posix' module is not present.
43957         * tests/test-floorf2.c (check): Likewise.
43958         * tests/test-trunc2.c (check): Likewise.
43959         * tests/test-truncf2.c (check): Likewise.
43960         * tests/test-round2.c (equal): Likewise.
43961         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
43963 2010-04-07  Karl Berry  <karl@gnu.org>
43965         * config/srclist.txt,
43966         * config/srclistvars.sh,
43967         * config/srclist-update: doc fixes.
43969 2010-04-07  Jim Meyering  <meyering@redhat.com>
43971         maint.mk: add a PATH crosschecking syntax-check rule
43972         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
43973         Useful if you use a test like the one in help-version (coreutils,
43974         diffutils, grep, gzip) that ensures $(VERSION) matches what is
43975         printed by prog --version.
43977 2010-04-06  Bruno Haible  <bruno@clisp.org>
43979         Fix link error on mingw.
43980         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
43981         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
43983 2010-04-06  Bruno Haible  <bruno@clisp.org>
43985         Assume rmdir exists.
43986         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
43988 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
43990         doc: update users.txt
43991         * users.txt: Add gcal.
43993 2010-04-06  Jim Meyering  <meyering@redhat.com>
43995         init.sh: simply unset TMPDIR rather than risking env -i
43996         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
43997         although it probably works fine on all Unix-based systems, some
43998         systems (Cygwin?) cannot tolerate a totally cleared environment.
43999         Suggestion from Eric Blake.
44001 2010-04-06  Jim Meyering  <meyering@redhat.com>
44003         init.sh: portability fix: use env's POSIX-specified -i option not -u
44004         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
44005         than unportable env -u.  Solaris 5.11's env lacks support for -u.
44007 2010-04-05  Bruno Haible  <bruno@clisp.org>
44009         btowc: Work around Cygwin 1.7.2 bug.
44010         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
44011         does not map NUL to 0.
44012         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
44014 2010-04-05  Bruno Haible  <bruno@clisp.org>
44016         Make the multithread modules work on Cygwin 1.7.2.
44017         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
44018         imported symbols can be declared weak, so that it returns "no" on
44019         Cygwin 1.7.2.
44021 2010-04-05  Bruno Haible  <bruno@clisp.org>
44023         Use the module 'strncat'.
44024         * modules/unistr/u8-strncat (Depends-on): Add strncat.
44026         Tests for module 'strncat'.
44027         * modules/strncat-tests: New file.
44028         * tests/test-strncat.c: New file.
44030         New module 'strncat'.
44031         * lib/string.in.h (strncat): New declaration.
44032         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
44033         * m4/strncat.m4: New file, based on m4/memchr.m4.
44034         * modules/strncat: New file.
44035         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
44036         is declared.
44037         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
44038         REPLACE_STRNCAT.
44039         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
44040         REPLACE_STRNCAT.
44041         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
44042         module.
44043         * tests/test-string-c++.cc: Check signature of strncat.
44045 2010-04-05  Jim Meyering  <meyering@redhat.com>
44047         xstrtoumax-tests: convert to use init.sh
44048         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
44049         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
44050         Use Exit, not exit.
44051         Remove uses of $EXEEXT and "./" to run a program in the current dir.
44053         xstrtoimax-tests: convert to use init.sh
44054         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
44055         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
44056         Use Exit, not exit.
44057         Remove uses of $EXEEXT and "./" to run a program in the current dir.
44059 2010-04-05  Bruno Haible  <bruno@clisp.org>
44061         sys_socket: Avoid #define replacements in C++ mode.
44062         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
44063         warning to the function if possible, rather than #defining the symbol
44064         to a dysfunctional alias.
44066 2010-04-05  Bruno Haible  <bruno@clisp.org>
44068         fseeko: Fix C++ test error on mingw.
44069         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
44070         gl_FUNC_FSEEKO.
44071         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
44072         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
44073         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
44074         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
44076 2010-04-05  Bruno Haible  <bruno@clisp.org>
44078         duplocale: Improve test output.
44079         * tests/test-duplocale.c (main): Print reason for skipped test.
44081 2010-04-05  Bruno Haible  <bruno@clisp.org>
44083         Assume rmdir exists.
44084         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
44085         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
44087 2010-04-05  Bruno Haible  <bruno@clisp.org>
44089         Fix link error on Solaris 8 with cc.
44090         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
44092 2010-04-05  Bruno Haible  <bruno@clisp.org>
44094         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
44095         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
44097 2010-04-05  Bruno Haible  <bruno@clisp.org>
44099         vasprintf: Update documentation.
44100         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
44102 2010-04-05  Bruno Haible  <bruno@clisp.org>
44104         ptsname: Improve test.
44105         * tests/test-ptsname.c (main): Also try the various master names of BSD
44106         systems.
44108 2010-04-05  Bruno Haible  <bruno@clisp.org>
44110         memchr: Avoid a possible C++ test error.
44111         * lib/string.in.h (memchr): Provide declaration if function is missing.
44112         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
44113         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
44114         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
44115         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
44117 2010-04-05  Bruno Haible  <bruno@clisp.org>
44119         strtok_r: Improve idiom.
44120         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
44121         AC_LIBOBJ is used.
44123 2010-04-05  Bruno Haible  <bruno@clisp.org>
44125         strdup: Improve idiom.
44126         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
44127         AC_LIBOBJ is used.
44128         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
44129         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
44130         when AC_LIBOBJ is used.
44132 2010-04-05  Bruno Haible  <bruno@clisp.org>
44134         mbsinit, mbrtowc, wcrtomb: Improve idioms.
44135         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
44136         don't set REPLACE_MBSINIT to 1.
44137         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
44138         don't set REPLACE_MBRTOWC to 1.
44139         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
44140         exist, don't set REPLACE_MBSRTOWCS to 1.
44141         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
44142         exist, don't set REPLACE_MBSNRTOWCS to 1.
44143         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
44144         don't set REPLACE_WCRTOMB to 1.
44145         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
44146         exist, don't set REPLACE_WCSRTOMBS to 1.
44147         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
44148         exist, don't set REPLACE_WCSNRTOMBS to 1.
44150 2010-04-05  Bruno Haible  <bruno@clisp.org>
44152         ldexpl: Improve idiom.
44153         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
44154         make sure to set HAVE_DECL_LDEXPL to 0.
44156 2010-04-05  Jim Meyering  <meyering@redhat.com>
44158         xstrtol-tests: convert to use init.sh
44159         * modules/xstrtol-tests (Files): Add tests/init.sh.
44160         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
44161         Use Exit, not exit.
44162         Remove uses of $EXEEXT and "./" to run a program in the current dir.
44164         atexit-tests: convert to use init.sh
44165         * modules/atexit-tests (Files): Add tests/init.sh.
44166         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
44167         Use Exit, not exit.
44168         Remove uses of $EXEEXT and "./" to run a program in the current dir.
44170         init.sh: fix typo
44171         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
44173         init.sh: make it easier for a test script to write to the tty, ...
44174         when using automake's parallel-tests mode.
44175         * tests/init.sh (stderr_fileno_): Define overridable variable.
44176         (warn_): New function, to use it.
44177         (fail_, skip_, framework_failure_): Use warn_.
44179 2010-04-04  Bruno Haible  <bruno@clisp.org>
44181         btowc: Avoid warning.
44182         * lib/btowc.c: Include <stdlib.h>.
44183         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
44185 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
44186             Bruno Haible  <bruno@clisp.org>
44188         wchar: Port to NetBSD 1.5.
44189         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
44190         * lib/wctype.in.h (WEOF): Likewise.
44192 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
44193             Bruno Haible  <bruno@clisp.org>
44195         Port extended stdio to NetBSD 1.5.
44196         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
44197         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
44198         older.
44200 2010-04-04  Bruno Haible  <bruno@clisp.org>
44202         string: Remove unused substitution.
44203         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
44204         HAVE_DECL_STRERROR.
44205         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
44207 2010-04-04  Bruno Haible  <bruno@clisp.org>
44209         strtod: Avoid a possible C++ test error.
44210         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
44211         set REPLACE_STRTOD.
44213 2010-04-04  Bruno Haible  <bruno@clisp.org>
44215         strerror: Update documentation.
44216         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
44218 2010-04-04  Bruno Haible  <bruno@clisp.org>
44220         stdio: Fix some C++ test errors on Solaris 8 with GCC.
44221         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
44222         _GL_CXXALIAS_SYS_CAST.
44224 2010-04-04  Bruno Haible  <bruno@clisp.org>
44226         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
44227         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
44228         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
44229         REPLACE_FREXPL to 1.
44230         * doc/posix-functions/frexpl.texi: Update documentation.
44232 2010-04-04  Bruno Haible  <bruno@clisp.org>
44234         math: Fix some C++ test errors on Solaris 8 and Cygwin.
44235         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
44237 2010-04-04  Bruno Haible  <bruno@clisp.org>
44239         Implement nanosleep for native Windows.
44240         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
44242 2010-04-04  Bruno Haible  <bruno@clisp.org>
44244         math: Fix some C++ test errors on Solaris 8.
44245         * lib/math.in.h (truncf, trunc): Use simpler idiom.
44247 2010-04-04  Bruno Haible  <bruno@clisp.org>
44249         math: Fix some C++ test errors on Cygwin.
44250         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
44251         truncl): Provide declaration if the system does not have it.
44252         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
44253         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
44254         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
44255         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
44256         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
44257         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
44258         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
44259         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
44260         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
44261         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
44262         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
44263         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
44264         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
44265         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
44266         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
44267         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
44268         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
44269         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
44270         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
44271         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
44272         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
44273         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
44275 2010-04-04  Bruno Haible  <bruno@clisp.org>
44277         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
44278         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
44279         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
44280         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
44281         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
44282         * m4/isinf.m4 (gl_ISINF): Likewise.
44283         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
44285 2010-04-04  Bruno Haible  <bruno@clisp.org>
44287         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
44288         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
44290 2010-04-04  Bruno Haible  <bruno@clisp.org>
44292         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
44293         * modules/tmpfile (configure.ac): Update.
44295         tmpfile: Fix C++ test error on mingw.
44296         * lib/stdio.in.h (tmpfile): New declaration.
44297         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
44298         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
44299         * modules/tmpfile (Depends-on): Add stdio.
44300         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
44301         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
44302         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
44303         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
44304         REPLACE_TMPFILE.
44305         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
44307 2010-04-04  Bruno Haible  <bruno@clisp.org>
44309         ioctl: Fix C++ test error on mingw.
44310         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
44311         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
44312         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
44314 2010-04-03  Bruno Haible  <bruno@clisp.org>
44316         wcwidth: Fix C++ test error on mingw.
44317         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
44318         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
44319         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
44321 2010-04-03  Bruno Haible  <bruno@clisp.org>
44323         nanosleep: Fix C++ test error on mingw.
44324         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
44325         * lib/time.in.h (nanosleep): Use modern idiom.
44326         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
44327         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
44328         REPLACE_NANOSLEEP to 1.
44329         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
44330         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
44332 2010-04-03  Bruno Haible  <bruno@clisp.org>
44334         strptime: Fix C++ test error on mingw.
44335         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
44336         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
44337         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
44338         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
44339         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
44340         not REPLACE_STRPTIME.
44341         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
44342         REPLACE_STRPTIME.
44344 2010-04-03  Bruno Haible  <bruno@clisp.org>
44346         timegm: Fix C++ test error on mingw.
44347         * lib/time.in.h (timegm): Use modern idiom.
44348         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
44349         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
44350         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
44351         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
44353 2010-04-03  Bruno Haible  <bruno@clisp.org>
44355         timegm: Assume declaration if function exists.
44356         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
44357         if it exists. Don't clobber ac_cv_func_timegm.
44359 2010-04-03  Bruno Haible  <bruno@clisp.org>
44361         time_r: Fix C++ test error on mingw.
44362         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
44363         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
44364         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
44365         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
44366         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
44368 2010-04-03  Bruno Haible  <bruno@clisp.org>
44370         time_r: Minor updates.
44371         * modules/time_r (Description): Mention the provided functions.
44372         * lib/time_r.c: Don't include <string.h>.
44373         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
44374         * doc/posix-functions/localtime_r.texi: Likewise.
44376 2010-04-03  Bruno Haible  <bruno@clisp.org>
44378         time: Fix regression introduced on 2010-03-08.
44379         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
44380         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
44382 2010-04-03  Jim Meyering  <meyering@redhat.com>
44384         maint.mk: don't silently disable project-specific syntax-check rules
44385         * top/maint.mk (_prohibit_regexp): Define, to help people realize
44386         that they need to convert their project-specific syntax-check rules
44387         to use the new _sc_search_regexp.
44389 2010-04-03  Bruno Haible  <bruno@clisp.org>
44391         fchdir: Fix regression introduced on 2010-03-08.
44392         * lib/unistd.in.h (fchdir): Fix declaration.
44393         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
44394         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
44395         REPLACE_FCHDIR.
44396         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
44397         REPLACE_FCHDIR.
44399 2010-04-03  Bruno Haible  <bruno@clisp.org>
44401         getpagesize: Fix C++ test error on mingw.
44402         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
44403         system does not declare the function.
44404         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
44405         declared.
44406         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44407         HAVE_DECL_GETPAGESIZE.
44408         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
44410 2010-04-03  Bruno Haible  <bruno@clisp.org>
44412         stdio: Make C++ tests work on mingw.
44413         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
44414         does not declare the function.
44416 2010-04-03  Bruno Haible  <bruno@clisp.org>
44418         ftello: Fix C++ test error on mingw.
44419         * lib/stdio.in.h (ftello): Use modern idiom.
44420         * lib/ftello.c (ftello): Renamed from rpl_ftello.
44421         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
44422         is missing and that it needs to be replaced.
44423         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
44424         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
44425         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
44427 2010-04-03  Bruno Haible  <bruno@clisp.org>
44429         fseeko: Fix C++ test error on mingw.
44430         * lib/stdio.in.h (fseeko): Use modern idiom.
44431         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
44432         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
44433         is missing and that it needs to be replaced.
44434         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
44435         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
44436         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
44438 2010-04-03  Bruno Haible  <bruno@clisp.org>
44440         mkstemp: Fix C++ test error on mingw.
44441         * lib/stdlib.in.h (mkstemp): Use modern idiom.
44442         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
44443         function is missing and that it needs to be replaced.
44444         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
44445         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
44447 2010-04-03  Bruno Haible  <bruno@clisp.org>
44449         stpncpy: Fix C++ test error on mingw.
44450         * lib/string.in.h (stpncpy): Use modern idiom.
44451         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
44452         function is missing and that it needs to be replaced.
44453         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44454         REPLACE_STPNCPY.
44455         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
44457 2010-04-03  Bruno Haible  <bruno@clisp.org>
44459         sys_stat: Fix C++ test error on mingw.
44460         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
44461         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
44463 2010-04-03  Bruno Haible  <bruno@clisp.org>
44465         pty: Update doc.
44466         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
44468 2010-04-03  Bruno Haible  <bruno@clisp.org>
44470         unistd: Fix C++ test error on mingw.
44471         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
44473 2010-04-03  Bruno Haible  <bruno@clisp.org>
44475         Update doc regarding mingw.
44476         * doc/glibc-functions/openpty.texi: Update regarding mingw.
44477         * doc/glibc-functions/login_tty.texi: Likewise.
44478         * doc/glibc-functions/forkpty.texi: Likewise.
44480 2010-04-03  Bruno Haible  <bruno@clisp.org>
44482         stdlib: Avoid compilation failure of c-strtold on mingw.
44483         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
44485 2010-04-03  Bruno Haible  <bruno@clisp.org>
44487         locale: Make C++ tests work on Cygwin and mingw.
44488         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
44489         cannot provide the function.
44490         Reported by Simon Josefsson.
44492 2010-04-03  Bruno Haible  <bruno@clisp.org>
44494         localename: Port to MacOS X 10.6.
44495         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
44496         memory layout of the locales in MacOS X 10.6 as well.
44497         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
44499 2010-04-02  Bruno Haible  <bruno@clisp.org>
44501         gnulib-tool: Ensure that long-running tests are executed last.
44502         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
44503         running tests after the one for the other tests.
44505 2010-04-02  Bruno Haible  <bruno@clisp.org>
44507         gnulib-tool: Ensure the tests in the main directory are executed first.
44508         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
44509         start with the current directory.
44511 2010-04-02  Bruno Haible  <bruno@clisp.org>
44513         Tests for module 'havelib', moved here from GNU gettext.
44514         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
44515         modifications.
44516         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
44517         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
44518         with modifications.
44519         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
44520         modifications.
44521         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
44522         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
44523         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
44524         with modifications.
44525         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
44526         with modifications.
44527         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
44528         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
44529         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
44530         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
44531         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
44532         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
44533         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
44534         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
44535         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
44536         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
44537         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
44538         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
44539         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
44540         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
44541         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
44542         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
44543         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
44544         with modifications.
44545         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
44546         with modifications.
44547         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
44548         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
44549         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
44550         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
44551         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
44552         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
44553         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
44554         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
44555         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
44556         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
44557         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
44558         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
44559         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
44560         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
44561         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
44562         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
44563         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
44564         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
44565         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
44566         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
44567         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
44568         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
44569         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
44570         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
44571         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
44572         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
44573         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
44574         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
44575         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
44576         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
44577         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
44578         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
44579         * tests/havelib/rpathx/rpathx.c: New file, from
44580         gettext/autoconf-lib-link.
44581         * tests/havelib/rpathx/Makefile.am: New file, from
44582         gettext/autoconf-lib-link.
44583         * tests/havelib/rpathx/configure.ac: New file, from
44584         gettext/autoconf-lib-link with modifications.
44585         * tests/havelib/rpathy/rpathy.c: New file, from
44586         gettext/autoconf-lib-link.
44587         * tests/havelib/rpathy/Makefile.am: New file, from
44588         gettext/autoconf-lib-link.
44589         * tests/havelib/rpathy/configure.ac: New file, from
44590         gettext/autoconf-lib-link with modifications.
44591         * tests/havelib/rpathz/rpathz.c: New file, from
44592         gettext/autoconf-lib-link.
44593         * tests/havelib/rpathz/Makefile.am: New file, from
44594         gettext/autoconf-lib-link.
44595         * tests/havelib/rpathz/configure.ac: New file, from
44596         gettext/autoconf-lib-link with modifications.
44597         * tests/havelib/rpathlx/usex.c: New file, from
44598         gettext/autoconf-lib-link.
44599         * tests/havelib/rpathlx/Makefile.am: New file, from
44600         gettext/autoconf-lib-link.
44601         * tests/havelib/rpathlx/configure.ac: New file, from
44602         gettext/autoconf-lib-link with modifications.
44603         * tests/havelib/rpathly/usey.c: New file, from
44604         gettext/autoconf-lib-link.
44605         * tests/havelib/rpathly/Makefile.am: New file, from
44606         gettext/autoconf-lib-link.
44607         * tests/havelib/rpathly/configure.ac: New file, from
44608         gettext/autoconf-lib-link with modifications.
44609         * tests/havelib/rpathlz/usez.c: New file, from
44610         gettext/autoconf-lib-link.
44611         * tests/havelib/rpathlz/Makefile.am: New file, from
44612         gettext/autoconf-lib-link.
44613         * tests/havelib/rpathlz/configure.ac: New file, from
44614         gettext/autoconf-lib-link with modifications.
44615         * tests/havelib/rpathlyx/usey.c: New file, from
44616         gettext/autoconf-lib-link.
44617         * tests/havelib/rpathlyx/Makefile.am: New file, from
44618         gettext/autoconf-lib-link.
44619         * tests/havelib/rpathlyx/configure.ac: New file, from
44620         gettext/autoconf-lib-link with modifications.
44621         * tests/havelib/rpathlzyx/usez.c: New file, from
44622         gettext/autoconf-lib-link.
44623         * tests/havelib/rpathlzyx/Makefile.am: New file, from
44624         gettext/autoconf-lib-link.
44625         * tests/havelib/rpathlzyx/configure.ac: New file, from
44626         gettext/autoconf-lib-link with modifications.
44627         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
44628         with modifications.
44630 2010-04-02  Bruno Haible  <bruno@clisp.org>
44632         gnulib-tool: Create distributed built sources also for the tests.
44633         * gnulib-tool (func_create_testdir): Also generate distributed built
44634         sources in the tests directory.
44636 2010-04-02  Bruno Haible  <bruno@clisp.org>
44638         gnulib-tool: Obey user's environment variables.
44639         * gnulib-tool (func_create_testdir): When creating built sources,
44640         respect the environment variables for autoconf, automake, etc. given by
44641         the user.
44643 2010-04-02  Bruno Haible  <bruno@clisp.org>
44645         gnulib-tool: Provide the value of --m4-base to modules.
44646         * gnulib-tool (func_import, func_create_testdir): Emit a definition
44647         of gl_m4_base.
44649 2010-04-02  Eric Blake  <eblake@redhat.com>
44651         maint.mk: fix some fallout
44652         * NEWS: Document the incompatible change, and its effect on cfg.mk.
44653         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
44655 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
44657         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
44658         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
44659         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
44660         (sc_cast_of_x_alloc_return_value): Likewise.
44661         (sc_cast_of_alloca_return_value): Likewise.
44662         (sc_space_tab): Likewise.
44663         (sc_prohibit_atoi_atof): Likewise.
44664         (sc_prohibit_magic_number_exit): Likewise.
44665         (sc_error_exit_success): Likewise.
44666         (sc_file_system): Likewise.
44667         (sc_prohibit_have_config_h): Likewise.
44668         (sc_require_config_h): Likewise.
44669         (sc_prohibit_HAVE_MBRTOWC): Likewise.
44670         (sc_obsolete_symbols): Likewise.
44671         (sc_changelog): Likewise.
44672         (sc_program_name): Likewise.
44673         (sc_the_the): Likewise.
44674         (sc_trailing_blank): Likewise.
44675         (sc_two_space_separator_in_usage): Likewise.
44676         (sc_useless_cpp_parens): Likewise.
44677         (sc_GPL_version): Likewise.
44678         (sc_GFDL_version): Likewise.
44679         (sc_texinfo_acronym): Likewise.
44680         (sc_prohibit_cvs_keyword): Likewise.
44681         (sc_prohibit_stat_st_blocks): Likewise.
44682         (sc_prohibit_S_IS_definition): Likewise.
44683         (sc_redundant_const): Likewise.
44684         (sc_makefile_TAB_only_indentation): Likewise.
44685         (sc_m4_quote_check): Likewise.
44686         (sc_makefile_path_separator_check): Likewise.
44687         (sc_copyright_check): Likewise.
44688         (sc_Wundef_boolean): Likewise.
44689         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
44691         maint.mk: match 0 or more whitespace-before-function-call '('
44692         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
44693         that have zero or two-and-more spaces between the function name
44694         and the open parenthesis.
44695         (sc_error_message_warn_fatal): Likewise.
44696         (sc_error_message_uppercase): Likewise.
44697         (sc_error_message_period): Likewise.
44699 2010-03-31  Eric Blake  <eblake@redhat.com>
44701         maint.mk: check for [ as well as test
44702         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
44703         Based on a libvirt report by Matthias Bolte.
44705         gnumakefile: don't squelch _version output
44706         * top/GNUmakefile (_version): Create one-shot dependency rather
44707         than using $(shell) when version must be regenerated.
44708         (_autoreconf): Run verbosely, by default.
44710         sys_time: avoid compiler warnings
44711         * lib/sys_time.in.h (includes): Ensure gcc pragma is
44712         unconditional, fixing regression from 2010-03-29.
44713         Reported by Simon Josefsson.
44715 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
44717         maint.mk: s/_header_without_use/_sc_header_without_use/
44718         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
44719         (sc_prohibit_assert_without_use): Use the new name.
44720         (sc_prohibit_close_stream_without_use): Likewise.
44721         (sc_prohibit_getopt_without_use): Likewise.
44722         (sc_prohibit_quotearg_without_use): Likewise.
44723         (sc_prohibit_quote_without_use): Likewise.
44724         (sc_prohibit_long_options_without_use): Likewise.
44725         (sc_prohibit_inttostr_without_use): Likewise.
44726         (sc_prohibit_ignore_value_without_use): Likewise.
44727         (sc_prohibit_error_without_use): Likewise.
44728         (sc_prohibit_xalloc_without_use): Likewise.
44729         (sc_prohibit_hash_without_use): Likewise.
44730         (sc_prohibit_hash_pjw_without_use): Likewise.
44731         (sc_prohibit_safe_read_without_use): Likewise.
44732         (sc_prohibit_argmatch_without_use): Likewise.
44733         (sc_prohibit_canonicalize_without_use): Likewise.
44734         (sc_prohibit_root_dev_ino_without_use): Likewise.
44735         (sc_prohibit_openat_without_use): Likewise.
44736         (sc_prohibit_c_ctype_without_use): Likewise.
44737         (sc_prohibit_signal_without_use): Likewise.
44738         (sc_prohibit_intprops_without_use): Likewise.
44740 2010-03-30  Eric Blake  <eblake@redhat.com>
44742         maint: improve module indicators
44743         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
44744         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
44745         columns, and avoid extra macro expansion.
44747         fdopendir: work around FreeBSD bug
44748         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
44749         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
44750         * modules/dirent (Makefile.am): Substitute it.
44751         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
44752         declaration.
44753         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
44754         fix.
44755         Reported by Christian Weisgerber <naddy@mips.inka.de>.
44757 2010-03-29  Bruno Haible  <bruno@clisp.org>
44759         Emit #pragma system_header after the inclusion guard, not before.
44760         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
44761         guard that spans the entire file, not before. This enables an
44762         optimization in GCC's preprocessor.
44763         * lib/ctype.in.h: Likewise.
44764         * lib/dirent.in.h: Likewise.
44765         * lib/errno.in.h: Likewise.
44766         * lib/float.in.h: Likewise.
44767         * lib/getopt.in.h: Likewise.
44768         * lib/iconv.in.h: Likewise.
44769         * lib/langinfo.in.h: Likewise.
44770         * lib/locale.in.h: Likewise.
44771         * lib/math.in.h: Likewise.
44772         * lib/netdb.in.h: Likewise.
44773         * lib/netinet_in.in.h: Likewise.
44774         * lib/pty.in.h: Likewise.
44775         * lib/sched.in.h: Likewise.
44776         * lib/se-selinux.in.h: Likewise.
44777         * lib/search.in.h: Likewise.
44778         * lib/spawn.in.h: Likewise.
44779         * lib/stdarg.in.h: Likewise.
44780         * lib/stdint.in.h: Likewise.
44781         * lib/string.in.h: Likewise.
44782         * lib/strings.in.h: Likewise.
44783         * lib/sys_file.in.h: Likewise.
44784         * lib/sys_ioctl.in.h: Likewise.
44785         * lib/sys_time.in.h: Likewise.
44786         * lib/sys_times.in.h: Likewise.
44787         * lib/sys_utsname.in.h: Likewise.
44788         * lib/sys_wait.in.h: Likewise.
44789         * lib/sysexits.in.h: Likewise.
44790         * lib/wctype.in.h: Likewise.
44792 2010-03-28  James Youngman  <jay@gnu.org>
44794         save-cwd: don't leak a file descriptor when the caller execs.
44795         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
44796         saved file descriptor.
44797         * modules/save-cwd (Depends-on): Depend on cloexec.
44799 2010-03-29  Bruno Haible  <bruno@clisp.org>
44801         Remove vestiges of fts-lgpl module.
44802         * lib/fts_.h: Assume GNULIB_FTS is 1.
44803         * lib/fts.c: Likewise.
44804         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
44806 2010-03-28  Bruno Haible  <bruno@clisp.org>
44808         Fix definition of tests witness macro.
44809         * gnulib-tool (func_import): Fix definition of witness macro.
44811 2010-03-28  Bruno Haible  <bruno@clisp.org>
44813         Fix ioctl's protoype on glibc systems.
44814         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
44815         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
44816         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
44817         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
44818         signature. If not, arrange to replace the ioctl function.
44819         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
44820         REPLACE_IOCTL.
44821         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
44822         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
44823         Reported by Ludovic Courtès <ludo@gnu.org>.
44825 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
44827         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
44828         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
44829         made it so grep -r --include=GLOB* ... did not work.
44831 2010-03-26  Jim Meyering  <meyering@redhat.com>
44832             Eric Blake  <eblake@redhat.com>
44834         maint.mk: prohibit use of test's -o and -a operators
44835         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
44837 2010-03-28  Bruno Haible  <bruno@clisp.org>
44839         Remove unused GNULIB_XYZ macro definitions.
44840         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
44841         invocation.
44843 2010-03-28  Bruno Haible  <bruno@clisp.org>
44845         Mark privileged tests modules.
44846         * modules/idpriv-drop-tests (Status): New section.
44847         * modules/idpriv-droptemp-tests (Status): New section.
44849 2010-03-28  Bruno Haible  <bruno@clisp.org>
44851         Split C++ tests into separate tests modules.
44852         * modules/dirent-c++-tests: New file, extracted from
44853         modules/dirent-tests.
44854         * modules/dirent-tests: Depend on it.
44855         * modules/fcntl-h-c++-tests: New file, extracted from
44856         modules/fcntl-h-tests.
44857         * modules/fcntl-h-tests: Depend on it.
44858         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
44859         * modules/glob-tests: Depend on it.
44860         * modules/iconv-h-c++-tests: New file, extracted from
44861         modules/iconv-h-tests.
44862         * modules/iconv-h-tests: Depend on it.
44863         * modules/langinfo-c++-tests: New file, extracted from
44864         modules/langinfo-tests.
44865         * modules/langinfo-tests: Depend on it.
44866         * modules/locale-c++-tests: New file, extracted from
44867         modules/locale-tests.
44868         * modules/locale-tests: Depend on it.
44869         * modules/math-c++-tests: New file, extracted from modules/math-tests.
44870         * modules/math-tests: Depend on it.
44871         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
44872         * modules/pty-tests: Depend on it.
44873         * modules/search-c++-tests: New file, extracted from
44874         modules/search-tests.
44875         * modules/search-tests: Depend on it.
44876         * modules/signal-c++-tests: New file, extracted from
44877         modules/signal-tests.
44878         * modules/signal-tests: Depend on it.
44879         * modules/spawn-c++-tests: New file, extracted from
44880         modules/spawn-tests.
44881         * modules/spawn-tests: Depend on it.
44882         * modules/stdio-c++-tests: New file, extracted from
44883         modules/stdio-tests.
44884         * modules/stdio-tests: Depend on it.
44885         * modules/stdlib-c++-tests: New file, extracted from
44886         modules/stdlib-tests.
44887         * modules/stdlib-tests: Depend on it.
44888         * modules/string-c++-tests: New file, extracted from
44889         modules/string-tests.
44890         * modules/string-tests: Depend on it.
44891         * modules/sys_ioctl-c++-tests: New file, extracted from
44892         modules/sys_ioctl-tests.
44893         * modules/sys_ioctl-tests: Depend on it.
44894         * modules/sys_select-c++-tests: New file, extracted from
44895         modules/sys_select-tests.
44896         * modules/sys_select-tests: Depend on it.
44897         * modules/sys_socket-c++-tests: New file, extracted from
44898         modules/sys_socket-tests.
44899         * modules/sys_socket-tests: Depend on it.
44900         * modules/sys_stat-c++-tests: New file, extracted from
44901         modules/sys_stat-tests.
44902         * modules/sys_stat-tests: Depend on it.
44903         * modules/sys_time-c++-tests: New file, extracted from
44904         modules/sys_time-tests.
44905         * modules/sys_time-tests: Depend on it.
44906         * modules/time-c++-tests: New file, extracted from modules/time-tests.
44907         * modules/time-tests: Depend on it.
44908         * modules/unistd-c++-tests: New file, extracted from
44909         modules/unistd-tests.
44910         * modules/unistd-tests: Depend on it.
44911         * modules/wchar-c++-tests: New file, extracted from
44912         modules/wchar-tests.
44913         * modules/wchar-tests: Depend on it.
44914         * modules/wctype-c++-tests: New file, extracted from
44915         modules/wctype-tests.
44916         * modules/wctype-tests: Depend on it.
44917         Reported by Simon Josefsson.
44919 2010-03-28  Bruno Haible  <bruno@clisp.org>
44921         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
44922         * gnulib-tool (func_exists_module): New function, extracted from
44923         func_verify_module.
44924         (func_verify_module): Use it.
44925         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
44926         'foo' only if 'foo' exists.
44927         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
44928         module.
44930 2010-03-28  Bruno Haible  <bruno@clisp.org>
44932         gnulib-tool: Add support for special categories of tests.
44933         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
44934         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
44935         (func_usage): Document them.
44936         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
44937         inc_unportable_tests, inc_all_tests): New variables.
44938         (func_acceptable): Consider these variables.
44939         (func_modules_transitive_closure): Make it work when the 'Status' field
44940         consists of multiple words.
44941         (func_import): Store and restore the values of inc_cxx_tests,
44942         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
44943         inc_all_tests in gnulib-comp.m4.
44944         (func_create_testdir): Set inc_all_tests to true.
44945         * doc/gnulib.texi (Extra tests modules): New section.
44946         Suggested by Jim Meyering.
44948 2010-03-28  Bruno Haible  <bruno@clisp.org>
44950         ansi-c++-opt: Allow turning off the C++ build by default.
44951         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
44952         gl_CXX_CHOICE_DEFAULT_NO is defined.
44953         Requested by Eric Blake.
44955 2010-03-28  Bruno Haible  <bruno@clisp.org>
44957         unistd: Avoid #define replacements in C++ mode.
44958         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
44959         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
44960         setsockopt, shutdown, select): In C++, attach a warning to the function
44961         if possible, rather than #defining the symbol to a dysfunctional alias.
44962         Reported by John W. Eaton <jwe@gnu.org>.
44964 2010-03-28  Bruno Haible  <bruno@clisp.org>
44966         Fix link errors on mingw.
44967         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
44968         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
44969         $(LIBSOCKET).
44970         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
44971         $(LIBSOCKET).
44973 2010-03-28  Bruno Haible  <bruno@clisp.org>
44974             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44976         lib-ignore: Determine different options for different compilers.
44977         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
44978         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
44979         Add comments.
44980         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
44981         * NEWS: Mention the change.
44983 2010-03-27  Bruno Haible  <bruno@clisp.org>
44985         Remove unused GNULIB_XYZ macro definitions.
44986         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
44987         * modules/fseek (configure.ac): Likewise.
44988         * modules/ioctl (configure.ac): Likewise.
44989         * modules/open (configure.ac): Likewise.
44990         * modules/stdlib-safer (configure.ac): Likewise.
44992 2010-03-27  Bruno Haible  <bruno@clisp.org>
44994         Add a remark about certain modules.
44995         * modules/malloc (Comment): New section.
44996         * modules/realloc (Comment): Likewise.
44997         * modules/sigpipe (Comment): Likewise.
44999 2010-03-27  Bruno Haible  <bruno@clisp.org>
45001         Resolve conflict between the two kinds of module indicators.
45002         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
45003         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
45004         * modules/canonicalize (configure.ac): Invoke
45005         gl_MODULE_INDICATOR_FOR_TESTS.
45006         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
45007         GNULIB_XYZ.
45008         * tests/test-dirent-c++.cc: Likewise.
45009         * tests/test-dirent-safer.c: Likewise.
45010         * tests/test-dup2.c: Likewise.
45011         * tests/test-fchdir.c: Likewise.
45012         * tests/test-fcntl-h-c++.cc: Likewise.
45013         * tests/test-getopt.c: Likewise.
45014         * tests/test-getopt.h: Likewise.
45015         * tests/test-langinfo-c++.cc: Likewise.
45016         * tests/test-locale-c++.cc: Likewise.
45017         * tests/test-math-c++.cc: Likewise.
45018         * tests/test-pty-c++.cc: Likewise.
45019         * tests/test-search-c++.cc: Likewise.
45020         * tests/test-signal-c++.cc: Likewise.
45021         * tests/test-spawn-c++.cc: Likewise.
45022         * tests/test-stdio-c++.cc: Likewise.
45023         * tests/test-stdlib-c++.cc: Likewise.
45024         * tests/test-string-c++.cc: Likewise.
45025         * tests/test-sys_ioctl-c++.cc: Likewise.
45026         * tests/test-sys_select-c++.cc: Likewise.
45027         * tests/test-sys_socket-c++.cc: Likewise.
45028         * tests/test-sys_stat-c++.cc: Likewise.
45029         * tests/test-sys_time-c++.cc: Likewise.
45030         * tests/test-time-c++.cc: Likewise.
45031         * tests/test-unistd-c++.cc: Likewise.
45032         * tests/test-wchar-c++.cc: Likewise.
45033         * tests/uninorm/test-u8-nfc.c: Likewise.
45034         * tests/uninorm/test-u8-nfd.c: Likewise.
45035         * tests/uninorm/test-u8-nfkc.c: Likewise.
45036         * tests/uninorm/test-u8-nfkd.c: Likewise.
45037         * tests/uninorm/test-u16-nfc.c: Likewise.
45038         * tests/uninorm/test-u16-nfd.c: Likewise.
45039         * tests/uninorm/test-u16-nfkc.c: Likewise.
45040         * tests/uninorm/test-u16-nfkd.c: Likewise.
45041         * tests/uninorm/test-u32-nfc.c: Likewise.
45042         * tests/uninorm/test-u32-nfc-big.c: Likewise.
45043         * tests/uninorm/test-u32-nfd.c: Likewise.
45044         * tests/uninorm/test-u32-nfd-big.c: Likewise.
45045         * tests/uninorm/test-u32-nfkc.c: Likewise.
45046         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
45047         * tests/uninorm/test-u32-nfkd.c: Likewise.
45048         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
45049         * tests/uninorm/test-u32-normalize-big.c: Likewise.
45051 2010-03-27  Bruno Haible  <bruno@clisp.org>
45053         Distinguish two kinds of module indicators.
45054         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
45055         gl_MODULE_INDICATOR.
45056         (gl_MODULE_INDICATOR): New macro.
45057         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
45058         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
45059         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
45060         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
45061         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
45062         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
45063         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
45064         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
45065         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
45066         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
45067         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
45068         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
45069         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
45070         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
45071         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
45072         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
45073         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
45074         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
45075         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
45076         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
45077         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
45078         * modules/cloexec (configure.ac): Likewise.
45079         * modules/getopt-gnu (configure.ac): Likewise.
45080         * modules/uninorm/u8-normalize (configure.ac): Likewise.
45081         * modules/uninorm/u16-normalize (configure.ac): Likewise.
45082         * modules/uninorm/u32-normalize (configure.ac): Likewise.
45083         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
45085 2010-03-27  Bruno Haible  <bruno@clisp.org>
45087         New module description field 'Comment'.
45088         * gnulib-tool: New option --extract-comment.
45089         (func_usage): Document it.
45090         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
45091         (func_get_comment): New function.
45092         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
45094 2010-03-27  Bruno Haible  <bruno@clisp.org>
45096         Addendum to 2010-02-07 commit.
45097         * gnulib-tool (func_usage): Document --extract-applicability option.
45099 2010-03-27  Bruno Haible  <bruno@clisp.org>
45101         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
45102         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
45103         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
45104         rather than link errors.
45106 2010-03-27  Bruno Haible  <bruno@clisp.org>
45108         Avoid side effects from tests-related modules on the compilation of lib.
45109         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
45110         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
45111         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
45112         parameter. Emit into AM_CPPFLAGS a definition of the designated C
45113         macro.
45114         (func_import): Define a witness macro. Assign it a value that depends
45115         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
45116         tests-related modules.
45117         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
45118         Reported by Jim Meyering.
45120 2010-03-27  Bruno Haible  <bruno@clisp.org>
45122         Factorize common .m4 code.
45123         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
45124         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
45125         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
45126         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
45127         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
45128         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
45129         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
45130         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
45131         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
45132         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
45133         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
45134         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
45135         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
45136         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
45137         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
45138         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
45139         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
45140         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
45141         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
45142         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
45143         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
45144         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
45145         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
45146         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
45147         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
45148         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
45149         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
45150         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
45151         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
45152         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
45153         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
45154         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
45156 2010-03-27  Bruno Haible  <bruno@clisp.org>
45158         Fix a compilation error on Cygwin with g++ >= 4.3.
45159         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
45160         if it is undefined or if we alias it to chmod.
45161         (lstat): Don't warn about the use of this function if it is undefined
45162         or if we alias it to stat.
45163         Reported by Simon Josefsson.
45165 2010-03-27  Bruno Haible  <bruno@clisp.org>
45167         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
45168         * modules/getlogin (configure.ac): Update.
45170         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
45171         * modules/getlogin_r (configure.ac): Update.
45173         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
45174         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
45175         * modules/inet_ntop (configure.ac): Update.
45177         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
45178         * modules/inet_pton (configure.ac): Update.
45180         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
45181         * modules/mbslen (configure.ac): Update.
45183         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
45184         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
45185         * modules/forkpty (configure.ac): Update.
45186         * modules/openpty (configure.ac): Update.
45188 2010-03-26  Simon Josefsson  <simon@josefsson.org>
45190         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
45191         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
45193 2010-03-25  Eric Blake  <eblake@redhat.com>
45195         maint: use pragma consistently across replacement headers
45196         * lib/ctype.in.h (system_header): Hoist for consistent placement.
45197         * lib/dirent.in.h (system_header): Likewise.
45198         * lib/errno.in.h (system_header): Likewise.
45199         * lib/float.in.h (system_header): Likewise.
45200         * lib/getopt.in.h (system_header): Likewise.
45201         * lib/iconv.in.h (system_header): Likewise.
45202         * lib/inttypes.in.h (system_header): Likewise.
45203         * lib/langinfo.in.h (system_header): Likewise.
45204         * lib/locale.in.h (system_header): Likewise.
45205         * lib/math.in.h (system_header): Likewise.
45206         * lib/netdb.in.h (system_header): Likewise.
45207         * lib/netinet_in.in.h (system_header): Likewise.
45208         * lib/pty.in.h (system_header): Likewise.
45209         * lib/sched.in.h (system_header): Likewise.
45210         * lib/se-selinux.in.h (system_header): Likewise.
45211         * lib/search.in.h (system_header): Likewise.
45212         * lib/spawn.in.h (system_header): Likewise.
45213         * lib/stdarg.in.h (system_header): Likewise.
45214         * lib/stdint.in.h (system_header): Likewise.
45215         * lib/string.in.h (system_header): Likewise.
45216         * lib/strings.in.h (system_header): Likewise.
45217         * lib/sys_file.in.h (system_header): Likewise.
45218         * lib/sys_ioctl.in.h (system_header): Likewise.
45219         * lib/sys_socket.in.h (system_header): Likewise.
45220         * lib/sys_times.in.h (system_header): Likewise.
45221         * lib/sys_utsname.in.h (system_header): Likewise.
45222         * lib/sys_wait.in.h (system_header): Likewise.
45223         * lib/sysexits.in.h (system_header): Likewise.
45224         * lib/unistd.in.h (system_header): Likewise.
45225         * lib/wctype.in.h (system_header): Likewise.
45227         arpa/inet: fix mingw compilation warning
45228         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
45229         Reported by Matthew Bolte.
45231 2010-03-25  Bruno Haible  <bruno@clisp.org>
45233         Avoid collision between gnulib wrapper and libintl wrapper.
45234         * lib/printf.c (printf): Don't define if a printf wrapper is already
45235         defined in intl/printf.c.
45236         Reported by Michel Boaventura <michel@michelboaventura.com>.
45238 2010-03-25  Bruno Haible  <bruno@clisp.org>
45240         Use ANSI C.
45241         * lib/readutmp.h (getutent): Provide ANSI C prototype.
45243 2010-03-25  Bruno Haible  <bruno@clisp.org>
45245         Minor formatting changes.
45246         * lib/acosl.c: Insert space before function argument list.
45247         * lib/argz.c: Likewise.
45248         * lib/asinl.c: Likewise.
45249         * lib/expl.c: Likewise.
45250         * lib/gen-uni-tables.c: Likewise.
45251         * lib/gettext.h: Likewise.
45252         * lib/glthread/lock.h: Likewise.
45253         * lib/tanl.c: Likewise.
45254         * lib/uniname/uniname.c: Likewise.
45255         * tests/test-idpriv-drop.c: Likewise.
45256         * tests/test-idpriv-droptemp.c: Likewise.
45257         * tests/test-lock.c: Likewise.
45258         * tests/test-tls.c: Likewise.
45259         * lib/argp-help.c: Insert space before function-like macro argument
45260         list.
45261         * lib/memcmp.c: Likewise.
45262         * tests/test-base64.c: Likewise.
45263         * lib/localename.c: Insert space before sizeof's argument list.
45264         * lib/safe-alloc.h: Likewise.
45265         * lib/file-set.h: Insert space before macro argument list.
45266         * tests/test-argp.c: Likewise.
45267         * lib/argp-namefrob.h: Insert space before function parameter list.
45268         * lib/getaddrinfo.c: Likewise.
45269         * lib/netdb.in.h: Likewise.
45270         * lib/parse-duration.h: Likewise.
45271         * lib/parse-duration.c: Likewise.
45272         * lib/poll.c: Likewise.
45273         * lib/select.c: Likewise.
45274         * lib/trim.h: Likewise.
45275         * tests/test-usleep.c: Likewise.
45276         * lib/ldexpl.c: Insert space before function parameter list and before
45277         function argument list.
45278         * lib/logl.c: Likewise.
45279         * lib/sqrtl.c: Likewise.
45280         * lib/trim.c: Likewise.
45281         * lib/cosl.c: Use GNU style indentation. Insert space before function
45282         argument list.
45283         * lib/sinl.c: Likewise.
45284         * lib/tsearch.c: Insert space after 'for'.
45285         Reported by Jim Meyering.
45287 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
45289         * maint.mk (sc_Wundef_boolean): Check for the presence of the
45290         config header before grepping, as it's not present before
45291         autoreconf/configure are run.  Reported by Simon Josefsson.
45293 2010-03-23  Bruno Haible  <bruno@clisp.org>
45295         pt_chown: Make it work with automake < 1.11.
45296         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
45297         Reported by Simon Josefsson.
45299 2010-03-23  Bruno Haible  <bruno@clisp.org>
45301         pt_chown: Don't depend on GPLed modules.
45302         * lib/pt_chown.c: Don't include idpriv.h.
45303         (main): Don't drop privileges.
45304         * modules/pt_chown (Depends-on): Remove idpriv-drop.
45305         Reported by Simon Josefsson.
45307 2010-03-24  Simon Josefsson  <simon@josefsson.org>
45309         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
45310         suggestions from karl@freefriends.org (Karl Berry).
45312 2010-03-22  Eric Blake  <eblake@redhat.com>
45314         gethostname: further tweaks
45315         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
45316         are overriding gethostname.
45317         Suggested by Bruno Haible.
45319 2010-03-21  Bruno Haible  <bruno@clisp.org>
45321         Fix comments.
45322         * lib/forkpty.c (rpl_forkpty): Fix comment.
45323         * lib/openpty.c (rpl_openpty): Likewise.
45324         Reported by Eric Blake.
45326 2010-03-22  Eric Blake  <eblake@redhat.com>
45328         gethostname: fix build on mingw
45329         * lib/unistd.in.h (includes): Work around fact that mingw
45330         <winsock2.h> re-includes <unistd.h>, by avoiding any
45331         redeclarations if we are being included by <winsock2.h>.
45332         Reported by Matthias Bolte.
45334 2010-03-21  Bruno Haible  <bruno@clisp.org>
45336         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
45337         * lib/forkpty.c (forkpty): New replacement function, from glibc with
45338         modifications.
45339         * lib/pty.in.h (forkpty): Update declaration. Add comments.
45340         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
45341         provide the replacement.
45342         * modules/forkpty (Depends-on): Add openpty, login_tty.
45343         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
45344         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
45345         * doc/glibc-functions/forkpty.texi: More supported platforms.
45346         * config/srclist.txt: Add forkpty.c (commented).
45348 2010-03-21  Bruno Haible  <bruno@clisp.org>
45350         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
45351         (Makefile.am): Verify that PTY_LIB is defined.
45353         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
45355 2010-03-21  Bruno Haible  <bruno@clisp.org>
45357         Tests for module 'login_tty'.
45358         * modules/login_tty-tests: New file.
45359         * tests/test-login_tty.c: New file.
45361         New module 'login_tty'.
45362         * lib/login_tty.c: New file.
45363         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
45364         * modules/login_tty: New file.
45365         * doc/glibc-functions/login_tty.texi: Mention the new module.
45367 2010-03-21  Bruno Haible  <bruno@clisp.org>
45369         login_tty: Documentation.
45370         * doc/glibc-functions/login_tty.texi: New file.
45371         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
45373 2010-03-21  Bruno Haible  <bruno@clisp.org>
45375         pty: Consistent macro naming.
45376         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
45377         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
45378         * modules/pty (configure.ac): Update.
45380 2010-03-21  Bruno Haible  <bruno@clisp.org>
45382         Tests for openpty: Make stricter.
45383         * tests/test-openpty.c (main): Add test of canonical processing and
45384         erase.
45385         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
45387         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
45388         * lib/openpty.c (openpty): New replacement function.
45389         * lib/pty.in.h: Include <termios.h>.
45390         (openpty): Update declaration. Add comments.
45391         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
45392         is not declared, arrange to provide the replacement. Check for _getpty
45393         and posix_openpt.
45394         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
45395         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
45396         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
45397         * modules/pty-tests (test_pty_c___LDADD): New variable.
45398         * doc/glibc-functions/openpty.texi: More supported platforms.
45400 2010-03-21  Bruno Haible  <bruno@clisp.org>
45402         setenv: Tweaks.
45403         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
45404         the test program.
45405         * doc/posix-functions/setenv.texi: Update platforms list.
45407 2010-03-21  Bruno Haible  <bruno@clisp.org>
45409         New module 'unlockpt'.
45410         * lib/unlockpt.c: New file, from glibc with modifications.
45411         * m4/unlockpt.m4: New file.
45412         * modules/unlockpt: New file.
45413         * lib/stdlib.in.h (unlockpt): New declaration.
45414         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
45415         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
45416         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
45417         HAVE_UNLOCKPT.
45418         * doc/posix-functions/unlockpt.texi: Mention the new module.
45419         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
45420         * config/srclist.txt: Add unlockpt.c (commented).
45422 2010-03-21  Jim Meyering  <meyering@redhat.com>
45424         maint.mk: prohibit inclusion of "intprops.h" without use
45425         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
45427 2010-03-21  Bruno Haible  <bruno@clisp.org>
45429         New module 'grantpt'.
45430         * lib/grantpt.c: New file, from glibc with modifications.
45431         * m4/grantpt.m4: New file.
45432         * modules/grantpt: New file.
45433         * lib/stdlib.in.h (grantpt): New declaration.
45434         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
45435         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
45436         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
45437         HAVE_GRANTPT.
45438         * doc/posix-functions/grantpt.texi: Mention the new module.
45439         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
45440         * config/srclist.txt: Add grantpt.c (commented).
45442 2010-03-21  Bruno Haible  <bruno@clisp.org>
45444         New module 'pt_chown'.
45445         * lib/pt_chown.c: New file, from glibc with modifications.
45446         * lib/pty-private.h: New file, from glibc with modifications.
45447         * modules/pt_chown: New file.
45448         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
45450 2010-03-21  Bruno Haible  <bruno@clisp.org>
45452         Tests for module 'ptsname'.
45453         * modules/ptsname-tests: New file.
45454         * tests/test-ptsname.c: New file.
45456         New module 'ptsname'.
45457         * lib/ptsname.c: New file, from glibc with modifications.
45458         * m4/ptsname.m4: New file.
45459         * modules/ptsname: New file.
45460         * lib/stdlib.in.h (ptsname): New declaration.
45461         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
45462         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
45463         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
45464         HAVE_PTSNAME.
45465         * doc/posix-functions/ptsname.texi: Mention the new module.
45466         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
45467         * config/srclist.txt: Add ptsname.c (commented).
45469 2010-03-21  Bruno Haible  <bruno@clisp.org>
45471         Tests for module 'ttyname_r'.
45472         * modules/ttyname_r-tests: New file.
45473         * tests/test-ttyname_r.c: New file.
45475         New module 'ttyname_r'.
45476         * lib/ttyname_r.c: New file.
45477         * m4/ttyname_r.m4: New file.
45478         * modules/ttyname_r: New file.
45479         * lib/unistd.in.h (ttyname_r): New declaration.
45480         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
45481         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
45482         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
45483         HAVE_TTYNAME_R.
45484         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
45485         * doc/posix-functions/ttyname_r.texi: Mention the new module.
45487 2010-03-20  Bruno Haible  <bruno@clisp.org>
45489         signal: Undefine macro definitions in C++ mode.
45490         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
45491         sigfillset): Undefine macro definitions from the system header in C++
45492         mode.
45493         Reported by John W. Eaton <jwe@gnu.org>.
45495 2010-03-20  Bruno Haible  <bruno@clisp.org>
45497         Ensure no #include statements inside extern "C" { ... }.
45498         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
45499         contain #include statements.
45500         * lib/time.in.h: Likewise.
45502 2010-03-20  Bruno Haible  <bruno@clisp.org>
45504         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
45505         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
45506         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
45507         Reported by John W. Eaton <jwe@gnu.org>.
45509 2010-03-20  Bruno Haible  <bruno@clisp.org>
45511         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
45512         Reported by Jim Meyering.
45514 2010-03-20  Bruno Haible  <bruno@clisp.org>
45516         pipe: Set errno upon failure.
45517         * lib/pipe.h: Specify that when -1 is returned, errno is set.
45518         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
45519         errno value in error message.
45521 2010-03-20  Bruno Haible  <bruno@clisp.org>
45522             Jim Meyering  <meyering@redhat.com>
45524         lchown: Avoid "unused variable" warning.
45525         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
45527 2010-03-20  Bruno Haible  <bruno@clisp.org>
45529         Work around unlink() bug on MacOS X 10.5.6.
45530         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
45531         attempting to unlink a parent directory.
45532         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
45533         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
45534         activate for the replacement function.
45535         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
45537 2010-03-20  Bruno Haible  <bruno@clisp.org>
45539         Fix link errors on Solaris 8.
45540         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
45541         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
45543 2010-03-19  Jim Meyering  <meyering@redhat.com>
45545         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
45546         The _LIBC implementation of build_range_exp correctly honors the
45547         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
45548         However, the non-_LIBC implementation would ignore that syntax-bit
45549         flag and return REG_ERANGE unconditionally.
45550         This change makes it honor that flag.
45551         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
45552         Make two pointer parameters "const".
45553         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
45554         (parse_bracket_exp): Update caller.
45556         regex.m4: correct the reversed range endpoint ([b-a]) test
45557         * m4/regex.m4: When requiring that [b-a] evoke failure,
45558         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
45559         test pass once again for x86-based systems.
45561 2010-03-19  Bruno Haible  <bruno@clisp.org>
45563         scandir: Fix link error on Solaris 8.
45564         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
45565         macros.
45567 2010-03-19  Bruno Haible  <bruno@clisp.org>
45569         getusershell: Fix documentation.
45570         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
45571         module.
45572         * doc/glibc-functions/setusershell.texi: Likewise.
45574         getusershell: Provide declaration, missing on Solaris 9.
45575         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
45576         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
45577         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
45578         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
45579         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45580         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
45581         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
45582         HAVE_GETUSERSHELL.
45583         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
45585 2010-03-19  Bruno Haible  <bruno@clisp.org>
45587         wctype: Provide iswblank function.
45588         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
45589         exists and is fine.
45590         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
45591         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
45592         * tests/test-wctype.c (main): Re-enable the iswblank tests.
45593         * doc/posix-functions/iswblank.texi: Update.
45595 2010-03-19  Bruno Haible  <bruno@clisp.org>
45597         Tests of module 'pty' in C++ mode.
45598         * modules/pty-tests: New file.
45599         * tests/test-pty-c++.cc: New file.
45600         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
45602 2010-03-19  Eric Blake  <eblake@redhat.com>
45604         logb: fix documentation
45605         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
45606         1.5 declaration bug.
45608         forkpty, openpty: prefer glibc's const-safe prototype
45609         * lib/forkpty.c (rpl_forkpty): New file.
45610         * lib/openpty.c (rpl_openpty): Likewise.
45611         * modules/forkpty (Files): Distribute it.
45612         * modules/openpty (Files): Likewise.
45613         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
45614         check...
45615         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
45616         replacement for for non-const BSD signature.
45617         * modules/pty (Makefile.am): Substitute witnesses.
45618         * lib/pty.in.h (forkpty, openpty): Declare replacements.
45619         * tests/test-forkpty.c: Update signature check.
45620         * tests/test-openpty.c: Likewise.
45621         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
45622         * doc/glibc-functions/openpty.texi (openpty): Likewise.
45624         forkpty, openpty: split functions into new modules
45625         * modules/pty (Makefile.am): Substitute new witnesses.
45626         (Libraries): Move library detection...
45627         * modules/forkpty: ...into new module.
45628         * modules/openpty: Another new module.
45629         * modules/pty-tests: Rename and split...
45630         * modules/forkpty-tests: ...to this...
45631         * modules/openpty-tests: ...and this.
45632         * tests/test-pty.c: Rename and split...
45633         * tests/test-forkpty.c: ...to this...
45634         * tests/test-openpty.c: ...and this.
45635         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
45636         (gl_PTY): Split library searching...
45637         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
45638         (gl_FORKPTY, gl_OPENPTY): New macros.
45639         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
45640         * NEWS: Mention the split.
45641         * MODULES.html.sh (Misc): Document the modules.
45642         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
45643         * doc/glibc-functions/openpty.texi (openpty): Likewise.
45645         pty: improve replacement header
45646         * lib/pty.in.h: New file.
45647         * modules/pty (Files): Ship it.
45648         (Makefile.am): Always build replacement.
45649         * m4/pty.m4: Rename...
45650         * m4/pty_h.m4: ...to this.
45651         (gl_PTY): Modernize setting of witness macros; update check of
45652         forkpty to take proper advantage of cache.
45653         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
45655         getopt: avoid compiler warning
45656         * lib/getopt.c (attribute_hidden): Remove unused macro.
45658 2010-03-18  Bruno Haible  <bruno@clisp.org>
45660         Fix link errors on Solaris 8.
45661         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
45662         * modules/search-tests (test_search_c___LDADD): Likewise.
45663         * modules/signal-tests (test_signal_c___LDADD): Likewise.
45664         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
45665         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
45666         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
45667         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
45668         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
45669         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
45671 2010-03-18  Bruno Haible  <bruno@clisp.org>
45673         Fix bug introduced on 2010-03-14.
45674         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
45675         (gl_SPAWN_H): Require it.
45676         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
45677         Reported by Simon Josefsson.
45679 2010-03-18  Bruno Haible  <bruno@clisp.org>
45681         Fix typo introduced on 2009-12-31.
45682         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
45683         posix_spawn_file_actions_adddup2.
45685 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
45686         and Eric Blake  <eblake@redhat.com>
45688         test-vc-list-files-git: make more robust
45689         * tests/test-vc-list-files-git.sh: Unset problematic environment
45690         variables.  Chain commands together.
45692 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
45694         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
45695         `AC_CHECK_DECL' invocation.
45697 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
45699         * lib/inttostr.c (inttostr): Make sure the invocation of verify
45700         appears before executable statements. Suggested by Petr Sumbera
45701         <Petr.Sumbera@Sun.COM>.
45703 2010-03-14  Bruno Haible  <bruno@clisp.org>
45705         * tests/test-flock.c (test_exclusive): Comment out a test that causes
45706         portability problems. Instead use a simpler test.
45707         (main): Check that invalid arguments are rejected only on Linux.
45709 2010-03-14  Bruno Haible  <bruno@clisp.org>
45711         Fix bug introduced on 2009-12-31.
45712         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
45713         gl_PREREQ_SYS_H_WINSOCK2 always.
45714         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
45715         SYS_SOCKET_H variable.
45716         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
45717         Update comments.
45718         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
45719         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
45720         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
45721         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
45722         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
45724 2010-03-14  Bruno Haible  <bruno@clisp.org>
45726         Fix values returned by sinl, cosl.
45727         * lib/trigl.h: Add specification comments.
45728         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
45729         that combines the values from the precomputed table with the values of
45730         the Chebyshev polynomials.
45732 2010-03-14  Bruno Haible  <bruno@clisp.org>
45734         Fix compilation error when modules 'posix_spawn[p]' are not used.
45735         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
45736         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
45738 2010-03-14  Bruno Haible  <bruno@clisp.org>
45740         Fix compilation error on mingw when module 'time_r' is not used.
45741         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
45742         is 1.
45743         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
45744         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
45745         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
45746         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
45748 2010-03-14  Bruno Haible  <bruno@clisp.org>
45750         Fix compilation error with Sun C.
45751         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
45752         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
45753         instead of GCC specific ULONG_LONG_MAX.
45754         * lib/xstrtoll.c: Likewise.
45755         * lib/xstrtoull.c: Likewise.
45757 2010-03-13  Bruno Haible  <bruno@clisp.org>
45759         Allow the user to disable C++ code and tests.
45760         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
45761         (gl_PROG_ANSI_CXX): Require it.
45763 2010-03-13  Bruno Haible  <bruno@clisp.org>
45765         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
45766         cases.
45768 2010-03-13  Bruno Haible  <bruno@clisp.org>
45770         Test that gnulib does not break the standard C++ headers.
45771         * tests/test-locale-c++2.cc: New file.
45772         * modules/locale-tests (Files): Add it.
45773         (Makefile.am): Compile it for test-locale-c++.
45774         * tests/test-math-c++2.cc: New file.
45775         * modules/math-tests (Files): Add it.
45776         (Makefile.am): Compile it for test-math-c++.
45777         * tests/test-signal-c++2.cc: New file.
45778         * modules/signal-tests (Files): Add it.
45779         (Makefile.am): Compile it for test-signal-c++.
45780         * tests/test-stdio-c++2.cc: New file.
45781         * modules/stdio-tests (Files): Add it.
45782         (Makefile.am): Compile it for test-stdio-c++.
45783         * tests/test-stdlib-c++2.cc: New file.
45784         * modules/stdlib-tests (Files): Add it.
45785         (Makefile.am): Compile it for test-stdlib-c++.
45786         * tests/test-string-c++2.cc: New file.
45787         * modules/string-tests (Files): Add it.
45788         (Makefile.am): Compile it for test-string-c++.
45789         * tests/test-time-c++2.cc: New file.
45790         * modules/time-tests (Files): Add it.
45791         (Makefile.am): Compile it for test-time-c++.
45792         Reported by John W. Eaton <jwe@gnu.org>.
45794 2010-03-13  Bruno Haible  <bruno@clisp.org>
45796         * gnulib-tool (func_usage): Clarify which options are available for
45797         --create-testdir and --create-megatestdir.
45799 2010-03-13  Bruno Haible  <bruno@clisp.org>
45801         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
45802         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
45803         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
45804         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
45805         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
45806         when appropriate.
45807         Reported by Jim Meyering.
45809 2010-03-12  Simon Josefsson  <simon@josefsson.org>
45811         * gnulib-tool (func_import): Explain origin of code.
45813 2010-03-12  Bruno Haible  <bruno@clisp.org>
45815         Fix problem with automake's definition of CXXLINK.
45816         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
45817         Reported by Simon Josefsson and Ludovic Courtès.
45819 2010-03-12  Bruno Haible  <bruno@clisp.org>
45821         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
45822         stable releases.
45824 2010-03-11  Bruno Haible  <bruno@clisp.org>
45826         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
45827         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
45828         whether the system provides one variant or multiple variants of the
45829         function.
45830         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
45831         C++ compilers.
45832         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
45833         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
45834         Reported by Jim Meyering.
45836 2010-03-09  Simon Josefsson  <simon@josefsson.org>
45838         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
45840 2010-03-08  Bruno Haible  <bruno@clisp.org>
45842         gnulib-tool: Add support for --libtool in --create-testdir.
45843         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
45844         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
45846 2010-03-08  Eric Blake  <eblake@redhat.com>
45848         gnulib-tool.texi: mention possibility of git submodule
45849         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
45850         submodules.
45851         * doc/.gitignore: Ignore another generated file.
45853 2010-03-08  Karl Berry  <karl@gnu.org>
45855         * doc/gnulib-tool.texi (VCS Issues): Mention third option
45856         of committing gnulib files while skipping others.
45858 2010-03-07  Bruno Haible  <bruno@clisp.org>
45860         Tests of module 'wctype' in C++ mode.
45861         * tests/test-wctype-c++.cc: New file.
45862         * modules/wctype-tests (Files): Add it and tests/signature.h.
45863         (Depends-on): Add ansi-c++-opt.
45864         (Makefile.am): Arrange to compile and run test-wctype-c++.
45866         Tests of module 'wchar' in C++ mode.
45867         * tests/test-wchar-c++.cc: New file.
45868         * modules/wchar-tests (Files): Add it and tests/signature.h.
45869         (Depends-on): Add ansi-c++-opt.
45870         (Makefile.am): Arrange to compile and run test-wchar-c++.
45871         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
45872         gl_MODULE_INDICATOR.
45874         Tests of module 'unistd' in C++ mode.
45875         * tests/test-unistd-c++.cc: New file.
45876         * modules/unistd-tests (Files): Add it and tests/signature.h.
45877         (Depends-on): Add ansi-c++-opt.
45878         (Makefile.am): Arrange to compile and run test-unistd-c++.
45879         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
45880         gl_MODULE_INDICATOR.
45882         Tests of module 'time' in C++ mode.
45883         * tests/test-time-c++.cc: New file.
45884         * modules/time-tests (Files): Add it and tests/signature.h.
45885         (Depends-on): Add ansi-c++-opt.
45886         (Makefile.am): Arrange to compile and run test-time-c++.
45887         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
45889         Tests of module 'sys_time' in C++ mode.
45890         * tests/test-sys_time-c++.cc: New file.
45891         * modules/sys_time-tests (Files): Add it and tests/signature.h.
45892         (Depends-on): Add ansi-c++-opt.
45893         (Makefile.am): Arrange to compile and run test-sys_time-c++.
45894         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
45895         gl_MODULE_INDICATOR.
45897         Tests of module 'sys_stat' in C++ mode.
45898         * tests/test-sys_stat-c++.cc: New file.
45899         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
45900         (Depends-on): Add ansi-c++-opt.
45901         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
45902         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
45903         gl_MODULE_INDICATOR.
45905         Tests of module 'sys_socket' in C++ mode.
45906         * tests/test-sys_socket-c++.cc: New file.
45907         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
45908         (Depends-on): Add ansi-c++-opt.
45909         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
45910         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
45911         gl_MODULE_INDICATOR.
45913         Tests of module 'sys_select' in C++ mode.
45914         * tests/test-sys_select-c++.cc: New file.
45915         * modules/sys_select-tests (Files): Add it and tests/signature.h.
45916         (Depends-on): Add ansi-c++-opt.
45917         (Makefile.am): Arrange to compile and run test-sys_select-c++.
45918         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
45919         gl_MODULE_INDICATOR.
45921         Tests of module 'sys_ioctl' in C++ mode.
45922         * tests/test-sys_ioctl-c++.cc: New file.
45923         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
45924         (Depends-on): Add ansi-c++-opt.
45925         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
45926         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
45927         gl_MODULE_INDICATOR.
45929         Tests of module 'string' in C++ mode.
45930         * tests/test-string-c++.cc: New file.
45931         * modules/string-tests (Files): Add it and tests/signature.h.
45932         (Depends-on): Add ansi-c++-opt.
45933         (Makefile.am): Arrange to compile and run test-string-c++.
45934         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
45935         gl_MODULE_INDICATOR.
45937         Tests of module 'stdlib' in C++ mode.
45938         * tests/test-stdlib-c++.cc: New file.
45939         * modules/stdlib-tests (Files): Add it and tests/signature.h.
45940         (Depends-on): Add ansi-c++-opt.
45941         (Makefile.am): Arrange to compile and run test-stdlib-c++.
45942         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
45943         gl_MODULE_INDICATOR.
45945         Tests of module 'stdio' in C++ mode.
45946         * tests/test-stdio-c++.cc: New file.
45947         * modules/stdio-tests (Files): Add it and tests/signature.h.
45948         (Depends-on): Add ansi-c++-opt.
45949         (Makefile.am): Arrange to compile and run test-stdio-c++.
45950         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
45951         gl_MODULE_INDICATOR.
45953         Tests of module 'spawn' in C++ mode.
45954         * tests/test-spawn-c++.cc: New file.
45955         * modules/spawn-tests (Files): Add it and tests/signature.h.
45956         (Depends-on): Add ansi-c++-opt.
45957         (Makefile.am): Arrange to compile and run test-spawn-c++.
45958         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
45959         gl_MODULE_INDICATOR.
45961         Tests of module 'signal' in C++ mode.
45962         * tests/test-signal-c++.cc: New file.
45963         * modules/signal-tests (Files): Add it and tests/signature.h.
45964         (Depends-on): Add ansi-c++-opt.
45965         (Makefile.am): Arrange to compile and run test-signal-c++.
45966         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
45967         gl_MODULE_INDICATOR.
45969         Tests of module 'search' in C++ mode.
45970         * tests/test-search-c++.cc: New file.
45971         * modules/search-tests (Files): Add it and tests/signature.h.
45972         (Depends-on): Add ansi-c++-opt.
45973         (Makefile.am): Arrange to compile and run test-search-c++.
45974         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
45975         gl_MODULE_INDICATOR.
45977         Tests of module 'math' in C++ mode.
45978         * tests/test-math-c++.cc: New file.
45979         * modules/math-tests (Files): Add it and tests/signature.h.
45980         (Depends-on): Add ansi-c++-opt.
45981         (Makefile.am): Arrange to compile and run test-math-c++.
45982         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
45984         Tests of module 'locale' in C++ mode.
45985         * tests/test-locale-c++.cc: New file.
45986         * modules/locale-tests (Files): Add it and tests/signature.h.
45987         (Depends-on): Add ansi-c++-opt.
45988         (Makefile.am): Arrange to compile and run test-locale-c++.
45989         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
45990         gl_MODULE_INDICATOR.
45992         Tests of module 'langinfo' in C++ mode.
45993         * tests/test-langinfo-c++.cc: New file.
45994         * modules/langinfo-tests (Files): Add it and tests/signature.h.
45995         (Depends-on): Add ansi-c++-opt.
45996         (Makefile.am): Arrange to compile and run test-langinfo-c++.
45997         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
45998         gl_MODULE_INDICATOR.
46000         Tests of module 'iconv-h' in C++ mode.
46001         * tests/test-iconv-h-c++.cc: New file.
46002         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
46003         (Depends-on): Add ansi-c++-opt.
46004         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
46006         Tests of module 'glob' in C++ mode.
46007         * tests/test-glob-c++.cc: New file.
46008         * modules/glob-tests (Files): Add it.
46009         (Depends-on): Add ansi-c++-opt.
46010         (Makefile.am): Arrange to compile and run test-glob-c++.
46012         Tests of module 'fcntl-h' in C++ mode.
46013         * tests/test-fcntl-h-c++.cc: New file.
46014         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
46015         (Depends-on): Add ansi-c++-opt.
46016         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
46017         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
46018         gl_MODULE_INDICATOR.
46020         Tests of module 'dirent' in C++ mode.
46021         * tests/test-dirent-c++.cc: New file.
46022         * modules/dirent-tests (Files): Add it and tests/signature.h.
46023         (Depends-on): Add ansi-c++-opt.
46024         (Makefile.am): Arrange to compile and run test-dirent-c++.
46025         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
46026         gl_MODULE_INDICATOR.
46028         New module 'ansi-c++-opt'.
46029         * modules/ansi-c++-opt: New file.
46030         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
46032         Document C++ namespace mode.
46033         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
46035         wctype: Avoid #define replacements in C++ mode.
46036         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
46037         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
46038         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
46039         In C++, define a namespaced alias symbol.
46040         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
46041         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
46042         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
46043         rule.
46045         wchar: Avoid #define replacements in C++ mode.
46046         * lib/wchar.in.h: Include c++defs.h.
46047         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
46048         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
46049         symbol.
46050         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
46051         * modules/wchar (Depends-on): Add c++defs.
46052         (Makefile.am): Update wchar.h rule.
46054         unistd: Avoid #define replacements in C++ mode.
46055         * lib/unistd.in.h: Include c++defs.h.
46056         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
46057         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
46058         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
46059         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
46060         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
46061         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
46062         symbol.
46063         (environ): Update.
46064         * modules/unistd (Depends-on): Add c++defs.
46065         (Makefile.am): Update unistd.h rule.
46067         time: Avoid #define replacements in C++ mode.
46068         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
46069         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
46070         define a namespaced alias symbol.
46071         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
46072         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
46073         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
46074         * modules/time (Depends-on): Add c++defs, warn-on-use.
46075         (Makefile.am): Update time.h rule.
46076         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
46077         * modules/nanosleep (configure.ac): Likewise.
46078         * modules/strptime (configure.ac): Likewise.
46079         * modules/timegm (configure.ac): Likewise.
46081         sys_time: Avoid #define replacements in C++ mode.
46082         * lib/sys_time.in.h: Include c++defs.h.
46083         (gettimeofday): In C++, define a namespaced alias symbol.
46084         * modules/sys_time (Depends-on): Add c++defs.
46085         (Makefile.am): Update sys/time.h rule.
46087         sys_stat: Avoid #define replacements in C++ mode.
46088         * lib/sys_stat.in.h: Include c++defs.h.
46089         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
46090         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
46091         namespaced alias symbol.
46092         In C++, define a namespaced alias symbol.
46093         * modules/sys_stat (Depends-on): Add c++defs.
46094         (Makefile.am): Update sys/stat.h rule.
46096         sys_socket: Avoid #define replacements in C++ mode.
46097         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
46098         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
46099         definitions also when the system has a <sys/socket.h>.
46100         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
46101         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
46102         In C++, define a namespaced alias symbol.
46103         * modules/sys_socket (Depends-on): Add c++defs.
46104         (Makefile.am): Update sys/socket.h rule.
46106         sys_select: Avoid #define replacements in C++ mode.
46107         * lib/sys_select.in.h: Include c++defs.h. Enable the function
46108         definitions also when the system has a <sys/select.h>.
46109         (select): In C++, define a namespaced alias symbol.
46110         * modules/sys_select (Depends-on): Add c++defs.
46111         (Makefile.am): Update sys/select.h rule.
46113         sys_ioctl: Avoid #define replacements in C++ mode.
46114         * lib/sys_ioctl.in.h: Include c++defs.h.
46115         (ioctl): In C++, define a namespaced alias symbol.
46116         * modules/sys_ioctl (Depends-on): Add c++defs.
46117         (Makefile.am): Update sys/ioctl.h rule.
46119         string: Avoid #define replacements in C++ mode.
46120         * lib/string.in.h: Include c++defs.h.
46121         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
46122         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
46123         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
46124         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
46125         strsignal, strverscmp): In C++, define a namespaced alias symbol.
46126         * modules/string (Depends-on): Add c++defs.
46127         (Makefile.am): Update string.h rule.
46129         stdlib: Avoid #define replacements in C++ mode.
46130         * lib/stdlib.in.h: Include c++defs.h.
46131         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
46132         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
46133         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
46134         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
46135         symbol.
46136         * modules/stdlib (Depends-on): Add c++defs.
46137         (Makefile.am): Update stdlib.h rule.
46139         stdio: Avoid #define replacements in C++ mode.
46140         * lib/stdio.in.h: Include c++defs.h.
46141         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
46142         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
46143         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
46144         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
46145         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
46146         namespaced alias symbol.
46147         * modules/stdio (Depends-on): Add c++defs.
46148         (Makefile.am): Update stdio.h rule.
46150         spawn: Avoid #define replacements in C++ mode.
46151         * lib/spawn.in.h: Include c++defs.h.
46152         (posix_spawn, posix_spawnp, posix_spawnattr_init,
46153         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
46154         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
46155         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
46156         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
46157         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
46158         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
46159         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
46160         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
46161         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
46162         In C++, define a namespaced alias symbol.
46163         * modules/spawn (Depends-on): Add c++defs.
46164         (Makefile.am): Update spawn.h rule.
46166         signal: Avoid #define replacements in C++ mode.
46167         * lib/signal.in.h: Include c++defs.h.
46168         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
46169         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
46170         namespaced alias symbol.
46171         * modules/signal (Depends-on): Add c++defs.
46172         (Makefile.am): Update signal.h rule.
46174         search: Avoid #define replacements in C++ mode.
46175         * lib/search.in.h: Include c++defs.h.
46176         (_gl_search_compar_fn, _gl_search_action_fn): New types.
46177         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
46178         symbol.
46179         * modules/search (Depends-on): Add c++defs.
46180         (Makefile.am): Update search.h rule.
46182         math: Avoid #define replacements in C++ mode.
46183         * lib/math.in.h: Include c++defs.h.
46184         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
46185         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
46186         trunc, truncl): In C++, define a namespaced alias symbol.
46187         * modules/math (Depends-on): Add c++defs.
46188         (Makefile.am): Update math.h rule.
46190         locale: Avoid #define replacements in C++ mode.
46191         * lib/locale.in.h: Include c++defs.h.
46192         (duplocale): In C++, define a namespaced alias symbol.
46193         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
46194         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
46195         * modules/locale (Depends-on): Add c++defs.
46196         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
46198         langinfo: Avoid #define replacements in C++ mode.
46199         * lib/langinfo.in.h: Include c++defs.h.
46200         (nl_langinfo): In C++, define a namespaced alias symbol.
46201         * modules/langinfo (Depends-on): Add c++defs.
46202         (Makefile.am): Update langinfo.h rule.
46204         iconv-h: Avoid #define replacements in C++ mode.
46205         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
46206         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
46207         symbol.
46208         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
46209         whenever iconv is present.
46210         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
46211         (Makefile.am): Update iconv.h rule.
46213         glob: Avoid #define replacements in C++ mode.
46214         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
46215         (_gl_glob_errfunc_fn): New type.
46216         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
46217         symbol.
46218         * modules/glob (Depends-on): Add c++defs, warn-on-use.
46219         (Makefile.am): Update glob.h rule.
46221         fcntl-h: Avoid #define replacements in C++ mode.
46222         * lib/fcntl.in.h: Include c++defs.h.
46223         (fcntl, open, openat): In C++, define a namespaced alias symbol.
46224         * modules/fcntl-h (Depends-on): Add c++defs.
46225         (Makefile.am): Update fcntl.h rule.
46227         dirent: Avoid #define replacements in C++ mode.
46228         * lib/dirent.in.h: Include c++defs.h.
46229         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
46230         namespaced alias symbol.
46231         (dirfd): Update declaration.
46232         * modules/dirent (Depends-on): Add c++defs.
46233         (Makefile.am): Update dirent.h rule.
46235         ctype: Make it usable in C++ code.
46236         * lib/ctype.in.h: Include c++defs.h.
46237         (isblank): Declare as extern "C".
46238         * modules/ctype (Depends-on): Add c++defs.
46239         (Makefile.am): Update ctype.h rule.
46241         New module 'c++defs'.
46242         * modules/c++defs: New file.
46243         * build-aux/c++defs.h: New file.
46244         Reported by John W. Eaton <jwe@gnu.org>.
46246 2010-03-07  Bruno Haible  <bruno@clisp.org>
46248         logb: Provide missing declaration for Cygwin.
46249         * lib/math.in.h (logb): New declaration.
46250         * m4/logb.m4: New file.
46251         * modules/logb (Files): Add m4/logb.m4.
46252         (Depends-on): Add math.
46253         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
46254         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
46255         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
46256         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
46257         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
46259 2010-03-07  Bruno Haible  <bruno@clisp.org>
46261         Fix test-cond link error.
46262         * tests/test-cond.c: Include <stdio.h>.
46264 2010-03-07  Bruno Haible  <bruno@clisp.org>
46266         Fix test-dirent-safer link error.
46267         * modules/dirent-safer-tests (Makefile.am): Define
46268         test_dirent_safer_LDADD.
46270 2010-03-07  Bruno Haible  <bruno@clisp.org>
46272         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
46273         among default module list.
46275 2010-03-07  Bruno Haible  <bruno@clisp.org>
46277         Fix link error on platforms with GNU libiconv.
46278         * modules/unistr/u8-strcoll-tests (Makefile): Define
46279         test_u8_strcoll_LDADD.
46280         * modules/unistr/u16-strcoll-tests (Makefile): Define
46281         test_u16_strcoll_LDADD.
46282         * modules/unistr/u32-strcoll-tests (Makefile): Define
46283         test_u32_strcoll_LDADD.
46285 2010-03-07  Bruno Haible  <bruno@clisp.org>
46287         Use POSIX declarations for socket functions.
46288         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
46289         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
46290         rpl_sendto): Change declaration to match POSIX.
46291         * lib/connect.c (rpl_connect): Likewise.
46292         * lib/accept.c (rpl_accept): Likewise.
46293         * lib/bind.c (rpl_bind): Likewise.
46294         * lib/getpeername.c (rpl_getpeername): Likewise.
46295         * lib/getsockname.c (rpl_getsockname): Likewise.
46296         * lib/recv.c (rpl_recv): Likewise.
46297         * lib/send.c (rpl_send): Likewise.
46298         * lib/recvfrom.c (rpl_recvfrom): Likewise.
46299         * lib/sendto.c (rpl_sendto): Likewise.
46301 2010-03-06  Bruno Haible  <bruno@clisp.org>
46303         Clarify access, euidaccess, faccessat.
46304         * doc/posix-functions/faccessat.texi: Mention security problem under
46305         "Other problems", not "Portability problems".
46306         * doc/posix-functions/access.texi: Likewise. Mention a related security
46307         problem.
46308         * doc/glibc-functions/euidaccess.texi: Mention security problems.
46309         * lib/euidaccess.c: Add comments about platforms.
46310         * lib/unistd.in.h (access, euidaccess): Add warnings.
46312 2010-03-07  Bruno Haible  <bruno@clisp.org>
46314         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
46315         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
46316         (POSIX_SPAWN_SETSCHEDULER): Likewise.
46317         (POSIX_SPAWN_USEVFORK): Define in a way that works when
46318         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
46319         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
46320         declare when POSIX_SPAWN_SETSCHEDULER is zero.
46321         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
46322         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
46323         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
46324         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
46325         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
46326         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
46327         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
46328         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
46329         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
46330         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
46331         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
46332         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
46333         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
46334         Likewise.
46335         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
46336         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
46337         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
46338         Likewise.
46339         * tests/test-spawn.c (main): Make it work when
46340         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
46342 2010-03-07  Bruno Haible  <bruno@clisp.org>
46344         Fix incorrect Makefile.am generation in German locale.
46345         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46346         Execute sed command with character range in C locale.
46348 2010-03-06  Bruno Haible  <bruno@clisp.org>
46350         Tests for module 'iconv-h'.
46351         * modules/iconv-h-tests: New file.
46352         * tests/test-iconv-h.c: New file.
46354         New module 'iconv-h'.
46355         * modules/iconv-h: New file.
46356         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
46357         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
46358         (configure.ac): Remove gl_ICONV_H.
46359         (Makefile.am): Remove rule for iconv.h.
46361 2010-03-06  Bruno Haible  <bruno@clisp.org>
46363         More consistent naming of *.m4 files.
46364         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
46365         * modules/wctype (Files): Update.
46367         More consistent naming of *.m4 files.
46368         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
46369         * modules/wchar (Files): Update.
46371 2010-03-06  Jim Meyering  <meyering@redhat.com>
46373         euidaccess: relax license to LGPLv2+
46374         * modules/euidaccess (License): Relax to LGPLv2+.
46376 2010-03-06  Bruno Haible  <bruno@clisp.org>
46378         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
46379         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
46380         (Makefile.am): Augment lib_SOURCES instead.
46382 2010-03-04  Jim Meyering  <meyering@redhat.com>
46384         utime: remove obsolete module
46385         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
46386         unnecessary for years, and has been marked as obsolete for 10 months.
46387         * modules/utime: Remove file.
46388         * lib/utime.c: Remove file.
46389         * m4/utime.m4: Remove file.
46390         * m4/utimes-null.m4: Remove file.
46391         * doc/posix-functions/utime.texi (utime): Remove reference to
46392         the module.  Move the sole "fixed by gnulib" item into the
46393         "problems not fixed by Gnulib" list.
46394         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
46396 2010-03-05  Simon Josefsson  <simon@josefsson.org>
46398         * modules/exit (License): Relax license to LGPLv2+.
46399         (Status): Mark as obsolete.
46400         * NEWS: Mention deprecated 'exit' module.
46401         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
46402         of now obsolete 'exit'.
46404 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46406         fts-lgpl: remove unused module
46407         * modules/fts-lgpl: Remove.
46408         * MODULES.html.sh (func_all_modules): Adjust.
46409         * check-module (find_included_lib_files): Adjust.
46410         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
46412 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
46414         copy-acl: enhance Solaris ACL error handling
46415         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
46416         * lib/set-mode-acl.c (qset_acl): Likewise.
46418 2010-03-02  Bruno Haible  <bruno@clisp.org>
46420         spawn: Don't override the system defined values on FreeBSD 8.
46421         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
46422         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
46423         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
46424         if HAVE_POSIX_SPAWN is 1.
46425         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
46427 2010-03-01  Bruno Haible  <bruno@clisp.org>
46429         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
46430         regarding Automake.
46432 2010-02-25  Bruno Haible  <bruno@clisp.org>
46434         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
46435         * gnulib-tool: Define 'echo' as a function only before the ksh alias
46436         setting, not afterwards.
46437         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
46439 2010-02-24  Eric Blake  <eblake@redhat.com>
46441         bootstrap, git-version-gen: use timestamp
46442         * build-aux/git-version-gen (scriptversion): Force UTC.
46443         * build-aux/bootstrap (scriptversion): New variable.
46445         bootstrap: allow older git
46446         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
46447         older than 1.6.4.  Requested by the libvirt project.
46449 2010-02-23  Eric Blake  <eblake@redhat.com>
46451         warn-on-use: work with old autoconf
46452         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
46453         AS_VAR semantics of autoconf 2.60.
46454         Reported by Bruno Haible.
46456         bootstrap: improve some comments
46457         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
46458         clarification comments.
46460         gettimeofday: provide correct function
46461         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
46462         when replacement is declared, otherwise provide gettimeofday.
46463         Reported by Michael Goffioul.
46465 2010-02-23  Jim Meyering  <meyering@redhat.com>
46467         lib-ignore: relax license to "unlimited", not LGPLv2+
46468         * modules/lib-ignore (License): Relax to "unlimited".
46470 2010-02-23  Jim Meyering  <meyering@redhat.com>
46472         lib-ignore: relax license to LGPLv2+
46473         * modules/lib-ignore (License): Relax to LGPLv2+.
46475 2010-02-22  Eric Blake  <eblake@redhat.com>
46477         lseek: avoid bash 3.2 broken pipe bug
46478         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
46479         warning from bash 3.2.
46480         Reported by Ben Pfaff, with analysis from Bruno Haible.
46482         bootstrap: support non-FSF copyright holder
46483         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
46484         bootstrap.conf override of COPYRIGHT_HOLDER.
46485         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
46487         bootstrap: interoperate with gettext 0.14.1
46488         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
46490         bootstrap: allow for alternate submodule location
46491         * build-aux/bootstrap (gnulib_path): New variable; use instead of
46492         hardcoding submodule location.
46493         (gnulib_mk): Allow direct use of Makefile.am.
46495         bootstrap: use GNULIB_SRCDIR to reduce disk usage
46496         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
46497         rather than reconfiguring where the submodule points.
46499         gettimeofday: restore support for platforms that lack function
46500         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
46501         replacement if function is missing.
46502         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
46503         * modules/sys_time (Makefile.am): Substitute it.
46504         * lib/sys_time.in.h (gettimeofday): Check it.
46505         Reported by Michael Goffioul.
46507 2010-02-21  Bruno Haible  <bruno@clisp.org>
46509         * lib/stdio.in.h (obstack_printf): Fix typo.
46511 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
46513         vc-list-files: use bzr ls's -R option
46514         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
46515         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
46517 2010-02-21  Jim Meyering  <meyering@redhat.com>
46519         init.sh: fix EXEEXT shims to work also for names like test-prog
46520         * tests/init.sh: Re-exec a better shell, when needed.
46521         If the current shell lacks support for posix $(...), an init.sh-using
46522         test will now try to find a shell that supports that.  If EXEEXT is
46523         nonempty, we also require support for hyphen-in-alias-name and shell
46524         substitutions like ${var#glob}.  Failure to find such a shell results
46525         in a skipped test.
46527 2010-02-21  Bruno Haible  <bruno@clisp.org>
46529         Really work around around "broken pipe" error message from bash 3.2.
46530         * gnulib-tool (func_reset_sigpipe): Remove function.
46531         (echo): In bash 3.2, define to a function that uses printf.
46532         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
46534 2010-02-20  Bruno Haible  <bruno@clisp.org>
46536         Restore support for automake 1.9.6 with autoconf 2.61.
46537         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
46538         Reported by James Youngman <jay@gnu.org>.
46540 2010-02-20  Bruno Haible  <bruno@clisp.org>
46542         Improve *printf warning condition.
46543         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
46544         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
46545         and the function is overridden due to SIGPIPE emulation.
46547 2010-02-20  Bruno Haible  <bruno@clisp.org>
46549         * lib/stdio.in.h: Tweak comments.
46551 2010-02-19  Bruno Haible  <bruno@clisp.org>
46553         Make it easier to find modules. New gnulib-tool option '--find'.
46554         * gnulib-tool: New option --find.
46555         (func_usage): Document it.
46556         (func_sanitize_modulelist): New function, extracted from
46557         func_all_modules.
46558         (func_all_modules): Invoke it.
46559         * doc/gnulib-tool.texi (Which modules?): New node.
46561 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
46563         * lib/sys_select.in.h: Provide select replacement even if
46564         sys/select.h exists on a system, for Interix.
46566 2010-02-18  Jim Meyering  <meyering@redhat.com>
46568         init.sh: don't use $(...) just yet
46569         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
46570         to accommodate e.g., Solaris' /bin/sh.
46572 2010-02-17  Bruno Haible  <bruno@clisp.org>
46574         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
46575         Reported by Ludovic Courtès <ludo@gnu.org>.
46577 2010-02-16  Simon Josefsson  <simon@josefsson.org>
46579         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
46580         linking with -lintl.
46582 2010-02-17  Simon Josefsson  <simon@josefsson.org>
46584         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
46585         if not provided by the system's netdb.h.  Reported by
46586         ludo@gnu.org (Ludovic Courtès).
46588 2010-02-15  Jim Meyering  <meyering@redhat.com>
46590         init.sh: improve portability and efficiency
46591         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
46592         "dummy" in a for loop.
46593         Use '!', not '^' to select the complement of a character set used
46594         in a "case" statement.
46595         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
46596         Suggestions from Eric Blake.
46598         init.sh: automatically accommodate programs with the .exe suffix
46599         Automatically arrange for an invocation of "prog" to execute the
46600         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
46601         may use the simpler "prog", yet still work when built on a system
46602         that requires specifying the added suffix.
46603         Do this by constructing a function named "prog" that invokes
46604         "prog.exe" for each .exe file in selected directories.
46605         * tests/init.sh (find_exe_basenames_): New function.
46606         (create_exe_shim_functions_): New function.
46607         (path_prepend_): Use it.
46609         maint.mk: mark syntax-check sc_*.m rules as .PHONY
46610         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
46611         "make -t syntax-check" doesn't create a ton of sc_*.m files.
46613 2010-02-14  Jim Meyering  <meyering@redhat.com>
46615         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
46616         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
46617         (sc_prohibit_hash_pjw_without_use): New rule.
46619         maint.mk: allow the default upload destination dir to be overridden
46620         * top/maint.mk (upload_dest_dir_): Define with a default that
46621         preserves the status quo.
46622         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
46623         Reported by Peter Simons.
46625         maint.mk: prohibit inclusion of "hash.h" without_use
46626         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
46628 2010-02-10  Jim Meyering  <meyering@redhat.com>
46630         maint.mk: prohibit inclusion of "ignore-value.h" without_use
46631         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
46633 2010-02-09  Eric Blake  <ebb9@byu.net>
46634         and Bruno Haible  <bruno@clisp.org>
46636         obstack-printf-posix: ensure declaration
46637         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
46638         extracted from gl_FUNC_OBSTACK_PRINTF.
46639         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
46640         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
46641         Likewise.
46642         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
46643         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
46644         0.
46646 2010-02-08  Bruno Haible  <bruno@clisp.org>
46648         gnulib-tool: Fix typo in 2010-02-07 commit.
46649         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
46650         Reported by Eric Blake.
46652 2010-02-07  Bruno Haible  <bruno@clisp.org>
46654         gnulib-tool: Fix up caching patches.
46655         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
46656         option --no-cache. Use associative arrays when supported by the shell.
46657         (sed_comments): New variable.
46658         (modcache): Renamed from do_cache.
46659         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
46660         abbreviate unnecessarily.
46661         (have_associative): New variable.
46662         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
46663         way also for ksh and zsh.
46664         (func_init_sed_convert_to_cache_statements): New function, extracted
46665         from func_cache_lookup_module. Add support for associative arrays.
46666         Don't set the c_MODULE_cached variable here. Ignore all lines before
46667         the first field header. Remove only the final newline, not all trailing
46668         newlines. Support empty fields correctly. Limit the use of 'eval' to
46669         assignments.
46670         (func_get_description, func_get_status, func_get_notice,
46671         func_get_applicability, func_get_filelist, func_get_dependencies,
46672         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
46673         func_get_automake_snippet, func_get_include_directive,
46674         func_get_link_directive, func_get_license, func_get_maintainer):
46675         Update documentation. List the unoptimized code first. Add support for
46676         associative arrays. Limit the use of 'eval' to assignments.
46677         (func_get_applicability): Undo stylistic pessimisations.
46678         (func_get_automake_snippet, func_get_include_directive): Reduce code
46679         duplication.
46680         (func_modules_transitive_closure, func_modules_add_dummy,
46681         func_modules_notice, func_modules_to_filelist, func_add_file,
46682         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
46683         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
46684         func_create_testdir, func_create_megatestdir): Update documentation.
46686 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46688         * gnulib-tool (func_cache_lookup_module): Store the module name
46689         belonging to the cache variable; error out if two different
46690         module names map to the same cache variable name.
46692 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46694         gnulib-tool: Make caching optional.
46695         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
46696         Update matching short versions of --no-changelog.
46697         (func_usage): Update.
46698         (sed_extract_cache_prog): Renamed from ...
46699         (sed_extract_prog): ... this; revert to old extraction script.
46700         (func_get_description, func_get_status)
46701         (func_get_notice, func_get_applicability, func_get_filelist)
46702         (func_get_dependencies, func_get_autoconf_early_snippet)
46703         (func_get_autoconf_snippet, func_get_automake_snippet)
46704         (func_get_include_directive, func_get_link_directive)
46705         (func_get_license, func_get_maintainer): If $do_cache is false,
46706         use old, non-caching extraction scripts.
46707         Suggestion by Bruno Haible.
46709 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46711         gnulib-tool: cache module metainformation.
46712         * gnulib-tool (sed_extract_prog): Match newline before each
46713         header, and rewrite header to a shell variable suffix.
46714         (func_cache_var, func_cache_lookup_module): New functions,
46715         to turn a module name into a cache variable prefix, and to
46716         look up and cache module metainformation.
46717         (func_get_description, func_get_status)
46718         (func_get_notice, func_get_applicability, func_get_filelist)
46719         (func_get_dependencies, func_get_autoconf_early_snippet)
46720         (func_get_autoconf_snippet, func_get_automake_snippet)
46721         (func_get_include_directive, func_get_link_directive)
46722         (func_get_license, func_get_maintainer): Use
46723         func_cache_lookup_module.
46725 2010-02-07  Bruno Haible  <bruno@clisp.org>
46727         fnctl: Fix missing dependency.
46728         * modules/fcntl (Depends-on): Add getdtablesize.
46729         Reported by John W. Eaton <jwe@gnu.org>.
46731 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
46733         Argp: fix recognition of short alias options.
46735         * lib/argp-parse.c (convert_options): Fix improper use of
46736         `|' between character values.
46737         * tests/test-argp.c (group1_option): New alias option
46738         --read (-r).
46739         (group1_parser): Special handling for 'r'.
46740         (test15): New test case.
46741         (test_fun): Add test15.
46742         * tests/test-argp-2.sh: Update expected --help and --usage
46743         outputs.
46745 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
46747         * tests/test-argp.c: Fix indentation.
46749 2010-02-04  Eric Blake  <ebb9@byu.net>
46751         gettimeofday: expose type of second argument
46752         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
46753         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
46754         * tests/test-gettimeofday.c: Use it to silence warning.
46755         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
46756         the issue.
46758 2010-02-03  Jim Meyering  <meyering@redhat.com>
46760         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
46761         * lib/regcomp.c (TYPE_SIGNED): Define.
46762         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
46764         regcomp.c: avoid a new -Wshadow warning
46765         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
46767 2010-02-01  Jim Meyering  <meyering@redhat.com>
46769         removing useless parentheses in cpp #define directives
46770         For motivation, see commit c0221df4, "define STREQ(a,b)
46771         consistently, removing useless parentheses"
46772         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
46773         * lib/mountlist.c (MNT_IGNORE): Likewise.
46774         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
46776 2010-02-01  Eric Blake  <ebb9@byu.net>
46778         sys_time: use link-warning
46779         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
46780         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
46781         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
46782         * modules/sys_time (Depends-on): Add warn-on-use.
46783         (Makefile.am): Always build replacement.
46784         (configure.ac): Update substitutions.
46785         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
46786         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
46787         bother with SYS_TIME_H.
46788         * modules/gettimeofday (configure.ac): Declare indicator.
46789         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
46790         in use.
46792         closein-tests: silence compiler warning
46793         * tests/test-closein.c (main): Ignore fread result.
46794         * modules/closein-tests (Depends-on): Add ignore-value.
46796         tests: silence warning about system return
46797         * tests/test-areadlink-with-size.c (main): Ignore system result.
46798         * tests/test-areadlink.c (main): Likewise.
46799         * tests/test-areadlinkat-with-size.c (main): Likewise.
46800         * tests/test-areadlinkat.c (main): Likewise.
46801         * tests/test-canonicalize-lgpl.c (main): Likewise.
46802         * tests/test-canonicalize.c (main): Likewise.
46803         * tests/test-chown.c (main): Likewise.
46804         * tests/test-fchownat.c (main): Likewise.
46805         * tests/test-fdutimensat.c (main): Likewise.
46806         * tests/test-fstatat.c (main): Likewise.
46807         * tests/test-futimens.c (main): Likewise.
46808         * tests/test-lchown.c (main): Likewise.
46809         * tests/test-link.c (main): Likewise.
46810         * tests/test-linkat.c (main): Likewise.
46811         * tests/test-lstat.c (main): Likewise.
46812         * tests/test-mkdir.c (main): Likewise.
46813         * tests/test-mkdirat.c (main): Likewise.
46814         * tests/test-mkfifo.c (main): Likewise.
46815         * tests/test-mkfifoat.c (main): Likewise.
46816         * tests/test-mknod.c (main): Likewise.
46817         * tests/test-readlink.c (main): Likewise.
46818         * tests/test-remove.c (main): Likewise.
46819         * tests/test-rename.c (main): Likewise.
46820         * tests/test-renameat.c (main): Likewise.
46821         * tests/test-rmdir.c (main): Likewise.
46822         * tests/test-symlink.c (main): Likewise.
46823         * tests/test-symlinkat.c (main): Likewise.
46824         * tests/test-unlink.c (main): Likewise.
46825         * tests/test-unlinkat.c (main): Likewise.
46826         * tests/test-utimens.c (main): Likewise.
46827         * tests/test-utimensat.c (main): Likewise.
46828         * modules/areadlink-tests (Depends-on): Add ignore-value.
46829         * modules/areadlink-with-size-tests (Depends-on): Likewise.
46830         * modules/areadlinkat-tests (Depends-on): Likewise.
46831         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
46832         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
46833         * modules/canonicalize-tests (Depends-on): Likewise.
46834         * modules/chown-tests (Depends-on): Likewise.
46835         * modules/fdutimensat-tests (Depends-on): Likewise.
46836         * modules/futimens-tests (Depends-on): Likewise.
46837         * modules/lchown-tests (Depends-on): Likewise.
46838         * modules/link-tests (Depends-on): Likewise.
46839         * modules/linkat-tests (Depends-on): Likewise.
46840         * modules/lstat-tests (Depends-on): Likewise.
46841         * modules/mkdir-tests (Depends-on): Likewise.
46842         * modules/mkfifo-tests (Depends-on): Likewise.
46843         * modules/mkfifoat-tests (Depends-on): Likewise.
46844         * modules/mknod-tests (Depends-on): Likewise.
46845         * modules/openat-tests (Depends-on): Likewise.
46846         * modules/readlink-tests (Depends-on): Likewise.
46847         * modules/remove-tests (Depends-on): Likewise.
46848         * modules/rename-tests (Depends-on): Likewise.
46849         * modules/renameat-tests (Depends-on): Likewise.
46850         * modules/rmdir-tests (Depends-on): Likewise.
46851         * modules/symlink-tests (Depends-on): Likewise.
46852         * modules/symlinkat-tests (Depends-on): Likewise.
46853         * modules/unlink-tests (Depends-on): Likewise.
46854         * modules/utimens-tests (Depends-on): Likewise.
46855         * modules/utimensat-tests (Depends-on): Likewise.
46857 2010-01-31  Bruno Haible  <bruno@clisp.org>
46859         Perform the same test for many <math.h> functions.
46860         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
46861         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
46862         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
46863         of gl_MATHFUNC.
46864         * modules/acos (configure.ac): Likewise.
46865         * modules/asin (configure.ac): Likewise.
46866         * modules/atan (configure.ac): Likewise.
46867         * modules/atan2 (configure.ac): Likewise.
46868         * modules/cbrt (configure.ac): Likewise.
46869         * modules/copysign (configure.ac): Likewise.
46870         * modules/cos (configure.ac): Likewise.
46871         * modules/cosh (configure.ac): Likewise.
46872         * modules/erf (configure.ac): Likewise.
46873         * modules/erfc (configure.ac): Likewise.
46874         * modules/exp (configure.ac): Likewise.
46875         * modules/fmod (configure.ac): Likewise.
46876         * modules/hypot (configure.ac): Likewise.
46877         * modules/j0 (configure.ac): Likewise.
46878         * modules/j1 (configure.ac): Likewise.
46879         * modules/jn (configure.ac): Likewise.
46880         * modules/lgamma (configure.ac): Likewise.
46881         * modules/log (configure.ac): Likewise.
46882         * modules/log10 (configure.ac): Likewise.
46883         * modules/log1p (configure.ac): Likewise.
46884         * modules/pow (configure.ac): Likewise.
46885         * modules/remainder (configure.ac): Likewise.
46886         * modules/sin (configure.ac): Likewise.
46887         * modules/sinh (configure.ac): Likewise.
46888         * modules/tan (configure.ac): Likewise.
46889         * modules/tanh (configure.ac): Likewise.
46890         * modules/y0 (configure.ac): Likewise.
46891         * modules/y1 (configure.ac): Likewise.
46892         * modules/yn (configure.ac): Likewise.
46893         Suggested by Paolo Bonzini.
46895 2010-01-31  Bruno Haible  <bruno@clisp.org>
46897         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
46899 2010-01-31  Bruno Haible  <bruno@clisp.org>
46901         Work around getdelim() bug on FreeBSD 8.0.
46902         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
46903         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
46904         not work.
46905         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
46906         is 1.
46907         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
46908         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
46909         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
46910         a non-zero size.
46911         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
46913 2010-01-31  Bruno Haible  <bruno@clisp.org>
46915         Work around getline() bug on FreeBSD 8.0.
46916         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
46917         and a non-zero size.
46918         * tests/test-getline.c (main): Likewise.
46919         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
46920         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
46922 2010-01-28  Eric Blake  <ebb9@byu.net>
46924         regex: fix build failure
46925         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
46926         platforms.
46928 2010-01-28  Jim Meyering  <meyering@redhat.com>
46930         regex: do not ignore memory allocation failure
46931         * lib/regex_internal.c (create_cd_newstate): Detect
46932         re_node_set_init_copy failure.   Extracted from glibc commit
46933         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
46935         regex: sync more white-space changes from libc
46936         * lib/regex_internal.c: White-space only changes.
46937         * lib/regexec.c: Likewise.
46939         regex: add many uses of __attribute_warn_unused_result__
46940         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
46941         * lib/regexec.c: Likewise.
46942         Extracted from a messy glibc commit.
46944         regcomp.c: spelling and merge-artifact from glibc
46945         * lib/regcomp.c: Merge remainder of glibc's
46946         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
46948         regcomp.c: sync white-space changes from glibc
46949         * lib/regcomp.c: Merge to accommodate white space
46950         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
46952         regcomp.c: do not ignore internal return values
46953         * lib/regcomp.c: Do not ignore internal return values.
46954         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
46955         but without its white-space changes and spelling fixes.
46957         regex_internal.h: define __attribute_warn_unused_result__
46958         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
46960         maint: add a syntax-check rule to check for vulnerable Makefile.in
46961         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
46963 2010-01-27  Jim Meyering  <meyering@redhat.com>
46965         ncftpput-ftp: clean up spaces
46966         * build-aux/ncftpput-ftp: Make Copyright line consistent.
46967         Remove trailing blanks.
46969 2010-01-27  Simon Josefsson  <simon@josefsson.org>
46971         * build-aux/git-version-gen: Fix copyright statement.
46972         * build-aux/gnupload: Likewise.
46973         * tests/test-arcfour.c: Likewise.
46974         * tests/test-arctwo.c: Likewise.
46975         * tests/test-count-one-bits.c: Likewise.
46976         * tests/test-crc.c: Likewise.
46977         * tests/test-des.c: Likewise.
46978         * tests/test-gc-arcfour.c: Likewise.
46979         * tests/test-gc-arctwo.c: Likewise.
46980         * tests/test-gc-des.c: Likewise.
46981         * tests/test-gc-hmac-md5.c: Likewise.
46982         * tests/test-gc-hmac-sha1.c: Likewise.
46983         * tests/test-gc-md2.c: Likewise.
46984         * tests/test-gc-md4.c: Likewise.
46985         * tests/test-gc-md5.c: Likewise.
46986         * tests/test-gc-pbkdf2-sha1.c: Likewise.
46987         * tests/test-gc-rijndael.c: Likewise.
46988         * tests/test-gc-sha1.c: Likewise.
46989         * tests/test-gc.c: Likewise.
46990         * tests/test-gethostname.c: Likewise.
46991         * tests/test-gettimeofday.c: Likewise.
46992         * tests/test-hash.c: Likewise.
46993         * tests/test-hmac-md5.c: Likewise.
46994         * tests/test-hmac-sha1.c: Likewise.
46995         * tests/test-md2.c: Likewise.
46996         * tests/test-md4.c: Likewise.
46997         * tests/test-md5.c: Likewise.
46998         * tests/test-memchr.c: Likewise.
46999         * tests/test-memchr2.c: Likewise.
47000         * tests/test-memcmp.c: Likewise.
47001         * tests/test-memmem.c: Likewise.
47002         * tests/test-memrchr.c: Likewise.
47003         * tests/test-rawmemchr.c: Likewise.
47004         * tests/test-read-file.c: Likewise.
47005         * tests/test-rijndael.c: Likewise.
47006         * tests/test-sockets.c: Likewise.
47007         * tests/test-strchrnul.c: Likewise.
47008         * tests/test-strstr.c: Likewise.
47009         * tests/test-strtod.c: Likewise.
47010         * build-aux/ncftpput-ftp: Likewise.
47012 2010-01-26  Eric Blake  <ebb9@byu.net>
47014         ignore-value: update recommended header name
47015         * modules/ignore-value (Include): Only use <> for headers that
47016         exist in glibc.
47018 2010-01-26  Jim Meyering  <meyering@redhat.com>
47020         test-userspec.c: avoid compiler warnings
47021         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
47022         and "initialization discards qualifiers..." warnings.
47023         Put the first "uid" in its own scope, and make char* members "const".
47025 2010-01-25  Bruno Haible  <bruno@clisp.org>
47027         gnulib-tool: Make warning diagnostics consistent.
47028         * gnulib-tool (func_warning): New function.
47029         Use it everywhere where gnulib-tool produces output to stderr and it is
47030         not a fatal error.
47032 2010-01-25  Bruno Haible  <bruno@clisp.org>
47034         Fix test dependencies.
47035         * modules/xstrtol-tests (Depends-on): Add inttypes.
47036         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
47038 2010-01-25 Pádraig Brady <P@draigBrady.com>
47040         syntax-check: detect incorrect boolean macro values in config.h
47041         * modules/maintainer-makefile (configure.ac): Parameterize the location
47042         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
47043         The logic is from Eric Blake and the location indicated by Jim Meyering.
47044         Note the more natural CONFIG_HEADER name is prohibited by automake
47045         for backwards compatibility reasons.
47046         * top/maint.mk (sc_Wundef_boolean): New rule.
47048 2010-01-25  Jim Meyering  <meyering@redhat.com>
47050         bootstrap: detect MacOS 10.6's shasum, too
47051         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
47052         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
47054 2010-01-23  Jim Meyering  <meyering@redhat.com>
47056         xstrtoll: new module
47057         * modules/xstrtoll: New file.
47058         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
47059         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
47060         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
47061         ./configure fails if you use this module and lack "long long".
47062         * modules/xstrtoll-tests: New module.
47063         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
47064         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
47065         new init.sh-based test framework.
47067 2010-01-24  Bruno Haible  <bruno@clisp.org>
47069         Tests for module 'yn'.
47070         * modules/yn-tests: New file.
47071         * tests/test-yn.c: New file.
47073         Tests for module 'y1'.
47074         * modules/y1-tests: New file.
47075         * tests/test-y1.c: New file.
47077         Tests for module 'y0'.
47078         * modules/y0-tests: New file.
47079         * tests/test-y0.c: New file.
47081         Tests for module 'tanh'.
47082         * modules/tanh-tests: New file.
47083         * tests/test-tanh.c: New file.
47085         Tests for module 'tan'.
47086         * modules/tan-tests: New file.
47087         * tests/test-tan.c: New file.
47089         Tests for module 'sqrt'.
47090         * modules/sqrt-tests: New file.
47091         * tests/test-sqrt.c: New file.
47093         Tests for module 'sinh'.
47094         * modules/sinh-tests: New file.
47095         * tests/test-sinh.c: New file.
47097         Tests for module 'sin'.
47098         * modules/sin-tests: New file.
47099         * tests/test-sin.c: New file.
47101         Tests for module 'rint'.
47102         * modules/rint-tests: New file.
47103         * tests/test-rint.c: New file.
47105         Tests for module 'remainder'.
47106         * modules/remainder-tests: New file.
47107         * tests/test-remainder.c: New file.
47109         Tests for module 'pow'.
47110         * modules/pow-tests: New file.
47111         * tests/test-pow.c: New file.
47113         Tests for module 'nextafter'.
47114         * modules/nextafter-tests: New file.
47115         * tests/test-nextafter.c: New file.
47117         Tests for module 'modf'.
47118         * modules/modf-tests: New file.
47119         * tests/test-modf.c: New file.
47121         Tests for module 'logb'.
47122         * modules/logb-tests: New file.
47123         * tests/test-logb.c: New file.
47125         Tests for module 'log1p'.
47126         * modules/log1p-tests: New file.
47127         * tests/test-log1p.c: New file.
47129         Tests for module 'log10'.
47130         * modules/log10-tests: New file.
47131         * tests/test-log10.c: New file.
47133         Tests for module 'log'.
47134         * modules/log-tests: New file.
47135         * tests/test-log.c: New file.
47137         Tests for module 'lgamma'.
47138         * modules/lgamma-tests: New file.
47139         * tests/test-lgamma.c: New file.
47141         Tests for module 'ldexp'.
47142         * modules/ldexp-tests: New file.
47143         * tests/test-ldexp.c: New file.
47145         Tests for module 'jn'.
47146         * modules/jn-tests: New file.
47147         * tests/test-jn.c: New file.
47149         Tests for module 'j1'.
47150         * modules/j1-tests: New file.
47151         * tests/test-j1.c: New file.
47153         Tests for module 'j0'.
47154         * modules/j0-tests: New file.
47155         * tests/test-j0.c: New file.
47157         Tests for module 'hypot'.
47158         * modules/hypot-tests: New file.
47159         * tests/test-hypot.c: New file.
47161         Tests for module 'fmod'.
47162         * modules/fmod-tests: New file.
47163         * tests/test-fmod.c: New file.
47165         Tests for module 'fabs'.
47166         * modules/fabs-tests: New file.
47167         * tests/test-fabs.c: New file.
47169         Tests for module 'exp'.
47170         * modules/exp-tests: New file.
47171         * tests/test-exp.c: New file.
47173         Tests for module 'erfc'.
47174         * modules/erfc-tests: New file.
47175         * tests/test-erfc.c: New file.
47177         Tests for module 'erf'.
47178         * modules/erf-tests: New file.
47179         * tests/test-erf.c: New file.
47181         Tests for module 'cosh'.
47182         * modules/cosh-tests: New file.
47183         * tests/test-cosh.c: New file.
47185         Tests for module 'cos'.
47186         * modules/cos-tests: New file.
47187         * tests/test-cos.c: New file.
47189         Tests for module 'copysign'.
47190         * modules/copysign-tests: New file.
47191         * tests/test-copysign.c: New file.
47193         Tests for module 'cbrt'.
47194         * modules/cbrt-tests: New file.
47195         * tests/test-cbrt.c: New file.
47197         Tests for module 'atan2'.
47198         * modules/atan2-tests: New file.
47199         * tests/test-atan2.c: New file.
47201         Tests for module 'atan'.
47202         * modules/atan-tests: New file.
47203         * tests/test-atan.c: New file.
47205         Tests for module 'asin'.
47206         * modules/asin-tests: New file.
47207         * tests/test-asin.c: New file.
47209         Tests for module 'acos'.
47210         * modules/acos-tests: New file.
47211         * tests/test-acos.c: New file.
47213 2010-01-24  Bruno Haible  <bruno@clisp.org>
47215         Fix tests for common <math.h> functions.
47216         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
47217         code snippet that references the function pointer, rather than merely
47218         calling the function. Substitute the FUNC_LIBM variable.
47219         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
47220         * modules/acos (configure.ac): Likewise.
47221         * modules/asin (configure.ac): Likewise.
47222         * modules/atan (configure.ac): Likewise.
47223         * modules/atan2 (configure.ac): Likewise.
47224         * modules/cbrt (configure.ac): Likewise.
47225         * modules/copysign (configure.ac): Likewise.
47226         * modules/cos (configure.ac): Likewise.
47227         * modules/cosh (configure.ac): Likewise.
47228         * modules/erf (configure.ac): Likewise.
47229         * modules/erfc (configure.ac): Likewise.
47230         * modules/exp (configure.ac): Likewise.
47231         * modules/fabs (configure.ac): Likewise.
47232         * modules/fmod (configure.ac): Likewise.
47233         * modules/hypot (configure.ac): Likewise.
47234         * modules/j0 (configure.ac): Likewise.
47235         * modules/j1 (configure.ac): Likewise.
47236         * modules/jn (configure.ac): Likewise.
47237         * modules/ldexp (configure.ac): Likewise.
47238         * modules/lgamma (configure.ac): Likewise.
47239         * modules/log (configure.ac): Likewise.
47240         * modules/log10 (configure.ac): Likewise.
47241         * modules/log1p (configure.ac): Likewise.
47242         * modules/logb (configure.ac): Likewise.
47243         * modules/modf (configure.ac): Likewise.
47244         * modules/nextafter (configure.ac): Likewise.
47245         * modules/pow (configure.ac): Likewise.
47246         * modules/remainder (configure.ac): Likewise.
47247         * modules/rint (configure.ac): Likewise.
47248         * modules/sin (configure.ac): Likewise.
47249         * modules/sinh (configure.ac): Likewise.
47250         * modules/tan (configure.ac): Likewise.
47251         * modules/tanh (configure.ac): Likewise.
47252         * modules/y0 (configure.ac): Likewise.
47253         * modules/y1 (configure.ac): Likewise.
47254         * modules/yn (configure.ac): Likewise.
47256 2010-01-24  Bruno Haible  <bruno@clisp.org>
47258         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
47259         * tests/test-acosl.c (x): New variable.
47260         (main): Store argument in x and fetch it from x.
47261         * tests/test-asinl.c (x): New variable.
47262         (main): Store argument in x and fetch it from x.
47263         * tests/test-atanl.c (x): New variable.
47264         (main): Store argument in x and fetch it from x.
47265         * tests/test-cosl.c (x): New variable.
47266         (main): Store argument in x and fetch it from x.
47267         * tests/test-expl.c (x): New variable.
47268         (main): Store argument in x and fetch it from x.
47269         * tests/test-logl.c (x): New variable.
47270         (main): Store argument in x and fetch it from x.
47271         * tests/test-sinl.c (x): New variable.
47272         (main): Store argument in x and fetch it from x.
47273         * tests/test-sqrtl.c (x): New variable.
47274         (main): Store argument in x and fetch it from x.
47275         * tests/test-tanl.c (x): New variable.
47276         (main): Store argument in x and fetch it from x.
47278 2010-01-24  Bruno Haible  <bruno@clisp.org>
47280         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
47281         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
47282         assignments to the initial TESTS_ENVIRONMENT.
47283         * doc/gnulib.texi (Unit test modules): Document it.
47284         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
47285         TESTS_ENVIRONMENT.
47286         * modules/btowc-tests (Makefile.am): Likewise.
47287         * modules/c-stack-tests (Makefile.am): Likewise.
47288         * modules/c-strcase-tests (Makefile.am): Likewise.
47289         * modules/copy-file-tests (Makefile.am): Likewise.
47290         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
47291         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
47292         * modules/mbrtowc-tests (Makefile.am): Likewise.
47293         * modules/mbscasecmp-tests (Makefile.am): Likewise.
47294         * modules/mbscasestr-tests (Makefile.am): Likewise.
47295         * modules/mbschr-tests (Makefile.am): Likewise.
47296         * modules/mbscspn-tests (Makefile.am): Likewise.
47297         * modules/mbsinit-tests (Makefile.am): Likewise.
47298         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
47299         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
47300         * modules/mbspbrk-tests (Makefile.am): Likewise.
47301         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
47302         * modules/mbsrchr-tests (Makefile.am): Likewise.
47303         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
47304         * modules/mbsspn-tests (Makefile.am): Likewise.
47305         * modules/mbsstr-tests (Makefile.am): Likewise.
47306         * modules/nl_langinfo-tests (Makefile.am): Likewise.
47307         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
47308         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
47309         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
47310         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
47311         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
47312         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
47313         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
47314         * modules/wcrtomb-tests (Makefile.am): Likewise.
47315         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
47316         * modules/wcsrtombs-tests (Makefile.am): Likewise.
47317         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
47318         assignments from TESTS_ENVIRONMENT.
47319         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
47320         augmentation.
47321         * modules/argp-version-etc-tests (Makefile.am): Likewise.
47322         * modules/atexit-tests (Makefile.am): Likewise.
47323         * modules/binary-io-tests (Makefile.am): Likewise.
47324         * modules/closein-tests (Makefile.am): Likewise.
47325         * modules/dprintf-posix-tests (Makefile.am): Likewise.
47326         * modules/exclude-tests (Makefile.am): Likewise.
47327         * modules/fflush-tests (Makefile.am): Likewise.
47328         * modules/fpending-tests (Makefile.am): Likewise.
47329         * modules/fprintf-posix-tests (Makefile.am): Likewise.
47330         * modules/freadahead-tests (Makefile.am): Likewise.
47331         * modules/freadptr-tests (Makefile.am): Likewise.
47332         * modules/freadseek-tests (Makefile.am): Likewise.
47333         * modules/fseek-tests (Makefile.am): Likewise.
47334         * modules/fseeko-tests (Makefile.am): Likewise.
47335         * modules/ftell-tests (Makefile.am): Likewise.
47336         * modules/ftello-tests (Makefile.am): Likewise.
47337         * modules/idpriv-drop-tests (Makefile.am): Likewise.
47338         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
47339         * modules/lseek-tests (Makefile.am): Likewise.
47340         * modules/parse-duration-tests (Makefile.am): Likewise.
47341         * modules/perror-tests (Makefile.am): Likewise.
47342         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
47343         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
47344         * modules/pipe-tests (Makefile.am): Likewise.
47345         * modules/pread-tests (Makefile.am): Likewise.
47346         * modules/printf-posix-tests (Makefile.am): Likewise.
47347         * modules/select-tests (Makefile.am): Likewise.
47348         * modules/sigpipe-tests (Makefile.am): Likewise.
47349         * modules/tsearch-tests (Makefile.am): Likewise.
47350         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
47351         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
47352         * modules/uniname/uniname-tests (Makefile.am): Likewise.
47353         * modules/uniwidth/width-tests (Makefile.am): Likewise.
47354         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
47355         * modules/version-etc-tests (Makefile.am): Likewise.
47356         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
47357         * modules/vprintf-posix-tests (Makefile.am): Likewise.
47358         * modules/xalloc-die-tests (Makefile.am): Likewise.
47359         * modules/xprintf-posix-tests (Makefile.am): Likewise.
47360         * modules/xstrtoimax-tests (Makefile.am): Likewise.
47361         * modules/xstrtol-tests (Makefile.am): Likewise.
47362         * modules/xstrtoumax-tests (Makefile.am): Likewise.
47363         * modules/yesno-tests (Makefile.am): Likewise.
47364         Suggested by Jim Meyering.
47366 2010-01-24  Bruno Haible  <bruno@clisp.org>
47368         More documentation.
47369         * doc/gnulib.texi (Writing modules): New chapter.
47370         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
47371         the new chapter.
47373 2010-01-24  Jim Meyering  <meyering@redhat.com>
47375         maint.mk: do not prepend "./" after filtering
47376         * top/maint.mk (_prepend_srcdir_prefix): New variable
47377         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
47378         "./" when $(srcdir) is ".".
47380         define STREQ(a,b) consistently, removing useless parentheses
47381         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
47382         since the only risk is that "a" or "b" contains an unparenthesized
47383         comma, but if either did that, STREQ would have 3 or more arguments.
47384         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
47385         * lib/fts.c (STREQ): Remove unnecessary parentheses.
47386         * lib/hash-triple.c (STREQ): Likewise.
47387         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
47388         * lib/getugroups.c (STREQ): Likewise.
47390 2010-01-23  Jim Meyering  <meyering@redhat.com>
47392         maint.mk: fix syntax-check in a non-srcdir build directory
47393         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
47394         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
47396 2010-01-22  Jim Meyering  <meyering@redhat.com>
47398         userspec: add unit tests
47399         * tests/test-userspec.c: New file.
47400         * modules/userspec-tests: Likewise.
47402 2010-01-21  Jim Meyering  <meyering@redhat.com>
47404         maint.mk: handle source file names containing "." robustly
47405         * top/maint.mk (_dot_escaped_srcdir): Define.
47406         (VC_LIST): Use it in LHS of sed substitution.
47408 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
47410         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
47411         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
47412         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
47413         from a non-srcdir build.
47415 2010-01-20  Eric Blake  <ebb9@byu.net>
47417         warn-on-use: use instead of link-warning
47418         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
47419         * modules/unistd (Depends-on, Makefile.am): Likewise.
47420         * modules/arpa_inet (Depends-on): Replace link-warning with
47421         warn-on-use.
47422         (Makefile.am): Update rules accordingly.
47423         * modules/ctype (Depends-on, Makefile.am): Likewise.
47424         * modules/dirent (Depends-on, Makefile.am): Likewise.
47425         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
47426         * modules/inttypes (Depends-on, Makefile.am): Likewise.
47427         * modules/langinfo (Depends-on, Makefile.am): Likewise.
47428         * modules/locale (Depends-on, Makefile.am): Likewise.
47429         * modules/math (Depends-on, Makefile.am): Likewise.
47430         * modules/search (Depends-on, Makefile.am): Likewise.
47431         * modules/signal (Depends-on, Makefile.am): Likewise.
47432         * modules/spawn (Depends-on, Makefile.am): Likewise.
47433         * modules/stdlib (Depends-on, Makefile.am): Likewise.
47434         * modules/string (Depends-on, Makefile.am): Likewise.
47435         * modules/strings (Depends-on, Makefile.am): Likewise.
47436         * modules/sys_file (Depends-on, Makefile.am): Likewise.
47437         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
47438         * modules/sys_select (Depends-on, Makefile.am): Likewise.
47439         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
47440         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
47441         * modules/sys_times (Depends-on, Makefile.am): Likewise.
47442         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
47443         * modules/wchar (Depends-on, Makefile.am): Likewise.
47444         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
47445         should be poisoned.
47446         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
47447         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
47448         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
47449         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
47450         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
47451         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
47452         * m4/math_h.m4 (gl_MATH_H): Likewise.
47453         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
47454         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
47455         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
47456         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
47457         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
47458         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
47459         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
47460         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
47461         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
47462         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47463         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
47464         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
47465         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
47466         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
47467         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
47468         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
47469         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
47470         GL_LINK_WARNING.
47471         * lib/ctype.in.h: Likewise.
47472         * lib/dirent.in.h: Likewise.
47473         * lib/fcntl.in.h: Likewise.
47474         * lib/inttypes.in.h: Likewise.
47475         * lib/langinfo.in.h: Likewise.
47476         * lib/locale.in.h: Likewise.
47477         * lib/math.in.h: Likewise.
47478         * lib/search.in.h: Likewise.
47479         * lib/signal.in.h: Likewise.
47480         * lib/spawn.in.h: Likewise.
47481         * lib/stdio.in.h: Likewise.
47482         * lib/stdlib.in.h: Likewise.
47483         * lib/string.in.h: Likewise.
47484         * lib/strings.in.h: Likewise.
47485         * lib/sys_file.in.h: Likewise.
47486         * lib/sys_ioctl.in.h: Likewise.
47487         * lib/sys_select.in.h: Likewise.
47488         * lib/sys_socket.in.h: Likewise.
47489         * lib/sys_stat.in.h: Likewise.
47490         * lib/sys_times.in.h: Likewise.
47491         * lib/sys_utsname.in.h: Likewise.
47492         * lib/unistd.in.h: Likewise.
47493         * lib/wchar.in.h: Likewise.
47495 2010-01-20  Bruno Haible  <bruno@clisp.org>
47497         Avoid duplicate -lm.
47498         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
47499         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
47500         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
47501         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
47502         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
47503         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
47504         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
47505         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
47506         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
47507         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
47508         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
47509         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
47510         Reported by Paolo Bonzini.
47512 2010-01-19  Bruno Haible  <bruno@clisp.org>
47514         langinfo, nl_langinfo: Relicense under LGPLv2+.
47515         * modules/langinfo (License): Change to LGPLv2+.
47516         * modules/nl_langinfo (License): Likewise.
47517         Patch by David Lutterkort <lutter@redhat.com>.
47519 2010-01-19  Bruno Haible  <bruno@clisp.org>
47521         Avoid compilation error with cc on OSF/1 5.1.
47522         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
47523         statement, not before.
47524         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47526 2010-01-18  Bruno Haible  <bruno@clisp.org>
47528         Avoid a link error due to the __printf__ symbol.
47529         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
47530         and 2.6.x.
47531         (__format__, __printf__): Remove definitions.
47532         * lib/argp-fmtstream.h: Likewise.
47533         * lib/argp.h: Likewise.
47534         * lib/error.h: Likewise.
47535         * lib/vasnprintf.h: Likewise.
47536         * lib/xprintf.h: Likewise.
47537         * lib/xvasprintf.h: Likewise.
47538         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47540 2010-01-18  Bruno Haible  <bruno@clisp.org>
47542         Tests for module 'tanl'.
47543         * modules/tanl-tests: New file.
47544         * tests/test-tanl.c: New file.
47546         Tests for module 'sqrtl'.
47547         * modules/sqrtl-tests: New file.
47548         * tests/test-sqrtl.c: New file.
47550         Tests for module 'sinl'.
47551         * modules/sinl-tests: New file.
47552         * tests/test-sinl.c: New file.
47554         Tests for module 'logl'.
47555         * modules/logl-tests: New file.
47556         * tests/test-logl.c: New file.
47558         Tests for module 'expl'.
47559         * modules/expl-tests: New file.
47560         * tests/test-expl.c: New file.
47562         Tests for module 'cosl'.
47563         * modules/cosl-tests: New file.
47564         * tests/test-cosl.c: New file.
47566         Tests for module 'atanl'.
47567         * modules/atanl-tests: New file.
47568         * tests/test-atanl.c: New file.
47570         Tests for module 'asinl'.
47571         * modules/asinl-tests: New file.
47572         * tests/test-asinl.c: New file.
47574         Tests for module 'acosl'.
47575         * modules/acosl-tests: New file.
47576         * tests/test-acosl.c: New file.
47578         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
47579         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
47580         tanl): Use the standard gnulib idiom.
47581         * lib/cosl.c: Don't include trigl.c and sincosl.c.
47582         * lib/sinl.c: Likewise.
47583         * lib/tanl.c: Don't include trigl.c.
47584         (kernel_tanl): Make static.
47585         * lib/sincosl.c: Include trigl.h first.
47586         * lib/trigl.c: Likewise.
47587         * m4/acosl.m4: New file.
47588         * m4/asinl.m4: New file.
47589         * m4/atanl.m4: New file.
47590         * m4/cosl.m4: New file.
47591         * m4/expl.m4: New file.
47592         * m4/logl.m4: New file.
47593         * m4/sinl.m4: New file.
47594         * m4/sqrtl.m4: New file.
47595         * m4/tanl.m4: New file.
47596         * m4/mathl.m4: Remove file.
47597         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
47598         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
47599         Don't initialize GNULIB_MATHL.
47600         * modules/acosl: New file.
47601         * modules/asinl: New file.
47602         * modules/atanl: New file.
47603         * modules/cosl: New file.
47604         * modules/expl: New file.
47605         * modules/logl: New file.
47606         * modules/sinl: New file.
47607         * modules/sqrtl: New file.
47608         * modules/tanl: New file.
47609         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
47610         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
47611         substitute GNULIB_MATHL.
47612         * modules/mathl: Rewritten.
47613         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
47614         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
47615         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
47616         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
47617         * doc/posix-functions/expl.texi: Mention the 'expl' module.
47618         * doc/posix-functions/logl.texi: Mention the 'logl' module.
47619         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
47620         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
47621         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
47623 2010-01-18  Bruno Haible  <bruno@clisp.org>
47625         sqrt: Make gl_FUNC_SQRT requirable.
47626         * m4/sqrt.m4: New file.
47627         * modules/sqrt (Files): Add it.
47628         (configure.ac): Invoke gl_FUNC_SQRT.
47630 2010-01-18  Bruno Haible  <bruno@clisp.org>
47632         New modules for common <math.h> functions.
47633         * m4/mathfunc.m4: New file.
47634         * modules/acos: New file.
47635         * modules/asin: New file.
47636         * modules/atan: New file.
47637         * modules/atan2: New file.
47638         * modules/cbrt: New file.
47639         * modules/copysign: New file.
47640         * modules/cos: New file.
47641         * modules/cosh: New file.
47642         * modules/erf: New file.
47643         * modules/erfc: New file.
47644         * modules/exp: New file.
47645         * modules/fabs: New file.
47646         * modules/fmod: New file.
47647         * modules/hypot: New file.
47648         * modules/j0: New file.
47649         * modules/j1: New file.
47650         * modules/jn: New file.
47651         * modules/ldexp: New file.
47652         * modules/lgamma: New file.
47653         * modules/log: New file.
47654         * modules/log10: New file.
47655         * modules/log1p: New file.
47656         * modules/logb: New file.
47657         * modules/modf: New file.
47658         * modules/nextafter: New file.
47659         * modules/pow: New file.
47660         * modules/remainder: New file.
47661         * modules/rint: New file.
47662         * modules/sin: New file.
47663         * modules/sinh: New file.
47664         * modules/sqrt: New file.
47665         * modules/tan: New file.
47666         * modules/tanh: New file.
47667         * modules/y0: New file.
47668         * modules/y1: New file.
47669         * modules/yn: New file.
47670         * doc/posix-functions/acos.texi: Mention the 'acos' module.
47671         * doc/posix-functions/asin.texi: Mention the 'asin' module.
47672         * doc/posix-functions/atan.texi: Mention the 'atan' module.
47673         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
47674         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
47675         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
47676         * doc/posix-functions/cos.texi: Mention the 'cos' module.
47677         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
47678         * doc/posix-functions/erf.texi: Mention the 'erf' module.
47679         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
47680         * doc/posix-functions/exp.texi: Mention the 'exp' module.
47681         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
47682         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
47683         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
47684         * doc/posix-functions/j0.texi: Mention the 'j0' module.
47685         * doc/posix-functions/j1.texi: Mention the 'j1' module.
47686         * doc/posix-functions/jn.texi: Mention the 'jn' module.
47687         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
47688         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
47689         * doc/posix-functions/log.texi: Mention the 'log' module.
47690         * doc/posix-functions/log10.texi: Mention the 'log10' module.
47691         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
47692         * doc/posix-functions/logb.texi: Mention the 'logb' module.
47693         * doc/posix-functions/modf.texi: Mention the 'modf' module.
47694         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
47695         * doc/posix-functions/pow.texi: Mention the 'pow' module.
47696         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
47697         * doc/posix-functions/rint.texi: Mention the 'rint' module.
47698         * doc/posix-functions/sin.texi: Mention the 'sin' module.
47699         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
47700         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
47701         * doc/posix-functions/tan.texi: Mention the 'tan' module.
47702         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
47703         * doc/posix-functions/y0.texi: Mention the 'y0' module.
47704         * doc/posix-functions/y1.texi: Mention the 'y1' module.
47705         * doc/posix-functions/yn.texi: Mention the 'yn' module.
47707 2010-01-18  Jim Meyering  <meyering@redhat.com>
47709         ignore-value: relax license to LGPLv2+
47710         * modules/ignore-value (License): Relax to LGPLv2+.
47712         getdate: don't leak when TZ contains two or more '"'s
47713         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
47714         double quote in TZ after the first one.
47716         readtokens: do not leak internal token_lengths buffer
47717         * lib/readtokens.c (readtokens): Free the local, lengths,
47718         when the supplied "token_lengths" parameter is NULL.
47720 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47722         Fix a couple of missing LIBTHREAD link failures on AIX.
47723         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
47724         $(LIBTHREAD).
47725         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
47727         Link test-poll against INET_PTON_LIB.
47728         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
47729         for inet_pton on Solaris 10.
47731 2010-01-17  Bruno Haible  <bruno@clisp.org>
47733         unistdio/*-sprintf: Fix typo in module description.
47734         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
47735         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
47736         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
47737         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
47738         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
47739         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
47740         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
47741         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47743 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47745         gnulib-tool: fix filelist for AIX, HP-UX ksh.
47746         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
47747         variables in shell case patterns, for AIX and HP-UX ksh.
47749         Split large sed scripts, for HP-UX sed.
47750         * modules/stdio: Split sed scripts around 50 sed commands,
47751         to avoid HP-UX limit of 99 commands, in the near future.
47752         * modules/string: Likewise.
47753         * modules/unistd: Likewise.
47755         gnulib-tool: avoid writing in the current directory.
47756         * gnulib-tool (func_emit_lib_Makefile_am)
47757         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
47758         not in the current directory, so concurrent gnulib-tool
47759         instances do not interfere.
47761 2010-01-16  Jim Meyering  <meyering@redhat.com>
47763         doc: update users.txt
47764         * users.txt: Add grep.
47765         (diffutils, gzip): Update URLs.
47767 2010-01-12  Bruno Haible  <bruno@clisp.org>
47769         posix_spawn: Avoid test failure on Cygwin.
47770         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
47771         characters.
47772         Reported by Simon Josefsson.
47774 2010-01-12  Bruno Haible  <bruno@clisp.org>
47776         * tests/test-cond.c (main): When skipping the test, show the reason.
47778 2010-01-12  Simon Josefsson  <simon@josefsson.org>
47780         * lib/striconv.c (str_cd_iconv): Avoid if before free.
47782 2010-01-12  Simon Josefsson  <simon@josefsson.org>
47784         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
47785         VC_LIST_ALWAYS_EXCLUDE_REGEX.
47787 2010-01-12  Eric Blake  <ebb9@byu.net>
47789         build: guarantee AS_VAR_IF
47790         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
47791         (gl_AS_VAR_IF): Move...
47792         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
47793         Reported by Simon Josefsson.
47795 2010-01-12  Simon Josefsson  <simon@josefsson.org>
47797         * lib/stdio.in.h: Fix typo.
47799 2010-01-12  Simon Josefsson  <simon@josefsson.org>
47801         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
47802         libgpg-error.
47804 2010-01-12  Simon Josefsson  <simon@josefsson.org>
47806         * tests/test-xalloc-die.sh: Use $EXEEXT.
47808 2010-01-12  Simon Josefsson  <simon@josefsson.org>
47809             Bruno Haible  <bruno@clisp.org>
47811         getlogin, getlogin_r: Avoid test failure.
47812         * tests/test-getlogin.c: Include <stdio.h>.
47813         (main): Skip the test when the function fails because stdin is not a
47814         tty.
47815         * tests/test-getlogin_r.c: Include <stdio.h>.
47816         (main): Skip the test when the function fails because stdin is not a
47817         tty.
47819 2010-01-11  Eric Blake  <ebb9@byu.net>
47821         tests: avoid more large file warnings
47822         * tests/test-fflush.c: Avoid warning about ftell use.
47823         * tests/test-fseek.c: Avoid warning about fseek use.
47825 2010-01-10  Bruno Haible  <bruno@clisp.org>
47827         nproc: Work better on Linux when /proc and /sys are not mounted.
47828         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
47829         as lower bound when, on glibc/Linux systems,
47830         sysconf (_SC_NPROCESSORS_CONF) returns 1.
47831         Suggested by Pádraig Brady <P@draigbrady.com>.
47832         Reported by Dmitry V. Levin <ldv@altlinux.org>.
47834         nproc: Refactor.
47835         * lib/nproc.c (num_processors_via_affinity_mask): New function,
47836         extracted from num_processors.
47837         (num_processors): Call it.
47839 2010-01-11  Jim Meyering  <meyering@redhat.com>
47841         utimecmp: avoid new warning from upcoming gcc-4.5.0
47842         * lib/utimecmp.c (BILLION): Define using #define rather than an
47843         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
47845 2010-01-11  Eric Blake  <ebb9@byu.net>
47847         math: add portability warnings for classification macros
47848         * modules/math (Depends-on): Add warn-on-use.
47849         (Makefile.am): Provide new substitutions.
47850         * m4/math_h.m4 (gl_MATH_H): Require inline.
47851         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
47852         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
47853         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
47854         implement warnings.
47856         unistd: warn on use of environ without module
47857         * modules/unistd (Depends-on): Add warn-on-use.
47858         (Makefile.am): Provide new substitutions.
47859         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
47860         * lib/unistd.in.h (environ): Wrap with a warning helper function.
47862         stdio: warn on suspicious uses
47863         * modules/stdio (Depends-on): Add warn-on-use.
47864         (Makefile.am): Provide new substitutions.
47865         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
47866         fseeko.
47867         * lib/stdio.in.h (gets): Always warn on use.
47868         (fseek, ftell): Adjust when warnings are issued, and honor
47869         _GL_NO_LARGE_FILES as a way to silence the warning.
47870         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
47871         any warning about large file offsets.
47872         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
47873         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
47874         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
47875         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
47876         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
47877         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
47878         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
47879         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
47881         warn-on-use: new module
47882         * modules/warn-on-use: New file.
47883         * build-aux/warn-on-use.h: Likewise.
47884         * m4/warn-on-use.m4: Likewise.
47885         * MODULES.html.sh (Support for building): Mention it.
47887 2010-01-10  Bruno Haible  <bruno@clisp.org>
47889         Tests for module 'unistr/u32-strdup'.
47890         * modules/unistr/u32-strdup-tests: New file.
47891         * tests/unistr/test-u32-strdup.c: New file.
47893         Tests for module 'unistr/u16-strdup'.
47894         * modules/unistr/u16-strdup-tests: New file.
47895         * tests/unistr/test-u16-strdup.c: New file.
47897         Tests for module 'unistr/u8-strdup'.
47898         * modules/unistr/u8-strdup-tests: New file.
47899         * tests/unistr/test-u8-strdup.c: New file.
47900         * tests/unistr/test-strdup.h: New file.
47902         Tests for module 'unistr/u32-strncmp'.
47903         * modules/unistr/u32-strncmp-tests: New file.
47904         * tests/unistr/test-u32-strncmp.c: New file.
47906         Tests for module 'unistr/u16-strncmp'.
47907         * modules/unistr/u16-strncmp-tests: New file.
47908         * tests/unistr/test-u16-strncmp.c: New file.
47910         Tests for module 'unistr/u8-strncmp'.
47911         * modules/unistr/u8-strncmp-tests: New file.
47912         * tests/unistr/test-u8-strncmp.c: New file.
47913         * tests/unistr/test-strncmp.h: New file.
47915         Tests for module 'unistr/u32-strcoll'.
47916         * modules/unistr/u32-strcoll-tests: New file.
47917         * tests/unistr/test-u32-strcoll.c: New file.
47919         Tests for module 'unistr/u16-strcoll'.
47920         * modules/unistr/u16-strcoll-tests: New file.
47921         * tests/unistr/test-u16-strcoll.c: New file.
47923         Tests for module 'unistr/u8-strcoll'.
47924         * modules/unistr/u8-strcoll-tests: New file.
47925         * tests/unistr/test-u8-strcoll.c: New file.
47927         Tests for module 'unistr/u32-strcmp'.
47928         * modules/unistr/u32-strcmp-tests: New file.
47929         * tests/unistr/test-u32-strcmp.c: New file.
47930         * tests/unistr/test-u32-strcmp.h: New file.
47932         Tests for module 'unistr/u16-strcmp'.
47933         * modules/unistr/u16-strcmp-tests: New file.
47934         * tests/unistr/test-u16-strcmp.c: New file.
47935         * tests/unistr/test-u16-strcmp.h: New file.
47937         Tests for module 'unistr/u8-strcmp'.
47938         * modules/unistr/u8-strcmp-tests: New file.
47939         * tests/unistr/test-u8-strcmp.c: New file.
47940         * tests/unistr/test-u8-strcmp.h: New file.
47941         * tests/unistr/test-strcmp.h: New file.
47943         Tests for module 'unistr/u32-strncat'.
47944         * modules/unistr/u32-strncat-tests: New file.
47945         * tests/unistr/test-u32-strncat.c: New file.
47947         Tests for module 'unistr/u16-strncat'.
47948         * modules/unistr/u16-strncat-tests: New file.
47949         * tests/unistr/test-u16-strncat.c: New file.
47951         Tests for module 'unistr/u8-strncat'.
47952         * modules/unistr/u8-strncat-tests: New file.
47953         * tests/unistr/test-u8-strncat.c: New file.
47954         * tests/unistr/test-strncat.h: New file.
47956         Tests for module 'unistr/u32-strcat'.
47957         * modules/unistr/u32-strcat-tests: New file.
47958         * tests/unistr/test-u32-strcat.c: New file.
47960         Tests for module 'unistr/u16-strcat'.
47961         * modules/unistr/u16-strcat-tests: New file.
47962         * tests/unistr/test-u16-strcat.c: New file.
47964         Tests for module 'unistr/u8-strcat'.
47965         * modules/unistr/u8-strcat-tests: New file.
47966         * tests/unistr/test-u8-strcat.c: New file.
47967         * tests/unistr/test-strcat.h: New file.
47969         Tests for module 'unistr/u32-stpncpy'.
47970         * modules/unistr/u32-stpncpy-tests: New file.
47971         * tests/unistr/test-u32-stpncpy.c: New file.
47973         Tests for module 'unistr/u16-stpncpy'.
47974         * modules/unistr/u16-stpncpy-tests: New file.
47975         * tests/unistr/test-u16-stpncpy.c: New file.
47977         Tests for module 'unistr/u8-stpncpy'.
47978         * modules/unistr/u8-stpncpy-tests: New file.
47979         * tests/unistr/test-u8-stpncpy.c: New file.
47980         * tests/unistr/test-stpncpy.h: New file.
47982         Tests for module 'unistr/u32-strncpy'.
47983         * modules/unistr/u32-strncpy-tests: New file.
47984         * tests/unistr/test-u32-strncpy.c: New file.
47986         Tests for module 'unistr/u16-strncpy'.
47987         * modules/unistr/u16-strncpy-tests: New file.
47988         * tests/unistr/test-u16-strncpy.c: New file.
47990         Tests for module 'unistr/u8-strncpy'.
47991         * modules/unistr/u8-strncpy-tests: New file.
47992         * tests/unistr/test-u8-strncpy.c: New file.
47993         * tests/unistr/test-strncpy.h: New file.
47995         Tests for module 'unistr/u32-stpcpy'.
47996         * modules/unistr/u32-stpcpy-tests: New file.
47997         * tests/unistr/test-u32-stpcpy.c: New file.
47999         Tests for module 'unistr/u16-stpcpy'.
48000         * modules/unistr/u16-stpcpy-tests: New file.
48001         * tests/unistr/test-u16-stpcpy.c: New file.
48003         Tests for module 'unistr/u8-stpcpy'.
48004         * modules/unistr/u8-stpcpy-tests: New file.
48005         * tests/unistr/test-u8-stpcpy.c: New file.
48006         * tests/unistr/test-stpcpy.h: New file.
48008         Tests for module 'unistr/u32-strcpy'.
48009         * modules/unistr/u32-strcpy-tests: New file.
48010         * tests/unistr/test-u32-strcpy.c: New file.
48012         Tests for module 'unistr/u16-strcpy'.
48013         * modules/unistr/u16-strcpy-tests: New file.
48014         * tests/unistr/test-u16-strcpy.c: New file.
48016         Tests for module 'unistr/u8-strcpy'.
48017         * modules/unistr/u8-strcpy-tests: New file.
48018         * tests/unistr/test-u8-strcpy.c: New file.
48019         * tests/unistr/test-strcpy.h: New file.
48021         Tests for module 'unistr/u32-strnlen'.
48022         * modules/unistr/u32-strnlen-tests: New file.
48023         * tests/unistr/test-u32-strnlen.c: New file.
48025         Tests for module 'unistr/u16-strnlen'.
48026         * modules/unistr/u16-strnlen-tests: New file.
48027         * tests/unistr/test-u16-strnlen.c: New file.
48029         Tests for module 'unistr/u8-strnlen'.
48030         * modules/unistr/u8-strnlen-tests: New file.
48031         * tests/unistr/test-u8-strnlen.c: New file.
48032         * tests/unistr/test-strnlen.h: New file.
48034         Tests for module 'unistr/u32-strlen'.
48035         * modules/unistr/u32-strlen-tests: New file.
48036         * tests/unistr/test-u32-strlen.c: New file.
48038         Tests for module 'unistr/u16-strlen'.
48039         * modules/unistr/u16-strlen-tests: New file.
48040         * tests/unistr/test-u16-strlen.c: New file.
48042         Tests for module 'unistr/u8-strlen'.
48043         * modules/unistr/u8-strlen-tests: New file.
48044         * tests/unistr/test-u8-strlen.c: New file.
48046         Tests for module 'unistr/u32-prev'.
48047         * modules/unistr/u32-prev-tests: New file.
48048         * tests/unistr/test-u32-prev.c: New file.
48050         Tests for module 'unistr/u16-prev'.
48051         * modules/unistr/u16-prev-tests: New file.
48052         * tests/unistr/test-u16-prev.c: New file.
48054         Tests for module 'unistr/u8-prev'.
48055         * modules/unistr/u8-prev-tests: New file.
48056         * tests/unistr/test-u8-prev.c: New file.
48058         Tests for module 'unistr/u32-next'.
48059         * modules/unistr/u32-next-tests: New file.
48060         * tests/unistr/test-u32-next.c: New file.
48062         Tests for module 'unistr/u16-next'.
48063         * modules/unistr/u16-next-tests: New file.
48064         * tests/unistr/test-u16-next.c: New file.
48066         Tests for module 'unistr/u8-next'.
48067         * modules/unistr/u8-next-tests: New file.
48068         * tests/unistr/test-u8-next.c: New file.
48070         Tests for module 'unistr/u32-strmbtouc'.
48071         * modules/unistr/u32-strmbtouc-tests: New file.
48072         * tests/unistr/test-u32-strmbtouc.c: New file.
48074         Tests for module 'unistr/u16-strmbtouc'.
48075         * modules/unistr/u16-strmbtouc-tests: New file.
48076         * tests/unistr/test-u16-strmbtouc.c: New file.
48078         Tests for module 'unistr/u8-strmbtouc'.
48079         * modules/unistr/u8-strmbtouc-tests: New file.
48080         * tests/unistr/test-u8-strmbtouc.c: New file.
48082         Tests for module 'unistr/u32-strmblen'.
48083         * modules/unistr/u32-strmblen-tests: New file.
48084         * tests/unistr/test-u32-strmblen.c: New file.
48086         Tests for module 'unistr/u16-strmblen'.
48087         * modules/unistr/u16-strmblen-tests: New file.
48088         * tests/unistr/test-u16-strmblen.c: New file.
48090         Tests for module 'unistr/u8-strmblen'.
48091         * modules/unistr/u8-strmblen-tests: New file.
48092         * tests/unistr/test-u8-strmblen.c: New file.
48094         Tests for module 'unistr/u32-cpy-alloc'.
48095         * modules/unistr/u32-cpy-alloc-tests: New file.
48096         * tests/unistr/test-u32-cpy-alloc.c: New file.
48098         Tests for module 'unistr/u16-cpy-alloc'.
48099         * modules/unistr/u16-cpy-alloc-tests: New file.
48100         * tests/unistr/test-u16-cpy-alloc.c: New file.
48102         Tests for module 'unistr/u8-cpy-alloc'.
48103         * modules/unistr/u8-cpy-alloc-tests: New file.
48104         * tests/unistr/test-u8-cpy-alloc.c: New file.
48105         * tests/unistr/test-cpy-alloc.h: New file.
48107         Tests for module 'unistr/u32-mbsnlen'.
48108         * modules/unistr/u32-mbsnlen-tests: New file.
48109         * tests/unistr/test-u32-mbsnlen.c: New file.
48111         Tests for module 'unistr/u16-mbsnlen'.
48112         * modules/unistr/u16-mbsnlen-tests: New file.
48113         * tests/unistr/test-u16-mbsnlen.c: New file.
48115         Tests for module 'unistr/u8-mbsnlen'.
48116         * modules/unistr/u8-mbsnlen-tests: New file.
48117         * tests/unistr/test-u8-mbsnlen.c: New file.
48119         Tests for module 'unistr/u32-chr'.
48120         * modules/unistr/u32-chr-tests: New file.
48121         * tests/unistr/test-u32-chr.c: New file.
48123         Tests for module 'unistr/u16-chr'.
48124         * modules/unistr/u16-chr-tests: New file.
48125         * tests/unistr/test-u16-chr.c: New file.
48127         Tests for module 'unistr/u8-chr'.
48128         * modules/unistr/u8-chr-tests: New file.
48129         * tests/unistr/test-u8-chr.c: New file.
48130         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
48132         Tests for module 'unistr/u32-cmp2'.
48133         * modules/unistr/u32-cmp2-tests: New file.
48134         * tests/unistr/test-u32-cmp2.c: New file.
48136         Tests for module 'unistr/u16-cmp2'.
48137         * modules/unistr/u16-cmp2-tests: New file.
48138         * tests/unistr/test-u16-cmp2.c: New file.
48140         Tests for module 'unistr/u8-cmp2'.
48141         * modules/unistr/u8-cmp2-tests: New file.
48142         * tests/unistr/test-u8-cmp2.c: New file.
48143         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
48145         Tests for module 'unistr/u32-cmp'.
48146         * modules/unistr/u32-cmp-tests: New file.
48147         * tests/unistr/test-u32-cmp.c: New file.
48149         Tests for module 'unistr/u16-cmp'.
48150         * modules/unistr/u16-cmp-tests: New file.
48151         * tests/unistr/test-u16-cmp.c: New file.
48153         Tests for module 'unistr/u8-cmp'.
48154         * modules/unistr/u8-cmp-tests: New file.
48155         * tests/unistr/test-u8-cmp.c: New file.
48156         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
48158         Tests for module 'unistr/u32-set'.
48159         * modules/unistr/u32-set-tests: New file.
48160         * tests/unistr/test-u32-set.c: New file.
48162         Tests for module 'unistr/u16-set'.
48163         * modules/unistr/u16-set-tests: New file.
48164         * tests/unistr/test-u16-set.c: New file.
48166         Tests for module 'unistr/u8-set'.
48167         * modules/unistr/u8-set-tests: New file.
48168         * tests/unistr/test-u8-set.c: New file.
48169         * tests/unistr/test-set.h: New file.
48171         Tests for module 'unistr/u32-move'.
48172         * modules/unistr/u32-move-tests: New file.
48173         * tests/unistr/test-u32-move.c: New file.
48175         Tests for module 'unistr/u16-move'.
48176         * modules/unistr/u16-move-tests: New file.
48177         * tests/unistr/test-u16-move.c: New file.
48179         Tests for module 'unistr/u8-move'.
48180         * modules/unistr/u8-move-tests: New file.
48181         * tests/unistr/test-u8-move.c: New file.
48182         * tests/unistr/test-move.h: New file.
48184         Tests for module 'unistr/u32-cpy'.
48185         * modules/unistr/u32-cpy-tests: New file.
48186         * tests/unistr/test-u32-cpy.c: New file.
48188         Tests for module 'unistr/u16-cpy'.
48189         * modules/unistr/u16-cpy-tests: New file.
48190         * tests/unistr/test-u16-cpy.c: New file.
48192         Tests for module 'unistr/u8-cpy'.
48193         * modules/unistr/u8-cpy-tests: New file.
48194         * tests/unistr/test-u8-cpy.c: New file.
48195         * tests/unistr/test-cpy.h: New file.
48197 2010-01-09  Bruno Haible  <bruno@clisp.org>
48199         Tests for module 'unistr/u32-uctomb'.
48200         * modules/unistr/u32-uctomb-tests: New file.
48201         * tests/unistr/test-u32-uctomb.c: New file.
48203         Tests for module 'unistr/u16-uctomb'.
48204         * modules/unistr/u16-uctomb-tests: New file.
48205         * tests/unistr/test-u16-uctomb.c: New file.
48207         Tests for module 'unistr/u8-uctomb'.
48208         * modules/unistr/u8-uctomb-tests: New file.
48209         * tests/unistr/test-u8-uctomb.c: New file.
48211         Tests for module 'unistr/u32-mbtoucr'.
48212         * modules/unistr/u32-mbtoucr-tests: New file.
48213         * tests/unistr/test-u32-mbtoucr.c: New file.
48215         Tests for module 'unistr/u16-mbtoucr'.
48216         * modules/unistr/u16-mbtoucr-tests: New file.
48217         * tests/unistr/test-u16-mbtoucr.c: New file.
48219         Tests for module 'unistr/u8-mbtoucr'.
48220         * modules/unistr/u8-mbtoucr-tests: New file.
48221         * tests/unistr/test-u8-mbtoucr.c: New file.
48223         Tests for module 'unistr/u32-mbtouc'.
48224         * modules/unistr/u32-mbtouc-tests: New file.
48225         * tests/unistr/test-u32-mbtouc.c: New file.
48227         Tests for module 'unistr/u16-mbtouc'.
48228         * modules/unistr/u16-mbtouc-tests: New file.
48229         * tests/unistr/test-u16-mbtouc.c: New file.
48231         Tests for module 'unistr/u8-mbtouc'.
48232         * modules/unistr/u8-mbtouc-tests: New file.
48233         * tests/unistr/test-u8-mbtouc.c: New file.
48235         Tests for module 'unistr/u32-mbtouc-unsafe'.
48236         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
48237         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
48238         * tests/unistr/test-u32-mbtouc.h: New file.
48240         Tests for module 'unistr/u16-mbtouc-unsafe'.
48241         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
48242         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
48243         * tests/unistr/test-u16-mbtouc.h: New file.
48245         Tests for module 'unistr/u8-mbtouc-unsafe'.
48246         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
48247         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
48248         * tests/unistr/test-u8-mbtouc.h: New file.
48250         Tests for module 'unistr/u32-mblen'.
48251         * modules/unistr/u32-mblen-tests: New file.
48252         * tests/unistr/test-u32-mblen.c: New file.
48254         Tests for module 'unistr/u16-mblen'.
48255         * modules/unistr/u16-mblen-tests: New file.
48256         * tests/unistr/test-u16-mblen.c: New file.
48258         Tests for module 'unistr/u8-mblen'.
48259         * modules/unistr/u8-mblen-tests: New file.
48260         * tests/unistr/test-u8-mblen.c: New file.
48262         Tests for module 'unistr/u32-to-u16'.
48263         * modules/unistr/u32-to-u16-tests: New file.
48264         * tests/unistr/test-u32-to-u16.c: New file.
48266         Tests for module 'unistr/u32-to-u8'.
48267         * modules/unistr/u32-to-u8-tests: New file.
48268         * tests/unistr/test-u32-to-u8.c: New file.
48270         Tests for module 'unistr/u16-to-u32'.
48271         * modules/unistr/u16-to-u32-tests: New file.
48272         * tests/unistr/test-u16-to-u32.c: New file.
48274         Tests for module 'unistr/u16-to-u8'.
48275         * modules/unistr/u16-to-u8-tests: New file.
48276         * tests/unistr/test-u16-to-u8.c: New file.
48278         Tests for module 'unistr/u8-to-u32'.
48279         * modules/unistr/u8-to-u32-tests: New file.
48280         * tests/unistr/test-u8-to-u32.c: New file.
48282         Tests for module 'unistr/u8-to-u16'.
48283         * modules/unistr/u8-to-u16-tests: New file.
48284         * tests/unistr/test-u8-to-u16.c: New file.
48286         Tests for module 'unistr/u32-check'.
48287         * modules/unistr/u32-check-tests: New file.
48288         * tests/unistr/test-u32-check.c: New file.
48290         Tests for module 'unistr/u16-check'.
48291         * modules/unistr/u16-check-tests: New file.
48292         * tests/unistr/test-u16-check.c: New file.
48294         Tests for module 'unistr/u8-check'.
48295         * modules/unistr/u8-check-tests: New file.
48296         * tests/unistr/test-u8-check.c: New file.
48298         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
48299         (category_equals): New function.
48300         (main): Add more tests.
48301         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
48303         * tests/unictype/test-bidi_byname.c (main): Add more tests.
48305 2010-01-10  Bruno Haible  <bruno@clisp.org>
48307         unistr/u*-strcoll: Try harder to distinguish different strings.
48308         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
48309         compare s1 and s2 to see if they are different.
48311 2010-01-10  Bruno Haible  <bruno@clisp.org>
48313         unistr/u*-stpncpy: Fix the return value.
48314         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
48315         description of the return value consistent with stpncpy in glibc.
48316         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
48317         written non-NUL unit.
48319 2010-01-10  Bruno Haible  <bruno@clisp.org>
48321         unistr/u*-next: Add missing dependencies.
48322         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
48323         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
48324         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
48326 2010-01-10  Bruno Haible  <bruno@clisp.org>
48328         unistr/u8-mbsnlen: Fix return value for incomplete character.
48329         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
48330         u8_mblen.
48331         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
48332         Remove unistr/u8-mblen.
48333         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
48334         u16_mblen.
48335         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
48336         Remove unistr/u16-mblen.
48338 2010-01-10  Bruno Haible  <bruno@clisp.org>
48340         wchar: Fix compilation error when <wchar.h> is used from coreutils.
48341         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
48342         Reported by Brian Gough <bjg@gnu.org> and
48343         Chris Clayton <chris2553@googlemail.com> via
48344         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
48346 2010-01-09  Bruno Haible  <bruno@clisp.org>
48348         unistr/u16-to-u32: Reject invalid input.
48349         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
48350         u16_mbtouc.
48351         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
48352         Remove unistr/u16-mbtouc.
48354         unistr/u16-to-u8: Reject invalid input.
48355         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
48356         u16_mbtouc.
48357         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
48358         Remove unistr/u16-mbtouc.
48360         unistr/u8-to-u32: Reject invalid input.
48361         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
48362         u8_mbtouc.
48363         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
48364         Remove unistr/u8-mbtouc.
48366         unistr/u8-to-u16: Reject invalid input.
48367         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
48368         u8_mbtouc.
48369         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
48370         Remove unistr/u8-mbtouc.
48372 2010-01-09  Bruno Haible  <bruno@clisp.org>
48374         Tests for module 'getlogin'.
48375         * modules/getlogin-tests: New file.
48376         * tests/test-getlogin.c: New file.
48378         New module 'getlogin'.
48379         * lib/unistd.in.h (getlogin): New declaration.
48380         * lib/getlogin.c: New file.
48381         * m4/getlogin.m4: New file.
48382         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
48383         HAVE_GETLOGIN.
48384         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
48385         HAVE_GETLOGIN.
48386         * modules/getlogin: New file.
48387         * doc/posix-functions/getlogin.texi: Mention the new module.
48388         Reported by John W. Eaton <jwe@gnu.org>.
48390 2010-01-09  Bruno Haible  <bruno@clisp.org>
48392         getlogin_r: Support for native Windows.
48393         * lib/getlogin_r.c: Include <windows.h>
48394         (getlogin_r): Implement for native Windows.
48395         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
48396         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
48397         via John W. Eaton <jwe@gnu.org>.
48399 2010-01-09  Bruno Haible  <bruno@clisp.org>
48401         getlogin_r: Small fixes.
48402         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
48403         succeeds.
48404         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
48405         before testing whether getlogin_r is declared. No need to set
48406         HAVE_DECL_GETLOGIN_R to 1.
48407         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
48409 2010-01-09  Bruno Haible  <bruno@clisp.org>
48411         * lib/unistd.in.h (getlogin_r): Add comment.
48413 2010-01-09  Bruno Haible  <bruno@clisp.org>
48415         Tests for module 'getlogin_r'.
48416         * modules/getlogin_r-tests: New file.
48417         * tests/test-getlogin_r.c: New file.
48419 2010-01-09  Jim Meyering  <meyering@redhat.com>
48421         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
48422         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
48423         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
48425 2010-01-08  Simon Josefsson  <simon@josefsson.org>
48427         * lib/dup2.c (rpl_dup2): Improve comment.
48429 2010-01-08  Eric Blake  <ebb9@byu.net>
48431         maint.mk: allow packages to add makefile @@ exceptions
48432         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
48433         (sc_makefile_check): Rename...
48434         (sc_makefile_at_at_check): ...to this, and use hook.
48436         dup2: work around mingw bug
48437         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
48438         Reported by Simon Josefsson.
48440 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
48442         glob: Fix C++ compilation.
48443         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
48444         C++.
48446 2010-01-07  Bruno Haible  <bruno@clisp.org>
48448         Fix indentation of wctype.in.h, broken since 2007-01-06.
48449         * lib/wctype.in.h: Fix indentation of preprocessor directives.
48451 2010-01-07  Bruno Haible  <bruno@clisp.org>
48453         mbslen: Avoid collision with system function.
48454         * lib/string.in.h [MirBSD]: Include <wchar.h>.
48455         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
48456         * m4/mbslen.m4: New file.
48457         * modules/mbslen (Files): Add it.
48458         (configure.ac): Invoke gl_MBSLEN.
48459         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
48460         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
48461         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
48462         via Ian Beckwith <ianb@erislabs.net>.
48464 2010-01-07  Bruno Haible  <bruno@clisp.org>
48466         dirent: Document the last fix.
48467         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
48469 2010-01-07  Bruno Haible  <bruno@clisp.org>
48471         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
48472         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
48473         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
48474         va_list are defined.
48475         * doc/posix-headers/stdio.texi: Document the bug of missing types.
48476         Reported by Eric Blake.
48478 2010-01-07  Bruno Haible  <bruno@clisp.org>
48480         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
48481         * modules/xlist (Depends-on): Add 'list',
48482         * modules/xoset (Depends-on): Add 'oset'.
48483         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48485 2010-01-07  Bruno Haible  <bruno@clisp.org>
48487         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
48488         * doc/posix-functions/strncasecmp.texi: Likewise.
48490 2010-01-07  Bruno Haible  <bruno@clisp.org>
48492         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
48494 2010-01-07  John W. Eaton  <jwe@octave.org>
48496         wctype: allow C++ use
48497         * lib/wctype.in.h: Add extern "C" block for C++.
48499 2010-01-06  Eric Blake  <ebb9@byu.net>
48501         maint.mk: detect incorrect GFDL usage
48502         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
48504 2010-01-06  Jim Meyering  <meyering@redhat.com>
48505         and Eric Blake  <ebb9@byu.net>
48507         maint.mk: ignore multi-line copyright in NEWS
48508         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
48510 2010-01-06  Eric Blake  <ebb9@byu.net>
48512         select: add missing dependency
48513         * modules/select-tests (Depends-on): Move sockets dependency...
48514         * modules/select (Depends-on): ...here.
48515         Reported by Ian Beckwith.
48517         doc: regenerate INSTALL
48518         * doc/INSTALL: Reflect recent autoconf update.
48519         * doc/INSTALL.ISO: Likewise.
48520         * doc/INSTALL.UTF-8: Likewise.
48522         pread: fix compilation on glibc
48523         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
48524         Reported by Ralf Wildenhues.
48526         dirent: fix test failure
48527         * lib/dirent.in.h (includes): Guarantee ino_t.
48528         Reported by Ralf Wildenhues.
48530 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
48532         linkat, renameat: avoid bad free
48533         * lib/at-func2.c (at_func2): Fix typo.
48534         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
48536 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48538         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
48539         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
48540         to avoid failure of symlink test later.
48542 2010-01-06  Eric Blake  <ebb9@byu.net>
48544         stdio, unistd: guarantee ssize_t
48545         * lib/unistd.in.h (includes): Ensure that types required by POSIX
48546         2008 are exposed when needed.
48547         * lib/stdio.in.h (includes): Likewise.
48548         Reported by Ralf Wildenhues.
48550 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
48552         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
48553         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
48554         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
48556 2010-01-06  Jim Meyering  <meyering@redhat.com>
48558         readtokens: this module *does* require xalloc.h
48559         It uses only functions that were omitted by the old syntax-check rule.
48560         * lib/readtokens.c: Include "xalloc.h" once again.
48561         * modules/readtokens (Depends-on): Add xalloc.
48562         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
48564 2010-01-05  Eric Blake  <ebb9@byu.net>
48566         maint: support 'make announcement' from a VPATH build
48567         * top/maint.mk (announcement): Look for correct NEWS file.
48569 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
48571         utimens (fdutimens): ignore a negative FD, per contract
48572         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
48573         when we have a valid file descriptor.  Otherwise, using a brand
48574         new glibc (with just-patched futimens that now fails with EBADF)
48575         would cause this function to fail with ENOSYS.
48576         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
48577         See also http://bugzilla.redhat.com/552320.
48579 2010-01-05  Eric Blake  <ebb9@byu.net>
48581         strcase: document what it provides
48582         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
48583         gnulib module.
48584         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
48585         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
48587 2010-01-05  Jim Meyering  <meyering@redhat.com>
48589         maint: remove useless inclusions of "xalloc.h"
48590         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
48591         * lib/readtokens.c: Likewise.
48592         * lib/same.c: Likewise.
48593         * modules/getloadavg (Depends-on): Remove xalloc.
48594         * modules/readtokens: Likewise.
48595         * modules/same: Likewise.
48597         maint.mk: include 4 more function names in alloca.h-checking regexp
48598         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
48599         regexp.  Before, we would give a false-positive (saying alloca.h
48600         is included unnecessarily) when the only uses involved omitted symbols.
48602         xalloc.h: use consistent formatting
48603         * lib/xalloc.h: Move declarations to start in the first column.
48605 2010-01-05  Eric Blake  <ebb9@byu.net>
48607         mkdir: avoid xalloc
48608         * lib/mkdir.c (includes): Drop unused header.
48609         Reported by John W. Eaton.
48611 2010-01-04  Jim Meyering  <meyering@redhat.com>
48613         nl_langinfo: avoid configure-time syntax error
48614         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
48615         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
48616         the empty string.  Don't let that provoke a shell syntax error.
48618         regcomp, regexec, fnmatch: avoid array bounds read error
48619         * lib/regcomp.c (build_equiv_class): From glibc:
48620         Use only the low 24 bits of a findidx return value as an index
48621         into the weights array.  Patch by Ulrich Drepper:
48622         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
48623         * lib/regexec.c (check_node_accept_bytes): Likewise.
48624         * lib/fnmatch_loop.c (FCT): Likewise.
48626         regcomp: skip collseq lookup when there are no rules
48627         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
48628         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
48630         regcomp: recognize ill-formed { } expressions
48631         * lib/regcomp.c (parse_dup_op): From glibc:
48632         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
48634         regcomp: fix typo in comment
48635         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
48636         s/satisfy/satisfies/.
48638         regcomp: sync from glibc: remove dead store
48639         * lib/regcomp.c (duplicate_node_closure): Remove useless
48640         search_duplicated_node call and dead store.
48642         regcomp: sync from glibc; always use nl_langinfo
48643         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
48644         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
48645         * modules/regex (Depends-on): Add nl_langinfo.
48647 2010-01-04  Eric Blake  <ebb9@byu.net>
48649         fdopendir: fix configure test
48650         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
48652 2010-01-01  Bruno Haible  <bruno@clisp.org>
48654         wchar: Remove unused configure check.
48655         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
48657 2010-01-01  Eric Blake  <ebb9@byu.net>
48659         headers: make check of system header explicit
48660         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
48661         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
48662         ourselves.
48663         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
48664         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
48665         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
48666         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
48667         internals.
48668         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
48669         missing.
48670         Suggested by Bruno Haible.
48672 2010-01-01  Jim Meyering  <meyering@redhat.com>
48674         ChangeLog: tweak to eliminate unnecessary copyright line
48675         * ChangeLog: Remove a copyright line that was mistakenly updated
48676         by today's update-copyright run.  Reported by Eric Blake.
48678         test-update-copyright: don't let envvar setting cause test failure
48679         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
48681 2010-01-01  Bruno Haible  <bruno@clisp.org>
48683         localename: Avoid gcc warning.
48684         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
48685         function if it is not used.
48687 2010-01-01  Jim Meyering  <meyering@redhat.com>
48689         update nearly all FSF copyright year lists to include 2010
48690         Use the same procedure as for 2009, outlined in
48691         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
48693         version-etc: set COPYRIGHT_YEAR to 2010
48694         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
48696 2009-12-31  Eric Blake  <ebb9@byu.net>
48698         doc: correct availability of cygwin 1.5.x getopt
48699         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
48700         variables.
48701         * doc/posix-functions/opterr.texi (opterr): Likewise.
48702         * doc/posix-functions/optind.texi (optind): Likewise.
48703         * doc/posix-functions/optopt.texi (optopt): Likewise.
48704         * doc/posix-functions/tzname.texi (tzname): Likewise.
48706         openat: update maintainer
48707         * modules/openat (Maintainer): Add myself.
48709         utimens: avoid shadowing warning
48710         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
48711         buffers into one, to avoid shadowing, as well as avoiding a
48712         redundant stat.
48713         Reported by Jim Meyering.
48715         test-dup2: avoid compiler warning
48716         * tests/test-dup2.c (is_inheritable): Only define if used.
48718 2010-01-01  Bruno Haible  <bruno@clisp.org>
48720         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
48721         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
48722         defined, use wctomb instead of wcrtomb.
48724 2010-01-01  Bruno Haible  <bruno@clisp.org>
48726         iconv: Reject native Solaris iconv.
48727         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
48728         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
48730 2009-12-31  Bruno Haible  <bruno@clisp.org>
48732         * tests/test-signal.c (main): Remove test of 'SIG'.
48734 2009-12-31  Bruno Haible  <bruno@clisp.org>
48736         spawn: Fix incomplete fix.
48737         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
48738         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
48739         warnings for GNULIB_POSIXCHECK again.
48740         Reported by Eric Blake.
48742 2009-12-31  Bruno Haible  <bruno@clisp.org>
48744         Avoid namespace pollution on glibc systems.
48745         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
48746         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
48747         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
48748         glibc systems.
48750 2009-12-31  Bruno Haible  <bruno@clisp.org>
48752         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
48753         (gl_REPLACE_WCHAR_H): Turn into a no-op.
48754         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
48755         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
48756         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
48757         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
48758         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
48760 2009-12-31  Bruno Haible  <bruno@clisp.org>
48762         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
48763         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
48764         afterwards.
48766 2009-12-31  Bruno Haible  <bruno@clisp.org>
48768         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
48769         SYS_UTSNAME_H.
48771 2009-12-31  Bruno Haible  <bruno@clisp.org>
48773         spawn: Fix misapplied patch.
48774         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
48775         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
48776         warnings for GNULIB_POSIXCHECK.
48778 2009-12-31  Bruno Haible  <bruno@clisp.org>
48780         times: Update after sys_times changed.
48781         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
48782         * modules/times (Files): Add it.
48783         (configure.ac): Invoke gl_FUNC_TIMES.
48785 2009-12-31  Bruno Haible  <bruno@clisp.org>
48787         Use AC_C_INLINE where necessary.
48788         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
48789         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48790         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
48791         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
48792         * m4/mbfile.m4 (gl_MBFILE): Likewise.
48793         * m4/mbiter.m4 (gl_MBITER): Likewise.
48794         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
48795         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
48796         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
48797         * modules/u64 (configure.ac): Likewise.
48799 2009-12-31  Bruno Haible  <bruno@clisp.org>
48801         Use AC_C_INLINE instead of module 'inline' where possible.
48802         * modules/inline (Description): Clarify purpose.
48803         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
48804         * modules/count-one-bits (Depends-on): Remove inline.
48805         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
48806         * modules/openat (Depends-on): Remove inline.
48807         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
48808         instead of depending on module 'inline'.
48809         * modules/filevercmp (Depends-on, configure.ac): Likewise.
48810         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
48811         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
48812         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
48813         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
48814         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
48815         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
48816         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
48817         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
48818         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
48819         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
48820         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
48821         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
48822         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
48823         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
48824         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
48825         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
48826         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
48827         Likewise.
48828         * modules/unictype/property-ascii-hex-digit (Depends-on,
48829         configure.ac): Likewise.
48830         * modules/unictype/property-bidi-arabic-digit (Depends-on,
48831         configure.ac): Likewise.
48832         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
48833         configure.ac): Likewise.
48834         * modules/unictype/property-bidi-block-separator (Depends-on,
48835         configure.ac): Likewise.
48836         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
48837         configure.ac): Likewise.
48838         * modules/unictype/property-bidi-common-separator (Depends-on,
48839         configure.ac): Likewise.
48840         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
48841         Likewise.
48842         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
48843         configure.ac): Likewise.
48844         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
48845         configure.ac): Likewise.
48846         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
48847         configure.ac): Likewise.
48848         * modules/unictype/property-bidi-european-digit (Depends-on,
48849         configure.ac): Likewise.
48850         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
48851         configure.ac): Likewise.
48852         * modules/unictype/property-bidi-left-to-right (Depends-on,
48853         configure.ac): Likewise.
48854         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
48855         configure.ac): Likewise.
48856         * modules/unictype/property-bidi-other-neutral (Depends-on,
48857         configure.ac): Likewise.
48858         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
48859         Likewise.
48860         * modules/unictype/property-bidi-segment-separator (Depends-on,
48861         configure.ac): Likewise.
48862         * modules/unictype/property-bidi-whitespace (Depends-on,
48863         configure.ac): Likewise.
48864         * modules/unictype/property-combining (Depends-on, configure.ac):
48865         Likewise.
48866         * modules/unictype/property-composite (Depends-on, configure.ac):
48867         Likewise.
48868         * modules/unictype/property-currency-symbol (Depends-on,
48869         configure.ac): Likewise.
48870         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
48871         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
48872         Likewise.
48873         * modules/unictype/property-default-ignorable-code-point (Depends-on,
48874         configure.ac): Likewise.
48875         * modules/unictype/property-deprecated (Depends-on, configure.ac):
48876         Likewise.
48877         * modules/unictype/property-diacritic (Depends-on, configure.ac):
48878         Likewise.
48879         * modules/unictype/property-extender (Depends-on, configure.ac):
48880         Likewise.
48881         * modules/unictype/property-format-control (Depends-on, configure.ac):
48882         Likewise.
48883         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
48884         Likewise.
48885         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
48886         Likewise.
48887         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
48888         Likewise.
48889         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
48890         Likewise.
48891         * modules/unictype/property-hyphen (Depends-on, configure.ac):
48892         Likewise.
48893         * modules/unictype/property-id-continue (Depends-on, configure.ac):
48894         Likewise.
48895         * modules/unictype/property-id-start (Depends-on, configure.ac):
48896         Likewise.
48897         * modules/unictype/property-ideographic (Depends-on, configure.ac):
48898         Likewise.
48899         * modules/unictype/property-ids-binary-operator (Depends-on,
48900         configure.ac): Likewise.
48901         * modules/unictype/property-ids-trinary-operator (Depends-on,
48902         configure.ac): Likewise.
48903         * modules/unictype/property-ignorable-control (Depends-on,
48904         configure.ac): Likewise.
48905         * modules/unictype/property-iso-control (Depends-on, configure.ac):
48906         Likewise.
48907         * modules/unictype/property-join-control (Depends-on, configure.ac):
48908         Likewise.
48909         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
48910         Likewise.
48911         * modules/unictype/property-line-separator (Depends-on, configure.ac):
48912         Likewise.
48913         * modules/unictype/property-logical-order-exception (Depends-on,
48914         configure.ac): Likewise.
48915         * modules/unictype/property-lowercase (Depends-on, configure.ac):
48916         Likewise.
48917         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
48918         * modules/unictype/property-non-break (Depends-on, configure.ac):
48919         Likewise.
48920         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
48921         Likewise.
48922         * modules/unictype/property-numeric (Depends-on, configure.ac):
48923         Likewise.
48924         * modules/unictype/property-other-alphabetic (Depends-on,
48925         configure.ac): Likewise.
48926         * modules/unictype/property-other-default-ignorable-code-point
48927         (Depends-on, configure.ac): Likewise.
48928         * modules/unictype/property-other-grapheme-extend (Depends-on,
48929         configure.ac): Likewise.
48930         * modules/unictype/property-other-id-continue (Depends-on,
48931         configure.ac): Likewise.
48932         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
48933         Likewise.
48934         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
48935         Likewise.
48936         * modules/unictype/property-other-math (Depends-on, configure.ac):
48937         Likewise.
48938         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
48939         Likewise.
48940         * modules/unictype/property-paired-punctuation (Depends-on,
48941         configure.ac): Likewise.
48942         * modules/unictype/property-paragraph-separator (Depends-on,
48943         configure.ac): Likewise.
48944         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
48945         Likewise.
48946         * modules/unictype/property-pattern-white-space (Depends-on,
48947         configure.ac): Likewise.
48948         * modules/unictype/property-private-use (Depends-on, configure.ac):
48949         Likewise.
48950         * modules/unictype/property-punctuation (Depends-on, configure.ac):
48951         Likewise.
48952         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
48953         Likewise.
48954         * modules/unictype/property-radical (Depends-on, configure.ac):
48955         Likewise.
48956         * modules/unictype/property-sentence-terminal (Depends-on,
48957         configure.ac): Likewise.
48958         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
48959         Likewise.
48960         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
48961         * modules/unictype/property-terminal-punctuation (Depends-on,
48962         configure.ac): Likewise.
48963         * modules/unictype/property-titlecase (Depends-on, configure.ac):
48964         Likewise.
48965         * modules/unictype/property-unassigned-code-value (Depends-on,
48966         configure.ac): Likewise.
48967         * modules/unictype/property-unified-ideograph (Depends-on,
48968         configure.ac): Likewise.
48969         * modules/unictype/property-uppercase (Depends-on, configure.ac):
48970         Likewise.
48971         * modules/unictype/property-variation-selector (Depends-on,
48972         configure.ac): Likewise.
48973         * modules/unictype/property-white-space (Depends-on, configure.ac):
48974         Likewise.
48975         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
48976         Likewise.
48977         * modules/unictype/property-xid-start (Depends-on, configure.ac):
48978         Likewise.
48979         * modules/unictype/property-zero-width (Depends-on, configure.ac):
48980         Likewise.
48981         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
48982         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
48983         Likewise.
48985 2009-12-31  Bruno Haible  <bruno@clisp.org>
48987         Remove unnecessary AC_C_INLINE invocation.
48988         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
48989         since 2009-08-21.
48991 2009-12-31  Jim Meyering  <meyering@redhat.com>
48993         maint.mk: don't require explicit gpg_key_ID in cfg.mk
48994         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
48995         With this change, we can all remove the gpg_key_ID = ... definition
48996         from our respective cfg.mk files.
48998         maint.mk: create announcement template in ~/, not in /tmp
48999         * top/maint.mk (emit_upload_commands): Adjust.
49000         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
49001         Remove temporary file, .ci-msg.
49003 2009-12-31  Eric Blake  <ebb9@byu.net>
49005         link-warning: always build headers with link warnings
49006         * modules/arpa_inet (Makefile.am): Always build replacement
49007         header.
49008         * modules/ctype (Makefile.am): Likewise.
49009         * modules/dirent (Makefile.am): Likewise.
49010         * modules/inttypes (Makefile.am): Likewise.
49011         * modules/langinfo (Makefile.am): Likewise.
49012         * modules/locale (Makefile.am): Likewise.
49013         * modules/spawn (Makefile.am): Likewise.
49014         * modules/sys_file (Makefile.am): Likewise.
49015         * modules/sys_ioctl (Makefile.am): Likewise.
49016         * modules/sys_select (Makefile.am): Likewise.
49017         * modules/sys_socket (Makefile.am): Likewise.
49018         * modules/sys_times (Makefile.am): Likewise.
49019         * modules/sys_utsname (Makefile.am): Likewise.
49020         * modules/sys_wait (Makefile.am): Likewise.
49021         * modules/wchar (Makefile.am): Likewise.
49022         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
49023         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
49024         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
49025         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
49026         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
49027         Likewise.
49028         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
49029         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
49030         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
49031         Likewise.
49032         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
49033         Likewise.
49034         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
49035         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
49036         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
49037         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49038         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
49039         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
49040         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
49041         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
49042         (gl_WCHAR_H_DEFAULTS): Likewise.
49044 2009-12-31  Eric Blake  <ebb9@byu.net>
49046         signal, spawn: use link warnings
49047         * lib/signal.in.h (sigset_t): Make unconditional.
49048         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
49049         (sigpending, sigprocmask, sigaction): Add link warnings.
49050         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
49051         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
49052         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
49053         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
49054         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
49055         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
49056         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
49057         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
49058         (posix_spawn_file_actions_destroy)
49059         (posix_spawn_file_actions_addopen)
49060         (posix_spawn_file_actions_addclose)
49061         (posix_spawn_file_actions_adddup2): Likewise.
49062         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
49063         * tests/test-signal.c (main): Enhance test.
49065         spawn: improve wrapper support
49066         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
49067         (gl_SPAWN_H_DEFAULTS): New defaults.
49068         * modules/spawn (Makefile.am): Substitute them.
49069         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
49070         Only declare if missing or broken.
49072         sys_times, sys_utsname: use include_next
49073         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
49074         header.
49075         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
49076         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
49077         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
49078         * modules/sys_times (Depends-on): Add include_next.
49079         (Makefile.am): Substitute additional values.
49080         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
49081         * lib/sys_times.in.h (includes): Include native header, if
49082         available.
49083         * lib/sys_utsname.in.h (includes): Likewise.
49084         * tests/test-sys_times.c (main): Enhance test.
49086         fdutimensat: revert prior patch
49087         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
49088         utimens.h.
49089         Reported by Bruno Haible.
49091 2009-12-30  Eric Blake  <ebb9@byu.net>
49093         sys_wait: drop link-warning dependency
49094         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
49095         link-warning efforts.
49096         * lib/sys_wait.in.h: Likewise.
49098         fdutimensat: remove bogus dependency
49099         * modules/fdutimensat (Depends-on): Drop inline.
49101         unistd: fix typo
49102         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
49104 2009-12-30  Bruno Haible  <bruno@clisp.org>
49106         Fix compilation error with Solaris cc.
49107         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
49108         * lib/unicase/u16-is-invariant.c: Likewise.
49109         * lib/unicase/u32-is-invariant.c: Likewise.
49110         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
49112 2009-12-30  Bruno Haible  <bruno@clisp.org>
49114         Fix test crash.
49115         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
49116         locales.
49117         Reported by Simon Josefsson <simon@josefsson.org>.
49119 2009-12-30  Bruno Haible  <bruno@clisp.org>
49121         Fix compilation error on most platforms.
49122         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
49123         Reported by Simon Josefsson <simon@josefsson.org>
49124         and Nelson H. F. Beebe <beebe@math.utah.edu>.
49126 2009-12-30  Eric Blake  <ebb9@byu.net>
49128         futimens, utimensat: work around ntfs-3g bug
49129         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
49130         a ctime bug is present, and expand workaround to cover ntfs-3g.
49131         * lib/utimens.c (fdutimens, lutimens): Likewise.
49132         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
49133         (validate_timespec): Adjust return value.
49134         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
49135         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
49136         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
49138 2009-12-29  Eric Blake  <ebb9@byu.net>
49140         link-warning: make usage consistent
49141         * modules/ctype (Depends-on): Add link-warning.
49142         (Makefile.am): Update rules accordingly.
49143         * modules/langinfo (Depends-on, Makefile.am): Likewise.
49144         * modules/locale (Depends-on, Makefile.am): Likewise.
49145         * modules/sys_file (Makefile.am): Likewise.
49146         * modules/getopt-posix (Makefile.am): Delete unused link warning
49147         efforts.
49148         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
49149         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
49150         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
49151         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
49153         stdio: remove unused variables
49154         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
49155         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
49156         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
49158         tests: test more substitute headers
49159         * modules/ctype-tests: New file.
49160         * modules/dirent-tests: Likewise.
49161         * modules/spawn-tests: Likewise.
49162         * modules/sys_file-tests: Likewise.
49163         * modules/sys_ioctl-tests: Likewise.
49164         * modules/sys_wait-tests: Likewise.
49165         * tests/test-ctype.c: Likewise.
49166         * tests/test-dirent.c: Likewise.
49167         * tests/test-spawn.c: Likewise.
49168         * tests/test-sys_file.c: Likewise.
49169         * tests/test-sys_ioctl.c: Likewise.
49170         * tests/test-sys_wait.c: Likewise.
49171         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
49172         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
49173         whether or not flock is in use.
49175         tests: remove License section from module
49176         * modules/arpa_inet-tests: Remove unneeded section.
49177         * modules/byteswap-tests: Likewise.
49178         * modules/ceilf-tests: Likewise.
49179         * modules/ceill-tests: Likewise.
49180         * modules/crypto/des-tests: Likewise.
49181         * modules/crypto/gc-arcfour-tests: Likewise.
49182         * modules/crypto/gc-arctwo-tests: Likewise.
49183         * modules/crypto/gc-des-tests: Likewise.
49184         * modules/crypto/gc-hmac-md5-tests: Likewise.
49185         * modules/crypto/gc-hmac-sha1-tests: Likewise.
49186         * modules/crypto/gc-md2-tests: Likewise.
49187         * modules/crypto/gc-md4-tests: Likewise.
49188         * modules/crypto/gc-md5-tests: Likewise.
49189         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
49190         * modules/crypto/gc-rijndael-tests: Likewise.
49191         * modules/crypto/gc-sha1-tests: Likewise.
49192         * modules/crypto/gc-tests: Likewise.
49193         * modules/crypto/md2-tests: Likewise.
49194         * modules/crypto/md4-tests: Likewise.
49195         * modules/fcntl-h-tests: Likewise.
49196         * modules/floorf-tests: Likewise.
49197         * modules/floorl-tests: Likewise.
49198         * modules/frexp-nolibm-tests: Likewise.
49199         * modules/frexp-tests: Likewise.
49200         * modules/frexpl-nolibm-tests: Likewise.
49201         * modules/frexpl-tests: Likewise.
49202         * modules/getaddrinfo-tests: Likewise.
49203         * modules/inttypes-tests: Likewise.
49204         * modules/isfinite-tests: Likewise.
49205         * modules/isinf-tests: Likewise.
49206         * modules/ldexpl-tests: Likewise.
49207         * modules/locale-tests: Likewise.
49208         * modules/math-tests: Likewise.
49209         * modules/netdb-tests: Likewise.
49210         * modules/netinet_in-tests: Likewise.
49211         * modules/printf-frexp-tests: Likewise.
49212         * modules/printf-frexpl-tests: Likewise.
49213         * modules/priv-set-tests: Likewise.
49214         * modules/random_r-tests: Likewise.
49215         * modules/round-tests: Likewise.
49216         * modules/roundf-tests: Likewise.
49217         * modules/roundl-tests: Likewise.
49218         * modules/search-tests: Likewise.
49219         * modules/select-tests: Likewise.
49220         * modules/signal-tests: Likewise.
49221         * modules/stdbool-tests: Likewise.
49222         * modules/stddef-tests: Likewise.
49223         * modules/stdint-tests: Likewise.
49224         * modules/stdio-tests: Likewise.
49225         * modules/stdlib-tests: Likewise.
49226         * modules/string-tests: Likewise.
49227         * modules/strings-tests: Likewise.
49228         * modules/sys_select-tests: Likewise.
49229         * modules/sys_socket-tests: Likewise.
49230         * modules/sys_stat-tests: Likewise.
49231         * modules/sys_time-tests: Likewise.
49232         * modules/sys_utsname-tests: Likewise.
49233         * modules/sysexits-tests: Likewise.
49234         * modules/time-tests: Likewise.
49235         * modules/trunc-tests: Likewise.
49236         * modules/truncf-tests: Likewise.
49237         * modules/truncl-tests: Likewise.
49238         * modules/tsearch-tests: Likewise.
49239         * modules/unistd-tests: Likewise.
49240         * modules/wchar-tests: Likewise.
49241         * modules/wctype-tests: Likewise.
49243         tests: fix license on several tests
49244         * tests/test-des.c: Update to GPLv3+.
49245         * tests/test-flock.c: Likewise.
49246         * tests/test-fsync.c: Likewise.
49247         * tests/test-futimens.h: Likewise.
49248         * tests/test-gc-arcfour.c: Likewise.
49249         * tests/test-gc-arctwo.c: Likewise.
49250         * tests/test-gc-des.c: Likewise.
49251         * tests/test-gc-hmac-md5.c: Likewise.
49252         * tests/test-gc-hmac-sha1.c: Likewise.
49253         * tests/test-gc-md2.c: Likewise.
49254         * tests/test-gc-md4.c: Likewise.
49255         * tests/test-gc-md5.c: Likewise.
49256         * tests/test-gc-pbkdf2-sha1.c: Likewise.
49257         * tests/test-gc-rijndael.c: Likewise.
49258         * tests/test-gc-sha1.c: Likewise.
49259         * tests/test-gc.c: Likewise.
49260         * tests/test-getcwd.c: Likewise.
49261         * tests/test-link.c: Likewise.
49262         * tests/test-link.h: Likewise.
49263         * tests/test-lutimens.h: Likewise.
49264         * tests/test-md2.c: Likewise.
49265         * tests/test-md4.c: Likewise.
49266         * tests/test-mkdir.h: Likewise.
49267         * tests/test-rename.c: Likewise.
49268         * tests/test-rename.h: Likewise.
49269         * tests/test-safe-alloc.c: Likewise.
49270         * tests/test-utimens-common.h: Likewise.
49271         * tests/test-utimens.h: Likewise.
49273         maint: sync license texts
49274         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
49275         * doc/gpl-3.0.texi: Revert copyright year update.
49276         * doc/lgpl-3.0.texi: Likewise.
49278 2009-12-29  Jim Meyering  <meyering@redhat.com>
49280         update nearly all FSF copyright year lists to include 2009
49281         The files named by the following are exempted:
49282             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
49283               test -f "$dst" && { echo "$dst"; continue; }
49284               test -d "$dst" || continue
49285               echo "$dst"/$(basename "$src")
49286             done > exempt
49287             git ls-files tests/unictype >> exempt
49288         In the remaining files, convert to all-interval notation if
49289         - there is already at least one year interval like 2000-2003
49290         - the file is maintained by me
49291         - the file is in lib/uni*/, where that style already prevails
49292         Otherwise, use update-copyright's default.
49294 2009-12-29  Simon Josefsson  <simon@josefsson.org>
49295         and Eric Blake  <ebb9@byu.net>
49297         tests: don't require debug system() to pass
49298         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
49299         * tests/test-rmdir.h (test_rmdir_func): Likewise.
49300         * tests/test-unlink.h (test_unlink_func): Likewise.
49301         * tests/test-fstatat.c (main): ...into callers.
49302         * tests/test-lstat.c (main): Likewise.
49303         * tests/test-rmdir.c (main): Likewise.
49304         * tests/test-unlink.c (main): Likewise.
49305         * tests/test-unlinkat.c (main): Likewise.
49306         * tests/test-areadlink-with-size.c (main): Don't require a
49307         debug-only system call to pass, aiding cross-testing to mingw.
49308         * tests/test-areadlink.c (main): Likewise.
49309         * tests/test-areadlinkat-with-size.c (main): Likewise.
49310         * tests/test-areadlinkat.c (main): Likewise.
49311         * tests/test-canonicalize-lgpl.c (main): Likewise.
49312         * tests/test-canonicalize.c (main): Likewise.
49313         * tests/test-chown.c (main): Likewise.
49314         * tests/test-fchownat.c (main): Likewise.
49315         * tests/test-lchown.c (main): Likewise.
49316         * tests/test-fdutimensat.c (main): Likewise.
49317         * tests/test-futimens.c (main): Likewise.
49318         * tests/test-link.c (main): Likewise.
49319         * tests/test-linkat.c (main): Likewise.
49320         * tests/test-mkdir.c (main): Likewise.
49321         * tests/test-mkdirat.c (main): Likewise.
49322         * tests/test-mkfifo.c (main): Likewise.
49323         * tests/test-mkfifoat.c (main): Likewise.
49324         * tests/test-mknod.c (main): Likewise.
49325         * tests/test-readlink.c (main): Likewise.
49326         * tests/test-remove.c (main): Likewise.
49327         * tests/test-rename.c (main): Likewise.
49328         * tests/test-renameat.c (main): Likewise.
49329         * tests/test-symlink.c (main): Likewise.
49330         * tests/test-symlinkat.c (main): Likewise.
49331         * tests/test-utimens.c (main): Likewise.
49332         * tests/test-utimensat.c (main): Likewise.
49334 2009-12-29  Simon Josefsson  <simon@josefsson.org>
49336         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
49337         on $(UNUSED_PARAMETER_H) to avoid build failure.
49339 2009-12-28  Jim Meyering  <meyering@redhat.com>
49341         update-copyright: you may specify a max. line length other than 72
49342         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
49344         maint: use consistent FSF copyright line syntax
49345         * lib/posixtm.c: Add missing comma in FSF copyright line.
49346         * lib/posixtm.h: Likewise.
49347         * lib/getugroups.c: Add missing ", Inc.".
49349         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
49350         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
49351         FSF copyright line.  Remove trailing blanks.
49353 2009-12-28  Eric Blake  <ebb9@byu.net>
49355         test-dup2: reduce dependencies
49356         * modules/cloexec (Configure.ac): Set witness.
49357         * modules/dup2-tests (Depends-on): Drop cloexec.
49358         * tests/test-dup2.c (main): Skip portion of test if cloexec module
49359         not present.
49360         Suggested by Bruno Haible.
49362 2009-12-26  Bruno Haible  <bruno@clisp.org>
49364         Remove an unneeded dependency.
49365         * modules/fseterr (Depends-on): Remove dup2.
49367 2009-12-26  Eric Blake  <ebb9@byu.net>
49369         tests: use macros.h in more places
49370         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
49371         (ASSERT_STREAM): Provide default of stderr.
49372         * tests/test-dirent-safer.c: Include macros.h, using alternate
49373         stream for assertions.
49374         * tests/test-dup-safer.c: Likewise.
49375         * tests/test-freopen-safer.c: Likewise.
49376         * tests/test-getopt.c: Likewise.
49377         * tests/test-openat-safer.c: Likewise.
49378         * tests/test-pipe.c: Likewise.
49379         * tests/test-popen-safer.c: Likewise.
49380         * modules/dirent-safer-tests (Files): Include macros.h.
49381         * modules/unistd-safer-tests (Files): Likewise.
49382         * modules/freopen-safer-tests (Files): Likewise.
49383         * modules/getopt-posix-tests (Files): Likewise.
49384         * modules/openat-safer-tests (Files): Likewise.
49385         * modules/pipe-tests (Files): Likewise.
49387 2009-12-26  Bruno Haible  <bruno@clisp.org>
49389         javacomp: Portability fix.
49390         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
49391         that it also works on Solaris.
49393 2009-12-26  Bruno Haible  <bruno@clisp.org>
49395         localename: Fix storage allocation of gl_locale_name_thread's result.
49396         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
49397         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
49398         all platforms that have 'uselocale'.
49399         (gl_locale_name_thread_unsafe): New function, extracted from
49400         gl_locale_name_thread.
49401         (gl_locale_name_thread): Call struniq on all platforms that have
49402         'uselocale'.
49403         * tests/test-localename.c (test_locale_name_thread): Check that the
49404         resulting strings are permanently allocated.
49405         * modules/localename-tests (Depends-on): Add strdup.
49407 2009-12-26  Bruno Haible  <bruno@clisp.org>
49409         * tests/test-localename.c (categories): Fill in the strings.
49411 2009-12-26  Jim Meyering  <meyering@redhat.com>
49413         isdir: complete the removal of m4/isdir.m4
49414         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
49416         isdir: clean up, since at least grep still uses it
49417         * lib/isdir.c: Include "isdir.h".
49418         (S_ISDIR): Remove now-unneeded definition.
49419         * modules/isdir (Files): Add lib/isdir.h.
49420         * lib/isdir.h: New file, with declaration.
49421         * m4/isdir.m4: Remove file -- unneeded.
49423 2009-12-25  Bruno Haible  <bruno@clisp.org>
49425         selinux-h: Make generated .h files standalone.
49426         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
49427         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
49428         * lib/se-selinux.in.h: Likewise.
49429         * modules/selinux-h (Depends-on): Add unused-parameter.
49430         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
49431         selinux/selinux.h and selinux/context.h.
49432         Suggested by Eric Blake.
49434 2009-12-25  Bruno Haible  <bruno@clisp.org>
49436         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
49437         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
49438         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
49439         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
49440         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
49442 2009-12-24  Bruno Haible  <bruno@clisp.org>
49444         openat: Fix warning.
49445         * lib/openat-proc.c: Include <unistd.h>.
49447 2009-12-24  Bruno Haible  <bruno@clisp.org>
49449         New module 'unused-parameter'.
49450         * build-aux/unused-parameter.h: New file, extracted from earlier
49451         gnulib-common.m4.
49452         * modules/unused-parameter: New file.
49453         * lib/unistr.h: Include unused-parameter.h.
49454         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
49455         _GL_UNUSED.
49456         * modules/unistr/base (Depends-on): Add unused-parameter.
49458 2009-12-24  Bruno Haible  <bruno@clisp.org>
49460         Add missing dependencies to 'extensions' module.
49461         * m4/extensions.m4: Add comment.
49462         * modules/accept4 (Depends-on): Add extensions.
49463         * modules/dup3 (Depends-on): Likewise.
49464         * modules/fcntl (Depends-on): Likewise.
49465         * modules/futimens (Depends-on): Likewise.
49466         * modules/mknod (Depends-on): Likewise.
49467         * modules/pipe2 (Depends-on): Likewise.
49468         * modules/stat-time (Depends-on): Likewise.
49469         * modules/strcasestr-simple (Depends-on): Likewise.
49470         * modules/strsignal (Depends-on): Likewise.
49471         * modules/utimensat (Depends-on): Likewise.
49472         * modules/localcharset (Depends-on): Likewise. Needed because of
49473         gl_FCNTL_O_FLAGS.
49474         * modules/wcrtomb (Depends-on): Likewise. Needed because of
49475         AC_TYPE_MBSTATE_T.
49476         * modules/wcsnrtombs (Depends-on): Likewise.
49477         * modules/wcsrtombs (Depends-on): Likewise.
49479 2009-12-24  Bruno Haible  <bruno@clisp.org>
49481         binary-io: Avoid gcc warning due to SET_BINARY.
49482         * lib/binary-io.h (SET_BINARY): Cast the result to void.
49483         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
49485 2009-12-24  Bruno Haible  <bruno@clisp.org>
49487         Avoid future namespace pollution on glibc systems.
49488         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
49489         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
49490         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
49491         glibc systems.
49493 2009-12-24  Bruno Haible  <bruno@clisp.org>
49495         Refactor common macros used in tests.
49496         * tests/macros.h: New file.
49497         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
49498         and/or <stdlib.h>, if appropriate.
49499         (ASSERT, SIZEOF): Remove macros.
49500         * tests/test-areadlink-with-size.c: Likewise.
49501         * tests/test-areadlinkat.c: Likewise.
49502         * tests/test-areadlinkat-with-size.c: Likewise.
49503         * tests/test-argmatch.c: Likewise.
49504         * tests/test-argv-iter.c: Likewise.
49505         * tests/test-array-mergesort.c: Likewise.
49506         * tests/test-array_list.c: Likewise.
49507         * tests/test-array_oset.c: Likewise.
49508         * tests/test-avltree_list.c: Likewise.
49509         * tests/test-avltree_oset.c: Likewise.
49510         * tests/test-avltreehash_list.c: Likewise.
49511         * tests/test-base64.c: Likewise.
49512         * tests/test-binary-io.c: Likewise.
49513         * tests/test-bitrotate.c: Likewise.
49514         * tests/test-btowc.c: Likewise.
49515         * tests/test-byteswap.c: Likewise.
49516         * tests/test-c-ctype.c: Likewise.
49517         * tests/test-c-stack.c: Likewise.
49518         * tests/test-c-strcasecmp.c: Likewise.
49519         * tests/test-c-strcasestr.c: Likewise.
49520         * tests/test-c-strncasecmp.c: Likewise.
49521         * tests/test-c-strstr.c: Likewise.
49522         * tests/test-canonicalize-lgpl.c: Likewise.
49523         * tests/test-canonicalize.c: Likewise.
49524         * tests/test-carray_list.c: Likewise.
49525         * tests/test-ceilf1.c: Likewise.
49526         * tests/test-ceilf2.c: Likewise.
49527         * tests/test-ceill.c: Likewise.
49528         * tests/test-chown.c: Likewise.
49529         * tests/test-cloexec.c: Likewise.
49530         * tests/test-copy-acl.c: Likewise.
49531         * tests/test-copy-file.c: Likewise.
49532         * tests/test-count-one-bits.c: Likewise.
49533         * tests/test-dprintf-posix.c: Likewise.
49534         * tests/test-dup2.c: Likewise.
49535         * tests/test-dup3.c: Likewise.
49536         * tests/test-duplocale.c: Likewise.
49537         * tests/test-fbufmode.c: Likewise.
49538         * tests/test-fchdir.c: Likewise.
49539         * tests/test-fchownat.c: Likewise.
49540         * tests/test-fcntl-safer.c: Likewise.
49541         * tests/test-fcntl.c: Likewise.
49542         * tests/test-fdopendir.c: Likewise.
49543         * tests/test-fdutimensat.c: Likewise.
49544         * tests/test-fflush2.c: Likewise.
49545         * tests/test-file-has-acl.c: Likewise.
49546         * tests/test-filevercmp.c: Likewise.
49547         * tests/test-flock.c: Likewise.
49548         * tests/test-floorf1.c: Likewise.
49549         * tests/test-floorf2.c: Likewise.
49550         * tests/test-floorl.c: Likewise.
49551         * tests/test-fnmatch.c: Likewise.
49552         * tests/test-fopen.h: Likewise.
49553         * tests/test-fpending.c: Likewise.
49554         * tests/test-fprintf-posix.c: Likewise.
49555         * tests/test-fpurge.c: Likewise.
49556         * tests/test-freadable.c: Likewise.
49557         * tests/test-freadahead.c: Likewise.
49558         * tests/test-freading.c: Likewise.
49559         * tests/test-freadptr.c: Likewise.
49560         * tests/test-freadptr2.c: Likewise.
49561         * tests/test-freadseek.c: Likewise.
49562         * tests/test-freopen.c: Likewise.
49563         * tests/test-frexp.c: Likewise.
49564         * tests/test-frexpl.c: Likewise.
49565         * tests/test-fseek.c: Likewise.
49566         * tests/test-fseeko.c: Likewise.
49567         * tests/test-fstatat.c: Likewise.
49568         * tests/test-fstrcmp.c: Likewise.
49569         * tests/test-fsync.c: Likewise.
49570         * tests/test-ftell.c: Likewise.
49571         * tests/test-ftello.c: Likewise.
49572         * tests/test-func.c: Likewise.
49573         * tests/test-futimens.c: Likewise.
49574         * tests/test-fwritable.c: Likewise.
49575         * tests/test-fwriting.c: Likewise.
49576         * tests/test-getcwd.c: Likewise.
49577         * tests/test-getdate.c: Likewise.
49578         * tests/test-getdelim.c: Likewise.
49579         * tests/test-getdtablesize.c: Likewise.
49580         * tests/test-getgroups.c: Likewise.
49581         * tests/test-getline.c: Likewise.
49582         * tests/test-getndelim2.c: Likewise.
49583         * tests/test-glob.c: Likewise.
49584         * tests/test-hash.c: Likewise.
49585         * tests/test-i-ring.c: Likewise.
49586         * tests/test-iconv-utf.c: Likewise.
49587         * tests/test-iconv.c: Likewise.
49588         * tests/test-idpriv-drop.c: Likewise.
49589         * tests/test-idpriv-droptemp.c: Likewise.
49590         * tests/test-inet_ntop.c: Likewise.
49591         * tests/test-inet_pton.c: Likewise.
49592         * tests/test-isblank.c: Likewise.
49593         * tests/test-isfinite.c: Likewise.
49594         * tests/test-isinf.c: Likewise.
49595         * tests/test-isnan.c: Likewise.
49596         * tests/test-isnand.h: Likewise.
49597         * tests/test-isnanf.h: Likewise.
49598         * tests/test-isnanl.h: Likewise.
49599         * tests/test-lchown.c: Likewise.
49600         * tests/test-ldexpl.c: Likewise.
49601         * tests/test-link.c: Likewise.
49602         * tests/test-linkat.c: Likewise.
49603         * tests/test-linked_list.c: Likewise.
49604         * tests/test-linkedhash_list.c: Likewise.
49605         * tests/test-localename.c: Likewise.
49606         * tests/test-lseek.c: Likewise.
49607         * tests/test-lstat.c: Likewise.
49608         * tests/test-mbmemcasecmp.c: Likewise.
49609         * tests/test-mbmemcasecoll.c: Likewise.
49610         * tests/test-mbrtowc.c: Likewise.
49611         * tests/test-mbscasecmp.c: Likewise.
49612         * tests/test-mbscasestr1.c: Likewise.
49613         * tests/test-mbscasestr2.c: Likewise.
49614         * tests/test-mbscasestr3.c: Likewise.
49615         * tests/test-mbscasestr4.c: Likewise.
49616         * tests/test-mbschr.c: Likewise.
49617         * tests/test-mbscspn.c: Likewise.
49618         * tests/test-mbsinit.c: Likewise.
49619         * tests/test-mbsncasecmp.c: Likewise.
49620         * tests/test-mbsnrtowcs.c: Likewise.
49621         * tests/test-mbspbrk.c: Likewise.
49622         * tests/test-mbspcasecmp.c: Likewise.
49623         * tests/test-mbsrchr.c: Likewise.
49624         * tests/test-mbsrtowcs.c: Likewise.
49625         * tests/test-mbsspn.c: Likewise.
49626         * tests/test-mbsstr1.c: Likewise.
49627         * tests/test-mbsstr2.c: Likewise.
49628         * tests/test-mbsstr3.c: Likewise.
49629         * tests/test-memchr.c: Likewise.
49630         * tests/test-memchr2.c: Likewise.
49631         * tests/test-memcmp.c: Likewise.
49632         * tests/test-memmem.c: Likewise.
49633         * tests/test-memrchr.c: Likewise.
49634         * tests/test-mkdir.c: Likewise.
49635         * tests/test-mkdirat.c: Likewise.
49636         * tests/test-mkfifo.c: Likewise.
49637         * tests/test-mkfifoat.c: Likewise.
49638         * tests/test-mknod.c: Likewise.
49639         * tests/test-nanosleep.c: Likewise.
49640         * tests/test-nl_langinfo.c: Likewise.
49641         * tests/test-obstack-printf.c: Likewise.
49642         * tests/test-open.c: Likewise.
49643         * tests/test-openat.c: Likewise.
49644         * tests/test-pipe-filter-gi1.c: Likewise.
49645         * tests/test-pipe-filter-gi2-main.c: Likewise.
49646         * tests/test-pipe-filter-ii1.c: Likewise.
49647         * tests/test-pipe-filter-ii2-main.c: Likewise.
49648         * tests/test-pipe2.c: Likewise.
49649         * tests/test-popen.h: Likewise.
49650         * tests/test-posixtm.c: Likewise.
49651         * tests/test-pread.c: Likewise.
49652         * tests/test-printf-frexp.c: Likewise.
49653         * tests/test-printf-frexpl.c: Likewise.
49654         * tests/test-printf-posix.c: Likewise.
49655         * tests/test-priv-set.c: Likewise.
49656         * tests/test-quotearg.c: Likewise.
49657         * tests/test-random_r.c: Likewise.
49658         * tests/test-rawmemchr.c: Likewise.
49659         * tests/test-rbtree_list.c: Likewise.
49660         * tests/test-rbtree_oset.c: Likewise.
49661         * tests/test-rbtreehash_list.c: Likewise.
49662         * tests/test-readlink.c: Likewise.
49663         * tests/test-remove.c: Likewise.
49664         * tests/test-rename.c: Likewise.
49665         * tests/test-renameat.c: Likewise.
49666         * tests/test-rmdir.c: Likewise.
49667         * tests/test-round1.c: Likewise.
49668         * tests/test-roundf1.c: Likewise.
49669         * tests/test-roundl.c: Likewise.
49670         * tests/test-safe-alloc.c: Likewise.
49671         * tests/test-sameacls.c: Likewise.
49672         * tests/test-set-mode-acl.c: Likewise.
49673         * tests/test-setenv.c: Likewise.
49674         * tests/test-sigaction.c: Likewise.
49675         * tests/test-signbit.c: Likewise.
49676         * tests/test-sleep.c: Likewise.
49677         * tests/test-snprintf-posix.c: Likewise.
49678         * tests/test-snprintf.c: Likewise.
49679         * tests/test-sprintf-posix.c: Likewise.
49680         * tests/test-stat-time.c: Likewise.
49681         * tests/test-stat.c: Likewise.
49682         * tests/test-strcasestr.c: Likewise.
49683         * tests/test-strchrnul.c: Likewise.
49684         * tests/test-strerror.c: Likewise.
49685         * tests/test-striconv.c: Likewise.
49686         * tests/test-striconveh.c: Likewise.
49687         * tests/test-striconveha.c: Likewise.
49688         * tests/test-strsignal.c: Likewise.
49689         * tests/test-strstr.c: Likewise.
49690         * tests/test-strtod.c: Likewise.
49691         * tests/test-strverscmp.c: Likewise.
49692         * tests/test-symlink.c: Likewise.
49693         * tests/test-symlinkat.c: Likewise.
49694         * tests/test-trunc1.c: Likewise.
49695         * tests/test-trunc2.c: Likewise.
49696         * tests/test-truncf1.c: Likewise.
49697         * tests/test-truncf2.c: Likewise.
49698         * tests/test-truncl.c: Likewise.
49699         * tests/test-uname.c: Likewise.
49700         * tests/test-unlink.c: Likewise.
49701         * tests/test-unlinkat.c: Likewise.
49702         * tests/test-unsetenv.c: Likewise.
49703         * tests/test-usleep.c: Likewise.
49704         * tests/test-utimens.c: Likewise.
49705         * tests/test-utimensat.c: Likewise.
49706         * tests/test-vasnprintf-posix.c: Likewise.
49707         * tests/test-vasnprintf-posix2.c: Likewise.
49708         * tests/test-vasnprintf.c: Likewise.
49709         * tests/test-vasprintf-posix.c: Likewise.
49710         * tests/test-vasprintf.c: Likewise.
49711         * tests/test-vdprintf-posix.c: Likewise.
49712         * tests/test-vfprintf-posix.c: Likewise.
49713         * tests/test-vprintf-posix.c: Likewise.
49714         * tests/test-vsnprintf-posix.c: Likewise.
49715         * tests/test-vsnprintf.c: Likewise.
49716         * tests/test-vsprintf-posix.c: Likewise.
49717         * tests/test-wcrtomb.c: Likewise.
49718         * tests/test-wcsnrtombs.c: Likewise.
49719         * tests/test-wcsrtombs.c: Likewise.
49720         * tests/test-wctype.c: Likewise.
49721         * tests/test-wcwidth.c: Likewise.
49722         * tests/test-xfprintf-posix.c: Likewise.
49723         * tests/test-xmemdup0.c: Likewise.
49724         * tests/test-xprintf-posix.c: Likewise.
49725         * tests/test-xvasprintf.c: Likewise.
49726         * tests/unicase/test-locale-language.c: Likewise.
49727         * tests/unicase/test-mapping-part1.h: Likewise.
49728         * tests/unicase/test-predicate-part1.h: Likewise.
49729         * tests/unicase/test-u8-casecmp.c: Likewise.
49730         * tests/unicase/test-u8-casecoll.c: Likewise.
49731         * tests/unicase/test-u8-casefold.c: Likewise.
49732         * tests/unicase/test-u8-is-cased.c: Likewise.
49733         * tests/unicase/test-u8-is-casefolded.c: Likewise.
49734         * tests/unicase/test-u8-is-lowercase.c: Likewise.
49735         * tests/unicase/test-u8-is-titlecase.c: Likewise.
49736         * tests/unicase/test-u8-is-uppercase.c: Likewise.
49737         * tests/unicase/test-u8-tolower.c: Likewise.
49738         * tests/unicase/test-u8-totitle.c: Likewise.
49739         * tests/unicase/test-u8-toupper.c: Likewise.
49740         * tests/unicase/test-u16-casecmp.c: Likewise.
49741         * tests/unicase/test-u16-casecoll.c: Likewise.
49742         * tests/unicase/test-u16-casefold.c: Likewise.
49743         * tests/unicase/test-u16-is-cased.c: Likewise.
49744         * tests/unicase/test-u16-is-casefolded.c: Likewise.
49745         * tests/unicase/test-u16-is-lowercase.c: Likewise.
49746         * tests/unicase/test-u16-is-titlecase.c: Likewise.
49747         * tests/unicase/test-u16-is-uppercase.c: Likewise.
49748         * tests/unicase/test-u16-tolower.c: Likewise.
49749         * tests/unicase/test-u16-totitle.c: Likewise.
49750         * tests/unicase/test-u16-toupper.c: Likewise.
49751         * tests/unicase/test-u32-casecmp.c: Likewise.
49752         * tests/unicase/test-u32-casecoll.c: Likewise.
49753         * tests/unicase/test-u32-casefold.c: Likewise.
49754         * tests/unicase/test-u32-is-cased.c: Likewise.
49755         * tests/unicase/test-u32-is-casefolded.c: Likewise.
49756         * tests/unicase/test-u32-is-lowercase.c: Likewise.
49757         * tests/unicase/test-u32-is-titlecase.c: Likewise.
49758         * tests/unicase/test-u32-is-uppercase.c: Likewise.
49759         * tests/unicase/test-u32-tolower.c: Likewise.
49760         * tests/unicase/test-u32-totitle.c: Likewise.
49761         * tests/unicase/test-u32-toupper.c: Likewise.
49762         * tests/unicase/test-ulc-casecmp.c: Likewise.
49763         * tests/unicase/test-ulc-casecoll.c: Likewise.
49764         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
49765         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
49766         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
49767         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
49768         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
49769         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
49770         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
49771         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
49772         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
49773         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
49774         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
49775         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
49776         * tests/unictype/test-bidi_byname.c: Likewise.
49777         * tests/unictype/test-bidi_name.c: Likewise.
49778         * tests/unictype/test-bidi_of.c: Likewise.
49779         * tests/unictype/test-bidi_test.c: Likewise.
49780         * tests/unictype/test-block_list.c: Likewise.
49781         * tests/unictype/test-block_of.c: Likewise.
49782         * tests/unictype/test-block_test.c: Likewise.
49783         * tests/unictype/test-categ_and.c: Likewise.
49784         * tests/unictype/test-categ_and_not.c: Likewise.
49785         * tests/unictype/test-categ_byname.c: Likewise.
49786         * tests/unictype/test-categ_name.c: Likewise.
49787         * tests/unictype/test-categ_none.c: Likewise.
49788         * tests/unictype/test-categ_of.c: Likewise.
49789         * tests/unictype/test-categ_or.c: Likewise.
49790         * tests/unictype/test-categ_test_withtable.c: Likewise.
49791         * tests/unictype/test-combining.c: Likewise.
49792         * tests/unictype/test-decdigit.c: Likewise.
49793         * tests/unictype/test-digit.c: Likewise.
49794         * tests/unictype/test-mirror.c: Likewise.
49795         * tests/unictype/test-numeric.c: Likewise.
49796         * tests/unictype/test-pr_byname.c: Likewise.
49797         * tests/unictype/test-pr_test.c: Likewise.
49798         * tests/unictype/test-predicate-part1.h: Likewise.
49799         * tests/unictype/test-scripts.c: Likewise.
49800         * tests/unictype/test-sy_c_ident.c: Likewise.
49801         * tests/unictype/test-sy_java_ident.c: Likewise.
49802         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
49803         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
49804         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
49805         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
49806         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
49807         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
49808         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
49809         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
49810         * tests/uninorm/test-canonical-decomposition.c: Likewise.
49811         * tests/uninorm/test-compat-decomposition.c: Likewise.
49812         * tests/uninorm/test-composition.c: Likewise.
49813         * tests/uninorm/test-decomposing-form.c: Likewise.
49814         * tests/uninorm/test-decomposition.c: Likewise.
49815         * tests/uninorm/test-u8-nfc.c: Likewise.
49816         * tests/uninorm/test-u8-nfd.c: Likewise.
49817         * tests/uninorm/test-u8-nfkc.c: Likewise.
49818         * tests/uninorm/test-u8-nfkd.c: Likewise.
49819         * tests/uninorm/test-u8-normcmp.c: Likewise.
49820         * tests/uninorm/test-u8-normcoll.c: Likewise.
49821         * tests/uninorm/test-u16-nfc.c: Likewise.
49822         * tests/uninorm/test-u16-nfd.c: Likewise.
49823         * tests/uninorm/test-u16-nfkc.c: Likewise.
49824         * tests/uninorm/test-u16-nfkd.c: Likewise.
49825         * tests/uninorm/test-u16-normcmp.c: Likewise.
49826         * tests/uninorm/test-u16-normcoll.c: Likewise.
49827         * tests/uninorm/test-u32-nfc.c: Likewise.
49828         * tests/uninorm/test-u32-nfd.c: Likewise.
49829         * tests/uninorm/test-u32-nfkc.c: Likewise.
49830         * tests/uninorm/test-u32-nfkd.c: Likewise.
49831         * tests/uninorm/test-u32-normalize-big.c: Likewise.
49832         * tests/uninorm/test-u32-normcmp.c: Likewise.
49833         * tests/uninorm/test-u32-normcoll.c: Likewise.
49834         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
49835         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
49836         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
49837         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
49838         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
49839         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
49840         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
49841         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
49842         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
49843         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
49844         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
49845         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
49846         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
49847         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
49848         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
49849         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
49850         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
49851         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
49852         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
49853         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
49854         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
49855         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
49856         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
49857         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
49858         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
49859         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
49860         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
49861         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
49862         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
49863         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
49864         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
49865         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
49866         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
49867         * tests/uniwidth/test-u8-strwidth.c: Likewise.
49868         * tests/uniwidth/test-u8-width.c: Likewise.
49869         * tests/uniwidth/test-u16-strwidth.c: Likewise.
49870         * tests/uniwidth/test-u16-width.c: Likewise.
49871         * tests/uniwidth/test-u32-strwidth.c: Likewise.
49872         * tests/uniwidth/test-u32-width.c: Likewise.
49873         * tests/uniwidth/test-uc_width.c: Likewise.
49874         * tests/uniwidth/test-uc_width2.c: Likewise.
49875         * modules/acl-tests (Files): Add tests/macros.h.
49876         * modules/areadlink-tests (Files): Likewise.
49877         * modules/areadlink-with-size-tests (Files): Likewise.
49878         * modules/areadlinkat-tests (Files): Likewise.
49879         * modules/areadlinkat-with-size-tests (Files): Likewise.
49880         * modules/argmatch-tests (Files): Likewise.
49881         * modules/argv-iter-tests (Files): Likewise.
49882         * modules/array-list-tests (Files): Likewise.
49883         * modules/array-mergesort-tests (Files): Likewise.
49884         * modules/array-oset-tests (Files): Likewise.
49885         * modules/avltree-list-tests (Files): Likewise.
49886         * modules/avltree-oset-tests (Files): Likewise.
49887         * modules/avltreehash-list-tests (Files): Likewise.
49888         * modules/base64-tests (Files): Likewise.
49889         * modules/binary-io-tests (Files): Likewise.
49890         * modules/bitrotate-tests (Files): Likewise.
49891         * modules/btowc-tests (Files): Likewise.
49892         * modules/byteswap-tests (Files): Likewise.
49893         * modules/c-ctype-tests (Files): Likewise.
49894         * modules/c-stack-tests (Files): Likewise.
49895         * modules/c-strcase-tests (Files): Likewise.
49896         * modules/c-strcasestr-tests (Files): Likewise.
49897         * modules/c-strstr-tests (Files): Likewise.
49898         * modules/canonicalize-lgpl-tests (Files): Likewise.
49899         * modules/canonicalize-tests (Files): Likewise.
49900         * modules/carray-list-tests (Files): Likewise.
49901         * modules/ceilf-tests (Files): Likewise.
49902         * modules/ceill-tests (Files): Likewise.
49903         * modules/chown-tests (Files): Likewise.
49904         * modules/cloexec-tests (Files): Likewise.
49905         * modules/copy-file-tests (Files): Likewise.
49906         * modules/count-one-bits-tests (Files): Likewise.
49907         * modules/dprintf-posix-tests (Files): Likewise.
49908         * modules/dup2-tests (Files): Likewise.
49909         * modules/dup3-tests (Files): Likewise.
49910         * modules/duplocale-tests (Files): Likewise.
49911         * modules/fbufmode-tests (Files): Likewise.
49912         * modules/fchdir-tests (Files): Likewise.
49913         * modules/fcntl-safer-tests (Files): Likewise.
49914         * modules/fcntl-tests (Files): Likewise.
49915         * modules/fdopendir-tests (Files): Likewise.
49916         * modules/fdutimensat-tests (Files): Likewise.
49917         * modules/fflush-tests (Files): Likewise.
49918         * modules/filevercmp-tests (Files): Likewise.
49919         * modules/flock-tests (Files): Likewise.
49920         * modules/floorf-tests (Files): Likewise.
49921         * modules/floorl-tests (Files): Likewise.
49922         * modules/fnmatch-tests (Files): Likewise.
49923         * modules/fopen-safer-tests (Files): Likewise.
49924         * modules/fopen-tests (Files): Likewise.
49925         * modules/fpending-tests (Files): Likewise.
49926         * modules/fprintf-posix-tests (Files): Likewise.
49927         * modules/fpurge-tests (Files): Likewise.
49928         * modules/freadable-tests (Files): Likewise.
49929         * modules/freadahead-tests (Files): Likewise.
49930         * modules/freading-tests (Files): Likewise.
49931         * modules/freadptr-tests (Files): Likewise.
49932         * modules/freadseek-tests (Files): Likewise.
49933         * modules/freopen-tests (Files): Likewise.
49934         * modules/frexp-nolibm-tests (Files): Likewise.
49935         * modules/frexp-tests (Files): Likewise.
49936         * modules/frexpl-nolibm-tests (Files): Likewise.
49937         * modules/frexpl-tests (Files): Likewise.
49938         * modules/fseek-tests (Files): Likewise.
49939         * modules/fseeko-tests (Files): Likewise.
49940         * modules/fstrcmp-tests (Files): Likewise.
49941         * modules/fsync-tests (Files): Likewise.
49942         * modules/ftell-tests (Files): Likewise.
49943         * modules/ftello-tests (Files): Likewise.
49944         * modules/func-tests (Files): Likewise.
49945         * modules/futimens-tests (Files): Likewise.
49946         * modules/fwritable-tests (Files): Likewise.
49947         * modules/fwriting-tests (Files): Likewise.
49948         * modules/getcwd-tests (Files): Likewise.
49949         * modules/getdate-tests (Files): Likewise.
49950         * modules/getdelim-tests (Files): Likewise.
49951         * modules/getdtablesize-tests (Files): Likewise.
49952         * modules/getgroups-tests (Files): Likewise.
49953         * modules/getline-tests (Files): Likewise.
49954         * modules/getndelim2-tests (Files): Likewise.
49955         * modules/glob-tests (Files): Likewise.
49956         * modules/hash-tests (Files): Likewise.
49957         * modules/i-ring-tests (Files): Likewise.
49958         * modules/iconv-tests (Files): Likewise.
49959         * modules/iconv_open-utf-tests (Files): Likewise.
49960         * modules/idpriv-drop-tests (Files): Likewise.
49961         * modules/idpriv-droptemp-tests (Files): Likewise.
49962         * modules/inet_ntop-tests (Files): Likewise.
49963         * modules/inet_pton-tests (Files): Likewise.
49964         * modules/isblank-tests (Files): Likewise.
49965         * modules/isfinite-tests (Files): Likewise.
49966         * modules/isinf-tests (Files): Likewise.
49967         * modules/isnan-tests (Files): Likewise.
49968         * modules/isnand-nolibm-tests (Files): Likewise.
49969         * modules/isnand-tests (Files): Likewise.
49970         * modules/isnanf-nolibm-tests (Files): Likewise.
49971         * modules/isnanf-tests (Files): Likewise.
49972         * modules/isnanl-nolibm-tests (Files): Likewise.
49973         * modules/isnanl-tests (Files): Likewise.
49974         * modules/lchown-tests (Files): Likewise.
49975         * modules/ldexpl-tests (Files): Likewise.
49976         * modules/link-tests (Files): Likewise.
49977         * modules/linkat-tests (Files): Likewise.
49978         * modules/linked-list-tests (Files): Likewise.
49979         * modules/linkedhash-list-tests (Files): Likewise.
49980         * modules/localename-tests (Files): Likewise.
49981         * modules/lseek-tests (Files): Likewise.
49982         * modules/lstat-tests (Files): Likewise.
49983         * modules/mbmemcasecmp-tests (Files): Likewise.
49984         * modules/mbmemcasecoll-tests (Files): Likewise.
49985         * modules/mbrtowc-tests (Files): Likewise.
49986         * modules/mbscasecmp-tests (Files): Likewise.
49987         * modules/mbscasestr-tests (Files): Likewise.
49988         * modules/mbschr-tests (Files): Likewise.
49989         * modules/mbscspn-tests (Files): Likewise.
49990         * modules/mbsinit-tests (Files): Likewise.
49991         * modules/mbsncasecmp-tests (Files): Likewise.
49992         * modules/mbsnrtowcs-tests (Files): Likewise.
49993         * modules/mbspbrk-tests (Files): Likewise.
49994         * modules/mbspcasecmp-tests (Files): Likewise.
49995         * modules/mbsrchr-tests (Files): Likewise.
49996         * modules/mbsrtowcs-tests (Files): Likewise.
49997         * modules/mbsspn-tests (Files): Likewise.
49998         * modules/mbsstr-tests (Files): Likewise.
49999         * modules/memchr-tests (Files): Likewise.
50000         * modules/memchr2-tests (Files): Likewise.
50001         * modules/memcmp-tests (Files): Likewise.
50002         * modules/memmem-tests (Files): Likewise.
50003         * modules/memrchr-tests (Files): Likewise.
50004         * modules/mkdir-tests (Files): Likewise.
50005         * modules/mkfifo-tests (Files): Likewise.
50006         * modules/mkfifoat-tests (Files): Likewise.
50007         * modules/mknod-tests (Files): Likewise.
50008         * modules/nanosleep-tests (Files): Likewise.
50009         * modules/nl_langinfo-tests (Files): Likewise.
50010         * modules/obstack-printf-tests (Files): Likewise.
50011         * modules/open-tests (Files): Likewise.
50012         * modules/openat-tests (Files): Likewise.
50013         * modules/pipe-filter-gi-tests (Files): Likewise.
50014         * modules/pipe-filter-ii-tests (Files): Likewise.
50015         * modules/pipe2-tests (Files): Likewise.
50016         * modules/popen-safer-tests (Files): Likewise.
50017         * modules/popen-tests (Files): Likewise.
50018         * modules/posixtm-tests (Files): Likewise.
50019         * modules/pread-tests (Files): Likewise.
50020         * modules/printf-frexp-tests (Files): Likewise.
50021         * modules/printf-frexpl-tests (Files): Likewise.
50022         * modules/printf-posix-tests (Files): Likewise.
50023         * modules/priv-set-tests (Files): Likewise.
50024         * modules/quotearg-tests (Files): Likewise.
50025         * modules/random_r-tests (Files): Likewise.
50026         * modules/rawmemchr-tests (Files): Likewise.
50027         * modules/rbtree-list-tests (Files): Likewise.
50028         * modules/rbtree-oset-tests (Files): Likewise.
50029         * modules/rbtreehash-list-tests (Files): Likewise.
50030         * modules/readlink-tests (Files): Likewise.
50031         * modules/remove-tests (Files): Likewise.
50032         * modules/rename-tests (Files): Likewise.
50033         * modules/renameat-tests (Files): Likewise.
50034         * modules/rmdir-tests (Files): Likewise.
50035         * modules/round-tests (Files): Likewise.
50036         * modules/roundf-tests (Files): Likewise.
50037         * modules/roundl-tests (Files): Likewise.
50038         * modules/safe-alloc-tests (Files): Likewise.
50039         * modules/setenv-tests (Files): Likewise.
50040         * modules/sigaction-tests (Files): Likewise.
50041         * modules/signbit-tests (Files): Likewise.
50042         * modules/sleep-tests (Files): Likewise.
50043         * modules/snprintf-posix-tests (Files): Likewise.
50044         * modules/snprintf-tests (Files): Likewise.
50045         * modules/sprintf-posix-tests (Files): Likewise.
50046         * modules/stat-tests (Files): Likewise.
50047         * modules/stat-time-tests (Files): Likewise.
50048         * modules/strcasestr-tests (Files): Likewise.
50049         * modules/strchrnul-tests (Files): Likewise.
50050         * modules/strerror-tests (Files): Likewise.
50051         * modules/striconv-tests (Files): Likewise.
50052         * modules/striconveh-tests (Files): Likewise.
50053         * modules/striconveha-tests (Files): Likewise.
50054         * modules/strsignal-tests (Files): Likewise.
50055         * modules/strstr-tests (Files): Likewise.
50056         * modules/strtod-tests (Files): Likewise.
50057         * modules/strverscmp-tests (Files): Likewise.
50058         * modules/symlink-tests (Files): Likewise.
50059         * modules/symlinkat-tests (Files): Likewise.
50060         * modules/trunc-tests (Files): Likewise.
50061         * modules/truncf-tests (Files): Likewise.
50062         * modules/truncl-tests (Files): Likewise.
50063         * modules/uname-tests (Files): Likewise.
50064         * modules/unicase/cased-tests (Files): Likewise.
50065         * modules/unicase/ignorable-tests (Files): Likewise.
50066         * modules/unicase/locale-language-tests (Files): Likewise.
50067         * modules/unicase/tolower-tests (Files): Likewise.
50068         * modules/unicase/totitle-tests (Files): Likewise.
50069         * modules/unicase/toupper-tests (Files): Likewise.
50070         * modules/unicase/u8-casecmp-tests (Files): Likewise.
50071         * modules/unicase/u8-casecoll-tests (Files): Likewise.
50072         * modules/unicase/u8-casefold-tests (Files): Likewise.
50073         * modules/unicase/u8-is-cased-tests (Files): Likewise.
50074         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
50075         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
50076         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
50077         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
50078         * modules/unicase/u8-tolower-tests (Files): Likewise.
50079         * modules/unicase/u8-totitle-tests (Files): Likewise.
50080         * modules/unicase/u8-toupper-tests (Files): Likewise.
50081         * modules/unicase/u16-casecmp-tests (Files): Likewise.
50082         * modules/unicase/u16-casecoll-tests (Files): Likewise.
50083         * modules/unicase/u16-casefold-tests (Files): Likewise.
50084         * modules/unicase/u16-is-cased-tests (Files): Likewise.
50085         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
50086         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
50087         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
50088         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
50089         * modules/unicase/u16-tolower-tests (Files): Likewise.
50090         * modules/unicase/u16-totitle-tests (Files): Likewise.
50091         * modules/unicase/u16-toupper-tests (Files): Likewise.
50092         * modules/unicase/u32-casecmp-tests (Files): Likewise.
50093         * modules/unicase/u32-casecoll-tests (Files): Likewise.
50094         * modules/unicase/u32-casefold-tests (Files): Likewise.
50095         * modules/unicase/u32-is-cased-tests (Files): Likewise.
50096         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
50097         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
50098         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
50099         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
50100         * modules/unicase/u32-tolower-tests (Files): Likewise.
50101         * modules/unicase/u32-totitle-tests (Files): Likewise.
50102         * modules/unicase/u32-toupper-tests (Files): Likewise.
50103         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
50104         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
50105         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
50106         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
50107         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
50108         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
50109         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
50110         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
50111         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
50112         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
50113         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
50114         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
50115         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
50116         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
50117         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
50118         * modules/unictype/bidicategory-name-tests (Files): Likewise.
50119         * modules/unictype/bidicategory-of-tests (Files): Likewise.
50120         * modules/unictype/bidicategory-test-tests (Files): Likewise.
50121         * modules/unictype/block-list-tests (Files): Likewise.
50122         * modules/unictype/block-of-tests (Files): Likewise.
50123         * modules/unictype/block-test-tests (Files): Likewise.
50124         * modules/unictype/category-C-tests (Files): Likewise.
50125         * modules/unictype/category-Cc-tests (Files): Likewise.
50126         * modules/unictype/category-Cf-tests (Files): Likewise.
50127         * modules/unictype/category-Cn-tests (Files): Likewise.
50128         * modules/unictype/category-Co-tests (Files): Likewise.
50129         * modules/unictype/category-Cs-tests (Files): Likewise.
50130         * modules/unictype/category-L-tests (Files): Likewise.
50131         * modules/unictype/category-Ll-tests (Files): Likewise.
50132         * modules/unictype/category-Lm-tests (Files): Likewise.
50133         * modules/unictype/category-Lo-tests (Files): Likewise.
50134         * modules/unictype/category-Lt-tests (Files): Likewise.
50135         * modules/unictype/category-Lu-tests (Files): Likewise.
50136         * modules/unictype/category-M-tests (Files): Likewise.
50137         * modules/unictype/category-Mc-tests (Files): Likewise.
50138         * modules/unictype/category-Me-tests (Files): Likewise.
50139         * modules/unictype/category-Mn-tests (Files): Likewise.
50140         * modules/unictype/category-N-tests (Files): Likewise.
50141         * modules/unictype/category-Nd-tests (Files): Likewise.
50142         * modules/unictype/category-Nl-tests (Files): Likewise.
50143         * modules/unictype/category-No-tests (Files): Likewise.
50144         * modules/unictype/category-P-tests (Files): Likewise.
50145         * modules/unictype/category-Pc-tests (Files): Likewise.
50146         * modules/unictype/category-Pd-tests (Files): Likewise.
50147         * modules/unictype/category-Pe-tests (Files): Likewise.
50148         * modules/unictype/category-Pf-tests (Files): Likewise.
50149         * modules/unictype/category-Pi-tests (Files): Likewise.
50150         * modules/unictype/category-Po-tests (Files): Likewise.
50151         * modules/unictype/category-Ps-tests (Files): Likewise.
50152         * modules/unictype/category-S-tests (Files): Likewise.
50153         * modules/unictype/category-Sc-tests (Files): Likewise.
50154         * modules/unictype/category-Sk-tests (Files): Likewise.
50155         * modules/unictype/category-Sm-tests (Files): Likewise.
50156         * modules/unictype/category-So-tests (Files): Likewise.
50157         * modules/unictype/category-Z-tests (Files): Likewise.
50158         * modules/unictype/category-Zl-tests (Files): Likewise.
50159         * modules/unictype/category-Zp-tests (Files): Likewise.
50160         * modules/unictype/category-Zs-tests (Files): Likewise.
50161         * modules/unictype/category-and-not-tests (Files): Likewise.
50162         * modules/unictype/category-and-tests (Files): Likewise.
50163         * modules/unictype/category-byname-tests (Files): Likewise.
50164         * modules/unictype/category-name-tests (Files): Likewise.
50165         * modules/unictype/category-none-tests (Files): Likewise.
50166         * modules/unictype/category-of-tests (Files): Likewise.
50167         * modules/unictype/category-or-tests (Files): Likewise.
50168         * modules/unictype/category-test-withtable-tests (Files): Likewise.
50169         * modules/unictype/combining-class-tests (Files): Likewise.
50170         * modules/unictype/ctype-alnum-tests (Files): Likewise.
50171         * modules/unictype/ctype-alpha-tests (Files): Likewise.
50172         * modules/unictype/ctype-blank-tests (Files): Likewise.
50173         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
50174         * modules/unictype/ctype-digit-tests (Files): Likewise.
50175         * modules/unictype/ctype-graph-tests (Files): Likewise.
50176         * modules/unictype/ctype-lower-tests (Files): Likewise.
50177         * modules/unictype/ctype-print-tests (Files): Likewise.
50178         * modules/unictype/ctype-punct-tests (Files): Likewise.
50179         * modules/unictype/ctype-space-tests (Files): Likewise.
50180         * modules/unictype/ctype-upper-tests (Files): Likewise.
50181         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
50182         * modules/unictype/decimal-digit-tests (Files): Likewise.
50183         * modules/unictype/digit-tests (Files): Likewise.
50184         * modules/unictype/mirror-tests (Files): Likewise.
50185         * modules/unictype/numeric-tests (Files): Likewise.
50186         * modules/unictype/property-alphabetic-tests (Files): Likewise.
50187         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
50188         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
50189         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
50190         Likewise.
50191         * modules/unictype/property-bidi-block-separator-tests (Files):
50192         Likewise.
50193         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
50194         Likewise.
50195         * modules/unictype/property-bidi-common-separator-tests (Files):
50196         Likewise.
50197         * modules/unictype/property-bidi-control-tests (Files): Likewise.
50198         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
50199         Likewise.
50200         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
50201         Likewise.
50202         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
50203         Likewise.
50204         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
50205         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
50206         Likewise.
50207         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
50208         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
50209         Likewise.
50210         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
50211         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
50212         * modules/unictype/property-bidi-segment-separator-tests (Files):
50213         Likewise.
50214         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
50215         * modules/unictype/property-byname-tests (Files): Likewise.
50216         * modules/unictype/property-combining-tests (Files): Likewise.
50217         * modules/unictype/property-composite-tests (Files): Likewise.
50218         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
50219         * modules/unictype/property-dash-tests (Files): Likewise.
50220         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
50221         * modules/unictype/property-default-ignorable-code-point-tests (Files):
50222         Likewise.
50223         * modules/unictype/property-deprecated-tests (Files): Likewise.
50224         * modules/unictype/property-diacritic-tests (Files): Likewise.
50225         * modules/unictype/property-extender-tests (Files): Likewise.
50226         * modules/unictype/property-format-control-tests (Files): Likewise.
50227         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
50228         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
50229         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
50230         * modules/unictype/property-hex-digit-tests (Files): Likewise.
50231         * modules/unictype/property-hyphen-tests (Files): Likewise.
50232         * modules/unictype/property-id-continue-tests (Files): Likewise.
50233         * modules/unictype/property-id-start-tests (Files): Likewise.
50234         * modules/unictype/property-ideographic-tests (Files): Likewise.
50235         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
50236         * modules/unictype/property-ids-trinary-operator-tests (Files):
50237         Likewise.
50238         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
50239         * modules/unictype/property-iso-control-tests (Files): Likewise.
50240         * modules/unictype/property-join-control-tests (Files): Likewise.
50241         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
50242         * modules/unictype/property-line-separator-tests (Files): Likewise.
50243         * modules/unictype/property-logical-order-exception-tests (Files):
50244         Likewise.
50245         * modules/unictype/property-lowercase-tests (Files): Likewise.
50246         * modules/unictype/property-math-tests (Files): Likewise.
50247         * modules/unictype/property-non-break-tests (Files): Likewise.
50248         * modules/unictype/property-not-a-character-tests (Files): Likewise.
50249         * modules/unictype/property-numeric-tests (Files): Likewise.
50250         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
50251         * modules/unictype/property-other-default-ignorable-code-point-tests
50252         (Files): Likewise.
50253         * modules/unictype/property-other-grapheme-extend-tests (Files):
50254         Likewise.
50255         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
50256         * modules/unictype/property-other-id-start-tests (Files): Likewise.
50257         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
50258         * modules/unictype/property-other-math-tests (Files): Likewise.
50259         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
50260         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
50261         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
50262         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
50263         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
50264         * modules/unictype/property-private-use-tests (Files): Likewise.
50265         * modules/unictype/property-punctuation-tests (Files): Likewise.
50266         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
50267         * modules/unictype/property-radical-tests (Files): Likewise.
50268         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
50269         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
50270         * modules/unictype/property-space-tests (Files): Likewise.
50271         * modules/unictype/property-terminal-punctuation-tests (Files):
50272         Likewise.
50273         * modules/unictype/property-test-tests (Files): Likewise.
50274         * modules/unictype/property-titlecase-tests (Files): Likewise.
50275         * modules/unictype/property-unassigned-code-value-tests (Files):
50276         Likewise.
50277         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
50278         * modules/unictype/property-uppercase-tests (Files): Likewise.
50279         * modules/unictype/property-variation-selector-tests (Files): Likewise.
50280         * modules/unictype/property-white-space-tests (Files): Likewise.
50281         * modules/unictype/property-xid-continue-tests (Files): Likewise.
50282         * modules/unictype/property-xid-start-tests (Files): Likewise.
50283         * modules/unictype/property-zero-width-tests (Files): Likewise.
50284         * modules/unictype/scripts-tests (Files): Likewise.
50285         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
50286         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
50287         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
50288         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
50289         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
50290         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
50291         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
50292         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
50293         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
50294         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
50295         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
50296         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
50297         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
50298         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
50299         * modules/uninorm/composition-tests (Files): Likewise.
50300         * modules/uninorm/decomposing-form-tests (Files): Likewise.
50301         * modules/uninorm/decomposition-tests (Files): Likewise.
50302         * modules/uninorm/filter-tests (Files): Likewise.
50303         * modules/uninorm/nfc-tests (Files): Likewise.
50304         * modules/uninorm/nfd-tests (Files): Likewise.
50305         * modules/uninorm/nfkc-tests (Files): Likewise.
50306         * modules/uninorm/nfkd-tests (Files): Likewise.
50307         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
50308         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
50309         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
50310         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
50311         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
50312         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
50313         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
50314         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
50315         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
50316         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
50317         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
50318         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
50319         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
50320         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
50321         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
50322         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
50323         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
50324         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
50325         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
50326         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
50327         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
50328         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
50329         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
50330         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
50331         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
50332         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
50333         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
50334         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
50335         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
50336         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
50337         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
50338         * modules/uniwidth/u8-width-tests (Files): Likewise.
50339         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
50340         * modules/uniwidth/u16-width-tests (Files): Likewise.
50341         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
50342         * modules/uniwidth/u32-width-tests (Files): Likewise.
50343         * modules/uniwidth/width-tests (Files): Likewise.
50344         * modules/unlink-tests (Files): Likewise.
50345         * modules/unsetenv-tests (Files): Likewise.
50346         * modules/usleep-tests (Files): Likewise.
50347         * modules/utimens-tests (Files): Likewise.
50348         * modules/utimensat-tests (Files): Likewise.
50349         * modules/vasnprintf-posix-tests (Files): Likewise.
50350         * modules/vasnprintf-tests (Files): Likewise.
50351         * modules/vasprintf-posix-tests (Files): Likewise.
50352         * modules/vasprintf-tests (Files): Likewise.
50353         * modules/vdprintf-posix-tests (Files): Likewise.
50354         * modules/vfprintf-posix-tests (Files): Likewise.
50355         * modules/vprintf-posix-tests (Files): Likewise.
50356         * modules/vsnprintf-posix-tests (Files): Likewise.
50357         * modules/vsnprintf-tests (Files): Likewise.
50358         * modules/vsprintf-posix-tests (Files): Likewise.
50359         * modules/wcrtomb-tests (Files): Likewise.
50360         * modules/wcsnrtombs-tests (Files): Likewise.
50361         * modules/wcsrtombs-tests (Files): Likewise.
50362         * modules/wctype-tests (Files): Likewise.
50363         * modules/wcwidth-tests (Files): Likewise.
50364         * modules/xmemdup0-tests (Files): Likewise.
50365         * modules/xprintf-posix-tests (Files): Likewise.
50366         * modules/xvasprintf-tests (Files): Likewise.
50368 2009-12-24  Eric Blake  <ebb9@byu.net>
50370         test-nanosleep: fix typo
50371         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
50372         patch.
50373         Reported by Bruno Haible.
50375 2009-12-24  Bruno Haible  <bruno@clisp.org>
50377         Reduce namespace pollution on glibc systems.
50378         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
50379         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
50380         systems.
50381         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
50382         <getopt.h> on glibc systems.
50383         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
50384         systems.
50385         * lib/fcntl.c: Include <unistd.h> here instead.
50387 2009-12-24  Bruno Haible  <bruno@clisp.org>
50389         * lib/stdlib.in.h (includes): Fix typo in today's commit.
50391 2009-12-24  Eric Blake  <ebb9@byu.net>
50393         tests: add signature checks
50394         * tests/signature.h (SIGNATURE_CHECK): New file.
50395         * modules/atexit-tests (Files): Use it.
50396         * modules/btowc-tests (Files): Likewise.
50397         * modules/canonicalize-lgpl-tests (Files): Likewise.
50398         * modules/ceilf-tests (Files): Likewise.
50399         * modules/ceill-tests (Files): Likewise.
50400         * modules/chown-tests (Files): Likewise.
50401         * modules/dprintf-posix-tests (Files): Likewise.
50402         * modules/dup2-tests (Files): Likewise.
50403         * modules/dup3-tests (Files): Likewise.
50404         * modules/duplocale-tests (Files): Likewise.
50405         * modules/fchdir-tests (Files): Likewise.
50406         * modules/fcntl-tests (Files): Likewise.
50407         * modules/fdopendir-tests (Files): Likewise.
50408         * modules/fflush-tests (Files): Likewise.
50409         * modules/flock-tests (Files): Likewise.
50410         * modules/floorf-tests (Files): Likewise.
50411         * modules/floorl-tests (Files): Likewise.
50412         * modules/fnmatch-tests (Files): Likewise.
50413         * modules/fopen-tests (Files): Likewise.
50414         * modules/fprintf-posix-tests (Files): Likewise.
50415         * modules/freopen-tests (Files): Likewise.
50416         * modules/frexp-nolibm-tests (Files): Likewise.
50417         * modules/frexp-tests (Files): Likewise.
50418         * modules/frexpl-nolibm-tests (Files): Likewise.
50419         * modules/frexpl-tests (Files): Likewise.
50420         * modules/fseek-tests (Files): Likewise.
50421         * modules/fseeko-tests (Files): Likewise.
50422         * modules/fsync-tests (Files): Likewise.
50423         * modules/ftell-tests (Files): Likewise.
50424         * modules/ftello-tests (Files): Likewise.
50425         * modules/futimens-tests (Files): Likewise.
50426         * modules/getaddrinfo-tests (Files): Likewise.
50427         * modules/getcwd-tests (Files): Likewise.
50428         * modules/getdelim-tests (Files): Likewise.
50429         * modules/getdtablesize-tests (Files): Likewise.
50430         * modules/getgroups-tests (Files): Likewise.
50431         * modules/gethostname-tests (Files): Likewise.
50432         * modules/getline-tests (Files): Likewise.
50433         * modules/getopt-posix-tests (Files): Likewise.
50434         * modules/gettimeofday-tests (Files): Likewise.
50435         * modules/glob-tests (Files): Likewise.
50436         * modules/iconv-tests (Files): Likewise.
50437         * modules/inet_ntop-tests (Files): Likewise.
50438         * modules/inet_pton-tests (Files): Likewise.
50439         * modules/isblank-tests (Files): Likewise.
50440         * modules/lchown-tests (Files): Likewise.
50441         * modules/ldexpl-tests (Files): Likewise.
50442         * modules/link-tests (Files): Likewise.
50443         * modules/linkat-tests (Files): Likewise.
50444         * modules/lseek-tests (Files): Likewise.
50445         * modules/lstat-tests (Files): Likewise.
50446         * modules/mbrtowc-tests (Files): Likewise.
50447         * modules/mbsinit-tests (Files): Likewise.
50448         * modules/mbsnrtowcs-tests (Files): Likewise.
50449         * modules/mbsrtowcs-tests (Files): Likewise.
50450         * modules/memchr-tests (Files): Likewise.
50451         * modules/memcmp-tests (Files): Likewise.
50452         * modules/memmem-tests (Files): Likewise.
50453         * modules/memrchr-tests (Files): Likewise.
50454         * modules/mkdir-tests (Files): Likewise.
50455         * modules/mkfifo-tests (Files): Likewise.
50456         * modules/mkfifoat-tests (Files): Likewise.
50457         * modules/mknod-tests (Files): Likewise.
50458         * modules/nanosleep-tests (Files): Likewise.
50459         * modules/nl_langinfo-tests (Files): Likewise.
50460         * modules/obstack-printf-tests (Files): Likewise.
50461         * modules/open-tests (Files): Likewise.
50462         * modules/openat-tests (Files): Likewise.
50463         * modules/perror-tests (Files): Likewise.
50464         * modules/pipe2-tests (Files): Likewise.
50465         * modules/poll-tests (Files): Likewise.
50466         * modules/popen-tests (Files): Likewise.
50467         * modules/posix_spawn-tests (Files): Likewise.
50468         * modules/posix_spawnp-tests (Files): Likewise.
50469         * modules/pread-tests (Files): Likewise.
50470         * modules/printf-posix-tests (Files): Likewise.
50471         * modules/pty-tests (Files): Likewise.
50472         * modules/random_r-tests (Files): Likewise.
50473         * modules/rawmemchr-tests (Files): Likewise.
50474         * modules/readlink-tests (Files): Likewise.
50475         * modules/remove-tests (Files): Likewise.
50476         * modules/rename-tests (Files): Likewise.
50477         * modules/renameat-tests (Files): Likewise.
50478         * modules/rmdir-tests (Files): Likewise.
50479         * modules/round-tests (Files): Likewise.
50480         * modules/roundf-tests (Files): Likewise.
50481         * modules/roundl-tests (Files): Likewise.
50482         * modules/select-tests (Files): Likewise.
50483         * modules/setenv-tests (Files): Likewise.
50484         * modules/sigaction-tests (Files): Likewise.
50485         * modules/sleep-tests (Files): Likewise.
50486         * modules/snprintf-posix-tests (Files): Likewise.
50487         * modules/snprintf-tests (Files): Likewise.
50488         * modules/sprintf-posix-tests (Files): Likewise.
50489         * modules/stat-tests (Files): Likewise.
50490         * modules/strcasestr-tests (Files): Likewise.
50491         * modules/strchrnul-tests (Files): Likewise.
50492         * modules/strerror-tests (Files): Likewise.
50493         * modules/strsignal-tests (Files): Likewise.
50494         * modules/strstr-tests (Files): Likewise.
50495         * modules/strtod-tests (Files): Likewise.
50496         * modules/strverscmp-tests (Files): Likewise.
50497         * modules/symlink-tests (Files): Likewise.
50498         * modules/symlinkat-tests (Files): Likewise.
50499         * modules/times-tests (Files): Likewise.
50500         * modules/trunc-tests (Files): Likewise.
50501         * modules/truncf-tests (Files): Likewise.
50502         * modules/truncl-tests (Files): Likewise.
50503         * modules/tsearch-tests (Files): Likewise.
50504         * modules/uname-tests (Files): Likewise.
50505         * modules/unlink-tests (Files): Likewise.
50506         * modules/unsetenv-tests (Files): Likewise.
50507         * modules/usleep-tests (Files): Likewise.
50508         * modules/utimensat-tests (Files): Likewise.
50509         * modules/vasprintf-tests (Files): Likewise.
50510         * modules/vdprintf-posix-tests (Files): Likewise.
50511         * modules/vfprintf-posix-tests (Files): Likewise.
50512         * modules/vprintf-posix-tests (Files): Likewise.
50513         * modules/vsnprintf-posix-tests (Files): Likewise.
50514         * modules/vsnprintf-tests (Files): Likewise.
50515         * modules/vsprintf-posix-tests (Files): Likewise.
50516         * modules/wcrtomb-tests (Files): Likewise.
50517         * modules/wcsnrtombs-tests (Files): Likewise.
50518         * modules/wcsrtombs-tests (Files): Likewise.
50519         * modules/wcwidth-tests (Files): Likewise.
50520         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
50521         * tests/test-isinf.c (isinf): Likewise.
50522         * tests/test-isnan.c (isnan): Likewise.
50523         * tests/test-signbit.c (signbit): Likewise.
50524         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
50525         declaration, either as macro or with correct signature.
50526         (select): Ensure function under test is declared with correct
50527         signature in correct header.
50528         * tests/test-atexit.c (atexit): Likewise.
50529         * tests/test-btowc.c (btowc): Likewise.
50530         * tests/test-canonicalize-lgpl.c (realpath)
50531         (canonicalize_file_name): Likewise.
50532         * tests/test-ceilf1.c (ceilf): Likewise.
50533         * tests/test-ceill.c (ceill): Likewise.
50534         * tests/test-chown.c (chown): Likewise.
50535         * tests/test-dprintf-posix.c (dprintf): Likewise.
50536         * tests/test-dup2.c (dup2): Likewise.
50537         * tests/test-dup3.c (dup3): Likewise.
50538         * tests/test-duplocale.c (duplocale): Likewise.
50539         * tests/test-fchdir.c (fchdir): Likewise.
50540         * tests/test-fchownat.c (fchownat): Likewise.
50541         * tests/test-fcntl.c (fcntl): Likewise.
50542         * tests/test-fdopendir.c (fdopendir): Likewise.
50543         * tests/test-fflush.c (fflush): Likewise.
50544         * tests/test-flock.c (flock): Likewise.
50545         * tests/test-floorf1.c (floorf): Likewise.
50546         * tests/test-floorl.c (floorl): Likewise.
50547         * tests/test-fnmatch.c (fnmatch): Likewise.
50548         * tests/test-fopen.c (fopen): Likewise.
50549         * tests/test-fprintf-posix.c (fprintf): Likewise.
50550         * tests/test-freopen.c (freopen): Likewise.
50551         * tests/test-frexp.c (frexp): Likewise.
50552         * tests/test-frexpl.c (frexpl): Likewise.
50553         * tests/test-fseek.c (fseek): Likewise.
50554         * tests/test-fseeko.c (fseeko): Likewise.
50555         * tests/test-fstatat.c (fstatat): Likewise.
50556         * tests/test-fsync.c (fsync): Likewise.
50557         * tests/test-ftell.c (ftell): Likewise.
50558         * tests/test-ftello.c (ftello): Likewise.
50559         * tests/test-futimens.c (futimens): Likewise.
50560         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
50561         (gai_strerror): Likewise.
50562         * tests/test-getcwd.c (getcwd): Likewise.
50563         * tests/test-getdelim.c (getdelim): Likewise.
50564         * tests/test-getdtablesize.c (getdtablesize): Likewise.
50565         * tests/test-getgroups.c (getgroups): Likewise.
50566         * tests/test-gethostname.c (gethostname): Likewise.
50567         * tests/test-getline.c (getline): Likewise.
50568         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
50569         Likewise.
50570         * tests/test-gettimeofday.c (gettimeofday): Likewise.
50571         * tests/test-glob.c (glob, globfree): Likewise.
50572         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
50573         * tests/test-inet_ntop.c (inet_ntop): Likewise.
50574         * tests/test-inet_pton.c (inet_pton): Likewise.
50575         * tests/test-isblank.c (isblank): Likewise.
50576         * tests/test-lchown.c (lchown): Likewise.
50577         * tests/test-ldexpl.c (ldexpl): Likewise.
50578         * tests/test-link.c (link): Likewise.
50579         * tests/test-linkat.c (linkat): Likewise.
50580         * tests/test-lseek.c (lseek): Likewise.
50581         * tests/test-lstat.c (lstat): Likewise.
50582         * tests/test-mbrtowc.c (mbrtowc): Likewise.
50583         * tests/test-mbsinit.c (mbsinit): Likewise.
50584         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
50585         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
50586         * tests/test-memchr.c (memchr): Likewise.
50587         * tests/test-memcmp.c (memcmp): Likewise.
50588         * tests/test-memmem.c (memmem): Likewise.
50589         * tests/test-memrchr.c (memrchr): Likewise.
50590         * tests/test-mkdir.c (mkdir): Likewise.
50591         * tests/test-mkdirat.c (mkdirat): Likewise.
50592         * tests/test-mkfifo.c (mkfifo): Likewise.
50593         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
50594         * tests/test-mknod.c (mknod): Likewise.
50595         * tests/test-nanosleep.c (nanosleep): Likewise.
50596         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
50597         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
50598         Likewise.
50599         * tests/test-open.c (open): Likewise.
50600         * tests/test-openat.c (openat): Likewise.
50601         * tests/test-perror.c (perror): Likewise.
50602         * tests/test-pipe2.c (pipe2): Likewise.
50603         * tests/test-poll.c (poll): Likewise.
50604         * tests/test-popen.c (popen, pclose): Likewise.
50605         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
50606         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
50607         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
50608         (posix_spawn_file_actions_destroy)
50609         (posix_spawn_file_actions_addclose)
50610         (posix_spawn_file_actions_addopen)
50611         (posix_spawn_file_actions_adddup2): Likewise.
50612         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
50613         * tests/test-pread.c (pread): Likewise.
50614         * tests/test-printf-posix.c (printf): Likewise.
50615         * tests/test-pty.c (openpty, forkpty): Likewise.
50616         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
50617         (random_r): Likewise.
50618         * tests/test-rawmemchr.c (rawmemchr): Likewise.
50619         * tests/test-readlink.c (readlink): Likewise.
50620         * tests/test-remove.c (remove): Likewise.
50621         * tests/test-rename.c (rename): Likewise.
50622         * tests/test-renameat.c (renameat): Likewise.
50623         * tests/test-rmdir.c (rmdir): Likewise.
50624         * tests/test-round1.c (round): Likewise.
50625         * tests/test-roundf1.c (roundf): Likewise.
50626         * tests/test-roundl.c (roundl): Likewise.
50627         * tests/test-setenv.c (setenv): Likewise.
50628         * tests/test-sigaction.c (sigaction): Likewise.
50629         * tests/test-sleep.c (sleep): Likewise.
50630         * tests/test-snprintf.c (snprintf): Likewise.
50631         * tests/test-sprintf-posix.c (sprintf): Likewise.
50632         * tests/test-stat.c (stat): Likewise.
50633         * tests/test-stpncpy.c (stpncpy): Likewise.
50634         * tests/test-strcasestr.c (strcasestr): Likewise.
50635         * tests/test-strchrnul.c (strchrnul): Likewise.
50636         * tests/test-strerror.c (strerror): Likewise.
50637         * tests/test-strsignal.c (strsignal): Likewise.
50638         * tests/test-strstr.c (strstr): Likewise.
50639         * tests/test-strtod.c (strtod): Likewise.
50640         * tests/test-strverscmp.c (strverscmp): Likewise.
50641         * tests/test-symlink.c (symlink): Likewise.
50642         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
50643         * tests/test-times.c (times): Likewise.
50644         * tests/test-trunc1.c (trunc): Likewise.
50645         * tests/test-truncf1.c (truncf): Likewise.
50646         * tests/test-truncl.c (truncl): Likewise.
50647         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
50648         Likewise.
50649         * tests/test-uname.c (uname): Likewise.
50650         * tests/test-unlink.c (unlink): Likewise.
50651         * tests/test-unlinkat.c (unlinkat): Likewise.
50652         * tests/test-unsetenv.c (unsetenv): Likewise.
50653         * tests/test-usleep.c (usleep): Likewise.
50654         * tests/test-utimensat.c (utimensat): Likewise.
50655         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
50656         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
50657         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
50658         * tests/test-vprintf-posix.c (vprintf): Likewise.
50659         * tests/test-vsnprintf.c (vsnprintf): Likewise.
50660         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
50661         * tests/test-wcrtomb.c (wcrtomb): Likewise.
50662         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
50663         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
50664         * tests/test-wcwidth.c (wcwidth): Likewise.
50666         build: pull in conditional headers during GNULIB_POSIXCHECK
50667         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
50668         definitions from any conditionally-included headers.
50669         * lib/stdlib.in.h (includes): Likewise.
50670         * lib/unistd.in.h (includes): Likewise.
50672 2009-12-24  Bruno Haible  <bruno@clisp.org>
50674         * tests/test-argv-iter.c: Include header file being tested immediately
50675         after config.h.
50676         * tests/test-base64.c: Likewise.
50677         * tests/test-flock.c: Likewise.
50678         * tests/test-fsync.c: Likewise.
50679         * tests/test-getdate.c: Likewise.
50680         * tests/test-getndelim2.c: Likewise.
50681         * tests/test-isfinite.c: Likewise.
50682         * tests/test-isinf.c: Likewise.
50683         * tests/test-strerror.c: Likewise.
50684         * tests/test-strsignal.c: Likewise.
50686 2009-12-23  Eric Blake  <ebb9@byu.net>
50688         unistd: work around cygwin bug
50689         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
50690         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
50691         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
50693 2009-12-23  Bruno Haible  <bruno@clisp.org>
50695         localename: More tests.
50696         * tests/test-localename.c (SIZEOF): New macro.
50697         (categories): New variable.
50698         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
50699         test_locale_name_default): Add test w.r.t. thread locale.
50700         (test_locale_name_thread): New function.
50701         (main): Invoke it.
50703         localename: Make aware of thread locale.
50704         * lib/localename.h (gl_locale_name_thread): New declaration.
50705         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
50706         behaviour with respect to thread locale.
50707         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
50708         <langinfo.h>, glthread/lock.h.
50709         (SIZE_BITS): New macro.
50710         (string_hash): New function.
50711         (struct hash_node): New type.
50712         (HASH_TABLE_SIZE): New macro.
50713         (struniq_hash_table, struniq_lock): New variables.
50714         (struniq): New function.
50715         (gl_locale_name_thread): New function.
50716         (gl_locale_name): Invoke it.
50717         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
50718         * modules/localename (Depends-on): Add lock.
50719         Reported by Mike Gran <spk121@yahoo.com>.
50721 2009-12-23  Eric Blake  <ebb9@byu.net>
50723         va-args: new module
50724         * modules/va-args: New file.
50725         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
50726         * MODULES.html.sh (Core language properties): Mention it.
50728         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
50729         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
50730         named alias for __attribute__((__unused__)).
50731         * lib/chown.c: Update client.
50732         * lib/fchmodat.c: Likewise.
50733         * lib/fts.c: Likewise.
50734         * lib/getdate.y: Likewise.
50735         * lib/getgroups.c: Likewise.
50736         * lib/getopt.c: Likewise.
50737         * lib/getugroups.c: Likewise.
50738         * lib/mkdir.c: Likewise.
50739         * lib/mkfifo.c: Likewise.
50740         * lib/mkfifoat.c: Likewise.
50741         * lib/mknod.c: Likewise.
50742         * lib/mknodat.c: Likewise.
50743         * lib/readlink.c: Likewise.
50744         * lib/se-context.in.h: Likewise.
50745         * lib/se-selinux.in.h: Likewise.
50746         * lib/sockets.c: Likewise.
50747         * lib/symlink.c: Likewise.
50748         * lib/symlinkat.c: Likewise.
50749         * lib/unicodeio.c: Likewise.
50750         * lib/unistr.h: Likewise.
50751         * tests/test-areadlink.c: Likewise.
50752         * tests/test-areadlinkat.c: Likewise.
50753         * tests/test-filenamecat.c: Likewise.
50754         * tests/test-fseeko.c: Likewise.
50755         * tests/test-ftello.c: Likewise.
50756         * tests/test-getdate.c: Likewise.
50757         * tests/test-getgroups.c: Likewise.
50758         * tests/test-gethostname.c: Likewise.
50759         * tests/test-quotearg.c: Likewise.
50760         * tests/test-version-etc.c: Likewise.
50761         * tests/test-xalloc-die.c: Likewise.
50762         * tests/test-xfprintf-posix.c: Likewise.
50763         * tests/test-xprintf-posix.c: Likewise.
50764         * tests/test-xvasprintf.c: Likewise.
50766         tests: avoid compiler warnings
50767         * tests/test-fcntl.c (main): Delete unused parameters.
50768         * tests/test-freopen-safer.c (main): Likewise.
50769         * tests/test-xalloc-die.c (main): Mark unused parameters.
50770         * tests/test-fseeko.c (main): Likewise.
50771         * tests/test-ftello.c (main): Likewise.
50772         * tests/test-nanosleep.c (main): Avoid declaration warning.
50773         * tests/test-sleep.c (main): Likewise.
50774         * tests/test-unsetenv.c (main): Silence warning about string
50775         literal.
50776         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
50778 2009-12-23  Bruno Haible  <bruno@clisp.org>
50780         * tests/test-localename.c (test_locale_name): New function, extracted
50781         from main. Also test mixed situations.
50782         (test_locale_name_posix, test_locale_name_environ,
50783         test_locale_name_default): New functions.
50784         (main): Invoke them all.
50785         * modules/localename-tests (configure.ac): Test for newlocale.
50787 2009-12-23  Bruno Haible  <bruno@clisp.org>
50789         unistd: Ensure getcwd gets declared before being overridden.
50790         * lib/unistd.in.h: Conditionally include <io.h>.
50792 2009-12-22  Bruno Haible  <bruno@clisp.org>
50794         wchar: Diagnose broken combination of glibc and gcc versions and flags.
50795         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
50796         (gl_WCHAR_H): Invoke it.
50797         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
50798         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
50799         Reported by Karl Berry <karl@freefriends.org>.
50801 2009-12-22  Eric Blake  <ebb9@byu.net>
50803         math, unistd: avoid redundant includes
50804         * lib/math.in.h (isnan): No need to re-include <math.h>.
50805         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
50807         getsubopt: work around cygwin bug
50808         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
50809         avoid conflicting with system getsubopt.
50810         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
50811         bug.
50813         getopt: synchronize from glibc
50814         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
50815         parameter order.  Adjust all callers.
50816         (_getopt_internal_r, main): Adjust quoting in error messages.
50817         Drop considerations for outdated POSIX 1003.2 error message.
50818         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
50819         callers.
50820         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
50822         test-getopt: test stderr behavior
50823         * modules/getopt-posix-tests (Depends-on): Add dup2.
50824         * tests/test-getopt.c (ASSERT): Avoid stderr.
50825         (main): Move stderr to a temporary file.
50826         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
50827         Instead, add parameter to inform caller if output occurred.
50828         (test_getopt): Adjust all existing tests to expect silence, and
50829         add new tests of leading ":".
50830         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
50831         glibc shortcomings with leading "-:" or "+:" in optstring.
50832         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
50833         Likewise.
50834         * doc/posix-functions/getopt.texi (getopt): Likewise.
50836         test-getopt: enhance test
50837         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
50838         supports optind=0.
50839         * tests/test-getopt.c (OPTIND_MIN): Move...
50840         * tests/test-getopt.h (OPTIND_MIN): ...here.
50841         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
50842         Require that optind=0 works, since modern BSD supports it in
50843         addition to optreset, and since coreutils expects it.
50844         (test_getopt_long_only): New test.
50845         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
50846         glibc shortcomings with 'W;', and enforcement of optind=0.
50847         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
50848         Likewise.
50850 2009-12-21  Bruno Haible  <bruno@clisp.org>
50852         localename: Improvements for MacOS X and Cygwin.
50853         * lib/localename.h (gl_locale_name_environ): New declaration.
50854         * lib/localename.c (gl_locale_name_environ): New function, extracted from
50855         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
50856         (gl_locale_name_posix): Invoke it.
50857         (gl_locale_name_default): Add comments. Use Windows native API also on
50858         Cygwin.
50860 2009-12-21  Bruno Haible  <bruno@clisp.org>
50862         Update list of Win32 locale ids.
50863         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
50864         (LANG_SAMI): Renamed from LANG_SAAMI.
50865         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
50866         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
50867         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
50868         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
50869         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
50870         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
50871         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
50872         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
50873         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
50874         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
50875         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
50876         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
50877         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
50878         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
50879         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
50880         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
50881         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
50882         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
50883         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
50884         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
50885         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
50886         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
50887         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
50888         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
50889         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
50890         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
50891         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
50892         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
50893         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
50894         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
50895         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
50896         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
50897         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
50898         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
50899         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
50900         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
50901         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
50902         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
50903         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
50904         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
50905         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
50906         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
50907         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
50908         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
50909         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
50910         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
50911         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
50912         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
50913         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
50914         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
50915         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
50916         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
50917         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
50918         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
50919         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
50920         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
50921         Add more languages and countries for Sami, Sorbian. Add more countries
50922         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
50923         for Pashto. Change country for Syriac, Tswana.
50925 2009-12-21  Eric Blake  <ebb9@byu.net>
50927         test-utimens: avoid spurious failure
50928         * tests/test-chown.h (nap): Factor...
50929         * tests/nap.h: ...into new file.
50930         * tests/test-lchown.h (nap): Avoid duplication.
50931         * tests/test-utimens-common.h (nap): Use shared implementation,
50932         necessary on file systems with 1-second resolution.
50933         * modules/chown-tests (Files): Include new file.
50934         * modules/fdutimensat-tests (Files): Likewise.
50935         * modules/futimens-tests (Files): Likewise.
50936         * modules/lchown-tests (Files): Likewise.
50937         * modules/openat-tests (Files): Likewise.
50938         * modules/utimens-tests (Files): Likewise.
50939         * modules/utimensat-tests (Files): Likewise.
50941 2009-12-19  Eric Blake  <ebb9@byu.net>
50943         futimens, utimensat: work around Linux bug
50944         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
50945         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
50946         * lib/utimensat.c (rpl_utimensat): Work around it.
50947         * lib/futimens.c (rpl_futimens): Adjust comment.
50949         utimens: work around Linux ctime bug
50950         * lib/utimens.c (detect_ctime_bug): New helper function.
50951         (update_timespec): Differentiate between workaround needed for
50952         this bug vs. what is needed for systems that lack utimensat.
50953         (fdutimens, lutimens): Work around bug.
50955         utimens: check for ctime update
50956         * tests/test-utimens-common.h (check_ctime): Define.
50957         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
50958         * tests/test-futimens.h (test_futimens): Likewise.
50959         * tests/test-lutimens.h (test_lutimens): Likewise.
50960         * doc/posix-functions/futimens.texi (futimens): Document the bug.
50961         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
50963 2009-12-19  Bruno Haible  <bruno@clisp.org>
50965         dprintf-posix: Check against memory leak fixed on 2009-12-15.
50966         * tests/test-dprintf-posix2.sh: New file.
50967         * tests/test-dprintf-posix2.c: New file.
50968         * modules/dprintf-posix-tests (Files): Add them.
50969         (configure.ac): Check for getrlimit and setrlimit.
50970         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
50972 2009-12-19  Bruno Haible  <bruno@clisp.org>
50974         fprintf-posix: Check against memory leak fixed on 2009-12-15.
50975         * tests/test-fprintf-posix3.sh: New file.
50976         * tests/test-fprintf-posix3.c: New file.
50977         * modules/fprintf-posix-tests (Files): Add them.
50978         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
50980 2009-12-19  Eric Blake  <ebb9@byu.net>
50982         dirfd: fix prototype
50983         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
50984         * lib/dirfd.c (dirfd): Likewise.
50986         canonicalize: reduce memory usage
50987         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
50988         allocation to size.
50989         Reported by Solar Designer <solar@openwall.com>.
50991 2009-12-19  Bruno Haible  <bruno@clisp.org>
50993         New module attribute 'Applicability'.
50994         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
50995         * gnulib-tool: New option --extract-applicability.
50996         (func_usage): Document it.
50997         (sed_extract_prog): Recognize it.
50998         (func_get_applicability): New function.
50999         (func_import): Generalize handling of 'link-warning' module.
51000         * modules/link-warning (Applicability): New section.
51001         * modules/arg-nonnull (Applicability): New section.
51002         Repoted by Simon Josefsson <simon@josefsson.org>.
51004 2009-12-19  Bruno Haible  <bruno@clisp.org>
51006         fflush: tweak
51007         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
51008         * lib/fseeko.c (rpl_fseeko): Likewise.
51010 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
51012         * lib/gl_list.h: Fix typo in comment.
51014 2009-12-16  Eric Blake  <ebb9@byu.net>
51016         fcntl: use to simplify other modules
51017         * modules/cloexec (Depends-on): Add fcntl.
51018         * modules/fchdir (Depends-on): Likewise.
51019         * modules/fd-safer-flag (Depends-on): Likewise.
51020         * modules/unistd-safer (Depends-on): Likewise.
51021         * modules/dup3 (configure.ac): Set module indicator.
51022         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
51023         missing.
51024         * lib/fchdir.c (_gl_register_dup): Fix comment.
51025         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
51026         * lib/dup-safer.c (dup_safer): Likewise.
51027         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
51028         * lib/dup3.c (dup3): Likewise.
51029         * tests/test-fchdir.c (main): Enhance test.
51030         Fixes a dup_cloexec bug reported by Ondřej Vašík.
51032         fcntl: port portions of fcntl to mingw
51033         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
51034         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
51035         replacement for mingw.
51036         * modules/fcntl (Description): Update.
51037         (Depends-on): Add dup2.
51038         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
51039         * modules/fcntl-h (Makefile.am): Substitute it.
51040         * lib/fcntl.in.h (fcntl): Update declaration.
51041         (F_DUPFD, F_GETFD): New macros, when needed.
51042         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
51043         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
51044         * tests/test-fcntl.c (check_flags, main): Enhance test for items
51045         we now guarantee.
51047         fcntl: work around cygwin bug in F_DUPFD
51048         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
51049         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
51050         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
51051         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
51052         * doc/posix-functions/fcntl.texi (fcntl): Document it.
51054         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
51055         * modules/fcntl (Files): List new files.
51056         (configure.ac): Run a test.
51057         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
51058         * lib/fcntl.c (rpl_fcntl): Likewise.
51059         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
51060         (gl_FCNTL_H): Always replace fcntl.h.
51061         * modules/fcntl-h (Makefile.am): Substitute witnesses.
51062         * lib/fcntl.in.h (fcntl): Declare replacement.
51063         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
51064         needed, plus a witness.
51065         * doc/posix-functions/fcntl.texi (fcntl): Document this.
51066         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
51067         * tests/test-fcntl.c: New file.
51068         * modules/fcntl-tests: Likewise.
51070         binary-io: avoid potential compilation warning
51071         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
51072         directives.
51074         fflush: avoid compilation error on NetBSD
51075         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
51076         between off_t and fpos_t, since the latter is sometimes a struct.
51077         * lib/fseeko.c (rpl_fseeko): Likewise.
51078         Reported by Alexander Nasonov <alnsn@yandex.ru>.
51080 2009-12-15  Eric Blake  <ebb9@byu.net>
51082         fcntl-h, stdio, sys_ioctl: fix declarations
51083         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
51084         function must not take arguments.
51085         * lib/sys_ioctl.in.h (ioctl): Likewise.
51086         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
51087         (open): Add a link warning.
51089 2009-12-15  Jim Meyering  <meyering@redhat.com>
51091         areadlink, areadlink-with-size: relax license to LGPLv2+
51092         * modules/areadlink (License): Relax to LGPLv2+.
51093         * modules/areadlink-with-size (License): Likewise.
51095 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
51096             Bruno Haible  <bruno@clisp.org>
51098         *printf: Fix memory leak.
51099         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
51100         * lib/vfprintf.c (vfprintf): Likewise.
51101         * lib/dprintf.c (dprintf): Likewise.
51102         * lib/vdprintf.c (vdprintf): Likewise.
51104 2009-12-14  Eric Blake  <ebb9@byu.net>
51106         accept4: adjust module dependencies
51107         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
51109         utimens: one more try at avoiding compiler warning
51110         * lib/utimens.c (lutimens): Lower scope of result.
51112 2009-12-13  Bruno Haible  <bruno@clisp.org>
51114         Move the malloc checking from module 'list' to new module 'xlist'.
51115         * modules/xlist: New file.
51116         * lib/gl_xlist.h: New file.
51117         * lib/gl_xlist.c: New file.
51118         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
51119         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
51120         gl_list_add_last, gl_list_add_before, gl_list_add_after,
51121         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
51122         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
51123         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
51124         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
51125         gl_sortedlist_nx_add): New declarations.
51126         (struct gl_list_implementation): Rename and change methods accordingly.
51127         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
51128         (gl_list_nx_create): Renamed from gl_list_create.
51129         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
51130         (gl_list_nx_set_at): Renamed from gl_list_set_at.
51131         (gl_list_nx_add_first): Renamed from gl_list_add_first.
51132         (gl_list_nx_add_last): Renamed from gl_list_add_last.
51133         (gl_list_nx_add_before): Renamed from gl_list_add_before.
51134         (gl_list_nx_add_after): Renamed from gl_list_add_after.
51135         (gl_list_nx_add_at): Renamed from gl_list_add_at.
51136         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
51137         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
51138         gl_list_create_empty.
51139         (gl_list_nx_create): Renamed from gl_list_create.
51140         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
51141         (gl_list_nx_set_at): Renamed from gl_list_set_at.
51142         (gl_list_nx_add_first): Renamed from gl_list_add_first.
51143         (gl_list_nx_add_last): Renamed from gl_list_add_last.
51144         (gl_list_nx_add_before): Renamed from gl_list_add_before.
51145         (gl_list_nx_add_after): Renamed from gl_list_add_after.
51146         (gl_list_nx_add_at): Renamed from gl_list_add_at.
51147         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
51148         * lib/gl_array_list.c: Don't include xalloc.h.
51149         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
51150         NULL upon out-of-memory.
51151         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
51152         out-of-memory.
51153         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
51154         Change return type to 'int'.
51155         (gl_array_nx_set_at): Renamed from gl_array_set_at.
51156         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
51157         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
51158         upon out-of-memory.
51159         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
51160         upon out-of-memory.
51161         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
51162         upon out-of-memory.
51163         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
51164         upon out-of-memory.
51165         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
51166         out-of-memory.
51167         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
51168         Update.
51169         (gl_array_list_implementation): Update.
51170         * lib/gl_carray_list.c: Don't include xalloc.h.
51171         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
51172         Return NULL upon out-of-memory.
51173         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
51174         out-of-memory.
51175         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
51176         Change return type to 'int'.
51177         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
51178         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
51179         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
51180         upon out-of-memory.
51181         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
51182         upon out-of-memory.
51183         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
51184         out-of-memory.
51185         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
51186         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
51187         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
51188         Update.
51189         (gl_carray_list_implementation): Update.
51190         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
51191         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
51192         gl_linked_create_empty. Return NULL upon out-of-memory.
51193         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
51194         out-of-memory.
51195         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
51196         Change return type to 'int'. Return -1 upon out-of-memory.
51197         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
51198         out-of-memory.
51199         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
51200         upon out-of-memory.
51201         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
51202         upon out-of-memory.
51203         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
51204         NULL upon out-of-memory.
51205         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
51206         upon out-of-memory.
51207         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
51208         out-of-memory.
51209         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
51210         Update.
51211         * lib/gl_linked_list.c: Don't include xalloc.h.
51212         (gl_linked_list_implementation): Update.
51213         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
51214         (add_to_bucket): Change return type to 'int'.
51215         (gl_linkedhash_list_implementation): Update.
51216         * lib/gl_anytree_list1.h (free_subtree): New function.
51217         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
51218         gl_tree_create_empty. Return NULL upon out-of-memory.
51219         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
51220         Change return type to 'int'. Return -1 upon out-of-memory.
51221         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
51222         out-of-memory.
51223         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
51224         (gl_tree_remove_node): New function, moved here from
51225         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
51226         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
51227         Update.
51228         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
51229         malloc, not xmalloc. Return NULL upon out-of-memory.
51230         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
51231         out-of-memory.
51232         (gl_tree_remove_node_from_tree): New function, extracted from
51233         gl_tree_remove_node.
51234         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
51235         upon out-of-memory.
51236         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
51237         out-of-memory.
51238         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
51239         upon out-of-memory.
51240         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
51241         upon out-of-memory.
51242         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
51243         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
51244         not xmalloc. Return NULL upon out-of-memory.
51245         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
51246         out-of-memory.
51247         (gl_tree_remove_node_from_tree): New function, extracted from
51248         gl_tree_remove_node.
51249         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
51250         upon out-of-memory.
51251         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
51252         out-of-memory.
51253         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
51254         upon out-of-memory.
51255         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
51256         upon out-of-memory.
51257         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
51258         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
51259         gl_anytree_list1.h before gl_anyavltree_list2.h.
51260         (gl_avltree_list_implementation): Update.
51261         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
51262         gl_anytree_list1.h before gl_anyavltree_list2.h.
51263         (gl_rbtree_list_implementation): Update.
51264         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
51265         Change return type to 'int'. Return -1 upon out-of-memory. Use
51266         __builtin_expect.
51267         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
51268         (gl_avltreehash_list_implementation): Update.
51269         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
51270         (gl_rbtreehash_list_implementation): Update.
51271         * modules/array-list (Depends-on): Remove xalloc.
51272         * modules/carray-list (Depends-on): Likewise.
51273         * modules/linked-list (Depends-on): Likewise.
51274         * modules/linkedhash-list (Depends-on): Likewise.
51275         * modules/avltree-list (Depends-on): Likewise.
51276         * modules/rbtree-list (Depends-on): Likewise.
51277         * modules/avltreehash-list (Depends-on): Likewise.
51278         * modules/rbtreehash-list (Depends-on): Likewise.
51280         * modules/xsublist: New file.
51281         * lib/gl_xsublist.h: New file.
51282         * lib/gl_xsublist.c: New file.
51283         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
51284         (gl_sublist_nx_create): New declaration.
51285         * lib/gl_sublist.c: Don't include xalloc.h.
51286         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
51287         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
51288         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
51289         Change return type to 'int'. Return -1 upon out-of-memory.
51290         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
51291         upon out-of-memory.
51292         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
51293         NULL upon out-of-memory.
51294         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
51295         upon out-of-memory.
51296         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
51297         NULL upon out-of-memory.
51298         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
51299         NULL upon out-of-memory.
51300         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
51301         upon out-of-memory.
51302         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
51303         (gl_sublist_list_implementation): Update.
51304         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
51305         upon out-of-memory.
51306         * modules/sublist (Depends-on): Remove xalloc.
51308         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
51309         * tests/test-carray_list.c: Likewise.
51310         * tests/test-linked_list.c: Likewise.
51311         * tests/test-linkedhash_list.c: Likewise.
51312         * tests/test-avltree_list.c: Likewise.
51313         * tests/test-rbtree_list.c: Likewise.
51314         * tests/test-avltreehash_list.c: Likewise.
51315         * tests/test-rbtreehash_list.c: Likewise.
51316         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
51317         * modules/carray-list-tests (Makefile.am): Likewise.
51318         * modules/linked-list-tests (Makefile.am): Likewise.
51319         * modules/linkedhash-list-tests (Makefile.am): Likewise.
51320         * modules/avltree-list-tests (Makefile.am): Likewise.
51321         * modules/rbtree-list-tests (Makefile.am): Likewise.
51322         * modules/avltreehash-list-tests (Makefile.am): Likewise.
51323         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
51325         * NEWS: Mention the changes.
51327         * lib/clean-temp.c: Include gl_xlist.h.
51328         * modules/clean-temp (Depends-on): Add xlist.
51330         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
51331         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
51333         * tests/test-array_oset.c: Include gl_xlist.h.
51334         * modules/array-oset-tests (Depends-on): Add xlist.
51336         Reported by José E. Marchesi <jemarch@gnu.org>.
51338 2009-12-13  Bruno Haible  <bruno@clisp.org>
51340         Move the malloc checking from module 'oset' to new module 'xoset'.
51341         * modules/xoset: New file.
51342         * lib/gl_xoset.h: New file.
51343         * lib/gl_xoset.c: New file.
51344         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
51345         declarations.
51346         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
51347         (struct gl_oset_implementation): Rename and change methods accordingly.
51348         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
51349         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
51350         'int'. Mark as __warn_unused_result__.
51351         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
51352         gl_oset_create_empty.
51353         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
51354         'int'.
51355         * lib/gl_array_oset.c: Don't include xalloc.h.
51356         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
51357         malloc, not xmalloc.
51358         (grow): Change return type to 'int'. Don't call xalloc_die.
51359         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
51360         to 'int'.
51361         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
51362         'int'.
51363         (gl_array_oset_implementation): Update.
51364         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
51365         gl_tree_create_empty.
51366         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
51367         'int'.
51368         * lib/gl_avltree_oset.c: Don't include xalloc.h.
51369         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
51370         xmalloc.
51371         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
51372         not xmalloc.
51373         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
51374         xmalloc.
51375         (gl_avltree_oset_implementation): Update.
51376         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
51377         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
51378         xmalloc.
51379         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
51380         not xmalloc.
51381         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
51382         xmalloc.
51383         (gl_rbtree_oset_implementation): Update.
51384         * modules/array-oset (Depends-on): Remove xalloc.
51385         * modules/avltree-oset (Depends-on): Likewise.
51386         * modules/rbtree-oset (Depends-on): Likewise.
51387         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
51388         * tests/test-avltree_oset.c: Likewise.
51389         * tests/test-rbtree_oset.c: Likewise.
51390         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
51391         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
51392         * modules/rbtree-oset-tests (Makefile.am): Likewise.
51393         * NEWS: Mention the change.
51395 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
51397         maint.mk: allow a project to override release-prep commands
51398         * top/maint.mk (alpha, beta, stable): Move release-preparatory
51399         commands into a new rule.
51400         (release-prep): New rule.
51401         (release-prep-hook): New overridable variable.
51403 2009-12-13  Bruno Haible  <bruno@clisp.org>
51405         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
51407 2009-12-13  Jim Meyering  <meyering@redhat.com>
51409         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
51410         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
51412 2009-12-12  Bruno Haible  <bruno@clisp.org>
51414         duplocale: Tweak.
51415         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
51417 2009-12-12  Karl Berry  <karl@gnu.org>
51419         * config/srclist.txt (strtoll.c): tab changes, no more sync.
51421 2009-12-12  Bruno Haible  <bruno@clisp.org>
51423         * m4/po.m4: Undo incorrect untabification.
51425 2009-12-12  Bruno Haible  <bruno@clisp.org>
51427         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
51428         * modules/c-strtod (Depends-on): Add locale.
51429         * modules/c-strtold (Depends-on): Likewise.
51431 2009-12-12  Bruno Haible  <bruno@clisp.org>
51433         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
51435 2009-12-11  Eric Blake  <ebb9@byu.net>
51437         setenv: relax requirement in light of POSIX ruling
51438         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
51439         not NULL.
51440         * tests/test-setenv.c (main): Relax test.
51441         * tests/test-unsetenv.c (main): Likewise.
51442         * doc/posix-functions/setenv.texi (setenv): Document this.
51443         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
51445 2009-12-11  Bruno Haible  <bruno@clisp.org>
51447         New module 'fd-safer-flag'.
51448         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
51449         * lib/dup-safer.c (dup_safer_flag): Remove function.
51450         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
51451         * lib/fd-safer.c (fd_safer_flag): Remove function.
51452         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
51453         * modules/cloexec (configure.ac): Drop indicator macro.
51454         * modules/fd-safer-flag: New file.
51455         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
51456         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
51457         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
51459 2009-12-11  Bruno Haible  <bruno@clisp.org>
51461         Tests for module 'nl_langinfo'.
51462         * modules/nl_langinfo-tests: New file.
51463         * tests/test-nl_langinfo.sh: New file.
51464         * tests/test-nl_langinfo.c: New file.
51466         New module 'nl_langinfo'.
51467         * lib/nl_langinfo.c: New file.
51468         * m4/nl_langinfo.m4: New file.
51469         * modules/nl_langinfo: New file.
51470         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
51472 2009-12-11  Bruno Haible  <bruno@clisp.org>
51474         Tests for module 'langinfo'.
51475         * modules/langinfo-tests: New file.
51476         * tests/test-langinfo.c: New file.
51478         New module 'langinfo'.
51479         * lib/langinfo.in.h: New file.
51480         * m4/langinfo_h.m4: New file.
51481         * modules/langinfo: New file.
51482         * doc/posix-headers/langinfo.texi: Mention the new module.
51484 2009-12-11  Bruno Haible  <bruno@clisp.org>
51486         * lib/config.charset: Untabify.
51488 2009-12-11  Bruno Haible  <bruno@clisp.org>
51490         * modules/unistd-safer (configure.ac): Drop indicator macro.
51492 2009-12-11  Bruno Haible  <bruno@clisp.org>
51494         Move pipe2-safer code to its own file.
51495         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
51496         * lib/pipe-safer.c (pipe2_safer): Remove function.
51497         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
51498         (Makefile.am): Add it to lib_SOURCES.
51500 2009-12-10  Bruno Haible  <bruno@clisp.org>
51502         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
51504 2009-12-10  Bruno Haible  <bruno@clisp.org>
51506         Declare which arguments expect non-NULL values, for GCC and clang.
51507         * build-aux/arg-nonnull.h: New file.
51508         * modules/arg-nonnull: New file.
51509         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
51510         (inet_ntop, inet_pton): Use it.
51511         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
51512         (closedir, dirfd, opendir, scandir, alphasort): Use it.
51513         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
51514         (open, openat): Use it.
51515         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
51516         (fnmatch): Use it.
51517         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
51518         (getopt, getopt_long, getopt_long_only): Use it.
51519         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
51520         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
51521         Use it.
51522         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
51523         (iconv_open): Use it.
51524         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
51525         (strtoimax, strtoumax): Use it.
51526         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
51527         (duplocale): Use it.
51528         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
51529         (frexp, frexpl): Use it.
51530         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
51531         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
51532         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
51533         (tsearch, tfind, tdelete, twalk): Use it.
51534         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
51535         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
51536         sigpending): Use it.
51537         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
51538         (posix_spawn, posix_spawnp, posix_spawnattr_init,
51539         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
51540         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
51541         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
51542         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
51543         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
51544         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
51545         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
51546         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
51547         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
51548         Use it.
51549         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
51550         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
51551         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
51552         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
51553         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
51554         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
51555         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
51556         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
51557         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
51558         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
51559         strtoull, unsetenv): Use it.
51560         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
51561         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
51562         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
51563         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
51564         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
51565         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
51566         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
51567         (strcasecmp, strncasecmp): Use it.
51568         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
51569         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
51570         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
51571         rpl_setsockopt): Use it.
51572         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
51573         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
51574         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
51575         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
51576         (gettimeofday): Use it.
51577         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
51578         (times): Use it.
51579         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
51580         (uname): Use it.
51581         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
51582         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
51583         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
51584         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
51585         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
51586         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
51587         unlinkat, write): Use it.
51588         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
51589         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
51590         * lib/argv-iter.h: Include arg-nonnull.h.
51591         (_ATTRIBUTE_NONNULL_): Remove macro.
51592         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
51593         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
51594         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
51595         optimization.
51596         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
51597         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
51598         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
51599         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
51600         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
51601         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
51602         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
51603         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
51604         * modules/arpa_inet (Depends-on): Add arg-nonnull.
51605         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
51606         * modules/dirent (Depends-on): Add arg-nonnull.
51607         (Makefile.am): Insert arg-nonnull.h into dirent.h.
51608         * modules/fcntl-h (Depends-on): Add arg-nonnull.
51609         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
51610         * modules/fnmatch (Depends-on): Add arg-nonnull.
51611         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
51612         * modules/getopt-posix (Depends-on): Add arg-nonnull.
51613         (Makefile.am): Insert arg-nonnull.h into getopt.h.
51614         * modules/glob (Depends-on): Add arg-nonnull.
51615         (Makefile.am): Insert arg-nonnull.h into glob.h.
51616         * modules/iconv_open (Depends-on): Add arg-nonnull.
51617         (Makefile.am): Insert arg-nonnull.h into iconv.h.
51618         * modules/inttypes (Depends-on): Add arg-nonnull.
51619         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
51620         * modules/locale (Depends-on): Add arg-nonnull.
51621         (Makefile.am): Insert arg-nonnull.h into locale.h.
51622         * modules/math (Depends-on): Add arg-nonnull.
51623         (Makefile.am): Insert arg-nonnull.h into math.h.
51624         * modules/netdb (Depends-on): Add arg-nonnull.
51625         (Makefile.am): Insert arg-nonnull.h into netdb.h.
51626         * modules/search (Depends-on): Add arg-nonnull.
51627         (Makefile.am): Insert arg-nonnull.h into search.h.
51628         * modules/signal (Depends-on): Add arg-nonnull.
51629         (Makefile.am): Insert arg-nonnull.h into signal.h.
51630         * modules/spawn (Depends-on): Add arg-nonnull.
51631         (Makefile.am): Insert arg-nonnull.h into spawn.h.
51632         * modules/stdio (Depends-on): Add arg-nonnull.
51633         (Makefile.am): Insert arg-nonnull.h into stdio.h.
51634         * modules/stdlib (Depends-on): Add arg-nonnull.
51635         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
51636         * modules/string (Depends-on): Add arg-nonnull.
51637         (Makefile.am): Insert arg-nonnull.h into string.h.
51638         * modules/strings (Depends-on): Add arg-nonnull.
51639         (Makefile.am): Insert arg-nonnull.h into strings.h.
51640         * modules/sys_socket (Depends-on): Add arg-nonnull.
51641         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
51642         * modules/sys_stat (Depends-on): Add arg-nonnull.
51643         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
51644         * modules/sys_time (Depends-on): Add arg-nonnull.
51645         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
51646         * modules/sys_times (Depends-on): Add arg-nonnull.
51647         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
51648         * modules/sys_utsname (Depends-on): Add arg-nonnull.
51649         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
51650         * modules/time (Depends-on): Add arg-nonnull.
51651         (Makefile.am): Insert arg-nonnull.h into time.h.
51652         * modules/unistd (Depends-on): Add arg-nonnull.
51653         (Makefile.am): Insert arg-nonnull.h into unistd.h.
51654         * modules/wchar (Depends-on): Add arg-nonnull.
51655         (Makefile.am): Insert arg-nonnull.h into wchar.h.
51656         * modules/argv-iter (Depends-on): Add arg-nonnull.
51657         * tests/test-canonicalize.c (null_ptr): New function.
51658         (main): Use it.
51659         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
51660         (main): Use it.
51661         * tests/test-memmem.c (null_ptr): New function.
51662         (main): Use it.
51663         Reported by Jim Meyering.
51665 2009-12-10  Bruno Haible  <bruno@clisp.org>
51667         Use spaces for indentation, not tabs.
51668         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
51669         * m4/*.m4: Untabify.
51670         * build-aux/*.h: Untabify.
51671         * tests/**/*.[hc]: Untabify.
51672         * README: New section "Indent with spaces, not TABs", based on
51673         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
51674         * NEWS: Mention the change.
51676 2009-12-10  Bruno Haible  <bruno@clisp.org>
51678         pty test: Fix link error.
51679         * modules/pty-tests (Makefile.am): Add the default LDADD value to
51680         test_pty_LDADD.
51682 2009-12-07  Simon Josefsson  <simon@josefsson.org>
51684         * modules/pty: New file.
51685         * modules/pty-tests: New file.
51686         * m4/pty.m4: New file.
51687         * tests/test-pty.c: New file.
51688         * doc/glibc-headers/pty.texi: Modified.
51689         * doc/glibc-functions/forkpty.texi: Modified.
51690         * doc/glibc-functions/openpty.texi: Modified.
51692 2009-12-10  Bruno Haible  <bruno@clisp.org>
51694         Avoid syntax error in C++ mode.
51695         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
51697 2009-12-10  Bruno Haible  <bruno@clisp.org>
51699         Use sed with option -e.
51700         * gnulib-tool (func_version, func_emit_copyright_notice,
51701         func_emit_initmacro_end, func_import, func_create_testdir): Pass
51702         option -e to sed.
51703         * modules/link-warning (Makefile.am): Likewise.
51705 2009-12-10  Jim Meyering  <meyering@redhat.com>
51707         mgetgroups: do not write bytes beyond end of malloc'd buffer
51708         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
51709         username, we call getgroups with a one-element-shorter buffer,
51710         but still told it the length was original, max_n_groups.
51712 2009-12-09  Eric Blake  <ebb9@byu.net>
51714         cloexec: relax license
51715         * modules/cloexec (Maintainer): Add myself.
51716         (License): Use LGPL, not GPL.
51718         link-warning: optimize generation
51719         * modules/link-warning (Makefile.am): Reduce process usage.
51721 2009-12-09  Bruno Haible  <bruno@clisp.org>
51723         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
51724         workaround was added on 2009-11-17.
51726 2009-12-09  Jim Meyering  <meyering@redhat.com>
51727             Bruno Haible  <bruno@clisp.org>
51729         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
51730         * modules/link-warning (Makefile.am): Make the comment-removing sed
51731         command more robust in the face of bootstrap-prepended comment lines.
51733 2009-12-09  Bruno Haible  <bruno@clisp.org>
51735         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
51736         most one group.
51738 2009-12-09  Simon Josefsson <simon@josefsson.org>
51739             Bruno Haible  <bruno@clisp.org>
51741         * build-aux/link-warning.h: Add copyright notice.
51742         * modules/link-warning (Makefile.am): Generate link-warning.h from
51743         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
51744         * NEWS: Mention change in link-warning module.
51745         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
51746         * modules/dirent (Makefile.am): Add dependency to dirent.h.
51747         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
51748         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
51749         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
51750         * modules/math (Makefile.am): Add dependency to math.h.
51751         * modules/search (Makefile.am): Add dependency to search.h.
51752         * modules/signal (Makefile.am): Add dependency to signal.h.
51753         * modules/spawn (Makefile.am): Add dependency to spawn.h.
51754         * modules/stdio (Makefile.am): Add dependency to stdio.h.
51755         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
51756         * modules/string (Makefile.am): Add dependency to string.h.
51757         * modules/strings (Makefile.am): Add dependency to strings.h.
51758         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
51759         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
51760         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
51761         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
51762         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
51763         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
51764         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
51765         * modules/unistd (Makefile.am): Add dependency to unistd.h.
51766         * modules/wchar (Makefile.am): Add dependency to wchar.h.
51768 2009-12-09  Bruno Haible  <bruno@clisp.org>
51770         fchdir: Optimize away rpl_fstat when possible.
51771         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
51772         REPLACE_OPEN_DIRECTORY.
51773         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
51775 2009-12-09  Bruno Haible  <bruno@clisp.org>
51777         * lib/fchdir.c: Update comment.
51779 2009-12-09  Bruno Haible  <bruno@clisp.org>
51781         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
51783 2009-12-08  Eric Blake  <ebb9@byu.net>
51785         fchdir: avoid memory leak on re-registration.
51786         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
51788 2009-12-08  Jim Meyering  <meyering@redhat.com>
51790         init.sh: avoid Solaris 10 /bin/sh portability problem
51791         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
51792         sourced script:
51793           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
51794           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
51795           bar
51796         tests/init.sh relied on that, accepting a --set-path=DIR argument,
51797         and two tests used that idiom.
51798         * tests/init.sh: Update suggested usage comments.
51799         (path_prepend_): New function, to be used in place
51800         of the --src-path=DIR option.
51801         (setup_): Move PATH-prepending code into path_prepend_.
51802         * tests/test-pread.sh: Adapt to new usage.
51803         * tests/test-xalloc-die.sh: Likewise.
51805 2009-12-08  Simon Josefsson  <simon@josefsson.org>
51807         * doc/gnulib.texi (Glibc pty.h): Add.
51808         * doc/glibc-functions/forkpty.texi: Add.
51809         * doc/glibc-functions/openpty.texi: Add.
51810         Suggested by Bruno Haible.
51812 2009-12-08  Eric Blake  <ebb9@byu.net>
51814         fchdir: fix logic bugs
51815         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
51816         * tests/test-fchdir.c (main): Enhance test.
51817         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
51818         is in use.
51820         dup2: fix logic bugs
51821         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
51822         REPLACE_DUP2 to decide when rpl_dup2 is needed.
51823         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
51824         exists.
51825         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
51827 2009-12-07  Eric Blake  <ebb9@byu.net>
51829         unlink: fix m4 detection
51830         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
51832         unistd-safer: add unit test
51833         * modules/unistd-safer-tests: New file.
51834         * tests/test-dup-safer.c: Likewise.
51835         * tests/test-cloexec.c (setmode): Avoid compiler warning.
51836         * tests/test-dup2.c (setmode): Likewise.
51837         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
51839         cloexec: preserve text vs. binary across dup_cloexec
51840         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
51841         mode.
51842         * modules/dup2-tests (Depends-on): Add binary-io.
51843         * modules/cloexec-tests (Depends-on): Likewise.
51844         * tests/test-dup2.c (setmode, is_mode): New helpers.
51845         (main): Add tests that translation mode is preserved.
51846         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
51847         Reported by Bruno Haible.
51849         mgetgroups: reduce duplicate listings
51850         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
51851         resulting array.
51852         * tests/test-chown.h (test_chown): Simplify client.
51853         * tests/test-lchown.h (test_lchown): Likewise.
51855 2009-12-06  Bruno Haible  <bruno@clisp.org>
51857         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
51858         value.
51860 2009-12-06  Bruno Haible  <bruno@clisp.org>
51862         * lib/progname.c: Include stdio.h, stdlib.h.
51863         (set_program_name): Reject a NULL argument.
51865 2009-12-05  Eric Blake  <ebb9@byu.net>
51867         pipe2-safer: new module
51868         * modules/pipe2-safer: New file.
51869         * lib/unistd-safer.h (pipe2_safer): New prototype.
51870         * lib/unistd--.h (pipe2): New wrapper.
51871         * lib/pipe-safer.c (pipe2_safer): New function.
51872         * modules/pipe (Depends-on): Add pipe2-safer.
51873         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
51875         stdlib-safer: preserve cloexec flag for mkostemp[s]
51876         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
51877         fd_safer_flag.
51879         unistd-safer: allow preservation of cloexec status via flag
51880         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
51881         prototypes.
51882         * lib/dup-safer.c (dup_safer_flag): New function.
51883         * lib/fd-safer.c (fd_safer_flag): Likewise.
51884         * modules/cloexec (configure.ac): Set witness.
51886         test-dup2: enhance test
51887         * modules/dup2-tests (Depends-on): Add cloexec.
51888         * tests/test-dup2.c (main): Enhance test.
51890         cloexec: add dup_cloexec
51891         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
51892         header and comments.
51893         * lib/cloexec.c (set_cloexec_flag): Add comments.
51894         (dup_cloexec): New function, with mingw implementation borrowed
51895         from...
51896         * lib/w32spawn.h (dup_noinherit): ...here.
51897         * modules/execute (Depends-on): Add cloexec.
51898         * modules/pipe (Depends-on): Likewise.
51899         * modules/cloexec (Depends-on): Add dup2.
51900         * modules/cloexec-tests (Files): New file.
51901         * tests/test-cloexec.c: Likewise.
51903         test-xalloc-die: fix test for mingw
51904         * modules/xalloc-die-tests (Files): Add tests/init.sh.
51905         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
51906         directory and .exe suffix off argv[0] output.
51908         test-fseeko: fix test for mingw
51909         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
51910         than undefining fseek, so test will pass on mingw.
51912 2009-12-05  Bruno Haible  <bruno@clisp.org>
51914         * lib/progname.h (set_program_name): Clarify specification.
51915         * lib/progname.c (set_program_name): Likewise.
51916         Reported by Jim Meyering.
51918 2009-12-05  Jim Meyering  <meyering@redhat.com>
51920         maint.mk: backslash-escape parens in default regexp
51921         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
51922         backslash-escape the literal parentheses.
51924         maint.mk: news-date-check: use grep -E
51925         * top/maint.mk (today): Define a Make variable, not a...
51926         (news-date-check): ...shell variable.
51927         (news-date-regexp): Use the Make variable.
51928         Use grep's -E option.  Change the failing diagnostic to mention
51929         the variable, $(news-date-regexp).
51931 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
51933         maintainer-makefile: allow customization of NEWS entry format
51934         * top/maint.mk (news-date-regexp): New overridable variable.
51935         (news-date-check): Use it.
51937 2009-12-04  Eric Blake  <ebb9@byu.net>
51939         mgetgroups: add xgetgroups, and avoid ENOSYS failures
51940         * lib/mgetgroups.h (xgetgroups): New prototype.
51941         * lib/mgetgroups.c (xgetgroups): New wrapper.
51942         (mgetgroups): Handle ENOSYS.
51943         * modules/mgetgroups (Depends-on): Add realloc.
51944         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
51946         mgetgroups: avoid argument promotion issues with -1
51947         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
51948         for invalid gid_t.
51949         * tests/test-chown.h (getegid, test_chown): Likewise.
51950         * tests/test-lchown.h (getegid, test_lchown): Likewise.
51952 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
51954         exclude: Fix header file problems.
51955         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
51957 2009-12-01  Jim Meyering  <meyering@redhat.com>
51959         fts: fts_open: do not let an empty string cause immediate failure
51960         This is required in support of GNU rm, for which the command
51961         "rm A '' B" must process and remove both A and B, in spite of
51962         the empty string argument.
51963         * lib/fts.c (fts_open): Do not let the presence of an empty string
51964         cause fts_open to fail immediately.  Most fts-using tools must be
51965         able to process all arguments, in order, and can be expected to
51966         diagnose such arguments themselves.
51968 2009-11-30  Eric Blake  <ebb9@byu.net>
51970         utimens: fix compilation error
51971         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
51972         Declare variable at right scope.
51974 2009-11-29  Jim Meyering  <meyering@redhat.com>
51976         bootstrap: handle perl-5.11's changed --version output
51977         * build-aux/bootstrap (get_version): Handle perl separately,
51978         since perl-5.11's --version output is different.
51980 2009-11-28  Jim Meyering  <meyering@redhat.com>
51982         userspec: depend on the inttostr module, too
51983         * modules/userspec (Depends-on): Add inttostr.
51985         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
51986         * lib/userspec.c (parse_with_separator): Do not accept a user ID
51987         number of MAXUID when it evaluates to (uid_t) -1.
51988         Likewise for group ID.  Reported by Matt McCutchen in
51989         <http://savannah.gnu.org/bugs/?28113>
51991         userspec: reformat to use spaces, not TABs
51992         * lib/userspec.c: Expand TABs to spaces.
51993         Add Emacs' "indent-tabs-mode: nil" hint.
51995 2009-11-27  Eric Blake  <ebb9@byu.net>
51997         getopt-gnu: flush out another BSD bug
51998         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
51999         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
52000         flush out BSD bug.
52001         * tests/test-getopt.h (test_getopt): End lists with NULL.
52002         * tests/test-getopt_long.h (test_getopt_long): Likewise.
52003         (test_getopt_long_posix): Enhance test.
52004         * modules/getopt-posix-tests (Depends-on): Add stdbool.
52005         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
52006         getopt-gnu.
52007         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
52008         Likewise.
52010 2009-11-27  Simon Josefsson  <simon@josefsson.org>
52012         * modules/idpriv-droptemp-tests (Notice): Fix text.
52014 2009-11-27  Jim Meyering  <meyering@redhat.com>
52016         test-xalloc-die: avoid spurious failure due to libtool argv difference
52017         In a libtool-enabled project, this test would fail due to a difference
52018         in the emitted program name, e.g.,
52019         -test-xalloc-die: memory exhausted
52020         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
52021         Use program to avoid that.
52022         * modules/xalloc-die-tests (Depends-on): Add progname.
52023         * tests/test-xalloc-die.c: Include progname.h".
52024         (program_name): Remove decl.
52025         (main): Call set_program_name.
52026         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
52028 2009-11-26  Richard Jones  <rjones@redhat.com>
52030         w32sock: leave win32 error in place.
52031         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
52033 2009-11-26  Eric Blake  <ebb9@byu.net>
52035         init.sh: suggest to use skip_ and fail_ functions in comments
52036         * tests/init.sh: Add a sentence.
52038 2009-11-25  Bruno Haible  <bruno@clisp.org>
52040         init.sh: add documentation in comments
52041         * tests/init.sh: Add some developer and user documentation.
52043 2009-11-26  Jim Meyering  <meyering@redhat.com>
52045         init.sh: accommodate even those who specify bogus srcdir manually
52046         * tests/init.sh: Normally, srcdir is guaranteed by automake and
52047         configure-time tests to be sanitized, so that there is no need to
52048         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
52049         (with no double quotes) suffices.  However, since tests may be
52050         invoked manually, and since you may explicitly set srcdir to the
52051         name of a directory containing spaces, do quote its uses here.
52052         * tests/test-pread.sh: Likewise.
52053         Suggested by Bruno Haible.
52055         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
52056         * tests/test-pread.sh: Write no data into the pipe, because
52057         test-pread actually reads none.  This avoids a diagnostic,
52058         "bash: echo: write error: Broken pipe", that arises in the unusual
52059         event something is ignoring SIGPIPE, and might be interpreted
52060         as some sort of failure.  Reported by Bruno Haible.
52062 2009-11-25  Jim Meyering  <meyering@redhat.com>
52064         test-pread: cover failure with ESPIPE and EINVAL
52065         * tests/test-pread.c (main): Test for failure, too.
52066         * tests/test-pread.sh: Invoke with stdin on a pipe.
52067         Suggested by Eric Blake.
52069         pread: improvement and fix
52070         * modules/pread (Depends-on): Depend on lseek, for portability to
52071         e.g., mingw.  Suggested by Eric Blake.
52072         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
52074         unistd.in.h: correct declaration of pread
52075         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
52076         Reported by Richard W.M. Jones.
52078         test-pread.sh: distribute the test script
52079         * modules/pread-tests (Files): Include test-pread.sh.
52081         test-pread.sh: clean up
52082         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
52083         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
52084         That is unnecessary, since it's always ".".
52085         Suggestion from Eric Blake.
52087         test-pread.sh: make executable
52088         * tests/test-pread.sh: Set executable bit.
52089         Reported by Eric Blake.
52091         correct typo in test-pread.sh
52092         * tests/test-pread.sh: Add #! line.
52094         test pread
52095         * tests/test-pread.c: New file.
52096         * tests/test-pread.sh: Likewise.
52097         * modules/pread-tests: Likewise.
52099         pread: new module
52100         * modules/pread: New file.
52101         * lib/unistd.in.h (pread): Define/declare.
52102         * lib/pread.c (pread): New file.
52103         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
52104         * modules/unistd (Makefile.am): Substitute witnesses.
52105         * doc/posix-functions/pread.texi (pread): Update.
52106         * MODULES.html.sh: Add pread.
52108 2009-11-25  Jim Meyering  <meyering@redhat.com>
52110         tests/init.sh: new file to be used via most *.sh tests
52111         * tests/init.sh: New file.
52113 2009-11-25  Eric Blake  <ebb9@byu.net>
52115         utimens: work around older Linux failure with symlinks
52116         * lib/utimens.c (lutimensat_works_really): New variable.
52117         (fdutimens, lutimens): Use it to manage kernels that support
52118         nanosecond times on files, but not on symlinks.
52119         Reported by Ondřej Vašík.
52121         utimes: fix configure grammar
52122         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
52124 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
52126         regex: Fix fastmap for multibyte character ranges.
52127         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
52128         characters when a multibyte character range is included.
52130 2009-11-22  Andy Wingo  <wingo@pobox.com>
52132         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
52133         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
52135 2009-11-24  Bruno Haible  <bruno@clisp.org>
52137         doc: Most *_l functions exist in MacOS X 10.5.
52138         * doc/posix-functions/duplocale.texi: Update platforms list.
52139         * doc/posix-functions/freelocale.texi: Likewise.
52140         * doc/posix-functions/newlocale.texi: Likewise.
52141         * doc/posix-functions/uselocale.texi: Likewise.
52142         * doc/posix-functions/isalnum_l.texi: Likewise.
52143         * doc/posix-functions/isalpha_l.texi: Likewise.
52144         * doc/posix-functions/isblank_l.texi: Likewise.
52145         * doc/posix-functions/iscntrl_l.texi: Likewise.
52146         * doc/posix-functions/isdigit_l.texi: Likewise.
52147         * doc/posix-functions/isgraph_l.texi: Likewise.
52148         * doc/posix-functions/islower_l.texi: Likewise.
52149         * doc/posix-functions/isprint_l.texi: Likewise.
52150         * doc/posix-functions/ispunct_l.texi: Likewise.
52151         * doc/posix-functions/isspace_l.texi: Likewise.
52152         * doc/posix-functions/isupper_l.texi: Likewise.
52153         * doc/posix-functions/iswalnum_l.texi: Likewise.
52154         * doc/posix-functions/iswalpha_l.texi: Likewise.
52155         * doc/posix-functions/iswblank_l.texi: Likewise.
52156         * doc/posix-functions/iswcntrl_l.texi: Likewise.
52157         * doc/posix-functions/iswctype_l.texi: Likewise.
52158         * doc/posix-functions/iswdigit_l.texi: Likewise.
52159         * doc/posix-functions/iswgraph_l.texi: Likewise.
52160         * doc/posix-functions/iswlower_l.texi: Likewise.
52161         * doc/posix-functions/iswprint_l.texi: Likewise.
52162         * doc/posix-functions/iswpunct_l.texi: Likewise.
52163         * doc/posix-functions/iswspace_l.texi: Likewise.
52164         * doc/posix-functions/iswupper_l.texi: Likewise.
52165         * doc/posix-functions/iswxdigit_l.texi: Likewise.
52166         * doc/posix-functions/isxdigit_l.texi: Likewise.
52167         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
52168         * doc/posix-functions/strcasecmp_l.texi: Likewise.
52169         * doc/posix-functions/strcoll_l.texi: Likewise.
52170         * doc/posix-functions/strfmon_l.texi: Likewise.
52171         * doc/posix-functions/strftime_l.texi: Likewise.
52172         * doc/posix-functions/strncasecmp_l.texi: Likewise.
52173         * doc/posix-functions/strxfrm_l.texi: Likewise.
52174         * doc/posix-functions/tolower_l.texi: Likewise.
52175         * doc/posix-functions/toupper_l.texi: Likewise.
52176         * doc/posix-functions/towctrans_l.texi: Likewise.
52177         * doc/posix-functions/towlower_l.texi: Likewise.
52178         * doc/posix-functions/towupper_l.texi: Likewise.
52179         * doc/posix-functions/wcscoll_l.texi: Likewise.
52180         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
52181         * doc/posix-functions/wctrans_l.texi: Likewise.
52182         * doc/posix-functions/wctype_l.texi: Likewise.
52183         * doc/glibc-functions/strptime_l.texi: Likewise.
52184         * doc/glibc-functions/strtod_l.texi: Likewise.
52185         * doc/glibc-functions/strtof_l.texi: Likewise.
52186         * doc/glibc-functions/strtol_l.texi: Likewise.
52187         * doc/glibc-functions/strtold_l.texi: Likewise.
52188         * doc/glibc-functions/strtoll_l.texi: Likewise.
52189         * doc/glibc-functions/strtoul_l.texi: Likewise.
52190         * doc/glibc-functions/strtoull_l.texi: Likewise.
52191         * doc/glibc-functions/wcsftime_l.texi: Likewise.
52192         * doc/glibc-functions/wcstod_l.texi: Likewise.
52193         * doc/glibc-functions/wcstof_l.texi: Likewise.
52194         * doc/glibc-functions/wcstol_l.texi: Likewise.
52195         * doc/glibc-functions/wcstold_l.texi: Likewise.
52196         * doc/glibc-functions/wcstoll_l.texi: Likewise.
52197         * doc/glibc-functions/wcstoul_l.texi: Likewise.
52198         * doc/glibc-functions/wcstoull_l.texi: Likewise.
52200 2009-11-24  Bruno Haible  <bruno@clisp.org>
52202         duplocale: Fix logic bug.
52203         * lib/duplocale.c: Don't include <langinfo.h>.
52204         (_NL_LOCALE_NAME): Remove macro.
52205         (rpl_duplocale): Use setlocale instead of nl_langinfo.
52206         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
52208 2009-11-23  Jim Meyering  <meyering@redhat.com>
52210         test-update-copyright: don't hard-code /usr/bin/perl
52211         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
52212         perl to print the current year.  Gilles Espinasse reported that
52213         the replaced use of perl was hard-coded as /usr/bin/perl.
52215 2009-11-23  Bruno Haible  <bruno@clisp.org>
52217         duplocale: Add support for glibc 2.3.x.
52218         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
52220 2009-11-22  Bruno Haible  <bruno@clisp.org>
52222         vasnprintf: Tiny optimization.
52223         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
52224         MacOS X.
52226 2009-11-22  Bruno Haible  <bruno@clisp.org>
52228         Tests for module 'duplocale'.
52229         * modules/duplocale-tests: New file.
52230         * tests/test-duplocale.c: New file.
52232         New module 'duplocale'.
52233         * m4/duplocale.m4: New file.
52234         * lib/locale.in.h (duplocale): New declaration.
52235         * lib/duplocale.c: New file.
52236         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
52237         gl_LOCALE_H_DEFAULTS): New macros.
52238         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
52239         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
52240         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
52241         REPLACE_DUPLOCALE.
52242         * modules/duplocale: New file.
52243         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
52245 2009-11-22  Bruno Haible  <bruno@clisp.org>
52247         * modules/locale-tests (configure.ac): Test for newlocale function.
52248         * tests/test-locale.c: When the system has extended locale functions,
52249         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
52251         locale: Make locale_t available when possible.
52252         * lib/locale.in.h: Include <xlocale.h> when it exists.
52253         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
52254         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
52255         * modules/locale (Depends-on): Add extensions.
52256         (Makefile.am): Also substitute HAVE_XLOCALE_H.
52257         * doc/posix-headers/locale.texi: Document the problem with locale_t.
52259 2009-11-22  Bruno Haible  <bruno@clisp.org>
52261         Add comments.
52262         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
52263         invocation.
52264         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
52265         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
52266         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
52268 2009-11-22  Bruno Haible  <bruno@clisp.org>
52270         error: account for the possibility of freopen (stdout).
52271         * lib/error.c: Include <unistd.h>.
52272         (flush_stdout): New function, extracted from error and error_at_line.
52273         Determine stdout's fd dynamically.
52274         (error, error_at_line): Invoke flush_stdout.
52275         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
52276         * modules/error (Depends-on): Add unistd.
52278 2009-11-22  Bruno Haible  <bruno@clisp.org>
52280         diffseq: Add comment.
52281         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
52283 2009-11-22  Jim Meyering  <meyering@redhat.com>
52285         c-stack: avoid defining an unused static function
52286         * lib/c-stack.c (find_stack_direction): Do not define this function
52287         when it will not be used.
52289         diffseq: avoid spurious gcc warnings
52290         * lib/diffseq.h (IF_LINT2): Define.
52291         (compareseq): Use it to initialize two members of "part".
52292         This avoids two used-uninitialized warnings.
52294 2009-11-21  Jim Meyering  <meyering@redhat.com>
52296         c-stack: avoid "ignoring return value of `write'" warning
52297         * lib/c-stack.c: Include "ignore-value.h".
52298         (die): Explicitly ignore each write return value.
52299         * modules/c-stack (Depends-on): Add ignore-value.
52301 2009-11-21  Bruno Haible  <bruno@clisp.org>
52303         diffseq: reduce scope of variable 'best'.
52304         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
52305         variable, earlier used for two different purposes.
52307 2009-11-21  Jim Meyering  <meyering@redhat.com>
52309         diffseq: remove useless assignment to "best"
52310         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
52311         assignment.  At that point "best" is already guaranteed to be zero.
52313 2009-11-20  Eric Blake  <ebb9@byu.net>
52315         build: mention ftp redirector in release announcements
52316         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
52317         values that used to come from cfg.mk; mention FTP redirect URL.
52318         * build-aux/announce-gen: Mention the mirror list.
52319         Suggested by Karl Berry.
52321         nanosleep: improve port to mingw
52322         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
52323         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
52324         LIB_NANOSLEEP, but only when needed.
52325         * modules/select (Link): Document LIBSOCKET.
52326         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
52327         enough.
52329         nanosleep: work around cygwin bug
52330         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
52331         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
52332         bug.
52333         (getnow): Delete, not needed.
52334         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
52335         LIB_CLOCK_GETTIME.
52336         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
52337         clock-time, gettime.
52338         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
52339         bug.
52340         * modules/nanosleep-tests: New test.
52341         * tests/test-nanosleep.c: New file.
52343         sleep: work around cygwin bug
52344         * lib/sleep.c (rpl_sleep): Work around the bug.
52345         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
52346         (gl_PREREQ_SLEEP): Delete unused macro.
52347         * modules/sleep (Depends-on): Add verify.
52348         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
52349         * modules/unistd (Makefile.am): Substitute witness.
52350         * lib/unistd.in.h (sleep): Update prototype.
52351         * doc/posix-functions/sleep.texi (sleep): Document the bug.
52352         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
52353         * modules/sleep-tests (Depends-on): Check for alarm.
52355 2009-11-20  Jim Meyering  <meyering@redhat.com>
52357         maint.mk: improve sc_prohibit_magic_number_exit
52358         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
52359         so it does not match uses like System.exit(1).
52360         Add comments showing how to correct all offenders.
52362 2009-11-19  Eric Blake  <ebb9@byu.net>
52364         xalloc-die-tests: add missing library
52365         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
52367         test-xvasprintf: silence compiler warnings
52368         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
52369         empty string from gcc.
52371 2009-11-19  Jim Meyering  <meyering@redhat.com>
52373         xfreopen: new module, from coreutils
52374         * modules/xfreopen: New module.
52375         * lib/xfreopen.c: New file.
52376         * lib/xfreopen.h: New file.
52377         * MODULES.html.sh (File stream based Input/Output"): Add it.
52379 2009-11-19  Eric Blake  <ebb9@byu.net>
52381         manywarnings: depend on warnings
52382         * modules/manywarnings (Depends-on): Add warnings.
52384         build: avoid compiler warnings
52385         * lib/select.c (rpl_select): Delete unused variable.
52386         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
52388 2009-11-18  Eric Blake  <ebb9@byu.net>
52390         tests: avoid false negative with --with-packager
52391         * tests/test-version-etc.sh: Discard packager information.
52392         * tests/test-argp-version-etc-1.sh: Likewise.
52393         Reported by Mike Frysinger.
52395         utimens: fix regression on Solaris
52396         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
52397         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
52398         can only change fd timestamps via futimesat.  Instead, use an
52399         additional witness macro to avoid BSD bug.
52400         Reported by Jim Meyering.
52402 2009-11-17  Eric Blake  <ebb9@byu.net>
52404         usleep: use it to simplify tests
52405         * modules/stat-time-tests (Depends-on): Add usleep.
52406         (configure.ac): Drop usleep check.
52407         * modules/chown-tests (Depends-on, configure.ac): Likewise.
52408         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
52409         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
52410         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
52411         * modules/openat-tests (Depends-on, configure.ac): Likewise.
52412         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
52413         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
52414         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
52415         Likewise.
52416         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
52417         * tests/test-lchown.h (nap): Likewise.
52418         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
52419         * tests/test-stat-time.c (nap): Likewise.
52420         * tests/test-utimens-common.h (nap): Update comments.
52422         usleep: new module
52423         * modules/usleep: New file.
52424         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
52425         * lib/usleep.c (usleep): Likewise.
52426         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
52427         * modules/unistd (Makefile.am): Substitute witnesses.
52428         * lib/unistd.in.h (usleep): Add declaration.
52429         * doc/pastposix-functions/usleep.texi (usleep): Document this.
52430         * MODULES.html.sh (Date and time): Likewise.
52431         * modules/usleep-tests (Depends-on): New test.
52432         * tests/test-usleep.c: New file.
52434         chown: work around OpenBSD bug
52435         * lib/chown.c (rpl_chown): Work around the bug.
52436         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
52437         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
52438         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
52439         * modules/chown (Depends-on): Add stdbool.
52440         * modules/lchown (Depends-on): Likewise.
52441         * doc/posix-functions/chown.texi (chown): Document the bug.
52442         * doc/posix-functions/lchown.texi (lchown): Likewise.
52443         * tests/test-lchown.h (test_chown): Relax test.
52445         mkstemp: avoid conflict with C++ keyword template
52446         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
52447         * lib/mkostemp.c (mkostemp): Likewise.
52448         * lib/mkostemps.c (mkostemps): Likewise.
52449         * lib/mkstemp.c (mkstemp): Likewise.
52450         * lib/mkstemps.c (mkstemps): Likewise.
52452         xalloc-die-tests: optimize
52453         * tests/test-xalloc-die.sh: Reduce number of processes.
52455 2009-11-17  Simon Josefsson  <simon@josefsson.org>
52457         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
52458         patch from ludo@gnu.org (Ludovic Courtès).
52460 2009-11-17  Jim Meyering  <meyering@redhat.com>
52462         version-etc: use proper license string
52463         * modules/version-etc (License): Use LGPL, not LGPLv3+.
52464         * modules/version-etc-fsf: Likewise.
52466 2009-11-17  Simon Josefsson  <simon@josefsson.org>
52468         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
52469         printed to stdout.  Deal with EOL differences.
52471 2009-11-17  Eric Blake  <ebb9@byu.net>
52473         unsetenv: work around Solaris bug
52474         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
52475         * lib/unsetenv.c (rpl_unsetenv): Work around it.
52476         Reported by Jim Meyering.
52478         vasnprintf: avoid compiler warnings
52479         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
52480         variables.
52481         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
52483 2009-11-17  Simon Josefsson  <simon@josefsson.org>
52485         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
52486         settings since xalloc-die is no longer the self test,
52487         xalloc-die.sh is.
52489 2009-11-17  Jim Meyering  <meyering@redhat.com>
52491         test-xalloc-die.sh: make the code agree with the commit log
52492         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
52493         at the end, just in case you happen to have a test-xalloc-die
52494         program in some other PATH directory.
52496         test-xalloc-die.sh: fix a portability bug
52497         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
52498         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
52499         Otherwise, argv[0] (as often seen in diagnostics) would be too
52500         system-dependent, sometimes with, and sometimes without the leading "./".
52502         version-etc-fsf: relax license to LGPLv3+
52503         * modules/version-etc-fsf (License): Relax license.
52505 2009-11-16  Eric Blake  <ebb9@byu.net>
52507         xalloc-die-tests: avoid printing null pointer
52508         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
52509         shell script.
52510         * tests/test-xalloc-die.c (program_name): Declare.
52511         * tests/test-xalloc-die.sh (tmpfiles): New file.
52513         setenv, unsetenv: work around various bugs
52514         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
52515         (setenv) [HAVE_SETENV]: Work around bugs.
52516         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
52517         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
52518         for bugs.
52519         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
52520         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
52521         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
52522         * modules/stdlib (Makefile.am): Update substitutions.
52523         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
52524         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
52525         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
52526         * modules/setenv-tests: New test.
52527         * modules/unsetenv-tests: Likewise.
52528         * tests/test-setenv.c: New file.
52529         * tests/test-unsetenv.c: Likewise.
52531 2009-11-16  Jim Meyering  <meyering@redhat.com>
52533         version-etc: relax license to LGPLv3+
52534         * modules/version-etc (License): Relax license.
52536         better AC_REQUIRE expanded-before-required-warning avoidance
52537         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
52538         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
52539         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
52540         which is no longer needed.
52542 2009-11-16  Eric Blake  <ebb9@byu.net>
52544         test-freading: clean up temporary file
52545         * tests/test-freading.c (main): Remove file on success, and use
52546         ASSERT more liberally.
52547         Reported by Jim Meyering.
52549 2009-11-16  Jim Meyering  <meyering@redhat.com>
52551         avoid new AC_REQUIRE expanded-before-required warnings
52552         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
52553         merely using it.
52554         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
52555         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
52557 2009-11-15  Simon Josefsson  <simon@josefsson.org>
52559         * tests/test-xalloc-die.c: New file.
52560         * modules/xalloc-die-tests: New file.
52561         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
52562         XFAIL_TESTS so it can be appended by modules.
52564 2009-11-15  Simon Josefsson  <simon@josefsson.org>
52566         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
52567         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
52569 2009-11-14  Eric Blake  <ebb9@byu.net>
52571         fnmatch: avoid compiler warning
52572         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
52573         to silence compiler warning about mismatch signedness in ?:.
52574         Reported by Robert Millan.
52576         intprops: add double-inclusion guard
52577         * lib/intprops.h: Allow idempotent includes.
52578         Suggested by Bruce Korb.
52580         openat: detect Solaris fchownat bug
52581         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
52582         penalizing glibc chownat when only lchownat is broken.
52583         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
52584         trailing slash bugs.
52585         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
52586         * modules/openat-tests (Files): Include more files.
52587         (Depends-on): Add mgetgroups, sleep, stat-time.
52588         (configure.ac): Add additional checks.
52589         (Makefile.am): Build new test.
52590         * tests/test-fchownat.c: New file.
52592         lchown: detect Solaris and FreeBSD bug
52593         * lib/lchown.c (rpl_lchown): Work around bug.
52594         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
52595         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
52596         * modules/unistd (Makefile.am): Populate it.
52597         * lib/unistd.in.h (lchown): Update declaration.
52598         * doc/posix-functions/lchown.texi (lchown): Document the bug.
52599         * modules/lchown-tests: New file.
52600         * tests/test-lchown.h (test_lchown): Likewise.
52601         * tests/test-lchown.c (main): Likewise.
52603         chown: detect Solaris and FreeBSD bug
52604         * lib/chown.c (rpl_chown): Work around bug.
52605         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
52606         (gl_PREREQ_CHOWN): Delete.
52607         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
52608         * modules/unistd (Makefile.am): Populate it.
52609         * lib/unistd.in.h (chown): Update declaration.
52610         * lib/lchown.c (chown): Update client.
52611         * modules/lchown (Depends-on): Add lstat.
52612         * doc/posix-functions/chown.texi (chown): Document the bug.
52613         * doc/posix-functions/getgroups.texi (getgroups): Document
52614         getgroups pitfall.
52615         * modules/chown-tests: New file.
52616         * tests/test-chown.h (test_chown): Likewise.
52617         * tests/test-chown.c (main): Likewise.
52619 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
52621         gnulib-tool: correctly detect absence of m4 directories
52622         * gnulib-tool: Avoid extra newline on data passed to wc -l.
52624 2009-11-14  Jim Meyering  <meyering@redhat.com>
52626         maint.mk: Prohibit inclusion of "xalloc.h" without use.
52627         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
52629 2009-11-14  John W. Eaton  <jwe@gnu.org>
52631         strftime.h: wrap function declaration in extern "C" block
52632         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
52634 2009-11-13  Eric Blake  <ebb9@byu.net>
52636         getgroups: avoid compiler warning
52637         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
52639         getgroups: work around FreeBSD bug
52640         * lib/getgroups.c (rpl_getgroups): Work around the bug.
52641         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
52642         * doc/posix-functions/getgroups.texi (getgroups): Document it.
52643         * tests/test-getgroups.c (main): Fix buffer overrun.
52645         getgroups: avoid compilation failure
52646         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
52647         * modules/getgroups (Depends-on): Add stdint.
52649 2009-11-13  Jim Meyering  <meyering@redhat.com>
52651         test-getgroups: avoid compilation failure
52652         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
52654 2009-11-13  Eric Blake  <ebb9@byu.net>
52656         mgetgroups: new module, taken from coreutils
52657         * modules/mgetgroups: New file.
52658         * lib/mgetgroups.h: Likewise.
52659         * lib/mgetgroups.c (mgetgroups): Likewise.
52660         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
52661         * MODULES.html.sh (Users and groups): Mention it.
52663         getgroups: don't expose GETGROUPS_T to user
52664         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
52665         an element at a time if GETGROUPS_T is wrong size.
52666         * lib/getugroups.h (getugroups): Change signature.
52667         * lib/unistd.in.h (getgroups): Likewise.
52668         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
52669         signature needs fixing.
52670         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
52671         AC_TYPE_GETGROUPS.
52672         * modules/group-member (Depends-on): Add getgroups.
52673         * lib/group-member.c (group_info, get_group_info): Use gid_t.
52674         (group_member): Rely on getgroups replacement.
52675         * lib/getugroups.c (getugroups): Use gid_t.
52676         * tests/test-getgroups.c (main): Likewise.
52677         * NEWS: Mention the signature change.
52678         * doc/posix-functions/getgroups.texi (getgroups): Mention the
52679         problem with signature.
52680         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
52681         GETGROUPS_T is still useful for setgroups.
52683         getgroups, getugroups: provide stubs for mingw
52684         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
52685         * lib/getugroups.c (getugroups): Likewise.
52686         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
52687         function.  Modernize replacement scheme.
52688         (gl_PREREQ_GETGROUPS): Delete.
52689         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
52690         * modules/getgroups (configure.ac): Declare witness.
52691         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
52692         * modules/unistd (Depends-on): Substitute witness.
52693         * lib/unistd.in.h (getgroups): Declare replacement.
52695         getgroups: avoid calling exit
52696         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
52697         drop xalloc.
52698         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
52699         dependencies.
52700         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
52701         exiting, in the rare case of malloc failure.
52703         getgroups: fix logic error
52704         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
52705         has more than 20 groups.
52706         * modules/getgroups-tests: New test.
52707         * tests/test-getgroups.c: New file.
52709 2009-11-13  Simon Josefsson  <simon@josefsson.org>
52711         * tests/test-base64.c: Improve.
52713 2009-11-13  Simon Josefsson  <simon@josefsson.org>
52715         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
52716         Blake <ebb9@byu.net>.
52718 2009-11-13  Simon Josefsson  <simon@josefsson.org>
52720         * tests/test-xvasprintf.c: Add %s%s related checks.
52722 2009-11-12  Eric Blake  <ebb9@byu.net>
52724         version-etc: match standards.texi style
52725         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
52726         and use <> only for URLs.
52728 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
52730         fts: do not fail on a submount during traversal
52731         * lib/fts.c (fts_build): Read the stat info again after opening
52732         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
52733         Original report at http://bugzilla.redhat.com/501848.
52735 2009-11-12  Jim Meyering  <meyering@redhat.com>
52737         bootstrap: sync from coreutils
52738         * build-aux/bootstrap (bootstrap_epilogue): New function.
52739         Use git_modules_config in one more place.  This make bootstrap's
52740         --gnulib-srcdir option more useful for testing.
52742         bootstrap: generalize autoheader check
52743         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
52744         AC_CONFIG_HEADERS.
52746 2009-11-11  Eric Blake  <ebb9@byu.net>
52748         mkfifoat: use new modules for Solaris and BSD bugs
52749         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
52750         * lib/mkfifoat.c (mknodat): Split...
52751         * lib/mknodat.c (mknodat): ...into new file.
52752         * modules/mkfifoat (Files): Ship new file.
52753         (Depends-on): Add mkfifo, mknod.
52754         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
52755         (Depends-on): Add symlink.
52756         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
52757         redundant with test_mkfifo.h.
52758         (do_mkfifoat, do_mknodat): New helpers.
52760         mknod: new module
52761         * modules/mknod: New file.
52762         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
52763         * lib/mknod.c (mknod): Likewise.
52764         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
52765         defaults.
52766         * modules/sys_stat (Makefile.am): Substitute them.
52767         * lib/sys_stat.in.h (mknod): Declare replacement.
52768         * MODULES.html.sh (Support for systems lacking POSIX:2008):
52769         Document it.
52770         * doc/posix-functions/mknod.texi (mknod): Likewise.
52771         * modules/mknod-tests: New test.
52772         * tests/test-mknod.c: Likewise.
52774         mkfifo: new module
52775         * modules/mkfifo: New file.
52776         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
52777         * lib/mkfifo.c (mkfifo): Likewise.
52778         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
52779         defaults.
52780         * modules/sys_stat (Makefile.am): Substitute them.
52781         * lib/sys_stat.in.h (mkfifo): Declare replacement.
52782         * MODULES.html.sh (Support for systems lacking POSIX:2008):
52783         Document it.
52784         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
52785         * modules/mkfifo-tests: New test.
52786         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
52787         from test-mkfifoat.c.
52788         * tests/test-mkfifo.c: New file.
52790         readlink: detect FreeBSD bug
52791         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
52792         slash on symlink.
52793         * doc/posix-functions/readlink.texi (readlink): Document the bug.
52794         * tests/test-readlink.h (test_readlink): Enhance test.
52796         symlink: detect FreeBSD bug
52797         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
52798         slash on symlink.
52799         * doc/posix-functions/symlink.texi (symlink): Document the bug.
52800         * tests/test-symlink.h (test_symlink): Enhance test.
52802 2009-11-10  Eric Blake  <ebb9@byu.net>
52804         link: detect FreeBSD bug
52805         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
52806         symlink.
52807         * doc/posix-functions/link.texi (link): Document the bug.
52808         * tests/test-link.h (test_link): Enhance test.
52809         * tests/test-linkat.c (main): Update caller.
52811         unlink, remove: detect FreeBSD bug
52812         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
52813         slash on symlink.
52814         * doc/posix-functions/unlink.texi (unlink): Document the bug.
52815         * doc/posix-functions/remove.texi (remove): Likewise.
52816         * tests/test-unlink.h (test_unlink): Enhance test.
52817         * tests/test-remove.c (main): Likewise.
52819 2009-11-09  Eric Blake  <ebb9@byu.net>
52821         rename: detect FreeBSD bug
52822         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
52823         slash on symlink.
52824         * modules/renameat-tests (Depends-on): Add filenamecat.
52825         * tests/test-rename.h (test_rename): Allow one more errno.
52826         * tests/test-renameat.c (main): Likewise.
52827         * doc/posix-functions/rename.texi (rename): Document the bug.
52829         open: detect FreeBSD bug
52830         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
52831         symlink.
52832         * doc/posix-functions/open.texi (open): Document the bug.
52833         * doc/posix-functions/utimes.texi (utimes): Likewise.
52834         * tests/test-open.h (test_open): Add parameters, and test symlink
52835         handling.
52836         * tests/test-open.c (main): Adjust caller.
52837         * tests/test-fcntl-safer.c (main): Likewise.
52838         * modules/open-tests (Depends-on): Add stdbool, symlink.
52839         * modules/fcntl-safer-tests (Depends-on): Likewise.
52840         * tests/test-openat.c (main): Add test-open tests.
52842         stat: detect FreeBSD bug
52843         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
52844         symlink.
52845         * doc/posix-functions/stat.texi (stat): Document the bug.
52846         * tests/test-stat.h (test_stat_func): Add argument.
52847         * tests/test-stat.c (main): Adjust caller.
52848         * tests/test-fstatat.c (main): Likewise.
52849         * modules/stat-tests (Depends-on): Add stdbool, symlink.
52850         Reported by Jim Meyering.
52852 2009-11-09  James Youngman  <jay@gnu.org>
52854         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
52855         * lib/strftime.c: Correct placement of #include "ignore-value.h".
52857 2009-11-08  Jim Meyering  <meyering@redhat.com>
52859         utimens: remove invalid futimesat call
52860         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
52861         It used the file descriptor of the target file as the DIR_FD
52862         parameter and NULL as the file name.  That caused failure with
52863         errno == EFAULT on FreeBSD-8.0-rc2
52865 2009-11-07  Eric Blake  <ebb9@byu.net>
52867         fflush, freadseek: use fseeko, not fseek
52868         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
52869         (clear_ungetc_buffer): Avoid potential problems on large files.
52870         * lib/freadseek.c (freadseek): Likewise.
52871         * modules/freadseek (Depends-on): Add fseeko.
52872         * modules/fseek (configure.ac): Set a witness.
52873         * tests/test-fflush.c (main): Use fseeko.
52874         * tests/test-fpurge.c (fseek): Disable link warning.
52875         * tests/test-freadable.c (fseek): Likewise.
52876         * tests/test-freading.c (fseek): Likewise.
52877         * tests/test-fseeko.c (fseek): Likewise.
52878         * tests/test-ftell.c (fseek): Likewise.
52879         * tests/test-ftello.c (fseek): Likewise.
52880         * tests/test-fwritable.c (fseek): Likewise.
52881         * tests/test-fwriting.c (fseek): Likewise.
52883 2009-11-06  Simon Josefsson  <simon@josefsson.org>
52885         * modules/memchr (Depends-on): Drop getpagesize dependency.
52887 2009-11-06  Simon Josefsson  <simon@josefsson.org>
52889         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
52890         Reported by Ludovic Courtès.
52891         * build-aux/pmccabe2html: Improve example usage.
52892         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
52894 2009-11-06  Jim Meyering  <meyering@redhat.com>
52896         do-release-commit-and-tag: New module.
52897         Automate the release-commit and tag process.
52898         * build-aux/do-release-commit-and-tag: New script, from coreutils.
52899         * modules/do-release-commit-and-tag: New file.
52900         * MODULES.html.sh (Support for maintaining and releasing): Add it.
52902 2009-11-06  Simon Josefsson  <simon@josefsson.org>
52904         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
52905         because test-select.c uses inet_pton.
52907 2009-11-06  Simon Josefsson  <simon@josefsson.org>
52909         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
52910         GETADDRINFO_LIB.  Bump serial number.
52911         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
52912         Suggested by Eric Blake <ebb9@byu.net>.
52914 2009-11-05  Eric Blake  <ebb9@byu.net>
52916         strtod: detect darwin bug
52917         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
52918         Reported by Leo Davis.
52920         freopen-safer: new module
52921         * modules/freopen-safer: New module.
52922         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
52923         * lib/freopen-safer.c (freopen_safer): New file.
52924         * lib/stdio-safer.h (freopen_safer): New declaration.
52925         * lib/stdio--.h (freopen): New override.
52926         * MODULES.html.sh (File stream based Input/Output): Mention it.
52927         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
52928         freopen-safer module.
52929         * doc/posix-functions/stderr.texi (stderr): Likewise.
52930         * doc/posix-functions/stdin.texi (stdin): Likewise.
52931         * doc/posix-functions/stdout.texi (stdout): Likewise.
52932         * modules/freopen-safer-tests: New test.
52933         * tests/test-reopen-safer.c: New file.
52935 2009-11-05  Jim Meyering  <meyering@redhat.com>
52937         maint.mk: Prohibit inclusion of "close-stream.h" without use.
52938         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
52940 2009-11-05  Simon Josefsson  <simon@josefsson.org>
52942         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
52944 2009-11-05  Simon Josefsson  <simon@josefsson.org>
52946         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
52948 2009-11-05  Simon Josefsson  <simon@josefsson.org>
52950         Fix link error.
52951         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
52952         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52954 2009-11-05  Simon Josefsson  <simon@josefsson.org>
52956         * tests/test-func.c: Also test value of __func__.
52958 2009-11-05  Simon Josefsson  <simon@josefsson.org>
52960         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
52961         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
52963 2009-11-05  Bruno Haible  <bruno@clisp.org>
52965         Fix link error.
52966         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
52967         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52968         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
52970 2009-11-05  Bruno Haible  <bruno@clisp.org>
52972         Tests for module 'inet_pton'.
52973         * modules/inet_pton-tests: New file.
52974         * tests/test-inet_pton.c: New file.
52976 2009-11-05  Bruno Haible  <bruno@clisp.org>
52978         Tests for module 'inet_ntop'.
52979         * modules/inet_ntop-tests: New file.
52980         * tests/test-inet_ntop.c: New file.
52982 2009-11-04  Eric Blake  <ebb9@byu.net>
52984         stdlib-safer: wrap all mkstemp variants
52985         * modules/mkostemp (configure.ac): Set witness.
52986         * modules/mkostemps (configure.ac): Likewise.
52987         * modules/mkstemps (configure.ac): Likewise.
52988         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
52989         (mkstemps_safer): Wrap more functions.
52990         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
52991         wrapping.
52992         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
52993         (mkstemps_safer): Implement the wrappers.
52995         mkstemps, mkostemps: new modules
52996         * modules/mkostemps: New module.
52997         * modules/mkstemps: Likewise.
52998         * lib/mkostemps.c (mkostemps): New file.
52999         * lib/mkstemps.c (mkstemps): Likewise.
53000         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
53001         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
53002         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
53003         * modules/stdlib (Makefile.am): Substitute them.
53004         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
53005         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
53006         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
53007         * doc/gnulib.texi (Glibc stdlib.h): Include them.
53008         * MODULES.html.sh (File system functions): Mention them.
53010         tempname: resync from glibc
53011         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
53012         same values for __GT_FILE as glibc.  Abort even when assertions
53013         are disabled.
53014         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
53015         match its value otherwise.  Allow idempotent inclusion.
53016         * lib/mkdtemp.c (mkdtemp): Adjust caller.
53017         * lib/mkostemp.c (mkostemp): Likewise.
53018         * lib/mkstemp.c (mkstemp): Likewise.
53019         * lib/tmpfile.c (tmpfile): Likewise.
53020         * NEWS: Document this.
53022         utimens: fix use of futimens on older Linux
53023         * lib/utimens.c (fdutimens): Use updated, rather than original,
53024         timespec to avoid bug in older Linux kernel.
53025         Reported by Simon Josefsson.
53027 2009-11-04  Bruno Haible  <bruno@clisp.org>
53029         Make num_processors more flexible and consistent.
53030         * lib/nproc.h (enum nproc_query): New type.
53031         (num_processors): Add a 'query' argument.
53032         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
53033         (num_processors): Add a 'query' argument. Test the value of the
53034         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
53035         mingw, count the number of CPUs available for the current process.
53036         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
53037         Check for sched_getaffinity and sched_getaffinity_np.
53038         * modules/nproc (Depends-on): Add c-ctype, extensions.
53039         * NEWS: Mention the change.
53041 2009-11-03  Bruno Haible  <bruno@clisp.org>
53043         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
53045 2009-11-03  Jim Meyering  <meyering@redhat.com>
53047         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
53048         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
53049         if it is defined.
53051 2009-11-02  Eric Blake  <ebb9@byu.net>
53053         mktime, timegm: share common declaration
53054         * lib/mktime-internal.h: New file.
53055         * lib/mktime.c: Use it rather than open-coding a declaration.
53056         * lib/timegm.c: Likewise.
53057         * modules/mktime (Files): Ship it.
53058         * modules/timegm (Files): Likewise.
53059         Suggested by Bruno Haible.
53061         test-update-copyright: update test to match script changes
53062         * tests/test-update-copyright.sh: Avoid hard-coding perl
53063         location.  Don't update *.bak created by earlier runs.
53065 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
53066             Simon Josefsson  <simon@josefsson.org>
53067             Bruno Haible  <bruno@clisp.org>
53069         Fix link error on Solaris 8.
53070         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
53071         also in libnsl. Define also INET_PTON_LIB.
53072         * modules/inet_pton (Link): New section.
53074 2009-11-02  Simon Josefsson  <simon@josefsson.org>
53075             Bruno Haible  <bruno@clisp.org>
53077         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
53078         * modules/inet_ntop (Link): New section.
53079         Reported by Boyan Kasarov <bkasarov@gmail.com>.
53081 2009-11-02  Eric Blake  <ebb9@byu.net>
53083         maint: avoid compiler warnings in m4 macros
53084         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
53085         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
53087 2009-11-02  Simon Josefsson  <simon@josefsson.org>
53089         * m4/pmccabe2html.m4: Remove file.
53090         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
53091         function.  Change maintainer.
53092         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
53093         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
53094         Courtès).
53096 2009-10-31  Eric Blake  <ebb9@byu.net>
53098         fseeko: fix m4 regression
53099         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
53100         regression from 2009-10-27.
53101         Reported by Ralf Wildenhues.
53103 2009-10-31  Jim Meyering  <meyering@redhat.com>
53105         inttostr: aesthetics and improved (compile-time) safety
53106         Define inttype_is_signed rather than inttype_is_unsigned,
53107         since the sole use is via "#if inttype_is_signed".
53108         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
53109         inttype_is_unsigned.
53110         * lib/offtostr.c (inttype_is_signed): Likewise.
53111         * lib/uinttostr.c (inttype_is_signed): Likewise.
53112         * lib/umaxtostr.c (inttype_is_signed): Likewise.
53113         * lib/inttostr.c (inttostr): Use verify to cross-check the
53114         inttype_is_signed value and the signedness of the actual type.
53115         * modules/inttostr (Depends-on): Add verify.
53117 2009-10-30  Eric Blake  <ebb9@byu.net>
53119         build: avoid compiler warnings
53120         * lib/fchmodat.c (lchmod): Mark unused variables.
53121         * lib/getopt.c (_getopt_initialize): Likewise.
53122         * lib/mktime.c (__mktime_internal): Provide prototype.
53123         * lib/inttostr.c (inttostr): Avoid compiler warning even with
53124         older gcc that do not understand #pragma GCC diagnostic.
53125         * lib/uinttostr.c (inttype_is_unsigned): Define.
53126         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
53128 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
53130         stat: fix compilation on AIX
53131         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
53132         only see struct stat64.
53134 2009-10-30  Eric Blake  <ebb9@byu.net>
53136         exclude: make more robust
53137         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
53138         rather than masking a coding bug.
53139         Suggested by Bruno Haible.
53141 2009-10-30  Jim Meyering  <meyering@redhat.com>
53143         perl scripts: remove #!/usr/bin/perl in favor of more portable...
53144         Rather than putting #!/usr/bin/perl on the first line,
53145         start with a variant of what's recommended by "man perlrun" that
53146         invokes the first "perl" program from your shell's search path.
53147         * build-aux/gitlog-to-changelog: Replace #!... as above.
53148         Add a "Local Variables" perl mode setting.
53149         Prompted by a patch from Ludovic Courtès.
53150         Improved by Eric Blake.
53151         * build-aux/useless-if-before-free: Likewise.
53152         * build-aux/announce-gen: Likewise.
53153         * build-aux/update-copyright: Likewise.
53155 2009-10-29  Eric Blake  <ebb9@byu.net>
53157         filenamecat-lgpl: adjust clients
53158         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
53159         filenamecat.
53160         * modules/renameat (Depends-on): Likewise.
53162         filenamecat: split into filenamecat-lgpl
53163         * modules/filenamecat-lgpl: New module.
53164         * modules/filenamecat (Files): Move library-safe files into
53165         filenamecat-lgpl.
53166         (Depends-on): Add filenamecat-lgpl.
53167         (configure.ac): Declare witness.
53168         * lib/filenamecat.h (file_name_concat): Only declare when using
53169         GPL module.
53170         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
53171         Move...
53172         * lib/filenamecat-lgpl.c: ...into new file.
53173         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
53174         (gl_FILE_NAME_CONCAT): Use it.
53175         * MODULES.html.sh (File system functions): Mention new module.
53177         argp: avoid memory leak
53178         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
53179         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
53180         base_name, since the latter malloc()s and can call exit().
53181         Leak introduced 2006-07-03.
53183         dirname-lgpl: adjust clients that don't need full dirname
53184         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
53185         * modules/filenamecat (Depends-on): Likewise.
53186         * modules/linkat (Depends-on): Likewise.
53187         * modules/mkancesdirs (Depends-on): Likewise.
53188         * modules/mkdir (Depends-on): Likewise.
53189         * modules/openat (Depends-on): Likewise.
53190         * modules/savewd (Depends-on): Likewise.
53191         * modules/rename (Depends-on): Likewise.
53192         (License): Relax license.
53193         * modules/mkdir-tests (Depends-on): Drop progname.
53194         (Makefile.am): Delete unneeded LDADD.
53195         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
53197         dirname: split into dirname-lgpl
53198         * modules/dirname-lgpl: New module.
53199         * modules/dirname (Files): Move library-safe files into
53200         dirname-lgpl.
53201         (Depends-on): Add dirname-lgpl.
53202         (configure.ac): Declare witness.
53203         * modules/double-slash-root (License): Relax license.
53204         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
53205         module.
53206         * lib/dirname.c (dir_len, mdir_name): Move...
53207         * lib/dirname-lgpl.c: ...into new file.
53208         * lib/basename.c (last_component, base_len): Move...
53209         * lib/basename-lgpl.c: ...into new file.
53210         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
53211         (gl_DIRNAME): Use it.
53212         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
53213         Mention new module.
53214         * modules/dirname-tests (Depends-on): Add progname.
53215         * tests/test-dirname.c (program_name): Delete.
53217         mkdir: make safe for libraries
53218         * modules/mkdir (Depends-on): Drop xalloc.
53219         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
53220         exit.
53222         tests: avoid some compiler warnings
53223         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
53224         literals.
53225         * tests/test-memchr.c (main): Avoid type mismatch.
53226         * tests/test-arpa_inet.c (main): Avoid unused parameters.
53227         * tests/test-base64.c (main): Likewise.
53228         * tests/test-getdelim.c (main): Likewise.
53229         * tests/test-gethostname.c (main): Likewise.
53230         * tests/test-getline.c (main): Likewise.
53231         * tests/test-netinet_in.c (main): Likewise.
53232         * tests/test-select.c (open_server_socket, main): Likewise.
53233         * tests/test-select-stdin.c (main): Likewise.
53234         * tests/test-sockets.c (main): Likewise.
53235         * tests/test-strsignal.c (main): Likewise.
53236         * tests/test-sys_select.c (main): Likewise.
53237         * tests/test-sys_socket.c (main): Likewise.
53238         * tests/test-u64.c (main): Likewise.
53239         * tests/test-xfprintf-posix.c (main): Likewise.
53240         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
53242         sockets: avoid compiler warning
53243         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
53245         maint: detect usage(1) and other suspicious exits
53246         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
53248 2009-10-29  Jim Meyering  <meyering@redhat.com>
53250         timespec: long-to-int truncation could make timespec_cmp malfunction
53251         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
53252         a multiple of 2^32 nanoseconds as no difference.
53254 2009-10-28  Jim Meyering  <meyering@redhat.com>
53256         fprintftime: wrap macro code argument in "do {...} while(0)"
53257         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
53258         cpy macro must be a statement that can be followed by a semicolon.
53259         Now that the else clause contains a comment and is hence longer
53260         than one line, I require curly braces.  That in turn requires
53261         that we wrap this code block in the standard do...while(0).
53263         fprintftime: remove stray semicolon from previous change
53264         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
53266         fprintftime: avoid a warning about ignored fwrite return value
53267         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
53268         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
53269         that is unsafe.
53270         * modules/fprintftime (Depends-on): Add ignore-value.
53272         exclude: avoid an unwarranted warning
53273         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
53275 2009-10-27  Eric Blake  <ebb9@byu.net>
53277         fseek: avoid compilation failure when fflush is replaced
53278         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
53279         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
53280         module is in use.
53281         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
53282         module is not in use; since REPLACE_FSEEK worked otherwise.
53283         (GNULIB_FTELLO): Likewise for ftell.
53284         Reported by Ian Beckwith and others.
53286 2009-10-27  Bruno Haible  <bruno@clisp.org>
53288         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
53289         Reported by Jim Meyering.
53291 2009-10-27  Jim Meyering  <jim@meyering.net>
53292             Bruno Haible  <bruno@clisp.org>
53294         Avoid warning despite dropping the return value of fwrite.
53295         * lib/unicodeio.c: Include ignore-value.h.
53296         (fwrite_success_callback): Explicitly ignore fwrite's return value.
53297         * modules/unicodeio (Depends-on): Add ignore-value.
53299 2009-10-26  Eric Blake  <ebb9@byu.net>
53301         areadlinkat: fix fallback path
53302         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
53303         pointer and zero.
53305 2009-10-22  Pádraig Brady  <P@draigBrady.com>
53307         Use a better IO block size for modern systems
53308         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
53309         * lib/md2.c: Likewise.
53310         * lib/md4.c: Likewise.
53311         * lib/md5.c: Likewise.
53312         * lib/sha1.c: Likewise.
53313         * lib/sha256.c: Likewise.
53314         * lib/sha512.c: Likewise.
53316 2009-10-22  Eric Blake  <ebb9@byu.net>
53318         tests: avoid several compiler warnings
53319         * tests/test-getcwd.c (main): Avoid buffer underflow.
53320         * tests/test-getdate.c (main): String literals are not safe with
53321         putenv, so use setenv.  Declare unused argument.
53322         * modules/getdate-tests (Depends-on): Add setenv.
53323         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
53324         problems with string literals in char *.
53325         * tests/test-hash.c (main): Avoid shadowing declaration.
53326         (insert_new): Treat string literals as char const *.
53327         * tests/test-getopt.h (test_getopt): Likewise.
53328         (getopt_loop): Alter types to minimize casting elsewhere.
53329         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
53330         (test_getopt_long_posix): Likewise.
53331         (do_getopt_long): Add wrapper to minimize casting.
53332         * tests/test-atexit.c (clear_temp_file): Use void.
53333         * tests/test-areadlink-with-size.c (main): Declare unused
53334         arguments.
53335         * tests/test-areadlink.c (main): Likewise.
53336         * tests/test-areadlinkat-with-size.c (main): Likewise.
53337         * tests/test-areadlinkat.c (main): Likewise.
53338         * tests/test-canonicalize-lgpl.c (main): Likewise.
53339         * tests/test-canonicalize.c (main): Likewise.
53340         * tests/test-dirent-safer.c (main): Likewise.
53341         * tests/test-dirname.c (main): Likewise.
53342         * tests/test-dup2.c (main): Likewise.
53343         * tests/test-fchdir.c (main): Likewise.
53344         * tests/test-fcntl-h.c (main): Likewise.
53345         * tests/test-fcntl-safer.c (main): Likewise.
53346         * tests/test-fdopendir.c (main): Likewise.
53347         * tests/test-fdutimensat.c (main): Likewise.
53348         * tests/test-fflush.c (main): Likewise.
53349         * tests/test-filenamecat.c (main): Likewise.
53350         * tests/test-filevercmp.c (main): Likewise.
53351         * tests/test-fopen-safer.c (main): Likewise.
53352         * tests/test-fopen.c (main): Likewise.
53353         * tests/test-fpending.c (main): Likewise.
53354         * tests/test-fpurge.c (main): Likewise.
53355         * tests/test-freading.c (main): Likewise.
53356         * tests/test-fstatat.c (main): Likewise.
53357         * tests/test-fsync.c (main): Likewise.
53358         * tests/test-futimens.c (main): Likewise.
53359         * tests/test-getndelim2.c (main): Likewise.
53360         * tests/test-gettimeofday.c (main): Likewise.
53361         * tests/test-getopt.c (main): Likewise.
53362         * tests/test-i-ring.c (main): Likewise.
53363         * tests/test-inttypes.c (main): Likewise.
53364         * tests/test-link.c (main): Likewise.
53365         * tests/test-lstat.c (main): Likewise.
53366         * tests/test-math.c (main): Likewise.
53367         * tests/test-md5.c (main): Likewise.
53368         * tests/test-memchr2.c (main): Likewise.
53369         * tests/test-memrchr.c (main): Likewise.
53370         * tests/test-mkdir.c (main): Likewise.
53371         * tests/test-mkdirat.c (main): Likewise.
53372         * tests/test-mkfifoat.c (main): Likewise.
53373         * tests/test-open.c (main): Likewise.
53374         * tests/test-openat-safer.c (main): Likewise.
53375         * tests/test-openat.c (main): Likewise.
53376         * tests/test-quotearg.c (main): Likewise.
53377         * tests/test-rawmemchr.c (main): Likewise.
53378         * tests/test-readlink.c (main): Likewise.
53379         * tests/test-remove.c (main): Likewise.
53380         * tests/test-rename.c (main): Likewise.
53381         * tests/test-renameat.c (main): Likewise.
53382         * tests/test-rmdir.c (main): Likewise.
53383         * tests/test-sha1.c (main): Likewise.
53384         * tests/test-signal.c (main): Likewise.
53385         * tests/test-sigaction.c (main): Likewise.
53386         * tests/test-stat.c (main): Likewise.
53387         * tests/test-stat-time.c (main): Likewise.
53388         * tests/test-stddef.c (main): Likewise.
53389         * tests/test-stdint.c (main): Likewise.
53390         * tests/test-stdio.c (main): Likewise.
53391         * tests/test-stdlib.c (main): Likewise.
53392         * tests/test-strchrnul.c (main): Likewise.
53393         * tests/test-strerror.c (main): Likewise.
53394         * tests/test-string.c (main): Likewise.
53395         * tests/test-strtod.c (main): Likewise.
53396         * tests/test-strverscmp.c (main): Likewise.
53397         * tests/test-symlink.c (main): Likewise.
53398         * tests/test-symlinkat.c (main): Likewise.
53399         * tests/test-sys_stat.c (main): Likewise.
53400         * tests/test-sys_time.c (main): Likewise.
53401         * tests/test-time.c (main): Likewise.
53402         * tests/test-unistd.c (main): Likewise.
53403         * tests/test-unlink.c (main): Likewise.
53404         * tests/test-unlinkat.c (main): Likewise.
53405         * tests/test-utimens.c (main): Likewise.
53406         * tests/test-utimensat.c (main): Likewise.
53407         * tests/test-version-etc.c (main): Likewise.
53408         * tests/test-wchar.c (main): Likewise.
53409         * tests/test-wctype.c (main): Likewise.
53410         * tests/test-xprintf-posix.c (main): Likewise.
53411         * tests/test-posixtm.c (main): Likewise.
53412         (STREQ): Delete unused macro.
53413         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
53414         shadowed variables.
53415         * tests/test-memchr.c (main): Likewise.
53417 2009-10-21  Eric Blake  <ebb9@byu.net>
53419         areadlinkat: avoid failure on older glibc
53420         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
53421         rather than mis-comparing 0 against FUNC_RESULT of char*.
53423 2009-10-21  Bruno Haible  <bruno@clisp.org>
53425         * modules/stpncpy (License): Relicense under LGPLv2+.
53426         Reported by David Lutterkort <lutter@redhat.com>.
53428 2009-10-20  Eric Blake  <ebb9@byu.net>
53430         utimensat: work around Solaris 9 bug
53431         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
53432         has trailing slash bugs.
53433         * tests/test-lutimens.h (test_lutimens): Enhance test.
53434         * tests/test-utimens.h (test_utimens): Likewise.
53435         * doc/posix-functions/utime.texi (utime): Enhance documentation.
53436         * doc/posix-functions/utimes.texi (utimes): Likewise.
53437         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
53438         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
53439         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
53440         * doc/posix-functions/futimens.texi (futimens): Likewise.
53442         fdutimensat: new module
53443         * modules/fdutimensat: New file.
53444         * lib/fdutimensat.c (fdutimensat): Likewise.
53445         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
53446         * MODULES.html.sh (File system functions): Mention module.
53447         * modules/fdutimensat-tests: New test.
53448         * tests/test-fdutimensat.c: Likewise.
53450         doc: regenerate INSTALL
53451         * doc/INSTALL: Reflect recent autoconf update.
53452         * doc/INSTALL.ISO: Likewise.
53453         * doc/INSTALL.UTF-8: Likewise.
53455 2009-10-20  Pádraig Brady  <P@draigBrady.com>
53457         acl: warn if ACL support is not detected
53458         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
53460 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
53462         * lib/nproc.h: Add extern "C" block for C++.
53464 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
53465             Bruno Haible  <bruno@clisp.org>
53467         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
53468         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
53469         * doc/posix-functions/isalpha.texi: Likewise.
53470         * doc/posix-functions/isblank.texi: Likewise.
53471         * doc/posix-functions/iscntrl.texi: Likewise.
53472         * doc/posix-functions/isdigit.texi: Likewise.
53473         * doc/posix-functions/isgraph.texi: Likewise.
53474         * doc/posix-functions/islower.texi: Likewise.
53475         * doc/posix-functions/isprint.texi: Likewise.
53476         * doc/posix-functions/ispunct.texi: Likewise.
53477         * doc/posix-functions/isspace.texi: Likewise.
53478         * doc/posix-functions/isupper.texi: Likewise.
53479         * doc/posix-functions/isxdigit.texi: Likewise.
53481 2009-10-18  Bruno Haible  <bruno@clisp.org>
53483         Tests for module 'isblank'.
53484         * modules/isblank-tests: New file.
53485         * tests/test-isblank.c: New file.
53487         New module 'isblank'.
53488         * lib/isblank.c: New file.
53489         * m4/isblank.m4: New file.
53490         * modules/isblank: New file.
53491         * doc/posix-functions/isblank.texi: Mention the new module.
53493 2009-10-18  Bruno Haible  <bruno@clisp.org>
53495         New module 'ctype'.
53496         * lib/ctype.in.h: New file.
53497         * m4/ctype.m4: New file.
53498         * modules/ctype: New file.
53499         * doc/posix-headers/ctype.texi: Mention the new module.
53501 2009-10-18  Jim Meyering  <meyering@redhat.com>
53503         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
53504         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
53505         right after its initialization, rather than farther down.
53506         Keeping these in close proximity makes it easier to ensure
53507         that each such variable is initialized.  E.g.,
53509             LIB_CLOCK_GETTIME=
53510             AC_SUBST([LIB_CLOCK_GETTIME])
53512         This change also increments these serial numbers.
53513         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
53514         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
53515         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
53517 2009-10-18  Bruno Haible  <bruno@clisp.org>
53519         Don't let environment variables perturb build.
53520         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
53521         (gl_PREREQ_GETHRXTIME): ... not here.
53523 2009-10-18  Bruno Haible  <bruno@clisp.org>
53525         Avoid symlink attack in localcharset module.
53526         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
53527         (O_NOFOLLOW): Define fallback.
53528         (get_charset_aliases): Don't open the file if it is a symbolic link.
53529         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
53530         gl_FCNTL_H.
53531         (gl_FCNTL_H): Require it.
53532         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
53533         * modules/localcharset (Files): Add m4/fcntl_h.m4.
53534         Reported by Fergal Glynn <fglynn@veracode.com>.
53536 2009-10-18  Bruno Haible  <bruno@clisp.org>
53538         Implement nproc for mingw.
53539         * lib/nproc.c: Include <windows.h>
53540         (num_processors): On native Windows platforms, try GetSystemInfo.
53542 2009-10-18  Bruno Haible  <bruno@clisp.org>
53544         Implement nproc for IRIX.
53545         * lib/nproc.c: Include <sys/sysmp.h>.
53546         (num_processors): On IRIX systems, try sysmp.
53547         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
53549 2009-10-18  Bruno Haible  <bruno@clisp.org>
53551         Implement nproc for HP-UX.
53552         * lib/nproc.c: Include <sys/pstat.h>
53553         (num_processors): On HP-UX systems, try pstat_getdynamic.
53554         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
53555         pstat_getdynamic.
53557 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
53558             Bruno Haible  <bruno@clisp.org>
53560         Implement nproc for NetBSD, OpenBSD.
53561         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
53562         (ARRAY_SIZE): New macro.
53563         (num_processors): On BSD systems, try sysctl of HW_NCPU.
53564         * m4/nproc.m4: New file.
53565         * modules/nproc (Files): Add m4/nproc.m4.
53566         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
53567         (Makefile.am): Instead, augment lib_SOURCES.
53569 2009-10-18  Bruno Haible  <bruno@clisp.org>
53571         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
53572         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
53573         sys/param.h.
53575 2009-10-16  Eric Blake  <ebb9@byu.net>
53577         utimensat: new module
53578         * modules/utimensat: New file.
53579         * lib/utimensat.c (utimensat): Likewise.
53580         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
53581         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
53582         so we can work around Linux bugs.
53583         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
53584         * modules/sys_stat (Makefile.am): Substitute them.
53585         * lib/sys_stat.in.h (utimensat): Declare it.
53586         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
53587         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
53588         * modules/utimensat-tests: New test.
53589         * tests/test-utimensat.c: Likewise.
53591         utimens: let lutimens work on non-symlinks
53592         * lib/utimens.c (lutimens): Fall back to utimens rather than
53593         failing with ENOSYS, when file is not a symlink.
53594         (utimens): Reduce redirection.
53595         * tests/test-lutimens.h (test_lutimens): Update test to cover
53596         non-symlinks.
53597         * tests/test-utimens.h (test_utimens): Update test to cover
53598         symlinks.
53599         * tests/test-utimens.c (main): Update caller.
53601         utimens: cache whether utimensat syscall works
53602         * lib/utimens.c (utimensat_works_really): New cache variable.
53603         (fdutimens, lutimens): Use it to avoid failing syscall.
53605         test-stat-time, test-utimens: improve portability
53606         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
53607         ext4 on alpha, and for cygwin.
53608         * tests/test-utimens-common.h: New file.
53609         (nap): Factor delays into single function.
53610         * tests/test-lutimens.h (test_lutimens): Use new header.
53611         * tests/test-futimens.h (test_futimens): Likewise.
53612         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
53613         timestamps to occur from same machine, as was done previously for
53614         test_utimens.
53615         * modules/utimens-tests (Files): Ship new file.
53616         * modules/futimens-tests (Files): Likewise.
53617         Reported in part by Jim Meyering.
53619         sys_stat: sort replacement declarations
53620         * lib/sys_stat.in.h: Sort declarations.
53621         * lib/futimens.c (futimens): Fix typo.
53623 2009-10-15  Jim Meyering  <meyering@redhat.com>
53625         don't let environment settings perturb build
53626         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
53627         could cause a configure-time and/or build-time malfunction.
53628         Typically, a configure-time function-in-library test is performed
53629         via code like this:
53631           LIB_VAR=
53632           AC_SUBST([LIB_VAR])
53633           prefix_saved_LIBS=$LIBS
53634             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
53635                        [test "$ac_cv_search_FUNC" = "none required" ||
53636                         LIB_VAR=$ac_cv_search_FUNC])
53637           LIBS=$prefix_saved_LIBS
53639         However, in each of the files affected by this change, the LIB_VAR=
53640         initialization was omitted.  Thus, when set in the environment, its
53641         value would propagate into generated Makefiles when FUNC is not found
53642         in LIB_NAME.
53643         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
53644         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
53645         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
53647 2009-10-14  Eric Blake  <ebb9@byu.net>
53649         fchdir: avoid infinite recursion in mingw
53650         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
53651         recursing.
53653         test-stat-time: port to mingw
53654         * tests/test-stat-time.c (force_unlink): Return a value.
53655         (test_ctime) [W32]: Fix compilation error.
53656         (nap): Don't call usleep with too large an argument.  Use
53657         force_unlink.
53658         * doc/pastposix-functions/usleep.texi (usleep): Document the
53659         portability issue.
53661 2009-10-13  Jim Meyering  <meyering@redhat.com>
53663         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
53664         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
53665         * modules/pipe-filter-ii: Likewise.
53666         * modules/sys_socket-tests: Likewise.
53667         * modules/tsearch-tests: Likewise.
53668         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
53669         (check): Depend on it.
53671 2009-10-12  Eric Blake  <ebb9@byu.net>
53673         utimens-tests: port to NFS file systems
53674         * tests/test-utimens.h (test_utimens): Refactor utimecmp
53675         comparisons to avoid spurious failures from timestamp drift
53676         between NFS machines.
53678 2009-10-12  Eric Blake  <ebb9@byu.net>
53680         stat-time-tests: minor cleanups
53681         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
53682         * tests/test-stat-time.c (nap): Separate assignment from call.
53683         Suggested by Paolo Bonzini and Bruno Haible.
53685         sys_stat: guarantee struct timespec
53686         * lib/sys_stat.in.h (includes): Always include <time.h>
53687         * modules/sys_stat (Depends-on): Add time.
53688         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
53689         mode_t permission values.
53690         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
53691         get at subsecond timestamps.
53693 2009-10-10  Eric Blake  <ebb9@byu.net>
53695         futimens: new module
53696         * modules/futimens: New file.
53697         * lib/futimens.c (futimens): Likewise.
53698         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
53699         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
53700         we can work around Linux bugs.
53701         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
53702         * modules/sys_stat (Makefile.am): Substitute them.
53703         * lib/sys_stat.in.h (futimens): Declare it.
53704         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
53705         * doc/posix-functions/futimens.texi (futimens): Likewise.
53706         * modules/futimens-tests: New test.
53707         * tests/test-futimens.c: Likewise.
53709         utimens: introduce fdutimens
53710         * lib/utimens.h (fdutimens): New prototype.
53711         * lib/utimens.c (gl_futimens): Move guts...
53712         (fdutimens): ...to new interface.
53713         * tests/test-utimens.c (do_fdutimens): Use it.
53715         utimens: add UTIME_NOW and UTIME_OMIT support
53716         * lib/utimens.c (validate_timespec, update_timespec): New helper
53717         functions.
53718         (gl_futimens, lutimens): Use them.
53719         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
53720         stdbool, sys_stat.
53721         (Link): Mention resulting library dependency.
53722         * modules/utimecmp (Link): Likewise.
53723         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
53724         (Makefile.am): Pick up library dependency.
53725         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
53726         definition.
53727         * tests/test-sys_stat.c: Test the definitions.
53728         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
53729         * NEWS: Document library dependency.
53731         utimecmp: support symlink timestamps
53732         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
53733         hashing when possible.  Use pathconf when available.
53734         (SYSCALL_RESOLUTION): Recognize tighter resolution.
53735         * modules/utimecmp (Depends-on): Add lstat.
53737         utimens: add lutimens interface
53738         * lib/utimens.c (lutimens): New function.
53739         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
53740         * lib/utimens.h (lutimens): Declare new interface.
53741         * tests/test-utimens.c (main): Enhance test.
53742         * tests/test-lutimens.h (test_lutimens): New file.
53743         * modules/utimens-tests (Files): Distribute it.
53744         (Depends-on): Add symlink.
53745         (configure.ac): Check for usleep.
53747         utimens: validate futimens usage
53748         * lib/utimens.c (gl_futimens): Require valid fd up front, using
53749         fewer syscalls on failure later on.  Avoid compiler warning on
53750         mingw.
53751         * modules/utimens (Depends-on): Add dup2.
53753         utimens: add test
53754         * modules/utimens-tests: New test.
53755         * tests/test-utimens.h: New file.
53756         * tests/test-futimens.h: Likewise.
53757         * tests/test-utimens.c: Likewise.
53759         doc: mention timestamp portability issues
53760         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
53761         instead.
53762         * doc/posix-functions/utime.texi (utime): Likewise.
53763         * doc/posix-functions/utimes.texi (utimes): Likewise.
53764         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
53765         instead.
53766         * doc/posix-functions/futimens.texi (futimens): Mention utimens
53767         module.
53768         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
53769         Mention weakness with symlink timestamps.
53770         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
53771         to utimensat/futimens instead.
53772         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
53774         test-dup2: enhance test
53775         * tests/test-dup2.c (main): Also check AT_FDCWD.
53777         test-stat-time: avoid more spurious failures
53778         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
53779         xfs; and avoid race if the two timestamps cross quantization edge.
53781         relocatable: prefer 'file system' over 'filesystem'
53782         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
53783         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
53784         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
53785         * doc/relocatable.texi (Enabling Relocatability): Likewise.
53786         * lib/relocatable.c (compute_curr_prefix): Likewise.
53788 2009-10-10  Jim Meyering  <meyering@redhat.com>
53790         stat-time-tests: check for the usleep function
53791         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
53793 2009-10-10  Bruno Haible  <bruno@clisp.org>
53795         * modules/xnanosleep: Put the Link section after the Include section.
53797 2009-10-09  Eric Blake  <ebb9@byu.net>
53799         dup2: work around FreeBSD 6.1 bug
53800         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
53801         * doc/posix-functions/dup2.texi (dup2): Document it.
53802         Reported by Nelson H. F. Beebe and Jim Meyering.
53804         test-stat-time: port to buggy NFS clients
53805         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
53806         (test_ctime): Also skip test if mtime and ctime are skewed.
53808         maint: prefer 'file system' over 'filesystem'
53809         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
53810         * doc/posix-functions/lstat.texi (lstat): Likewise.
53811         * lib/file-has-acl.c (file_has_acl): Likewise.
53812         * lib/fwriteerror.c [TEST]: Likewise.
53813         * tests/test-areadlink.h (test_areadlink): Likewise.
53814         * tests/test-areadlinkat-with-size.c (main): Likewise.
53815         * tests/test-areadlinkat.c (main): Likewise.
53816         * tests/test-canonicalize-lgpl.c (main): Likewise.
53817         * tests/test-canonicalize.c (main): Likewise.
53818         * tests/test-fstatat.c (main): Likewise.
53819         * tests/test-linkat.c (main): Likewise.
53820         * tests/test-lstat.h (test_lstat_func): Likewise.
53821         * tests/test-mkdir.h (test_mkdir): Likewise.
53822         * tests/test-readlink.h (test_readlink): Likewise.
53823         * tests/test-remove.c (main): Likewise.
53824         * tests/test-rename.h (test_rename): Likewise.
53825         * tests/test-renameat.c (main): Likewise.
53826         * tests/test-rmdir.h (test_rmdir_func): Likewise.
53827         * tests/test-symlink.h (test_symlink): Likewise.
53828         * tests/test-symlinkat.c (main): Likewise.
53829         * tests/test-unlink.h (test_unlink_func): Likewise.
53830         * tests/test-unlinkat.c (main): Likewise.
53832         maint: make realtime library usage explicit
53833         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
53834         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
53835         * modules/settime (Link): Likewise.
53836         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
53838         test-stat-time: speed up execution
53839         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
53840         warning on mingw.
53841         (nap): New helper function.
53842         (prepare_test): Use it to reduce sleep time.
53843         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
53844         execution.
53845         * modules/stat-time-tests (configure.ac): Check for usleep.
53847 2009-10-09  Jim Meyering  <meyering@redhat.com>
53849         selinux-h: always use getfilecon wrappers
53850         * lib/getfilecon.c: New file.
53851         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
53852         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
53853         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
53854         (fgetfilecon): Provide a stub.
53855         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
53856         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
53857         file unconditionally.
53858         When <selinux/selinux.h> is found, arrange to use wrappers.
53859         * modules/selinux-h (Files): Add getfilecon.c.
53860         (Makefile.am): Substitute include-next-related bits
53861         into the now-always-generated selinux/selinux.h file.
53862         * doc/glibc-functions/lgetfilecon.texi: New file.
53863         * doc/glibc-functions/fgetfilecon.texi: New file.
53864         * doc/glibc-functions/getfilecon.texi: New file.
53865         * doc/glibc-functions/getfilecon-desc.texi: New file.
53866         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
53867         which to pull in the new files.
53868         * MODULES.html.sh (Misc): Add selinux-h.
53870 2009-10-08  Jim Meyering  <meyering@redhat.com>
53872         unistd: fix comment typo
53873         * lib/unistd.in.h (euidaccess): Fix a comment typo.
53875 2009-10-08  Eric Blake  <ebb9@byu.net>
53877         areadlink: use SIZE_MAX consistently
53878         * modules/areadlink (Depends-on): Add stdint.
53879         * modules/areadlink-with-size (Depends-on): Likewise.
53880         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
53881         gives NULL; drop sys/types, since unistd gives size_t; and add
53882         stdint for SIZE_MAX.
53883         (SIZE_MAX): Rely on headers.
53884         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
53885         and add stdint.
53886         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
53887         (SIZE_MAX): Likewise.
53888         (INITIAL_BUF_SIZE): Turn into enum.
53889         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
53891 2009-10-08  Jim Meyering  <meyering@redhat.com>
53893         areadlinkat: avoid compilation failure
53894         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
53895         Fix typo in comment.
53897 2009-10-07  Eric Blake  <ebb9@byu.net>
53899         areadlinkat-with-size: new module
53900         * modules/areadlinkat-with-size: New module.
53901         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
53902         * lib/areadlink.h (areadlinkat): Declare it.
53903         * MODULES.html.sh (File system functions): Mention it.
53904         * modules/areadlinkat-with-size-tests: New test.
53905         * tests/test-areadlinkat-with-size.c: New file.
53907         xreadlinkat: new module
53908         * modules/xreadlinkat: New module.
53909         * lib/xreadlinkat.c (xreadlinkat): New file.
53910         * lib/xreadlink.h (xreadlinkat): Declare it.
53911         * MODULES.html.sh (File system functions): Mention it.
53913         areadlinkat: new module
53914         * lib/at-func.c (FUNC_FAIL): New define.
53915         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
53916         * modules/areadlinkat: New module.
53917         * lib/linkat.c (areadlinkat): Move...
53918         * lib/areadlinkat.c (areadlinkat): ...to new file.
53919         * lib/areadlink.h (areadlinkat): Declare it.
53920         * modules/linkat (Depends-on): Add areadlinkat.
53921         * MODULES.html.sh (File system functions): Mention it.
53922         * modules/areadlinkat-tests: New test.
53923         * tests/test-areadlinkat.c: New file.
53925         areadlink, areadlink-with-size: add tests
53926         * modules/areadlink-tests: New test.
53927         * modules/areadlink-with-size-tests: Likewise.
53928         * tests/test-areadlink.h: New file.
53929         * tests/test-areadlink.c: Likewise.
53930         * tests/test-areadlink-with-size.c: Likewise.
53932         maint: minor cleanups
53933         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
53934         _UNUSED_PARAMETER_ instead.
53935         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
53936         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
53937         * modules/linkat-tests (Files): Distribute test-link.h.
53939         openat, utimens: whitespace cleanup
53940         * lib/openat.c: Prefer space throughout, rather than mix of 8
53941         spaces vs. tabs.
53942         * lib/at-func.c: Likewise.
53943         * lib/utimens.c: Likewise.
53945         openat: avoid using wrong fd
53946         * lib/openat.c (openat_permissive): Reject user's fd if saving the
53947         working directory chooses same fd.
53948         * lib/at-func.c (AT_FUNC_NAME): Likewise.
53950         mkdir, mkdirat: fix cygwin 1.5.x bug
53951         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
53952         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
53953         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
53954         bug.
53955         (gl_PREREQ_MKDIR): Delete unused macro.
53956         * modules/mkdir (Files): Track file rename.
53957         (configure.ac): Update macro name.
53958         * modules/openat (Depends-on): Add mkdir.
53959         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
53961         mkdir, mkdirat: add tests
53962         * modules/mkdir-tests: New test.
53963         * tests/test-mkdir.h: New file.
53964         * tests/test-mkdir.c: Likewise.
53965         * tests/test-mkdirat.c: Likewise.
53966         * modules/openat-tests (Files): Add new files.
53967         (Makefile.am): Run new test.
53969 2009-10-06  Eric Blake  <ebb9@byu.net>
53971         doc: tweak *at function documentation
53972         * doc/posix-functions/faccessat.texi (faccessat): Mention
53973         known issue with replacement.
53974         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
53975         * doc/posix-functions/linkat.texi (linkat): Likewise.
53976         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
53977         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
53978         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
53979         * doc/posix-functions/renameat.texi (renameat): Likewise.
53980         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
53982         openat: fix GNU/Hurd bug in unlinkat
53983         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
53984         broken.
53985         * doc/posix-functions/unlink.texi (unlink): Document this.
53986         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
53988         fdopendir: fix GNU/Hurd bug
53989         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
53990         allowing non-directory fds.
53991         * lib/fdopendir.c (rpl_fdopendir): Work around it.
53992         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
53993         * modules/dirent (Makefile.am): Substitute it.
53994         * lib/dirent.in.h (fdopendir): Declare replacement.
53995         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
53996         * tests/test-fdopendir.c (main): Test something other than
53997         /dev/null, since on Hurd that behaves like a directory.
53999         test-symlink: port to GNU/Hurd
54000         * tests/test-symlink.h (test_symlink): Relax expected errno.
54002         doc: tweak more cygwin information
54003         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
54004         now compatible with glibc.
54005         * doc/posix-functions/getopt.texi (getopt): Likewise.
54007         getopt-gnu: add another test
54008         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
54009         guarantee behavior relied on by m4.
54010         * tests/test-getopt.c (main): Use it.
54011         * modules/getopt-posix-tests (Depends-on): Add setenv.
54012         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
54014         getopt: fix compilation on darwin
54015         * lib/getopt.in.h (includes): Leave breadcrumbs during system
54016         include.
54017         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
54018         Reported by Ludovic Courtès.
54020 2009-10-06  Bruno Haible  <bruno@clisp.org>
54022         * modules/size_max (Description): Discourage its use.
54023         Reported by Simon Josefsson.
54025 2009-10-06  Jim Meyering  <meyering@redhat.com>
54027         linkat: avoid compilation failure
54028         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
54030 2009-10-05  Eric Blake  <ebb9@byu.net>
54032         linkat: support Linux 2.6.17
54033         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
54034         linkat on Linux, but allow cache variable override.
54035         * lib/linkat.c (rpl_linkat): Define override.
54036         * modules/linkat (Depends-on): Add symlinkat.
54037         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
54038         * modules/unistd (Makefile.am): Substitute it.
54039         * lib/unistd.in.h (linkat): Declare replacement.
54040         Reported by Pádraig Brady.
54042         quotearg: port test to systems with C.UTF-8 locale
54043         * tests/test-quotearg.c (struct result_strings): Add another
54044         member, differentiating between C.ASCII and C.UTF-8 handling.
54045         (compare_strings): Add parameter.
54046         (main): Adjust all callers.
54048         getopt: avoid clash with FreeBSD _getopt_internal
54049         * lib/getopt.in.h (_getopt_internal): Override the name.
54050         * lib/getopt_int.h (includes): Pick up any overrides.
54051         Reported by Reuben Thomas.
54053         hash: allow C89 compilation
54054         * lib/hash.c (check_tuning): Move declaration before statement.
54055         Reported by Reuben Thomas.
54057 2009-10-05  Karl Berry  <karl@gnu.org>
54059         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
54061 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
54062             Bruno Haible  <bruno@clisp.org>
54064         * lib/uname.c (uname): Use a table-driven algorithm to compute
54065         Windows NT versions.
54067 2009-10-04  Bruno Haible  <bruno@clisp.org>
54069         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
54070         program_invocation_short_name.
54071         * modules/progname (configure.ac): Test for presence of
54072         program_invocation_short_name.
54073         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
54075 2009-10-04  Bruno Haible  <bruno@clisp.org>
54077         * lib/progname.c (set_program_name): Fix comment.
54078         Reported by Jim Meyering.
54080 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
54081             Bruno Haible  <bruno@clisp.org>
54083         * lib/uname.c: Include <string.h>.
54084         (uname): Do only one call to GetVersionEx in the common case.
54086 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
54087             Bruno Haible  <bruno@clisp.org>
54089         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
54090         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
54091         (uname): Add support for Windows CE and various non-x86 CPU types.
54093 2009-10-03  Bruno Haible  <bruno@clisp.org>
54095         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
54096         invocation to tests/configure.ac.
54097         Reported by Ian Beckwith <ianb@erislabs.net>.
54099 2009-10-02  Eric Blake  <ebb9@byu.net>
54101         fchdir: avoid compiler warning
54102         * lib/fchdir.c (canonicalize_file_name)
54103         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
54105         test-open: support mingw errno values
54106         * tests/test-open.h (test_open): Relax test.
54107         * tests/test-fopen.h (test_fopen): Likewise.
54108         * tests/test-openat-safer.c (main): Likewise.
54110         open: fix opening directory on mingw
54111         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
54113         test-open: on GNU/Hurd, /dev/null is a directory
54114         * tests/test-fopen.h (main): Rename...
54115         (test_fopen): ...to this.  Use a guaranteed non-directory when
54116         confirming open behavior on trailing slash.
54117         * tests/test-openat-safer.c (main): Likewise.
54118         * tests/test-open.h (main): Likewise....
54119         (test_open): ...to this.
54120         * tests/test-fopen.c (main): Adjust caller.
54121         * tests/test-fopen-safer.c (main): Likewise.
54122         * tests/test-open.c (main): Likewise.
54123         * tests/test-fcntl-safer.c (main): Likewise.
54124         Reported by Samuel Thibault.
54126         rename, fchdir: don't ignore chdir failure
54127         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
54128         * lib/rename.c (rpl_rename) [W32]: Likewise.
54129         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
54130         an empty destination directory if source cannot be renamed,
54131         although there is still possibility for failure.
54132         * doc/posix-functions/rename.texi (rename): Document the race.
54133         Reported by Jim Meyering.
54135         maint: cleanup whitespace in recent commits
54136         * lib/rename.c (rpl_rename): Remove tabs.
54137         * tests/test-link.h (test_link): Likewise.
54138         * lib/fchdir.c (get_name): Likewise.
54139         Reported by Jim Meyering.
54141 2009-10-02  Ben Pfaff  <blp@gnu.org>
54143         relocatable-prog-wrapper: Add missing dependency on
54144         double-slash-root.
54145         * modules/relocatable-prog-wrapper: Add dependency.
54146         Reported by Ian Beckwith <ianb@erislabs.net>.
54148 2009-10-02  Eric Blake  <ebb9@byu.net>
54150         renameat: fix Solaris bugs
54151         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
54152         needed fixing.
54153         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
54154         * modules/stdio (Makefile.am): Substitute it.
54155         * lib/stdio.in.h (renameat): Declare replacement.
54156         * lib/renameat.c (rpl_renameat): Implement fix.
54158         renameat: new module
54159         * modules/renameat: New file.
54160         * lib/renameat.c (renameat): Likewise.
54161         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
54162         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
54163         * modules/stdio (Makefile.am): Substitute them.
54164         * lib/stdio.in.h (renameat): Declare it.
54165         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
54166         * doc/posix-functions/renameat.texi (renameat): Likewise.
54167         * modules/renameat-tests: New test.
54168         * tests/test-renameat.c: Likewise.
54170         rename: fix mingw bugs
54171         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
54172         directory overwrite bugs.
54174         rename: fix another cygwin 1.5 bug
54175         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
54176         checks.
54177         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
54178         unnecessary cygwin workarounds.  Also work around bug with moving
54179         full directory onto an empty one.
54180         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
54182         rename-dest-slash: merge into rename module
54183         * modules/rename-dest-slash (Status): Mark obsolete.
54184         (Depends-on): Add rename.
54185         (Files): Let rename do it all.
54186         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
54187         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
54188         * m4/rename-dest-slash.m4: ...so this file can be deleted.
54189         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
54190         * lib/rename.c (rpl_rename): Update comments.
54192         rename: fix cygwin 1.5.x bugs
54193         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
54194         * lib/rename.c (rpl_rename): Work around them.
54195         * modules/rename (Depends-on): Add same-inode.
54197         rename: fix Solaris 10 bug
54198         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
54199         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
54200         was the only bug.
54202         rename: fix Solaris 9 bug
54203         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
54204         on non-directory.  Avoid calling exit.
54205         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
54206         strdup.
54207         * modules/rename-tests (Depends-on): Drop lstat.
54208         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
54209         (gl_PREREQ_RENAME): Delete unused macro.
54211         rename-dest-slash: fix NetBSD bug
54212         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
54213         links.
54214         * modules/rename-dest-slash (Depends-on): Add same-inode.
54216         rename-tests: new test, exposes several platform bugs
54217         * modules/rename-tests: New file.
54218         * tests/test-rename.h: Likewise.
54219         * tests/test-rename.c: Likewise.
54220         * doc/posix-functions/rename.texi (rename): Improve documentation,
54221         including bugs that will eventually be fixed in gnulib.
54223 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
54225         * lib/uname.c: Include <stdlib.h>
54226         (uname): Assume version info is available.
54228 2009-10-02  Jim Meyering  <meyering@redhat.com>
54230         gnu-web-doc-update: correct --help output
54231         * build-aux/gnu-web-doc-update: Make --help output relevant.
54233         gnu-web-doc-update: add standard options
54234         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
54236         gnu-web-doc-update: New module.
54237         Use this script to automatically update the on-line web documentation
54238         for your GNU project at http://www.gnu.org/software/$pkg/manual/
54239         * modules/gnu-web-doc-update: New file, from coreutils.
54240         * build-aux/gnu-web-doc-update: New script.
54242 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
54244         link: LoadLibrary is not needed.
54245         * lib/link.c: Use GetModuleHandle.
54247 2009-10-01  Eric Blake  <ebb9@byu.net>
54249         getopt: bump serial number
54250         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
54251         change.
54253         tests: tighten link, rmdir, and remove tests
54254         * tests/test-link.h (includes): No need to use <config.h> here.
54255         Clean up if directory hard link was created, otherwise test for
54256         trailing '.'.
54257         * tests/test-linkat.c (main): Simplify.
54258         * tests/test-remove.c (main): Enhance test for trailing '.'.
54259         * tests/test-rmdir.h (test_rmdir_func): Likewise.
54261 2009-10-01  Jim Meyering  <meyering@redhat.com>
54263         maint.mk: requiring "make major" was annoying, for a "minor" release.
54264         What is intended is "stable", to contrast with alpha and beta,
54265         so require "make stable", not "make major".
54266         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
54267         (get_tool_versions): Likewise.
54268         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
54270 2009-09-30  Ben Pfaff  <blp@gnu.org>
54272         Fix broken build of replacement for Windows tmpfile().
54273         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
54274         flags argument added along with the 'mkostemp' module.
54276 2009-09-28  Bruno Haible  <bruno@clisp.org>
54278         Avoid identifier clash with POSIX function 'remove' defined as a macro.
54279         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
54280         to 'remove_elt'.
54281         (gl_list_remove): Update.
54282         * lib/gl_list.c (gl_list_remove): Update.
54283         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
54284         to 'remove_elt'.
54285         (gl_oset_remove): Update.
54286         * lib/gl_list.c (gl_oset_remove): Update.
54287         Reported by Eric Blake.
54289 2009-09-28  Eric Blake  <ebb9@byu.net>
54291         doc: mention yet more cygwin 1.7 status
54292         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
54293         cygwin.
54294         * doc/glibc-functions/execvpe.texi (execvpe): New file.
54295         * doc/gnulib.texi (Glibc unistd.h): Mention it.
54297         argp: fix test failure
54298         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
54299         that are not upper-case.  Pass correct range to tolower.
54301 2009-09-27  Jim Meyering  <meyering@redhat.com>
54303         test-yesno: work around sparc-dash here-document infelicity
54304         Without this change, the literal \177 byte in a here document
54305         would make dash 0.5.5.1-3 access uninitialized memory.
54306         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
54307         Instead, use a marker, "@", and filter through tr to create the desired
54308         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
54310 2009-09-27  Bruno Haible  <bruno@clisp.org>
54312         Disable untested support for new flavours of ACLs on AIX.
54313         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
54314         progress.
54315         * lib/set-mode-acl.c (qset_acl): Likewise.
54317 2008-12-07  Bruno Haible  <bruno@clisp.org>
54319         Add support for new flavours of ACLs on AIX. (Untested.)
54320         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
54321         (file_has_acl): Add support for newer AIX.
54322         * lib/set-mode-acl.c (qset_acl): Likewise.
54323         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
54324         Rainer Tammer <tammer@tammer.net>.
54326 2009-09-26  Eric Blake  <ebb9@byu.net>
54328         argp: fix compilation of getopt
54329         * lib/getopt.in.h (includes): Use different guard than glibc.
54330         Reported by Sergey Poznyakoff.
54332         doc: mention more cygwin 1.7 status
54333         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
54334         bug.
54335         * doc/posix-functions/execl.texi (execl): Likewise.
54336         * doc/posix-functions/execle.texi (execle): Likewise.
54337         * doc/posix-functions/execlp.texi (execlp): Likewise.
54338         * doc/posix-functions/execv.texi (execv): Likewise.
54339         * doc/posix-functions/execve.texi (execve): Likewise.
54340         * doc/posix-functions/execvp.texi (execvp): Likewise.
54341         * doc/glibc-functions/canonicalize_file_name.texi
54342         (canonicalize_file_name): Cygwin 1.7 now provides this.
54343         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
54344         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
54345         on AT_SYMLINK_NOFOLLOW.
54347 2009-09-24  Eric Blake  <ebb9@byu.net>
54349         test-linkat: make test more robust
54350         * tests/test-linkat.c (main): Avoid collision with EEXIST.
54352         getopt: fix inclusion guards for cygwin
54353         * modules/getopt-posix (Depends-on): Add include-next.
54354         (Makefile.am): Substitute more items in replacement header.
54355         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
54356         <getopt.h>.
54357         * lib/getopt.in.h (includes): Use split inclusion guard, and
54358         prefer <getopt.h> over include <unistd.h> when one is present.
54359         (option): Also override name of 'struct option'.
54361         same-inode: revert prior change; it is not yet ready
54362         * NEWS: Undo mention of this change.
54363         * lib/same-inode.h (same-inode.h): Undo tri-state change.
54364         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
54365         * lib/cycle-check.c (cycle_check): Likewise.
54366         * lib/same.c (same_name): Likewise.
54367         * lib/at-func2.c (at_func2): Likewise.
54369 2009-09-23  Eric Blake  <ebb9@byu.net>
54371         linkat: new module
54372         * modules/linkat: New file.
54373         * lib/at-func2.c (at_func2): Likewise.
54374         * lib/linkat.c (linkat): Likewise.
54375         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
54376         * lib/openat-priv.h (at_func2): Add declaration.
54377         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
54378         * modules/unistd (Makefile.am): Substitute them.
54379         * lib/unistd.in.h (linkat): Declare it.
54380         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
54381         * doc/posix-functions/linkat.texi (linkat): Likewise.
54382         * doc/posix-functions/link.texi (link): Tweak wording.
54383         * tests/test-link.c (main): Move guts...
54384         * tests/test-link.h (test_link): ...into new file.
54385         * modules/linkat-tests: New test.
54386         * tests/test-linkat.c: Likewise.
54387         * modules/link-tests (Files): Ship new file.
54388         (Depends-on): Add stdbool.
54390         dirname: add library-safe mdir_name
54391         * lib/dirname.h (mdir_name): New prototype.
54392         * lib/dirname.c (dir_name): Move guts...
54393         (mdir_name): ...to new function that avoids xalloc_die.
54395         fchdir: another mingw fix
54396         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
54397         * lib/fchdir.c (get_name): New helper method; skips canonicalize
54398         on mingw (where it has not yet been ported), and make it optional
54399         elsewhere.
54400         (_gl_register_fd): Use it.
54402         same-inode: make SAME_INODE tri-state, to port to mingw
54403         * NEWS: Mention this change.
54404         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
54405         st_ino always being 0.
54406         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
54407         * lib/cycle-check.c (cycle_check): Likewise.
54408         * lib/same.c (same_name): Likewise.
54410         lstat: avoid mingw compilation error
54411         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
54412         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
54413         lstat ourselves.
54414         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
54415         was adequate.
54416         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
54417         the checks for lstat.
54418         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
54420         link: fix test failure on Solaris 9
54421         * lib/link.c (rpl_link): Don't assume link will catch bogus
54422         trailing slash on source.
54424         test-symlinkat: enhance test
54425         * tests/test-readlink.c (main): Move guts...
54426         * tests/test-readlink.h (test_readlink): ...into new file.
54427         * tests/test-symlink.c (main): Move guts...
54428         * tests/test-symlink.h (test_symlink): ...into new file.
54429         * tests/test-symlinkat.c (main): Use new files for further
54430         coverage.
54431         (do_symlink, do_readlink): New helper functions.
54432         * modules/symlink-tests (Files): Ship new file.
54433         (Depends-on): Add stdbool.
54434         * modules/readlink-tests (Files): Ship new file.
54435         (Depends-on): Add stdbool.
54436         * modules/symlinkat-tests (Files): Use new files.
54438 2009-09-23  Eric Blake  <ebb9@byu.net>
54440         readlink: document portability issue with symlink length
54441         * doc/posix-functions/lstat.texi (lstat): Mention that some file
54442         systems have bogus st_size on symlinks, and mention the
54443         areadlink-with-size module.
54444         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
54445         * doc/posix-functions/readlink.texi (readlink): Mention the
54446         areadlink module, and ERANGE failure.
54447         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
54448         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
54450         readlink: fix Solaris 9 bug with trailing slash
54451         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
54452         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
54453         * doc/posix-functions/readlink.texi (readlink): Document this.
54454         * modules/readlink-tests: New test.
54455         * tests/test-readlink.c: Likewise.
54457         readlink: fix cygwin 1.5.x bug with return type
54458         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
54459         * lib/unistd.in.h (readlink): Use ssize_t.
54460         * lib/readlink.c (readlink): Likewise.
54461         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
54462         * modules/unistd (Makefile.am): Substitute it.
54463         * lib/unistd.in.h (readlink): Declare replacement.
54464         * doc/posix-functions/readlink.texi (readlink): Document this.
54466         symlink: use throughout gnulib
54467         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
54468         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
54469         symlink is not used.
54470         * modules/symlinkat (Depends-on): Add symlink.
54471         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
54472         * modules/canonicalize-tests (Depends-on): Likewise.
54473         * modules/lstat-tests (Depends-on): Likewise.
54474         * modules/openat-tests (Depends-on): Likewise.
54475         * modules/remove-tests (Depends-on): Likewise.
54476         * modules/rmdir-tests (Depends-on): Likewise.
54477         * modules/unlink-tests (Depends-on): Likewise.
54478         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
54479         * tests/test-canonicalize.c (symlink): Likewise.
54480         * tests/test-fstatat.c (symlink): Likewise.
54481         * tests/test-lstat.c (symlink): Likewise.
54482         * tests/test-remove.c (symlink): Likewise.
54483         * tests/test-rmdir.c (symlink): Likewise.
54484         * tests/test-unlink.c (symlink): Likewise.
54485         * tests/test-unlinkat.c (symlink): Likewise.
54487         symlink: new module, for Solaris 9 bug
54488         * modules/symlink: New file.
54489         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
54490         * lib/symlink.c: Likewise.
54491         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
54492         * modules/unistd (Makefile.am): Substitute them.
54493         * lib/unistd.in.h (symlink): Declare replacement.
54494         * MODULES.html.sh (File system functions): Mention it.
54495         * doc/posix-functions/symlink.texi (symlink): Likewise.
54496         * modules/symlink-tests: New test.
54497         * tests/test-symlink.c: Likewise.
54499 2009-09-23  Bruno Haible  <bruno@clisp.org>
54501         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
54502         when needed.
54503         Test case: gnulib-tool --import --with-tests atexit inttypes.
54504         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
54506 2009-09-23  Bruno Haible  <bruno@clisp.org>
54508         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
54509         subcommand, not in a subshell.
54511 2009-09-22  Eric Blake  <ebb9@byu.net>
54513         unistd: sort replacement declarations
54514         * lib/unistd.in.h: Sort declarations.
54516         open, openat: minor optimization
54517         * lib/open.c (open): If open succeeded, len is non-zero.
54518         * lib/openat.c (rpl_openat): Likewise.
54520         link-follow: ensure correct result
54521         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
54522         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
54523         distinguish between possible failures.
54525 2009-09-21  Eric Blake  <ebb9@byu.net>
54527         fts: avoid compiler warning
54528         * lib/fts.c (dirent_inode_sort_may_be_useful)
54529         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
54531 2009-09-19  Bruno Haible  <bruno@clisp.org>
54533         * lib/progreloc.c (canonicalize_file_name): New declaration.
54535 2009-09-19  Eric Blake  <ebb9@byu.net>
54537         link: fix quoting
54538         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
54540         openat: fix openat bugs on Solaris 9
54541         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
54542         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
54543         * modules/openat (Depends-on): Add open.
54544         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
54545         * modules/fcntl-h (Makefile.am): Substitute it.
54546         * lib/fcntl.in.h (openat): Declare replacement.
54547         * doc/posix-functions/openat.texi (openat): Document this.
54549         openat: move fstatat and unlinkat into correct files
54550         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
54551         compiled.
54552         * lib/openat.c (fstatat, unlinkat): Move...
54553         * lib/fstatat.c (fstatat): ...into correct files.
54554         * lib/unlinkat.c (unlinkat): Likewise.
54556         openat: fix unlinkat bugs on Solaris 9
54557         * lib/unlinkat.c (unlinkat): New file.
54558         * modules/openat (Depends-on): Add unlink.
54559         (Files): Distribute it.
54560         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
54561         trailing slash behavior is broken.
54562         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
54563         * modules/unistd (Makefile.am): Substitute it.
54564         * lib/unistd.in.h (unlinkat): Declare replacement.
54565         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
54567         openat: fix fstatat bugs on Solaris 9
54568         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
54569         stat.
54570         * doc/posix-functions/fstatat.texi (fstatat): Document this.
54572         test-unlinkat: enhance test, to expose Solaris 9 bug
54573         * tests/test-unlink.c (main): Factor guts...
54574         * tests/test-unlink.h (test_rmdir_func): ...into new file.
54575         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
54576         * tests/test-rmdir.c (main): Adjust caller.
54577         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
54578         (unlinker): New helper function.
54579         (rmdirat): Enhance check.
54580         * modules/rmdir-tests (Depends-on): Add stdbool.
54581         * modules/unlink-tests (Depends-on): Likewise.
54582         (Files): Add test-unlink.h.
54583         * modules/openat-tests (Files): Likewise.
54584         (Depends-on): Add unlinkdir.
54586         test-fstatat: new test, to expose Solaris 9 bugs
54587         * tests/test-stat.c (main): Factor guts...
54588         * tests/test-stat.h (test_stat_func): ...into new file.
54589         * tests/test-lstat.c (main): Factor guts...
54590         * tests/test-lstat.h (test_lstat_func): ...into new file.
54591         * tests/test-fstatat.c: New file.
54592         * modules/stat-tests (Files): Add test-stat.h.
54593         * modules/lstat-tests (Files): Add test-lstat.h.
54594         (Depends-on): Add stdbool.
54595         * modules/openat-tests (Depends-on): Add pathmax.
54596         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
54597         (Makefile.am): Run new test.
54599         remove: new module, for mingw and Solaris 9 bugs
54600         * modules/remove: New file.
54601         * lib/remove.c: Likewise.
54602         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
54603         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
54604         * modules/stdio (Makefile.am): Use them.
54605         * lib/stdio.in.h (remove): Declare replacement.
54606         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
54607         * doc/posix-functions/remove.texi (remove): Likewise.
54608         * modules/remove-tests: New test.
54609         * tests/test-remove.c: Likewise.
54611         unlink: new module, for Solaris 9 bug
54612         * modules/unlink: New file.
54613         * lib/unlink.c: Likewise.
54614         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
54615         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
54616         * modules/unistd (Makefile.am): Use them.
54617         * lib/unistd.in.h (stat): Declare replacement.
54618         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
54619         * doc/posix-functions/unlink.texi (unlink): Likewise.
54620         * modules/unlink-tests: New test.
54621         * tests/test-unlink.c: Likewise.
54623         lstat: fix Solaris 9 bug
54624         * lib/lstat.c (lstat): Also check for trailing slash on
54625         non-symlink, non-directories.  Use stat module to simplify logic.
54626         * doc/posix-functions/lstat.texi (lstat): Document it.
54627         * modules/lstat-tests (Depends-on): Add errno, same-inode.
54628         (configure.ac): Check for symlink.
54629         * tests/test-lstat.c (main): Add more tests.
54631         stat: add as dependency to other modules
54632         * modules/chown (Depends-on): Add stat.
54633         * modules/euidaccess (Depends-on): Likewise.
54634         * modules/fchdir (Depends-on): Likewise.
54635         * modules/isdir (Depends-on): Likewise.
54636         * modules/link (Depends-on): Likewise.
54637         * modules/lstat (Depends-on): Likewise.
54638         * modules/mkdir-p (Depends-on): Likewise.
54639         * modules/modechange (Depends-on): Likewise.
54640         * modules/open (Depends-on): Likewise.
54641         * modules/readlink (Depends-on): Likewise.
54642         * modules/same (Depends-on): Likewise.
54644         stat: fix Solaris 9 bug
54645         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
54646         slash.
54647         * lib/stat.c (rpl_stat): Work around it.
54648         * doc/posix-functions/stat.texi (stat): Update documentation.
54650         stat: new module, for mingw bug
54651         * modules/stat: New file.
54652         * lib/stat.c: Likewise.
54653         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
54654         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
54655         * modules/sys_stat (Makefile.am): Use them.
54656         * lib/sys_stat.in.h (stat): Declare replacement.
54657         * lib/openat.c (fstatat): Deal with lstat and stat being function
54658         macros.
54659         * modules/openat (Depends-on): Add inline.
54660         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
54661         * doc/posix-functions/stat.texi (stat): Likewise.
54662         * modules/stat-tests: New test.
54663         * tests/test-stat.c: Likewise.
54665 2009-09-19  Jim Meyering  <meyering@redhat.com>
54667         syntax-check: detect unnecessary inclusion of canonicalize.h
54668         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
54670 2009-09-19  Eric Blake  <ebb9@byu.net>
54672         canonicalize-lgpl: adjust clients to use correct header
54673         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
54674         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
54675         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
54676         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
54677         * lib/progreloc.c (includes): Likewise.
54679 2009-09-19  Jim Meyering  <meyering@redhat.com>
54681         test-posixtm.c: correct a comment
54682         * tests/test-posixtm.c: Correct first-line comment.
54683         Spotted by Eric Blake.
54685 2009-09-16  Jim Meyering  <meyering@redhat.com>
54687         posixtm-tests: make T const-correct; add a test case
54688         * tests/test-posixtm.c (T): Declare const.
54689         Add a test for -(2^31+1).
54690         Remove useless can-succeed-only-in-2002 test.
54692         posixtm-tests: adjust the sole failing test
54693         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
54694         expected output matches what mktime now produces.  Cross-checked via
54695         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
54697         posixtm: move #ifdef'd tests into a new module
54698         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
54699         * tests/test-posixtm.c: ... this new file.
54700         * modules/posixtm-tests: New module.
54702 2009-09-19  Eric Blake  <ebb9@byu.net>
54704         openat: simplify use of at-func.c
54705         * lib/at-func.c (includes): Include prerequisites here, to
54706         simplify requirements on client files.
54707         * lib/openat-priv.h: Add double-inclusion guard.
54708         * lib/faccessat.c (includes): Simplify.
54709         * lib/fchmodat.c (includes): Likewise.
54710         * lib/fchownat.c (includes): Likewise.
54711         * lib/mkdirat.c (includes): Likewise.
54712         * lib/mkfifoat.c (includes): Likewise.
54713         * lib/symlinkat.c (includes): Likewise.
54715         openat: allow return of fd 0
54716         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
54717         * modules/save-cwd (Depends-on): Replace fcntl-safer with
54718         unistd-safer.
54719         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
54720         <fcntl.h>; this module does not leak fds.
54721         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
54722         must be allowed to return 0, leaving openat_safer to add the
54723         safety.
54724         (openat_permissive): Avoid writing to just-opened fd 2 if
54725         restoring the current directory fails.
54726         * lib/openat-die.c (openat_restore_fail): Add comment.
54727         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
54728         (save_cwd): Guarantee safe fd, but without use of open_safer.
54729         * tests/test-openat.c: New test.
54730         * modules/openat-tests (Files, Makefile.am): Distribute and build
54731         new file.
54733         relocatable-prog-wrapper: fix build
54734         * modules/relocatable-prog-wrapper (Files): Update name of
54735         canonicalize m4 file, broken on 2009-09-17.
54736         Reported by emad hajjar <aleppos@hotmail.com>.
54738 2009-09-19  Bruno Haible  <bruno@clisp.org>
54740         * lib/safe-alloc.h: Use the standard header with GPL copyright.
54741         * lib/safe-alloc.c: Likewise.
54742         Reported by Ian Beckwith <ianb@erislabs.net>.
54744 2009-09-18  Bruno Haible  <bruno@clisp.org>
54746         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
54747         Reported by <erobles@sensacd.com.mx>.
54749 2009-09-17  Eric Blake  <ebb9@byu.net>
54751         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
54752         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
54753         slashes when checking if last component is missing.
54754         * tests/test-canonicalize.c (main): Test this.
54756         canonicalize, canonicalize-lgpl: honor // if distinct from /
54757         * modules/canonicalize (Files): Add double-slash-root.m4.
54758         * modules/canonicalize-lgpl (Files): Likewise.
54759         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
54760         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
54761         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
54762         fallback definition.
54763         (canonicalize_filename_mode): Use it to protect //.
54764         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
54765         (__realpath): Likewise.
54766         * tests/test-canonicalize.c (main): Test this.
54767         * tests/test-canonicalize-lgpl.c (main): Likewise.
54768         * modules/canonicalize-tests (Depends-on): Add same-inode.
54769         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
54771         canonicalize-lgpl: fix glibc bug with trailing slash
54772         * m4/canonicalize-lgpl.m4: Move contents...
54773         * m4/canonicalize.m4: ...here.
54774         (gl_CANONICALIZE_LGPL): Factor realpath check...
54775         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
54776         glibc 2.3.5 bug, fixed 2005-04-27.
54777         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
54778         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
54779         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
54780         * modules/canonicalize-lgpl (Files): Manage file rename.
54781         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
54782         * modules/stdlib (Makefile.am): Substitute witness.
54783         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
54784         is needed.
54785         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
54786         replacement is required.
54787         * lib/canonicalize.c (canonicalize_file_name): Likewise.
54788         * doc/glibc-functions/canonicalize_file_name.texi
54789         (canonicalize_file_name): Document this.
54790         * doc/posix-functions/realpath.texi (realpath): Likewise.
54792         canonicalize-lgpl: reject non-directory with trailing slash
54793         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
54794         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
54795         catches failures in glibc 2.3.5.
54796         * tests/test-canonicalize.c (main): Likewise.
54798         canonicalize-lgpl: use native realpath if it works
54799         * lib/canonicalize-lgpl.c (realpath): Guard with
54800         FUNC_REALPATH_WORKS.
54801         * lib/stdlib.in.h (realpath): Make declaration optional based on
54802         HAVE_REALPATH.
54803         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
54804         native realpath works.
54805         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
54806         * modules/stdlib (Makefile.am): Substitute witness.
54808         canonicalize, canonicalize-lgpl: use <stdlib.h>
54809         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
54810         (Include): Mention <stdlib.h>.
54811         (configure.ac): Mention functions we provide.
54812         * modules/canonicalize (configure.ac): Likewise.
54813         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
54814         realpath if canonicalize_file_name is missing.
54815         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
54816         * modules/stdlib (Makefile.am): Substitute witnesses.
54817         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
54818         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
54819         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
54820         * NEWS: Document this.
54821         * doc/glibc-functions/canonicalize_file_name.texi
54822         (canonicalize_file_name): Likewise.
54823         * doc/posix-functions/realpath.texi (realpath): Likewise.
54824         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
54826         test-canonicalize: consolidate into single C program
54827         * tests/test-canonicalize.sh: Delete; move setup into...
54828         * tests/test-canonicalize.c (main): ...the program, making it
54829         easier to run in debugger.  Add some tests.
54830         * modules/canonicalize-tests (Files): Remove unused file.
54831         (Depends-on): Add progname.
54832         (configure.ac, Makefile.am): Simplify.
54834         test-canonicalize-lgpl: consolidate into single C program
54835         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
54836         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
54837         easier to run in debugger.  Add some tests.
54838         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
54839         (configure.ac, Makefile.am): Simplify.
54841         canonicalize: avoid resolvepath
54842         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
54843         unnecessary checks.
54844         * lib/canonicalize.c (includes): Simplify.
54845         (canonicalize_file_name): Drop resolvepath implementation.
54846         * modules/canonicalize (Depends-on): Drop filenamecat.
54848         canonicalize: don't lose errno
54849         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
54850         over calls to free.
54852         canonicalize: simplify errno handling
54853         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
54854         assignment.
54856         canonicalize, canonicalize-lgpl: update module dependencies
54857         * modules/canonicalize (Depends-on): Add extensions, lstat,
54858         pathmax, stdlib.
54859         (Files): Drop pathmax.h.
54860         (configure.ac): Adjust macro name.
54861         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
54862         lstat, stdlib, sys_stat.
54863         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
54864         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
54865         extensions.
54866         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
54867         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
54868         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
54869         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
54870         declaration, if available.
54871         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
54872         we can rely on the readlink module.
54873         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
54874         (includes): Use <unistd.h> unconditionally.
54876 2009-09-17  Eric Blake  <ebb9@byu.net>
54878         maint: make Include sections of modules consistent
54879         * modules/alloca: Use only header name; no need to list #include.
54880         * modules/alloca-opt: Likewise.
54881         * modules/arpa_inet: Likewise.
54882         * modules/canon-host: Likewise.
54883         * modules/configmake: Likewise.
54884         * modules/dirent: Likewise.
54885         * modules/eealloc: Likewise.
54886         * modules/environ: Likewise.
54887         * modules/fchdir: Likewise.
54888         * modules/fcntl: Likewise.
54889         * modules/fcntl-h: Likewise.
54890         * modules/gethrxtime: Likewise.
54891         * modules/gettime: Likewise.
54892         * modules/ignore-value: Likewise.
54893         * modules/inet_ntop: Likewise.
54894         * modules/inet_pton: Likewise.
54895         * modules/inttypes: Likewise.
54896         * modules/isnand-nolibm: Likewise.
54897         * modules/isnanf-nolibm: Likewise.
54898         * modules/mbchar: Likewise.
54899         * modules/mbfile: Likewise.
54900         * modules/mbiter: Likewise.
54901         * modules/mbuiter: Likewise.
54902         * modules/netdb: Likewise.
54903         * modules/netinet_in: Likewise.
54904         * modules/nproc: Likewise.
54905         * modules/pagealign_alloc: Likewise.
54906         * modules/poll: Likewise.
54907         * modules/printf-frexp: Likewise.
54908         * modules/pthread: Likewise.
54909         * modules/putenv: Likewise.
54910         * modules/random_r: Likewise.
54911         * modules/relocatable-prog: Likewise.
54912         * modules/search: Likewise.
54913         * modules/select: Likewise.
54914         * modules/selinux-h: Likewise.
54915         * modules/settime: Likewise.
54916         * modules/signal: Likewise.
54917         * modules/size_max: Likewise.
54918         * modules/socklen: Likewise.
54919         * modules/ssize_t: Likewise.
54920         * modules/stdarg: Likewise.
54921         * modules/stdbool: Likewise.
54922         * modules/stddef: Likewise.
54923         * modules/stdint: Likewise.
54924         * modules/stdio: Likewise.
54925         * modules/stdlib: Likewise.
54926         * modules/string: Likewise.
54927         * modules/strings: Likewise.
54928         * modules/sys_file: Likewise.
54929         * modules/sys_ioctl: Likewise.
54930         * modules/sys_select: Likewise.
54931         * modules/sys_socket: Likewise.
54932         * modules/sys_stat: Likewise.
54933         * modules/sys_time: Likewise.
54934         * modules/sys_times: Likewise.
54935         * modules/sys_utsname: Likewise.
54936         * modules/sys_wait: Likewise.
54937         * modules/sysexits: Likewise.
54938         * modules/time: Likewise.
54939         * modules/times: Likewise.
54940         * modules/tmpfile: Likewise.
54941         * modules/trim: Likewise.
54942         * modules/unistd: Likewise.
54943         * modules/wchar: Likewise.
54944         * modules/wctype: Likewise.
54946 2009-09-17  Bruno Haible  <bruno@clisp.org>
54948         Make getdate.y compile on QNX and NetBSD 5 / i386.
54949         * m4/getdate.m4 (gl_GETDATE): Conditionally define
54950         TIME_T_FITS_IN_LONG_INT.
54951         * lib/getdate.y (long_time_t): New type.
54952         (relative_time): Change type of 'seconds' field to long_time_t.
54953         (get_date): Update types of local variables. Check against overflow
54954         during conversion from long_time_t to time_t.
54955         Reported by Matt Kraai <kraai@ftbfs.org>
54956         and Hasso Tepper <hasso@netbsd.org>.
54958 2009-09-17  Bruno Haible  <bruno@clisp.org>
54960         * modules/COPYING: Update copyright years.
54961         * modules/README: Likeiwse.
54962         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
54963         Reported by Ian Beckwith <ianb@erislabs.net>.
54965 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
54967         * users.txt: Update references for gnuit package.
54969 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
54971         * m4/getdelim.m4: Fix typo in copyright line.
54973 2009-09-17  Bruno Haible  <bruno@clisp.org>
54975         * lib/atoll.c: Use the standard header with GPL copyright.
54976         * lib/argz.in.h: Likewise.
54977         * lib/glob.c: Likewise.
54978         * lib/glob-libc.h: Likewise.
54979         * lib/random_r.c: Likewise.
54980         * lib/siglist.h: Likewise.
54981         * lib/strsignal.c: Likewise.
54982         Reported by Ian Beckwith <ianb@erislabs.net>.
54984 2009-09-17  Eric Blake  <ebb9@byu.net>
54986         rmdir: ensure correct dependency order
54987         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
54989 2009-09-17  Bruno Haible  <bruno@clisp.org>
54991         Disable assertion that fails on NetBSD 5 / i386.
54992         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
54993         Reported by Sam Steingold <sds@gnu.org>
54994         and Hasso Tepper <hasso@netbsd.org>.
54996 2009-09-16  Eric Blake  <ebb9@byu.net>
54998         unlinkdir: port to mingw
54999         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
55000         on which no one can unlink a directory.
55002         stdlib: sort witness names
55003         * modules/stdlib (Makefile.am): Sort replacements.
55004         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
55005         * lib/stdlib.in.h: Likewise.
55007         parse-duration-tests: avoid link failure
55008         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
55009         LIBINTL.
55010         Reported by Tom G. Christensen.
55012         openat-tests: ensure unlinkat behaves like rmdir
55013         * tests/test-rmdir.c (main): Factor guts...
55014         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
55015         * modules/rmdir-tests (Files): Ship new file.
55016         * modules/openat-tests: New test.
55017         * tests/test-unlinkat.c: Likewise.
55019         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
55020         * modules/rmdir-errno (Status, Notice): Now obsolete.
55022         rmdir: work around cygwin 1.5.x and mingw bugs
55023         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
55024         * lib/rmdir.c (rmdir): Work around it.
55025         * modules/rmdir (Status, Notice): No longer obsolete.
55026         (Files): Add dos.m4.
55027         (Depends-on): Add unistd.
55028         (configure.ac): Set witnesses.
55029         (License): Relax to LGPLv2+.
55030         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
55031         * modules/unistd (Makefile.am): Substitute witnesses.
55032         * lib/unistd.in.h (rmdir): Declare replacement.
55033         * doc/posix-functions/rmdir.texi (rmdir): Document this.
55034         * modules/rmdir-tests: New tests.
55035         * tests/test-rmdir.c: Likewise.
55037 2009-09-15  Eric Blake  <ebb9@byu.net>
55039         fchdir: improve use of replacement functions
55040         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
55041         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
55042         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
55043         REPLACE_CLOSEDIR.
55044         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
55045         * modules/sys_stat (Makefile.am): Substitute correct witness.
55046         * modules/dirent (Makefile.am): Likewise.
55047         * modules/unistd (Makefile.am): Likewise.
55048         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
55049         * lib/unistd.in.h (dup): Likewise.
55050         * lib/sys_stat.in.h (fstat): Likewise.
55052         maint: ignore gnulib-tool temp files
55053         * .gitignore: Ignore files created during gnulib-tool --test.
55055 2009-09-13  Jim Meyering  <meyering@redhat.com>
55057         posixtm: don't reject a time that specify "60" as the number of seconds
55058         * lib/posixtm.c (posixtime): The code to reject invalid dates
55059         would also reject a time specified with the .60 suffix.
55060         But POSIX allows that, in order to accommodate leap seconds.
55061         So don't reject it.
55062         (main): Adjust tests accordingly.
55063         * modules/posixtm (Depends-on): Add stpcpy.
55065 2009-09-11  Jim Meyering  <meyering@redhat.com>
55067         announce-gen: include [$release_type] in emitted Subject:
55068         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
55069         e.g., [stable] in the emitted Subject: line.
55071 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55073         Remove obsolete macros from several modules.
55074         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
55075         obsolete Autoconf macros with their modern counterparts.
55076         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
55077         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
55078         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
55079         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
55080         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
55081         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
55082         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
55083         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
55084         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
55085         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
55086         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
55087         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
55088         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
55089         * m4/sockets.m4 (gl_SOCKETS): Likewise.
55090         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
55091         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
55092         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
55093         * m4/time_r.m4 (gl_TIME_R): Likewise.
55094         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
55095         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
55096         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
55098         Fix copyright header in build-aux scripts.
55099         * build-aux/git-version-gen: Fix copyright header to match GPLv3
55100         recommendation.
55101         * build-aux/ncftpput-ftp: Likewise.
55102         * build-aux/update-copyright: Likewise.
55104 2009-09-09  Eric Blake  <ebb9@byu.net>
55106         test-link: allow Linux choice of errno
55107         * tests/test-link.c (main): Relax test for alternate error.
55109         strndup: fix improper m4 caching
55110         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
55111         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
55112         (gl_PREREQ_STRNDUP): Delete.
55113         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
55114         * modules/string (Makefile.am): Substitute it.
55115         * lib/string.in.h (strndup): Modernize prototype.
55117         getcwd: port to mingw
55118         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
55119         different from the POSIX assumptions made throughout the getcwd
55120         module; fortunately, the mingw getcwd does not need replacement.
55121         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
55122         * modules/getcwd-tests: New test.
55123         * tests/test-getcwd.c: Likewise.
55125         link: fix platform bugs
55126         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
55127         * lib/link.c (link): Work around them.  Fix related mingw bug.
55128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
55129         * modules/unistd (Makefile.am): Substitute it.
55130         * lib/unistd.in.h (link): Declare replacement.
55131         * doc/posix-functions/link.texi (link): Document this.
55132         * modules/link (Depends-on): Add strdup-posix, sys_stat.
55134         test-link: consolidate into single C program, test more cases
55135         * tests/test-link.sh: Delete.
55136         * tests/test-link.c: Test more error conditions.  Exposes bugs on
55137         at least Cygwin and Solaris.
55138         * modules/link-tests (Files): Remove unused file.
55139         (Depends-on): Add errno, sys_stat.
55140         (Makefile.am): Simplify.
55142 2009-09-08  Bruno Haible  <bruno@clisp.org>
55144         Work around towlower, towupper bug on mingw.
55145         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
55146         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
55147         * doc/posix-functions/towlower.texi: Mention the mingw bug.
55148         * doc/posix-functions/towupper.texi: Likewise.
55149         Reported by Eric Blake.
55151 2009-09-08  Jim Meyering  <meyering@redhat.com>
55153         build: don't try to run autoheader if we don't use it
55154         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
55155         is not used in configure.ac.
55157 2009-09-08  Eric Blake  <ebb9@byu.net>
55159         euidaccess: fix compilation error
55160         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
55162         rawmemchr: relax license
55163         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
55164         okay.
55165         Reported by Jim Meyering.
55167         mkfifoat: new module
55168         * modules/mkfifoat: New file.
55169         * lib/mkfifoat.c: Likewise.
55170         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
55171         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
55172         * modules/sys_stat (Makefile.am): Use them.
55173         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
55174         * MODULES.html.sh (File system functions): Mention module.
55175         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
55176         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
55177         * modules/mkfifoat-tests: New test.
55178         * tests/test-mkfifoat.c: Likewise.
55180         strchrnul: relax license
55181         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
55182         okay.
55183         Reported by Jim Meyering.
55185 2009-09-08  Eric Blake  <ebb9@byu.net>
55187         fstatat: fix compilation on Solaris
55188         * lib/fstatat.c (includes): Add fcntl.h.
55189         Reported by Pádraig Brady.
55191 2009-09-07  Eric Blake  <ebb9@byu.net>
55193         rename: modernize replacement
55194         * modules/rename (Depends-on): Add stdio.
55195         (configure.ac): Declare witness.
55196         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
55197         stdio take care of replacement.
55198         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
55199         * modules/stdio (Makefile.am): Substitute them.
55200         * lib/stdio.in.h (rename): Declare replacement.
55201         * lib/rename.c (includes): Allow cross-compilation to non-windows
55202         machines.
55203         * doc/posix-functions/rename.texi (rename): Improve
55204         documentation.
55206         stdio: sort witness names
55207         * modules/stdio (Makefile.am): Sort replacements.
55208         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
55209         * lib/stdio.in.h: Likewise.
55211         getcwd: minor cleanups
55212         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
55213         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
55215         openat: provide more convenience names
55216         * modules/faccessat (configure.ac): Add C witness.
55217         * lib/unistd.in.h (readlinkat): Fix typo.
55218         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
55219         convenience wrappers.
55220         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
55221         wrappers in syntax checks.
55223 2009-09-06  Eric Blake  <ebb9@byu.net>
55225         doc: fix comments in recent patches
55226         * lib/faccessat.c: Mention correct function.
55227         * lib/fchmodat.c: Likewise.
55228         * lib/fchownat.c: Likewise.
55229         * lib/symlinkat.c: Likewise.
55230         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
55231         constants.
55233         faccessat, symlinkat: continue cleanup of previous patch
55234         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
55235         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
55236         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
55237         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
55238         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
55239         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
55240         set.
55242 2009-09-06  Bruno Haible  <bruno@clisp.org>
55244         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
55245         (fstatat): Declare if GNULIB_FSTATAT is set.
55246         (mkdirat): Declare if GNULIB_MKDIRAT is set.
55247         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
55248         (unlinkat): Declare if GNULIB_UNLINKAT is set.
55249         * modules/fcntl-h (Files): Remove m4/openat.m4.
55250         * modules/sys_stat (Files): Remove m4/openat.m4.
55251         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
55252         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
55253         * modules/unistd (Files): Remove m4/openat.m4.
55254         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
55255         GNULIB_OPENAT.
55256         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
55257         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
55258         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
55259         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
55260         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
55261         gl_OPENAT_DEFAULTS.
55262         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
55263         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
55264         Don't require gl_OPENAT_DEFAULTS.
55265         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
55266         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
55267         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
55268         (gl_OPENAT_DEFAULTS): Remove macro.
55270 2009-09-06  Bruno Haible  <bruno@clisp.org>
55272         * modules/openat (configure.ac): Remove unneeded witness.
55274 2009-09-06  Bruno Haible  <bruno@clisp.org>
55276         Set errno to ENOSYS when a function is entirely unsupported.
55277         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
55278         EOPNOTSUPP.
55279         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
55280         * modules/chown (Depends-on): Remove errno.
55282 2009-09-06  Bruno Haible  <bruno@clisp.org>
55284         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
55286 2009-09-06  Bruno Haible  <bruno@clisp.org>
55288         * lib/sys_stat.in.h: Fix preprocessor command indentation.
55290 2009-09-06  Ben Pfaff  <blp@gnu.org>
55291             Bruno Haible  <bruno@clisp.org>
55293         Work around a glibc bug in strtok_r.
55294         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
55295         Undefine if UNDEFINE_STRTOK_R is set.
55296         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
55297         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55298         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
55299         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
55300         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
55301         UNDEFINE_STRTOK_R.
55302         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
55304 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
55306         exclude: minor fix
55307         * lib/exclude.c: Include wctype.h
55309 2009-09-06  Akim Demaille  <demaille@gostai.com>
55311         bootstrap: improve error message
55312         * build-aux/bootstrap (find_tool): Upon failure, report the list
55313         of candidates.
55314         Honor the initial value of the envvar.
55316 2009-09-05  Eric Blake  <ebb9@byu.net>
55318         symlinkat: new module
55319         * modules/symlinkat: New file.
55320         * lib/symlinkat.c: Likewise.
55321         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
55322         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
55323         * modules/unistd (Makefile.am): Use them.
55324         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
55325         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
55326         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
55327         * MODULES.html.sh (File system functions): Mention module.
55328         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
55329         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
55330         * modules/symlinkat-tests: New test.
55331         * tests/test-symlinkat.c: Likewise.
55333         test-openat-safer: add more checks
55334         * tests/test-openat-safer.c (main): Check more code paths.
55336 2009-09-05  Jim Meyering  <meyering@redhat.com>
55338         syntax-check: detect unnecessary inclusion of openat.h
55339         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
55341 2009-09-05  Bruno Haible  <bruno@clisp.org>
55343         Support towlower, towupper.
55344         * doc/posix-functions/towlower.texi: Mention module wctype.
55345         * doc/posix-functions/towupper.texi: Likewise.
55346         * lib/wctype.in.h (towlower, towupper): New functions.
55347         * tests/test-wctype.c: Include stdio.h, stdlib.h.
55348         (ASSERT): New macro.
55349         (e): New variable.
55350         (main): Test also towlower, towupper. Test WEOF argument.
55351         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
55353 2009-09-05  Bruno Haible  <bruno@clisp.org>
55355         Fix conversion behaviour when the input is invalid.
55356         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
55357         mark occurring in first pass of indirect conversion.
55358         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
55359         input.
55360         Found by clang's static analyzer.
55362 2009-09-05  Bruno Haible  <bruno@clisp.org>
55364         * tests/test-striconveh.c (main): Test indirect conversion on platforms
55365         where direct conversion is possible.
55367 2009-09-04  Eric Blake  <ebb9@byu.net>
55369         openat: fail with ENOENT on empty name
55370         * lib/openat-proc.c (openat_proc_name): Special-case the empty
55371         buffer.
55373         link-follow: fix logic bug in prior patch
55374         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
55375         reversed sense of yes and no in prior patch.  Avoid confusing
55376         compilation failure with desired semantics.
55378         link-follow: accommodate mingw and cross-compilation
55379         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
55380         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
55381         cross-compilation results to -1, to make linkat easier to
55382         implement when cross-compiling.  Trivially support mingw.
55383         * modules/link-follow (configure.ac): Call new name.
55384         * NEWS: Mention this.
55386 2009-09-03  Eric Blake  <ebb9@byu.net>
55388         faccessat: compile replacement
55389         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
55390         needed.
55392         fts: fix compilation error
55393         * lib/fts.c (includes): Re-add "openat.h", for
55394         openat_needs_fchdir.
55396         faccessat: new module
55397         * modules/faccessat: New file.
55398         * lib/faccessat.c: Likewise.
55399         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
55400         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
55401         * modules/unistd (Makefile.am): Use it.
55402         * lib/unistd.in.h (faccessat): Declare it.
55403         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
55404         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
55405         * MODULES.html.sh (File system functions): Mention it.
55406         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
55407         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
55409         euidaccess: prefer POSIX over non-standard implementation
55410         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
55411         * lib/euidaccess.c (euidaccess): Use it if available.
55413         openat: make template easier to use
55414         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
55415         AT_FUNC_F2 to be undefined.
55416         (VALIDATE_FLAG): New macro; use it to reject bad flags.
55417         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
55418         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
55419         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
55420         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
55421         Likewise.
55422         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
55423         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
55424         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
55425         Likewise.
55427         openat: declare in POSIX headers
55428         * NEWS: Mention this.
55429         * modules/openat (configure.ac): Declare witnesses.
55430         (Depends-on): Add fcntl-h, sys_stat, unistd.
55431         (Include): Mention correct headers.
55432         * modules/fcntl-h (Depends-on): Add link-warning.
55433         (Files): Add openat.m4.
55434         (Makefile.am): Substitute witnesses.
55435         * modules/sys_stat (Files, Makefile.am): Likewise.
55436         * modules/unistd (Files, Makefile.am): Likewise.
55437         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
55438         (gl_OPENAT_DEFAULTS): New macro.
55439         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
55440         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
55441         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
55442         (SYS_STAT_H): Remove unused variable.
55443         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
55444         * lib/fcntl--.h (includes): Remove unneeded header.
55445         * lib/openat-safer.c (includes): Likewise.
55446         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
55447         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
55448         appropriate headers.
55449         (__OPENAT_PREFIX): Delete.
55450         * lib/fcntl.in.h (openat): Provide declaration.
55451         (AT_FDCWD): Fix Solaris bug.
55452         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
55453         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
55454         * lib/fchmodat.c (includes):  Adjust to find declaration.
55455         * lib/fchownat.c (includes): Likewise.
55456         * lib/mkdirat.c (includes): Likewise.
55457         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
55458         still visible.
55460 2009-09-02  Eric Blake  <ebb9@byu.net>
55462         errno: use consistently
55463         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
55464         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
55465         * lib/canonicalize.c (ELOOP): Likewise.
55466         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
55467         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
55468         * lib/lchown.c (EOPNOTSUPP): Likewise.
55469         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
55470         * lib/savewd.c (ESTALE): Likewise.
55471         * lib/settime.c (ENOSYS): Likewise.
55472         * lib/utimens.c (ENOSYS): Likewise.
55473         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
55474         * lib/chdir-safer.c (ELOOP): Likewise.
55475         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
55476         * modules/c-stack (Depends-on): Add errno.
55477         * modules/canonicalize (Depends-on): Likewise.
55478         * modules/chdir-safer (Depends-on): Likewise.
55479         * modules/fdopendir (Depends-on): Likewise.
55480         * modules/inet_ntop (Depends-on): Likewise.
55481         * modules/inet_pton (Depends-on): Likewise.
55482         * modules/lchown (Depends-on): Likewise.
55483         * modules/openat (Depends-on): Likewise.
55484         * modules/savewd (Depends-on): Likewise.
55485         * modules/settime (Depends-on): Likewise.
55486         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
55488         fts: avoid leaking fds
55489         * modules/fts (Depends-on): Add cloexec.
55490         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
55491         flag.
55493         fts: make directory fds more robust
55494         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
55495         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
55497         backupfile, chdir-long, fts, savedir: make safer
55498         * lib/backupfile.c (includes): Use "dirent--.h", since
55499         numbered_backup can write to stderr during readdir.
55500         * lib/savedir.c (includes): Likewise.
55501         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
55502         emulation can write to stderr on failure.
55503         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
55504         * lib/getcwd.c: Document why opendir_safer is unused.
55505         * lib/glob.c: Likewise.
55506         * lib/scandir.c: Likewise.
55507         * lib/openat-proc.c: Likewise, for open_safer.
55508         * modules/backupfile (Depends-on): Add dirent-safer.
55509         * modules/savedir (Depends-on): Likewise.
55510         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
55511         * modules/chdir-long (Depends-on): Add openat-safer.
55513         openat-safer: new module
55514         * modules/openat-safer: New file.
55515         * lib/openat-safer.c: Likewise.
55516         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
55517         * lib/fcntl-safer.h (openat_safer): Declare.
55518         * lib/fcntl--.h (openat): Override.
55519         * MODULES.html.sh (File descriptor based I/O): Mention it.
55520         * lib/openat.h: Add double-inclusion guards.
55521         * lib/openat.c (includes): Only include "fcntl-safer.h", not
55522         "fcntl--.h", so we can implement openat.
55523         * modules/openat-safer-tests: New test.
55524         * tests/test-openat-safer.c: New file.
55526         dirent-safer: new module
55527         * modules/dirent-safer: New file.
55528         * lib/dirent--.h: Likewise.
55529         * lib/dirent-safer.h: Likewise.
55530         * lib/opendir-safer.c: Likewise.
55531         * m4/dirent-safer.m4: Likewise.
55532         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
55533         * modules/dirent-safer-tests: New test.
55534         * tests/test-dirent-safer.c: New file.
55535         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
55537         fdopendir: optimize on mingw
55538         * lib/unistd.in.h (_gl_directory_name): New prototype.
55539         * lib/fchdir.c (_gl_directory_name): Implement it.
55540         (fchdir): Use it to simplify implementation.
55541         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
55542         fchdir, when available, to avoid calling [f]chdir().
55544         fdopendir: split into its own module
55545         * lib/openat.c (fdopendir): Move...
55546         * lib/fdopendir.c: ...into new file.
55547         * modules/fdopendir: New module.
55548         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
55549         * modules/openat (Depends-on): Add fdopendir.
55550         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
55551         fdopendir here.
55552         * modules/savedir (Depends-on): Only need fdopendir, not full
55553         openat.
55554         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
55555         * lib/openat.h (fdopendir): Drop prototype.
55556         * lib/dirent.in.h (fdopendir): Provide prototype.
55557         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
55558         * modules/dirent (Makefile.am): Substitute them.
55559         * MODULES.html.sh (File system functions): Mention it.
55560         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
55561         * modules/fdopendir-tests: New file.
55562         * tests/test-fdopendir.c: Likewise.
55564         fchdir: use more consistent macro convention
55565         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
55566         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
55567         REPLACE_FCHDIR, rather than relying on config.h macros.
55568         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
55569         inside a single make-time REPLACE_FCHDIR block, rather than using
55570         the config.h FCHDIR_REPLACEMENT.
55571         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
55572         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
55573         Manage fstat replacement.
55574         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
55575         REPLACE_FCHDIR.
55576         * modules/sys_stat (Files): Add m4/unistd_h.m4.
55577         (Makefile.am): Substitute REPLACE_FCHDIR.
55578         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
55579         FCHDIR_REPLACEMENT.
55580         * lib/dup-safer.c (dup_safer): Likewise.
55581         * lib/dup2.c (rpl_dup2): Likewise.
55582         * lib/dup3.c (rpl_dup3): Likewise.
55583         * lib/open.c (rpl_open): Likewise.
55585         fchdir: simplify error handling, and support dup3
55586         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
55587         stdbool, malloc-posix, realloc-posix.
55588         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
55589         (ensure_dirs_slot): Return false on allocation failure.
55590         (rpl_dup2): Delete.
55591         (_gl_register_dup): New function.
55592         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
55593         (_gl_register_fd): Close fd on allocation failure.
55594         * lib/fcntl.in.h (_gl_register_fd): Update signature.
55595         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
55596         prototype.
55597         (rpl_dup2_fchdir): Delete prototype.
55598         * lib/open.c (open): Update caller.
55599         * lib/dup2.c (dup2): Track fchdir metadata.
55600         * lib/dup3.c (dup3): Likewise.
55601         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
55602         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
55604 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55606         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
55607         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
55608         don't pass arguments to AC_OUTPUT.
55610 2009-09-02  Bruno Haible  <bruno@clisp.org>
55612         * modules/mkdtemp (License): Relicense under LGPLv2+.
55613         Reported by Paolo Bonzini.
55615 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55617         Replace uses of obsolete autoconf macros in Jim's modules.
55618         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
55619         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
55620         can evoke a warning from autoconf when run with -Wobsolete
55621         enabled.  They were declared obsolete for good reasons (see
55622         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
55623         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
55624         should not continue using the deprecated macros.
55625         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
55626         obsolete Autoconf macros with modern counterparts.
55627         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
55628         * m4/dos.m4 (gl_AC_DOS): Likewise.
55629         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
55630         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
55631         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
55632         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
55633         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
55634         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
55635         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
55636         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
55637         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
55638         Likewise.
55639         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
55640         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
55641         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
55642         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
55643         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
55644         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
55646 2009-09-01  Eric Blake  <ebb9@byu.net>
55648         fchdir: fix off-by-one bug in previous patch
55649         * lib/fchdir.c (rpl_fstat): Use correct bounds.
55650         (_gl_unregister_fd): Delete useless if.
55652 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
55654         maint.mk: sort the list of syntax-check rules
55655         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
55656         easier to get a sense of progress when the rules are run sequentially
55657         and take a long time.
55659 2009-09-01  Simon Josefsson  <simon@josefsson.org>
55661         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
55662         * modules/netinet_in: Likewise.
55663         * modules/sys_file: Likewise.
55664         * modules/sys_ioctl: Likewise.
55665         * modules/sys_select: Likewise.
55666         * modules/sys_socket: Likewise.
55667         * modules/sys_stat: Likewise.
55668         * modules/sys_time: Likewise.
55669         * modules/sys_times: Likewise.
55670         * modules/sys_utsname: Likewise.
55671         * modules/sys_wait: Likewise.
55673 2009-09-01  Jim Meyering  <meyering@redhat.com>
55675         fts: help ensure that return values are not ignored
55676         * lib/fts_.h (__GNUC_PREREQ): Define.
55677         (__attribute_warn_unused_result__): Define.
55678         (fts_children, fts_close, fts_open, fts_read): Declare with
55679         __attribute_warn_unused_result__.
55681         fts: fts_close now fails also when closing a dir file descriptor fails
55682         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
55683         and propagate to caller, along with errno.
55685         announce-gen: correct formatting in --help output
55686         * build-aux/announce-gen (usage): Move the one-line description in
55687         --help output "up", to where it belongs, just after Usage:.
55689 2009-08-31  Eric Blake  <ebb9@byu.net>
55691         fchdir: port to mingw
55692         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
55693         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
55694         opened, then use a substitute.
55695         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
55696         replacement.
55697         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
55698         (_gl_register_fd): No need to check stat if open already filters
55699         all directories.
55700         (fchdir): Fix error condition to match POSIX.
55701         * modules/fchdir (Depends-on): Add sys_stat.
55702         * doc/posix-functions/open.texi (open): Document the limitation.
55703         * modules/fchdir-tests: New file.
55704         * tests/test-fchdir.c: Likewise.
55706         canonicalize: allow cross-testing from cygwin to mingw
55707         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
55708         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
55709         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
55710         Likewise.
55711         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
55712         target does not support symlinks.
55713         * tests/test-canonicalize-lgpl.sh: Likewise.
55715         chown: avoid compilation warning on mingw
55716         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
55717         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
55718         mingw.
55719         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
55720         * modules/chown (Depends-on): Add errno.
55722 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
55724         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
55725         command.
55727 2009-08-31  Jim Meyering  <meyering@redhat.com>
55729         canonicalize: remove useless initialization
55730         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
55731         initialization of local, "end".
55733 2009-08-30  Bruno Haible  <bruno@clisp.org>
55735         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
55736         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
55737         ENOSYS.
55739 2009-08-30  Bruno Haible  <bruno@clisp.org>
55741         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
55742         /usr/xpg4/bin/tr when it exists.
55743         * tests/test-pipe-filter-gi1.sh: Likewise.
55745 2009-08-30  Bruno Haible  <bruno@clisp.org>
55747         Work around deficient /usr/bin/id program on Solaris.
55748         * tests/test-file-has-acl.sh (ID): New variable.
55749         * tests/test-set-mode-acl.sh (ID): Likewise.
55750         * tests/test-copy-acl.sh (ID): Likewise.
55751         * tests/test-copy-file.sh (ID): Likewise.
55753 2009-08-30  Bruno Haible  <bruno@clisp.org>
55755         New module 'xstriconveh'.
55756         * lib/xstriconveh.h: New file.
55757         * lib/xstriconveh.c: New file.
55758         * modules/xstriconveh: New file.
55760 2009-08-30  Bruno Haible  <bruno@clisp.org>
55762         Make it easier to use mem_cd_iconveh.
55763         * lib/striconveh.h (iconveh_t): New type.
55764         (iconveh_open, iconveh_close): New declarations.
55765         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
55766         with a single 'const iconveh_t *' argument.
55767         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
55768         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
55769         with a single 'const iconveh_t *' argument.
55770         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
55771         * tests/test-striconveh.c (main): Update.
55772         * NEWS: Mention the change.
55774 2009-08-30  Bruno Haible  <bruno@clisp.org>
55776         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
55777         problem.
55779 2009-08-30  Bruno Haible  <bruno@clisp.org>
55781         Work around iconv_open problem on Solaris.
55782         * lib/iconv_open-solaris.gperf: New file.
55783         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
55784         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
55785         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
55786         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
55787         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
55788         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
55790 2009-08-29  Jim Meyering  <meyering@redhat.com>
55792         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
55793         * top/maint.mk (cvs-check): Remove target; it was just an alias
55794         to the better-named vc-diff-check.
55795         (maintainer-distcheck): Remove rule.  It was used only from
55796         the (alpha/beta/major) target, and all of its commands but one
55797         were coreutils-specific.
55798         (vc-dist): Remove rule.
55799         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
55800         Run vc-diff-check, not vc-dist.
55801         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
55803 2009-08-27  Bruno Haible  <bruno@clisp.org>
55805         * tests/test-bitrotate.c (main): Remove test that uses a shift count
55806         of 0.
55808 2009-08-27  Bruno Haible  <bruno@clisp.org>
55810         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
55811         compilers.
55812         * doc/func.texi: Document the SunPRO C bug.
55814 2009-08-27  Bruno Haible  <bruno@clisp.org>
55816         Fix link error on Solaris.
55817         * tests/test-parse-duration.c (xstrdup): Remove function.
55819 2009-08-26  Pádraig Brady  <P@draigbrady.com>
55821         ignore-value: handle pointer types, too
55822         * lib/ignore-value.h (__attribute__): Remove definition.
55823         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
55824         of a more concise and more-often effective "(void) i" statement.
55825         (ignore_ptr): New function to suppress warnings from functions that
55826         return pointers, and to make it explicit that one function doesn't
55827         handle all cases.
55829 2009-08-25  Bruno Haible  <bruno@clisp.org>
55831         dup2: work around a Linux bug.
55832         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
55833         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
55834         * doc/posix-functions/dup2.texi: Mention the Linux bug.
55835         Reported by Simon Josefsson.
55837 2009-08-25  Jim Meyering  <meyering@redhat.com>
55839         libguestfs uses gnulib
55840         * users.txt: Add libguestfs.
55842 2009-08-24  Eric Blake  <ebb9@byu.net>
55844         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
55845         * lib/pipe2.c (includes): Add binary-io.h.
55846         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
55848 2009-08-24  Bruno Haible  <bruno@clisp.org>
55850         Tolerate declared but missing accept4 syscall.
55851         * lib/accept4.c (accept4): Invoke original accept4 function first, if
55852         available.
55853         * lib/sys_socket.in.h (accept4): If the function is already present,
55854         override it.
55855         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
55856         * modules/accept4 (Makefile.am): Compile accept4.c always.
55857         Reported by Paolo Bonzini and Eric Blake.
55859 2009-08-23  Bruno Haible  <bruno@clisp.org>
55861         New module 'accept4'.
55862         * lib/sys_socket.in.h (accept4): New declaration.
55863         * lib/accept4.c: New file.
55864         * m4/accept4.m4: New file.
55865         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
55866         GNULIB_ACCEPT4, HAVE_ACCEPT4.
55867         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
55868         HAVE_ACCEPT4.
55869         * modules/accept4: New file.
55870         * doc/glibc-functions/accept4.texi: Mention the new module.
55872 2009-08-24  Jim Meyering  <meyering@redhat.com>
55874         progname: also set global program_invocation_name, when possible
55875         Before this change, a libtool-enabled program that calls glibc's
55876         error function would report the program name as
55877         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
55878         * modules/progname (configure.ac): Check for a declaration of
55879         program_invocation_name.
55880         * lib/progname.c:  Include <errno.h>.
55881         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
55882         Set program_invocation_name.
55884 2009-08-23  Bruno Haible  <bruno@clisp.org>
55886         * lib/dup3.c: Include <string.h>.
55888 2009-08-23  Bruno Haible  <bruno@clisp.org>
55890         * lib/dup3.c (dup3): Test only once whether the system actually exists.
55891         * lib/pipe2.c (pipe2): Likewise.
55892         Suggested by Eric Blake.
55894 2009-08-23  Bruno Haible  <bruno@clisp.org>
55896         Tolerate declared but missing dup3 syscall.
55897         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
55898         * lib/unistd.in.h (dup3): If the function is already present,
55899         override it.
55900         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
55901         * modules/dup3 (Makefile.am): Compile dup3.c always.
55902         Reported by Paolo Bonzini.
55904 2009-08-23  Bruno Haible  <bruno@clisp.org>
55906         Tolerate declared but missing pipe2 syscall.
55907         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
55908         available.
55909         * lib/unistd.in.h (pipe2): If the function is already present,
55910         override it.
55911         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
55912         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
55913         Reported by Paolo Bonzini.
55915 2009-08-23  Bruno Haible  <bruno@clisp.org>
55917         * lib/pipe2.c (pipe2): Move #ifs inside function.
55919 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
55921         quotearg: document limitations of quote_these_too
55922         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
55923         those limitations are created.
55924         * lib/quotearg.h (set_char_quoting): Document that digits and
55925         letters that are special after backslash are not permitted.
55926         (quotearg_char): Cross-reference set_char_quoting documentation.
55928 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
55930         quotearg: implement custom_quoting_style
55931         * lib/quotearg.c: (struct quoting_options): Add left_quote and
55932         right_quote fields.
55933         (set_custom_quoting): New public function.
55934         (quotearg_buffer_restyled): Add left_quote and right_quote
55935         arguments, handle them very much like locale quoting, and update
55936         all uses.
55937         (quotearg_n_custom): New public function.
55938         (quotearg_n_custom_mem): New public function.
55939         (quotearg_custom): New public function.
55940         (quotearg_custom_mem): New public function.
55941         * lib/quotearg.h: Prototype and document new public functions.
55942         (enum quoting_style): For escape_quoting_style and
55943         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
55944         ignored even though they're otherwise like c_quoting_style.
55945         Add custom_quoting_style member and document with comparison to
55946         clocale_quoting_style.
55947         * tests/test-quotearg.c (custom_quotes): New array.
55948         (custom_results): New array.
55949         (main): Extend to test custom quoting.
55951 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
55953         quotearg: fix right quote escaping when it's in quote_these_too
55954         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
55955         quote, be sure to prepend only one backslash.
55956         * tests/test-quotearg.c (use_quote_double_quotes): New function.
55957         (main): Test it.
55959 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
55961         quotearg-tests: test escaping of embedded locale quotes
55962         * tests/test-quotearg.c (struct result_strings): Add member for
55963         new input.
55964         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
55965         (inputs): Add new input.
55966         (results_g): Add expected results.
55967         (flag_results): Likewise.
55968         (locale_results): Likewise.
55969         (compare_strings): Check those.
55971 2009-08-23  Bruno Haible  <bruno@clisp.org>
55973         Tests for module 'dup3'.
55974         * modules/dup3-tests: New file.
55975         * tests/test-dup3.c: New file.
55977         New module 'dup3'.
55978         * lib/unistd.in.h (dup3): New declaration.
55979         * lib/dup3.c: New file.
55980         * m4/dup3.m4: New file.
55981         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
55982         HAVE_DUP3.
55983         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
55984         * modules/dup3: New file.
55985         * doc/glibc-functions/dup3.texi: Mention the new module.
55987 2009-08-23  Bruno Haible  <bruno@clisp.org>
55989         Tweak the dup2 test.
55990         * tests/test-dup2.c (main): Create the test file empty. Verify that an
55991         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
55992         the test file is still empty. Fix argument order of lseek.
55994 2009-08-23  Bruno Haible  <bruno@clisp.org>
55996         Avoid test link errors when the modules getopt-gnu, gettext are used.
55997         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
55998         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
56000 2009-08-23  Bruno Haible  <bruno@clisp.org>
56002         Fix getdtablesize() on mingw.
56003         * lib/getdtablesize.c (getdtablesize): Implement differently.
56004         * lib/unistd.in.h (getdtablesize): Improve comment.
56006 2009-08-23  Bruno Haible  <bruno@clisp.org>
56008         New module 'mkostemp'.
56009         Based on Ulrich Drepper's 2007-08-10 change in glibc.
56010         * lib/stdlib.in.h (mksotemp): New declaration.
56011         * lib/mkostemp.c: New file, from glibc with modifications.
56012         * lib/tempname.h (GT_FILE): Remove outdated comment.
56013         (gen_tempname): Add flags argument.
56014         * lib/tempname.c (__GT_BIGFILE): Remove macro.
56015         (__GT_FILE): Map to 1.
56016         (small_open, large_open): Remove macros.
56017         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
56018         * lib/mkstemp.c (mkstemp): Update.
56019         * lib/mkdtemp.c (mkdtemp): Likewise.
56020         * m4/mkostemp.m4: New file.
56021         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
56022         HAVE_MKOSTEMP.
56023         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
56024         HAVE_MKOSTEMP.
56025         * modules/mkostemp: New file, based on modules/mkstemp.
56026         * doc/glibc-functions/mkostemp.texi: Mention the new module.
56027         * NEWS: Mention the change.
56029 2009-08-23  Bruno Haible  <bruno@clisp.org>
56031         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
56032         Reported by Eric Blake.
56034 2009-08-23  Bruno Haible  <bruno@clisp.org>
56036         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
56037         Reported by Eric Blake.
56039 2009-08-23  Bruno Haible  <bruno@clisp.org>
56041         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
56042         * modules/pipe2 (Depends-on): Likewise.
56044 2009-08-23  Eric Blake  <ebb9@byu.net>
56046         fcntl-h: add O_TTY_INIT support
56047         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
56048         * tests/test-fcntl-h.c (o): Test it.
56049         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
56051         fcntl-h: rename from fcntl, in preparation for fcntl(2)
56052         * modules/fcntl: Move <fcntl.h> header replacement...
56053         * modules/fcntl-h: ...to new name, so as not to collide with
56054         like-named function.
56055         * tests/test-fcntl.c: Rename...
56056         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
56057         * modules/fcntl-tests: Rename...
56058         * modules/fcntl-h-tests: ...to this.  Update test file name.
56059         * modules/chdir-long (Depends-on): Update clients.
56060         * modules/chdir-safer (Depends-on): Likewise.
56061         * modules/fcntl-safer (Depends-on): Likewise.
56062         * modules/fts (Depends-on): Likewise.
56063         * modules/mkancesdirs (Depends-on): Likewise.
56064         * modules/mkdir-p (Depends-on): Likewise.
56065         * modules/open (Depends-on): Likewise.
56066         * modules/savewd (Depends-on): Likewise.
56067         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
56068         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
56070 2009-08-22  Bruno Haible  <bruno@clisp.org>
56072         * modules/binary-io (License): Relicense under LGPL.
56073         * modules/pipe2 (License): Likewise.
56075 2009-08-22  Bruno Haible  <bruno@clisp.org>
56077         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
56078         return value.
56079         * lib/pipe-filter-gi.c (filter_init): Likewise.
56080         Reported by Eric Blake.
56082 2009-08-22  Bruno Haible  <bruno@clisp.org>
56084         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
56085         * modules/pipe (Depends-on): Add pipe2.
56087 2009-08-22  Bruno Haible  <bruno@clisp.org>
56089         Tests for module 'pipe2'.
56090         * modules/pipe2-tests: New file.
56091         * tests/test-pipe2.c: New file.
56093         New module 'pipe2'.
56094         * lib/unistd.in.h (pipe2): New declaration.
56095         * lib/pipe2.c: New file.
56096         * m4/pipe2.m4: New file.
56097         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
56098         HAVE_PIPE2.
56099         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
56100         * modules/pipe2: New file.
56101         * doc/glibc-functions/pipe2.texi: Mention the new module.
56103 2009-08-22  Bruno Haible  <bruno@clisp.org>
56105         Reference some new glibc functions.
56106         * doc/glibc-functions/accept4.texi: New file.
56107         * doc/glibc-functions/dup3.texi: New file.
56108         * doc/glibc-functions/mkostemp.texi: New file.
56109         * doc/glibc-functions/pipe2.texi: New file.
56110         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
56111         (Glibc sys/socket.h): Refer to accept4.
56112         (Glibc unistd.h): Refer to dup3, pipe2.
56113         Reported by Eric Blake.
56115 2009-08-22  Jim Meyering  <meyering@redhat.com>
56116             Bruno Haible  <bruno@clisp.org>
56118         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
56119         This makes it so packages using automake-1.11's silent-rules option
56120         can print e.g., a single "GEN    configmake.h" line, rather than
56121         the 30+ statements that perform the job.  If you want to see the
56122         actual commands, you can still run "make V=1".
56123         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
56124         so that make output is abbreviated when those variables are defined
56125         appropriately.
56126         * modules/argz: Likewise.
56127         * modules/arpa_inet: Likewise.
56128         * modules/byteswap: Likewise.
56129         * modules/configmake: Likewise.
56130         * modules/dirent: Likewise.
56131         * modules/errno: Likewise.
56132         * modules/fcntl: Likewise.
56133         * modules/float: Likewise.
56134         * modules/fnmatch: Likewise.
56135         * modules/getopt-posix: Likewise.
56136         * modules/glob: Likewise.
56137         * modules/iconv_open: Likewise.
56138         * modules/inttypes: Likewise.
56139         * modules/localcharset: Likewise.
56140         * modules/locale: Likewise.
56141         * modules/math: Likewise.
56142         * modules/netdb: Likewise.
56143         * modules/netinet_in: Likewise.
56144         * modules/poll: Likewise.
56145         * modules/posix_spawnp-tests: Likewise.
56146         * modules/sched: Likewise.
56147         * modules/search: Likewise.
56148         * modules/selinux-h: Likewise.
56149         * modules/signal: Likewise.
56150         * modules/spawn: Likewise.
56151         * modules/stdarg: Likewise.
56152         * modules/stdbool: Likewise.
56153         * modules/stddef: Likewise.
56154         * modules/stdint: Likewise.
56155         * modules/stdio: Likewise.
56156         * modules/stdlib: Likewise.
56157         * modules/string: Likewise.
56158         * modules/strings: Likewise.
56159         * modules/sys_file: Likewise.
56160         * modules/sys_ioctl: Likewise.
56161         * modules/sys_select: Likewise.
56162         * modules/sys_socket: Likewise.
56163         * modules/sys_stat: Likewise.
56164         * modules/sys_time: Likewise.
56165         * modules/sys_times: Likewise.
56166         * modules/sys_utsname: Likewise.
56167         * modules/sys_wait: Likewise.
56168         * modules/sysexits: Likewise.
56169         * modules/time: Likewise.
56170         * modules/unistd: Likewise.
56171         * modules/wchar: Likewise.
56172         * modules/wctype: Likewise.
56174 2009-08-22  Jim Meyering  <meyering@redhat.com>
56176         announce-gen: detect write failure
56177         * build-aux/announce-gen: Add Coda at end.
56178         Remove equivalent-but-more-verbose block at top.
56180 2009-08-19  Akim Demaille  <demaille@gostai.com>
56182         bootstrap: --help to stdout.
56183         * bootstrap (usage): Don't send --help to stderr.
56184         Use a here doc instead of a long string.
56186 2009-08-21  Eric Blake  <ebb9@byu.net>
56188         test-popen-safer: split from test-popen
56189         * tests/test-popen.c (main): Move...
56190         * tests/test-popen.h: ...into new file.
56191         * tests/test-popen-safer2.c: New file.
56192         * modules/popen-tests (Files): Add test-popen.h.
56193         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
56194         Suggested by Bruno Haible.
56196         test-fcntl-safer: split from test-open
56197         * tests/test-open.c (main): Move...
56198         * tests/test-open.h: ...into new file.
56199         * tests/test-fcntl-safer.c: New file.
56200         * modules/open-tests (Files): Add test-open.h.
56201         * modules/fcntl-safer-tests: New file.
56202         Suggested by Bruno Haible.
56204         test-fopen-safer: split from test-fopen
56205         * tests/test-fopen.c (main): Move...
56206         * tests/test-fopen.h: ...into new file.
56207         * tests/test-fopen-safer.c: New file.
56208         * modules/fopen-tests (Files): Add test-fopen.h.
56209         * modules/fopen-safer-tests: New file.
56210         Suggested by Bruno Haible.
56212 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
56214         popen-safer: test O_CLOEXEC at run-time.
56215         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
56217 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
56219         fcntl: move more flags to the header
56220         * lib/cloexec.c: Do not define FD_CLOEXEC here.
56221         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
56222         * lib/fcntl.in.h: Do both things here.
56224 2009-08-21  Jim Meyering  <meyering@redhat.com>
56226         consistently remove $@-t before redirecting to it
56227         * modules/argz: Remove $@-t and $@ before redirecting to the former.
56228         * modules/alloca-opt: Likewise.
56229         * modules/byteswap: Likewise.
56230         * modules/fnmatch: Likewise.
56231         * modules/getopt-posix: Likewise.
56232         * modules/glob: Likewise.
56233         * modules/poll: Likewise.
56234         * modules/posix_spawnp-tests: Likewise.
56235         * modules/sys_socket: Likewise.
56236         * modules/sysexits: Likewise.
56238 2009-08-21  Eric Blake  <ebb9@byu.net>
56240         popen: simplify access to original popen
56241         * lib/popen.c (rpl_popen): No need to worry about popen being a
56242         macro.
56243         Reported by Bruno Haible.
56245 2009-08-20  Eric Blake  <ebb9@byu.net>
56247         build: avoid some compiler warnings
56248         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
56249         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
56250         type.
56251         (new_exclude_segment, excluded_file_pattern_p)
56252         (excluded_file_name_p): Reduce scope.
56253         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
56254         old-style declaration.
56256 2009-08-20  Simon Josefsson  <simon@josefsson.org>
56258         * tests/test-exclude1.sh: Handle Windows EOL.
56259         * tests/test-exclude2.sh: Likewise.
56260         * tests/test-exclude3.sh: Likewise.
56261         * tests/test-exclude4.sh: Likewise.
56262         * tests/test-exclude5.sh: Likewise.
56263         * tests/test-exclude6.sh: Likewise.
56264         * tests/test-exclude7.sh: Likewise.
56266 2009-08-19  Akim Demaille  <demaille@gostai.com>
56268         bootstrap: find sha1sum when named gsha1sum.
56269         * bootstrap (find_tool): New.
56270         ($SHA1SUM): New.
56271         Use it.
56273 2009-08-20  Jim Meyering  <meyering@redhat.com>
56275         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
56276         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
56277         expression that converts "." in a file name to "\." in the resulting
56278         regexp.  Start with a dummy statement, so that prior shell variable
56279         definitions are expanded portably.  Reported by Simon Josefsson.
56281 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
56283         Fix polling for writeability of a screen buffer.
56284         * lib/poll.c: Distinguish input and screen buffers for the
56285         Win32 implementation.
56286         * lib/select.c: Likewise.
56288 2009-08-19  Eric Blake  <ebb9@byu.net>
56290         popen-safer: prevent popen from clobbering std descriptors
56291         * modules/popen-safer: New file.
56292         * lib/popen-safer.c: Likewise.
56293         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
56294         * lib/stdio--.h (popen): Provide override.
56295         * lib/stdio-safer.h (popen_safer): Provide declaration.
56296         * tests/test-popen.c (includes): Partially test this.
56297         * modules/popen-safer-tests: New file, for more tests.
56298         * tests/test-popen-safer.c: Likewise.
56299         * MODULES.html.sh (file stream based Input/Output): Mention it.
56301         tests: test some of the *-safer modules
56302         * modules/fopen-safer (Depends-on): Add fopen.
56303         * modules/fcntl-safer (Depends-on): Add fcntl.
56304         * modules/stdlib-safer (Depends-on): Add stdlib.
56305         (configure.ac): Set indicator.
56306         * modules/unistd-safer (configure.ac): Likewise.
56307         * modules/tmpfile-safer (configure.ac): Likewise.
56308         (Depends-on): Add tmpfile.
56309         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
56310         active.
56311         * tests/test-fopen.c (includes): Test safer versions when they are
56312         in use.
56313         * tests/test-open.c (includes): Likewise.
56315         popen: fix cygwin 1.5 bug when stdin closed
56316         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
56317         * modules/popen: New file.
56318         * modules/popen-tests: Likewise.
56319         * tests/test-popen.c: Likewise.
56320         * m4/popen.m4: Likewise.
56321         * lib/popen.c: Likewise.
56322         * lib/stdio.in.h (popen): New declaration.
56323         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
56324         * modules/stdio (Makefile.am): Likewise.
56325         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
56327 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
56329         maint.mk: give full control over update-copyright exclusions
56330         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
56331         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
56332         (update-copyright): Don't force inclusion of top-level
56333         ChangeLog.  Don't force exclusion of all COPYING files, but make
56334         them the default exclusion instead.
56336 2009-08-16  Bruno Haible  <bruno@clisp.org>
56338         Fix test failures on Solaris 10.
56339         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
56340         tests when Solaris iconv() is used.
56341         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
56342         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
56343         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
56344         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
56345         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
56347 2009-08-16  Bruno Haible  <bruno@clisp.org>
56349         Fix test failures on Solaris 10.
56350         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
56351         'tr' program and pass it as first argument.
56352         * tests/test-pipe-filter-gi1.sh: Likewise.
56353         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
56354         program as first argument.
56355         * tests/test-pipe-filter-gi1.c (main): Likewise.
56357 2009-08-16  Eric Blake  <ebb9@byu.net>
56359         fpurge: fix previous commits
56360         * modules/fpurge (Makefile.am): Make replacement conditional,
56361         partially reverting 2007-04-29 change; missed in previous
56362         attempt.
56363         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
56364         is missing.
56366 2009-08-16  Bruno Haible  <bruno@clisp.org>
56368         Clarify fpurge's effect on the file position.
56369         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
56370         * tests/test-fpurge.c (main): Make a second pass for checking the file
56371         position.
56373 2009-08-16  Bruno Haible  <bruno@clisp.org>
56375         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
56376         declaration of fpurge is missing.
56377         * tests/test-fpurge.c (main): Check that the file has not more contents
56378         than expected. Close the file before removing it.
56380 2009-08-15  Eric Blake  <ebb9@byu.net>
56382         fpurge: don't wrap working cygwin implementation
56383         * lib/fpurge.c (fpurge): Fix comment typo.
56384         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
56385         1.7 to avoid replacement.
56386         * tests/test-fpurge.c (main): Enhance test.
56388 2009-08-15  Eric Blake  <ebb9@byu.net>
56389         and Jim Meyering  <meyering@redhat.com>
56391         test-update-copyright: skip if perl is insufficient
56392         * tests/test-update-copyright.sh: Failure to run maintainer tool
56393         should not cause testsuite failure on cygwin 1.5.
56395 2009-08-14  Eric Blake  <ebb9@byu.net>
56397         doc: mention more functions added in cygwin 1.7.0
56398         * doc/posix-headers/limits.texi (limits.h): Update for recent
56399         cygwin additions.
56400         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
56401         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
56402         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
56403         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
56404         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
56406 2009-08-14  Eric Blake  <ebb9@byu.net>
56408         maint.mk: simplify update-copyright rule
56409         * top/maint.mk (update-copyright-local): Delete, and document how
56410         to do it in cfg.mk instead.
56411         (update-copyright-exclude-regexp): Delete, and document how to do
56412         it in .x-update-copyright instead.
56413         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
56414         exclude ChangeLog.
56416 2009-08-14  Bruno Haible  <bruno@clisp.org>
56418         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
56420 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
56422         maint.mk: support update-copyright-env
56423         * top/maint.mk (update-copyright-env): Define place-holder.
56424         (update-copyright): Expand $(update-copyright-env) before
56425         invoking update-copyright.
56427 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
56429         update-copyright: implement forced reformatting
56430         * build-aux/update-copyright: Implement and document
56431         UPDATE_COPYRIGHT_FORCE.
56432         * tests/test-update-copyright.sh: Test it.
56434 2009-08-14  Eric Blake  <ebb9@byu.net>
56435         and Bruno Haible  <bruno@clisp.org>
56437         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
56438         * tests/test-locale.c: Revert previous patch related to NULL.
56439         * tests/test-stdio.c: Likewise.
56440         * tests/test-stdlib.c: Likewise.
56441         * tests/test-string.c: Likewise.
56442         * tests/test-unistd.c: Likewise.
56443         * modules/time-tests (Depends-on): Add verify.
56444         * modules/wchar-tests (Depends-on): Likewise.
56445         * tests/test-time.c: Test for NULL compliance.
56446         * tests/test-wchar.c: Likewise.
56447         * modules/locale (Depends-on): Add stddef.
56448         * modules/stdio (Depends-on): Likewise.
56449         * modules/stdlib (Depends-on): Likewise.
56450         * modules/string (Depends-on): Likewise.
56451         * modules/time (Depends-on): Likewise.
56452         * modules/unistd (Depends-on): Likewise.
56453         * modules/wchar (Depends-on): Likewise.
56454         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
56455         * lib/stdlib.in.h (includes): Likewise.
56456         * lib/string.in.h (includes): Likewise.
56457         * lib/time.in.h (includes): Likewise.
56458         * lib/unistd.in.h (includes): Likewise.
56459         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
56460         replaced.
56461         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
56462         * m4/stddef_h.m4: New file.
56463         * modules/stddef: Likewise.
56464         * lib/stddef.in.h: Likewise.
56465         * modules/stddef-tests: Likewise.
56466         * tests/test-stddef.c: Likewise.
56467         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
56468         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
56469         * doc/posix-headers/locale.texi (locale.h): Likewise.
56470         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
56471         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
56472         * doc/posix-headers/string.texi (string.h): Likewise.
56473         * doc/posix-headers/time.texi (time.h): Likewise.
56474         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
56475         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
56477 2009-08-14  Eric Blake  <ebb9@byu.net>
56479         doc: improve git diff of texinfo files
56480         * .gitattributes: Add rule for *.texi files, with hint on how to
56481         use it.
56482         Copied from m4, and based on a report by Bruno Haible.
56484 2009-08-14  Bruno Haible  <bruno@clisp.org>
56486         Disable multithread support by default on Cygwin 1.5.x for real.
56487         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
56489 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
56491         update-copyright: much ado about intervals
56492         * build-aux/update-copyright: Implement and document
56493         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
56494         of copyright year intervals.
56495         Also, document UPDATE_COPYRIGHT_YEAR.
56496         * tests/test-update-copyright.sh: Test it.
56498         update-copyright: convert 2-digit to 4-digit years
56499         * build-aux/update-copyright: Implement and document.
56500         * tests/test-update-copyright.sh: Update.
56502 2009-08-14  Jim Meyering  <meyering@redhat.com>
56504         test-exclude: avoid coreutils "make check" failure
56505         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
56506         just as in test-argmatch.c.
56508 2009-08-13  Eric Blake  <ebb9@byu.net>
56510         test-dup2: fix bad assumption
56511         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
56512         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
56514         test-version-etc: fix CRLF portability issue
56515         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
56516         recognize \r.
56517         * tests/test-argp-version-etc-1.sh: Likewise.
56519         getopt: update client modules
56520         * modules/argp (Depends-on): Use getopt-gnu.
56521         * modules/git-merge-changelog (Depends-on): Likewise.
56522         * modules/long-options (Depends-on): Likewise.
56523         * modules/xstrtol (Depends-on): Likewise.
56525 2009-08-13  Simon Josefsson  <simon@josefsson.org>
56527         * tests/test-version-etc.sh: Don't fail on different
56528         project/version.  Don't fail on CRLF differences.  Rewrite to use
56529         multiple -e instead of multiple sed forks, suggested by Eric Blake
56530         <ebb9@byu.net>.
56531         * tests/test-argp-version-etc-1.sh: Likewise.
56533 2009-08-13  Simon Josefsson  <simon@josefsson.org>
56535         * tests/test-version-etc.sh: Don't fail on different
56536         project/version.
56538 2009-08-12  Bruno Haible  <bruno@clisp.org>
56540         Tests for modules 'getopt-posix', 'getopt-gnu'.
56541         * modules/getopt-posix-tests: New file.
56542         * tests/test-getopt.c: New file.
56543         * tests/test-getopt.h: New file.
56544         * tests/test-getopt_long.h: New file.
56546         New modules 'getopt-posix', 'getopt-gnu'.
56547         * modules/getopt-gnu: New file, renamed from modules/getopt.
56548         * modules/getopt-posix: New file.
56549         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
56550         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
56551         (gl_GETOPT): Remove macro.
56552         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
56553         Disable the test against BSD systems that declare optreset. Test
56554         against mingw bug. Test against lack of support of optional arguments
56555         on many platforms.
56556         * doc/glibc-headers/getopt.texi: Update module name and list of
56557         relevant platforms.
56558         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
56559         'getopt-gnu' and more portability problems.
56560         * NEWS: Mention the changes.
56562 2009-08-12  Bruno Haible  <bruno@clisp.org>
56564         Ensure that optarg etc. get declared by <unistd.h>.
56565         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
56566         AC_USE_SYSTEM_EXTENSIONS.
56567         * modules/getopt (Depends-on): Add 'extensions'.
56569 2009-08-12  Bruno Haible  <bruno@clisp.org>
56571         Avoid test link errors.
56572         * modules/pipe-filter-ii-tests (Makefile.am): Define
56573         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
56574         * modules/pipe-filter-gi-tests (Makefile.am): Define
56575         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
56576         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
56578 2009-08-12  Bruno Haible  <bruno@clisp.org>
56580         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
56581         gl_GETOPT_SUBSTITUTE before.
56582         (gl_GETOPT): Use it.
56583         * m4/argp.m4 (gl_ARGP): Update.
56584         Reported by Sergey Poznyakoff.
56586         * m4/getopt.m4: Reorder macros.
56587         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
56588         (gl_GETOPT_SUBSTITUTE): Remove macro.
56590 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56592         Minor improvement in gitlog-to-changelog
56594         * build-aux/gitlog-to-changelog: New option `--format' makes
56595         output format string configurable.
56597 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56599         Optimize exclude: use hash tables for non-wildcard patterns.
56601         * lib/exclude.c: Include hash.h and mbuiter.h
56602         (struct exclude_pattern, exclude_segment): New data types.
56603         (struct exclude): Rewrite.
56604         (fnmatch_pattern_has_wildcards): New function.
56605         (new_exclude_segment, free_exclude_segment): New functions.
56606         (excluded_file_pattern_p, excluded_file_name_p): New functions.
56607         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
56608         * lib/exclude.h (is_fnmatch_pattern): New prototype.
56609         * modules/exclude: Depend on hash and mbuiter.
56611         * modules/exclude-tests: New file.
56612         * tests/test-exclude.c: New file.
56613         * tests/test-exclude1.sh: New file.
56614         * tests/test-exclude2.sh: New file.
56615         * tests/test-exclude3.sh: New file.
56616         * tests/test-exclude4.sh: New file.
56617         * tests/test-exclude5.sh: New file.
56618         * tests/test-exclude6.sh: New file.
56619         * tests/test-exclude7.sh: New file.
56621 2009-08-12  Bruno Haible  <bruno@clisp.org>
56623         Ensure that getopt() gets declared by <unistd.h>.
56624         * lib/unistd.in.h: Conditionally include getopt.h.
56625         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
56626         Set GNULIB_UNISTD_H_GETOPT.
56627         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56628         GNULIB_UNISTD_H_GETOPT.
56629         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
56631 2009-08-12  Bruno Haible  <bruno@clisp.org>
56633         Clarify logic.
56634         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
56635         gl_replace_getopt instead of GETOPT_H.
56637 2009-08-12  Bruno Haible  <bruno@clisp.org>
56639         * m4/getopt.m4: Add comments.
56641 2009-08-12  Bruno Haible  <bruno@clisp.org>
56643         Disable multithread support by default on Cygwin 1.5.x.
56644         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
56645         set gl_use_threads=no if not specified otherwise.
56647 2009-08-11  Bruno Haible  <bruno@clisp.org>
56649         Avoid compilation error on NetBSD 5.0.
56650         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
56651         * tests/test-stdio.c: Likewise.
56652         * tests/test-stdlib.c: Likewise.
56653         * tests/test-string.c: Likewise.
56654         * tests/test-unistd.c: Likewise.
56655         Reported by Greg Troxel <gdt@ir.bbn.com>
56656         at <https://savannah.gnu.org/support/?106973>.
56658 2009-08-11  Bruno Haible  <bruno@clisp.org>
56660         * modules/dup2-tests (Depends-on): Remove close.
56662         Undo 2009-07-19 commit.
56663         * modules/acl-tests (Depends-on): Remove close.
56664         * modules/binary-io-tests (Depends-on): Likewise.
56665         * modules/closein-tests (Depends-on): Likewise.
56666         * modules/flock-tests (Depends-on): Likewise.
56667         * modules/fsync-tests (Depends-on): Likewise.
56668         * modules/lseek-tests (Depends-on): Likewise.
56669         * modules/pipe-tests (Depends-on): Likewise.
56670         * modules/posix_spawn-tests (Depends-on): Likewise.
56671         * modules/posix_spawnp-tests (Depends-on): Likewise.
56672         * modules/stat-time-tests (Depends-on): Likewise.
56673         * modules/yesno-tests (Depends-on): Likewise.
56675 2009-08-10  Bruno Haible  <bruno@clisp.org>
56677         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
56679 2009-08-10  Bruno Haible  <bruno@clisp.org>
56681         Fix a gcc warning.
56682         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
56684 2009-08-10  Bruno Haible  <bruno@clisp.org>
56686         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
56687         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
56688         not only the first time.
56689         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
56690         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
56691         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
56692         is 1, not only the the first time.
56694 2009-08-10  Bruno Haible  <bruno@clisp.org>
56696         Make it possible to use module 'gethostname' without module 'close'.
56697         * lib/unistd.in.h (close): Evoke a link error only if
56698         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
56699         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56700         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
56701         * modules/unistd (Makefile.am): Substitute
56702         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
56703         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
56704         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
56705         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
56706         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
56707         * modules/sys_ioctl (Makefile.am): Substitute
56708         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
56709         * modules/socket (configure.ac): On native Windows, set
56710         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
56711         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
56712         Reported by Sam Steingold <sds@gnu.org>.
56714 2009-08-10  Bruno Haible  <bruno@clisp.org>
56716         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
56717         * modules/ioctl (configure.ac): Likewise.
56719 2009-08-10  Bruno Haible  <bruno@clisp.org>
56721         Avoid collision between gnulib wrapper and libintl wrapper.
56722         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
56723         already defined in intl/printf.c.
56724         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
56725         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
56727 2009-08-09  Bruno Haible  <bruno@clisp.org>
56729         Make <sys/select.h> really self-contained, also on Solaris 10.
56730         * lib/sys_select.in.h: Include <string.h>.
56731         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
56732         Solaris 10 problem.
56733         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
56734         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
56735         Reported by Jim Meyering.
56737 2009-08-09  Bruno Haible  <bruno@clisp.org>
56739         Avoid warnings from 'aclocal' that are due to a use of macro name
56740         AM_XGETTEXT_OPTION that is not defined in automake.
56741         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
56742         automake.
56743         * modules/error (configure.ac): Likewise.
56744         * modules/propername (configure.ac): Likewise.
56745         * modules/vasprintf (configure.ac): Likewise.
56746         * modules/verror (configure.ac): Likewise.
56747         * modules/xprintf (configure.ac): Likewise.
56748         * modules/xvasprintf (configure.ac): Likewise.
56750 2009-08-08  Bruno Haible  <bruno@clisp.org>
56752         Avoid compilation error in C++ mode.
56753         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
56754         Reported by Sam Steingold <sds@gnu.org>.
56756 2009-08-08  Bruno Haible  <bruno@clisp.org>
56758         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
56759         for the various Unix platforms.
56760         * doc/posix-headers/limits.texi: Update platforms list regarding
56761         HOST_NAME_MAX.
56762         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
56764 2009-08-07  Jim Meyering  <meyering@redhat.com>
56766         selinux-at: fix typo in a comment
56767         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
56768         Spotted by Paolo Bonzini.
56770         selinux-at: remove redundant m4 code, add documentation
56771         * modules/selinux-at (configure.ac): Remove redundant code.
56772         LIB_SELINUX is already set via the dependent module, selinux-h.
56773         (Include): Add quotes around selinux-at.h.
56774         * lib/selinux-at.h: Add documentation.
56775         Reported by Bruno Haible in
56776         http://marc.info/?l=gnulib-bug&m=124958988300749
56778 2009-08-07  Bruno Haible  <bruno@clisp.org>
56780         Avoid link error on MacOS X 10.3 and 10.4.
56781         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
56782         on non-ELF systems.
56783         * lib/argp-pv.c (argp_program_version): Likewise.
56784         Reported by Simon Josefsson.
56786 2009-08-07  Simon Josefsson  <simon@josefsson.org>
56788         * tests/test-version-etc.sh: Use $EXEEXT.
56790 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
56792         update-copyright: update documentation to point to maint.mk
56793         * build-aux/update-copyright: Here.
56795 2009-08-06  Jim Meyering  <meyering@redhat.com>
56797         maint.mk: support update-copyright-local
56798         * top/maint.mk (update-copyright-local): Define place-holder.
56799         (update-copyright): Depend on $(update-copyright-local).
56801 2009-08-06  Jim Meyering  <meyering@redhat.com>
56803         selinux-at: new module
56804         Initially written for coreutils, this module will soon be
56805         used by findutils, too.
56806         * MODULES.html.sh [Misc]: Add selinux-at.
56807         * lib/selinux-at.h: New file, from coreutils.
56808         * lib/selinux-at.c: Likewise.
56809         * modules/selinux-at: Likewise.
56810         (License): Change from LGPL to GPL, since it depends
56811         on the GPL'd openat module.
56813         doc: update README
56814         * README: Remove references to cogito.
56815         Remove cvs-repo-updating instructions from 2007.
56816         Don't imply that CVS is better if you have limited disk space.
56818 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
56820         update-copyright: support C-style comments
56821         * build-aux/update-copyright: Implement and document.
56822         * tests/test-update-copyright.sh: Test.
56824 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
56826         update-copyright: support omitted "(C)"
56827         * build-aux/update-copyright: Implement and document.  Also,
56828         allow variable whitespace before "(C)".
56829         * tests/test-update-copyright.sh: Test.
56831 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
56833         update-copyright: don't trip on non-FSF copyright statements
56834         * build-aux/update-copyright: Fix so that the first correctly
56835         formatted FSF copyright statement is recognized no matter what
56836         appears before it.  Update documentation.
56837         * tests/test-update-copyright.sh: Test that.
56839 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
56841         update-copyright: clean up code a little
56842         * build-aux/update-copyright: Append "_re" to the name of any
56843         variable holding a regular expression.
56844         Replace "old" and "new" with "stmt" in variable names.
56845         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
56846         handled correctly.
56847         Format code more consistently.
56849 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
56851         update-copyright-tests: improve portability
56852         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
56853         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
56855 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
56857         update-copyright: support @copyright{} and &copy;
56858         * build-aux/update-copyright: Implement and document.
56859         * tests/test-update-copyright.sh: Test.
56861 2009-08-04  Jim Meyering  <meyering@redhat.com>
56863         update-copyright-tests: correctly test EOL=\r\n handling
56864         * tests/test-update-copyright.sh: Put \r at the end of some lines
56865         for the dos-eol tests.  Based on a patch by Joel E. Denny.
56867         maint.mk: make update-copyright exclusion list more configurable
56868         * top/maint.mk (update-copyright): Default to excluding COPYING,
56869         but allow an override, in case someone does want to update that file.
56871         maint.mk: don't update copyright date in COPYING
56872         * top/maint.mk (update-copyright): Exclude COPYING.
56874         maint.mk: add a copyright-updating rule
56875         * top/maint.mk (update-copyright): New rule.
56876         Derived from coreutils/Makefile.am.
56878         update-copyright: rename some variables
56879         * build-aux/update-copyright: Rename a few variables for clarity.
56880         Tweak syntax.  List Joel E. Denny as coauthor.
56882 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
56884         update-copyright: fix bug for 2-digit last year and add tests
56885         * build-aux/update-copyright: Fix bug.
56886         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
56887         specified.
56888         * modules/update-copyright-tests: New
56889         * tests/test-update-copyright.sh: New.
56891 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
56893         update-copyright: handle leading tabs in line prefix
56894         * build-aux/update-copyright: Count leading tabs as 8 spaces
56895         when computing margin.  This helps with the formatting of
56896         ChangeLogs, for example.
56897         Fix documentation a little.
56899 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
56901         update-copyright: support EOL=\r\n
56902         * build-aux/update-copyright: Implement that.
56904 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
56906         update-copyright: automatically format copyright statements
56907         * build-aux/update-copyright: Implement that.
56908         Also, be a little more predictable and safer by always failing
56909         when the full copyright format is not perfectly recognized as an
56910         unbroken whole.  Discussed at
56911         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
56912         Rewrite documentation.
56914 2009-08-03  Bruno Haible  <bruno@clisp.org>
56916         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
56918 2009-08-02  Bruno Haible  <bruno@clisp.org>
56920         Tests for module 'uname'.
56921         * modules/uname-tests: New file.
56922         * tests/test-uname.c: New file.
56924         New module 'uname'.
56925         * lib/uname.c: New file.
56926         * m4/uname.m4: New file.
56927         * modules/uname: New file.
56928         * doc/posix-functions/uname.texi: Mention the new module.
56930 2009-08-02  Bruno Haible  <bruno@clisp.org>
56932         Tests for module 'sys_utsname'.
56933         * modules/sys_utsname-tests: New file.
56934         * tests/test-sys_utsname.c: New file.
56936         New module 'sys_utsname'.
56937         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
56938         * m4/sys_utsname_h.m4: New file.
56939         * modules/sys_utsname: New file.
56940         * doc/posix-headers/sys_utsname.texi: Mention the new module.
56942 2009-08-02  Bruno Haible  <bruno@clisp.org>
56944         Implicitly initialize the sockets library.
56945         * lib/gethostname.c: Include sockets.h.
56946         (rpl_gethostname): Invoke gl_sockets_startup.
56947         * lib/socket.c: Include sockets.h.
56948         (rpl_socket): Invoke gl_sockets_startup.
56949         * modules/gethostname (Depends-on): Add sockets.
56950         * modules/socket (Depends-on): Likewise.
56951         * tests/test-poll.c: Don't include sockets.h.
56952         (main): Don't invoke gl_sockets_startup.
56953         * tests/test-select.c: Don't include sockets.h.
56954         (main): Don't invoke gl_sockets_startup.
56956 2009-08-02  Bruno Haible  <bruno@clisp.org>
56958         Allow multiple calls to gl_sockets_startup.
56959         * lib/sockets.c (initialized_sockets_version): New variable.
56960         (gl_sockets_startup): Do nothing if already called for this or a higher
56961         version.
56962         (gl_sockets_cleanup): Reset initialized_sockets_version.
56964 2009-08-03  Simon Josefsson  <simon@josefsson.org>
56966         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
56967         different project/version.
56969 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
56970             Bruno Haible  <bruno@clisp.org>
56972         Tests for module 'pipe-filter-gi'.
56973         * modules/pipe-filter-gi-tests: New file.
56974         * tests/test-pipe-filter-gi1.sh: New file.
56975         * tests/test-pipe-filter-gi1.c: New file.
56976         * tests/test-pipe-filter-gi2.sh: New file.
56977         * tests/test-pipe-filter-gi2-main.c: New file.
56978         * tests/test-pipe-filter-gi2-child.c: New file.
56980         New module 'pipe-filter-gi'.
56981         * lib/pipe-filter-gi.c: New file.
56982         * modules/pipe-filter-gi: New file.
56984 2009-08-02  Bruno Haible  <bruno@clisp.org>
56985             Paolo Bonzini  <bonzini@gnu.org>
56987         Tests for module 'pipe-filter-ii'.
56988         * modules/pipe-filter-ii-tests: New file.
56989         * tests/test-pipe-filter-ii1.sh: New file.
56990         * tests/test-pipe-filter-ii1.c: New file.
56991         * tests/test-pipe-filter-ii2.sh: New file.
56992         * tests/test-pipe-filter-ii2-main.c: New file.
56993         * tests/test-pipe-filter-ii2-child.c: New file.
56995         New module 'pipe-filter-ii'.
56996         * lib/pipe-filter.h: New file.
56997         * lib/pipe-filter-ii.c: New file.
56998         * lib/pipe-filter-aux.h: New file.
56999         * modules/pipe-filter-ii: New file.
57001 2009-08-02  Simon Josefsson  <simon@josefsson.org>
57003         * lib/gc-libgcrypt.c: Change copyright to FSF.
57004         * lib/gc-gnulib.c: Likewise.
57006 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
57008         * lib/gethostname.c: Include limits.h.
57010 2009-08-02  Simon Josefsson  <simon@josefsson.org>
57011             Bruno Haible  <bruno@clisp.org>
57013         Ensure HOST_NAME_MAX as part of the gethostname module.
57014         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
57015         define also HOST_NAME_MAX.
57016         * tests/test-gethostname.c: Include <limits.h>.
57017         (main): Check also HOST_NAME_MAX.
57018         * doc/posix-headers/limits.texi: Document the mingw problem.
57020 2009-08-02  Bruno Haible  <bruno@clisp.org>
57022         * lib/gethostname.c (gethostname): Fix handling of large len argument.
57023         Add comments.
57025 2009-03-31  Simon Josefsson  <simon@josefsson.org>
57027         * lib/gethostname.c: Add Windows wrapper.
57028         * m4/gethostname.m4: Look for gethostname in -lws2_32.
57029         * modules/gethostname: Depend on sys_socket & errno, for also
57030         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
57031         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
57033 2009-07-31  Jim Meyering  <meyering@redhat.com>
57035         getloadavg: fix symbol name in comment
57036         * lib/getloadavg.c: Correct a typo I introduced when adding
57037         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
57038         Matt Kraai spotted the problem.
57040 2009-07-29  Matt Kraai  <mkraai@beckman.com>
57042         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
57043         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
57044         code also if ! defined N_NAME_POINTER.
57045         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
57046         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
57047         but the n_name member is a 12-byte array.
57049 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
57051         update-copyright: generalize comment handling
57052         * build-aux/update-copyright: Handle copyright statements
57053         within more comment styles.
57054         Document usage.
57055         Report any file with an external copyright holder or parse failure.
57057 2009-07-29  Jim Meyering  <meyering@redhat.com>
57059         mktime: correct setting of REPLACE_MKTIME
57060         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
57062         update-copyright: new module
57063         * modules/update-copyright: New file.
57064         * build-aux/update-copyright: New file.
57065         * MODULES.html.sh (maint+release support): Add update-copyright.
57067 2009-07-27  Bruno Haible  <bruno@clisp.org>
57069         Fix compilation error when <ctime> is used and mktime is replaced.
57070         * lib/time.in.h (mktime): New declaration.
57071         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
57072         REPLACE_MKTIME instead of defining mktime in config.h.
57073         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
57074         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
57075         Reported by Ross McFarland <rwmcfa1@neces.com>.
57077 2009-07-27  Bruno Haible  <bruno@clisp.org>
57079         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
57080         Reported by Matt Kraai <mkraai@beckman.com>.
57082 2009-07-25  Jim Meyering  <meyering@redhat.com>
57084         maint.mk: avoid warnings about missing files
57085         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
57086         diagnostic when .prev-version does not exist.
57087         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
57088         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
57089         nonexistent cfg.mk.
57090         Suggestions from Simon Josefsson.
57092 2009-07-25  Bruno Haible  <bruno@clisp.org>
57094         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
57095         defined as macros. Needed on QNX 6.4.1.
57096         Reported by Matt Kraai <mkraai@beckman.com>.
57098 2009-07-23  Jim Meyering  <meyering@redhat.com>
57100         maint.mk: invoke "make dist" with a working value of XZ_OPT
57101         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
57103 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
57105         Make fseeko.c compile on QNX.
57106         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
57108 2009-07-22  Peter Simons  <simons@cryp.to>
57110         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
57111         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
57112         * lib/md4.h: Likewise.
57113         * lib/md5.h: Likewise.
57114         * lib/sha1.h: Likewise.
57115         * lib/sha256.h: Likewise.
57116         * lib/sha512.h: Likewise.
57118         tests-sha1: don't assign literal string to 'char *' variable
57119         * tests/test-sha1.c (main): Declare locals with "const" to match
57120         attributes of the right hand side.
57122 2009-07-21  Eric Blake  <ebb9@byu.net>
57124         dup2: fix more mingw problems
57125         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
57126         fd to itself.
57127         * doc/posix-functions/dup2.texi (dup2): Document the bug.
57128         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
57129         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
57130         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
57131         care of mingw bugs.
57133 2009-07-21  Jim Meyering  <meyering@redhat.com>
57135         vc-list-files: avoid failure when /bin/sh is dash
57136         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
57137         On some Debian based systems, /bin/sh is a symlink to dash, and running
57138         this command would omit the "/" following each 'tests' prefix:
57139           dash -x build-aux/vc-list-files -C . tests
57140         That is because bash and dash work differently:
57141           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
57142           bash ok
57143           dash odd
57145 2009-07-21  Eric Blake  <ebb9@byu.net>
57147         dup2-tests: test previous patch
57148         * modules/dup2-tests: New file.
57149         * tests/test-dup2.c: Likewise.
57150         * tests/test-open.c (main): Avoid unspecified behavior.
57151         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
57152         test.
57154         dup2: work around mingw and cygwin 1.5 bug
57155         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
57156         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
57157         * modules/unistd (Makefile.am): Substitute it.
57158         * lib/unistd.in.h (dup2): Declare the replacement.
57159         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
57160         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
57161         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
57162         * modules/execute (Depends-on): Add dup2.
57163         * modules/fseterr (Depends-on): Likewise.
57164         * modules/pipe (Depends-on): Likewise.
57165         * modules/posix_spawn-internal (Depends-on): Likewise.
57167 2009-07-21  Bruno Haible  <bruno@clisp.org>
57169         * modules/.gitattributes: New file.
57171 2009-07-20  Bruno Haible  <bruno@clisp.org>
57173         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
57174         (main): Use it.
57176 2009-07-20  Eric Blake  <ebb9@byu.net>
57178         test-pipe: make a bit more robust.
57179         * tests/test-pipe.c (myerr): Allow error messages regardless of
57180         what we do to stderr.
57181         (test_pipe): Rearrange to avoid deadlock.
57182         (child_main): Try a larger read, to ensure we avoided deadlock.
57183         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
57184         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
57185         if misused.
57187 2009-07-19  Jim Meyering  <meyering@redhat.com>
57189         fts: avoid false-positive cycle-detection
57190         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
57191         for each new command line argument.
57193 2009-07-19  Bruno Haible  <bruno@clisp.org>
57195         Fix build error on mingw with the modules sys_select and unistd.
57196         * modules/acl-tests (Depends-on): Add close.
57197         * modules/binary-io-tests (Depends-on): Likewise.
57198         * modules/closein-tests (Depends-on): Likewise.
57199         * modules/flock-tests (Depends-on): Likewise.
57200         * modules/fsync-tests (Depends-on): Likewise.
57201         * modules/lseek-tests (Depends-on): Likewise.
57202         * modules/pipe-tests (Depends-on): Likewise.
57203         * modules/posix_spawn-tests (Depends-on): Likewise.
57204         * modules/posix_spawnp-tests (Depends-on): Likewise.
57205         * modules/stat-time-tests (Depends-on): Likewise.
57206         * modules/yesno-tests (Depends-on): Likewise.
57208 2009-07-19  Bruno Haible  <bruno@clisp.org>
57210         Unify conditionals.
57211         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
57212         macros, not at the compiler macros.
57213         * lib/pipe.c: Likewise.
57214         * lib/execute.c: Likewise.
57215         * lib/spawni.c: Likewise.
57217 2009-07-19  Bruno Haible  <bruno@clisp.org>
57219         Fix handling of closed stdin/stdout/stderr on mingw.
57220         * lib/w32spawn.h: Include unistd.h.
57221         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
57222         file descriptor with O_NOINHERIT flag.
57223         (fd_safer_noinherit): New function, based on fd-safer.c.
57224         (dup_safer_noinherit): New function, based on dup-safer.c.
57225         (undup_safer_noinherit): New function.
57226         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
57227         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
57228         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
57229         instead of fd_safer.
57230         * tests/test-pipe.c: Include <windows.h>.
57231         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
57232         result.
57234         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
57235         from main.
57236         (test_pipe): Pass an extra argument for disambiguation.
57237         (main): Invoke parent_main or child_main.
57239         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
57240         consistently.
57242 2009-07-18  Eric Blake  <ebb9@byu.net>
57244         test-pipe: fix mingw build
57245         * tests/test-pipe.c (main): Avoid fcntl on mingw.
57247 2009-07-18  Bruno Haible  <bruno@clisp.org>
57249         * modules/pipe-tests (Makefile.am): Fix typo.
57251 2009-07-18  Eric Blake  <ebb9@byu.net>
57253         error: fix mingw build
57254         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
57255         Reported by Bruno Haible.
57257         error: avoid undefined use of stdout
57258         * lib/error.c (error, error_at_line): Check that fd 1 is open
57259         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
57260         is handling faults and the close_stdout module wants to report the
57261         detection of closed stdout as an error.
57263 2009-07-17  Eric Blake  <ebb9@byu.net>
57265         pipe: be robust in face of closed fds
57266         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
57267         should cause child to misbehave.
57268         * modules/pipe-tests: New module.
57269         * tests/test-pipe.c: New file.
57270         * tests/test-pipe.sh: New file.
57271         Reported by Akim Demaille.
57273 2009-07-14  Bruno Haible  <bruno@clisp.org>
57275         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
57276         Reported by anonymous kc.
57278 2009-07-07  Jim Meyering  <meyering@redhat.com>
57280         maint.mk: don't look for translatable strings in *.m4 or *.mk
57281         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
57282         when searching for translatable strings.
57284 2009-07-05  Jim Meyering  <meyering@redhat.com>
57286         remove superfluous parentheses in STREQ definition
57287         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
57288         * lib/getugroups.c (STREQ): Likewise.
57289         * lib/fnmatch.c (STREQ): Likewise.
57290         Spotted by Bruno Haible.
57292 2009-07-04  Jim Meyering  <meyering@redhat.com>
57294         argv-iter: new module
57295         * MODULES.html.sh: Add argv-iter.
57296         * lib/argv-iter.c, lib/argv-iter.h: New files.
57297         * modules/argv-iter: New file.
57298         * modules/argv-iter-tests: New file.
57299         * tests/test-argv-iter.c: Test it.
57301 2009-07-04  Bruno Haible  <bruno@clisp.org>
57303         Fix assertion.
57304         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
57305         contains more exact copies of a given entry than file2, leave the extra
57306         copies unpaired rather than aborting.
57307         Reported by Eric Blake.
57309 2009-07-02  Bruno Haible  <bruno@clisp.org>
57311         Speedup git-merge-changelog for git cherry-pick.
57312         * lib/git-merge-changelog.c (struct entries_mapping): New type.
57313         (entries_mapping_get): New function, extracted from compute_mapping.
57314         (entries_mapping_reverse_get): New function.
57315         (compute_mapping): Add a 'full' argument. Return the result in a
57316         'struct entries_mapping'.
57317         (main): Update. Access the mappings through entries_mapping_get.
57318         Reported by Eric Blake.
57320 2009-07-02  Bruno Haible  <bruno@clisp.org>
57322         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
57323         best_i.
57325 2009-07-02  Bruno Haible  <bruno@clisp.org>
57327         Speed up approximate search for matching ChangeLog entries.
57328         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
57329         argument. Call fstrcmp_bounded instead of fstrcmp.
57330         (compute_mapping, try_split_merged_entry, main): Update callers.
57332 2009-07-02  Bruno Haible  <bruno@clisp.org>
57334         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
57336 2009-06-30  Bruno Haible  <bruno@clisp.org>
57338         Reduce the number of uc_is_cased calls.
57339         * lib/unicase.h (casing_suffix_context_t): Add
57340         'first_char_except_ignorable' field.
57341         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
57342         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
57343         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
57344         Update initializer.
57345         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
57346         case-ignorable characters.
57347         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
57348         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
57349         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
57350         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
57351         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
57353 2009-06-30  Bruno Haible  <bruno@clisp.org>
57355         Tests for module 'unicase/ignorable'.
57356         * modules/unicase/ignorable-tests: New file.
57357         * tests/unicase/test-ignorable.c: New file, generated by
57358         gen-uni-tables.
57360         Tests for module 'unicase/cased'.
57361         * modules/unicase/cased-tests: New file.
57362         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
57363         * tests/unicase/test-predicate-part1.h: New file, derived from
57364         tests/unictype/test-predicate-part1.h.
57365         * tests/unicase/test-predicate-part2.h: New file, same as
57366         tests/unictype/test-predicate-part2.h.
57368         Fix evaluation of "Before C" condition of FINAL_SIGMA.
57369         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
57370         (output_casing_properties): New function.
57371         (main): Call it.
57372         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
57373         * lib/unicase/cased.c: Include unictype/bitmap.h.
57374         (uc_is_cased): Define through a bitmap lookup.
57375         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
57376         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
57377         (uc_is_case_ignorable): Define through a bitmap lookup.
57378         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
57379         lib/unictype/bitmap.h.
57380         (Depends-on): Add inline. Clean up.
57381         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
57382         lib/unictype/bitmap.h.
57383         (Depends-on): Add inline. Clean up.
57384         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
57385         recognition.
57386         * tests/unicase/test-u16-tolower.c (main): Likewise.
57387         * tests/unicase/test-u32-tolower.c (main): Likewise.
57389 2009-06-30  Bruno Haible  <bruno@clisp.org>
57391         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
57392         * lib/unicase/u16-casemap.c: Likewise.
57393         * lib/unicase/u32-casemap.c: Likewise.
57395 2009-06-29  Bruno Haible  <bruno@clisp.org>
57397         Define u32_casefold as a wrapper around u32_ct_casefold.
57398         * lib/unicase/u32-casefold.c: Update.
57399         * modules/unicase/u32-casefold (Depends-on): Add
57400         unicase/u32-ct-casefold, unicase/empty-prefix-context,
57401         unicase/empty-suffix-context. Clean up.
57403         Define u16_casefold as a wrapper around u16_ct_casefold.
57404         * lib/unicase/u16-casefold.c: Update.
57405         * modules/unicase/u16-casefold (Depends-on): Add
57406         unicase/u16-ct-casefold, unicase/empty-prefix-context,
57407         unicase/empty-suffix-context. Clean up.
57409         Define u8_casefold as a wrapper around u8_ct_casefold.
57410         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
57411         * lib/unicase/u8-casefold.c: Update.
57412         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
57413         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
57415         Define u32_totitle as a wrapper around u32_ct_totitle.
57416         * lib/unicase/u32-totitle.c: Update.
57417         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
57418         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
57420         Define u16_totitle as a wrapper around u16_ct_totitle.
57421         * lib/unicase/u16-totitle.c: Update.
57422         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
57423         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
57425         Define u8_totitle as a wrapper around u8_ct_totitle.
57426         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
57427         functions.
57428         (FUNC): Delegate to U_CT_TOTITLE.
57429         * lib/unicase/u8-totitle.c: Update.
57430         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
57431         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
57433         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
57434         invocation.
57435         * modules/unicase/u32-tolower (Depends-on): Add
57436         unicase/empty-prefix-context, unicase/empty-suffix-context.
57438         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
57439         invocation.
57440         * modules/unicase/u16-tolower (Depends-on): Add
57441         unicase/empty-prefix-context, unicase/empty-suffix-context.
57443         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
57444         * modules/unicase/u8-tolower (Depends-on): Add
57445         unicase/empty-prefix-context, unicase/empty-suffix-context.
57447         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
57448         invocation.
57449         * modules/unicase/u32-toupper (Depends-on): Add
57450         unicase/empty-prefix-context, unicase/empty-suffix-context.
57452         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
57453         invocation.
57454         * modules/unicase/u16-toupper (Depends-on): Add
57455         unicase/empty-prefix-context, unicase/empty-suffix-context.
57457         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
57458         * modules/unicase/u8-toupper (Depends-on): Add
57459         unicase/empty-prefix-context, unicase/empty-suffix-context.
57461         New module 'unicase/u32-ct-casefold'.
57462         * lib/unicase/u32-ct-casefold.c: New file.
57463         * modules/unicase/u32-ct-casefold: New file.
57465         New module 'unicase/u16-ct-casefold'.
57466         * lib/unicase/u16-ct-casefold.c: New file.
57467         * modules/unicase/u16-ct-casefold: New file.
57469         New module 'unicase/u8-ct-casefold'.
57470         * lib/unicase/u8-ct-casefold.c: New file.
57471         * lib/unicase/u-ct-casefold.h: New file, derived from
57472         lib/unicase/u-casefold.h.
57473         * modules/unicase/u8-ct-casefold: New file.
57475         New module 'unicase/u32-ct-totitle'.
57476         * lib/unicase/u32-ct-totitle.c: New file.
57477         * modules/unicase/u32-ct-totitle: New file.
57479         New module 'unicase/u16-ct-totitle'.
57480         * lib/unicase/u16-ct-totitle.c: New file.
57481         * modules/unicase/u16-ct-totitle: New file.
57483         New module 'unicase/u8-ct-totitle'.
57484         * lib/unicase/u8-ct-totitle.c: New file.
57485         * lib/unicase/u-ct-totitle.h: New file, derived from
57486         lib/unicase/u-totitle.h.
57487         * modules/unicase/u8-ct-totitle: New file.
57489         New module 'unicase/u32-ct-tolower'.
57490         * lib/unicase/u32-ct-tolower.c: New file.
57491         * modules/unicase/u32-ct-tolower: New file.
57493         New module 'unicase/u16-ct-tolower'.
57494         * lib/unicase/u16-ct-tolower.c: New file.
57495         * modules/unicase/u16-ct-tolower: New file.
57497         New module 'unicase/u8-ct-tolower'.
57498         * lib/unicase/u8-ct-tolower.c: New file.
57499         * modules/unicase/u8-ct-tolower: New file.
57501         New module 'unicase/u32-ct-toupper'.
57502         * lib/unicase/u32-ct-toupper.c: New file.
57503         * modules/unicase/u32-ct-toupper: New file.
57505         New module 'unicase/u16-ct-toupper'.
57506         * lib/unicase/u16-ct-toupper.c: New file.
57507         * modules/unicase/u16-ct-toupper: New file.
57509         New module 'unicase/u8-ct-toupper'.
57510         * lib/unicase/u8-ct-toupper.c: New file.
57511         * modules/unicase/u8-ct-toupper: New file.
57513         Add context arguments to u*_casemap functions.
57514         * lib/unicase/unicasemap.h: Include unicase.h.
57515         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
57516         suffix_context arguments.
57517         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
57518         functions.
57519         (FUNC): Add prefix_context and suffix_context arguments. Use
57520         uc_is_cased and uc_is_case_ignorable.
57521         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
57522         * lib/unicase/u16-casemap.c: Likewise.
57523         * lib/unicase/u32-casemap.c: Likewise.
57524         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
57525         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
57526         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
57527         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
57528         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
57529         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
57531         New module 'unicase/u32-suffix-context'.
57532         * lib/unicase/u32-suffix-context.c: New file.
57533         * modules/unicase/u32-suffix-context: New file.
57535         New module 'unicase/u16-suffix-context'.
57536         * lib/unicase/u16-suffix-context.c: New file.
57537         * modules/unicase/u16-suffix-context: New file.
57539         New module 'unicase/u8-suffix-context'.
57540         * lib/unicase/u8-suffix-context.c: New file.
57541         * lib/unicase/u-suffix-context.h: New file.
57542         * modules/unicase/u8-suffix-context: New file.
57544         New module 'unicase/empty-suffix-context'.
57545         * lib/unicase/empty-suffix-context.c: New file.
57546         * modules/unicase/empty-suffix-context: New file.
57548         New module 'unicase/u32-prefix-context'.
57549         * lib/unicase/u32-prefix-context.c: New file.
57550         * modules/unicase/u32-prefix-context: New file.
57552         New module 'unicase/u16-prefix-context'.
57553         * lib/unicase/u16-prefix-context.c: New file.
57554         * modules/unicase/u16-prefix-context: New file.
57556         New module 'unicase/u8-prefix-context'.
57557         * lib/unicase/u8-prefix-context.c: New file.
57558         * lib/unicase/u-prefix-context.h: New file.
57559         * lib/unicase/context.h: New file.
57560         * modules/unicase/u8-prefix-context: New file.
57562         New module 'unicase/empty-prefix-context'.
57563         * lib/unicase/empty-prefix-context.c: New file.
57564         * modules/unicase/empty-prefix-context: New file.
57566         New module 'unicase/ignorable'.
57567         * lib/unicase/ignorable.c: New file.
57568         * modules/unicase/ignorable: New file.
57570         New module 'unicase/cased'.
57571         * lib/unicase/caseprop.h: New file.
57572         * lib/unicase/cased.c: New file.
57573         * modules/unicase/cased: New file.
57575         New functions for case mapping of substrings.
57576         * lib/unicase.h (casing_prefix_context_t): New type.
57577         (unicase_empty_prefix_context): New variable.
57578         (u8_casing_prefix_context, u16_casing_prefix_context,
57579         u32_casing_prefix_context, u8_casing_prefixes_context,
57580         u16_casing_prefixes_context, u32_casing_prefixes_context): New
57581         declarations.
57582         (casing_suffix_context_t): New type.
57583         (unicase_empty_suffix_context): New variable.
57584         (u8_casing_suffix_context, u16_casing_suffix_context,
57585         u32_casing_suffix_context, u8_casing_suffixes_context,
57586         u16_casing_suffixes_context, u32_casing_suffixes_context,
57587         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
57588         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
57589         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
57590         declarations.
57592 2009-06-28  Jim Meyering  <meyering@redhat.com>
57594         boostrap: indent only with spaces
57595         * build-aux/bootstrap: Indent only with spaces, never TABs.
57597         bootstrap: split long lines
57598         * build-aux/bootstrap: Keep line length < 80.
57600         bootstrap: sync from coreutils
57601         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
57602         just as autoreconf does.  Verify a list of prerequisite
57603         package-name,version-number pairs if defined in bootstrap.conf.
57604         Refer to README-prereq, if prerequisites are not satisfied.
57606 2009-06-27  Eric Blake  <ebb9@byu.net>
57608         tests: add test for bogus NULL definition
57609         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
57610         * tests/test-stdlib.c: Likewise.
57611         * tests/test-string.c: Likewise.
57612         * tests/test-locale.c: Likewise.
57613         * tests/test-unistd.c: Likewise.
57614         * modules/stdio-tests (Depends-on): Add verify.
57615         * modules/stdlib-tests (Depends-on): Likewise.
57616         * modules/string-tests (Depends-on): Likewise.
57617         * modules/locale-tests (Depends-on): Likewise.
57618         * modules/unistd-tests (Depends-on): Likewise.
57620 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
57622         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
57623         self-explaining comment.
57624         * m4/selinux-selinux-h: Update serial.
57625         (gl_LIBSELINUX): New macro, adding a warning for missing development
57626         packages to code extracted from...
57627         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
57628         Add warning for missing development packages here, too.
57630 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
57632         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
57634 2009-06-25  Eric Blake  <ebb9@byu.net>
57636         version-etc: fix regression
57637         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
57638         gcc.
57639         (version_etc): Use it, to catch bugs with trailing NULL.
57640         * lib/version-etc.c (version_etc_arn): Delete unused argument.
57641         (version_etc_va): Fix logic bug.
57642         * modules/version-etc-tests: Add test.
57643         * tests/test-version-etc.c: New file.
57644         * tests/test-version-etc.sh: Likewise.
57646 2009-06-25  Sam Steingold  <sds@gnu.org>
57648         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
57649         mbtowc declaration.
57651 2009-06-25  Eric Blake  <ebb9@byu.net>
57653         fpurge: migrate into <stdio.h>
57654         * lib/fpurge.h: Delete...
57655         * lib/stdio.in.h (fpurge): ...and declare here, instead.
57656         * lib/fpurge.c (fpurge): Change declaring header.
57657         * modules/fpurge (Files): Drop deleted file.
57658         (Depends-on): Add stdio.
57659         (configure.ac): Set witness.
57660         * modules/stdio (Makefile.am): Support fpurge macros.
57661         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57662         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
57663         * lib/fflush.c: Update client.
57664         * tests/test-fpurge.c: Likewise.
57665         * NEWS: Mention the change.
57667 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
57669         * lib/argp-version-etc.c (program_authors): Add const
57670         qualifier.
57671         * lib/version-etc.c: Fix typos in the comments.
57672         * modules/argp-version-etc: Depends on version-etc.
57674 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
57676         argp-version-etc: new module.
57678         * lib/argp-version-etc.c: New file.
57679         * lib/argp-version-etc.h: New file.
57680         * modules/argp-version-etc: New file.
57681         * modules/argp-version-etc-tests: New file.
57682         * tests/test-argp-version-etc.c: New test.
57683         * tests/test-argp-version-etc-1.sh: New test.
57685 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
57687         Provide additional interfaces and documentation for version-etc
57688         module.
57690         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
57691         interfaces.
57692         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
57693         prototypes.
57695 2009-06-24  Bruno Haible  <bruno@clisp.org>
57697         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
57698         HAVE_LIB${NAME} macro.
57699         Reported by Sam Steingold <sds@gnu.org>.
57701 2009-06-23  Simon Josefsson  <simon@josefsson.org>
57703         * modules/hash-tests (test_hash_LDADD): Link to libintl when
57704         needed.
57706 2009-06-21  Bruno Haible  <bruno@clisp.org>
57708         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
57709         work.
57710         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
57711         together with LIB${NAME}, LTLIB${NAME}.
57712         Reported by Sam Steingold <sds@gnu.org>.
57714 2009-06-20  Jim Meyering  <meyering@redhat.com>
57716         tests: make sc_require_test_exit_idiom more generic
57717         * top/maint.mk (Exit_witness_file): New overridable variable.
57718         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
57719         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
57721 2009-06-19  Jim Meyering  <meyering@redhat.com>
57723         hash: reverse order of src/dst parameters in an internal interface
57724         * lib/hash.c (transfer_entries): Reverse order of parameters to
57725         put DST before SRC.  Adjust callers.
57727         tests: test-hash: avoid wholesale duplication
57728         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
57729         Instead, use a loop and add a single conditional.
57731         tests: test-hash: allow seed selection via a command line argument
57732         * tests/test-hash.c (get_seed): New function.
57733         (main): Use it.
57735 2009-06-19  Eric Blake  <ebb9@byu.net>
57737         hash: avoid memory leak on allocation failure
57738         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
57739         failure.  Factor repeated algorithm...
57740         (transfer_entries): ...into new helper routine.
57741         (hash_delete): React to hash_rehash return value.
57743         hash: reduce memory pressure in hash_rehash no-op case
57744         * lib/hash.c (next_prime): Avoid overflow.
57745         (hash_initialize): Factor bucket size computation...
57746         (compute_bucket_size): ...into new helper function.
57747         (hash_rehash): Use new function and open coding to reduce memory
57748         pressure, and avoid a memory leak in USE_OBSTACK code.
57749         Reported by Jim Meyering.
57751 2009-06-18  Eric Blake  <ebb9@byu.net>
57753         hash: make rotation more obvious
57754         * modules/hash (Depends-on): Add bitrotate and stdint.
57755         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
57756         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
57757         (SIZE_MAX): Rely on headers for definition.
57758         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
57759         (raw_hasher): Use rotr_sz.
57760         Suggested by Jim Meyering.
57762         hash: fix memory leak in last patch
57763         * lib/hash.c (hash_rehash): Avoid memory leak.
57765         hash: avoid no-op rehashing
57766         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
57768         hash: provide default callback functions
57769         * lib/hash.c (raw_hasher, raw_comparator): New functions.
57770         (hash_initialize): Use them as defaults.
57771         * tests/test-hash.c (main): Test this.
57773         hash: minor optimization
57774         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
57775         when possible.
57776         (hash_initialize): Document this promise.
57777         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
57778         * tests/test-hash.c (hash_compare_strings): Test this.
57780 2009-06-18  Bruno Haible  <bruno@clisp.org>
57782         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
57783         going to be replaced anyway.
57785 2009-06-18  Bruno Haible  <bruno@clisp.org>
57787         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
57788         in one place.
57789         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
57790         be replaced anyway.
57792 2009-06-18  Eric Blake  <ebb9@byu.net>
57794         hash: check for resize before insertion
57795         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
57796         threshold before insertion, so that a pathological hash_rehash
57797         that fills every bucket can still trigger another rehash.
57799 2009-06-18  Jim Meyering  <meyering@redhat.com>
57801         hash-tests: add a loop around the small tests
57802         * tests/test-hash.c (main): Repeat small tests with selected
57803         small initial table sizes.
57805 2009-06-17  Eric Blake  <ebb9@byu.net>
57807         hash: minor cleanups
57808         * lib/hash.h (hash_entry): Make opaque, by moving...
57809         * lib/hash.c (hash_entry): ...here.
57810         (hash_insert): Clarify restrictions on what can be inserted.
57811         (hash_get_next): Clarify when it is safe to remove an element
57812         during traversal.
57813         (check_tuning): Skip verification when tuning is known safe.
57814         (hash_initialize): Clarify restrictions on tuning.
57816 2009-06-17  Jim Meyering  <jim@meyering.net>
57817         and Eric Blake  <ebb9@byu.net>
57819         hash-tests: new module
57820         * modules/hash-tests: New file.
57821         * tests/test-hash.c: New file.
57823 2009-06-17  Eric Blake  <ebb9@byu.net>
57825         strstr-simple: document new module
57826         * MODULES.html.sh: Document new module.
57828         strstr, strcasestr: replace on platforms with broken memchr
57829         * modules/strstr: Split into...
57830         * modules/strstr-simple: ...new module that does not care about
57831         performance, but does care about glibc bug.
57832         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
57833         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
57834         if platform memchr is broken, per Debian bug 521737.
57835         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
57836         memchr.
57837         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
57838         * doc/posix-functions/strstr.texi (strstr): Document the fix.
57839         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
57840         * modules/mountlist (Depends-on): Add strstr-simple.
57841         * modules/gen-uni-tables (Depends-on): Likewise.
57842         * modules/argz (Depends-on): Add strstr.
57844 2009-06-17  Bruno Haible  <bruno@clisp.org>
57846         * modules/posix_spawn-internal (Depends-on): Add errno.
57848 2009-06-17  Bruno Haible  <bruno@clisp.org>
57850         Define missing ESTALE on Interix 3.5.
57851         * lib/errno.in.h (ESTALE): Assign a value if missing.
57852         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
57853         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
57854         missing.
57855         * doc/posix-headers/errno.texi: Mention the Interix bug.
57856         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
57858 2009-06-15  Eric Blake  <ebb9@byu.net>
57860         memchr, memchr2: add valgrind exception
57861         * lib/memchr.valgrind: New file.
57862         * lib/memchr2.valgrind: New file.
57863         * modules/memchr (Files): Distribute valgrind file.
57864         * modules/memchr2 (Files): Likewise.
57866         docs: memchr is no longer obsolete
57867         * MODULES.html.sh: Move memchr from obsolete to string.h section.
57868         * lib/string.in.h (memchr): Simplify logic.
57870 2009-06-14  Jim Meyering  <meyering@redhat.com>
57872         link-follow: fix the "checking..." message to not mention trailing slash
57873         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
57874         never considered trailing slashes.
57876 2009-06-14  Bruno Haible  <bruno@clisp.org>
57878         * m4/memchr.m4: Mention also the bug on IA-64.
57879         * doc/posix-functions/memchr.texi: Likewise.
57881 2009-06-12  Eric Blake  <ebb9@byu.net>
57883         memchr: detect broken x86_64 and alpha implementations
57884         * modules/memchr-tests (Depends-on): Move mmap detection...
57885         * modules/memchr (Depends-on): ...here.
57886         (configure.ac): Set indicator.
57887         * lib/string.in.h (memchr): Declare replacement.
57888         * modules/string (Makefile.am): Trigger replacement.
57889         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
57890         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
57891         bugs.
57892         * doc/posix-functions/memchr.texi (memchr): Document the bug.
57893         * modules/getpagesize (License): Relax license.
57895 2009-06-11  Bruno Haible  <bruno@clisp.org>
57897         * lib/idpriv.h: Add more references.
57899 2009-06-08  Bruno Haible  <bruno@clisp.org>
57901         Tests for module 'idpriv-droptemp'.
57902         * modules/idpriv-droptemp-tests: New file.
57903         * tests/test-idpriv-droptemp.sh: New file.
57904         * tests/test-idpriv-droptemp.su.sh: New file.
57905         * tests/test-idpriv-droptemp.c: New file.
57907         New module 'idpriv-droptemp'.
57908         * lib/idpriv-droptemp.c: New file.
57909         * modules/idpriv-droptemp: New file.
57911 2009-06-08  Bruno Haible  <bruno@clisp.org>
57913         Tests for module 'idpriv-drop'.
57914         * modules/idpriv-drop-tests: New file.
57915         * tests/test-idpriv-drop.sh: New file.
57916         * tests/test-idpriv-drop.su.sh: New file.
57917         * tests/test-idpriv-drop.c: New file.
57919         New module 'idpriv-drop'.
57920         * lib/idpriv.h: New file.
57921         * lib-idpriv-drop.c: New file.
57922         * m4/idpriv.m4: New file.
57923         * modules/idpriv-drop: New file.
57925 2009-06-08  Bruno Haible  <bruno@clisp.org>
57927         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
57928         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
57929         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
57930         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
57931         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
57932         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
57933         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
57935 2009-06-08  Eric Blake  <ebb9@byu.net>
57937         test-strstr: use memory fence, when possible
57938         * tests/test-strstr.c (main): Use memory fence, in order to be
57939         more likely to trigger Debian bug 521737.
57940         * modules/strstr-tests (Files): Pull in additional files.
57942         memchr: no longer obsolete, for wider field testing
57943         * modules/memchr (Status, Notice): Delete, this module is no
57944         longer obsolete.
57945         * modules/vasnprintf (Depends-on): Add memchr.
57947 2009-06-07  Jim Meyering  <meyering@redhat.com>
57949         hash: declare some functions with the warn_unused_result attribute
57950         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
57952 2009-06-07  Bruno Haible  <bruno@clisp.org>
57954         * tests/test-alignof.c: Don't test int64_t if it does not exist.
57955         Reported by Eric Blake.
57957 2009-06-06  Eric Blake  <ebb9@byu.net>
57959         test-alignof: fix typo with long double
57960         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
57961         compiler error.
57963 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
57965         Escape non-texinfo { and }s.
57966         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
57967         markup error.
57969 2009-06-04  Jim Meyering  <meyering@redhat.com>
57971         gitlog-to-changelog: don't infloop on an empty commit log
57972         * build-aux/gitlog-to-changelog: Warn about an empty log message.
57973         Reported by Boris Petersen <transacid@centerim.org>.
57975 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
57977         version-etc: extend for packagers
57978         Add three new configure options, intended for packagers:
57979           --with-packager="packager name"
57980           --with-packager-version="packager-specific version"
57981           --with-packager-bug-reports="packager bug reporting"
57982         An example with coreutils:
57983           $ ./configure \
57984             --with-packager=Gentoo \
57985             --with-packager-bug-report=http://bugs.gentoo.org/ \
57986             --with-packager-version="patchset 1.6"
57987           $ ./src/ls --version | head -n2
57988           ls (GNU coreutils) 7.1-dirty
57989           Packaged by Gentoo (patchset 1.6)
57990         Note that the bug reporting info via --help doesn't show up because
57991         coreutils uses its own custom emit_bug_reporting_address() implementation
57992         in src/system.h.  If it didn't, it'd look like:
57993           $ ./src/ls --help | tail -n4
57994           Report bugs to <bug-coreutils@gnu.org>.
57995           Report Gentoo bugs to <http://bugs.gentoo.org/>.
57996           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
57997           General help using GNU software: <http://www.gnu.org/gethelp/>.
57998         * lib/version-etc.c: Print new information, if provided.
57999         * m4/version-etc.m4: New file.
58000         * modules/version-etc (Files): Add m4/version-etc.m4.
58001         (configure.ac): Add gl_VERSION_ETC.
58003 2009-05-31  Bruno Haible  <bruno@clisp.org>
58005         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
58006         and 'int64_t'.
58007         * modules/alignof-tests (Dependencies): Add stdint.
58008         Reported by Eric Blake.
58010 2009-05-31  Bruno Haible  <bruno@clisp.org>
58012         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
58013         restriction due to compiler bugs.
58014         Reported by Eric Blake.
58016 2009-05-31  Simon Josefsson  <simon@josefsson.org>
58017             Bruno Haible  <bruno@clisp.org>
58019         Fix test-alignof failure.
58020         * lib/alignof.h (alignof_slot): New macro.
58021         (alignof_type): New macro, with the same semantics as the previous
58022         'alignof'.
58023         (alignof): Alias to alignof_slot.
58024         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
58025         check that the results are usable as constant expressions.
58027 2009-05-31  Bruno Haible  <bruno@clisp.org>
58029         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
58030         * tests/test-memchr.c (main): Check that memchr does not read past the
58031         first occurrence of the byte.
58032         * tests/test-strstr.c (main): Update comment.
58033         Suggested by Eric Blake.
58035 2009-05-30  Bruno Haible  <bruno@clisp.org>
58037         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
58038         detail how to use dumpbin.
58039         Reported by David Byron <dbyron@dbyron.com>.
58041 2009-06-02  Simon Josefsson  <simon@josefsson.org>
58043         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
58045 2009-06-02  Simon Josefsson  <simon@josefsson.org>
58047         * m4/manywarnings.m4: Add GCC 4.4 warnings.
58049 2009-05-28  Bruno Haible  <bruno@clisp.org>
58051         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
58052         build-aux/ files.
58054 2009-05-28  Simon Josefsson  <simon@josefsson.org>
58056         * gnulib-tool (func_import): Transform license on build-aux/ files too.
58058 2009-05-27  Simon Josefsson  <simon@josefsson.org>
58060         * gnulib-tool (sed_transform_main_lib_file)
58061         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
58062         regexps.
58064 2009-05-26  Simon Josefsson  <simon@josefsson.org>
58066         * tests/test-strstr.c: Add another self-test.
58067         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
58068         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
58070 2009-05-23  Bruno Haible  <bruno@clisp.org>
58072         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
58073         change.
58075 2009-05-21  Bruno Haible  <bruno@clisp.org>
58077         Simplify use of mode_t varargs.
58078         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
58079         uses 'mode_t' or 'int'.
58080         * lib/openat.c (openat): Likewise.
58081         * lib/open-safer.c (open_safer): Likewise.
58082         * m4/mode_t.m4: New file.
58083         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
58084         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
58085         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
58086         * modules/open (Files): Add m4/mode_t.m4.
58087         * modules/openat (Files): Likewise.
58088         * modules/fcntl-safer (Files): Likewise.
58089         Suggested by Eric Blake.
58091 2009-05-21  Pádraig Brady  <P@draigbrady.com>
58093         * doc/glibc-functions/fallocate.texi: New file.
58094         * doc/gnulib.texi: Include it.
58096 2009-05-21  Eric Blake  <ebb9@byu.net>
58097             Bruno Haible  <bruno@clisp.org>
58099         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
58100         invocations.
58101         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
58103 2009-05-21  Eric Blake  <ebb9@byu.net>
58104             Bruno Haible  <bruno@clisp.org>
58106         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
58107         include_next. Fix of 2008-11-20 commit.
58108         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
58109         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
58110         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
58111         NEXT_MATH_H.
58112         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
58113         instead of NEXT_MATH_H.
58115 2009-05-21  Bruno Haible  <bruno@clisp.org>
58117         Avoid redefinition warnings for SIZE_MAX.
58118         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
58119         Reported by Simon Josefsson.
58121 2009-05-21  Bruno Haible  <bruno@clisp.org>
58123         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
58124         AC_CACHE_VAL.
58126 2009-05-20  Bruno Haible  <bruno@clisp.org>
58128         Make zeroptr.h work on mingw.
58129         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
58130         mprotect.
58131         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
58132         * modules/memchr2-tests (configure.ac): Likewise.
58133         * modules/memcmp-tests (configure.ac): Likewise.
58134         * modules/memmem-tests (configure.ac): Likewise.
58135         * modules/memrchr-tests (configure.ac): Likewise.
58136         Reported by Simon Josefsson.
58138 2009-05-20  Simon Josefsson  <simon@josefsson.org>
58140         * tests/test-glob.c: Include string.h for strcmp prototype.
58142 2009-05-20  Simon Josefsson  <simon@josefsson.org>
58144         * modules/getdelim (Depends-on): Add explicit stdint, although it
58145         was implicitly already pulled in via realloc-posix.
58146         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
58148 2009-05-20  Simon Josefsson  <simon@josefsson.org>
58150         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
58151         G. Christensen" <tgc@jupiterrise.com>.
58152         * m4/sys_socket_h.m4: Check for sa_family_t.
58153         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
58154         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
58155         * tests/test-sys_socket.c: Check that sa_family_t works.
58157 2009-05-18  Eric Blake  <ebb9@byu.net>
58159         maint.mk: allow gnulib_dir in VPATH build
58160         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
58162 2009-05-15  Jim Meyering  <meyering@redhat.com>
58164         maint.mk: Give gnulib_dir a default definition.
58165         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
58166         Thus, most packages no longer need to specify this variable in cfg.mk
58168 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
58170         rename.m4: fix typos that would make non-mingw cross-configure fail
58171         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
58173 2009-05-13  Eric Blake  <ebb9@byu.net>
58175         mmap-anon: avoid out-of-order autoconf expansion
58176         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
58177         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
58178         * modules/memchr-tests (Depends-on): Add extensions.
58179         * modules/memchr2-tests (Depends-on): Add extensions.
58180         * modules/memcmp-tests (Depends-on): Add extensions.
58181         * modules/memmem-tests (Depends-on): Add extensions.
58182         * modules/memrchr-tests (Depends-on): Add extensions.
58184 2009-05-13  Bruno Haible  <bruno@clisp.org>
58186         Make some tests ISO C 99 compliant.
58187         * tests/zerosize-ptr.h: New file.
58188         * tests/test-memchr.c: Include zerosize-ptr.h.
58189         (main): Use a zero-size object pointer instead of NULL.
58190         * tests/test-memchr2.c: Include zerosize-ptr.h.
58191         (main): Use a zero-size object pointer instead of NULL.
58192         * tests/test-memcmp.c: Include zerosize-ptr.h.
58193         (main): Use a zero-size object pointer instead of NULL.
58194         * tests/test-memmem.c: Include zerosize-ptr.h.
58195         (main): Use a zero-size object pointer instead of NULL.
58196         * tests/test-memrchr.c: Include zerosize-ptr.h.
58197         (main): Use a zero-size object pointer instead of NULL.
58198         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
58199         m4/mmap-anon.m4.
58200         (Depends-on): Add getpagesize.
58201         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
58202         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
58203         m4/mmap-anon.m4.
58204         (Depends-on): Add getpagesize.
58205         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
58206         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
58207         m4/mmap-anon.m4.
58208         (Depends-on): Add getpagesize.
58209         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
58210         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
58211         m4/mmap-anon.m4.
58212         (Depends-on): Add getpagesize.
58213         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
58214         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
58215         m4/mmap-anon.m4.
58216         (Depends-on): Add getpagesize.
58217         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
58219 2009-05-12  Bruno Haible  <bruno@clisp.org>
58221         Tests for module 'alignof'.
58222         * modules/alignof-tests: New file.
58223         * tests/test-alignof.c: New file.
58225 2009-05-12  Bruno Haible  <bruno@clisp.org>
58227         Fix alignof macro.
58228         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
58229         vendor compilers that are always correct.
58231 2009-05-12  Bruno Haible  <bruno@clisp.org>
58233         Make the MAP_ANONYMOUS detection work on HP-UX 11.
58234         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
58235         not whether its fully works.
58237 2009-05-12  Bruno Haible  <bruno@clisp.org>
58239         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
58241 2009-05-12  Jim Meyering  <meyering@redhat.com>
58243         * top/maint.mk: Adjust backslash alignment.
58245 2009-05-11  Simon Josefsson  <simon@josefsson.org>
58247         * top/maint.mk: Make $(srcdir)/build-aux configurable.
58249 2009-05-11  Eric Blake  <ebb9@byu.net>
58251         argp: avoid undefined behavior
58252         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
58253         macros.
58255 2009-05-08  Simon Josefsson  <simon@josefsson.org>
58257         * tests/test-vc-list-files-git.sh: Do git config of user.email and
58258         user.name to prevent git commit from complaining.
58260 2009-05-10  Bruno Haible  <bruno@clisp.org>
58262         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
58263         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
58264         it rewrites every file name only once.
58265         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
58267 2009-05-08  Bruno Haible  <bruno@clisp.org>
58269         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
58270         instead of 'max'.
58272 2009-05-08  Simon Josefsson  <simon@josefsson.org>
58274         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
58275         sockaddr_storage test.
58277 2009-05-07  Simon Josefsson  <simon@josefsson.org>
58279         * modules/sys_socket (Makefile.am): Substitute
58280         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
58281         * m4/sys_socket_h.m4: Check for sockaddr_storage.
58282         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
58283         * tests/test-sys_socket.c: Check sockaddr_storage.
58285 2009-05-08  Bruno Haible  <bruno@clisp.org>
58287         New module 'alignof'.
58288         * lib/alignof.h: New file.
58289         * modules/alignof: New file.
58291 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
58292             Bruno Haible  <bruno@clisp.org>
58294         Fix test-file-has-acl on FreeBSD.
58295         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
58296         mask is implicitly added.
58297         * tests/test-file-has-acl.c: Include <signal.h>.
58298         (main): Terminate the test after 5 seconds.
58299         * modules/acl-tests (configure.ac): Check for alarm function.
58301 2009-05-04  Bruno Haible  <bruno@clisp.org>
58303         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
58304         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
58305         * modules/errno (configure.ac): Drop AC_REQUIRE.
58306         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
58307         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
58309 2009-05-04  Simon Josefsson  <simon@josefsson.org>
58311         * modules/glob-tests: New module.
58312         * tests/test-glob.c: Add.
58314 2009-05-04  Simon Josefsson  <simon@josefsson.org>
58316         * modules/fnmatch-tests: New module.
58317         * tests/test-fnmatch.c: Add.
58319 2009-05-04  Eric Blake  <ebb9@byu.net>
58321         maint: make the new no-submodule-changes rule VPATH-safe
58322         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
58324 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
58325             Bruno Haible  <bruno@clisp.org>
58327         acl: Fix infinite loop on FreeBSD.
58328         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
58329         of return value from acl_get_entry.
58330         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
58331         Likewise.
58333 2009-05-03  Bruno Haible  <bruno@clisp.org>
58335         * lib/acl-internal.h (acl_entries): Clarify return value.
58336         * lib/acl_entries.c (acl_entries): Likewise.
58338 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
58340         Bug fix in acl module.
58341         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
58343 2009-05-03  Bruno Haible  <bruno@clisp.org>
58345         Create gperf-generated file in the source dir, not in the build dir.
58346         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
58347         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
58348         * modules/unicase/locale-language (unicase/locale-languages.h):
58349         Likewise.
58350         * modules/unicase/special-casing (unicase/special-casing-table.h):
58351         Likewise.
58352         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
58353         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
58354         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
58355         Reported by Ralf Wildenhues.
58357 2009-05-03  Bruno Haible  <bruno@clisp.org>
58359         * modules/fnmatch (Description, configure.ac): Taken from
58360         fnmatch-posix.
58361         * modules/fnmatch-posix: Turn into a symbolic reference to the
58362         'fnmatch' module, and deprecate.
58363         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
58365 2009-05-03  Bruno Haible  <bruno@clisp.org>
58367         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
58368         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
58369         Reported by Ralf Wildenhues.
58371 2009-05-04  Simon Josefsson  <simon@josefsson.org>
58373         * m4/fnmatch.m4: Fix fnmatch re-define.
58375 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
58377         priv-set: new module and tests; adapt write-any-file
58378         * lib/priv-set.c: New file.
58379         * lib/priv-set.h: New file.
58380         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
58381         * lib/write-any-file.c: Simplify by using priv-set module.
58382         * m4/priv-set.m4: New file.
58383         * modules/priv-set: New file.
58384         * modules/unlinkdir: Add dependency on priv-set module.
58385         * modules/write-any-file: Likewise.
58387         Tests for module 'priv-set'.
58388         * modules/priv-set-tests: New file.
58389         * tests/test-priv-set.c: New file.
58391 2009-05-03  Jim Meyering  <meyering@redhat.com>
58392             Bruno Haible  <bruno@clisp.org>
58394         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
58395         use the converted UTF-8 variant of the name instead.
58397 2009-05-03  Jim Meyering  <meyering@redhat.com>
58399         tests: tighten some getdate tests
58400         * tests/test-getdate.c (main): Tighten tests: require equality,
58401         not just greater than.  Set TZ envvar to UTC0.
58403 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
58405         getdate: correctly interpret "next monday" when run on a Monday
58406         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
58407         that e.g., "next tues" (when run on a tuesday) results in a date
58408         that is one week in the future, and not today's date.
58409         I.e., add a week when the wday is the same as the current one.
58410         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
58411         and earlier by Martin Bernreuther and Jan Minář.
58412         * tests/test-getdate.c (main): Check that "next DAY" is always in
58413         the future and that "last DAY" is always in the past.
58415 2009-05-02  Jim Meyering  <meyering@redhat.com>
58417         build: ensure that a release build fails when a submodule is unclean
58418         * top/maint.mk (no-submodule-changes): New rule.
58419         (alpha beta major): Depend on it.
58421 2009-05-02  Bruno Haible  <bruno@clisp.org>
58423         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
58424         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
58425         shell variable gl_fnmatch_required to detect which variant is
58426         requested.
58427         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
58428         gl_FUNC_FNMATCH_POSIX.
58429         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
58430         exclude fnmatch-posix.
58432 2009-05-02  Bruno Haible  <bruno@clisp.org>
58434         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
58435         * modules/mbsrtowcs (License): Change to LGPLv2+.
58436         * modules/strnlen1 (License): Likewise.
58437         Reported by Simon Josefsson.
58439 2009-05-02  Bruno Haible  <bruno@clisp.org>
58441         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
58442         "cross".
58443         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
58444         gnulib-tool was called with option --source-base=lib.
58446 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58448         Use automake *-local hooks without commands, for extensibility.
58449         * modules/localcharset (Makefile.am): Rename install-exec-local
58450         rule to install-exec-localcharset, and make it a prerequisite of
58451         install-exec-local.  Likewise, rename the uninstall-local rule to
58452         uninstall-localcharset, and make it a prerequisite of the former.
58454 2009-05-01  Bruno Haible  <bruno@clisp.org>
58456         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
58457         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
58458         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
58459         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
58460         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
58461         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
58462         m4/locale-zh.m4, m4/codeset.m4.
58464         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
58465         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
58466         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
58467         m4/locale-zh.m4.
58469         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
58470         REPLACE_WCRTOMB if mbstate_t must be replaced.
58471         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
58472         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
58474 2009-05-01  Bruno Haible  <bruno@clisp.org>
58476         Avoid compiler warnings when redefining macros defined by <libintl.h>.
58477         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
58478         dngettext, dcngettext, textdomain, bindtextdomain,
58479         bind_textdomain_codeset): Undefine before redefining.
58481 2009-04-30  Bruno Haible  <bruno@clisp.org>
58483         Fix bug introduced on 2009-04-25.
58484         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
58485         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
58486         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
58487         is defined.
58488         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
58489         is defined.
58490         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
58491         is defined.
58492         Reported by Elbert_Pol <elbert.pol@gmail.com>.
58494 2009-04-28  Bruno Haible  <bruno@clisp.org>
58496         Comment tweaks.
58497         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
58498         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
58499         * lib/unicase.h (u*_casexfrm): Likewise.
58500         Reported by Paolo Bonzini.
58502 2009-04-28  Bruno Haible  <bruno@clisp.org>
58504         Fix a compilation error.
58505         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
58506         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
58507         Reported by Jim Meyering.
58509 2009-04-27  Bruno Haible  <bruno@clisp.org>
58511         New module 'libunistring'.
58512         * modules/libunistring: New file.
58513         * m4/libunistring.m4: New file.
58514         * MODULES.html.sh (Unicode string functions): Add it.
58516 2009-04-27  Eric Blake  <ebb9@byu.net>
58518         maint.mk: allow package-specific header to provide <config.h>
58519         * top/maint.mk (sc_require_config_h): New variable.
58520         (sc_require_config_h, sc_require_config_h_first): Use it.
58522 2009-04-27  Simon Josefsson  <simon@josefsson.org>
58524         * top/maint.mk (sc_avoid_if_before_free): Except
58525         useless-if-before-free script.
58527 2009-04-27  Eric Blake  <ebb9@byu.net>
58529         maintainer-makefile: depend on all required helper scripts
58530         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
58531         useless-if-before-free.
58532         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
58533         version, rather than assuming gnulib checkout is available.
58534         Reported by Simen Josefsson.
58536 2009-04-26  Bruno Haible  <bruno@clisp.org>
58538         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
58539         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
58540         "../" or "..".
58542 2009-04-26  Bruno Haible  <bruno@clisp.org>
58544         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
58545         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
58546         AC_LIB_HAVE_LINKFLAGS.
58548 2009-04-26  Bruno Haible  <bruno@clisp.org>
58550         Simplify calling convention of u*_conv_from_encoding.
58551         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
58552         u32_conv_from_encoding): Expect a resultbuf argument and return the
58553         result directly as a pointer.
58554         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
58555         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
58556         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
58557         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
58558         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
58559         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
58560         Update.
58561         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
58562         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
58563         * lib/vasnprintf.c (VASNPRINTF): Update.
58564         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
58565         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
58566         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
58567         * NEWS: Mention the change.
58569 2009-04-26  Bruno Haible  <bruno@clisp.org>
58571         Simplify calling convention of u*_conv_to_encoding.
58572         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
58573         u32_conv_to_encoding): Expect a resultbuf argument and return the
58574         result directly as a pointer.
58575         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
58576         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
58577         freeing scaled_offsets if mem_iconveha failed.
58578         * lib/unicase/u-casexfrm.h (FUNC): Update.
58579         * lib/uninorm/u-normxfrm.h (FUNC): Update.
58580         * lib/vasnprintf.c (VASNPRINTF): Update.
58581         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
58582         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
58583         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
58584         * NEWS: Mention the change.
58586 2009-04-26  Bruno Haible  <bruno@clisp.org>
58588         Avoid test failures on AIX and OSF/1.
58589         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
58590         malloc(0).
58591         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
58592         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
58593         Likewise.
58594         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
58595         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
58596         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
58597         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
58598         * doc/posix-functions/malloc.texi: Document the portability problem
58599         related to malloc(0).
58601 2009-04-26  Bruno Haible  <bruno@clisp.org>
58603         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
58604         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
58605         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
58607 2009-04-25  Bruno Haible  <bruno@clisp.org>
58609         Avoid link error when creating a namespace clean library.
58610         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
58611         as macro with arguments if already defined as an alias.
58612         * lib/signbitf.c (gl_signbitf): Don't undefine.
58613         * lib/signbitd.c (gl_signbitd): Don't undefine.
58614         * lib/signbitl.c (gl_signbitl): Don't undefine.
58616 2009-04-25  Jim Meyering  <meyering@redhat.com>
58618         vc-list-files: fix another quoting bug
58619         * build-aux/vc-list-files: Avoid sed backslash expansion
58620         of pathological directory names.
58622 2009-04-25  Eric Blake  <ebb9@byu.net>
58624         vc-list-files: fix shell quoting error
58625         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
58626         timestamp.
58628 2009-04-25  Jim Meyering  <meyering@redhat.com>
58630         vc-list-files: restore lost functionality with subdir argument
58631         * build-aux/vc-list-files: When given a non-"." sub-directory
58632         argument, substitute the $dir/ prefix back onto each resulting name.
58633         Otherwise, coreutils' root_tests check would fail.
58635 2009-04-24  Eric Blake  <ebb9@byu.net>
58637         vc-list-files: ignore git symlinks
58638         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
58639         than ls-files, to ignore git symlinks.
58641         maint.mk: import improvements from m4
58642         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
58643         (move_if_change): Delete unused macro.
58644         (news-date-check, vc-diff-check): Support VPATH builds.
58645         (announcement): Likewise.  Split --bootstrap-tools list...
58646         (boostrap-tools): ...into separate list, which can be overridden
58647         in cfg.mk.
58648         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
58649         requiring dependency on useless-if-before-free module.
58650         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
58651         Support VPATH builds.
58653 2009-04-24  Jim Meyering  <meyering@redhat.com>
58655         maint.mk: remove coreutils-specific rules and variables
58656         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
58657         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
58658         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
58660         maint.mk: remove obsolete rule
58661         * top/maint.mk (rel-check): Remove rule.
58662         (WGET, WGETFLAGS): Remove now-unused variables.
58664 2009-04-24  Simon Josefsson  <simon@josefsson.org>
58666         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
58667         consistency.
58669         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
58670         '$(PATH_SEPARATOR)' instead of ':'.
58672 2009-04-24  Simon Josefsson  <simon@josefsson.org>
58674         * lib/getopt1.c (main): Use 'const' for static array.
58676 2009-04-24  Simon Josefsson  <simon@josefsson.org>
58678         * top/maint.mk: Sync with coreutils.
58679         * NEWS: Explain incompatibilities.
58681 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58682             Bruno Haible  <bruno@clisp.org>
58684         Fix cross-compilation results.
58685         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
58686         statement, as third argument of AC_TRY_RUN.
58687         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
58688         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
58689         Likewise.
58690         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
58691         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
58692         Likewise.
58693         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
58694         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
58695         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
58697 2009-04-20  Bruno Haible  <bruno@clisp.org>
58699         Avoid test failure on mingw.
58700         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
58702 2009-04-20  Bruno Haible  <bruno@clisp.org>
58704         Avoid compilation error on mingw.
58705         * modules/localename-tests (Depends-on): Add locale.
58707 2009-04-19  Bruno Haible  <bruno@clisp.org>
58709         Support for building a shared library on Windows platforms.
58710         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
58711         (main): Test the presence of UNINORM_NFC here.
58712         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
58713         (main): Test the presence of UNINORM_NFD here.
58714         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
58715         (main): Test the presence of UNINORM_NFKC here.
58716         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
58717         (main): Test the presence of UNINORM_NFKD here.
58719 2009-04-19  Bruno Haible  <bruno@clisp.org>
58721         Avoid a compiler warning.
58722         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
58723         Change type of variable 'sequence'.
58725 2009-04-19  Bruno Haible  <bruno@clisp.org>
58727         * modules/configmake (Makefile.am): When the contents of configmake.h
58728         does not change, arrange to preserve its modification time.
58730 2009-04-17  Simon Josefsson  <simon@josefsson.org>
58732         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
58733         gettext domain.
58735 2009-04-16  Jim Meyering  <meyering@redhat.com>
58737         useless-if-before-free: improve conversion code
58738         * build-aux/useless-if-before-free: Adjust code-in-comment to match
58739         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
58741 2009-04-14  Bruno Haible  <bruno@clisp.org>
58743         * modules/fcntl (Depends-on): Add extensions.
58744         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
58746 2009-04-12  Ben Pfaff  <blp@gnu.org>
58748         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
58749         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
58751 2009-03-20  Ben Pfaff  <blp@gnu.org>
58753         Make rename replace existing destinations on Windows.
58754         * m4/rename.m4: Add test for Mingw.
58755         * lib/rename.c: Add rename replacement that uses MoveFileEx with
58756         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
58757         * doc/posix-functions/rename.texi: Document.
58759 2009-04-10  Bruno Haible  <bruno@clisp.org>
58761         New include file "iconveh.h".
58762         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
58763         * lib/striconveh.h: Include it.
58764         (enum iconv_ilseq_handler): Remove definition.
58765         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
58766         striconveh.h.
58767         * lib/striconveha.c: Include striconveh.h.
58768         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
58769         * modules/striconveh (Files): Add lib/iconveh.h.
58770         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
58771         lib/striconveh.h.
58773 2009-04-10  Bruno Haible  <bruno@clisp.org>
58775         * lib/uniconv.h: Update comment.
58777 2009-04-10  Bruno Haible  <bruno@clisp.org>
58779         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
58780         always.
58781         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
58782         * lib/unistr/u16-mbtouc-aux.c: Likewise.
58783         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
58784         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
58785         "unistring-notinline.h", so that the function gets defined always.
58786         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
58787         * lib/unistr/u8-uctomb.c: Likewise.
58788         * lib/unistr/u16-mbtouc.c: Likewise.
58789         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
58790         * lib/unistr/u16-uctomb.c: Likewise.
58791         * lib/unistr/u32-mbtouc.c: Likewise.
58792         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
58793         * lib/unistr/u32-uctomb.c: Likewise.
58795 2009-04-10  Bruno Haible  <bruno@clisp.org>
58797         Mark 'utime' obsolete.
58798         * modules/utime (Status, Notice): New sections.
58799         Suggested by Jim Meyering.
58801         Fix cross-compile guess for utime test.
58802         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
58803         autoconf.
58804         * doc/posix-functions/utime.texi: Give more precisions.
58805         Reported by Jan <ipif@ymail.com>.
58807 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
58809         filevercmp: correct today's change
58810         * lib/filevercmp.c: Also handle coreutils' test inputs.
58811         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
58813         Fix regression in 'filevercmp' module. Thanks Sven Joachim
58814         for reporting it.
58815         * lib/filevercmp.c: Special handle for "", "." and "..".
58816         * tests/test-filevercmp.c: Enlarge the set suite.
58818 2009-04-07  Jim Meyering  <meyering@redhat.com>
58820         useless-if-before-free: show how to remove braced useless free, too
58821         * build-aux/useless-if-before-free: still only in a comment, though.
58823 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
58825         maint.mk: import changes to syntax-check macros from coreutils
58826         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
58827         Use them in the relevant macros.
58829 2009-04-06  Bruno Haible  <bruno@clisp.org>
58831         Fix unportable use of bit-fields.
58832         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
58833         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
58834         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
58836 2009-04-06  Bruno Haible  <bruno@clisp.org>
58838         Avoid test failures on AIX and OSF/1.
58839         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
58840         that malloc(0) = NULL.
58841         * tests/unicase/test-u8-tolower.c (check): Likewise.
58842         * tests/unicase/test-u8-totitle.c (check): Likewise.
58843         * tests/unicase/test-u8-toupper.c (check): Likewise.
58844         * tests/unicase/test-u16-casefold.c (check): Likewise.
58845         * tests/unicase/test-u16-tolower.c (check): Likewise.
58846         * tests/unicase/test-u16-totitle.c (check): Likewise.
58847         * tests/unicase/test-u16-toupper.c (check): Likewise.
58848         * tests/unicase/test-u32-casefold.c (check): Likewise.
58849         * tests/unicase/test-u32-tolower.c (check): Likewise.
58850         * tests/unicase/test-u32-totitle.c (check): Likewise.
58851         * tests/unicase/test-u32-toupper.c (check): Likewise.
58852         * tests/uninorm/test-u8-nfc.c (check): Likewise.
58853         * tests/uninorm/test-u8-nfd.c (check): Likewise.
58854         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
58855         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
58856         * tests/uninorm/test-u16-nfc.c (check): Likewise.
58857         * tests/uninorm/test-u16-nfd.c (check): Likewise.
58858         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
58859         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
58860         * tests/uninorm/test-u32-nfc.c (check): Likewise.
58861         * tests/uninorm/test-u32-nfd.c (check): Likewise.
58862         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
58863         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
58865 2009-04-05  Bruno Haible  <bruno@clisp.org>
58867         Work around an autoconf limitation.
58868         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
58869         comment line if it would be longer than 3 KB.
58871 2009-04-05  Bruno Haible  <bruno@clisp.org>
58873         Avoid test failure with libiconv-1.13.
58874         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
58875         of the expected test results.
58877 2009-04-05  Bruno Haible  <bruno@clisp.org>
58879         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
58880         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
58881         that it should be installed.
58883 2009-04-05  Bruno Haible  <bruno@clisp.org>
58885         * gnulib-tool: New option --copy-file.
58886         (func_usage): Document it.
58887         (func_dest_tmpfilename): Moved out of func_import.
58888         (func_add_file, func_update_file): New functions, extracted from
58889         func_import.
58890         (func_import): Update.
58892 2009-04-05  Karl Berry  <karl@gnu.org>
58894         * README: prominently mention gnulib-tool.
58895         Rearrange sections so getting the code is near the top.
58897 2009-04-05  Bruno Haible  <bruno@clisp.org>
58899         * lib/unicase.h: Mention u*_cmp2.
58900         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
58901         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
58902         * lib/unicase/ulc-casecmp.c: Likewise.
58903         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
58904         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
58905         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
58906         unistr/u8-cmp.
58907         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
58908         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
58909         unistr/u16-cmp.
58910         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
58911         unistr/u32-cmp.
58913         * lib/uninorm.h: Mention u*_cmp2.
58914         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
58915         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
58916         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
58917         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
58918         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
58919         unistr/u8-cmp.
58920         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
58921         unistr/u16-cmp.
58922         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
58923         unistr/u32-cmp.
58925         New module 'unistr/u32-cmp2'.
58926         * lib/unistr/u32-cmp2.c: New file.
58927         * modules/unistr/u32-cmp2: New file.
58929         New module 'unistr/u16-cmp2'.
58930         * lib/unistr/u16-cmp2.c: New file.
58931         * modules/unistr/u16-cmp2: New file.
58933         New module 'unistr/u8-cmp2'.
58934         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
58935         * lib/unistr/u8-cmp2.c: New file.
58936         * lib/unistr/u-cmp2.h: New file.
58937         * modules/unistr/u8-cmp2: New file.
58939 2009-04-05  Bruno Haible  <bruno@clisp.org>
58941         * lib/unictype.h (uc_property_is_valid): New macro.
58942         * tests/unictype/test-pr_byname.c (main): Use it.
58944         * lib/unistr.h: Doc fixes.
58945         * lib/uniconv.h: Doc fixes.
58946         * lib/unictype.h: Doc fixes.
58948 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
58950         Port coreutils 7.2 to Solaris 8.
58952         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
58953         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
58954         for Solaris 8.  This is a bit of a hack, as it means it's the
58955         caller's responsibility to add -lnsl if needed, but most likely it
58956         won't be needed since only getaddrinfo uses this and getaddrinfo
58957         isn't needed on Solaris 8.
58959         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
58960         problem to Solaris 8 encountered with coreutils 7.2, which
58961         resulted in a message "fnmatch.c:292: warning: passing argument 4
58962         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
58963         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
58965 2009-04-03  Simon Josefsson  <simon@josefsson.org>
58967         * m4/ld-version-script.m4: Add FIXME comment.
58969 2009-04-02  Simon Josefsson  <simon@josefsson.org>
58971         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
58972         SOVERSION variable.
58974 2009-04-02  Bruno Haible  <bruno@clisp.org>
58976         * Makefile (info, html, dvi, pdf): Combine the rules.
58977         Suggested by Jim Meyering.
58979 2009-04-01  Bruno Haible  <bruno@clisp.org>
58981         * Makefile (info, html, dvi, pdf): New targets.
58982         Reported by Reuben Thomas <rrt@sc3d.org>.
58984 2009-04-01  Bruno Haible  <bruno@clisp.org>
58986         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
58987         can be put into PATH.
58988         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
58990 2009-04-01  Bruno Haible  <bruno@clisp.org>
58992         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
58994 2009-04-01  Bruno Haible  <bruno@clisp.org>
58996         Rename module 'visibility'.
58997         * modules/lib-symbol-visibility: Renamed from modules/visibility.
58998         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
58999         * doc/gnulib.texi: Update.
59000         * MODULES.html.sh (Misc): Update.
59001         * NEWS: Mention the change.
59003 2009-04-01  Simon Josefsson  <simon@josefsson.org>
59005         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
59006         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
59007         Eric Blake <ebb9@byu.net> for review.
59008         * MODULES.html.sh: Add lib-msvc-compat.
59009         * doc/gnulib.texi: Link to new section.
59010         * m4/ld-output-def.m4: New file.
59011         * doc/ld-output-def.texi: New file.
59013 2009-04-01  Simon Josefsson  <simon@josefsson.org>
59015         Rename ld-version-script to lib-symbol-versions.  Suggested by
59016         Bruno Haible <bruno@clisp.org>.
59017         * modules/ld-version-script: Renamed to lib-symbol-versions.
59018         * doc/ld-version-script.texi: Fix module name.
59019         * MODULES.html.sh: Add lib-symbol-versions.
59021 2009-03-31  Simon Josefsson  <simon@josefsson.org>
59023         * modules/u64-tests: New file.
59024         * tests/test-u64.c: New file.
59026 2009-03-04  Simon Josefsson  <simon@josefsson.org>
59028         * MODULES.html.sh: Mention u64.
59029         * modules/u64: New module.
59030         * modules/crypto/sha512: Depend on u64 module instead of providing
59031         u64.h.
59033 2009-03-27  Eric Blake  <ebb9@byu.net>
59035         test-strerror: make debugging EAI_SYSTEM easier
59036         * modules/getaddrinfo-tests (Depends-on): Add strerror.
59037         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
59038         failure was EAI_SYSTEM.
59040 2009-03-25  Bruno Haible  <bruno@clisp.org>
59042         Fix a problem with --enable-relocatable on Solaris 7.
59043         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
59044         since 2008-02-24.
59046 2009-03-25  Eric Blake  <ebb9@byu.net>
59048         test-sockets: avoid gcc warning
59049         * tests/test-sockets.c (main): Silence compiler warning.
59051 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
59053         New modules nproc, pthread, contributed by Glen Lenker.
59055         * MODULES.html.sh: Add pthread, nproc.
59056         * lib/nproc.c: New file.
59057         * lib/nproc.h: New file.
59058         * lib/pthread.in.h: New file.
59059         * m4/pthread.m4: New file.
59060         * modules/nproc: New file.
59061         * modules/pthread: New file.
59063 2009-03-24  Simon Josefsson  <simon@josefsson.org>
59065         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
59066         New variable.
59068 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
59070         filevercmp: handle simple~ and numbered.~3~ backup suffixes
59071         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
59072         * tests/test-filevercmp.c: Add tests for backup suffixes.
59074 2009-03-24  Simon Josefsson  <simon@josefsson.org>
59076         * modules/stdlib (Depends-on): Add stdint, needed when defining
59077         struct random_data on, for example, HP-UX 10.20.  Reported by
59078         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59080 2009-03-24  Simon Josefsson  <simon@josefsson.org>
59082         * lib/readline.c (readline): Call fflush on stdout after printing
59083         prompt.
59085 2009-03-20  Bruno Haible  <bruno@clisp.org>
59087         Remove dependency from 'close' module to -lws2_32 on native Windows.
59088         * lib/close-hook.h: New file.
59089         * lib/close-hook.c: New file.
59090         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
59091         w32sock.h.
59092         (_gl_close_fd_maybe_socket): Remove function.
59093         (rpl_close): Invoke execute_all_close_hooks instead of
59094         _gl_close_fd_maybe_socket.
59095         * lib/sockets.c: Include close-hook.h, w32sock.h.
59096         (close_fd_maybe_socket): New function, essentially from lib/close.c.
59097         (close_sockets_hook): New variable.
59098         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
59099         (gl_sockets_cleanup): Unregister it.
59100         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
59101         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
59102         * modules/close-hook: New file.
59103         * modules/close (Files): Remove lib/w32sock.h.
59104         (Depends-on): Add close-hook.
59105         (Link): Remove section.
59106         * modules/sockets (Files): Add lib/w32sock.h.
59107         (Depends-on): Add close-hook.
59108         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
59109         invocation.
59110         * NEWS: Mention that LIB_CLOSE is gone.
59112 2009-03-23  Eric Blake  <ebb9@byu.net>
59114         signal-tests: test previous patch
59115         * tests/test-signal.c: New file.
59116         * modules/signal-tests: Likewise.
59118         signal.h: always support 'volatile sig_atomic_t'
59119         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
59120         (gl_SIGNAL_H_DEFAULTS): Add a default.
59121         * modules/signal (Makefile.am): Substitute if needed.
59122         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
59123         users can blindly add volatile.
59124         * doc/posix-headers/signal.texi (signal.h): Document it.
59125         Reported by Matthew Woehlke.
59127 2009-03-23  Jim Meyering  <meyering@redhat.com>
59129         pathmax: PATH_MAX: use pathconf only when available
59130         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
59131         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
59132         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
59133         This avoids a link failure in a PSP cross-compilation environment
59134         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
59136         * lib/vasnprintf.c (divide): Fix typo in comment.
59138 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59140         * gnulib-tool (func_filter_filelist): Fix comment.
59142 2009-03-20  Bruno Haible  <bruno@clisp.org>
59144         Make sockets.h self-contained.
59145         * lib/sockets.c: Include sockets.h first.
59146         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
59148 2009-03-19  Eric Blake  <ebb9@byu.net>
59150         doc: mention more functions added in cygwin 1.7.0
59151         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
59152         addition.
59153         * doc/posix-functions/log2f.texi: Likewise.
59155 2009-03-19  Jim Meyering  <meyering@redhat.com>
59157         fsusage: avoid syntax error due to statement-before-declaration
59158         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
59159         after all declarations.  Reported by Matthew Woehlke in
59160         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
59162 2009-03-18  Eric Blake  <ebb9@byu.net>
59164         build-aux/compile: sync from automake
59165         * build-aux/compile: New file, from automake.
59166         * config/srclist.txt: Mention build-aux/compile.
59168 2009-03-17  Bruno Haible  <bruno@clisp.org>
59170         * lib/git-merge-changelog.c: Fix typo in comment.
59171         Reported by Reuben Thomas <rrt@sc3d.org>.
59173 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
59175         * m4/regex.m4: update and improve help for
59176         --without-included-regex.
59178 2009-03-17  Simon Josefsson  <simon@josefsson.org>
59180         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
59181         failure on missing include files.
59183 2009-03-17  Eric Blake  <ebb9@byu.net>
59185         doc: mention more functions added in cygwin 1.7.0
59186         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
59187         addition.
59188         * doc/posix-functions/fwscanf.texi: Likewise.
59189         * doc/posix-functions/swprintf.texi: Likewise.
59190         * doc/posix-functions/swscanf.texi: Likewise.
59191         * doc/posix-functions/vfwprintf.texi: Likewise.
59192         * doc/posix-functions/vfwscanf.texi: Likewise.
59193         * doc/posix-functions/vswprintf.texi: Likewise.
59194         * doc/posix-functions/vswscanf.texi: Likewise.
59195         * doc/posix-functions/vwprintf.texi: Likewise.
59196         * doc/posix-functions/vwscanf.texi: Likewise.
59197         * doc/posix-functions/wcscasecmp.texi: Likewise.
59198         * doc/posix-functions/wcsdup.texi: Likewise.
59199         * doc/posix-functions/wcsftime.texi: Likewise.
59200         * doc/posix-functions/wcsncasecmp.texi: Likewise.
59201         * doc/posix-functions/wprintf.texi: Likewise.
59202         * doc/posix-functions/wscanf.texi: Likewise.
59203         * doc/glibc-functions/gethostbyname2.texi: Likewise.
59205 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59207         maint.mk: really add $(AM_MAKEFLAGS)
59208         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
59209         was inadvertently omitted in the last commit.
59210         Spotted by Bruno Haible.
59212         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
59213         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
59214         $(AM_MAKEFLAGS)' rather than plain `make'.
59216         gnulib-tool: execute $MAKE not make
59217         * gnulib-tool: Default $MAKE to 'make'.
59218         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
59219         than make.  Initialize $MAKE in the do-autobuild script.
59221         gnulib-tool: use $MAKE not make in generated files
59222         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
59223         make, in generated files.  Initialize $MAKE in the do-autobuild
59224         script.
59226         * top/GNUmakefile (_have-git-version-gen): Fix typo.
59228         GNUmakefile: disable parallelism only for multiple, recursive targets
59229         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
59230         additions in the Makefile.
59231         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
59232         by Automake.
59233         (.NOTPARALLEL): Only disable parallel builds if multiple targets
59234         are listed on the command line and at least one of them is
59235         listed in $(ALL_RECURSIVE_TARGETS).
59237 2009-03-14  Bruno Haible  <bruno@clisp.org>
59239         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
59240         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
59241         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
59242         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
59243         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
59244         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
59245         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
59246         unistr/u8-uctomb.
59247         * modules/unistr/u8-strchr (Depends-on): Likewise.
59248         * modules/unistr/u8-strrchr (Depends-on): Likewise.
59249         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
59250         unistr/u16-uctomb.
59251         * modules/unistr/u16-strchr (Depends-on): Likewise.
59252         * modules/unistr/u16-strrchr (Depends-on): Likewise.
59254 2009-03-12  Bruno Haible  <bruno@clisp.org>
59256         Work around select() bug on Interix 3.5.
59257         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
59258         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
59259         * m4/select.m4: New file.
59260         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
59261         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
59262         * modules/select (Files): Add m4/select.m4.
59263         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
59264         * modules/nanosleep (Depends-on): Add select.
59265         * modules/poll (Depends-on): Likewise.
59266         * doc/posix-functions/select.texi: Mention the Interix bug.
59267         Reported by Markus Duft <mduft@gentoo.org>.
59269         * lib/select.c: Renamed from lib/winsock-select.c.
59270         * modules/select (Files): Add lib/select.c, remove
59271         lib/winsock-select.c.
59272         (configure.ac): Update.
59274 2009-03-12  Jim Meyering  <meyering@redhat.com>
59276         avoid gcc warnings about unused macro definitions
59277         * lib/readtokens.c (STREQ): Remove unused definition.
59278         * lib/xmalloc.c (SIZE_MAX): Likewise.
59279         * lib/openat-die.c (N_): Likewise.
59280         * lib/mountlist.c (SIZE_MAX): Remove definition.
59281         Instead, include <stdint.h>.
59282         * lib/readutmp.c: Likewise.
59283         * modules/readutmp (Depends-on): Add stdint.
59284         * modules/mountlist (Depends-on): Add stdint.
59285         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
59287 2009-03-10  Bruno Haible  <bruno@clisp.org>
59289         Tests for module 'mbmemcasecoll'.
59290         * modules/mbmemcasecoll-tests: New file.
59291         * tests/test-mbmemcasecoll1.sh: New file.
59292         * tests/test-mbmemcasecoll2.sh: New file.
59293         * tests/test-mbmemcasecoll3.sh: New file.
59294         * tests/test-mbmemcasecoll.c: New file.
59296         New module 'mbmemcasecoll'.
59297         * lib/mbmemcasecoll.h: New file.
59298         * lib/mbmemcasecoll.c: New file.
59299         * modules/mbmemcasecoll: New file.
59301         * tests/test-mbmemcasecmp.h: New file, extracted from
59302         tests/test-mbmemcasecmp.c.
59303         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
59304         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
59305         (main): Update.
59306         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
59308 2009-03-09  Bruno Haible  <bruno@clisp.org>
59310         Tests for module 'mbmemcasecmp'.
59311         * modules/mbmemcasecmp-tests: New file.
59312         * tests/test-mbmemcasecmp1.sh: New file.
59313         * tests/test-mbmemcasecmp2.sh: New file.
59314         * tests/test-mbmemcasecmp3.sh: New file.
59315         * tests/test-mbmemcasecmp.c: New file.
59317         New module 'mbmemcasecmp'.
59318         * lib/mbmemcasecmp.h: New file.
59319         * lib/mbmemcasecmp.c: New file.
59320         * modules/mbmemcasecmp: New file.
59322 2009-03-09  Bruno Haible  <bruno@clisp.org>
59324         Tests for module 'unicase/ulc-casecoll'.
59325         * modules/unicase/ulc-casecoll-tests: New file.
59326         * tests/unicase/test-ulc-casecoll1.sh: New file.
59327         * tests/unicase/test-ulc-casecoll2.sh: New file.
59328         * tests/unicase/test-ulc-casecoll.c: New file.
59330         New module 'unicase/ulc-casecoll'.
59331         * lib/unicase.h (ulc_casecoll): New declaration.
59332         * lib/unicase/ulc-casecoll.c: New file.
59333         * modules/unicase/ulc-casecoll: New file.
59335         New module 'unicase/ulc-casexfrm'.
59336         * lib/unicase.h (ulc_casexfrm): New declaration.
59337         * lib/unicase/ulc-casexfrm.c: New file.
59338         * modules/unicase/ulc-casexfrm: New file.
59340 2009-03-09  Bruno Haible  <bruno@clisp.org>
59342         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
59343         invocations.
59345         * m4/mbscasecmp.m4: Remove file.
59346         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
59347         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
59349         * m4/mbscasestr.m4: Remove file.
59350         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
59351         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
59353         * m4/mbschr.m4: Remove file.
59354         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
59355         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
59357         * m4/mbscspn.m4: Remove file.
59358         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
59359         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
59361         * m4/mbslen.m4: Remove file.
59362         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
59363         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
59365         * m4/mbsncasecmp.m4: Remove file.
59366         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
59367         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
59369         * m4/mbsnlen.m4: Remove file.
59370         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
59371         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
59373         * m4/mbspbrk.m4: Remove file.
59374         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
59375         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
59377         * m4/mbspcasecmp.m4: Remove file.
59378         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
59379         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
59381         * m4/mbsrchr.m4: Remove file.
59382         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
59383         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
59385         * m4/mbssep.m4: Remove file.
59386         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
59387         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
59389         * m4/mbsspn.m4: Remove file.
59390         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
59391         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
59393         * m4/mbsstr.m4: Remove file.
59394         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
59395         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
59397         * m4/mbstok_r.m4: Remove file.
59398         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
59399         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
59401         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
59403         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
59404         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
59406         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
59408 2009-03-08  Bruno Haible  <bruno@clisp.org>
59410         Tests for module 'unicase/ulc-casecmp'.
59411         * modules/unicase/ulc-casecmp-tests: New file.
59412         * tests/unicase/test-ulc-casecmp1.sh: New file.
59413         * tests/unicase/test-ulc-casecmp2.sh: New file.
59414         * tests/unicase/test-ulc-casecmp.c: New file.
59416         New module 'unicase/ulc-casecmp'.
59417         * lib/unicase.h (ulc_casecmp): New declaration.
59418         * lib/unicase/ulc-casecmp.c: New file.
59419         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
59420         'const SRC_UNIT *'.
59421         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
59422         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
59423         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
59424         * modules/unicase/ulc-casecmp: New file.
59426         Tests for module 'unicase/u32-is-cased'.
59427         * modules/unicase/u32-is-cased-tests: New file.
59428         * tests/unicase/test-u32-is-cased.c: New file.
59430         Tests for module 'unicase/u16-is-cased'.
59431         * modules/unicase/u16-is-cased-tests: New file.
59432         * tests/unicase/test-u16-is-cased.c: New file.
59434         Tests for module 'unicase/u8-is-cased'.
59435         * modules/unicase/u8-is-cased-tests: New file.
59436         * tests/unicase/test-u8-is-cased.c: New file.
59437         * tests/unicase/test-is-cased.h: New file.
59439         New module 'unicase/u32-is-cased'.
59440         * lib/unicase/u32-is-cased.c: New file.
59441         * modules/unicase/u32-is-cased: New file.
59443         New module 'unicase/u16-is-cased'.
59444         * lib/unicase/u16-is-cased.c: New file.
59445         * modules/unicase/u16-is-cased: New file.
59447         New module 'unicase/u8-is-cased'.
59448         * lib/unicase/u8-is-cased.c: New file.
59449         * lib/unicase/u-is-cased.h: New file.
59450         * modules/unicase/u8-is-cased: New file.
59452         Tests for module 'unicase/u32-is-casefolded'.
59453         * modules/unicase/u32-is-casefolded-tests: New file.
59454         * tests/unicase/test-u32-is-casefolded.c: New file.
59456         Tests for module 'unicase/u16-is-casefolded'.
59457         * modules/unicase/u16-is-casefolded-tests: New file.
59458         * tests/unicase/test-u16-is-casefolded.c: New file.
59460         Tests for module 'unicase/u8-is-casefolded'.
59461         * modules/unicase/u8-is-casefolded-tests: New file.
59462         * tests/unicase/test-u8-is-casefolded.c: New file.
59463         * tests/unicase/test-is-casefolded.h: New file.
59465         New module 'unicase/u32-is-casefolded'.
59466         * lib/unicase/u32-is-casefolded.c: New file.
59467         * modules/unicase/u32-is-casefolded: New file.
59469         New module 'unicase/u16-is-casefolded'.
59470         * lib/unicase/u16-is-casefolded.c: New file.
59471         * modules/unicase/u16-is-casefolded: New file.
59473         New module 'unicase/u8-is-casefolded'.
59474         * lib/unicase/u8-is-casefolded.c: New file.
59475         * modules/unicase/u8-is-casefolded: New file.
59477         Tests for module 'unicase/u32-is-titlecase'.
59478         * modules/unicase/u32-is-titlecase-tests: New file.
59479         * tests/unicase/test-u32-is-titlecase.c: New file.
59481         Tests for module 'unicase/u16-is-titlecase'.
59482         * modules/unicase/u16-is-titlecase-tests: New file.
59483         * tests/unicase/test-u16-is-titlecase.c: New file.
59485         Tests for module 'unicase/u8-is-titlecase'.
59486         * modules/unicase/u8-is-titlecase-tests: New file.
59487         * tests/unicase/test-u8-is-titlecase.c: New file.
59488         * tests/unicase/test-is-titlecase.h: New file.
59490         New module 'unicase/u32-is-titlecase'.
59491         * lib/unicase/u32-is-titlecase.c: New file.
59492         * modules/unicase/u32-is-titlecase: New file.
59494         New module 'unicase/u16-is-titlecase'.
59495         * lib/unicase/u16-is-titlecase.c: New file.
59496         * modules/unicase/u16-is-titlecase: New file.
59498         New module 'unicase/u8-is-titlecase'.
59499         * lib/unicase/u8-is-titlecase.c: New file.
59500         * modules/unicase/u8-is-titlecase: New file.
59502         Tests for module 'unicase/u32-is-lowercase'.
59503         * modules/unicase/u32-is-lowercase-tests: New file.
59504         * tests/unicase/test-u32-is-lowercase.c: New file.
59506         Tests for module 'unicase/u16-is-lowercase'.
59507         * modules/unicase/u16-is-lowercase-tests: New file.
59508         * tests/unicase/test-u16-is-lowercase.c: New file.
59510         Tests for module 'unicase/u8-is-lowercase'.
59511         * modules/unicase/u8-is-lowercase-tests: New file.
59512         * tests/unicase/test-u8-is-lowercase.c: New file.
59513         * tests/unicase/test-is-lowercase.h: New file.
59515         New module 'unicase/u32-is-lowercase'.
59516         * lib/unicase/u32-is-lowercase.c: New file.
59517         * modules/unicase/u32-is-lowercase: New file.
59519         New module 'unicase/u16-is-lowercase'.
59520         * lib/unicase/u16-is-lowercase.c: New file.
59521         * modules/unicase/u16-is-lowercase: New file.
59523         New module 'unicase/u8-is-lowercase'.
59524         * lib/unicase/u8-is-lowercase.c: New file.
59525         * modules/unicase/u8-is-lowercase: New file.
59527         Tests for module 'unicase/u32-is-uppercase'.
59528         * modules/unicase/u32-is-uppercase-tests: New file.
59529         * tests/unicase/test-u32-is-uppercase.c: New file.
59531         Tests for module 'unicase/u16-is-uppercase'.
59532         * modules/unicase/u16-is-uppercase-tests: New file.
59533         * tests/unicase/test-u16-is-uppercase.c: New file.
59535         Tests for module 'unicase/u8-is-uppercase'.
59536         * modules/unicase/u8-is-uppercase-tests: New file.
59537         * tests/unicase/test-u8-is-uppercase.c: New file.
59538         * tests/unicase/test-is-uppercase.h: New file.
59540         New module 'unicase/u32-is-uppercase'.
59541         * lib/unicase/u32-is-uppercase.c: New file.
59542         * modules/unicase/u32-is-uppercase: New file.
59544         New module 'unicase/u16-is-uppercase'.
59545         * lib/unicase/u16-is-uppercase.c: New file.
59546         * modules/unicase/u16-is-uppercase: New file.
59548         New module 'unicase/u8-is-uppercase'.
59549         * lib/unicase/u8-is-uppercase.c: New file.
59550         * modules/unicase/u8-is-uppercase: New file.
59552         New module 'unicase/u32-is-invariant'.
59553         * lib/unicase/u32-is-invariant.c: New file.
59554         * modules/unicase/u32-is-invariant: New file.
59556         New module 'unicase/u16-is-invariant'.
59557         * lib/unicase/u16-is-invariant.c: New file.
59558         * modules/unicase/u16-is-invariant: New file.
59560         New module 'unicase/u8-is-invariant'.
59561         * lib/unicase/u8-is-invariant.c: New file.
59562         * lib/unicase/invariant.h: New file.
59563         * lib/unicase/u-is-invariant.h: New file.
59564         * modules/unicase/u8-is-invariant: New file.
59566         Tests for module 'unicase/u32-casecoll'.
59567         * modules/unicase/u32-casecoll-tests: New file.
59568         * tests/unicase/test-u32-casecoll.c: New file.
59570         Tests for module 'unicase/u16-casecoll'.
59571         * modules/unicase/u16-casecoll-tests: New file.
59572         * tests/unicase/test-u16-casecoll.c: New file.
59574         Tests for module 'unicase/u8-casecoll'.
59575         * modules/unicase/u8-casecoll-tests: New file.
59576         * tests/unicase/test-u8-casecoll.c: New file.
59578         New module 'unicase/u32-casecoll'.
59579         * lib/unicase/u32-casecoll.c: New file.
59580         * modules/unicase/u32-casecoll: New file.
59582         New module 'unicase/u16-casecoll'.
59583         * lib/unicase/u16-casecoll.c: New file.
59584         * modules/unicase/u16-casecoll: New file.
59586         New module 'unicase/u8-casecoll'.
59587         * lib/unicase/u8-casecoll.c: New file.
59588         * lib/unicase/u-casecoll.h: New file.
59589         * modules/unicase/u8-casecoll: New file.
59591         New module 'unicase/u32-casexfrm'.
59592         * lib/unicase/u32-casexfrm.c: New file.
59593         * modules/unicase/u32-casexfrm: New file.
59595         New module 'unicase/u16-casexfrm'.
59596         * lib/unicase/u16-casexfrm.c: New file.
59597         * modules/unicase/u16-casexfrm: New file.
59599         New module 'unicase/u8-casexfrm'.
59600         * lib/unicase/u8-casexfrm.c: New file.
59601         * lib/unicase/u-casexfrm.h: New file.
59602         * modules/unicase/u8-casexfrm: New file.
59604         Tests for module 'unicase/u32-casecmp'.
59605         * modules/unicase/u32-casecmp-tests: New file.
59606         * tests/unicase/test-u32-casecmp.c: New file.
59608         Tests for module 'unicase/u16-casecmp'.
59609         * modules/unicase/u16-casecmp-tests: New file.
59610         * tests/unicase/test-u16-casecmp.c: New file.
59612         Tests for module 'unicase/u8-casecmp'.
59613         * modules/unicase/u8-casecmp-tests: New file.
59614         * tests/unicase/test-u8-casecmp.c: New file.
59615         * tests/unicase/test-casecmp.h: New file.
59617         New module 'unicase/u32-casecmp'.
59618         * lib/unicase/u32-casecmp.c: New file.
59619         * modules/unicase/u32-casecmp: New file.
59621         New module 'unicase/u16-casecmp'.
59622         * lib/unicase/u16-casecmp.c: New file.
59623         * modules/unicase/u16-casecmp: New file.
59625         New module 'unicase/u8-casecmp'.
59626         * lib/unicase/u8-casecmp.c: New file.
59627         * lib/unicase/u-casecmp.h: New file.
59628         * modules/unicase/u8-casecmp: New file.
59630         Tests for module 'unicase/u32-casefold'.
59631         * modules/unicase/u32-casefold-tests: New file.
59632         * tests/unicase/test-u32-casefold.c: New file.
59634         Tests for module 'unicase/u16-casefold'.
59635         * modules/unicase/u16-casefold-tests: New file.
59636         * tests/unicase/test-u16-casefold.c: New file.
59638         Tests for module 'unicase/u8-casefold'.
59639         * modules/unicase/u8-casefold-tests: New file.
59640         * tests/unicase/test-u8-casefold.c: New file.
59642         New module 'unicase/u32-casefold'.
59643         * lib/unicase/u32-casefold.c: New file.
59644         * modules/unicase/u32-casefold: New file.
59646         New module 'unicase/u16-casefold'.
59647         * lib/unicase/u16-casefold.c: New file.
59648         * modules/unicase/u16-casefold: New file.
59650         New module 'unicase/u8-casefold'.
59651         * lib/unicase/u8-casefold.c: New file.
59652         * lib/unicase/u-casefold.h: New file.
59653         * modules/unicase/u8-casefold: New file.
59655         New module 'unicase/tocasefold'.
59656         * lib/unicase/casefold.h: New file.
59657         * lib/unicase/tocasefold.c: New file.
59658         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
59659         * modules/unicase/tocasefold: New file.
59661         Tests for module 'unicase/u32-totitle'.
59662         * modules/unicase/u32-totitle-tests: New file.
59663         * tests/unicase/test-u32-totitle.c: New file.
59665         Tests for module 'unicase/u16-totitle'.
59666         * modules/unicase/u16-totitle-tests: New file.
59667         * tests/unicase/test-u16-totitle.c: New file.
59669         Tests for module 'unicase/u8-totitle'.
59670         * modules/unicase/u8-totitle-tests: New file.
59671         * tests/unicase/test-u8-totitle.c: New file.
59673         New module 'unicase/u32-totitle'.
59674         * lib/unicase/u32-totitle.c: New file.
59675         * modules/unicase/u32-totitle: New file.
59677         New module 'unicase/u16-totitle'.
59678         * lib/unicase/u16-totitle.c: New file.
59679         * modules/unicase/u16-totitle: New file.
59681         New module 'unicase/u8-totitle'.
59682         * lib/unicase/u8-totitle.c: New file.
59683         * lib/unicase/u-totitle.h: New file.
59684         * modules/unicase/u8-totitle: New file.
59686         Tests for module 'unicase/u32-tolower'.
59687         * modules/unicase/u32-tolower-tests: New file.
59688         * tests/unicase/test-u32-tolower.c: New file.
59690         Tests for module 'unicase/u16-tolower'.
59691         * modules/unicase/u16-tolower-tests: New file.
59692         * tests/unicase/test-u16-tolower.c: New file.
59694         Tests for module 'unicase/u8-tolower'.
59695         * modules/unicase/u8-tolower-tests: New file.
59696         * tests/unicase/test-u8-tolower.c: New file.
59698         New module 'unicase/u32-tolower'.
59699         * lib/unicase/u32-tolower.c: New file.
59700         * modules/unicase/u32-tolower: New file.
59702         New module 'unicase/u16-tolower'.
59703         * lib/unicase/u16-tolower.c: New file.
59704         * modules/unicase/u16-tolower: New file.
59706         New module 'unicase/u8-tolower'.
59707         * lib/unicase/u8-tolower.c: New file.
59708         * modules/unicase/u8-tolower: New file.
59710         Tests for module 'unicase/u32-toupper'.
59711         * modules/unicase/u32-toupper-tests: New file.
59712         * tests/unicase/test-u32-toupper.c: New file.
59714         Tests for module 'unicase/u16-toupper'.
59715         * modules/unicase/u16-toupper-tests: New file.
59716         * tests/unicase/test-u16-toupper.c: New file.
59718         Tests for module 'unicase/u8-toupper'.
59719         * modules/unicase/u8-toupper-tests: New file.
59720         * tests/unicase/test-u8-toupper.c: New file.
59722         New module 'unicase/u32-toupper'.
59723         * lib/unicase/u32-toupper.c: New file.
59724         * modules/unicase/u32-toupper: New file.
59726         New module 'unicase/u16-toupper'.
59727         * lib/unicase/u16-toupper.c: New file.
59728         * modules/unicase/u16-toupper: New file.
59730         New module 'unicase/u8-toupper'.
59731         * lib/unicase/u8-toupper.c: New file.
59732         * modules/unicase/u8-toupper: New file.
59734         New module 'unicase/u32-casemap'.
59735         * lib/unicase/u32-casemap.c: New file.
59736         * modules/unicase/u32-casemap: New file.
59738         New module 'unicase/u16-casemap'.
59739         * lib/unicase/u16-casemap.c: New file.
59740         * modules/unicase/u16-casemap: New file.
59742         New module 'unicase/u8-casemap'.
59743         * lib/unicase/unicasemap.h: New file.
59744         * lib/unicase/u8-casemap.c: New file.
59745         * lib/unicase/u-casemap.h: New file.
59746         * modules/unicase/u8-casemap: New file.
59748         New module 'unicase/special-casing'.
59749         * lib/unicase/special-casing.h: New file.
59750         * lib/unicase/special-casing.c: New file.
59751         * lib/unicase/special-casing-table.gperf: New file, generated by
59752         gen-uni-tables.c.
59753         * modules/unicase/special-casing: New file.
59755         Tests for module 'unicase/locale-language'.
59756         * modules/unicase/locale-language-tests: New file.
59757         * tests/unicase/test-locale-language.sh: New file.
59758         * tests/unicase/test-locale-language.c: New file.
59760         New module 'unicase/locale-language'.
59761         * lib/unicase/locale-language.c: New file.
59762         * lib/unicase/locale-languages.gperf: New file.
59763         * modules/unicase/locale-language: New file.
59765         Generate more tables for case conversion and case folding.
59766         * lib/gen-uni-tables.c (SCC_*): New enum items.
59767         (struct special_casing_rule): New type.
59768         (casing_rules, num_casing_rules, allocated_casing_rules): New
59769         variables.
59770         (add_casing_rule, fill_casing_rules): New functions.
59771         (struct casefold_rule): New type.
59772         (casefolding_rules, num_casefolding_rules,
59773         allocated_casefolding_rules): New variables.
59774         (fill_casefolding_rules): New function.
59775         (unicode_casefold): New variable.
59776         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
59777         sort_casing_rules, output_casing_rules): New functions.
59778         (main): Accept to more arguments: SpecialCasing.txt and
59779         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
59780         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
59781         Output mapping for casefolding.
59783         * lib/unicase.h: Include stdbool.h, uninorm.h.
59784         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
59785         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
59786         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
59787         arguments.
59788         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
59789         resultp arguments.
59790         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
59791         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
59792         resultp arguments.
59793         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
59794         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
59795         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
59796         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
59797         declarations.
59798         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
59800 2009-03-08  Bruno Haible  <bruno@clisp.org>
59802         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
59803         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
59804         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
59805         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
59807 2009-03-07  Bruno Haible  <bruno@clisp.org>
59809         Adjust u*_normcmp, u*_normcoll API.
59810         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
59811         u16_normcoll, u32_normcoll): Change failure conventions.
59812         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
59813         errno and return -1.
59814         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
59816 2009-03-07  Bruno Haible  <bruno@clisp.org>
59818         Tests for module 'uninorm/u32-normcoll'.
59819         * modules/uninorm/u32-normcoll-tests: New file.
59820         * tests/uninorm/test-u32-normcoll.c: New file.
59822         Tests for module 'uninorm/u16-normcoll'.
59823         * modules/uninorm/u16-normcoll-tests: New file.
59824         * tests/uninorm/test-u16-normcoll.c: New file.
59826         Tests for module 'uninorm/u8-normcoll'.
59827         * modules/uninorm/u8-normcoll-tests: New file.
59828         * tests/uninorm/test-u8-normcoll.c: New file.
59830 2009-03-07  Bruno Haible  <bruno@clisp.org>
59832         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
59833         tests/uninorm/test-u32-normcmp.c.
59834         * tests/uninorm/test-u32-normcmp.c: Include it.
59835         (test_nonascii): New function, extracted from main. Add some more
59836         tests.
59837         (main): Invoke test_ascii and test_nonascii.
59838         * modules/uninorm/u32-normcmp-tests (Files): Add
59839         tests/uninorm/test-u32-normcmp.h.
59840         (Depends-on): Remove uninorm/u32-normcmp.
59842         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
59843         tests/uninorm/test-u16-normcmp.c.
59844         * tests/uninorm/test-u16-normcmp.c: Include it.
59845         (test_nonascii): New function, extracted from main. Add some more
59846         tests.
59847         (main): Invoke test_ascii and test_nonascii.
59848         * modules/uninorm/u16-normcmp-tests (Files): Add
59849         tests/uninorm/test-u16-normcmp.h.
59850         (Depends-on): Remove uninorm/u16-normcmp.
59852         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
59853         tests/uninorm/test-u8-normcmp.c.
59854         * tests/uninorm/test-u8-normcmp.c: Include it.
59855         (test_nonascii): New function, extracted from main. Add some more
59856         tests.
59857         (main): Invoke test_ascii and test_nonascii.
59858         * modules/uninorm/u8-normcmp-tests (Files): Add
59859         tests/uninorm/test-u8-normcmp.h.
59860         (Depends-on): Remove uninorm/u8-normcmp.
59862 2009-03-07  Bruno Haible  <bruno@clisp.org>
59864         New module 'uninorm/u32-normcoll'.
59865         * lib/uninorm/u32-normcoll.c: New file.
59866         * modules/uninorm/u32-normcoll: New file.
59868         New module 'uninorm/u16-normcoll'.
59869         * lib/uninorm/u16-normcoll.c: New file.
59870         * modules/uninorm/u16-normcoll: New file.
59872         New module 'uninorm/u8-normcoll'.
59873         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
59874         declarations.
59875         * lib/uninorm/u8-normcoll.c: New file.
59876         * lib/uninorm/u-normcoll.h: New file.
59877         * modules/uninorm/u8-normcoll: New file.
59879         New module 'uninorm/u32-normxfrm'.
59880         * lib/uninorm/u32-normxfrm.c: New file.
59881         * modules/uninorm/u32-normxfrm: New file.
59883         New module 'uninorm/u16-normxfrm'.
59884         * lib/uninorm/u16-normxfrm.c: New file.
59885         * modules/uninorm/u16-normxfrm: New file.
59887         New module 'uninorm/u8-normxfrm'.
59888         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
59889         declarations.
59890         * lib/uninorm/u8-normxfrm.c: New file.
59891         * lib/uninorm/u-normxfrm.h: New file.
59892         * modules/uninorm/u8-normxfrm: New file.
59894 2009-03-07  Bruno Haible  <bruno@clisp.org>
59896         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
59897         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
59898         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
59900 2009-03-07  Bruno Haible  <bruno@clisp.org>
59902         New module 'memxfrm'.
59903         * lib/memxfrm.h: New file.
59904         * lib/memxfrm.c: New file.
59905         * modules/memxfrm: New file.
59907 2009-03-07  Bruno Haible  <bruno@clisp.org>
59909         New module 'memcmp2'.
59910         * lib/memcmp2.h: New file.
59911         * lib/memcmp2.c: New file.
59912         * modules/memcmp2: New file.
59914 2009-03-07  Bruno Haible  <bruno@clisp.org>
59916         Tests for module 'uninorm/decomposing-form'.
59917         * modules/uninorm/decomposing-form-tests: New file.
59918         * tests/uninorm/test-decomposing-form.c: New file.
59920         New module 'uninorm/decomposing-form'.
59921         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
59922         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
59923         Add 'decomposing_variant' field.
59924         * lib/uninorm/decomposing-form.c: New file.
59925         * lib/uninorm/nfc.c (uninorm_nfc): Update.
59926         * lib/uninorm/nfd.c (uninorm_nfd): Update.
59927         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
59928         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
59929         * modules/uninorm/decomposing-form: New file.
59930         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
59931         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
59933 2009-03-07  Bruno Haible  <bruno@clisp.org>
59935         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
59936         strings.
59938 2009-03-06  Bruno Haible  <bruno@clisp.org>
59940         Tests for module 'uninorm/u32-normcmp'.
59941         * tests/uninorm/test-u32-normcmp.c: New file.
59942         * modules/uninorm/u32-normcmp-tests: New file.
59944         Tests for module 'uninorm/u16-normcmp'.
59945         * tests/uninorm/test-u16-normcmp.c: New file.
59946         * modules/uninorm/u16-normcmp-tests: New file.
59948         Tests for module 'uninorm/u8-normcmp'.
59949         * tests/uninorm/test-u8-normcmp.c: New file.
59950         * modules/uninorm/u8-normcmp-tests: New file.
59952         New module 'uninorm/u32-normcmp'.
59953         * lib/uninorm/u32-normcmp.c: New file.
59954         * modules/uninorm/u32-normcmp: New file.
59956         New module 'uninorm/u16-normcmp'.
59957         * lib/uninorm/u16-normcmp.c: New file.
59958         * modules/uninorm/u16-normcmp: New file.
59960         New module 'uninorm/u8-normcmp'.
59961         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
59962         declarations.
59963         * lib/uninorm/u8-normcmp.c: New file.
59964         * lib/uninorm/u-normcmp.h: New file.
59965         * modules/uninorm/u8-normcmp: New file.
59967 2009-03-06  Bruno Haible  <bruno@clisp.org>
59969         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
59970         Reported by Eric Blake.
59972 2009-03-06  Eric Blake  <ebb9@byu.net>
59973             Bruno Haible  <bruno@clisp.org>
59975         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
59976         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
59977         condition.
59978         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
59979         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
59980         condition.
59981         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
59983 2009-03-06  Eric Blake  <ebb9@byu.net>
59985         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
59986         to avoid compiler warnings.
59987         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
59989 2009-03-05  Bruno Haible  <bruno@clisp.org>
59991         * tests/test-ftell.c (main): Disable test beyond end of file on
59992         FreeMiNT.
59993         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
59995 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
59997         * lib/filevercmp.c: Move hidden files up in ordering.
59998         * tests/test-filevercmp.c: Add tests for hidden files.
60000 2009-03-04  Bruno Haible  <bruno@clisp.org>
60002         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
60003         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
60004         AM_CFLAGS.
60005         Reported by Simon Josefsson.
60007 2009-03-03  Bruno Haible  <bruno@clisp.org>
60009         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
60010         Reported by Simon Josefsson.
60012         * doc/ld-version-script.texi: Update node reference.
60014 2009-03-03  Bruno Haible  <bruno@clisp.org>
60016         * modules/visibility (License): Change to 'unlimited'.
60017         Suggested by Simon Josefsson.
60019 2009-03-03  Jim Meyering  <meyering@redhat.com>
60021         unlinkdir: cannot_unlink_dir may modify process state
60022         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
60023         it's neither thread-safe nor appropriate for use in a library.
60025 2009-03-03  Eric Blake  <ebb9@byu.net>
60027         test-closein: silence test under Darwin
60028         * tests/test-closein.sh: Ignore stderr from cat, since we don't
60029         care if it dies from EPIPE or EBADF.
60031 2009-03-03  Bruno Haible  <bruno@clisp.org>
60033         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
60034         earlier.
60035         * doc/visibility.texi: Fix @node and @section.
60037 2009-03-03  Simon Josefsson  <simon@josefsson.org>
60039         * doc/gnulib.texi: Link to sections for ld version script and
60040         visibility.
60041         * doc/visibility.texi: Add @node and @section.
60042         * modules/ld-version-script: New module.
60043         * m4/ld-version-script.m4: New file.
60044         * doc/ld-version-script.texi: New file.
60046 2009-03-02  David Lutterkort  <lutter@redhat.com>
60048         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
60049         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
60051 2009-03-02  Bruno Haible  <bruno@clisp.org>
60053         * doc/visibility.texi: Mention libtool's -export-symbols option.
60055 2009-03-02  Jim Meyering  <meyering@redhat.com>
60057         announce-gen: new option: --no-print-checksums
60058         * build-aux/announce-gen (usage): Describe it.
60059         (print_checksums): Print a newline here, not in the [*] footnote.
60060         (main): Honor it.
60062 2009-03-01  Bruno Haible  <bruno@clisp.org>
60064         Use socklen_t in the native Windows replacements prototypes.
60065         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
60066         instead of 'int'.
60067         * lib/getsockopt.c (rpl_getsockopt): Likewise.
60068         * lib/setsockopt.c (rpl_setsockopt): Likewise.
60069         * modules/getsockopt (Depends-on): Add socklen.
60070         * modules/setsockopt (Depends-on): Add socklen.
60072 2009-03-01  Bruno Haible  <bruno@clisp.org>
60074         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
60075         least 4.2.
60077 2009-03-01  Eric Blake  <ebb9@byu.net>
60078             Bruno Haible  <bruno@clisp.org>
60080         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
60081         error messages.
60082         * lib/wait-process.c (wait_subprocess): Omit error message about
60083         deadly signal sent to the child of termsigp != NULL.
60085 2009-03-01  Eric Blake  <ebb9@byu.net>
60087         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
60089 2009-03-01  Bruno Haible  <bruno@clisp.org>
60091         Avoid a gcc warning.
60092         * tests/test-sched.c (b): Make global.
60093         Reported by Eric Blake.
60095 2009-01-19  Martin Lambers  <marlam@marlam.de>
60097         Provide POSIX semantics for socket timeout options on W32.
60098         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
60099         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
60100         * modules/setsockopt: Depend on sys_time module for struct timeval.
60101         * modules/getsockopt: Depend on sys_time module for struct timeval.
60103 2009-03-01  Simon Josefsson  <simon@josefsson.org>
60105         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
60106         __USE_GNU, for consistency with netdb.in.h.
60107         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
60109 2009-03-01  Bruno Haible  <bruno@clisp.org>
60111         More support for FreeMiNT.
60112         * lib/fseeko.c (rpl_fseeko): Complete last commit.
60113         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
60115 2009-03-01  Bruno Haible  <bruno@clisp.org>
60117         More support for FreeMiNT.
60118         * lib/fpurge.c (fpurge): Correct last commit.
60119         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
60121 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60123         Fix unportable awk script in vc-list-files.
60124         * build-aux/vc-list-files: In the replacement awk script, use
60125         substr with a second argument of 1, not zero.
60126         Report by Simon Josefsson.
60128 2009-02-28  Bruno Haible  <bruno@clisp.org>
60130         More support for FreeMiNT.
60131         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
60132         to FreeMiNT today.
60133         * lib/fwriting.c (fwriting): Likewise.
60134         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
60136 2009-02-28  Bruno Haible  <bruno@clisp.org>
60138         * tests/test-freadseek.c (main): Disable test beyond end of file on
60139         FreeMiNT.
60140         * tests/test-ftello.c (main): Likewise.
60141         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
60143 2009-02-28  Bruno Haible  <bruno@clisp.org>
60145         Add tentative support for FreeMiNT.
60146         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
60147         * lib/fpurge.c (fpurge): Likewise.
60148         * lib/freadable.c (freadable): Likewise.
60149         * lib/freading.c (freading): Likewise.
60150         * lib/freadptr.c (freadptr): Likewise.
60151         * lib/freadseek.c (freadptrinc): Likewise.
60152         * lib/fseeko.c (rpl_fseeko): Likewise.
60153         * lib/fseterr.c (fseterr): Likewise.
60154         * lib/fwritable.c (fwritable): Likewise.
60155         * lib/fwriting.c (fwriting): Likewise.
60156         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
60157         Hourihane.
60158         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
60160 2009-02-28  Bruno Haible  <bruno@clisp.org>
60162         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
60163         SIGCHLD.
60164         Reported by Jim Meyering.
60166 2009-02-28  Bruno Haible  <bruno@clisp.org>
60168         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
60169         Mention the results of these tests on various platforms.
60170         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
60171         order.
60172         * doc/posix-functions/printf.texi: Likewise.
60173         * doc/posix-functions/snprintf.texi: Likewise.
60174         * doc/posix-functions/sprintf.texi: Likewise.
60175         * doc/posix-functions/vfprintf.texi: Likewise.
60176         * doc/posix-functions/vprintf.texi: Likewise.
60177         * doc/posix-functions/vsnprintf.texi: Likewise.
60178         * doc/posix-functions/vsprintf.texi: Likewise.
60179         * doc/glibc-functions/obstack_printf.texi: Likewise.
60180         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
60182 2009-02-28  Bruno Haible  <bruno@clisp.org>
60184         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
60185         Reported by Loïc Minier <lool@dooz.org>.
60187 2009-02-27  Bruno Haible  <bruno@clisp.org>
60189         * gnulib-tool (func_import): Make the sed expression used to create the
60190         sed script for updating the .gitignore file POSIX compliant.
60191         Reported by Eric Blake.
60193 2009-02-27  Bruno Haible  <bruno@clisp.org>
60195         * gnulib-tool (sed): Don't alias as "sed --posix".
60196         Reported by Eric Blake.
60198 2009-02-27  Bruno Haible  <bruno@clisp.org>
60200         Avoid test link errors.
60201         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
60202         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
60203         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
60204         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
60205         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
60207 2009-02-27  Bruno Haible  <bruno@clisp.org>
60209         Avoid spurious "(cached)" in configure output.
60210         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
60211         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
60212         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
60213         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
60214         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
60215         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
60216         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
60217         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
60218         Reported by Eric Blake.
60220 2009-02-27  Eric Blake  <ebb9@byu.net>
60222         printf: fix regression in previous patch
60223         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
60225 2009-02-27  Bruno Haible  <bruno@clisp.org>
60227         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
60228         value.
60229         * lib/stdint.in.h: Likewise.
60230         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
60232 2009-02-27  Eric Blake  <ebb9@byu.net>
60234         doc: mention more functions added in cygwin 1.7.0
60235         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
60236         addition.
60237         * doc/posix-functions/open_wmemstream.texi: Likewise.
60238         * doc/posix-functions/wcsnlen.texi: Likewise.
60239         * doc/posix-functions/wcsnrtombs.texi: Likewise.
60240         * doc/posix-functions/wcstod.texi: Likewise.
60241         * doc/posix-functions/wcstof.texi: Likewise.
60242         * doc/posix-functions/wcstoimax.texi: Likewise.
60243         * doc/posix-functions/wcstok.texi: Likewise.
60244         * doc/posix-functions/wcstoumax.texi: Likewise.
60246         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
60247         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
60248         * doc/posix-functions/fprintf.texi: Update.
60249         * doc/posix-functions/printf.texi: Update.
60250         * doc/posix-functions/snprintf.texi: Update.
60251         * doc/posix-functions/sprintf.texi: Update.
60252         * doc/posix-functions/vfprintf.texi: Update.
60253         * doc/posix-functions/vprintf.texi: Update.
60254         * doc/posix-functions/vsnprintf.texi: Update.
60255         * doc/posix-functions/vsprintf.texi: Update.
60256         * doc/glibc-functions/obstack_printf.texi: Update.
60257         * doc/glibc-functions/obstack_vprintf.texi: Update.
60259 2009-02-26  Eric Blake  <ebb9@byu.net>
60261         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
60262         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
60263         compilation bug by using runtime conversion.
60264         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
60265         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
60266         * modules/ceill-tests (Files): Use nan.h.
60267         * modules/floorl-tests (Files): Likewise.
60268         * modules/frexpl-tests (Files): Likewise.
60269         * modules/isnanl-tests (Files): Likewise.
60270         * modules/ldexpl-tests (Files): Likewise.
60271         * modules/roundl-tests (Files): Likewise.
60272         * modules/truncl-tests (Files): Likewise.
60273         * tests/test-ceill.c (main): Use a working NaN.
60274         * tests/test-floorl.c (main): Likewise.
60275         * tests/test-frexpl.c (main): Likewise.
60276         * tests/test-isnan.c (test_long_double): Likewise.
60277         * tests/test-isnanl.h (main): Likewise.
60278         * tests/test-ldexpl.h (main): Likewise.
60279         * tests/test-roundl.h (main): Likewise.
60280         * tests/test-truncl.h (main): Likewise.
60281         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
60283 2009-02-26  Eric Blake  <ebb9@byu.net>
60284             Bruno Haible  <bruno@clisp.org>
60286         Work around a *printf bug with %ls on Solaris.
60287         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
60288         precision is specified, sprintf stops converting the wide string
60289         argument when the number of bytes that have been produced by this
60290         conversion equals or exceeds the precision.
60291         * doc/posix-functions/fprintf.texi: Update.
60292         * doc/posix-functions/printf.texi: Update.
60293         * doc/posix-functions/snprintf.texi: Update.
60294         * doc/posix-functions/sprintf.texi: Update.
60295         * doc/posix-functions/vfprintf.texi: Update.
60296         * doc/posix-functions/vprintf.texi: Update.
60297         * doc/posix-functions/vsnprintf.texi: Update.
60298         * doc/posix-functions/vsprintf.texi: Update.
60299         * doc/glibc-functions/obstack_printf.texi: Update.
60300         * doc/glibc-functions/obstack_vprintf.texi: Update.
60302 2009-02-26  Eric Blake  <ebb9@byu.net>
60304         stdlib: favor compiler check of random.h
60305         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
60306         to avoid an ObjC random.h installed by Swarm.
60308 2009-02-26  Bruno Haible  <bruno@clisp.org>
60310         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
60311         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
60312         Reported by Gary V. Vaughan <gary@gnu.org>.
60314 2009-02-26  Bruno Haible  <bruno@clisp.org>
60316         Fix *printf behaviour regarding the %ls directive.
60317         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
60318         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
60319         NEED_PRINTF_DIRECTIVE_LS.
60320         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
60321         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60322         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60323         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
60324         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
60325         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
60326         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
60327         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60328         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60329         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60330         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60331         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
60332         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60333         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60334         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60335         * doc/posix-functions/fprintf.texi: Update.
60336         * doc/posix-functions/printf.texi: Update.
60337         * doc/posix-functions/snprintf.texi: Update.
60338         * doc/posix-functions/sprintf.texi: Update.
60339         * doc/posix-functions/vfprintf.texi: Update.
60340         * doc/posix-functions/vprintf.texi: Update.
60341         * doc/posix-functions/vsnprintf.texi: Update.
60342         * doc/posix-functions/vsprintf.texi: Update.
60343         * doc/glibc-functions/obstack_printf.texi: Update.
60344         * doc/glibc-functions/obstack_vprintf.texi: Update.
60345         Reported by Eric Blake.
60347 2009-02-25  Bruno Haible  <bruno@clisp.org>
60349         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
60350         with known value.
60351         Reported by Gary V. Vaughan <gary@gnu.org>.
60353 2009-02-25  Bruno Haible  <bruno@clisp.org>
60355         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
60356         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
60357         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
60358         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
60359         Reported by Gary V. Vaughan <gary@gnu.org>.
60361 2009-02-25  Bruno Haible  <bruno@clisp.org>
60363         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
60364         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
60365         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
60366         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
60367         Reported by Gary V. Vaughan <gary@gnu.org>.
60369 2009-02-25  Eric Blake  <ebb9@byu.net>
60371         tests: skip fseek/ftell tests if ungetc is broken
60372         * m4/ungetc.m4: New file.
60373         * modules/fseek-tests: Split test, so ungetc dependency is
60374         separate from rest of test.
60375         * modules/fseeko-tests: Likewise.
60376         * modules/ftell-tests: Likewise.
60377         * modules/ftello-tests: Likewise.
60378         * tests/test-fseek.c (main): Isolate ungetc dependency.
60379         * tests/test-fseeko.c (main): Likewise.
60380         * tests/test-ftell.c (main): Likewise.
60381         * tests/test-ftello.c (main): Likewise.
60382         * tests/test-fseek2.sh: New file.
60383         * tests/test-fseeko2.sh: Likewise.
60384         * tests/test-ftell2.sh: Likewise.
60385         * tests/test-ftello2.sh: Likewise.
60387 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
60389         test-getaddrinfo: fix usage of skip return code 77
60390         * tests/test-gettaddrinfo.c: Return skip code 77 only
60391         for first occurrence of skip (4x77 is not 77)
60393 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
60395         strtod: avoid C99 decl-after-statement
60396         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
60398 2009-02-24  Eric Blake  <ebb9@byu.net>
60400         strtod: detect HP-UX 11.31 bug
60401         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
60402         Reported by Gary V. Vaughan.
60404 2009-02-23  Bruno Haible  <bruno@clisp.org>
60406         Fix invalid read past end of memory block.
60407         * lib/vasnprintf.c (DCHAR_SET): Define.
60408         (local_wcslen): Define only when needed.
60409         (local_strnlen, local_wcsnlen): New functions.
60410         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
60411         directives that involve a conversion ourselves.
60412         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
60413         wcsnlen, mbrtowc, wcrtomb.
60414         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
60415         * tests/test-vasprintf-posix.c (test_function): Likewise.
60416         * tests/test-snprintf-posix.h (test_function): Likewise.
60417         * tests/test-sprintf-posix.h (test_function): Likewise.
60418         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60420 2009-02-22  Bruno Haible  <bruno@clisp.org>
60422         Implement new clarified decomposition of Hangul syllables.
60423         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
60424         of type LTV, return only a pairwise decomposition.
60425         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
60426         Likewise.
60427         * tests/uninorm/test-decomposition.c (main): Updated expected result.
60428         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
60429         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
60431 2009-02-22  Bruno Haible  <bruno@clisp.org>
60433         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
60434         zero-length results and shrink excess allocated memory.
60435         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
60436         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
60437         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
60438         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
60439         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
60440         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
60441         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
60442         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
60443         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
60444         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
60445         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
60446         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
60448 2009-02-21  Bruno Haible  <bruno@clisp.org>
60450         * doc/gnulib.texi: Include safe-alloc.texi earlier.
60451         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
60452         spaces after a period. Put a space between a macro name and its
60453         argument list. Trivial rewordings.
60454         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
60455         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
60456         (main): Return 0 explicitly.
60458 2009-02-21  Bruno Haible  <bruno@clisp.org>
60460         Tests for module 'uninorm/filter'.
60461         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
60462         * modules/uninorm/filter-tests: New file.
60464         New module 'uninorm/filter'.
60465         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
60466         uninorm_filter_flush, uninorm_filter_free): New declarations.
60467         * lib/uninorm/uninorm-filter.c: New file.
60468         * modules/uninorm/filter: New file.
60470 2009-02-21  Bruno Haible  <bruno@clisp.org>
60472         Tests for module 'uninorm/nfkc'.
60473         * tests/uninorm/test-nfkc.c: New file.
60474         * tests/uninorm/test-u8-nfkc.c: New file.
60475         * tests/uninorm/test-u16-nfkc.c: New file.
60476         * tests/uninorm/test-u32-nfkc.c: New file.
60477         * tests/uninorm/test-u32-nfkc-big.sh: New file.
60478         * tests/uninorm/test-u32-nfkc-big.c: New file.
60479         * modules/uninorm/nfkc-tests: New file.
60481         New module 'uninorm/nfkc'.
60482         * lib/uninorm/nfkc.c: New file.
60483         * modules/uninorm/nfkc: New file.
60485         Tests for module 'uninorm/nfkd'.
60486         * tests/uninorm/test-nfkd.c: New file.
60487         * tests/uninorm/test-u8-nfkd.c: New file.
60488         * tests/uninorm/test-u16-nfkd.c: New file.
60489         * tests/uninorm/test-u32-nfkd.c: New file.
60490         * tests/uninorm/test-u32-nfkd-big.sh: New file.
60491         * tests/uninorm/test-u32-nfkd-big.c: New file.
60492         * modules/uninorm/nfkd-tests: New file.
60494         New module 'uninorm/nfkd'.
60495         * lib/uninorm/nfkd.c: New file.
60496         * modules/uninorm/nfkd: New file.
60498         Tests for module 'uninorm/nfc'.
60499         * tests/uninorm/test-nfc.c: New file.
60500         * tests/uninorm/test-u8-nfc.c: New file.
60501         * tests/uninorm/test-u16-nfc.c: New file.
60502         * tests/uninorm/test-u32-nfc.c: New file.
60503         * tests/uninorm/test-u32-nfc-big.sh: New file.
60504         * tests/uninorm/test-u32-nfc-big.c: New file.
60505         * modules/uninorm/nfc-tests: New file.
60507         New module 'uninorm/nfc'.
60508         * lib/uninorm/nfc.c: New file.
60509         * modules/uninorm/nfc: New file.
60511         Tests for module 'uninorm/nfd'.
60512         * tests/uninorm/test-nfd.c: New file.
60513         * tests/uninorm/test-u8-nfd.c: New file.
60514         * tests/uninorm/test-u16-nfd.c: New file.
60515         * tests/uninorm/test-u32-nfd.c: New file.
60516         * tests/uninorm/test-u32-nfd-big.sh: New file.
60517         * tests/uninorm/test-u32-nfd-big.c: New file.
60518         * tests/uninorm/test-u32-normalize-big.h: New file.
60519         * tests/uninorm/test-u32-normalize-big.c: New file.
60520         * tests/uninorm/NormalizationTest.txt: New file, created from
60521         Unicode 5.1.0 NormalizationTest.txt.
60522         * modules/uninorm/nfd-tests: New file.
60524         New module 'uninorm/nfd'.
60525         * lib/uninorm/nfd.c: New file.
60526         * modules/uninorm/nfd: New file.
60528         New module 'uninorm/u32-normalize'.
60529         * lib/uninorm/u32-normalize.c: New file.
60530         * modules/uninorm/u32-normalize: New file.
60532         New module 'uninorm/u16-normalize'.
60533         * lib/uninorm/u16-normalize.c: New file.
60534         * modules/uninorm/u16-normalize: New file.
60536         New module 'uninorm/u8-normalize'.
60537         * lib/uninorm/u8-normalize.c: New file.
60538         * lib/uninorm/normalize-internal.h: New file.
60539         * lib/uninorm/u-normalize-internal.h: New file.
60540         * modules/uninorm/u8-normalize: New file.
60542         New module 'uninorm/decompose-internal'.
60543         * lib/uninorm/decompose-internal.c: New file.
60544         * modules/uninorm/decompose-internal: New file.
60546         Tests for module 'uninorm/composition'.
60547         * tests/uninorm/test-composition.c: New file.
60548         * modules/uninorm/composition-tests: New file.
60550         New module 'uninorm/composition'.
60551         * lib/uninorm/composition.c: New file.
60552         * lib/uninorm/composition-table.gperf: New file, generated by
60553         gen-uni-tables.
60554         * modules/uninorm/composition: New file.
60556         Tests for module 'uninorm/compat-decomposition'.
60557         * tests/uninorm/test-compat-decomposition.c: New file.
60558         * modules/uninorm/compat-decomposition-tests: New file.
60560         New module 'uninorm/compat-decomposition'.
60561         * lib/uninorm/decompose-internal.h: New file.
60562         * lib/uninorm/compat-decomposition.c: New file.
60563         * modules/uninorm/compat-decomposition: New file.
60565         Tests for module 'uninorm/canonical-decomposition'.
60566         * tests/uninorm/test-canonical-decomposition.c: New file.
60567         * modules/uninorm/canonical-decomposition-tests: New file.
60569         New module 'uninorm/canonical-decomposition'.
60570         * lib/uninorm/canonical-decomposition.c: New file.
60571         * modules/uninorm/canonical-decomposition: New file.
60573         Tests for module 'uninorm/decomposition'.
60574         * tests/uninorm/test-decomposition.c: New file.
60575         * modules/uninorm/decomposition-tests: New file.
60577         New module 'uninorm/decomposition'.
60578         * lib/uninorm/decomposition.c: New file.
60579         * modules/uninorm/decomposition: New file.
60581         New module 'uninorm/decomposition-table'.
60582         * lib/uninorm/decomposition-table.h: New file.
60583         * lib/uninorm/decomposition-table.c: New file.
60584         * lib/uninorm/decomposition-table1.h: New file, generated by
60585         gen-uni-tables.
60586         * lib/uninorm/decomposition-table2.h: New file, generated by
60587         gen-uni-tables.
60588         * modules/uninorm/decomposition-table: New file.
60590         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
60591         (UC_DECOMP_*): New enumeration items.
60592         (get_decomposition): New function.
60593         (struct decomp_table): New type.
60594         (output_decomposition, output_decomposition_tables): New functions.
60595         (unicode_composition_exclusions): New variable.
60596         (fill_composition_exclusions, debug_output_composition_tables): New
60597         functions.
60598         (main): Accept one more argument. Invoke fill_composition_exclusions.
60599         Output decomposition and composition tables.
60601         New module 'uninorm/base'.
60602         * lib/uninorm.h: New file.
60603         * lib/unictype.h: Update comment.
60604         * modules/uninorm/base: New file.
60606 2009-02-21  David Lutterkort  <lutter@redhat.com>
60608         Tests for module 'safe-alloc'.
60609         * tests/test-safe-alloc.c: New file.
60610         * modules/safe-alloc-tests: New file.
60612         New module 'safe-alloc'.
60613         * lib/safe-alloc.h: New file.
60614         * lib/safe-alloc.c: New file.
60615         * m4/safe-alloc.m4: New file.
60616         * modules/safe-alloc: New file.
60617         * doc/safe-alloc.texi: New file.
60618         * doc/gnulib.texi: Include it.
60619         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
60620         safe-alloc.
60622 2009-02-18  Bruno Haible  <bruno@clisp.org>
60624         Fix link error on non-glibc systems.
60625         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
60626         variable.
60627         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
60629 2009-02-18  Jim Meyering  <meyering@redhat.com>
60631         fts: avoid used-uninitialized error due to recent change
60632         * lib/fts.c (fts_read): Guard uses of the new member,
60633         parent->fts_n_dirs_remaining, since it's not relevant for
60634         the parent of a directory specified on the command-line.
60636 2009-02-17  James Youngman  <jay@gnu.org>
60637             Bruno Haible  <bruno@clisp.org>
60639         * m4/include_next.m4: Reformulate comment.
60641 2009-02-16  Jim Meyering  <meyering@redhat.com>
60643         fts: add #if guards so that the fts_lgpl module still builds
60644         * lib/fts.c: Guard just-added hash-table-using parts with
60645         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
60646         Reported by Simon Josefsson.
60648 2009-02-15  Bruno Haible  <bruno@clisp.org>
60650         * modules/array-mergesort-tests: New file.
60651         * tests/test-array-mergesort.c: New file.
60653         New module 'array-mergesort'.
60654         * modules/array-mergesort: New file.
60655         * lib/array-mergesort.h: New file.
60657 2009-02-15  Bruno Haible  <bruno@clisp.org>
60659         Fix 2009-02-07 commit.
60660         * lib/gen-uni-tables.c (output_predicate, output_category,
60661         output_combclass, output_bidi_category, output_decimal_digit,
60662         output_digit, output_numeric, output_mirror, output_scripts,
60663         output_ident_category, output_simple_mapping): Fix format directives.
60664         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
60666 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
60668         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
60669         fixes are available from IBM.
60671 2009-02-13  Jim Meyering  <meyering@redhat.com>
60673         fts: arrange not to stat non-directories in more cases
60674         This makes GNU find (when it doesn't need to stat each file)
60675         *much* more efficient at traversing reiserfs file systems.
60676         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
60677         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
60678         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
60679         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
60680         (leaf_optimization_applies): New function.
60681         (LCO_hash, LCO_compare): New helper functions.
60682         (link_count_optimize_ok): New function.
60683         (fts_stat): Initialize new member (if dir).
60684         (fts_read): Decrement parent's fts_n_dirs_remaining count if
60685         we've just stat'ed a directory.  Skip the stat call when possible.
60686         ---
60687         Note this AFS-related exchange:
60688         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
60689         and note find's pioctl call in find/fstype.c.
60690         But that is necessary only if you want to enable the
60691         optimization for AFS, and for now, I don't.
60693         fts: move a function definition "up" (no semantic change)
60694         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
60695         "up" to precede upcoming use of a related function.
60697 2009-02-11  Jim Meyering  <meyering@redhat.com>
60699         fts: correct internal computation of nlinks (optimization-related)
60700         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
60701         whether the current entry is a directory, so don't test it.
60703 2009-02-10  Bruno Haible  <bruno@clisp.org>
60705         Tests for module 'uniwbrk/ulc-wordbreaks'.
60706         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
60707         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
60708         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
60710         Tests for module 'uniwbrk/u32-wordbreaks'.
60711         * modules/uniwbrk/u32-wordbreaks-tests: New file.
60712         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
60714         Tests for module 'uniwbrk/u16-wordbreaks'.
60715         * modules/uniwbrk/u16-wordbreaks-tests: New file.
60716         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
60718         Tests for module 'uniwbrk/u8-wordbreaks'.
60719         * modules/uniwbrk/u8-wordbreaks-tests: New file.
60720         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
60722 2009-02-10  Bruno Haible  <bruno@clisp.org>
60724         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
60725         property.
60726         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
60727         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
60728         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
60730 2009-02-10  Simon Josefsson  <simon@josefsson.org>
60732         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
60733         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
60735 2009-02-10  Bruno Haible  <bruno@clisp.org>
60737         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
60738         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
60739         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
60740         * lib/unilbrk/u8-possible-linebreaks.c: Update.
60741         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
60742         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
60744 2009-02-09  Simon Josefsson  <simon@josefsson.org>
60746         * lib/sockets.h (gl_fd_to_handle): New function.
60748         * tests/test-sockets.c: Call gl_fd_to_handle.
60750 2009-02-09  Bruno Haible  <bruno@clisp.org>
60752         * doc/havelib.texi: Document the conventions on bi-arch systems.
60754 2009-02-08  Bruno Haible  <bruno@clisp.org>
60756         Document the AC_LIB_LINKFLAGS macro.
60757         * doc/havelib.texi: New file, mostly written on 2005-05-24.
60758         * doc/gnulib.texi: Include it.
60760 2009-02-08  Bruno Haible  <bruno@clisp.org>
60762         Fix wrong order of sections, compared to TOC.
60763         * doc/gnulib.texi: Include relocatable-maint.texi after the
60764         "Regular expressions" node, not before.
60766 2009-02-08  Bruno Haible  <bruno@clisp.org>
60768         Tests for module 'unicase/totitle'.
60769         * modules/unicase/totitle-tests: New file.
60771         Tests for module 'unicase/tolower'.
60772         * modules/unicase/tolower-tests: New file.
60774         Tests for module 'unicase/toupper'.
60775         * modules/unicase/toupper-tests: New file.
60776         * tests/unicase/test-mapping-part1.h: New file.
60777         * tests/unicase/test-mapping-part2.h: New file.
60779         New module 'unicase/totitle'.
60780         * modules/unicase/totitle: New file.
60781         * lib/unicase/totitle.c: New file.
60783         New module 'unicase/tolower'.
60784         * modules/unicase/tolower: New file.
60785         * lib/unicase/tolower.c: New file.
60787         New module 'unicase/toupper'.
60788         * modules/unicase/toupper: New file.
60789         * lib/unicase/toupper.c: New file.
60790         * lib/unicase/simple-mapping.h: New file.
60792         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
60793         (mapping_table): New structure.
60794         (output_simple_mapping): New function.
60795         (main): Invoke output_simple_mapping_test and output_simple_mapping.
60796         * modules/gen-uni-tables (Description): Update.
60797         * lib/unicase/toupper.h: New file, automatically generated by
60798         gen-uni-tables.
60799         * lib/unicase/tolower.h: New file, automatically generated by
60800         gen-uni-tables.
60801         * lib/unicase/totitle.h: New file, automatically generated by
60802         gen-uni-tables.
60803         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
60804         gen-uni-tables.
60805         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
60806         gen-uni-tables.
60807         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
60808         gen-uni-tables.
60810         New module 'unicase/base'.
60811         * modules/unicase/base: New file.
60812         * lib/unicase.h: New file.
60814 2009-02-08  Bruno Haible  <bruno@clisp.org>
60816         New module 'uniwbrk/ulc-wordbreaks'.
60817         * modules/uniwbrk/ulc-wordbreaks: New file.
60818         * lib/uniwbrk/ulc-wordbreaks.c: New file.
60820         New module 'uniwbrk/u32-wordbreaks'.
60821         * modules/uniwbrk/u32-wordbreaks: New file.
60822         * lib/uniwbrk/u32-wordbreaks.c: New file.
60824         New module 'uniwbrk/u16-wordbreaks'.
60825         * modules/uniwbrk/u16-wordbreaks: New file.
60826         * lib/uniwbrk/u16-wordbreaks.c: New file.
60828         New module 'uniwbrk/u8-wordbreaks'.
60829         * modules/uniwbrk/u8-wordbreaks: New file.
60830         * lib/uniwbrk/u8-wordbreaks.c: New file.
60831         * lib/uniwbrk/u-wordbreaks.h: New file.
60833         New module 'uniwbrk/table'.
60834         * modules/uniwbrk/table: New file.
60835         * lib/uniwbrk/wbrktable.h: New file.
60836         * lib/uniwbrk/wbrktable.c: New file.
60838         New module 'uniwbrk/wordbreak-property'.
60839         * modules/uniwbrk/wordbreak-property: New file.
60840         * lib/uniwbrk/wordbreak-property.c: New file.
60842         * lib/gen-uni-tables.c (WBP_*): New enum items.
60843         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
60844         (unicode_org_wbp): New variable.
60845         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
60846         New functions.
60847         (wbp_table): New structure.
60848         (output_wbp, output_wbrk_tables): New functions.
60849         (main): Accept additional argument. Invoke fill_org_wbp,
60850         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
60851         output_wbrk_tables.
60852         * modules/gen-uni-tables (Description): Update.
60853         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
60854         gen-uni-tables.
60856         New module 'uniwbrk/base'.
60857         * modules/uniwbrk/base: New file.
60858         * lib/uniwbrk.h: New file.
60860 2009-02-08  Bruno Haible  <bruno@clisp.org>
60862         Update to Unicode 5.1.0.
60863         * lib/gen-uni-tables.c (is_property_alphabetic): Include
60864         U+2185..U+2188.
60865         (is_property_default_ignorable_code_point): Don't include characters
60866         of category Cc or Cs and not-a-characters.
60867         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
60868         U+0D79, U+109E, U+109F, U+A60C.
60869         * lib/unictype/bidi_of.h: Regenerated.
60870         * lib/unictype/blocks.h: Regenerated.
60871         * lib/unictype/categ_C.h: Regenerated.
60872         * lib/unictype/categ_Cf.h: Regenerated.
60873         * lib/unictype/categ_Cn.h: Regenerated.
60874         * lib/unictype/categ_L.h: Regenerated.
60875         * lib/unictype/categ_Ll.h: Regenerated.
60876         * lib/unictype/categ_Lm.h: Regenerated.
60877         * lib/unictype/categ_Lo.h: Regenerated.
60878         * lib/unictype/categ_Lu.h: Regenerated.
60879         * lib/unictype/categ_M.h: Regenerated.
60880         * lib/unictype/categ_Mc.h: Regenerated.
60881         * lib/unictype/categ_Me.h: Regenerated.
60882         * lib/unictype/categ_Mn.h: Regenerated.
60883         * lib/unictype/categ_N.h: Regenerated.
60884         * lib/unictype/categ_Nd.h: Regenerated.
60885         * lib/unictype/categ_Nl.h: Regenerated.
60886         * lib/unictype/categ_No.h: Regenerated.
60887         * lib/unictype/categ_P.h: Regenerated.
60888         * lib/unictype/categ_Pd.h: Regenerated.
60889         * lib/unictype/categ_Pe.h: Regenerated.
60890         * lib/unictype/categ_Pf.h: Regenerated.
60891         * lib/unictype/categ_Pi.h: Regenerated.
60892         * lib/unictype/categ_Po.h: Regenerated.
60893         * lib/unictype/categ_Ps.h: Regenerated.
60894         * lib/unictype/categ_S.h: Regenerated.
60895         * lib/unictype/categ_Sk.h: Regenerated.
60896         * lib/unictype/categ_Sm.h: Regenerated.
60897         * lib/unictype/categ_So.h: Regenerated.
60898         * lib/unictype/categ_of.h: Regenerated.
60899         * lib/unictype/combining.h: Regenerated.
60900         * lib/unictype/ctype_alnum.h: Regenerated.
60901         * lib/unictype/ctype_alpha.h: Regenerated.
60902         * lib/unictype/ctype_graph.h: Regenerated.
60903         * lib/unictype/ctype_lower.h: Regenerated.
60904         * lib/unictype/ctype_print.h: Regenerated.
60905         * lib/unictype/ctype_punct.h: Regenerated.
60906         * lib/unictype/ctype_upper.h: Regenerated.
60907         * lib/unictype/decdigit.h: Regenerated.
60908         * lib/unictype/digit.h: Regenerated.
60909         * lib/unictype/mirror.h: Regenerated.
60910         * lib/unictype/numeric.h: Regenerated.
60911         * lib/unictype/pr_alphabetic.h: Regenerated.
60912         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
60913         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
60914         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
60915         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
60916         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
60917         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
60918         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
60919         * lib/unictype/pr_combining.h: Regenerated.
60920         * lib/unictype/pr_dash.h: Regenerated.
60921         * lib/unictype/pr_decimal_digit.h: Regenerated.
60922         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
60923         * lib/unictype/pr_deprecated.h: Regenerated.
60924         * lib/unictype/pr_diacritic.h: Regenerated.
60925         * lib/unictype/pr_extender.h: Regenerated.
60926         * lib/unictype/pr_format_control.h: Regenerated.
60927         * lib/unictype/pr_grapheme_base.h: Regenerated.
60928         * lib/unictype/pr_grapheme_extend.h: Regenerated.
60929         * lib/unictype/pr_grapheme_link.h: Regenerated.
60930         * lib/unictype/pr_id_continue.h: Regenerated.
60931         * lib/unictype/pr_id_start.h: Regenerated.
60932         * lib/unictype/pr_ideographic.h: Regenerated.
60933         * lib/unictype/pr_ignorable_control.h: Regenerated.
60934         * lib/unictype/pr_lowercase.h: Regenerated.
60935         * lib/unictype/pr_math.h: Regenerated.
60936         * lib/unictype/pr_numeric.h: Regenerated.
60937         * lib/unictype/pr_other_alphabetic.h: Regenerated.
60938         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
60939         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
60940         * lib/unictype/pr_other_id_continue.h: Regenerated.
60941         * lib/unictype/pr_other_lowercase.h: Regenerated.
60942         * lib/unictype/pr_other_math.h: Regenerated.
60943         * lib/unictype/pr_punctuation.h: Regenerated.
60944         * lib/unictype/pr_sentence_terminal.h: Regenerated.
60945         * lib/unictype/pr_soft_dotted.h: Regenerated.
60946         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
60947         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
60948         * lib/unictype/pr_unified_ideograph.h: Regenerated.
60949         * lib/unictype/pr_uppercase.h: Regenerated.
60950         * lib/unictype/pr_xid_continue.h: Regenerated.
60951         * lib/unictype/pr_xid_start.h: Regenerated.
60952         * lib/unictype/pr_zero_width.h: Regenerated.
60953         * lib/unictype/scripts.h: Regenerated.
60954         * lib/unictype/scripts_byname.gperf: Regenerated.
60955         * lib/unictype/sy_java_ident.h: Regenerated.
60956         * lib/unilbrk/lbrkprop1.h: Regenerated.
60957         * lib/unilbrk/lbrkprop2.h: Regenerated.
60958         * tests/unictype/test-categ_C.c: Regenerated.
60959         * tests/unictype/test-categ_Cf.c: Regenerated.
60960         * tests/unictype/test-categ_Cn.c: Regenerated.
60961         * tests/unictype/test-categ_L.c: Regenerated.
60962         * tests/unictype/test-categ_Ll.c: Regenerated.
60963         * tests/unictype/test-categ_Lm.c: Regenerated.
60964         * tests/unictype/test-categ_Lo.c: Regenerated.
60965         * tests/unictype/test-categ_Lu.c: Regenerated.
60966         * tests/unictype/test-categ_M.c: Regenerated.
60967         * tests/unictype/test-categ_Mc.c: Regenerated.
60968         * tests/unictype/test-categ_Me.c: Regenerated.
60969         * tests/unictype/test-categ_Mn.c: Regenerated.
60970         * tests/unictype/test-categ_N.c: Regenerated.
60971         * tests/unictype/test-categ_Nd.c: Regenerated.
60972         * tests/unictype/test-categ_Nl.c: Regenerated.
60973         * tests/unictype/test-categ_No.c: Regenerated.
60974         * tests/unictype/test-categ_P.c: Regenerated.
60975         * tests/unictype/test-categ_Pd.c: Regenerated.
60976         * tests/unictype/test-categ_Pe.c: Regenerated.
60977         * tests/unictype/test-categ_Pf.c: Regenerated.
60978         * tests/unictype/test-categ_Pi.c: Regenerated.
60979         * tests/unictype/test-categ_Po.c: Regenerated.
60980         * tests/unictype/test-categ_Ps.c: Regenerated.
60981         * tests/unictype/test-categ_S.c: Regenerated.
60982         * tests/unictype/test-categ_Sk.c: Regenerated.
60983         * tests/unictype/test-categ_Sm.c: Regenerated.
60984         * tests/unictype/test-categ_So.c: Regenerated.
60985         * tests/unictype/test-ctype_alnum.c: Regenerated.
60986         * tests/unictype/test-ctype_alpha.c: Regenerated.
60987         * tests/unictype/test-ctype_graph.c: Regenerated.
60988         * tests/unictype/test-ctype_lower.c: Regenerated.
60989         * tests/unictype/test-ctype_print.c: Regenerated.
60990         * tests/unictype/test-ctype_punct.c: Regenerated.
60991         * tests/unictype/test-ctype_upper.c: Regenerated.
60992         * tests/unictype/test-decdigit.h: Regenerated.
60993         * tests/unictype/test-digit.h: Regenerated.
60994         * tests/unictype/test-numeric.h: Regenerated.
60995         * tests/unictype/test-pr_alphabetic.c: Regenerated.
60996         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
60997         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
60998         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
60999         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
61000         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
61001         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
61002         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
61003         * tests/unictype/test-pr_combining.c: Regenerated.
61004         * tests/unictype/test-pr_dash.c: Regenerated.
61005         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
61006         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
61007         * tests/unictype/test-pr_deprecated.c: Regenerated.
61008         * tests/unictype/test-pr_diacritic.c: Regenerated.
61009         * tests/unictype/test-pr_extender.c: Regenerated.
61010         * tests/unictype/test-pr_format_control.c: Regenerated.
61011         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
61012         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
61013         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
61014         * tests/unictype/test-pr_id_continue.c: Regenerated.
61015         * tests/unictype/test-pr_id_start.c: Regenerated.
61016         * tests/unictype/test-pr_ideographic.c: Regenerated.
61017         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
61018         * tests/unictype/test-pr_lowercase.c: Regenerated.
61019         * tests/unictype/test-pr_math.c: Regenerated.
61020         * tests/unictype/test-pr_numeric.c: Regenerated.
61021         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
61022         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
61023         Regenerated.
61024         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
61025         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
61026         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
61027         * tests/unictype/test-pr_other_math.c: Regenerated.
61028         * tests/unictype/test-pr_punctuation.c: Regenerated.
61029         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
61030         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
61031         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
61032         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
61033         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
61034         * tests/unictype/test-pr_uppercase.c: Regenerated.
61035         * tests/unictype/test-pr_xid_continue.c: Regenerated.
61036         * tests/unictype/test-pr_xid_start.c: Regenerated.
61037         * tests/unictype/test-pr_zero_width.c: Regenerated.
61039         Update to Unicode 5.1.0.
61040         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
61041         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
61042         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
61043         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
61044         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
61045         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
61046         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
61047         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
61048         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
61049         (nonspacing_table_ind): Update.
61050         * tests/uniwidth/test-uc_width2.sh: Update expected result.
61052         Update to Unicode 5.1.0.
61053         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
61054         code transform.
61055         * lib/uniname/uniname.c (unicode_character_name,
61056         unicode_name_character): Add the range 0x1Fxxx to the code transform.
61057         * lib/uniname/uninames.h: Regenerated.
61058         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
61060 2009-02-07  Bruno Haible  <bruno@clisp.org>
61062         Merge gen-ctype and gen-lbrk into a single program.
61063         * lib/gen-uni-tables.c: New file, incorporating
61064         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
61065         Add directory prefixes to the names of the generated files.
61066         * lib/unictype/gen-ctype.c: Remove file.
61067         * lib/unilbrk/gen-lbrk.c: Remove file.
61068         * modules/gen-uni-tables: New file.
61069         * modules/unictype/gen-ctype: Remove file.
61070         * modules/unilbrk/gen-lbrk: Remove file.
61072 2009-02-07  Bruno Haible  <bruno@clisp.org>
61074         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
61076         New module 'unistr/u32-strcoll'.
61077         * modules/unistr/u32-strcoll: New file.
61078         * lib/unistr/u32-strcoll.c: New file.
61080         New module 'unistr/u16-strcoll'.
61081         * modules/unistr/u16-strcoll: New file.
61082         * lib/unistr/u16-strcoll.c: New file.
61084         New module 'unistr/u8-strcoll'.
61085         * modules/unistr/u8-strcoll: New file.
61086         * lib/unistr/u8-strcoll.c: New file.
61087         * lib/unistr/u-strcoll.h: New file.
61089 2009-02-07  Bruno Haible  <bruno@clisp.org>
61091         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
61092         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
61093         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
61094         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
61095         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
61096         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
61098 2009-02-07  Bruno Haible  <bruno@clisp.org>
61100         Make 64-bit clean.
61101         * lib/unictype/gen-ctype.c (output_predicate, output_category,
61102         output_combclass, output_bidi_category, output_decimal_digit,
61103         output_digit, output_numeric, output_mirror, output_scripts,
61104         output_ident_category): Use proper width specifier in format strings.
61106 2009-02-07  Bruno Haible  <bruno@clisp.org>
61108         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
61109         failure behaviour.
61111 2009-02-07  Jim Meyering  <meyering@redhat.com>
61113         regex: avoid compilation failure with upcoming gcc-4.4
61114         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
61115         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
61116         "... error: integer overflow in preprocessor expression".
61118 2009-02-05  Ben Pfaff  <blp@gnu.org>
61120         Fix link errors on Windows when close module is used.
61121         * modules/close: Add $(LIB_CLOSE) to Link section.
61122         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
61123         $(LIB_CLOSE) on Windows.
61125 2009-02-05  Jim Meyering  <meyering@redhat.com>
61127         still avoid unused-parameter warnings, but do it cleanly
61128         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
61129         (get_fs_usage): Cast to void instead.
61130         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
61131         (dev_from_mount_options, read_file_system_list): Cast to void.
61132         Prompted by Bruno Haible.
61134 2009-02-04  Jim Meyering  <meyering@redhat.com>
61136         fsusage.c: correct copyright year
61137         * lib/fsusage.c: Reflect year in which the change is pushed into
61139         avoid misc. warnings
61140         * lib/fsusage.c (UNUSED_PARAM): Define.
61141         (get_fs_usage): Mark parameter "disk" as unused.
61142         * lib/getugroups.c (getgrent): Use "void" in prototype.
61143         * lib/mountlist.c: Mark unused parameters.
61144         (read_file_system_list): Declare a local with "const".
61145         * lib/nanosleep.c (getnow): Declare static.
61146         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
61148         dirfd: set errno upon failure
61149         * lib/dirfd.c: Include <errno.h>.
61150         Set errno to ENOTSUP when returning -1.
61151         * modules/dirfd (Depends-on): Add errno.
61152         Suggested by John Kodis <kodis@comcast.net>.
61154 2009-02-01  Bruno Haible  <bruno@clisp.org>
61156         Don't assume sizeof (long) >= sizeof (void *).
61157         * lib/memcmp.c: Include stdint.h.
61158         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
61159         srcp2 to 'const byte *'.
61160         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
61161         types to uintptr_t.
61162         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
61163         * modules/memcmp (Depends-on): Add stdint.
61164         Reported by Ozkan Sezer <sezeroz@gmail.com>.
61166 2009-01-30  Eric Blake  <ebb9@byu.net>
61168         fix more require-before-expand issues
61169         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
61170         expand, AC_PROG_AWK.
61171         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
61173 2009-01-28  Eric Blake  <ebb9@byu.net>
61175         version-etc: use consistent URL formatting
61176         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
61177         Improve formatting.  Use fputs for string without %.
61179 2009-01-28  Jim Meyering  <meyering@redhat.com>
61181         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
61182         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
61183         "underquoted definition of NAME" from autoconf-2.59.
61185 2009-01-28  Bruno Haible  <bruno@clisp.org>
61187         * doc/gnulib.texi: Add "Obsolete modules" to index.
61189 2009-01-28  Jim Meyering  <meyering@redhat.com>
61191         useless-if-before-free: recognize more variants
61192         * build-aux/useless-if-before-free: Also recognize e.g.,
61193         if (NULL != p) free (p);
61195 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
61197         test-getaddrinfo: skip (don't fail) this test when there's no network
61198         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
61199         on the presumption that it means you lack network access.
61201 2009-01-26  Jim Meyering  <meyering@redhat.com>
61203         fflush: avoid warnings on modern systems
61204         * lib/fflush.c (rpl_fflush): Move declarations of locals,
61205         pos and result, into scopes where they're used.
61207 2009-01-26  Eric Blake  <ebb9@byu.net>
61209         Silence warning reintroduced by recent extensions patch.
61210         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
61211         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
61212         autoconf.
61214         Backport improved autoconf semantics of AC_DEFUN_ONCE.
61215         * m4/00gnulib.m4: New file.
61216         * gnulib-tool (func_get_filelist): Always use it.
61217         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
61218         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
61220 2009-01-25  Bruno Haible  <bruno@clisp.org>
61222         Make test-quotearg work on MacOS X and AIX.
61223         * tests/test-quotearg.sh: New file.
61224         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
61225         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
61226         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
61227         include <libintl.h>.
61228         (fake_locale): Remove variable.
61229         (gettext, dgettext, dcgettext): Remove functions.
61230         (main): Instead of setting a fake locale, set a real locale. Call
61231         textdomain and bindtextdomain.
61232         * modules/quotearg-tests (Files): Add the new files.
61233         (Depends-on): Add gettext, setenv, unsetenv.
61234         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
61235         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
61236         Augment TESTS_ENVIRONMENT.
61238 2009-01-25  Bruno Haible  <bruno@clisp.org>
61240         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
61241         fr_FR.ISO8859-1 locale on MacOS X.
61242         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
61243         ja_JP.eucJP locale on MacOS X.
61244         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
61245         zh_CN.GB18030 locale on MacOS X.
61247 2009-01-25  Bruno Haible  <bruno@clisp.org>
61249         Avoid link errors on MacOS X 10.3.
61250         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
61251         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
61253 2009-01-25  Bruno Haible  <bruno@clisp.org>
61255         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
61256         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
61257         * modules/pipe (Files): Remove m4/posix_spawn.m4.
61258         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
61259         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
61260         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
61261         posix_spawnattr_init, posix_spawnattr_setsigmask,
61262         posix_spawnattr_setflags, posix_spawnattr_destroy.
61264         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
61265         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
61266         * modules/execute (Files): Remove m4/posix_spawn.m4.
61267         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
61268         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
61269         posix_spawnattr_init, posix_spawnattr_setsigmask,
61270         posix_spawnattr_setflags, posix_spawnattr_destroy.
61272 2009-01-25  Bruno Haible  <bruno@clisp.org>
61274         * lib/glthread/threadlib.c: Include <stdlib.h>.
61276 2009-01-25  Bruno Haible  <bruno@clisp.org>
61278         * lib/glthread/threadlib.c (dummy): New declaration.
61280 2009-01-25  Bruno Haible  <bruno@clisp.org>
61282         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
61283         multibyte characters also for the GB18030 encoding. Don't crash when
61284         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
61286 2009-01-25  Bruno Haible  <bruno@clisp.org>
61288         Avoid redefining 'struct random_data' on OSF/1 5.1.
61289         * lib/stdlib.in.h: Include <random.h> if it exists.
61290         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
61291         HAVE_RANDOM_H. Include <random.h> when testing whether
61292         'struct random_data' exists.
61293         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
61295 2009-01-25  Bruno Haible  <bruno@clisp.org>
61297         Don't install charset.alias on MacOS X >= 10.3.
61298         * lib/localcharset.c (DARWIN7): New macro.
61299         (get_charset_aliases): Hardcode the result for Darwin7.
61300         * modules/localcharset (install-exec-local): Don't install
61301         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
61303 2009-01-25  Bruno Haible  <bruno@clisp.org>
61305         Don't install charset.alias on mingw and Cygwin.
61306         * modules/localcharset (install-exec-local): Don't install
61307         charset.alias on mingw and Cygwin, if the file does not yet exist.
61308         The result for these platforms is hardcoded in localcharset.c.
61310 2009-01-25  Bruno Haible  <bruno@clisp.org>
61312         Make it possible again to use AC_GNU_SOURCE together with gnulib.
61313         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
61314         before requiring AC_USE_SYSTEM_EXTENSIONS.
61316 2009-01-25  Jim Meyering  <meyering@redhat.com>
61318         c-strtod: avoid warnings
61319         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
61320         "assignment discards qualifiers from pointer target type" warnings.
61322 2009-01-24  Bruno Haible  <bruno@clisp.org>
61324         Add support for non-UTF-8 locales on MacOS X.
61325         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
61326         canonical encodings. For Darwin 7 and newer, don't map traditional
61327         encodings to UTF-8.
61328         Reported by Vincent Lefevre <vincent@vinc17.org>
61329         at <http://savannah.gnu.org/bugs/?25235>.
61331 2009-01-24  Bruno Haible  <bruno@clisp.org>
61333         * doc/gnulib.texi (Obsolete modules): New section.
61334         Reported by Mike Frysinger <vapier@gentoo.org>.
61336 2009-01-24  Bruno Haible  <bruno@clisp.org>
61338         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
61339         (%.dvi): New rule.
61341 2009-01-24  Bruno Haible  <bruno@clisp.org>
61343         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
61344         Reported by Eric Blake.
61346 2009-01-24  Bruno Haible  <bruno@clisp.org>
61348         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
61349         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
61350         Reported by Gary V. Vaughan <gary@gnu.org>.
61352 2009-01-24  Bruno Haible  <bruno@clisp.org>
61354         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
61356 2009-01-23  Bruno Haible  <bruno@clisp.org>
61358         Make c-strtod, c-strtold usable in libraries.
61359         * lib/c-strtod.c: Include string.h instead of xalloc.h.
61360         (C_STRTOD): Call strdup instead of xstrdup.
61361         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
61362         * modules/c-strtold (Depends-on): Likewise.
61363         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
61364         * NEWS: Mention the change.
61365         Reported by Michael Gold <mgold@ncf.ca>.
61367 2009-01-23  Jim Meyering  <meyering@redhat.com>
61369         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
61370         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
61371         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
61373 2009-01-23  Simon Josefsson  <simon@josefsson.org>
61375         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
61376         GNU CoreUtils.
61377         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
61378         * modules/version-etc (Description): Update.
61380 2009-01-22  Bruno Haible  <bruno@clisp.org>
61382         Cache the C locale object.
61383         * lib/c-strtod.c (c_locale_cache): New variable.
61384         (c_locale): New function.
61385         (C_STRTOD): Use it, and don't call freelocale.
61386         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
61387         Suggested by Paolo Bonzini.
61389 2009-01-21  Bruno Haible  <bruno@clisp.org>
61391         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
61392         conditions other than overflow.
61394 2009-01-21  Bruno Haible  <bruno@clisp.org>
61396         * lib/c-strtod.c: Include errno.h.
61397         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
61398         value from STRTOD_L and STRTOD.
61400 2009-01-21  Bruno Haible  <bruno@clisp.org>
61401         and Jim Meyering  <meyering@redhat.com>
61403         nanosleep: skip configure test (fail it) for apple universal builds
61404         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
61405         universal builds, assume that nanosleep does not work.
61406         * modules/nanosleep (Depends-on): Add multiarch.
61408         mktime: skip configure test (fail it) for apple universal builds
61409         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
61410         universal builds, assume that mktime does not work.
61411         * modules/mktime (Depends-on): Add multiarch.
61413 2009-01-21  Eric Blake  <ebb9@byu.net>
61415         multiarch: avoid expand-before-require warning
61416         * modules/multiarch (configure.ac): Require, rather than expand,
61417         gl_MULTIARCH.
61418         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
61419         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
61420         enforce that all clients require it.  Partial reversion of
61421         2008-12-29 patch.
61423         error: avoid expand-before-require warning
61424         * modules/errno (configure.ac): Require, rather than expand,
61425         gl_HEADER_ERRNO_H.
61426         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
61427         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
61428         enforce that all clients require it.
61430         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
61431         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
61432         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
61433         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
61435 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
61437         Revert:
61438         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
61440         regex: do not depend on obsolete modules.
61441         * modules/regex: Remove memcmp and memmove.
61443 2009-01-20  Bruno Haible  <bruno@clisp.org>
61445         Make the 'link' module link on Windows NT 4.
61446         * lib/link.c (_WIN32_WINNT): Don't define.
61447         (CreateHardLinkFuncType): New type.
61448         (CreateHardLinkFunc, initialized): New variables.
61449         (initialize): New function.
61450         (link): Invoke CreateHardLink indirectly through the function pointer.
61452 2009-01-20  Bruno Haible  <bruno@clisp.org>
61454         Fix compilation failure on mingw.
61455         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
61457 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
61459         * doc/c-strtod.texi: Mention a couple of restrictions.
61461 2009-01-20  Jim Meyering  <meyering@redhat.com>
61463         gettimeofday: move more declarations out of functions
61464         * lib/gettimeofday.c: Move extern declarations of tzset and
61465         gmtime out of containing functions.  Prompted by Bruno Haible.
61467 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
61469         regex: do not depend on obsolete modules.
61470         * modules/regex: Remove memcmp and memmove.
61472 2009-01-19  Bruno Haible  <bruno@clisp.org>
61474         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
61475         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
61476         gl_BIGENDIAN, not AC_C_BIGENDIAN.
61477         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
61478         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
61480 2009-01-19  Bruno Haible  <bruno@clisp.org>
61482         * tests/test-link.c: Include <errno.h>.
61483         (main): Exit with code 77 when a hard link cannot be created due to
61484         the file system.
61485         * tests/test-link.sh: Skip test when a hard link cannot be created due
61486         to the file system.
61487         Suggested by Eric Blake.
61489 2009-01-19  Martin Lambers  <marlam@marlam.de>
61491         * modules/link-tests: New file.
61492         * tests/test-link.sh: New file.
61493         * tests/test-link.c: New file.
61495 2009-01-19  Eric Blake  <ebb9@byu.net>
61497         doc: mention another function added in cygwin 1.7.0
61498         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
61499         Another new function in cygwin 1.7.
61501 2009-01-19  Bruno Haible  <bruno@clisp.org>
61503         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
61504         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
61505         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
61506         gl_BIGENDIAN, not AC_C_BIGENDIAN.
61507         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
61508         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
61509         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
61510         * m4/md4.m4 (gl_MD4): Likewise.
61511         * m4/md5.m4 (gl_MD5): Likewise.
61512         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
61513         * m4/sha1.m4 (gl_SHA1): Likewise.
61514         * m4/sha256.m4 (gl_SHA256): Likewise.
61515         * m4/sha512.m4 (gl_SHA512): Likewise.
61517 2009-01-19  Bruno Haible  <bruno@clisp.org>
61519         * modules/uniname/uniname-tests (Depends-on): Add progname.
61520         * tests/uniname/test-uninames.c: Include progname.h.
61521         (main): Call set_program_name.
61523         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
61524         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
61525         (main): Call set_program_name.
61527         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
61528         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
61529         (main): Call set_program_name.
61531         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
61532         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
61533         (main): Call set_program_name.
61535         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
61536         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
61537         (main): Call set_program_name.
61539         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
61540         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
61541         (main): Call set_program_name.
61543         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
61544         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
61545         (main): Call set_program_name.
61547         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
61548         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
61549         (main): Call set_program_name.
61551         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
61552         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
61553         (main): Call set_program_name.
61555 2009-01-19  Eric Blake  <ebb9@byu.net>
61557         test-unistd: test previous patch
61558         * tests/test-unistd.c: Test *_FILENO macros.
61560         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
61561         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
61562         Guarantee a definition.
61563         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
61564         * modules/unistd-safer (Depends-on): Add dependency on unistd.
61565         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
61566         * lib/dup-safer.c (STDERR_FILENO): Likewise.
61567         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
61568         Likewise.
61569         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
61570         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
61571         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
61572         Likewise.
61573         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
61574         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
61575         (STDERR_FILENO): Likewise.
61576         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
61577         (STDERR_FILENO): Likewise.
61578         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
61579         (STDERR_FILENO): Likewise.
61580         Reported by Elbert Pol.
61582 2009-01-19  Eric Blake  <ebb9@byu.net>
61584         doc: mention more functions added in cygwin 1.7.0
61585         * doc/posix-functions/abort.texi (abort): Update wording related
61586         to cygwin.
61587         * doc/posix-functions/daylight.texi (daylight): Likewise.
61588         * doc/posix-functions/optarg.texi (optarg): Likewise.
61589         * doc/posix-functions/optarg.texi (opterr): Likewise.
61590         * doc/posix-functions/optarg.texi (optind): Likewise.
61591         * doc/posix-functions/optarg.texi (optopt): Likewise.
61592         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
61593         worked in 1.5.x, and was withdrawn in 1.7.
61594         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
61595         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
61596         cygwin versions.
61597         * doc/posix-functions/perror.texi (perror): Likewise.
61598         * doc/posix-functions/printf.texi (printf): Likewise.
61599         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
61600         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
61601         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
61602         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
61603         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
61604         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
61605         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
61606         Likewise.
61607         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
61608         Likewise.
61609         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
61610         this function.
61611         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
61612         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
61613         Likewise.
61614         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
61615         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
61616         * doc/posix-functions/confstr.texi (confstr): Likewise.
61617         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
61618         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
61619         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
61620         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
61621         * doc/posix-functions/fputws.texi (fputws): Likewise.
61622         * doc/posix-functions/fwide.texi (fwide): Likewise.
61623         * doc/posix-functions/getwc.texi (getwc): Likewise.
61624         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
61625         * doc/posix-functions/putwc.texi (putwc): Likewise.
61626         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
61627         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
61628         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
61629         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
61630         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
61631         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
61632         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
61633         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
61634         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
61635         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
61636         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
61638 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
61640         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
61641         * lib/ioctl.c: Include <sys/ioctl.h>.
61643 2009-01-19  Simon Josefsson  <simon@josefsson.org>
61645         * modules/getdate-tests (Depends-on): Add progname.
61646         * tests/test-getdate.c: Use progname module, to avoid link errors
61647         on non-glibc systems.
61649 2009-01-18  Simon Josefsson  <simon@josefsson.org>
61651         * modules/filenamecat-tests (Depends-on): Add progname.
61652         * modules/fstrcmp-tests (Depends-on): Likewise.
61654         * tests/test-filenamecat.c: Use progname module, to avoid link
61655         errors on non-glibc systems.
61656         * tests/test-fstrcmp.c: Likewise.
61658 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
61660         gettimeofday: avoid warning: nested extern declaration of 'localtime'
61661         * lib/gettimeofday.c: Move extern declaration out of function.
61663 2009-01-18  Bruno Haible  <bruno@clisp.org>
61665         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
61666         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
61667         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
61669 2009-01-18  Bruno Haible  <bruno@clisp.org>
61671         * lib/strftime.c (MEMPCPY): Remove unused macro.
61672         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
61674 2009-01-18  Martin Lambers  <marlam@marlam.de>
61676         New module 'link'.
61677         * lib/unistd.in.h (link): New declaration.
61678         * lib/link.c: New file.
61679         * m4/link.m4: New file.
61680         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
61681         HAVE_LINK.
61682         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
61683         * modules/link: New file.
61684         * doc/posix-functions/link.texi: Mention the new module.
61686 2009-01-18  Bruno Haible  <bruno@clisp.org>
61688         * tests/test-avltree_list.c (main): Call set_program_name.
61689         * tests/test-avltree_oset.c (main): Likewise.
61690         * tests/test-obstack-printf.c: Include progname.h.
61691         (main): Call set_program_name.
61692         * tests/test-quotearg.c: Include progname.h.
61693         (main): Call set_program_name.
61694         * tests/test-xmemdup0.c: Include progname.h.
61695         (main): Call set_program_name.
61697 2009-01-18  Bruno Haible  <bruno@clisp.org>
61699         New module 'alphasort'.
61700         * lib/dirent.in.h (alphasort): New declaration.
61701         * lib/alphasort.c: New file, from glibc with modifications.
61702         * m4/alphasort.m4: New file.
61703         * modules/alphasort: New file.
61704         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
61705         HAVE_ALPHASORT.
61706         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
61707         HAVE_ALPHASORT.
61708         * doc/posix-functions/alphasort.texi: Mention the new module and the
61709         portability problems.
61711 2009-01-18  Bruno Haible  <bruno@clisp.org>
61713         New module 'scandir'.
61714         * lib/dirent.in.h (scandir): New declaration.
61715         * lib/scandir.c: New file, from glibc with modifications.
61716         * m4/scandir.m4: New file.
61717         * modules/scandir: New file.
61718         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
61719         HAVE_SCANDIR.
61720         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
61721         HAVE_SCANDIR.
61722         * doc/posix-functions/scandir.texi: Mention the new module and the
61723         portability problems.
61725 2009-01-17  Bruno Haible  <bruno@clisp.org>
61727         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
61728         Update documentation.
61729         (func_remove_suffix): Escape all dots in the suffix. Update
61730         documentation.
61731         (func_filter_filelist): Update documentation.
61732         Reported by Ralf Wildenhues.
61734 2009-01-17  Bruno Haible  <bruno@clisp.org>
61736         * modules/dprintf-posix-tests: New file.
61737         * tests/test-dprintf-posix.sh: New file.
61738         * tests/test-dprintf-posix.c: New file.
61740         New modules 'dprintf', 'dprintf-posix'.
61741         * lib/stdio.in.h (dprintf): New declaration.
61742         * lib/dprintf.c: New file.
61743         * m4/dprintf.m4: New file.
61744         * m4/dprintf-posix.m4: New file.
61745         * modules/dprintf: New file.
61746         * modules/dprintf-posix: New file.
61747         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
61748         HAVE_DPRINTF, REPLACE_DPRINTF.
61749         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
61750         HAVE_DPRINTF, REPLACE_DPRINTF.
61751         * doc/posix-functions/dprintf.texi: Mention the new modules.
61753 2009-01-17  Bruno Haible  <bruno@clisp.org>
61755         * modules/vdprintf-posix-tests: New file.
61756         * tests/test-vdprintf-posix.sh: New file.
61757         * tests/test-vdprintf-posix.c: New file.
61759         New modules 'vdprintf', 'vdprintf-posix'.
61760         * lib/stdio.in.h (vdprintf): New declaration.
61761         * lib/vdprintf.c: New file.
61762         * m4/vdprintf.m4: New file.
61763         * m4/vdprintf-posix.m4: New file.
61764         * modules/vdprintf: New file.
61765         * modules/vdprintf-posix: New file.
61766         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
61767         HAVE_VDPRINTF, REPLACE_VDPRINTF.
61768         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
61769         HAVE_VDPRINTF, REPLACE_VDPRINTF.
61770         * doc/posix-functions/vdprintf.texi: Mention the new modules.
61772 2009-01-17  Bruno Haible  <bruno@clisp.org>
61774         Fix replacement of fopen on mingw.
61775         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
61776         mingw.
61778 2009-01-17  Bruno Haible  <bruno@clisp.org>
61780         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
61781         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
61783 2009-01-17  Bruno Haible  <bruno@clisp.org>
61785         Avoid test-fflush2.sh failure on mingw.
61786         * tests/test-fflush2.c: Include binary-io.h.
61787         (main): Put standard input into binary mode.
61788         * modules/fflush-tests (Depends-on): Add binary-io.
61790 2009-01-17  Bruno Haible  <bruno@clisp.org>
61792         * lib/wchar.in.h: In another particular situation, include only the
61793         system's <wchar.h> file.
61794         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
61795         Reported by Albert Chin-A-Young <china@thewrittenword.com>
61796         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
61798 2009-01-17  Bruno Haible  <bruno@clisp.org>
61800         Support for stripping executables in --enable-relocatable.
61801         * build-aux/install-reloc: Expect one more argument, or an environment
61802         variable RELOC_STRIP_PROG. If set, strip the destination program and
61803         its wrapper.
61804         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
61805         RELOC_STRIP_PROG.
61806         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
61807         to set RELOCATABLE_STRIP.
61808         * NEWS: Mention the new Makefile requirement.
61810 2009-01-17  Bruno Haible  <bruno@clisp.org>
61812         * build-aux/install-reloc: Remove debugging information left over by
61813         C compiler on MacOS X.
61815 2009-01-17  Bruno Haible  <bruno@clisp.org>
61817         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
61818         * lib/progreloc.c (find_executable): Fix type of pointer passed to
61819         _NSGetExecutablePath.
61821 2009-01-16  Jim Meyering  <meyering@redhat.com>
61823         strerror: avoid warnings about discarding "const"
61824         * lib/strerror.c (rpl_strerror): Instead of returning a const
61825         string from each and every "case", use a variable, and add a single
61826         cast after the switch.
61828 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
61830         * lib/arpa_inet.in.h: Add extern "C" block for C++.
61832 2009-01-16  Bruno Haible  <bruno@clisp.org>
61834         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
61835         array initializer syntax that also works in C++ mode.
61836         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
61838 2009-01-16  Jim Meyering  <meyering@redhat.com>
61840         poll: suppress a warning
61841         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
61842         to ignore "...unsigned expression < 0 is always false" warnings.
61844 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
61846         poll: remove declarations of unused variables
61847         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
61848         sockbuf and optlen.
61850 2009-01-15  Bruno Haible  <bruno@clisp.org>
61852         Make fflush-after-ungetc POSIX compliant on BSD systems.
61853         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
61854         (clear_ungetc_buffer): Implement also for other systems.
61855         (rpl_fflush): On glibc systems, invoke
61856         clear_ungetc_buffer_preserving_position. Otherwise, invoke
61857         clear_ungetc_buffer after fetching the stream's position, not before.
61859 2009-01-15  Bruno Haible  <bruno@clisp.org>
61861         Make fflush-after-ungetc POSIX compliant on glibc systems.
61862         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
61863         after ungetc.
61864         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
61865         (rpl_fflush): On glibc systems, simply call the system's fflush
61866         function after clearing the ungetc buffer.
61867         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
61868         Instead, lseek only to the end of file, then use the system's fseeko
61869         for the rest. On glibc systems, reset the EOF indicator bit.
61871 2009-01-15  Jim Meyering  <meyering@redhat.com>
61873         openmp.m4: revert quote-adding change, for portability to older autoconf
61874         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
61875         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
61876         Simon Josefsson noticed the problem when using autoconf-2.61.
61878 2009-01-15  Bruno Haible  <bruno@clisp.org>
61880         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
61881         * tests/test-fflush2.c (ASSERT): Always fail.
61882         (main): Add two tests for fflush() after ungetc(), taking into account
61883         the Austin Group's clarification.
61884         Suggested by Eric Blake.
61886 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
61888         mktime.m4: remove K&R-style function prototypes
61889         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
61890         for the Sun C++ compiler.
61892 2009-01-14  Bruno Haible  <bruno@clisp.org>
61894         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
61895         while including <wchar.h>.
61896         * lib/wchar.in.h: In two particular situations on HP-UX, include only
61897         the system's <wchar.h> file.
61898         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
61900 2009-01-14  Bruno Haible  <bruno@clisp.org>
61902         * m4/csharp.m4: Don't mention gettext on the serial number line.
61903         * m4/csharpexec.m4: Likewise.
61904         * m4/eaccess.m4: Likewise.
61905         * m4/javaexec.m4: Likewise.
61906         * m4/sig_atomic_t.m4: Likewise.
61907         * m4/tmpdir.m4: Likewise.
61908         * m4/intldir.m4: Bump gettext version.
61909         * m4/lib-ld.m4: Likewise.
61911 2009-01-14  Bruno Haible  <bruno@clisp.org>
61913         * lib/progname.c (set_program_name): Add more comments.
61914         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
61916 2009-01-14  Simon Josefsson  <simon@josefsson.org>
61918         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
61919         were sys/stat.h does not define it.
61921 2009-01-14  Jim Meyering  <meyering@redhat.com>
61923         many *.m4 files: improve m4 quoting
61924         99% of this change was performed by running the following commands:
61925         git ls-files | grep '\.m4$' | xargs perl -pi \
61926           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
61927           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
61928           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
61929           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
61930         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
61931         The remainder were to add Copyright dates, increment serial numbers,
61932         undo some changes in comments, exclude m4/intl.m4, and add quotes
61933         around the "1" in ",1" where the unusual spacing prohibited the
61934         above regexps from doing the job.  For more details, see
61935         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
61936         * m4/acl.m4: Modified.
61937         * m4/afs.m4: Likewise.
61938         * m4/alloca.m4: Likewise.
61939         * m4/argp.m4: Likewise.
61940         * m4/argz.m4: Likewise.
61941         * m4/atexit.m4: Likewise.
61942         * m4/bison-i18n.m4: Likewise.
61943         * m4/bison.m4: Likewise.
61944         * m4/byteswap.m4: Likewise.
61945         * m4/c-stack.m4: Likewise.
61946         * m4/c-strtod.m4: Likewise.
61947         * m4/calloc.m4: Likewise.
61948         * m4/canonicalize-lgpl.m4: Likewise.
61949         * m4/chown.m4: Likewise.
61950         * m4/clock_time.m4: Likewise.
61951         * m4/codeset.m4: Likewise.
61952         * m4/copy-file.m4: Likewise.
61953         * m4/csharp.m4: Likewise.
61954         * m4/csharpcomp.m4: Likewise.
61955         * m4/csharpexec.m4: Likewise.
61956         * m4/d-ino.m4: Likewise.
61957         * m4/d-type.m4: Likewise.
61958         * m4/dirfd.m4: Likewise.
61959         * m4/double-slash-root.m4: Likewise.
61960         * m4/eaccess.m4: Likewise.
61961         * m4/eealloc.m4: Likewise.
61962         * m4/environ.m4: Likewise.
61963         * m4/errno_h.m4: Likewise.
61964         * m4/euidaccess.m4: Likewise.
61965         * m4/execute.m4: Likewise.
61966         * m4/fatal-signal.m4: Likewise.
61967         * m4/fchdir.m4: Likewise.
61968         * m4/fcntl_h.m4: Likewise.
61969         * m4/fileblocks.m4: Likewise.
61970         * m4/filenamecat.m4: Likewise.
61971         * m4/findprog.m4: Likewise.
61972         * m4/flexmember.m4: Likewise.
61973         * m4/fnmatch.m4: Likewise.
61974         * m4/fopen.m4: Likewise.
61975         * m4/fpending.m4: Likewise.
61976         * m4/fprintf-posix.m4: Likewise.
61977         * m4/free.m4: Likewise.
61978         * m4/frexp.m4: Likewise.
61979         * m4/frexpl.m4: Likewise.
61980         * m4/fsusage.m4: Likewise.
61981         * m4/ftruncate.m4: Likewise.
61982         * m4/gc-camellia.m4: Likewise.
61983         * m4/gc-random.m4: Likewise.
61984         * m4/gc.m4: Likewise.
61985         * m4/getaddrinfo.m4: Likewise.
61986         * m4/getcwd-abort-bug.m4: Likewise.
61987         * m4/getcwd-path-max.m4: Likewise.
61988         * m4/getdate.m4: Likewise.
61989         * m4/getdomainname.m4: Likewise.
61990         * m4/getgroups.m4: Likewise.
61991         * m4/gethostname.m4: Likewise.
61992         * m4/gethrxtime.m4: Likewise.
61993         * m4/getline.m4: Likewise.
61994         * m4/getloadavg.m4: Likewise.
61995         * m4/getndelim2.m4: Likewise.
61996         * m4/getpass.m4: Likewise.
61997         * m4/gettext.m4: Likewise.
61998         * m4/gettime.m4: Likewise.
61999         * m4/gettimeofday.m4: Likewise.
62000         * m4/gnulib-common.m4: Likewise.
62001         * m4/group-member.m4: Likewise.
62002         * m4/host-os.m4: Likewise.
62003         * m4/iconv.m4: Likewise.
62004         * m4/iconv_open.m4: Likewise.
62005         * m4/inet_ntop.m4: Likewise.
62006         * m4/inet_pton.m4: Likewise.
62007         * m4/inline.m4: Likewise.
62008         * m4/intldir.m4: Likewise.
62009         * m4/intlmacosx.m4: Likewise.
62010         * m4/intmax.m4: Likewise.
62011         * m4/intmax_t.m4: Likewise.
62012         * m4/inttypes.m4: Likewise.
62013         * m4/inttypes_h.m4: Likewise.
62014         * m4/inttypes-pri.m4: Likewise.
62015         * m4/isapipe.m4: Likewise.
62016         * m4/isnand.m4: Likewise.
62017         * m4/isnanf.m4: Likewise.
62018         * m4/isnanl.m4: Likewise.
62019         * m4/javacomp.m4: Likewise.
62020         * m4/javaexec.m4: Likewise.
62021         * m4/jm-winsz1.m4: Likewise.
62022         * m4/jm-winsz2.m4: Likewise.
62023         * m4/lchown.m4: Likewise.
62024         * m4/lcmessage.m4: Likewise.
62025         * m4/ldexpl.m4: Likewise.
62026         * m4/lib-ld.m4: Likewise.
62027         * m4/lib-link.m4: Likewise.
62028         * m4/libsigsegv.m4: Likewise.
62029         * m4/link-follow.m4: Likewise.
62030         * m4/localcharset.m4: Likewise.
62031         * m4/locale-fr.m4: Likewise.
62032         * m4/locale-ja.m4: Likewise.
62033         * m4/locale-tr.m4: Likewise.
62034         * m4/locale-zh.m4: Likewise.
62035         * m4/lock.m4: Likewise.
62036         * m4/longlong.m4: Likewise.
62037         * m4/ls-mntd-fs.m4: Likewise.
62038         * m4/lstat.m4: Likewise.
62039         * m4/malloc.m4: Likewise.
62040         * m4/mathl.m4: Likewise.
62041         * m4/mbrtowc.m4: Likewise.
62042         * m4/mbstate_t.m4: Likewise.
62043         * m4/mbswidth.m4: Likewise.
62044         * m4/memchr.m4: Likewise.
62045         * m4/memcmp.m4: Likewise.
62046         * m4/memcpy.m4: Likewise.
62047         * m4/memmem.m4: Likewise.
62048         * m4/memmove.m4: Likewise.
62049         * m4/mempcpy.m4: Likewise.
62050         * m4/memrchr.m4: Likewise.
62051         * m4/memset.m4: Likewise.
62052         * m4/minmax.m4: Likewise.
62053         * m4/mkdir-slash.m4: Likewise.
62054         * m4/mkdtemp.m4: Likewise.
62055         * m4/mktime.m4: Likewise.
62056         * m4/mmap-anon.m4: Likewise.
62057         * m4/mountlist.m4: Likewise.
62058         * m4/nanosleep.m4: Likewise.
62059         * m4/nls.m4: Likewise.
62060         * m4/nocrash.m4: Likewise.
62061         * m4/open.m4: Likewise.
62062         * m4/openat.m4: Likewise.
62063         * m4/openmp.m4: Likewise.
62064         * m4/pathmax.m4: Likewise.
62065         * m4/perl.m4: Likewise.
62066         * m4/physmem.m4: Likewise.
62067         * m4/pipe.m4: Likewise.
62068         * m4/po.m4: Likewise.
62069         * m4/poll.m4: Likewise.
62070         * m4/posixtm.m4: Likewise.
62071         * m4/posixver.m4: Likewise.
62072         * m4/printf-frexp.m4: Likewise.
62073         * m4/printf-frexpl.m4: Likewise.
62074         * m4/printf-posix.m4: Likewise.
62075         * m4/printf-posix-rpl.m4: Likewise.
62076         * m4/printf.m4: Likewise.
62077         * m4/progtest.m4: Likewise.
62078         * m4/putenv.m4: Likewise.
62079         * m4/readline.m4: Likewise.
62080         * m4/readlink.m4: Likewise.
62081         * m4/readutmp.m4: Likewise.
62082         * m4/realloc.m4: Likewise.
62083         * m4/regex.m4: Likewise.
62084         * m4/relocatable.m4: Likewise.
62085         * m4/relocatable-lib.m4: Likewise.
62086         * m4/rename-dest-slash.m4: Likewise.
62087         * m4/rename.m4: Likewise.
62088         * m4/rmdir-errno.m4: Likewise.
62089         * m4/rmdir.m4: Likewise.
62090         * m4/roundf.m4: Likewise.
62091         * m4/roundl.m4: Likewise.
62092         * m4/rpmatch.m4: Likewise.
62093         * m4/save-cwd.m4: Likewise.
62094         * m4/selinux-selinux-h.m4: Likewise.
62095         * m4/setenv.m4: Likewise.
62096         * m4/settime.m4: Likewise.
62097         * m4/sig2str.m4: Likewise.
62098         * m4/sig_atomic_t.m4: Likewise.
62099         * m4/signalblocking.m4: Likewise.
62100         * m4/signbit.m4: Likewise.
62101         * m4/sigpipe.m4: Likewise.
62102         * m4/sockets.m4: Likewise.
62103         * m4/sockpfaf.m4: Likewise.
62104         * m4/st_dm_mode.m4: Likewise.
62105         * m4/stat-time.m4: Likewise.
62106         * m4/stdbool.m4: Likewise.
62107         * m4/stdint.m4: Likewise.
62108         * m4/stdint_h.m4: Likewise.
62109         * m4/stpcpy.m4: Likewise.
62110         * m4/stpncpy.m4: Likewise.
62111         * m4/strcase.m4: Likewise.
62112         * m4/strchrnul.m4: Likewise.
62113         * m4/strcspn.m4: Likewise.
62114         * m4/strdup.m4: Likewise.
62115         * m4/strftime.m4: Likewise.
62116         * m4/strndup.m4: Likewise.
62117         * m4/strnlen.m4: Likewise.
62118         * m4/strpbrk.m4: Likewise.
62119         * m4/strptime.m4: Likewise.
62120         * m4/strsep.m4: Likewise.
62121         * m4/strtod.m4: Likewise.
62122         * m4/strtoimax.m4: Likewise.
62123         * m4/strtok_r.m4: Likewise.
62124         * m4/strtol.m4: Likewise.
62125         * m4/strtoll.m4: Likewise.
62126         * m4/strtoul.m4: Likewise.
62127         * m4/strtoull.m4: Likewise.
62128         * m4/strtoumax.m4: Likewise.
62129         * m4/strverscmp.m4: Likewise.
62130         * m4/threadlib.m4: Likewise.
62131         * m4/timegm.m4: Likewise.
62132         * m4/tm_gmtoff.m4: Likewise.
62133         * m4/tmpdir.m4: Likewise.
62134         * m4/tmpfile.m4: Likewise.
62135         * m4/tzset.m4: Likewise.
62136         * m4/uintmax_t.m4: Likewise.
62137         * m4/unlinkdir.m4: Likewise.
62138         * m4/unlocked-io.m4: Likewise.
62139         * m4/uptime.m4: Likewise.
62140         * m4/userspec.m4: Likewise.
62141         * m4/utimbuf.m4: Likewise.
62142         * m4/utime.m4: Likewise.
62143         * m4/utimes-null.m4: Likewise.
62144         * m4/utimes.m4: Likewise.
62145         * m4/vararrays.m4: Likewise.
62146         * m4/vasnprintf.m4: Likewise.
62147         * m4/vfprintf-posix.m4: Likewise.
62148         * m4/vprintf-posix.m4: Likewise.
62149         * m4/wait-process.m4: Likewise.
62150         * m4/wchar_t.m4: Likewise.
62151         * m4/wint_t.m4: Likewise.
62152         * m4/write-any-file.m4: Likewise.
62153         * m4/yield.m4: Likewise.
62155 2009-01-13  Bruno Haible  <bruno@clisp.org>
62157         Avoid test-copy-file.sh failures when ACL support insufficient.
62158         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
62159         TESTS_ENVIRONMENT.
62160         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
62161         Reported by Jim Meyering.
62163 2009-01-13  Bruno Haible  <bruno@clisp.org>
62165         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
62166         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
62167         * modules/unistdio/u8-printf-parse (Files): Likewise.
62168         * modules/unistdio/u32-printf-parse (Files): Likewise.
62169         * modules/unistdio/ulc-printf-parse (Files): Likewise.
62171 2009-01-13  Simon Josefsson  <simon@josefsson.org>
62173         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
62174         and m4/inttypes_h.m4 too.
62176 2009-01-12  Eric Blake  <ebb9@byu.net>
62178         tests: IRIX 6.2 cc can't compile -0.0 into .data
62179         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
62180         rather than at compile-time.
62181         * tests/test-floorl.c (minus_zero): Likewise.
62182         * tests/test-frexpl.c (minus_zero): Likewise.
62183         * tests/test-isnan.c (minus_zerol): Likewise.
62184         * tests/test-isnanl.h (minus_zero): Likewise.
62185         * tests/test-ldexpl.c (minus_zero): Likewise.
62186         * tests/test-roundl.c (minus_zero): Likewise.
62187         * tests/test-signbit.c (minus_zerol): Likewise.
62188         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
62189         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
62190         * tests/test-truncl.c (minus_zero): Likewise.
62191         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
62192         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
62193         Reported by Tom G. Christensen and Nelson H. F. Beebe.
62195 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
62197         regex: fix glibc bug 9697
62198         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
62199         handling.
62201 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
62203         regex: fix glibc bug 697
62204         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
62205         being NULL also if there are no backreferences.
62207 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
62209         regex: merge glibc changes
62210         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
62211         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
62212         re_string_skip_chars, re_string_reconstruct): Likewise.
62213         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
62215 2009-01-07  Jim Meyering  <meyering@redhat.com>
62217         poll: filter through cppi
62218         * lib/poll.c: Indent cpp directives to reflect nesting.
62220 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
62222         poll: don't return uninitialized
62223         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
62225 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
62227         avoid compile failure on AIX 6.1
62228         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
62229         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
62231 2009-01-04  Jim Meyering  <meyering@redhat.com>
62233         remove duplicate inclusion of <stdio.h>
62234         * tests/test-fprintf-posix.c: Likewise.
62235         * tests/test-printf-posix.c: Likewise.
62236         * tests/test-snprintf-posix.c: Likewise.
62237         * tests/test-sprintf-posix.c: Likewise.
62238         * tests/test-vasprintf-posix.c: Likewise.
62239         * tests/test-vfprintf-posix.c: Likewise.
62240         * tests/test-vprintf-posix.c: Likewise.
62241         * tests/test-vsnprintf-posix.c: Likewise.
62242         * tests/test-vsprintf-posix.c: Likewise.
62244 2009-01-03  Jim Meyering  <meyering@redhat.com>
62246         gnulib-tool: fix sed-based filtering
62247         * gnulib-tool (func_filter_filelist): Remove extra backslash
62248         in sed_fff_filter definition.
62250 2009-01-02  Jim Meyering  <meyering@redhat.com>
62252         strftime: avoid compilation failure on Solaris 2.6
62253         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
62254         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
62255         Don't #define mbrlen or mbsinit, since now they're guaranteed to
62256         be available.  Reported by Tom G. Christensen.  Details in
62257         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
62259 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62260             Bruno Haible  <bruno@clisp.org>
62262         Speed up gnulib-tool by doing more string processing through shell
62263         built-ins.
62264         * gnulib-tool (fast_func_append): New variable.
62265         (func_remove_prefix, func_remove_suffix): New functions.
62266         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
62267         (func_filter_filelist): New function.
62268         (func_get_dependencies): Use func_remove_suffix instead of sed.
62269         (func_get_automake_snippet): Use func_filter_filelist instead of a
62270         subshell and sed invocation.
62272 2009-01-01  Bruno Haible  <bruno@clisp.org>
62274         Fix a security bug.
62275         * gnulib-tool (func_import, import, update): Don't allow the characters
62276         '"', '$', '`', '\' in macro arguments that become part of commands that
62277         are evaluated.
62279 2009-01-01  Bruno Haible  <bruno@clisp.org>
62281         * gnulib-tool (func_reset_sigpipe): Add more comments.
62283 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62285         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
62286         func_emit_tests_Makefile_am, func_import): Abort loops early if we
62287         already know the answer.
62289 2009-01-01  Jim Meyering  <meyering@redhat.com>
62291         * lib/version-etc.c (version_etc_va): Update copyright year.
62293 2008-12-30  Bruno Haible  <bruno@clisp.org>
62295         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
62296         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
62297         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
62299 2008-12-29  Eric Blake  <ebb9@byu.net>
62301         multiarch: avoid autoconf AC_REQUIRE bug
62302         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
62303         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
62304         2.63 and older.
62305         Reported by Bruno Haible, and analyzed in
62306         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
62308 2008-12-29  Bruno Haible  <bruno@clisp.org>
62310         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
62311         files in subdirectories correctly.
62312         Reported by Ralf Wildenhues.
62314 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62316         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
62317         rather than 'join FILE -', for Solaris join.
62319 2008-12-29  Bruno Haible  <bruno@clisp.org>
62321         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
62322         quoting.
62323         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
62324         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
62325         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
62326         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
62327         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
62328         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
62329         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
62330         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
62331         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
62332         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
62333         * m4/nls.m4 (AM_NLS): Likewise.
62334         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
62335         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
62336         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
62337         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
62338         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
62339         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
62340         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
62341         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
62342         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
62343         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
62344         * m4/xsize.m4 (gl_XSIZE): Likewise.
62345         Suggested by Jim Meyering.
62347 2008-11-17  Bruce Korb  <bkorb@gnu.org>
62349         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
62350         * lib/parse-duration.c: use a switch instead of cascading if's.
62352 2008-12-29  Eric Blake  <ebb9@byu.net>
62354         wchar.h: supply WEOF on Irix 5.3
62355         * lib/wchar.in.h (wint_t): Also supply WEOF.
62356         * lib/wctype.in.h (wint_t): Likewise.
62357         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
62358         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
62359         Reported by Tom G. Christensen.
62361 2008-12-26  Bruno Haible  <bruno@clisp.org>
62363         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
62364         i486, i586, i686.
62366 2008-12-26  Bruno Haible  <bruno@clisp.org>
62368         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
62370 2008-12-26  Bruno Haible  <bruno@clisp.org>
62372         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
62373         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
62374         not __STDC_CONSTANT_MACROS.
62375         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
62377 2008-12-25  Bruno Haible  <bruno@clisp.org>
62379         Add support for universal builds to vasnprintf.
62380         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
62381         universal builds, guess no.
62382         * modules/vasnprintf-posix (Depends-on): Add multiarch.
62383         * modules/vasprintf-posix (Depends-on): Likewise.
62384         * modules/fprintf-posix (Depends-on): Likewise.
62385         * modules/vfprintf-posix (Depends-on): Likewise.
62386         * modules/snprintf-posix (Depends-on): Likewise.
62387         * modules/vsnprintf-posix (Depends-on): Likewise.
62388         * modules/sprintf-posix (Depends-on): Likewise.
62389         * modules/vsprintf-posix (Depends-on): Likewise.
62390         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
62391         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
62392         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
62393         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
62394         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
62395         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
62396         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
62398         Add support for universal builds to <inttypes.h>.
62399         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
62400         _SCNu64_PREFIX): In Apple
62401         universal builds, define directly, using _LP64.
62402         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
62403         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
62404         * modules/inttypes (Depends-on): Add multiarch.
62405         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
62407         Add support for universal builds to <stdint.h>.
62408         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
62409         universal builds, define directly, using _LP64.
62410         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
62411         Apple universal builds, don't test for the size and suffix of ptrdiff_t
62412         and size_t.
62413         * modules/stdint (Depends-on): Add multiarch.
62414         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
62416         New module 'multiarch'.
62417         * modules/multiarch: New file.
62418         * m4/multiarch.m4: New file.
62420 2008-12-25  Bruno Haible  <bruno@clisp.org>
62422         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
62424 2008-12-25  Bruno Haible  <bruno@clisp.org>
62426         * modules/btowc (License): Relicense under LGPLv2+.
62427         * modules/mbsinit (License): Likewise.
62428         * modules/mbrtowc (License): Likewise.
62429         * modules/wcrtomb (License): Likewise.
62430         * modules/streq (License): Likewise.
62431         Reported by David Lutterkort <lutter@redhat.com>.
62433 2008-12-23  Bruno Haible  <bruno@clisp.org>
62435         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
62437 2008-12-23  Bruno Haible  <bruno@clisp.org>
62439         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
62440         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
62441         GETADDRINFO_LIB, not in LIBS.
62442         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
62443         * modules/canon-host (Link): Likewise.
62444         * NEWS: Mention the change.
62445         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
62446         GETADDRINFO_LIB.
62448 2008-12-22  Bruno Haible  <bruno@clisp.org>
62450         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
62451         * doc/posix-functions/iswalpha_l.texi: Likewise.
62452         * doc/posix-functions/iswblank_l.texi: Likewise.
62453         * doc/posix-functions/iswcntrl_l.texi: Likewise.
62454         * doc/posix-functions/iswctype_l.texi: Likewise.
62455         * doc/posix-functions/iswdigit_l.texi: Likewise.
62456         * doc/posix-functions/iswgraph_l.texi: Likewise.
62457         * doc/posix-functions/iswlower_l.texi: Likewise.
62458         * doc/posix-functions/iswprint_l.texi: Likewise.
62459         * doc/posix-functions/iswpunct_l.texi: Likewise.
62460         * doc/posix-functions/iswspace_l.texi: Likewise.
62461         * doc/posix-functions/iswupper_l.texi: Likewise.
62462         * doc/posix-functions/iswxdigit_l.texi: Likewise.
62463         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
62464         * doc/posix-functions/open_wmemstream.texi: Likewise.
62465         * doc/posix-functions/swscanf.texi: Likewise.
62466         * doc/posix-functions/towctrans_l.texi: Likewise.
62467         * doc/posix-functions/towlower.texi: Likewise.
62468         * doc/posix-functions/towlower_l.texi: Likewise.
62469         * doc/posix-functions/towupper.texi: Likewise.
62470         * doc/posix-functions/towupper_l.texi: Likewise.
62471         * doc/posix-functions/vfwprintf.texi: Likewise.
62472         * doc/posix-functions/vfwscanf.texi: Likewise.
62473         * doc/posix-functions/vswscanf.texi: Likewise.
62474         * doc/posix-functions/vwprintf.texi: Likewise.
62475         * doc/posix-functions/vwscanf.texi: Likewise.
62476         * doc/posix-functions/wcpcpy.texi: Likewise.
62477         * doc/posix-functions/wcpncpy.texi: Likewise.
62478         * doc/posix-functions/wcscasecmp.texi: Likewise.
62479         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
62480         * doc/posix-functions/wcscoll_l.texi: Likewise.
62481         * doc/posix-functions/wcsdup.texi: Likewise.
62482         * doc/posix-functions/wcsncasecmp.texi: Likewise.
62483         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
62484         * doc/posix-functions/wcsnlen.texi: Likewise.
62485         * doc/posix-functions/wcsnrtombs.texi: Likewise.
62486         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
62487         * doc/posix-functions/wctrans_l.texi: Likewise.
62488         * doc/posix-functions/wctype_l.texi: Likewise.
62489         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
62490         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
62491         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
62492         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
62493         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
62494         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
62495         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
62496         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
62497         * doc/glibc-functions/wcschrnul.texi: Likewise.
62498         * doc/glibc-functions/wcsftime_l.texi: Likewise.
62499         * doc/glibc-functions/wcstod_l.texi: Likewise.
62500         * doc/glibc-functions/wcstof_l.texi: Likewise.
62501         * doc/glibc-functions/wcstol_l.texi: Likewise.
62502         * doc/glibc-functions/wcstold_l.texi: Likewise.
62503         * doc/glibc-functions/wcstoll_l.texi: Likewise.
62504         * doc/glibc-functions/wcstoq.texi: Likewise.
62505         * doc/glibc-functions/wcstoul_l.texi: Likewise.
62506         * doc/glibc-functions/wcstoull_l.texi: Likewise.
62507         * doc/glibc-functions/wcstouq.texi: Likewise.
62508         * doc/glibc-functions/wmempcpy.texi: Likewise.
62510 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
62511             Eric Blake  <ebb9@byu.net>
62512             Paolo Bonzini  <bonzini@gnu.org>
62513             Bruno Haible  <bruno@clisp.org>
62515         Make c-stack work on Haiku.
62516         * lib/c-stack.c (SA_ONSTACK): Define fallback.
62517         (c_stack_action): Use SA_ONSTACK flag.
62519 2008-12-22  Bruno Haible  <bruno@clisp.org>
62521         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
62523 2008-12-22  Bruno Haible  <bruno@clisp.org>
62525         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
62526         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
62527         being overridden.
62528         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
62529         New macros.
62530         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
62531         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
62532         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
62533         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
62535 2008-12-22  Bruno Haible  <bruno@clisp.org>
62537         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
62538         from test code.
62540 2008-12-22  Eric Blake  <ebb9@byu.net>
62542         Avoid gcc warnings on cygwin.
62543         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
62544         Avoid unused variable.
62545         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
62546         Likewise.
62548 2008-12-22  Bruno Haible  <bruno@clisp.org>
62550         Remove HAVE_MBRTOWC conditionals.
62551         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
62552         (mbscasecmp): Assume mbrtowc function.
62553         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
62554         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
62555         * lib/mbschr.c: Include mbuiter.h unconditionally.
62556         (mbschr): Assume mbrtowc function.
62557         * lib/mbscspn.c: Include mbuiter.h unconditionally.
62558         (mbscspn): Assume mbrtowc function.
62559         * lib/mbslen.c: Include mbuiter.h unconditionally.
62560         (mbslen): Assume mbrtowc function.
62561         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
62562         (mbsncasecmp): Assume mbrtowc function.
62563         * lib/mbsnlen.c: Include mbiter.h unconditionally.
62564         (mbsnlen): Assume mbrtowc function.
62565         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
62566         (mbspbrk): Assume mbrtowc function.
62567         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
62568         (mbspcasecmp): Assume mbrtowc function.
62569         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
62570         (mbsrchr): Assume mbrtowc function.
62571         * lib/mbssep.c: Include mbuiter.h unconditionally.
62572         (mbssep): Assume mbrtowc function.
62573         * lib/mbsspn.c: Include mbuiter.h unconditionally.
62574         (mbsspn): Assume mbrtowc function.
62575         * lib/mbsstr.c: Include mbuiter.h unconditionally.
62576         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
62577         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
62578         (mbstok_r): Assume mbrtowc function.
62579         * lib/propername.c: Include mbuiter.h unconditionally.
62580         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
62581         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
62582         (trim2): Assume mbrtowc function.
62583         * lib/mbswidth.c (mbsinit): Remove fallback definition.
62584         (mbsnwidth): Assume mbrtowc function.
62585         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
62586         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
62587         fallback definitions.
62588         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
62590 2008-12-22  Bruno Haible  <bruno@clisp.org>
62592         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
62594 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
62596         * modules/regex: Request emulations for the mb*/wc* functions we need.
62597         * m4/regex.m4: Don't look for those functions here.
62598         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
62600 2008-12-22  Bruno Haible  <bruno@clisp.org>
62602         * modules/fnmatch (Depends-on): Remove duplicated dependency.
62604 2008-12-21  Bruno Haible  <bruno@clisp.org>
62606         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
62607         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
62608         (Include): Remove conditionalization.
62609         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
62610         (Include): Remove conditionalization.
62611         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
62612         (Include): Remove conditionalization.
62613         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
62614         * m4/mbfile.m4 (gl_MBFILE): Likewise.
62615         * NEWS: Mention the change.
62616         Reported by Alan Hourihane <alanh@fairlite.co.uk>
62617         via Sergey Poznyakoff <gray@gnu.org.ua>.
62619 2008-12-21  Bruno Haible  <bruno@clisp.org>
62621         * MODULES.html.sh (Extended multibyte and wide character utilities
62622         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
62623         wcrtomb, wcsrtombs.
62624         (Support for systems lacking POSIX:2008): Add accept, bind, close,
62625         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
62626         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
62627         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
62629 2008-12-21  Bruno Haible  <bruno@clisp.org>
62631         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
62633 2008-12-21  Bruno Haible  <bruno@clisp.org>
62635         * modules/wcsnrtombs-tests: New file.
62636         * tests/test-wcsnrtombs1.sh: New file.
62637         * tests/test-wcsnrtombs2.sh: New file.
62638         * tests/test-wcsnrtombs3.sh: New file.
62639         * tests/test-wcsnrtombs4.sh: New file.
62640         * tests/test-wcsnrtombs.c: New file.
62642         New module 'wcsnrtombs'.
62643         * lib/wchar.in.h (wcsnrtombs): New declaration.
62644         * lib/wcsnrtombs.c: New file.
62645         * lib/wcsrtombs-state.c: New file.
62646         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
62647         (internal_state): Remove variable.
62648         * m4/wcsnrtombs.m4: New file.
62649         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
62650         compilation units.
62651         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
62652         HAVE_WCSNRTOMBS.
62653         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
62654         HAVE_WCSNRTOMBS.
62655         * modules/wcsnrtombs: New file.
62656         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
62657         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
62659 2008-12-21  Bruno Haible  <bruno@clisp.org>
62661         * modules/wcsrtombs-tests: New file.
62662         * tests/test-wcsrtombs1.sh: New file.
62663         * tests/test-wcsrtombs2.sh: New file.
62664         * tests/test-wcsrtombs3.sh: New file.
62665         * tests/test-wcsrtombs4.sh: New file.
62666         * tests/test-wcsrtombs.c: New file.
62668         New module 'wcsrtombs'.
62669         * lib/wchar.in.h (wcsrtombs): New declaration.
62670         * lib/wcsrtombs.c: New file.
62671         * m4/wcsrtombs.m4: New file.
62672         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
62673         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
62674         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
62675         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
62676         * modules/wcsrtombs: New file.
62677         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
62678         bugs.
62680 2008-12-21  Bruno Haible  <bruno@clisp.org>
62682         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
62683         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
62684         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
62685         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
62686         if not correct.
62687         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
62688         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
62689         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
62690         m4/locale-zh.m4, m4/codeset.m4.
62691         * doc/posix-functions/wcrtomb.texi: Document the bug.
62693 2008-12-21  Bruno Haible  <bruno@clisp.org>
62695         Work around a btowc() bug on IRIX 6.5.
62696         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
62697         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
62698         REPLACE_WTOBC if not.
62699         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
62700         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
62701         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
62703 2008-12-21  Bruno Haible  <bruno@clisp.org>
62705         * modules/wcrtomb-tests: New file.
62706         * tests/test-wcrtomb.sh: New file.
62707         * tests/test-wcrtomb.c: New file.
62709         New module 'wcrtomb'.
62710         * lib/wchar.in.h (wcrtomb): New declaration.
62711         * lib/wcrtomb.c: New file.
62712         * m4/wcrtomb.m4: New file.
62713         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
62714         HAVE_WCRTOMB.
62715         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
62716         HAVE_WCRTOMB.
62717         * modules/wcrtomb: New file.
62718         * doc/posix-functions/wcrtomb.texi: Mention the new module.
62720 2008-12-21  Bruno Haible  <bruno@clisp.org>
62722         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
62723         * modules/mbsrtowcs (Files): Likewise.
62724         * modules/wctob (Files): Likewise.
62725         * modules/c-strcase-tests (Files): Likewise.
62726         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
62727         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
62728         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
62729         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
62730         * modules/vasnprintf-posix-tests (Files): Likewise.
62732 2008-12-21  William Pursell  <bill.pursell@gmail.com>
62734         gitlog-to-changelog: pass all command-line arguments to git-log
62735         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
62736         it is sometimes convenient to filter the commits in various ways.
62737         gitlog-to-changelog only allows --since to specify a start date,
62738         but git-log itself supports many other filtering mechanisms.
62739         At the moment, I want to filter by branch name.  Rather than
62740         adding a --branch option to gitlog-to-changelog, it seems more
62741         flexible to simply pass all options directly to git-log and let
62742         git do the work.  Notice that this effectively makes --since a
62743         redundant option for gitlog-to-changelog, but removing it would
62744         require current usage to change since calls would then require
62745         an additional '--'.
62747 2008-12-21  Bruno Haible  <bruno@clisp.org>
62749         * modules/mbsnrtowcs-tests: New file.
62750         * tests/test-mbsnrtowcs1.sh: New file.
62751         * tests/test-mbsnrtowcs2.sh: New file.
62752         * tests/test-mbsnrtowcs3.sh: New file.
62753         * tests/test-mbsnrtowcs4.sh: New file.
62754         * tests/test-mbsnrtowcs.c: New file.
62756         New module 'mbsnrtowcs'.
62757         * lib/wchar.in.h (mbsnrtowcs): New declaration.
62758         * lib/mbsnrtowcs.c: New file.
62759         * lib/mbsrtowcs-state.c: New file.
62760         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
62761         (internal_state): Remove variable.
62762         * m4/mbsnrtowcs.m4: New file.
62763         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
62764         compilation units.
62765         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
62766         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
62767         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
62768         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
62769         * modules/mbsnrtowcs: New file.
62770         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
62771         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
62772         portability problem.
62774 2008-12-21  Bruno Haible  <bruno@clisp.org>
62776         Work around mbsrtowcs bug.
62777         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
62778         (gl_FUNC_MBSRTOWCS): Invoke it.
62779         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
62780         m4/locale-zh.m4.
62781         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
62783 2008-12-21  Bruno Haible  <bruno@clisp.org>
62785         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
62787 2008-12-21  Bruno Haible  <bruno@clisp.org>
62789         Update doc for AIX.
62790         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
62791         16-bit wchar_t type.
62792         * doc/posix-functions/btowc.texi: Likewise.
62793         * doc/posix-functions/fgetwc.texi: Likewise.
62794         * doc/posix-functions/fgetws.texi: Likewise.
62795         * doc/posix-functions/fputwc.texi: Likewise.
62796         * doc/posix-functions/fputws.texi: Likewise.
62797         * doc/posix-functions/fwide.texi: Likewise.
62798         * doc/posix-functions/fwprintf.texi: Likewise.
62799         * doc/posix-functions/fwscanf.texi: Likewise.
62800         * doc/posix-functions/getwchar.texi: Likewise.
62801         * doc/posix-functions/getwc.texi: Likewise.
62802         * doc/posix-functions/iswalnum.texi: Likewise.
62803         * doc/posix-functions/iswalpha.texi: Likewise.
62804         * doc/posix-functions/iswblank.texi: Likewise.
62805         * doc/posix-functions/iswcntrl.texi: Likewise.
62806         * doc/posix-functions/iswctype.texi: Likewise.
62807         * doc/posix-functions/iswdigit.texi: Likewise.
62808         * doc/posix-functions/iswgraph.texi: Likewise.
62809         * doc/posix-functions/iswlower.texi: Likewise.
62810         * doc/posix-functions/iswprint.texi: Likewise.
62811         * doc/posix-functions/iswpunct.texi: Likewise.
62812         * doc/posix-functions/iswspace.texi: Likewise.
62813         * doc/posix-functions/iswupper.texi: Likewise.
62814         * doc/posix-functions/iswxdigit.texi: Likewise.
62815         * doc/posix-functions/mbrtowc.texi: Likewise.
62816         * doc/posix-functions/mbsrtowcs.texi: Likewise.
62817         * doc/posix-functions/mbstowcs.texi: Likewise.
62818         * doc/posix-functions/mbtowc.texi: Likewise.
62819         * doc/posix-functions/putwchar.texi: Likewise.
62820         * doc/posix-functions/putwc.texi: Likewise.
62821         * doc/posix-functions/swprintf.texi: Likewise.
62822         * doc/posix-functions/tolower.texi: Likewise.
62823         * doc/posix-functions/toupper.texi: Likewise.
62824         * doc/posix-functions/towctrans.texi: Likewise.
62825         * doc/posix-functions/ungetwc.texi: Likewise.
62826         * doc/posix-functions/vswprintf.texi: Likewise.
62827         * doc/posix-functions/wcrtomb.texi: Likewise.
62828         * doc/posix-functions/wcscat.texi: Likewise.
62829         * doc/posix-functions/wcschr.texi: Likewise.
62830         * doc/posix-functions/wcscmp.texi: Likewise.
62831         * doc/posix-functions/wcscoll.texi: Likewise.
62832         * doc/posix-functions/wcscpy.texi: Likewise.
62833         * doc/posix-functions/wcscspn.texi: Likewise.
62834         * doc/posix-functions/wcsftime.texi: Likewise.
62835         * doc/posix-functions/wcslen.texi: Likewise.
62836         * doc/posix-functions/wcsncat.texi: Likewise.
62837         * doc/posix-functions/wcsncmp.texi: Likewise.
62838         * doc/posix-functions/wcsncpy.texi: Likewise.
62839         * doc/posix-functions/wcspbrk.texi: Likewise.
62840         * doc/posix-functions/wcsrchr.texi: Likewise.
62841         * doc/posix-functions/wcsrtombs.texi: Likewise.
62842         * doc/posix-functions/wcsspn.texi: Likewise.
62843         * doc/posix-functions/wcsstr.texi: Likewise.
62844         * doc/posix-functions/wcstod.texi: Likewise.
62845         * doc/posix-functions/wcstof.texi: Likewise.
62846         * doc/posix-functions/wcstoimax.texi: Likewise.
62847         * doc/posix-functions/wcstok.texi: Likewise.
62848         * doc/posix-functions/wcstold.texi: Likewise.
62849         * doc/posix-functions/wcstoll.texi: Likewise.
62850         * doc/posix-functions/wcstol.texi: Likewise.
62851         * doc/posix-functions/wcstombs.texi: Likewise.
62852         * doc/posix-functions/wcstoull.texi: Likewise.
62853         * doc/posix-functions/wcstoul.texi: Likewise.
62854         * doc/posix-functions/wcstoumax.texi: Likewise.
62855         * doc/posix-functions/wcswidth.texi: Likewise.
62856         * doc/posix-functions/wcsxfrm.texi: Likewise.
62857         * doc/posix-functions/wctob.texi: Likewise.
62858         * doc/posix-functions/wctomb.texi: Likewise.
62859         * doc/posix-functions/wctrans.texi: Likewise.
62860         * doc/posix-functions/wctype.texi: Likewise.
62861         * doc/posix-functions/wcwidth.texi: Likewise.
62862         * doc/posix-functions/wmemchr.texi: Likewise.
62863         * doc/posix-functions/wmemcmp.texi: Likewise.
62864         * doc/posix-functions/wmemcpy.texi: Likewise.
62865         * doc/posix-functions/wmemmove.texi: Likewise.
62866         * doc/posix-functions/wmemset.texi: Likewise.
62867         * doc/posix-functions/wprintf.texi: Likewise.
62868         * doc/posix-functions/wscanf.texi: Likewise.
62870 2008-12-21  Bruno Haible  <bruno@clisp.org>
62872         Update doc for HP-UX 11.11.
62873         * doc/posix-functions/btowc.texi: Clarify that the function is missing
62874         in HP-UX version 11.00, not in all versions of HP-UX 11.
62875         * doc/posix-functions/fwide.texi: Likewise.
62876         * doc/posix-functions/fwprintf.texi: Likewise.
62877         * doc/posix-functions/fwscanf.texi: Likewise.
62878         * doc/posix-functions/inet_ntop.texi: Likewise.
62879         * doc/posix-functions/inet_pton.texi: Likewise.
62880         * doc/posix-functions/mbrlen.texi: Likewise.
62881         * doc/posix-functions/mbrtowc.texi: Likewise.
62882         * doc/posix-functions/mbsinit.texi: Likewise.
62883         * doc/posix-functions/mbsrtowcs.texi: Likewise.
62884         * doc/posix-functions/swprintf.texi: Likewise.
62885         * doc/posix-functions/swscanf.texi: Likewise.
62886         * doc/posix-functions/towctrans.texi: Likewise.
62887         * doc/posix-functions/vfwprintf.texi: Likewise.
62888         * doc/posix-functions/vswprintf.texi: Likewise.
62889         * doc/posix-functions/vwprintf.texi: Likewise.
62890         * doc/posix-functions/wcrtomb.texi: Likewise.
62891         * doc/posix-functions/wcsrtombs.texi: Likewise.
62892         * doc/posix-functions/wcsstr.texi: Likewise.
62893         * doc/posix-functions/wctob.texi: Likewise.
62894         * doc/posix-functions/wctrans.texi: Likewise.
62895         * doc/posix-functions/wmemchr.texi: Likewise.
62896         * doc/posix-functions/wmemcmp.texi: Likewise.
62897         * doc/posix-functions/wmemcpy.texi: Likewise.
62898         * doc/posix-functions/wmemmove.texi: Likewise.
62899         * doc/posix-functions/wmemset.texi: Likewise.
62900         * doc/posix-functions/wprintf.texi: Likewise.
62901         * doc/posix-functions/wscanf.texi: Likewise.
62903 2008-12-21  Bruno Haible  <bruno@clisp.org>
62905         Work around a portability problem.
62906         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
62907         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
62909 2008-12-20  Bruno Haible  <bruno@clisp.org>
62911         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
62912         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
62913         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
62914         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
62915         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
62917         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
62918         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
62919         set.
62920         (GNULIB_defined_mbstate_t): New macro.
62921         (mbsinit): Redefine if REPLACE_MBSINIT is set.
62922         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
62923         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
62924         reuses the system's mbrtowc function but works around the bugs.
62925         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
62926         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
62927         macros.
62928         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
62929         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
62930         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
62931         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
62932         REPLACE_MBSINIT if mbsinit needs to be overridden.
62933         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
62934         REPLACE_MBSINIT, REPLACE_MBRTOWC.
62935         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
62936         REPLACE_MBSINIT, REPLACE_MBRTOWC.
62937         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
62938         m4/locale-zh.m4.
62939         (Depends): Add mbsinit.
62940         * modules/mbsinit (Depends): Add mbrtowc.
62941         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
62943 2008-12-20  Bruno Haible  <bruno@clisp.org>
62945         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
62946         so that there are no conversion errors on AIX.
62947         * tests/test-mbsrtowcs.c (main): LIkewise.
62949 2008-12-20  Bruno Haible  <bruno@clisp.org>
62951         Work around wctob bug on Solaris <= 9.
62952         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
62953         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
62954         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
62955         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
62956         * modules/wctob (Files): Add m4/locale-fr.m4.
62957         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
62959 2008-12-20  Bruno Haible  <bruno@clisp.org>
62961         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
62962         /dev/null.
62963         * tests/test-select-in.sh: Likewise.
62964         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
62966 2008-12-20  Bruno Haible  <bruno@clisp.org>
62968         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
62969         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
62970         Cygwin 1.5.x.
62972 2008-12-20  Bruno Haible  <bruno@clisp.org>
62974         Ensure mbstate_t is defined on HP-UX 11.11.
62975         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
62976         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
62977         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
62978         AC_USE_SYSTEM_EXTENSIONS.
62979         * modules/fnmatch (Depends-on): Add extensions.
62980         * modules/mbrlen (Depends-on): Likewise.
62981         * modules/mbrtowc (Depends-on): Likewise.
62982         * modules/mbsinit (Depends-on): Likewise.
62983         * modules/mbsrtowcs (Depends-on): Likewise.
62984         * modules/mbswidth (Depends-on): Likewise.
62985         * modules/quotearg (Depends-on): Likewise.
62986         * modules/strftime (Depends-on): Likewise.
62988 2008-12-20  Bruno Haible  <bruno@clisp.org>
62990         Ensure wctob is declared on IRIX 6.5.
62991         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
62992         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
62993         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
62994         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
62995         of HAVE_WCTOB.
62996         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
62997         HAVE_WCTOB.
62998         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
63000 2008-12-19  Bruno Haible  <bruno@clisp.org>
63002         * modules/mbsrtowcs-tests: New file.
63003         * tests/test-mbsrtowcs1.sh: New file.
63004         * tests/test-mbsrtowcs2.sh: New file.
63005         * tests/test-mbsrtowcs3.sh: New file.
63006         * tests/test-mbsrtowcs4.sh: New file.
63007         * tests/test-mbsrtowcs.c: New file.
63009         New module 'mbsrtowcs'.
63010         * lib/wchar.in.h (mbsrtowcs): New declaration.
63011         * lib/mbsrtowcs.c: New file.
63012         * m4/mbsrtowcs.m4: New file.
63013         * modules/mbsrtowcs: New file.
63014         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
63015         HAVE_MBSRTOWCS.
63016         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
63017         HAVE_MBSRTOWCS.
63018         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
63020 2008-12-19  Bruno Haible  <bruno@clisp.org>
63022         New module 'mbrlen'.
63023         * lib/wchar.in.h (mbrlen): New declaration.
63024         * lib/mbrlen.c: New file.
63025         * m4/mbrlen.m4: New file.
63026         * modules/mbrlen: New file.
63027         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
63028         HAVE_MBRLEN.
63029         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
63030         HAVE_MBRLEN.
63031         * doc/posix-functions/mbrlen.texi: Document the new module.
63033 2008-12-19  Bruno Haible  <bruno@clisp.org>
63035         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
63036         * modules/mbrtowc (Depends-on): Add verify.
63037         Suggested by Paul Eggert.
63039 2008-12-18  Bruno Haible  <bruno@clisp.org>
63041         * modules/mbsinit-tests: New file.
63042         * tests/test-mbsinit.sh: New file.
63043         * tests/test-mbsinit.c: New file.
63045 2008-12-18  Bruno Haible  <bruno@clisp.org>
63047         * modules/mbrtowc-tests: New file.
63048         * tests/test-mbrtowc1.sh: New file.
63049         * tests/test-mbrtowc2.sh: New file.
63050         * tests/test-mbrtowc3.sh: New file.
63051         * tests/test-mbrtowc4.sh: New file.
63052         * tests/test-mbrtowc.c: New file.
63054         New module 'mbrtowc'.
63055         * lib/wchar.in.h (mbstate_t): Override when the system does not have
63056         mbsinit and mbrtowc.
63057         (mbrtowc): New declaration.
63058         * lib/mbrtowc.c: New file.
63059         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
63060         * modules/mbrtowc: New file.
63061         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
63062         HAVE_MBRTOWC.
63063         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
63064         HAVE_MBRTOWC.
63065         * doc/posix-functions/mbrtowc.texi: Document the new module.
63067 2008-12-18  Bruno Haible  <bruno@clisp.org>
63069         New module 'wctob'.
63070         * lib/wchar.in.h (wctob): New declaration.
63071         * lib/wctob.c: New file.
63072         * m4/wctob.m4: New file.
63073         * modules/wctob: New file.
63074         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
63075         HAVE_WCTOB.
63076         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
63077         * doc/posix-functions/wctob.texi: Document the new module.
63079 2008-12-18  Bruno Haible  <bruno@clisp.org>
63081         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
63082         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
63084 2008-12-18  Simon Josefsson  <simon@josefsson.org>
63086         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
63087         G. Christensen" <tgc@jupiterrise.com>.
63089         * lib/flock.c: Need to include errno.h.  Reported by "Tom
63090         G. Christensen" <tgc@jupiterrise.com>.
63092         * lib/flock.c: Need to include string.h.  Reported by "Tom
63093         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
63094         <ebb9@byu.net>.
63096 2008-12-18  Bruno Haible  <bruno@clisp.org>
63098         * m4/locale-ja.m4: New file, from GNU gettext.
63100 2008-12-17  Bruno Haible  <bruno@clisp.org>
63102         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
63103         Suggested by Eric Blake.
63105 2008-12-17  Bruno Haible  <bruno@clisp.org>
63107         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
63109 2008-12-17  Bruno Haible  <bruno@clisp.org>
63111         * lib/mbsinit.c: Include verify.h. Verify an assumption.
63112         * modules/mbsinit (Depends-on): Add verify.
63113         Suggested by Paul Eggert.
63115 2008-12-17  Bruno Haible  <bruno@clisp.org>
63117         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
63118         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
63119         gl_FUNC_MBRTOWC.
63120         * m4/mbiter.m4 (gl_MBITER): LIkewise.
63121         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
63122         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
63123         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
63124         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
63125         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
63126         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
63127         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
63128         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
63129         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
63130         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
63131         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
63132         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
63133         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
63134         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
63135         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
63136         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
63137         * modules/trim (configure.ac): Likewise.
63139 2008-12-17  Bruno Haible  <bruno@clisp.org>
63141         * modules/btowc-tests: New file.
63142         * tests/test-btowc1.sh: New file.
63143         * tests/test-btowc2.sh: New file.
63144         * tests/test-btowc.c: New file.
63146         New module 'btowc'.
63147         * lib/wchar.in.h (btowc): New declaration.
63148         * lib/btowc.c: New file.
63149         * m4/btowc.m4: New file.
63150         * modules/btowc: New file.
63151         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
63152         HAVE_BTOWC.
63153         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
63154         * doc/posix-functions/btowc.texi: Document the new module.
63156 2008-12-17  Bruno Haible  <bruno@clisp.org>
63158         New module 'mbsinit'.
63159         * lib/wchar.in.h (mbsinit): New declaration.
63160         * lib/mbsinit.c: New file.
63161         * m4/mbsinit.m4: New file.
63162         * modules/mbsinit: New file.
63163         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
63164         HAVE_MBSINIT.
63165         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
63166         HAVE_MBSINIT.
63167         * doc/posix-functions/mbsinit.texi: Document the new module.
63169 2008-12-16  Bruno Haible  <bruno@clisp.org>
63171         * lib/unistd.in.h: Add comment.
63172         * tests/test-environ.c: Don't include <stdlib.h>.
63174 2008-12-16  Bruno Haible  <bruno@clisp.org>
63176         * lib/parse-duration.h (parse_duration): Document return value
63177         convention.
63178         * lib/parse-duration.c: Include specification header first. Add
63179         comments.
63180         (_): Remove macro.
63181         (parse_year_month_day, parse_hour_minute_second): Move side effects
63182         outside of strchr call.
63183         (parse_non_iso8601): Move side effects outside of isspace call.
63184         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
63185         call.
63187 2008-12-16  Bruno Haible  <bruno@clisp.org>
63189         * tests/test-parse-duration.sh: Produce no output when the test
63190         succeeds.
63192 2008-12-16  Bruno Haible  <bruno@clisp.org>
63194         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
63195         expressions.
63197 2008-12-15  Bruno Haible  <bruno@clisp.org>
63199         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
63200         * doc/glibc-functions/flistxattr.texi: Likewise.
63201         * doc/glibc-functions/fopencookie.texi: Likewise.
63202         * doc/glibc-functions/fremovexattr.texi: Likewise.
63203         * doc/glibc-functions/fsetxattr.texi: Likewise.
63204         * doc/glibc-functions/getxattr.texi: Likewise.
63205         * doc/glibc-functions/lgetxattr.texi: Likewise.
63206         * doc/glibc-functions/listxattr.texi: Likewise.
63207         * doc/glibc-functions/llistxattr.texi: Likewise.
63208         * doc/glibc-functions/lremovexattr.texi: Likewise.
63209         * doc/glibc-functions/lsetxattr.texi: Likewise.
63210         * doc/glibc-functions/removexattr.texi: Likewise.
63211         * doc/glibc-functions/setxattr.texi: Likewise.
63212         * doc/posix-functions/open_memstream.texi: Likewise.
63214 2008-12-15  Eric Blake  <ebb9@byu.net>
63216         Update doc for cygwin 1.7.
63217         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
63218         functions.
63219         * doc/posix-functions/fchmodat.texi: Likewise.
63220         * doc/posix-functions/fchownat.texi: Likewise.
63221         * doc/posix-functions/fdopendir.texi: Likewise.
63222         * doc/posix-functions/fmemopen.texi: Likewise.
63223         * doc/posix-functions/freeaddrinfo.texi: Likewise.
63224         * doc/posix-functions/fstatat.texi: Likewise.
63225         * doc/posix-functions/futimens.texi: Likewise.
63226         * doc/posix-functions/gai_strerror.texi: Likewise.
63227         * doc/posix-functions/getaddrinfo.texi: Likewise.
63228         * doc/posix-functions/getnameinfo.texi: Likewise.
63229         * doc/posix-functions/if_freenameindex.texi: Likewise.
63230         * doc/posix-functions/if_indextoname.texi: Likewise.
63231         * doc/posix-functions/if_nameindex.texi: Likewise.
63232         * doc/posix-functions/if_nametoindex.texi: Likewise.
63233         * doc/posix-functions/insque.texi: Likewise.
63234         * doc/posix-functions/linkat.texi: Likewise.
63235         * doc/posix-functions/llrint.texi: Likewise.
63236         * doc/posix-functions/llrintf.texi: Likewise.
63237         * doc/posix-functions/llrintl.texi: Likewise.
63238         * doc/posix-functions/lockf.texi: Likewise.
63239         * doc/posix-functions/lrintl.texi: Likewise.
63240         * doc/posix-functions/mkdirat.texi: Likewise.
63241         * doc/posix-functions/mkfifoat.texi: Likewise.
63242         * doc/posix-functions/mknodat.texi: Likewise.
63243         * doc/posix-functions/mq_close.texi: Likewise.
63244         * doc/posix-functions/mq_getattr.texi: Likewise.
63245         * doc/posix-functions/mq_notify.texi: Likewise.
63246         * doc/posix-functions/mq_open.texi: Likewise.
63247         * doc/posix-functions/mq_receive.texi: Likewise.
63248         * doc/posix-functions/mq_send.texi: Likewise.
63249         * doc/posix-functions/mq_setattr.texi: Likewise.
63250         * doc/posix-functions/mq_timedreceive.texi: Likewise.
63251         * doc/posix-functions/mq_timedsend.texi: Likewise.
63252         * doc/posix-functions/mq_unlink.texi: Likewise.
63253         * doc/posix-functions/open_memstream.texi: Likewise.
63254         * doc/posix-functions/openat.texi: Likewise.
63255         * doc/posix-functions/posix_fadvise.texi: Likewise.
63256         * doc/posix-functions/posix_fallocate.texi: Likewise.
63257         * doc/posix-functions/posix_madvise.texi: Likewise.
63258         * doc/posix-functions/posix_memalign.texi: Likewise.
63259         * doc/posix-functions/posix_openpt.texi: Likewise.
63260         * doc/posix-functions/readlinkat.texi: Likewise.
63261         * doc/posix-functions/remque.texi: Likewise.
63262         * doc/posix-functions/renameat.texi: Likewise.
63263         * doc/posix-functions/rintl.texi: Likewise.
63264         * doc/posix-functions/sem_unlink.texi: Likewise.
63265         * doc/posix-functions/shm_open.texi: Likewise.
63266         * doc/posix-functions/shm_unlink.texi: Likewise.
63267         * doc/posix-functions/signgam.texi: Likewise.
63268         * doc/posix-functions/sigset.texi: Likewise.
63269         * doc/posix-functions/stpcpy.texi: Likewise.
63270         * doc/posix-functions/stpncpy.texi: Likewise.
63271         * doc/posix-functions/strerror.texi: Likewise.
63272         * doc/posix-functions/strtod.texi: Likewise.
63273         * doc/posix-functions/symlinkat.texi: Likewise.
63274         * doc/posix-functions/unlinkat.texi: Likewise.
63275         * doc/posix-functions/utimensat.texi: Likewise.
63276         * doc/glibc-functions/bindresvport.texi: Likewise.
63277         * doc/glibc-functions/dn_expand.texi: Likewise.
63278         * doc/glibc-functions/exp10.texi: Likewise.
63279         * doc/glibc-functions/exp10f.texi: Likewise.
63280         * doc/glibc-functions/fgetxattr.texi: Likewise.
63281         * doc/glibc-functions/flistxattr.texi: Likewise.
63282         * doc/glibc-functions/fopencookie.texi: Likewise.
63283         * doc/glibc-functions/freeifaddrs.texi: Likewise.
63284         * doc/glibc-functions/fremovexattr.texi: Likewise.
63285         * doc/glibc-functions/fsetxattr.texi: Likewise.
63286         * doc/glibc-functions/getifaddrs.texi: Likewise.
63287         * doc/glibc-functions/getxattr.texi: Likewise.
63288         * doc/glibc-functions/lgetxattr.texi: Likewise.
63289         * doc/glibc-functions/listxattr.texi: Likewise.
63290         * doc/glibc-functions/llistxattr.texi: Likewise.
63291         * doc/glibc-functions/lremovexattr.texi: Likewise.
63292         * doc/glibc-functions/lsetxattr.texi: Likewise.
63293         * doc/glibc-functions/pow10.texi: Likewise.
63294         * doc/glibc-functions/pow10f.texi: Likewise.
63295         * doc/glibc-functions/rcmd_af.texi: Likewise.
63296         * doc/glibc-functions/removexattr.texi: Likewise.
63297         * doc/glibc-functions/res_init.texi: Likewise.
63298         * doc/glibc-functions/res_mkquery.texi: Likewise.
63299         * doc/glibc-functions/res_query.texi: Likewise.
63300         * doc/glibc-functions/res_querydomain.texi: Likewise.
63301         * doc/glibc-functions/res_send.texi: Likewise.
63302         * doc/glibc-functions/rresvport_af.texi: Likewise.
63303         * doc/glibc-functions/setxattr.texi: Likewise.
63304         * doc/glibc-functions/strcasestr.texi: Likewise.
63306 2008-12-15  Bruno Haible  <bruno@clisp.org>
63308         Fix compilation error on OSF/1 4.0.
63309         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
63310         <sys/time.h>, simply delegate to the system header.
63311         Reported by Daniel Richard G. <oss@teragram.com>.
63313 2008-12-15  Bruno Haible  <bruno@clisp.org>
63315         * doc/posix-functions/openat.texi: Mention the 'openat' module.
63316         * doc/posix-functions/fchmodat.texi: Likewise.
63317         * doc/posix-functions/fchownat.texi: Likewise.
63318         * doc/posix-functions/fdopendir.texi: Likewise.
63319         * doc/posix-functions/fstatat.texi: Likewise.
63320         * doc/posix-functions/mkdirat.texi: Likewise.
63321         * doc/posix-functions/unlinkat.texi: Likewise.
63323 2008-12-14  Bruno Haible  <bruno@clisp.org>
63325         Update doc for POSIX:2008.
63326         * doc/posix-functions/faccessat.texi: New file.
63327         * doc/posix-functions/fchmodat.texi: New file.
63328         * doc/posix-functions/fchownat.texi: New file.
63329         * doc/posix-functions/fdopendir.texi: New file.
63330         * doc/posix-functions/fstatat.texi: New file.
63331         * doc/posix-functions/futimens.texi: New file.
63332         * doc/posix-functions/linkat.texi: New file.
63333         * doc/posix-functions/mkdirat.texi: New file.
63334         * doc/posix-functions/mkfifoat.texi: New file.
63335         * doc/posix-functions/mknodat.texi: New file.
63336         * doc/posix-functions/open_wmemstream.texi: New file.
63337         * doc/posix-functions/openat.texi: New file.
63338         * doc/posix-functions/psiginfo.texi: New file.
63339         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
63340         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
63341         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
63342         * doc/posix-functions/readlinkat.texi: New file.
63343         * doc/posix-functions/renameat.texi: New file.
63344         * doc/posix-functions/strerror_l.texi: New file.
63345         * doc/posix-functions/symlinkat.texi: New file.
63346         * doc/posix-functions/unlinkat.texi: New file.
63347         * doc/posix-functions/utimensat.texi: New file.
63348         * doc/gnulib.texi (Function Substitutes): Add these subsections.
63350 2008-12-14  Bruno Haible  <bruno@clisp.org>
63352         Update doc for POSIX:2008.
63353         * doc/posix-functions/alphasort.texi: Renamed from
63354         doc/glibc-functions/alphasort.texi.
63355         * doc/posix-functions/dirfd.texi: Renamed from
63356         doc/glibc-functions/dirfd.texi.
63357         * doc/posix-functions/dprintf.texi: Renamed from
63358         doc/glibc-functions/dprintf.texi.
63359         * doc/posix-functions/duplocale.texi: Renamed from
63360         doc/glibc-functions/duplocale.texi.
63361         * doc/posix-functions/fexecve.texi: Renamed from
63362         doc/glibc-functions/fexecve.texi.
63363         * doc/posix-functions/fmemopen.texi: Renamed from
63364         doc/glibc-functions/fmemopen.texi.
63365         * doc/posix-functions/freelocale.texi: Renamed from
63366         doc/glibc-functions/freelocale.texi.
63367         * doc/posix-functions/getdate_err.texi: Renamed from
63368         doc/glibc-functions/getdate_err.texi.
63369         * doc/posix-functions/isalnum_l.texi: Renamed from
63370         doc/glibc-functions/isalnum_l.texi.
63371         * doc/posix-functions/isalpha_l.texi: Renamed from
63372         doc/glibc-functions/isalpha_l.texi.
63373         * doc/posix-functions/isblank_l.texi: Renamed from
63374         doc/glibc-functions/isblank_l.texi.
63375         * doc/posix-functions/iscntrl_l.texi: Renamed from
63376         doc/glibc-functions/iscntrl_l.texi.
63377         * doc/posix-functions/isdigit_l.texi: Renamed from
63378         doc/glibc-functions/isdigit_l.texi.
63379         * doc/posix-functions/isgraph_l.texi: Renamed from
63380         doc/glibc-functions/isgraph_l.texi.
63381         * doc/posix-functions/islower_l.texi: Renamed from
63382         doc/glibc-functions/islower_l.texi.
63383         * doc/posix-functions/isprint_l.texi: Renamed from
63384         doc/glibc-functions/isprint_l.texi.
63385         * doc/posix-functions/ispunct_l.texi: Renamed from
63386         doc/glibc-functions/ispunct_l.texi.
63387         * doc/posix-functions/isspace_l.texi: Renamed from
63388         doc/glibc-functions/isspace_l.texi.
63389         * doc/posix-functions/isupper_l.texi: Renamed from
63390         doc/glibc-functions/isupper_l.texi.
63391         * doc/posix-functions/iswalnum_l.texi: Renamed from
63392         doc/glibc-functions/iswalnum_l.texi.
63393         * doc/posix-functions/iswalpha_l.texi: Renamed from
63394         doc/glibc-functions/iswalpha_l.texi.
63395         * doc/posix-functions/iswblank_l.texi: Renamed from
63396         doc/glibc-functions/iswblank_l.texi.
63397         * doc/posix-functions/iswcntrl_l.texi: Renamed from
63398         doc/glibc-functions/iswcntrl_l.texi.
63399         * doc/posix-functions/iswctype_l.texi: Renamed from
63400         doc/glibc-functions/iswctype_l.texi.
63401         * doc/posix-functions/iswdigit_l.texi: Renamed from
63402         doc/glibc-functions/iswdigit_l.texi.
63403         * doc/posix-functions/iswgraph_l.texi: Renamed from
63404         doc/glibc-functions/iswgraph_l.texi.
63405         * doc/posix-functions/iswlower_l.texi: Renamed from
63406         doc/glibc-functions/iswlower_l.texi.
63407         * doc/posix-functions/iswprint_l.texi: Renamed from
63408         doc/glibc-functions/iswprint_l.texi.
63409         * doc/posix-functions/iswpunct_l.texi: Renamed from
63410         doc/glibc-functions/iswpunct_l.texi.
63411         * doc/posix-functions/iswspace_l.texi: Renamed from
63412         doc/glibc-functions/iswspace_l.texi.
63413         * doc/posix-functions/iswupper_l.texi: Renamed from
63414         doc/glibc-functions/iswupper_l.texi.
63415         * doc/posix-functions/iswxdigit_l.texi: Renamed from
63416         doc/glibc-functions/iswxdigit_l.texi.
63417         * doc/posix-functions/isxdigit_l.texi: Renamed from
63418         doc/glibc-functions/isxdigit_l.texi.
63419         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
63420         doc/glibc-functions/mbsnrtowcs.texi.
63421         * doc/posix-functions/mkdtemp.texi: Renamed from
63422         doc/glibc-functions/mkdtemp.texi.
63423         * doc/posix-functions/newlocale.texi: Renamed from
63424         doc/glibc-functions/newlocale.texi.
63425         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
63426         doc/glibc-functions/nl_langinfo_l.texi.
63427         * doc/posix-functions/open_memstream.texi: Renamed from
63428         doc/glibc-functions/open_memstream.texi.
63429         * doc/posix-functions/opterr.texi: Renamed from
63430         doc/glibc-functions/opterr.texi.
63431         * doc/posix-functions/optind.texi: Renamed from
63432         doc/glibc-functions/optind.texi.
63433         * doc/posix-functions/optopt.texi: Renamed from
63434         doc/glibc-functions/optopt.texi.
63435         * doc/posix-functions/psignal.texi: Renamed from
63436         doc/glibc-functions/psignal.texi.
63437         * doc/posix-functions/scandir.texi: Renamed from
63438         doc/glibc-functions/scandir.texi.
63439         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
63440         doc/glibc-functions/sched_get_priority_min.texi.
63441         * doc/posix-functions/signgam.texi: Renamed from
63442         doc/glibc-functions/signgam.texi.
63443         * doc/posix-functions/stpcpy.texi: Renamed from
63444         doc/glibc-functions/stpcpy.texi.
63445         * doc/posix-functions/stpncpy.texi: Renamed from
63446         doc/glibc-functions/stpncpy.texi.
63447         * doc/posix-functions/strcasecmp_l.texi: Renamed from
63448         doc/glibc-functions/strcasecmp_l.texi.
63449         * doc/posix-functions/strcoll_l.texi: Renamed from
63450         doc/glibc-functions/strcoll_l.texi.
63451         * doc/posix-functions/strfmon_l.texi: Renamed from
63452         doc/glibc-functions/strfmon_l.texi.
63453         * doc/posix-functions/strftime_l.texi: Renamed from
63454         doc/glibc-functions/strftime_l.texi.
63455         * doc/posix-functions/strncasecmp_l.texi: Renamed from
63456         doc/glibc-functions/strncasecmp_l.texi.
63457         * doc/posix-functions/strndup.texi: Renamed from
63458         doc/glibc-functions/strndup.texi.
63459         * doc/posix-functions/strnlen.texi: Renamed from
63460         doc/glibc-functions/strnlen.texi.
63461         * doc/posix-functions/strsignal.texi: Renamed from
63462         doc/glibc-functions/strsignal.texi.
63463         * doc/posix-functions/strxfrm_l.texi: Renamed from
63464         doc/glibc-functions/strxfrm_l.texi.
63465         * doc/posix-functions/timer_gettime.texi: Renamed from
63466         doc/glibc-functions/timer_gettime.texi.
63467         * doc/posix-functions/tolower_l.texi: Renamed from
63468         doc/glibc-functions/tolower_l.texi.
63469         * doc/posix-functions/toupper_l.texi: Renamed from
63470         doc/glibc-functions/toupper_l.texi.
63471         * doc/posix-functions/towctrans_l.texi: Renamed from
63472         doc/glibc-functions/towctrans_l.texi.
63473         * doc/posix-functions/towlower_l.texi: Renamed from
63474         doc/glibc-functions/towlower_l.texi.
63475         * doc/posix-functions/towupper_l.texi: Renamed from
63476         doc/glibc-functions/towupper_l.texi.
63477         * doc/posix-functions/uselocale.texi: Renamed from
63478         doc/glibc-functions/uselocale.texi.
63479         * doc/posix-functions/vdprintf.texi: Renamed from
63480         doc/glibc-functions/vdprintf.texi.
63481         * doc/posix-functions/wcpcpy.texi:
63482         Renamed from doc/glibc-functions/wcpcpy.texi.
63483         * doc/posix-functions/wcpncpy.texi: Renamed from
63484         doc/glibc-functions/wcpncpy.texi.
63485         * doc/posix-functions/wcscasecmp.texi: Renamed from
63486         doc/glibc-functions/wcscasecmp.texi.
63487         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
63488         doc/glibc-functions/wcscasecmp_l.texi.
63489         * doc/posix-functions/wcscoll_l.texi: Renamed from
63490         doc/glibc-functions/wcscoll_l.texi.
63491         * doc/posix-functions/wcsdup.texi: Renamed from
63492         doc/glibc-functions/wcsdup.texi.
63493         * doc/posix-functions/wcsncasecmp.texi: Renamed from
63494         doc/glibc-functions/wcsncasecmp.texi.
63495         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
63496         doc/glibc-functions/wcsncasecmp_l.texi.
63497         * doc/posix-functions/wcsnlen.texi: Renamed from
63498         doc/glibc-functions/wcsnlen.texi.
63499         * doc/posix-functions/wcsnrtombs.texi: Renamed from
63500         doc/glibc-functions/wcsnrtombs.texi.
63501         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
63502         doc/glibc-functions/wcsxfrm_l.texi.
63503         * doc/posix-functions/wctrans_l.texi: Renamed from
63504         doc/glibc-functions/wctrans_l.texi.
63505         * doc/posix-functions/wctype_l.texi: Renamed from
63506         doc/glibc-functions/wctype_l.texi.
63507         * doc/gnulib.texi (Function Substitutes): Add these subsections.
63508         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
63509         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
63510         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
63511         these subsections.
63512         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
63513         Remove sections.
63515 2008-12-14  Bruno Haible  <bruno@clisp.org>
63517         Update doc for POSIX:2008.
63518         * doc/posix-functions/*.texi: Update URL of POSIX specification.
63520 2008-12-14  Bruno Haible  <bruno@clisp.org>
63522         Update doc for POSIX:2008.
63523         * doc/pastposix-functions/bcmp.texi: Renamed from
63524         doc/posix-functions/bcmp.texi.
63525         * doc/pastposix-functions/bcopy.texi: Renamed from
63526         doc/posix-functions/bcopy.texi.
63527         * doc/pastposix-functions/bsd_signal.texi: Renamed from
63528         doc/posix-functions/bsd_signal.texi.
63529         * doc/pastposix-functions/bzero.texi: Renamed from
63530         doc/posix-functions/bzero.texi.
63531         * doc/pastposix-functions/ecvt.texi: Renamed from
63532         doc/posix-functions/ecvt.texi.
63533         * doc/pastposix-functions/fcvt.texi: Renamed from
63534         doc/posix-functions/fcvt.texi.
63535         * doc/pastposix-functions/ftime.texi: Renamed from
63536         doc/posix-functions/ftime.texi.
63537         * doc/pastposix-functions/gcvt.texi: Renamed from
63538         doc/posix-functions/gcvt.texi.
63539         * doc/pastposix-functions/getcontext.texi: Renamed from
63540         doc/posix-functions/getcontext.texi.
63541         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
63542         doc/posix-functions/gethostbyaddr.texi.
63543         * doc/pastposix-functions/gethostbyname.texi: Renamed from
63544         doc/posix-functions/gethostbyname.texi.
63545         * doc/pastposix-functions/getwd.texi: Renamed from
63546         doc/posix-functions/getwd.texi.
63547         * doc/pastposix-functions/h_errno.texi: Renamed from
63548         doc/posix-functions/h_errno.texi.
63549         * doc/pastposix-functions/index.texi: Renamed from
63550         doc/posix-functions/index.texi.
63551         * doc/pastposix-functions/makecontext.texi: Renamed from
63552         doc/posix-functions/makecontext.texi.
63553         * doc/pastposix-functions/mktemp.texi: Renamed from
63554         doc/posix-functions/mktemp.texi.
63555         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
63556         doc/posix-functions/pthread_attr_getstackaddr.texi.
63557         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
63558         doc/posix-functions/pthread_attr_setstackaddr.texi.
63559         * doc/pastposix-functions/rindex.texi: Renamed from
63560         doc/posix-functions/rindex.texi.
63561         * doc/pastposix-functions/scalb.texi: Renamed from
63562         doc/posix-functions/scalb.texi.
63563         * doc/pastposix-functions/setcontext.texi: Renamed from
63564         doc/posix-functions/setcontext.texi.
63565         * doc/pastposix-functions/swapcontext.texi: Renamed from
63566         doc/posix-functions/swapcontext.texi.
63567         * doc/pastposix-functions/ualarm.texi: Renamed from
63568         doc/posix-functions/ualarm.texi.
63569         * doc/pastposix-functions/usleep.texi: Renamed from
63570         doc/posix-functions/usleep.texi.
63571         * doc/pastposix-functions/vfork.texi: Renamed from
63572         doc/posix-functions/vfork.texi.
63573         * doc/pastposix-functions/wcswcs.texi: Renamed from
63574         doc/posix-functions/wcswcs.texi.
63575         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
63576         (Function Substitutes): Update.
63578 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63580         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
63581         m4/strerror.m4.
63583 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63584             Bruno Haible  <bruno@clisp.org>
63586         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
63588 2008-12-13  Bruno Haible  <bruno@clisp.org>
63590         * modules/strtoull (Depends-on): Remove unistd.
63592 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63594         * modules/strtoull (Depends-on): Add stdlib.
63596 2008-12-11  Simon Josefsson  <simon@josefsson.org>
63598         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
63600 2008-12-10  Jim Meyering  <meyering@redhat.com>
63602         gl_ASSERT: don't say assertions are disabled when they're not
63603         * m4/assert.m4 (gl_ASSERT): Do not make configure report
63604         "checking whether to enable assertions... no", when they are in
63605         fact enabled.  This is solely a bug in the output of configure.
63606         In spite of saying "no", NDEBUG was not defined in that case.
63607         Also, as noted by Eric Blake, leave assertions enabled upon
63608         --enable-assert=INVALID.
63610 2008-12-10  Bruno Haible  <bruno@clisp.org>
63612         Change MODULES.html to refer to POSIX:2008 where possible.
63613         * MODULES.html.sh (POSIX2008_URL): New variable.
63614         (posix_headers): Remove sys/timeb, ucontext.
63615         (posix2001_headers): New variable.
63616         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
63617         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
63618         index, makecontext, mktemp, pthread_attr_getstackaddr,
63619         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
63620         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
63621         (posix2001_functions): New variable.
63622         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
63623         otherwise.
63625 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63627         add missing include to parse-duration.c
63628         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
63629         * modules/parse-duration (Depends-on): Add xalloc.
63631         fix sed script reading maint.mk
63632         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
63633         (syntax-check-rules): Use it.
63635 2008-12-09  Bruno Haible  <bruno@clisp.org>
63637         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
63638         MacOS X 10.4/PowerPC.
63639         Reported by Simon Josefsson.
63641 2008-12-08  Jim Meyering  <meyering@redhat.com>
63643         work around mingw's lack of some S_IF definitions
63644         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
63645         Reported by Simon Josefsson.
63647 2008-12-08  Bruno Haible  <bruno@clisp.org>
63649         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
63650         applied to variables. Needed on MacOS X 10.4/PowerPC.
63651         Reported by Simon Josefsson.
63653 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
63654         and Eric Blake  <ebb9@byu.net>
63656         assert: honor --enable-assert
63657         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
63658         order to honor --enable-assert, rather than treating it as a
63659         synonym for --disable-assert.
63661 2008-12-08  Jim Meyering  <meyering@redhat.com>
63663         * lib/posixtm.c: Remove now-useless declaration of mktime.
63665         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
63667 2008-12-07  Bruno Haible  <bruno@clisp.org>
63669         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
63670         test_once): Mark functions as static.
63671         * tests/test-tls.c (test_tls): Likewise.
63673 2008-12-07  Bruno Haible  <bruno@clisp.org>
63675         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
63676         iconv_register_autodetect.
63678 2008-12-07  Jim Meyering  <meyering@redhat.com>
63680         posixtm.c: avoid a warning
63681         * lib/posixtm.c (posixtime): Don't initialize tm0.
63682         It's no longer needed to placate gcc4's -Wuninitialized,
63683         and the attempt to placate would elicit a new warning.
63685         unicodeio.c: mark unused parameters
63686         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
63687         (fallback_failure_callback): Likewise.
63689 2008-12-07  Bruno Haible  <bruno@clisp.org>
63691         * gnulib-tool (func_create_testdir): When building the tests
63692         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
63693         Reported by Simon Josefsson.
63695 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63697         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
63699 2008-12-06  Bruno Haible  <bruno@clisp.org>
63701         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
63702         Suggested by Eric Blake.
63704 2008-12-06  Bruno Haible  <bruno@clisp.org>
63706         Fix a c-stack test failure on MacOS X.
63707         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
63708         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
63709         handler for SIGBUS as well.
63710         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
63711         install a signal handler for SIGBUS as well.
63712         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
63714 2008-12-06  Bruno Haible  <bruno@clisp.org>
63716         Advocacy documentation.
63717         * doc/gnulib-intro.texi (Benefits): New section.
63718         * doc/gnulib.texi: Update.
63720 2008-12-06  Bruno Haible  <bruno@clisp.org>
63722         Document the 'manywarnings' module.
63723         * doc/manywarnings.texi: New file.
63724         * doc/gnulib.texi: Include it.
63726 2008-12-05  Eric Blake  <ebb9@byu.net>
63728         tests: silence some gcc warnings
63729         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
63730         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
63731         type mismatches.
63733 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63734             Bruno Haible  <bruno@clisp.org>
63736         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
63738 2008-11-29  Jim Meyering  <meyering@redhat.com>
63740         unicodeio.c: mark unused parameters
63741         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
63742         (fallback_failure_callback): Likewise.
63744         fts: fix a thinko
63745         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
63746         (set_stat_type): Return S_IF*-valued "type" directly.
63747         Prompted by James Youngman's spotting a related bug.
63748         Confirmed by further testing through find.
63750         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
63751         * lib/fts.c (D_TYPE): Define.
63752         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
63753         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
63754         (s_ifmt_shift_bits): New function.
63755         (set_stat_type): New function.
63756         (fts_build): When not calling fts_stat, call set_stat_type
63757         to propagate dirent.d_type info to fts_read caller.
63758         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
63759         fts_statp->st_mode type information may be valid.
63761 2008-11-28  Simon Josefsson  <simon@josefsson.org>
63763         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
63764         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
63765         <sds@gnu.org>.
63767 2008-11-20  Bruno Haible  <bruno@clisp.org>
63769         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
63770         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
63771         INCLUDE_NEXT.
63772         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
63773         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
63774         * modules/math (Makefile.am): Substitute
63775         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
63776         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
63778 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
63779             Bruno Haible  <bruno@clisp.org>
63781         * lib/stdint.in.h: Define all type macros so that their expansion is
63782         a single typedef'ed token. Fixes a compilation failure in Boost which
63783         does "using ::int8_t;".
63785 2008-11-18  Simon Josefsson  <simon@josefsson.org>
63787         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
63788         gl_MANYWARN_ALL_GCC.
63789         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
63790         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
63791         * modules/manywarnings: New file.
63792         * MODULES.html.sh: Mention manywarnings module.
63794 2008-11-18  Bruno Haible  <bruno@clisp.org>
63796         * doc/gnulib-tool.texi (Unit tests): New section.
63798 2008-11-18  Simon Josefsson  <simon@josefsson.org>
63800         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
63801         paths like 'lib/po/foo.po'.
63803 2008-11-17  Simon Josefsson  <simon@josefsson.org>
63805         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
63806         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
63808 2008-11-17  Simon Josefsson  <simon@josefsson.org>
63810         * m4/warnings.m4: Use CPPFLAGS to really check whether the
63811         parameter works.
63813 2008-11-17  Simon Josefsson  <simon@josefsson.org>
63815         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
63817 2008-11-17  Bruce Korb  <bkorb@gnu.org>
63819         * modules/parse-duration-tests: New file.
63820         * tests/test-parse-duration.sh: New file.
63821         * tests/test-parse-duration.c: New file.
63823         New module 'parse-duration'.
63824         * lib/parse-duration.h: New file.
63825         * lib/parse-duration.c: New file.
63826         * modules/parse-duration: New file.
63828 2008-11-17  Bruno Haible  <bruno@clisp.org>
63830         * tests/test-select-out.sh: Comment out the first pipe test.
63831         Reported by Simon Josefsson.
63833 2008-11-17  Bruno Haible  <bruno@clisp.org>
63835         * modules/getaddrinfo (Depends-on): Add servent, hostent.
63836         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
63837         gl_HOSTENT.
63839 2008-11-17  Bruno Haible  <bruno@clisp.org>
63841         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
63842         -lnetwork and -lnet. Needed for Haiku and BeOS.
63844 2008-11-16  Bruno Haible  <bruno@clisp.org>
63846         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
63848 2008-11-16  Bruno Haible  <bruno@clisp.org>
63850         Avoid test failure on Haiku.
63851         * tests/test-fsync.c: Include <errno.h>.
63852         (main): Don't require that fsync (0) fails.
63854 2008-11-15  Bruno Haible  <bruno@clisp.org>
63856         New module 'hostent'.
63857         * modules/hostent: New file.
63858         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
63860 2008-11-15  Bruno Haible  <bruno@clisp.org>
63862         New module 'servent'.
63863         * modules/servent: New file.
63864         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
63866 2008-11-15  Bruno Haible  <bruno@clisp.org>
63868         Avoid generating same test program with two different rules.
63869         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
63870         test-frexp to test-frexp-nolibm.
63871         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
63872         test-frexpl to test-frexpl-nolibm.
63874 2008-11-15  Bruno Haible  <bruno@clisp.org>
63876         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
63877         $(FREXPL_LIBM).
63879 2008-11-15  Bruno Haible  <bruno@clisp.org>
63881         * lib/netdb.in.h: Activate the definitions also when the system's
63882         <netdb.h> has 'struct addrinfo'.
63883         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
63884         EAI_OVERFLOW or AI_NUMERICSERV.
63885         * doc/posix-headers/netdb.texi: Document the problem.
63887 2008-11-15  Bruno Haible  <bruno@clisp.org>
63889         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
63891         Make the 'sched' module work on platforms where <sched.h> exists but
63892         is incomplete (such as Haiku).
63893         * lib/sched.in.h; Include the system's <sched.h> if it exists.
63894         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
63895         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
63896         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
63897         HAVE_STRUCT_SCHED_PARAM.
63898         * modules/sched (Depends-on): Add include_next.
63899         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
63900         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
63901         * doc/posix-headers/sched.texi: Document the issue.
63903 2008-11-13  Jim Meyering  <meyering@redhat.com>
63905         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
63906         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
63907         test would fail due to the difference in the Report bugs to ...
63908         line.  The expected address is empty, "<>", while the actual
63909         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
63911 2008-11-12  Bruno Haible  <bruno@clisp.org>
63913         lstat: don't compile lstat.c on systems lacking lstat
63914         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
63915         which don't have lstat; this is handled by lib/sys_stat.in.h already.
63916         Reported by Daniel P. Berrange via Jim Meyering.
63918 2008-11-12  Jim Meyering  <meyering@redhat.com>
63920         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
63922 2008-11-12  Simon Josefsson  <simon@josefsson.org>
63924         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
63925         instead.
63927 2008-11-12  Bruno Haible  <bruno@clisp.org>
63929         * lib/unicodeio.c: Include unistr.h.
63930         (utf8_wctomb): Remove function.
63931         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
63933 2008-11-12  Simon Josefsson  <simon@josefsson.org>
63935         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
63936         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
63937         <bruno@clisp.org>.
63938         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
63940 2008-11-12  Simon Josefsson  <simon@josefsson.org>
63942         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
63943         * doc/gnulib.texi: Add section for warnings.
63945 2008-11-11  Bruno Haible  <bruno@clisp.org>
63947         * lib/sockets.h: Add a comment.
63949 2008-11-11  Karl Berry  <karl@gnu.org>
63951         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
63953 2008-11-11  Eric Blake  <ebb9@byu.net>
63955         fdl.texi: avoid git symlinks
63956         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
63958 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
63960         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
63962 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
63964         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
63965         (gl_WARN_ADD): Substitute $2 if literal.
63967 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
63969         * m4/warning.m4: Remove.
63971 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
63973         * m4/warnings.m4: Almost complete rewrite. :-)
63975 2008-11-10  Simon Josefsson  <simon@josefsson.org>
63977         * modules/warnings: New module.
63978         * m4/warnings.m4: New file.
63979         * MODULES.html.sh: Mention warnings module.
63980         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
63981         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63983 2008-11-10  Eric Blake  <ebb9@byu.net>
63985         fdl.texi: make a symlink to the latest version
63986         * doc/standards.texi: Revert today's earlier change.
63987         * doc/fdl-1.2.texi: Rename from old fdl.texi...
63988         * doc/fdl.texi: ...and replace this with a symlink to the newer
63989         fdl-1.3.texi.
63991 2008-11-10  Bruno Haible  <bruno@clisp.org>
63993         * tests/test-select-fd.c (main): Accept the result file name as fourth
63994         argument.
63995         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
63996         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
63998 2008-11-10  Bruno Haible  <bruno@clisp.org>
64000         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
64001         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
64002         as autoconf-substituted macros.
64003         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
64004         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
64005         gl_NETDB_H_DEFAULTS. Set these variables.
64006         * modules/netdb (Makefile.am): Substitute these variables.
64008 2008-11-10  Eric Blake  <ebb9@byu.net>
64010         standards.texi: include correct file for FDL 1.3
64011         * doc/standards.texi (GNU Free Documentation License): Change
64012         include file to pull in FDL 1.3, not 1.2.
64014         fdl.texi: revert accidental change to license
64015         * doc/fdl.texi: This is FDL 1.2, not 1.3.
64017 2008-11-10  Bruno Haible  <bruno@clisp.org>
64019         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
64020         cross-compiling guesses also when the native compile gives no result.
64022 2008-11-10  Bruno Haible  <bruno@clisp.org>
64024         * lib/spawni.c (__spawni): Force variable into the stack.
64026 2008-11-10  Bruno Haible  <bruno@clisp.org>
64028         Add support for Haiku.
64029         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
64030         glibc and BeOS, but also on Haiku.
64031         * lib/fpurge.c (fpurge): Likewise.
64032         * lib/freadable.c (freadable): Likewise.
64033         * lib/freadahead.c (freadahead): Likewise.
64034         * lib/freading.c (freading): Likewise.
64035         * lib/freadptr.c (freadptr): Likewise.
64036         * lib/freadseek.c (freadptrinc): Likewise.
64037         * lib/fseeko.c (rpl_fseeko): Likewise.
64038         * lib/fseterr.c (fseterr): Likewise.
64039         * lib/fwritable.c (fwritable): Likewise.
64040         * lib/fwriting.c (fwriting): Likewise.
64041         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
64043 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
64045         * lib/config.charset: Treat Haiku like BeOS.
64047 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
64049         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
64050         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
64052 2008-11-08  Bruno Haible  <bruno@clisp.org>
64054         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
64055         AC_CACHE_CHECK.
64057 2008-11-08  Bruno Haible  <bruno@clisp.org>
64059         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
64061 2008-11-08  Bruno Haible  <bruno@clisp.org>
64063         * tests/test-select-fd.c: New file.
64064         * tests/test-select-in.sh: New file.
64065         * tests/test-select-out.sh: New file.
64066         * tests/test-select-stdin.c: New file.
64067         * modules/select-tests (Files): Add the new files.
64068         (Depends-on): Add gettimeofday.
64069         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
64070         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
64071         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
64073 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
64074             Bruno Haible  <bruno@clisp.org>
64076         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
64078 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
64080         * build-aux/pmccabe2html: Added support for C++ source files.
64082 2008-11-05  Ben Pfaff  <blp@gnu.org>
64084         Fix lib/close.c build on Windows.
64085         * modules/close (Files): Add lib/w32sock.h.
64087 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
64089         Accept Bison's NEWS format.
64090         * build-aux/announce-gen (print_news_deltas): Tweak
64091         $re_prefix.
64093 2008-11-04  Bruno Haible  <bruno@clisp.org>
64095         * modules/random_r (Maintainer): Add glibc.
64097 2008-11-04  Simon Josefsson  <simon@josefsson.org>
64099         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
64100         by karl@freefriends.org (Karl Berry).
64101         * doc/alloca.texi: Likewise.
64102         * doc/c-ctype.texi: Likewise.
64103         * doc/c-strcase.texi: Likewise.
64104         * doc/c-strcaseeq.texi: Likewise.
64105         * doc/c-strcasestr.texi: Likewise.
64106         * doc/c-strstr.texi: Likewise.
64107         * doc/c-strtod.texi: Likewise.
64108         * doc/c-strtold.texi: Likewise.
64109         * doc/ctime.texi: Likewise.
64110         * doc/error.texi: Likewise.
64111         * doc/fdl.texi: Likewise.
64112         * doc/gcd.texi: Likewise.
64113         * doc/getdate.texi: Likewise.
64114         * doc/gnulib-intro.texi: Likewise.
64115         * doc/gnulib-tool.texi: Likewise.
64116         * doc/gnulib.texi: Likewise.
64117         * doc/inet_ntoa.texi: Likewise.
64118         * doc/maintain.texi: Likewise.
64119         * doc/make-stds.texi: Likewise.
64120         * doc/quote.texi: Likewise.
64121         * doc/regexprops-generic.texi: Likewise.
64122         * doc/standards.texi: Likewise.
64123         * doc/verify.texi: Likewise.
64124         * doc/visibility.texi: Likewise.
64125         * doc/gnulib.texi (GNU Free Documentation License): Include
64126         fdl-1.3.texi instead of fdl.texi.
64128 2008-11-04  Simon Josefsson  <simon@josefsson.org>
64130         * doc/fdl-1.3.texi: New file, from
64131         <http://www.gnu.org/licenses/fdl-1.3.texi>.
64132         * modules/fdl-1.3: Add.
64133         * MODULES.html.sh: Add fdl-1.3.
64135 2008-11-03  Bruno Haible  <bruno@clisp.org>
64137         Make determination of absolute name of header file work with AIX xlc.
64138         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
64139         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
64140         preprocessing.
64141         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
64142         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
64144 2008-11-03  Simon Josefsson  <simon@josefsson.org>
64146         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
64147         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
64148         <ludo@gnu.org>.
64150 2008-11-02  Bruno Haible  <bruno@clisp.org>
64152         Mark 'strpbrk' obsolete.
64153         * modules/strpbrk (Status, Notice): New sections.
64154         * modules/strtok_r (Depends-on): Add strpbrk.
64156 2008-11-02  Bruno Haible  <bruno@clisp.org>
64158         Mark 'strdup' obsolete.
64159         * modules/strdup (Status, Notice): New sections.
64160         * modules/findprog (Depends-on): Add strdup.
64161         * modules/getaddrinfo (Depends-on): Likewise.
64162         * modules/localename (Depends-on): Likewise.
64163         * modules/relocatable-lib (Depends-on): Likewise.
64164         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
64165         * modules/relocatable-prog (Depends-on): Likewise.
64166         * modules/trim (Depends-on): Likewise.
64167         * modules/unictype/gen-ctype (Depends-on): Likewise.
64168         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
64170 2008-11-02  Bruno Haible  <bruno@clisp.org>
64172         Mark 'strcspn' obsolete.
64173         * modules/strcspn (Status, Notice): New sections.
64175 2008-11-02  Bruno Haible  <bruno@clisp.org>
64177         Mark 'rmdir' obsolete.
64178         * modules/rmdir (Status, Notice): New sections.
64179         * modules/clean-temp (Depends-on): Add rmdir.
64180         * modules/openat (Depends-on): Likewise.
64182 2008-11-02  Bruno Haible  <bruno@clisp.org>
64184         Mark 'raise' obsolete.
64185         * modules/raise (Status, Notice): New sections.
64186         (Include): Specify <signal.h>.
64187         * modules/stdio (Depends-on): Add raise.
64188         * modules/write (Depends-on): Likewise.
64190 2008-11-02  Bruno Haible  <bruno@clisp.org>
64192         Mark 'memset' obsolete.
64193         * modules/memset (Status, Notice): New sections.
64195 2008-11-02  Bruno Haible  <bruno@clisp.org>
64197         Mark 'memmove' obsolete.
64198         * modules/memmove (Status, Notice): New sections.
64199         * modules/argp (Depends-on): Add memmove.
64200         * modules/argz (Depends-on): Likewise.
64201         * modules/canonicalize (Depends-on): Likewise.
64202         * modules/canonicalize-lgpl (Depends-on): Likewise.
64203         * modules/fts (Depends-on): Likewise.
64204         * modules/getcwd (Depends-on): Likewise.
64205         * modules/human (Depends-on): Likewise.
64206         * modules/regex (Depends-on): Likewise.
64207         * modules/striconveh (Depends-on): Likewise.
64208         * modules/trim (Depends-on): Likewise.
64209         * modules/unistr/u8-move (Depends-on): Likewise.
64210         * modules/unistr/u16-move (Depends-on): Likewise.
64211         * modules/unistr/u32-move (Depends-on): Likewise.
64213 2008-11-02  Bruno Haible  <bruno@clisp.org>
64215         Mark 'memcpy' obsolete.
64216         * modules/memcpy (Status, Notice): New sections.
64218 2008-11-02  Bruno Haible  <bruno@clisp.org>
64220         Mark 'memcmp' obsolete.
64221         * modules/memcmp (Status, Notice): New sections.
64222         * modules/argmatch (Depends-on): Add memchr.
64223         * modules/backupfile (Depends-on): Likewise.
64224         * modules/c-strcasestr (Depends-on): Likewise.
64225         * modules/crypto/des (Depends-on): Likewise.
64226         * modules/csharpcomp (Depends-on): Likewise.
64227         * modules/fnmatch (Depends-on): Likewise.
64228         * modules/git-merge-changelog (Depends-on): Likewise.
64229         * modules/isnand (Depends-on): Likewise.
64230         * modules/isnand-nolibm (Depends-on): Likewise.
64231         * modules/isnanf (Depends-on): Likewise.
64232         * modules/isnanf-nolibm (Depends-on): Likewise.
64233         * modules/isnanl (Depends-on): Likewise.
64234         * modules/isnanl-nolibm (Depends-on): Likewise.
64235         * modules/mbchar (Depends-on): Likewise.
64236         * modules/memcoll (Depends-on): Likewise.
64237         * modules/quotearg (Depends-on): Likewise.
64238         * modules/regex (Depends-on): Likewise.
64239         * modules/relocatable-prog (Depends-on): Likewise.
64240         * modules/same (Depends-on): Likewise.
64241         * modules/signbit (Depends-on): Likewise.
64242         * modules/strcasestr-simple (Depends-on): Likewise.
64243         * modules/unictype/gen-ctype (Depends-on): Likewise.
64244         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
64245         * modules/uniname/uniname (Depends-on): Likewise.
64246         * modules/unistr/u8-cmp (Depends-on): Likewise.
64248 2008-11-02  Bruno Haible  <bruno@clisp.org>
64250         Mark 'memchr' obsolete.
64251         * modules/memchr (Status, Notice): New sections.
64252         * modules/argp (Depends-on): Add memchr.
64253         * modules/base64 (Depends-on): Likewise.
64254         * modules/c-strcasestr (Depends-on): Likewise.
64255         * modules/chdir-long (Depends-on): Likewise.
64256         * modules/fnmatch (Depends-on): Likewise.
64257         * modules/getsubopt (Depends-on): Likewise.
64258         * modules/git-merge-changelog (Depends-on): Likewise.
64259         * modules/glob (Depends-on): Likewise.
64260         * modules/strcasestr-simple (Depends-on): Likewise.
64261         * modules/strnlen (Depends-on): Likewise.
64263 2008-11-02  Bruno Haible  <bruno@clisp.org>
64265         Mark 'atexit' obsolete.
64266         * modules/atexit (Status, Notice): New sections.
64267         * modules/chdir-long (Depends-on): Add atexit.
64268         * modules/wait-process (Depends-on): Likewise.
64270 2008-11-02  Bruno Haible  <bruno@clisp.org>
64272         * gnulib-tool: New option --with-obsolete.
64273         (func_usage): Document it.
64274         (func_modules_transitive_closure): Drop obsolete dependencies if
64275         incobsolete is not true.
64276         (func_import): Read and save the incobsolete variable to the cache.
64278 2008-11-02  Bruno Haible  <bruno@clisp.org>
64280         * modules/TEMPLATE-EXTENDED: New field 'Status'.
64281         * gnulib-tool: New option --extract-status.
64282         (func_usage): Document it.
64283         (sed_extract_prog): Recognize it.
64284         (func_get_status): New function.
64286 2008-10-30  Simon Josefsson  <simon@josefsson.org>
64288         * modules/sockets (License): Change from LGPL to LGPLv2+.
64290 2008-10-28  Simon Josefsson  <simon@josefsson.org>
64292         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
64294 2008-10-28  Simon Josefsson  <simon@josefsson.org>
64296         * MODULES.html.sh (Support for systems lacking POSIX:2001):
64297         Mention times and sys_times.
64298         * modules/sys_times, modules/sys_times-tests: New modules.
64299         * modules/times, modules/times-tests: Likewise
64300         * m4/sys_times_h.m4: New file.
64301         * lib/sys_times.in.h: Likewise
64302         * lib/times.c: Likewise.
64303         * tests/test-sys_times.c: Likewise.
64304         * tests/test-times.c: Likewise.
64305         * doc/posix-headers/sys_times.texi: Update.
64306         * doc/posix-functions/times.texi: Update.
64308 2008-10-28  Jim Meyering  <meyering@redhat.com>
64310         * modules/tempname (Depends-on): Add lstat.
64312         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
64314 2008-10-28  Simon Josefsson  <simon@josefsson.org>
64316         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
64317         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
64318         using idiom used elsewhere in gnulib.
64320 2008-10-27  Jim Meyering  <meyering@redhat.com>
64322         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
64324 2008-10-27  Simon Josefsson  <simon@josefsson.org>
64326         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
64327         TESTS_ENVIRONMENT, for shell scripts that needs to call built
64328         programs.
64329         * tests/test-argp-2.sh: Use $EXEEXT when needed.
64331 2008-10-27  Simon Josefsson  <simon@josefsson.org>
64333         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
64335 2008-10-27  Bruno Haible  <bruno@clisp.org>
64337         * tests/test-lstat.c: Include <stdio.h>.
64339 2008-10-27  Simon Josefsson  <simon@josefsson.org>
64341         * modules/lstat-tests: New module.
64342         * tests/test-lstat.c: New file.
64344 2008-10-26  Jim Meyering  <meyering@redhat.com>
64346         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
64348 2008-10-26  Simon Josefsson  <simon@josefsson.org>
64349             Bruno Haible  <bruno@clisp.org>
64351         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
64352         * modules/configmake (Include): Add a note that the include must come
64353         after all system headers.
64354         * lib/javaversion.c: Include configmake.h after all other includes.
64356 2008-10-26  Bruno Haible  <bruno@clisp.org>
64358         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
64359         HAVE_STRUCT_RANDOM_DATA to 1.
64360         (gl_STDLIB_H): Simplify.
64362 2008-10-26  Simon Josefsson  <simon@josefsson.org>
64364         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
64365         substitute HAVE_STRUCT_RANDOM_DATA.
64366         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
64367         random_data.
64368         * modules/stdlib (Makefile.am): Substitute
64369         HAVE_STRUCT_RANDOM_DATA.
64371 2008-10-26  Simon Josefsson  <simon@josefsson.org>
64373         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
64374         * doc/gnulib-intro.texi (Copyright): Likewise.
64376 2008-10-26  Simon Josefsson  <simon@josefsson.org>
64378         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
64379         findings.
64381 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
64382             Bruno Haible  <bruno@clisp.org>
64384         * lib/unistd.in.h: Include <winsock2.h>.
64385         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
64386         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
64387         Provide dummy declarations.
64388         (gethostname): Override.
64389         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
64390         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
64391         gl_PREREQ_SYS_H_WINSOCK2.
64392         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
64393         * doc/posix-functions/gethostname.texi: More details.
64395 2008-10-25  Bruno Haible  <bruno@clisp.org>
64397         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
64398         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
64399         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
64401         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
64402         here ...
64403         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
64404         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
64405         gl_UNISTD_H_DEFAULTS.
64407 2008-10-25  Eric Blake  <ebb9@byu.net>
64409         signbit: avoid spurious compiler failure
64410         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
64411         declarations inside function.
64413 2008-10-24  Simon Josefsson  <simon@josefsson.org>
64414             Bruno Haible  <bruno@clisp.org>
64416         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
64417         * modules/random_r (Depends-on): Add stdint.
64419 2008-10-24  Bruno Haible  <bruno@clisp.org>
64421         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
64422         Eggert.
64423         * modules/strerror (License): Likewise.
64425 2008-10-24  Jim Meyering  <meyering@redhat.com>
64427         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
64428         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
64430 2008-10-24  Eric Blake  <ebb9@byu.net>
64432         getgroups: fix compilation when getgroups is available
64433         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
64434         but with <config.h> override of getgroups disabled.
64436 2008-10-24  Simon Josefsson  <simon@josefsson.org>
64438         * doc/gnulib.texi (Header files): Add note about C++ problems.
64439         Explained by Bruno Haible <bruno@clisp.org>.
64441 2008-10-23  Bruno Haible  <bruno@clisp.org>
64443         Define a dummy SA_NODEFER macro on Interix.
64444         * lib/signal.in.h (SA_NODEFER): Define fallback.
64445         Reported by Aleksey Cheusov <cheusov@tut.by> via
64446         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
64448 2008-10-23  Bruno Haible  <bruno@clisp.org>
64450         * modules/freadahead (License): Change to LGPLv2+.
64451         Suggested by Simon Josefsson.
64453 2008-10-23  Jim Meyering  <meyering@redhat.com>
64455         random_r: new module
64456         * modules/random_r: New file.
64457         * m4/random_r.m4: New file.
64458         * lib/random_r.c: New file, from glibc.
64459         * modules/random_r-tests: New file.
64460         * tests/test-random_r.c: New file.
64461         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
64462          Declare.
64463         (RAND_MAX): Define.
64464         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
64465         * modules/stdlib: Substitute them, too.
64466         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
64467         * doc/glibc-functions/initstate_r.texi: Mention the new module.
64468         * doc/glibc-functions/random_r.texi: Likewise.
64469         * doc/glibc-functions/setstate_r.texi: Likewise.
64470         * doc/glibc-functions/srandom_r.texi: Likewise.
64471         * config/srclist.txt: Mention it.
64473 2008-10-23  David Lutterkort  <lutter@redhat.com>
64475         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
64476         link requirement
64478 2008-10-23  Jim Meyering  <meyering@redhat.com>
64480         selinux-h: mark parameters of stub functions as intentionally unused
64481         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
64482         * lib/se-context.in.h: Likewise.
64484 2008-10-22  Simon Josefsson  <simon@josefsson.org>
64486         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
64488 2008-10-22  Simon Josefsson  <simon@josefsson.org>
64490         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
64492 2008-10-22  Eric Blake  <ebb9@byu.net>
64494         glthread/thread: avoid compiler warning
64495         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
64496         Add unreachable abort to silence compiler.
64498 2008-10-22  Eric Blake  <ebb9@byu.net>
64500         netdb: also supply struct addrinfo for cygwin 1.5.x
64501         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
64502         older cygwin.
64503         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
64504         cygwin.
64505         * doc/posix-headers/netdb.texi (netdb.h): Document this.
64507 2008-10-22  Bruno Haible  <bruno@clisp.org>
64509         * users.txt: Update entry about pspp.
64511 2008-10-21  Bruno Haible  <bruno@clisp.org>
64513         Simplification.
64514         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
64515         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
64517         Simplification.
64518         * lib/ioctl.c (ioctl): Don't undefine.
64519         * lib/socket.c (socket): Don't undefine.
64521         Remove unused module indicator macros.
64522         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
64523         GNULIB_$1 as a C macro.
64525         * doc/posix-functions/close.texi: Undo last change.
64526         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
64527         Windows platforms.
64529 2008-10-21  Bruno Haible  <bruno@clisp.org>
64531         Add gethostname() declaration to <unistd.h>.
64532         * lib/unistd.in.h (gethostname): New declaration.
64533         * lib/gethostname.c: Include <unistd.h>.
64534         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
64535         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
64536         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
64537         and HAVE_GETHOSTNAME.
64538         * modules/gethostname (Depends-on): Add unistd.
64539         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64540         (Include): Specify <unistd.h>.
64541         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
64542         HAVE_GETHOSTNAME.
64543         * tests/test-gethostname.c: Include <unistd.h> first.
64545 2008-10-21  Bruno Haible  <bruno@clisp.org>
64547         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
64548         * modules/select-tests (Depends-on): Likewise.
64549         Reported by Simon Josefsson.
64551 2008-10-21  Simon Josefsson  <simon@josefsson.org>
64553         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
64554         * lib/accept.c: New file, based on winsock.c.
64555         * lib/bind.c: New file, based on winsock.c.
64556         * lib/connect.c: New file, based on winsock.c.
64557         * lib/getpeername.c: New file, based on winsock.c.
64558         * lib/getsockname.c: New file, based on winsock.c.
64559         * lib/getsockopt.c: New file, based on winsock.c.
64560         * lib/ioctl.c: New file, based on winsock.c.
64561         * lib/listen.c: New file, based on winsock.c.
64562         * lib/recv.c: New file, based on winsock.c.
64563         * lib/recvfrom.c: New file, based on winsock.c.
64564         * lib/send.c: New file, based on winsock.c.
64565         * lib/sendto.c: New file, based on winsock.c.
64566         * lib/setsockopt.c: New file, based on winsock.c.
64567         * lib/shutdown.c: New file, based on winsock.c.
64568         * lib/socket.c: New file, based on winsock.c.
64569         * lib/w32sock.h: New file, based on winsock.c.
64570         * lib/winsock.c: Remove file.
64571         * modules/accept: Likewise.
64572         * modules/bind: Likewise.
64573         * modules/connect: Likewise.
64574         * modules/getpeername: Likewise.
64575         * modules/getsockname: Likewise.
64576         * modules/getsockopt: Likewise.
64577         * modules/ioctl: Likewise.
64578         * modules/listen: Likewise.
64579         * modules/recv: Likewise.
64580         * modules/recvfrom: Likewise.
64581         * modules/send: Likewise.
64582         * modules/sendto: Likewise.
64583         * modules/setsockopt: Likewise.
64584         * modules/shutdown: Likewise.
64585         * modules/socket: Use socket.c instead of winsock.c.
64586         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
64587         * doc/posix-functions/accept.texi: Doc fix.
64588         * doc/posix-functions/bind.texi: Doc fix.
64589         * doc/posix-functions/close.texi: Doc fix.
64590         * doc/posix-functions/connect.texi: Doc fix.
64591         * doc/posix-functions/getpeername.texi: Doc fix.
64592         * doc/posix-functions/getsockname.texi: Doc fix.
64593         * doc/posix-functions/getsockopt.texi: Doc fix.
64594         * doc/posix-functions/ioctl.texi: Doc fix.
64595         * doc/posix-functions/listen.texi: Doc fix.
64596         * doc/posix-functions/recv.texi: Doc fix.
64597         * doc/posix-functions/recvfrom.texi: Doc fix.
64598         * doc/posix-functions/send.texi: Doc fix.
64599         * doc/posix-functions/sendto.texi: Doc fix.
64600         * doc/posix-functions/setsockopt.texi: Doc fix.
64601         * doc/posix-functions/shutdown.texi: Doc fix.
64602         * doc/posix-functions/socket.texi: Doc fix.
64604 2008-10-20  Bruno Haible  <bruno@clisp.org>
64606         Take into account the role of SIGABRT_COMPAT on Windows 2008.
64607         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
64608         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
64609         as an alias for SIGABRT.
64610         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
64611         (sigaction): Map it to SIGABRT.
64612         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
64614 2008-10-20  Bruno Haible  <bruno@clisp.org>
64616         * lib/fts.c: Don't include lstat.h.
64617         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
64619         Move the lstat() declaration to <sys/stat.h>.
64620         * lib/lstat.h: Remove file.
64621         * lib/sys_stat.in.h: Add special invocation convention.
64622         (lstat): New declaration.
64623         * lib/lstat.c (orig_lstat): New function.
64624         (rpl_lstat): Use orig_lstat instead of lstat.
64625         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
64626         AC_C_INLINE. Set REPLACE_LSTAT.
64627         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
64628         and REPLACE_LSTAT.
64629         * modules/lstat (Files): Remove lib/lstat.h.
64630         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
64631         (Include): Specify <sys/stat.h> instead of lstat.h.
64632         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
64633         REPLACE_LSTAT.
64634         * NEWS: Mention the change.
64636 2008-10-20  Bruno Haible  <bruno@clisp.org>
64638         * modules/posix_spawn-tests: New file.
64639         * tests/test-posix_spawn3.c: New file.
64641 2008-10-20  Bruno Haible  <bruno@clisp.org>
64643         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
64644         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
64645         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
64646         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
64647         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
64649 2008-10-20  Bruno Haible  <bruno@clisp.org>
64651         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
64652         of posix_spawn on AIX 5.3.
64654 2008-10-20  Bruno Haible  <bruno@clisp.org>
64656         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
64658 2008-10-20  Bruno Haible  <bruno@clisp.org>
64660         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
64661         of AC_LANG_PROGRAM.
64663 2008-10-20  Simon Josefsson  <simon@josefsson.org>
64665         * lib/netdb.in.h: Don't define GNU specific constants until they
64666         are supported or needed.  Reported by Bruno Haible
64667         <bruno@clisp.org>.
64669 2008-10-20  Simon Josefsson  <simon@josefsson.org>
64671         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
64673 2008-10-20  Simon Josefsson  <simon@josefsson.org>
64675         * lib/getaddrinfo.h: Remove file.
64676         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
64677         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
64678         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
64679         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
64680         * modules/netdb: Substitute GNULIB_GETADDRINFO.
64681         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
64682         * tests/test-getaddrinfo.c: Likewise.
64683         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
64684         * NEWS: Mention change.
64686 2008-10-19  Bruno Haible  <bruno@clisp.org>
64688         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
64690 2008-10-19  Bruno Haible  <bruno@clisp.org>
64692         * lib/wait-process.c: Include simply <sys/wait.h>.
64693         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
64694         WIFSTOPPED): Remove fallback definitions.
64695         * modules/wait-process (Depends-on): Add sys_wait.
64697         New module 'sys_wait'.
64698         * modules/sys_wait: New file.
64699         * lib/sys_wait.in.h: New file, partially copied from
64700         lib/wait-process.c.
64701         * m4/sys_wait_h.m4: New file.
64702         * doc/posix-headers/sys_wait.texi: Mention the new module.
64704 2008-10-19  Bruno Haible  <bruno@clisp.org>
64706         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
64708 2008-10-19  Bruno Haible  <bruno@clisp.org>
64710         Assume that waitpid() fills an 'int' status, not a 'union wait'.
64711         * lib/wait-process.c (WAIT_T): Remove type.
64712         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
64713         (wait_subprocess): Update.
64715 2008-10-19  Bruno Haible  <bruno@clisp.org>
64717         New module 'atoll'.
64718         * modules/atoll: New file.
64719         * lib/stdlib.in.h (atoll): New declaration.
64720         * lib/atoll.c: New file, from glibc with modifications.
64721         * m4/atoll.m4: New file.
64722         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
64723         HAVE_ATOLL.
64724         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
64725         * doc/posix-functions/atoll.texi: Mention the new module.
64727 2008-10-19  Bruno Haible  <bruno@clisp.org>
64729         Add strtoull() declaration to <stdlib.h>.
64730         * lib/stdlib.in.h (strtoull): New declaration.
64731         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
64732         Set HAVE_STRTOULL.
64733         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
64734         HAVE_STRTOULL.
64735         * modules/strtoull (Depends-on): Add stdlib.
64736         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64737         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
64738         HAVE_STRTOULL.
64740 2008-10-19  Bruno Haible  <bruno@clisp.org>
64742         Add strtoll() declaration to <stdlib.h>.
64743         * lib/stdlib.in.h (strtoll): New declaration.
64744         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
64745         Set HAVE_STRTOLL.
64746         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
64747         HAVE_STRTOLL.
64748         * modules/strtoll (Depends-on): Add stdlib.
64749         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64750         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
64752 2008-10-19  Bruno Haible  <bruno@clisp.org>
64754         * modules/bcopy (Depends-on): Add strings.
64755         (Include): Specify <strings.h>.
64757 2008-10-19  Bruno Haible  <bruno@clisp.org>
64759         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
64761 2008-10-19  Bruno Haible  <bruno@clisp.org>
64763         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
64764         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
64765         mingw.
64767 2008-10-19  Bruno Haible  <bruno@clisp.org>
64769         * lib/atanl.c: Don't include isnanl.h.
64770         * lib/cosl.c: Likewise.
64771         * lib/ldexpl.c: Likewise.
64772         * lib/logl.c: Likewise.
64773         * lib/sinl.c: Likewise.
64774         * lib/sqrtl.c: Likewise.
64775         * lib/tanl.c: Likewise.
64777         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
64778         * lib/isnanf.h: Remove file.
64779         * lib/isnand.h: Remove file.
64780         * lib/isnanl.h: Remove file.
64781         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
64782         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
64783         macros.
64784         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
64785         HAVE_ISNANF, don't define it as a C macro.
64786         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
64787         HAVE_ISNAND, don't define it as a C macro.
64788         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
64789         HAVE_ISNANL, don't define it as a C macro.
64790         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
64791         HAVE_ISNAN[FDL].
64792         * modules/isnanf (Files): Remove lib/isnanf.h.
64793         (Depends-on): Add math.
64794         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
64795         (Include): Specify <math.h> instead of isnanf.h.
64796         * modules/isnand (Files): Remove lib/isnand.h.
64797         (Depends-on): Add math.
64798         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
64799         (Include): Specify <math.h> instead of isnand.h.
64800         * modules/isnanl (Files): Remove lib/isnanl.h.
64801         (Depends-on): Add math.
64802         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
64803         (Include): Specify <math.h> instead of isnanl.h.
64804         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
64805         HAVE_ISNAN[FDL].
64806         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
64807         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
64808         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
64809         * NEWS: Mention the change.
64811 2008-10-18  Bruno Haible  <bruno@clisp.org>
64813         Add getusershell(), setusershell(), endusershell() declarations to
64814         <unistd.h>.
64815         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
64816         declarations.
64817         * lib/getusershell.c: Include unistd.h.
64818         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
64819         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
64820         HAVE_GETUSERSHELL.
64821         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
64822         and HAVE_GETUSERSHELL.
64823         * modules/getusershell (Depends-on): Add unistd, extensions.
64824         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64825         (Include): Specify <unistd.h>.
64826         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
64827         HAVE_GETUSERSHELL.
64829 2008-10-18  Bruno Haible  <bruno@clisp.org>
64831         Add a getloadavg() declaration to <stdlib.h>.
64832         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
64833         getloadavg declaration.
64834         (getloadavg): New declaration.
64835         * lib/getloadavg.c: Include <stdlib.h> first.
64836         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
64837         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
64838         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
64839         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
64840         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
64841         * modules/getloadavg (Depends-on): Add stdlib, extensions.
64842         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64843         (Include): Specify <stdlib.h>.
64844         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
64845         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
64847 2008-10-18  Bruno Haible  <bruno@clisp.org>
64849         * lib/dirchownmod.c: Don't include lchmod.h.
64851         Move the lchmod() declaration to <sys/stat.h>.
64852         * lib/lchmod.h: Remove file.
64853         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
64854         (lchmod): New declaration, moved here from lib/lchown.h.
64855         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
64856         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
64857         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
64858         and HAVE_LCHMOD.
64859         * modules/lchmod (Files): Remove lib/lchmod.h.
64860         (Depends-on): Add sys_stat, extensions.
64861         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
64862         (Include): Specify <sys/stat.h> instead of lchmod.h.
64863         * modules/sys_stat (Depends-on): Add link-warning.
64864         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
64865         definition of GL_LINK_WARNING.
64866         * NEWS: Mention the change.
64868 2008-10-18  Bruno Haible  <bruno@clisp.org>
64870         * lib/fchdir.c: Don't include dirfd.h.
64871         * lib/fts.c: Likewise.
64872         * lib/getcwd.c: Likewise.
64873         * lib/glob.c: Likewise.
64875         Move the dirfd() declaration to <dirent.h>.
64876         * lib/dirfd.h: Remove file.
64877         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
64878         (dirfd): New declaration.
64879         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
64880         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
64881         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
64882         HAVE_DECL_DIRFD.
64883         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
64884         HAVE_DECL_DIRFD.
64885         * modules/dirfd (Files): Remove lib/dirfd.h.
64886         (Depends-on): Add dirent, extensions.
64887         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
64888         (Include): Specify <dirent.h> instead of dirfd.h.
64889         * modules/dirent (Depends-on): Add link-warning.
64890         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
64891         definition of GL_LINK_WARNING.
64892         * NEWS: Mention the change.
64894 2008-10-18  Bruno Haible  <bruno@clisp.org>
64896         Move the euidaccess() declaration to <unistd.h>.
64897         * lib/euidaccess.h: Remove file.
64898         * lib/unistd.in.h (euidaccess): New declaration.
64899         * lib/euidaccess.c: Don't include euidaccess.h.
64900         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
64901         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
64902         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
64903         and HAVE_EUIDACCESS.
64904         * modules/euidaccess (Files): Remove lib/euidaccess.h.
64905         (Depends-on): Add unistd.
64906         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64907         (Include): Specify <unistd.h> instead of euidaccess.h.
64908         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
64909         HAVE_EUIDACCESS.
64910         * NEWS: Mention the change.
64912 2008-10-18  Bruno Haible  <bruno@clisp.org>
64914         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
64916         Move the getdomainname() declaration to <unistd.h>.
64917         * lib/getdomainname.h: Remove file.
64918         * lib/unistd.in.h (getdomainname): New declaration.
64919         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
64920         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
64921         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
64922         HAVE_GETDOMAINNAME.
64923         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
64924         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
64925         * modules/getdomainname (Files): Remove lib/getdomainname.h.
64926         (Depends-on): Add unistd, extensions.
64927         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64928         (Includes): Specify <unistd.h> instead of getdomainname.h.
64929         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
64930         HAVE_GETDOMAINNAME.
64931         * NEWS: Mention the change.
64933 2008-10-18  Bruno Haible  <bruno@clisp.org>
64935         * modules/dirent: New file.
64936         * m4/dirent_h.m4: New file.
64937         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
64938         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
64939         * modules/fchdir (Files): Remove lib/dirent.in.h.
64940         (Depends-on): Add dirent.
64941         (Makefile.am): Move rules to modules/dirent.
64942         * doc/posix-headers/dirent.texi: Mention the new module.
64944 2008-10-18  Bruno Haible  <bruno@clisp.org>
64946         Avoid -Wunused-parameter warnings in public gnulib header files.
64947         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
64948         macro.
64949         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
64951 2008-10-18  Bruno Haible  <bruno@clisp.org>
64953         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
64954         * doc/glibc-functions/error.texi: Mention the module 'error'.
64955         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
64956         * doc/glibc-functions/getdomainname.texi: Mention the module
64957         'getdomainname'.
64958         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
64959         * doc/glibc-functions/getpagesize.texi: Mention the module
64960         'getpagesize'.
64961         * doc/glibc-functions/getusershell.texi: Mention the module
64962         'getusershell'.
64963         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
64964         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
64965         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
64966         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
64967         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
64968         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
64969         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
64970         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
64971         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
64972         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
64973         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
64974         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
64975         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
64976         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
64978 2008-10-17  Bruno Haible  <bruno@clisp.org>
64980         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
64981         HP-UX and IRIX, use -0.0L.
64982         * tests/test-ceill.c (minus_zero): Likewise.
64983         * tests/test-floorl.c (minus_zero): Likewise.
64984         * tests/test-frexpl.c (minus_zero): Likewise.
64985         * tests/test-isnan.c (minus_zerol): Likewise.
64986         * tests/test-isnanl.h (minus_zero): Likewise.
64987         * tests/test-ldexpl.c (minus_zero): Likewise.
64988         * tests/test-roundl.c (minus_zero): Likewise.
64989         * tests/test-signbit.c (minus_zerol): Likewise.
64990         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
64991         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
64992         * tests/test-truncl.c (minus_zero): Likewise.
64993         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
64994         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
64995         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
64996         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
64998 2008-10-17  Bruno Haible  <bruno@clisp.org>
65000         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
65001         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
65002         that it gets activated only for gcc >= 3.0.
65003         * lib/dirent.in.h: Likewise.
65004         * lib/errno.in.h: Likewise.
65005         * lib/fcntl.in.h: Likewise.
65006         * lib/float.in.h: Likewise.
65007         * lib/iconv.in.h: Likewise.
65008         * lib/inttypes.in.h: Likewise.
65009         * lib/locale.in.h: Likewise.
65010         * lib/math.in.h: Likewise.
65011         * lib/netdb.in.h: Likewise.
65012         * lib/netinet_in.in.h: Likewise.
65013         * lib/search.in.h: Likewise.
65014         * lib/signal.in.h: Likewise.
65015         * lib/spawn.in.h: Likewise.
65016         * lib/stdarg.in.h: Likewise.
65017         * lib/stdint.in.h: Likewise.
65018         * lib/stdio.in.h: Likewise.
65019         * lib/stdlib.in.h: Likewise.
65020         * lib/string.in.h: Likewise.
65021         * lib/strings.in.h: Likewise.
65022         * lib/sys_file.in.h: Likewise.
65023         * lib/sys_ioctl.in.h: Likewise.
65024         * lib/sys_select.in.h: Likewise.
65025         * lib/sys_socket.in.h: Likewise.
65026         * lib/sys_stat.in.h: Likewise.
65027         * lib/sys_time.in.h: Likewise.
65028         * lib/sysexits.in.h: Likewise.
65029         * lib/time.in.h: Likewise.
65030         * lib/unistd.in.h: Likewise.
65031         * lib/wchar.in.h: Likewise.
65032         * lib/wctype.in.h: Likewise.
65033         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
65035 2008-10-17  Jim Meyering  <meyering@redhat.com>
65037         ignore-value: don't depend on inline module
65038         * modules/ignore-value (Depends-on): Remove 'inline'.
65039         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
65040         Suggestion from Bruno Haible.
65042 2008-10-17  Bruno Haible  <bruno@clisp.org>
65044         New implementation of condition variables for Win32.
65045         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
65046         (gl_linked_waitqueue_t): New type.
65047         (gl_cond_t): Use it.
65048         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
65049         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
65050         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
65051         (glthread_cond_init_func, glthread_cond_wait_func,
65052         glthread_cond_timedwait_func, glthread_cond_signal_func,
65053         glthread_cond_broadcast_func, glthread_cond_destroy_func):
65054         Reimplemented on the basis of gl_linked_waitqueue_t.
65055         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
65056         gl_waitqueue_t.
65057         (gl_rwlock_t): Update.
65058         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
65060 2008-10-17  Simon Josefsson  <simon@josefsson.org>
65062         * modules/recvfrom (Depends-on): Add dependency on getpeername.
65063         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
65065 2008-10-17  Jim Meyering  <meyering@redhat.com>
65067         ignore-value: new module
65068         * modules/ignore-value: New file.
65069         * lib/ignore-value.h: New file.
65070         * MODULES.html.sh (Compiler warning management): New section,
65071         just for this module.  More to come.
65073 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
65075         open-safer.c: avoid 'signed and unsigned in conditional...' warning
65076         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
65077         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
65079 2008-10-16  Jim Meyering  <meyering@redhat.com>
65081         openat-die.c: avoid 'no previous prototype' warning
65082         * lib/openat-die.c: Include "openat.h".
65083         Reported by Reuben Thomas <rrt@sc3d.org>.
65085 2008-10-16  Simon Josefsson  <simon@josefsson.org>
65087         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
65088         * lib/netdb.in.h: Fix typo.
65089         Reported by Bruno Haible  <bruno@clisp.org>
65091         * lib/netdb.in.h: Include sys/socket.h for platforms without
65092         netdb.h, to get structures like hostent on MinGW.
65093         * modules/netdb (Depends-on): Add sys_socket.
65095 2008-10-15  Simon Josefsson  <simon@josefsson.org>
65097         * modules/netdb, modules/netdb-tests: New file.
65098         * m4/netdb_h.m4: New file.
65099         * lib/netdb.in.h: Add, currently just an empty file pending
65100         definitions.
65101         * tests/test-netdb.c: New file.
65102         * doc/posix-headers/netdb.texi: Mention that we replace it if
65103         needed.
65104         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65105         netdb.
65107 2008-10-15  Simon Josefsson  <simon@josefsson.org>
65109         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
65110         with code.
65112 2008-10-13  Bruno Haible  <bruno@clisp.org>
65114         * lib/glthread/cond.c (glthread_cond_wait_func,
65115         glthread_cond_timedwait_func): Add a comment.
65117 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65119         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
65120         * tests/test-select.c: Likewise,
65122 2008-10-13  Bruno Haible  <bruno@clisp.org>
65124         * lib/glthread/cond.c (glthread_cond_wait_func,
65125         glthread_cond_timedwait_func): Fix variable name.
65126         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
65128 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
65130         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
65131         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
65132         struct sockaddr.sa_len.
65133         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
65135 2008-10-13  Simon Josefsson  <simon@josefsson.org>
65137         * build-aux/pmccabe2html: Add css and css_url parameters.
65139 2008-10-12  Bruno Haible  <bruno@clisp.org>
65141         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
65142         calling aclx_get.
65143         Reported by Rainer Tammer <tammer@tammer.net>.
65145 2008-10-12  Bruno Haible  <bruno@clisp.org>
65147         Use msvcrt aware primitives for creation/termination of Win32 threads.
65148         * lib/glthread/thread.c: Include <process.h>.
65149         (glthread_create_func): Use _beginthreadex instead of CreateThread.
65150         (wrapper_func): Update signature.
65151         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
65153 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65154             Bruno Haible  <bruno@clisp.org>
65156         Provide a Win32 implementation of the 'cond' module.
65157         * lib/glthread/cond.h [USE_WIN32]: New implementation.
65158         * lib/glthread/cond.c (glthread_cond_init_func,
65159         glthread_cond_wait_func, glthread_cond_timedwait_func,
65160         glthread_cond_signal_func, glthread_cond_broadcast_func,
65161         glthread_cond_destroy_func) [USE_WIN32]: New functions.
65162         * modules/cond (Dependencies): Add gettimeofday.
65164 2008-10-11  Bruno Haible  <bruno@clisp.org>
65166         Make sleep work on older versions of mingw.
65167         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
65168         only whether it exists.
65169         * doc/posix-functions/sleep.texi: Mention the problem with older
65170         versions of mingw.
65172 2008-10-11  Bruno Haible  <bruno@clisp.org>
65174         New module 'shutdown'.
65175         * modules/shutdown: New file.
65176         * lib/sys_socket.in.h (shutdown): New declaration.
65177         * lib/winsock.c (shutdown): New function.
65178         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
65179         GNULIB_SHUTDOWN.
65180         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
65181         * doc/posix-functions/shutdown.texi: Document the new module.
65183 2008-10-11  Jim Meyering  <meyering@redhat.com>
65185         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
65187 2008-10-11  Bruno Haible  <bruno@clisp.org>
65189         New module 'fclose'.
65190         * modules/fclose: New file.
65191         * lib/stdio.in.h (fclose): New declaration.
65192         * lib/fclose.c: New file.
65193         * m4/fclose.m4: New file.
65194         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
65195         REPLACE_FCLOSE.
65196         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
65197         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
65198         REPLACE_FCLOSE.
65199         * modules/close (Depends-on): fclose.
65200         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
65202 2008-10-11  Bruno Haible  <bruno@clisp.org>
65204         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
65205         set errno and don't call _close.
65207 2008-10-10  Bruno Haible  <bruno@clisp.org>
65209         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
65210         ACL, not afterwards. Fixes test failure on Cygwin.
65212 2008-10-09  Ben Pfaff  <blp@gnu.org>
65214         * build-aux/announce-gen: Fix gnulib version related part of usage
65215         message.  Die with a useful error message if no tarballs are
65216         found.
65218 2008-10-10  Jim Meyering  <meyering@redhat.com>
65220         bootstrap: use git's --depth=N option only if it's supported
65221         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
65222         recognize the --depth option.  Reported by Pádraig Brady.
65224 2008-10-09  Bruno Haible  <bruno@clisp.org>
65226         New module 'ioctl'.
65227         * modules/ioctl: New file.
65228         * lib/sys_socket.in.h (ioctl): Remove declaration.
65229         * lib/winsock.c: Include <sys/ioctl.h>.
65230         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
65231         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
65232         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
65233         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
65234         * doc/posix-functions/ioctl.texi: Mention the new module.
65236 2008-10-09  Bruno Haible  <bruno@clisp.org>
65238         New module 'sys_ioctl'.
65239         * lib/sys_ioctl.in.h: New file.
65240         * m4/sys_ioctl_h.m4: New file.
65241         * modules/sys_ioctl: New file.
65242         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
65244 2008-10-09  Bruno Haible  <bruno@clisp.org>
65246         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
65247         * lib/winsock.c: Include <stdarg.h>.
65248         (rpl_ioctl): Change to second argument 'int' and then varargs.
65250 2008-10-09  Bruno Haible  <bruno@clisp.org>
65252         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
65253         when the sys_socket module is present and the system has <winsock2.h>.
65255 2008-10-09  Bruno Haible  <bruno@clisp.org>
65257         * doc/posix-functions/close.texi: Mention module 'close' instead of
65258         module 'sys_socket'.
65260 2008-10-09  Bruno Haible  <bruno@clisp.org>
65262         * doc/glibc-headers/sys_ioctl.texi: New file.
65263         * doc/gnulib.texi: Include it.
65265 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
65266             Bruno Haible  <bruno@clisp.org>
65268         Combine the two replacements of 'close'.
65269         * lib/sys_socket.in.h (close): Define to a reminder to include
65270         <unistd.h>.
65271         (_gl_close_fd_maybe_socket): New declaration.
65272         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
65273         * lib/winsock.c (close): Remove undefinition.
65274         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
65275         needed for the gnulib module 'close'.
65276         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
65277         define to an error symbol or to a warning, if suitable.
65278         * lib/close.c: Include <sys/socket.h>.
65279         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
65280         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
65281         UNISTD_H_HAVE_WINSOCK2_H.
65282         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
65283         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
65284         UNISTD_H_HAVE_WINSOCK2_H.
65285         * modules/sys_socket (Files): Add m4/unistd_h.m4.
65286         (configure.ac): Set a module indicator.
65287         (Makefile.am): Substitute GNULIB_CLOSE.
65288         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
65289         * modules/poll-tests (Depends-on): Add close.
65290         * modules/select-tests (Depends-on): Likewise.
65292 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
65293             Bruno Haible  <bruno@clisp.org>
65295         New module 'close'.
65296         * modules/close: New file.
65297         * lib/unistd.in.h (close): Move declaration out of the
65298         FCHDIR_REPLACEMENT scope.
65299         (_gl_unregister_fd): New declaration.
65300         * lib/close.c: New file.
65301         * lib/fchdir.c (rpl_close): Remove function.
65302         * m4/close.m4: New file.
65303         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
65304         close.
65305         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
65306         REPLACE_CLOSE.
65307         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
65308         REPLACE_CLOSE.
65309         * modules/fchdir (Depends-on): Add close.
65311 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
65312             Bruno Haible  <bruno@clisp.org>
65314         * lib/fcntl.in.h (open): Simplify conditionals.
65315         (_gl_register_fd): New declaration.
65316         * lib/fchdir.c (rpl_open): Remove function.
65317         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
65318         also.
65319         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
65320         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
65321         open.
65323 2008-10-09  Jim Meyering  <meyering@redhat.com>
65325         GNUmakefile: use the more name-space-friendly "_version"
65326         * top/GNUmakefile (_dummy): Update.
65327         (_version): Rename from "version".
65329 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
65330             Bruno Haible  <bruno@clisp.org>
65332         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
65333         rpl_close.
65334         (_gl_register_fd): New function, extracted from rpl_open.
65335         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
65336         (rpl_open, rpl_opendir): Use _gl_register_fd.
65338 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
65340         Fix organization of 'open' replacement.
65341         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
65342         (gl_FUNC_OPEN): Use it.
65343         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
65345 2008-10-08  Bruno Haible  <bruno@clisp.org>
65347         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
65349 2008-10-08  Simon Josefsson  <simon@josefsson.org>
65351         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
65352         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
65353         listen).
65355 2008-10-08  Eric Blake  <ebb9@byu.net>
65357         GNUmakefile: add 'make version' target
65358         * top/GNUmakefile (_curr-ver): Split version update rules...
65359         (version): ...into a target.
65361 2008-10-07  Bruno Haible  <bruno@clisp.org>
65363         Use a more portable replacement expression for -0.0L.
65364         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
65365         instead of -0.0L. Fix m4 quotation.
65367         * tests/test-signbit.c: Include <float.h>.
65368         (minus_zero): New variable.
65369         (test_signbitl): Use minus_zero instead of -zero.
65370         * modules/signbit-tests (Depends-on): Add float.
65372         * tests/test-ceill.c: Include <float.h>.
65373         (zero): Remove variable.
65374         (minus_zero): New variable.
65375         (main): Use minus_zero instead of -zero.
65376         * modules/ceill-tests (Depends-on): Add float.
65378         * tests/test-floorl.c: Include <float.h>.
65379         (zero): Remove variable.
65380         (minus_zero): New variable.
65381         (main): Use minus_zero instead of -zero.
65382         * modules/floorl-tests (Depends-on): Add float.
65384         * tests/test-roundl.c: Include <float.h>.
65385         (zero): Remove variable.
65386         (minus_zero): New variable.
65387         (main): Use minus_zero instead of -zero.
65388         * modules/roundl-tests (Depends-on): Add float.
65390         * tests/test-truncl.c: Include <float.h>.
65391         (zero): Remove variable.
65392         (minus_zero): New variable.
65393         (main): Use minus_zero instead of -zero.
65394         * modules/truncl-tests (Depends-on): Add float.
65396         * tests/test-frexpl.c (zero): Remove variable.
65397         (minus_zero): New variable.
65398         (main): Use minus_zero instead of -zero.
65399         * modules/frexpl-tests (Depends-on): Add float.
65401         * tests/test-isnan.c (zerol): Remove variable.
65402         (minus_zerol): New variable.
65403         (test_long_double): Use minus_zerol instead of -zerol.
65404         * modules/isnan-tests (Depends-on): Add float.
65406         * tests/test-isnanl.h (zero): Remove variable.
65407         (minus_zero): New variable.
65408         (main): Use minus_zero instead of -zero.
65409         * modules/isnanl-nolibm-tests (Depends-on): Add float.
65410         * modules/isnanl-tests (Depends-on): Add float.
65412         * tests/test-ldexpl.c (zero): Remove variable.
65413         (minus_zero): New variable.
65414         (main): Use minus_zero instead of -zero.
65415         * modules/ldexpl-tests (Depends-on): Add float.
65417         * tests/test-snprintf-posix.h (zerol): Remove variable.
65418         (minus_zerol): New variable.
65419         (test_function): Use minus_zerol instead of -zerol.
65420         * modules/snprintf-posix-tests (Depends-on): Add float.
65421         * modules/vsnprintf-posix-tests (Depends-on): Add float.
65423         * tests/test-sprintf-posix.h (zerol): Remove variable.
65424         (minus_zerol): New variable.
65425         (test_function): Use minus_zerol instead of -zerol.
65426         * modules/sprintf-posix-tests (Depends-on): Add float.
65427         * modules/vsprintf-posix-tests (Depends-on): Add float.
65429         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
65430         (minus_zerol): New variable.
65431         (test_function): Use minus_zerol instead of -zerol.
65432         * modules/vasnprintf-posix-tests (Depends-on): Add float.
65434         * tests/test-vasprintf-posix.c (zerol): Remove variable.
65435         (minus_zerol): New variable.
65436         (test_function): Use minus_zerol instead of -zerol.
65437         * modules/vasprintf-posix-tests (Depends-on): Add float.
65439 2008-10-07  Simon Josefsson  <simon@josefsson.org>
65441         * MODULES.html.sh (Support for building documentation): Mention
65442         pmccabe2html.  Sort entries.
65444         Add pmccabe2html module, from gnupdf.
65445         * build-aux/pmccabe.css: New file.
65446         * build-aux/pmccabe2html: New file.
65447         * m4/pmccabe2html.m4: New file.
65448         * modules/pmccabe2html: New file.
65450 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
65452         flock: new module
65453         * MODULES.html.sh: Add to list of modules.
65454         * lib/flock.c: flock implementation for Windows and Unix systems
65455         which have fcntl.
65456         * doc/glibc-functions/flock.texi: Update documentation.
65457         * lib/sys_file.in.h: <sys/file.h> header file.
65458         * m4/flock.m4: M4 macros.
65459         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
65460         * modules/flock: flock module.
65461         * modules/flock-tests: flock tests module.
65462         * modules/sys_file: sys/file.h module.
65463         * tests/test-flock.c: test suite for flock.
65465 2008-10-06  Jim Meyering  <meyering@redhat.com>
65467         bootstrap: check for LT_INIT more portably still ;-)
65468         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
65469         Spotted by Bruno Haible.
65471 2008-10-06  Eric Blake  <ebb9@byu.net>
65473         test-signbit: avoid tripping Irix cc bug on -0.0L
65474         * tests/test-signbit.c (minus_zerol): Delete, and replace with
65475         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
65476         entire testsuite consistent and avoids an Irix 6.2 bug.
65478 2008-10-05  Bruno Haible  <bruno@clisp.org>
65479             Jim Meyering  <jim@meyering.net>
65481         Add an option for ignoring EPIPE during close_stdout.
65482         * lib/closeout.h: Include <stdbool.h>.
65483         (close_stdout_set_ignore_EPIPE): New declaration.
65484         * lib/closeout.c: Include <stdbool.h>.
65485         (ignore_EPIPE): New variable.
65486         (close_stdout_set_ignore_EPIPE): New function.
65487         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
65488         * lib/close-stream.c (close_stream): Mention the possible EPIPE
65489         failure.
65490         * modules/closeout (Depends-on): Add stdbool.
65492 2008-10-05  Bruno Haible  <bruno@clisp.org>
65494         * modules/accept: New file.
65495         * modules/bind: New file.
65496         * modules/connect: New file.
65497         * modules/getpeername: New file.
65498         * modules/getsockname: New file.
65499         * modules/getsockopt: New file.
65500         * modules/listen: New file.
65501         * modules/recv: New file.
65502         * modules/recvfrom: New file.
65503         * modules/send: New file.
65504         * modules/sendto: New file.
65505         * modules/setsockopt: New file.
65506         * modules/socket: New file.
65507         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
65508         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
65509         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
65510         the particular module is requested. Add a link warning when the
65511         particular module is not requested.
65512         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
65513         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
65514         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
65515         the particular module is requested.
65516         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
65517         gl_SYS_SOCKET_H_DEFAULTS): New macros.
65518         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
65519         * modules/sys_socket (Depends-on): Add link-warning.
65520         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
65521         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
65522         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
65523         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
65524         GL_LINK_WARNING.
65525         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
65526         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
65527         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
65528         * doc/posix-functions/getpeername.texi: Mention the new module
65529         'getpeername'.
65530         * doc/posix-functions/getsockname.texi: Mention the new module
65531         'getsockname'.
65532         * doc/posix-functions/getsockopt.texi: Mention the new module
65533         'getsockopt'.
65534         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
65535         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
65536         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
65537         * doc/posix-functions/send.texi: Mention the new module 'send'.
65538         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
65539         * doc/posix-functions/setsockopt.texi: Mention the new module
65540         'setsockopt'.
65541         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
65542         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
65543         listen, connect, accept.
65544         * modules/select-tests (Depends-on): Likewise.
65546 2008-10-05  Bruno Haible  <bruno@clisp.org>
65548         * lib/winsock.c (strerror): Remove unused #undef.
65549         (rpl_close): Remove unused local variable.
65551         * modules/sys_socket (Depends-on); Add errno.
65553 2008-10-05  Bruno Haible  <bruno@clisp.org>
65555         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
65556         (select): Add a link warning when the 'select' module is not used.
65557         * modules/sys_select (Depends-on): Add link-warning.
65558         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
65559         Suggested by Paolo Bonzini.
65561 2008-10-05  Jim Meyering  <meyering@redhat.com>
65563         bootstrap: check for LT_INIT more portably
65564         * build-aux/bootstrap: Avoid using grep -E, since it's not
65565         portable enough.  Suggestion from Bruno Haible.
65567 2008-10-05  Bruno Haible  <bruno@clisp.org>
65569         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
65570         as being fixed by gnulib.
65572 2008-10-05  Bruno Haible  <bruno@clisp.org>
65574         * modules/select-tests: New file, mostly copied from
65575         modules/sys_select-tests.
65576         * tests/test-select.c: New file, mostly copied from
65577         tests/test-sys_select.c.
65578         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
65579         * modules/sys_select-tests (Depends-on): Remove all dependencies.
65580         (Makefile.am): Remove test_sys_select_LDADD.
65582         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
65583         to an undefined symbol, for an error message.
65584         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
65585         (gl_SYS_SELECT_H_DEFAULTS): New macro.
65586         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
65587         winsock-select.c here.
65588         * modules/sys_select (Files): Remove lib/winsock-select.c.
65589         (Depends-on): Remove alloca.
65590         (Makefile.am): Substitute GNULIB_SELECT.
65591         * modules/select: New file.
65592         * doc/posix-functions/select.texi: Update.
65594 2008-10-05  Bruno Haible  <bruno@clisp.org>
65596         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
65597         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
65598         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
65599         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
65600         getdtablesize.
65601         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
65602         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
65604 2008-10-05  Bruno Haible  <bruno@clisp.org>
65606         * modules/getdtablesize-tests: New file.
65607         * tests/test-getdtablesize.c: New file.
65609         New module 'getdtablesize'.
65610         * lib/unistd.in.h (getdtablesize): New declaration.
65611         * lib/getdtablesize.c: New file.
65612         * m4/getdtablesize.m4: New file.
65613         * modules/getdtablesize: New file.
65614         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
65615         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
65616         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
65617         HAVE_GETDTABLESIZE.
65618         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
65620 2008-10-05  Bruno Haible  <bruno@clisp.org>
65622         * modules/sched (Makefile.am): Fix typo.
65623         Reported by Simon Josefsson.
65625 2008-10-05  Jim Meyering  <meyering@redhat.com>
65627         bootstrap: check for LT_INIT, too
65628         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
65629         are deprecated.  Suggestion from Ralf Wildenhues.
65631 2008-10-05  Bruno Haible  <bruno@clisp.org>
65633         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
65634         overriding them by ours.
65635         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
65637 2008-10-05  Jim Meyering  <meyering@redhat.com>
65639         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
65640         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
65641         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
65643 2008-10-04  Bruno Haible  <bruno@clisp.org>
65645         * modules/dup2 (License): Change to LGPLv2+.
65646         * modules/sleep (License): Likewise.
65647         * modules/perror (License): Likewise.
65648         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
65649         Blake.
65650         * modules/signal (License): Likewise.
65651         * modules/sigprocmask (License): Likewise.
65652         * modules/raise (License): Change to LGPLv2+, with approval by Jim
65653         Meyering.
65655 2008-10-04  Bruno Haible  <bruno@clisp.org>
65657         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
65658         Reported by Rainer Tammer <tammer@tammer.net>.
65660 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
65661             Bruno Haible  <bruno@clisp.org>
65663         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
65664         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
65665         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
65667 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
65669         filevercmp: new module
65670         * lib/filevercmp.h: New function filevercmp comparing version strings.
65671         * lib/filevercmp.c: Implementation of filevercmp function.
65672         * modules/filevercmp: Module metadata.
65673         * tests/test-filevercmp.c: Unit test for new module.
65674         * modules/filevercmp-tests: Unit test metadata.
65675         * MODULES.html.sh: Add filevercmp module.
65677 2008-10-03  Bruno Haible  <bruno@clisp.org>
65679         * lib/c-ctype.h: Add comment.
65680         Reported by Jim Meyering.
65682 2008-10-02  Bruno Haible  <bruno@clisp.org>
65684         * modules/posix_spawn-internal (Depends-on): Add 'open'.
65686 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
65688         * build-aux/bootstrap: Allow renaming bootstrap, and change the
65689         name of bootstrap.conf accordingly.
65691 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
65693         * build-aux/bootstrap: Install git-merge-changelog configuration
65694         items into .gitconfig if needed.
65696 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
65698         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
65699         git repository, and initialize/update it accordingly.
65701 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
65703         * modules/fsync-tests: New file.
65704         * tests/test-fsync.c: New file.
65706         New module 'fsync'.
65707         * lib/fsync.c: New file.
65708         * m4/fsync.m4: New file.
65709         * modules/fsync: New file.
65710         * lib/unistd.in.h (fsync): New declaration.
65711         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
65712         GNULIB_FSYNC and HAVE_FSYNC.
65713         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
65714         * MODULES.html.sh (posix_functions): Add fsync.
65715         * doc/posix-functions/fsync.texi: Mention the new module.
65717 2008-10-02  Jim Meyering  <meyering@redhat.com>
65719         fts.c: sync with similar code from coreutils' remove.c
65720         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
65721         Guard also with "#if defined __linux__", since for now at least,
65722         this code is Linux-kernel-specific.
65724 2008-10-02  Jim Meyering  <meyering@redhat.com>
65726         fts: bug fixes
65727         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
65728         Include <sys/vfs.h>, not <sys/statfs.h>.
65730         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
65731         Include <sys/vfs.h>, not <sys/statfs.h>.
65733 2008-10-01  Bruno Haible  <bruno@clisp.org>
65735         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
65736         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
65737         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
65738         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
65739         * doc/posix-functions/posix_spawnp.texi: Likewise.
65740         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
65741         whether posix_spawn actually works.
65742         * m4/pipe.m4 (gl_PIPE): Likewise.
65743         * modules/execute (Files): Add m4/posix_spawn.m4.
65744         * modules/pipe (Files): Add m4/posix_spawn.m4.
65745         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
65747 2008-10-01  Jim Meyering  <meyering@redhat.com>
65749         remove trailing spaces
65750         * NEWS: Likewise.
65751         * lib/poll.c (poll): Likewise.
65752         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
65753         * lib/winsock.c (rpl_close): Likewise.
65754         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
65755         * modules/yield: Likewise.
65756         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
65757         * tests/test-sys_select.c (connect_to_socket): Likewise.
65759         fts.c: adjust a new interface to be more generally useful
65760         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
65761         (fts_build): Adjust caller.
65763 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65765         * modules/cond-tests: New file.
65766         * tests/test-cond.c: New file.
65768 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65769             Bruno Haible  <bruno@clisp.org>
65771         * modules/cond (Dependencies): Add errno, time.
65772         * lib/glthread/cond.h: Include <time.h>.
65773         (gl_cond_define, gl_cond_define_initialized): Use the same definition
65774         across platforms.
65776 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65777             Bruno Haible  <bruno@clisp.org>
65779         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
65781 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65782             Bruno Haible  <bruno@clisp.org>
65784         * modules/tls-tests (Depends-on): Add thread, yield.
65785         (configure.ac): Remove all checks.
65786         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
65787         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
65788         gl_thread_self): Remove definitions. Include glthread/thread.h and
65789         glthread/yield.h instead.
65790         (test_tls): Pass an additional NULL argument to gl_thread_join.
65792 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65793             Bruno Haible  <bruno@clisp.org>
65795         * modules/lock-tests (Depends-on): Add thread, yield.
65796         (configure.ac): Remove all checks.
65797         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
65798         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
65799         gl_thread_self): Remove definitions. Include glthread/thread.h and
65800         glthread/yield.h instead.
65801         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
65802         additional NULL argument to gl_thread_join.
65804 2008-09-30  Bruno Haible  <bruno@clisp.org>
65806         Fix the Win32 implementation of the 'thread' module.
65807         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
65808         pointer type.
65809         (gl_thread_self): Invoke gl_thread_self_func.
65810         (gl_thread_self_func): New declaration.
65811         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
65812         (do_init_self_key, init_self_key): New functions.
65813         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
65814         Remove some fields.
65815         (running_threads, running_lock): Remove variables.
65816         (get_current_thread_handle): New function.
65817         (gl_thread_self_func, wrapper_func, glthread_create_func,
65818         glthread_join_func, gl_thread_exit_func): Largely rewritten and
65819         simplified.
65821 2008-09-30  Bruno Haible  <bruno@clisp.org>
65823         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
65824         files.
65826 2008-09-30  Jim Meyering  <meyering@redhat.com>
65828         fts.m4: correct the test for statfs.f_type
65829         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
65830         when checking for statfs.f_type.
65832 2008-09-15  Simon Josefsson  <simon@josefsson.org>
65834         tests: avoid some compiler warnings
65835         * tests/test-memchr.c (main): Pass NULL indirectly.
65836         * tests/test-getdate.c (main): Remove unused variable 'ret'.
65838 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
65840         getdate.y: disallow countable dayshifts like "4 yesterday ago"
65841         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
65842         exactly specified dayshifts.
65843         (dayshift): New rule.
65844         (rel): Add dayshift.
65845         (relative_time_table) [tomorrow, yesterday, today, now]:
65846         Use tDAY_SHIFT in place of tDAY_UNIT.
65847         * tests/test-getdate.c: Add tests for now-disallowed countable
65848         dayshifts, e.g., "4 yesterday ago".
65850 2008-09-29  Bruno Haible  <bruno@clisp.org>
65852         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
65853         * tests/test-posix_spawn1.in.sh: Renamed from
65854         tests/test-posix_spawn.in.sh.
65855         * tests/test-posix_spawn2.c: New file.
65856         * tests/test-posix_spawn2.in.sh: New file.
65857         * modules/posix_spawnp-tests (Files): Update.
65858         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
65860 2008-09-29  Bruno Haible  <bruno@clisp.org>
65862         Propagate effects of putenv/setenv/unsetenv to child processes.
65863         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
65864         * lib/pipe.c (create_pipe): Likewise.
65866 2008-09-29  Bruno Haible  <bruno@clisp.org>
65868         Enable use of shell scripts as executables in mingw.
65869         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
65870         run the program as a shell script.
65871         * lib/pipe.c (create_pipe): Likewise.
65872         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
65873         resulting array.
65875 2008-09-29  Eric Blake  <ebb9@byu.net>
65877         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
65879 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
65881         * doc/posix-functions/accept.texi: Update mingw problems.
65882         * doc/posix-functions/bind.texi: Update mingw problems.
65883         * doc/posix-functions/close.texi: Update mingw problems.
65884         * doc/posix-functions/connect.texi: Update mingw problems.
65885         * doc/posix-functions/getpeername.texi: Update mingw problems.
65886         * doc/posix-functions/getsockname.texi: Update mingw problems.
65887         * doc/posix-functions/getsockopt.texi: Update mingw problems.
65888         * doc/posix-functions/ioctl.texi: Update mingw problems.
65889         * doc/posix-functions/listen.texi: Update mingw problems.
65890         * doc/posix-functions/recv.texi: Update mingw problems.
65891         * doc/posix-functions/recvfrom.texi: Update mingw problems.
65892         * doc/posix-functions/select.texi: Update mingw problems.
65893         * doc/posix-functions/send.texi: Update mingw problems.
65894         * doc/posix-functions/sendto.texi: Update mingw problems.
65895         * doc/posix-functions/setsockopt.texi: Update mingw problems.
65896         * doc/posix-functions/socket.texi: Update mingw problems.
65898 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
65899             Bruno Haible  <bruno@clisp.org>
65901         * lib/sys_select.in.h: Include sys/time.h.
65902         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
65903         * modules/sys_select: Depend on sys_time.
65904         * tests/test-sys_select.c: Test that sys/select.h defines struct
65905         timeval fully.
65907 2008-09-29  Bruno Haible  <bruno@clisp.org>
65909         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
65910         * lib/sys_select.in.h: Likewise.
65912 2008-09-29  Bruno Haible  <bruno@clisp.org>
65914         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
65916 2008-09-29  Bruno Haible  <bruno@clisp.org>
65918         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
65919         Set LIBSOCKET instead of augmenting LIBS.
65920         * modules/sockets (Link): New section.
65921         * modules/sockets-tests (test_sockets_LDADD): New variable.
65922         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
65923         * modules/poll-tests (test_poll_LDADD): New variable.
65924         * NEWS: Document the change.
65926 2008-09-29  Bruno Haible  <bruno@clisp.org>
65928         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
65929         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
65930         ARPA_INET_H directly.
65931         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
65933 2008-09-28  Bruno Haible  <bruno@clisp.org>
65935         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
65936         from gl_HEADER_SYS_SOCKET.
65937         (gl_HEADER_SYS_SOCKET): Invoke it.
65938         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
65940 2008-09-28  Bruno Haible  <bruno@clisp.org>
65942         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
65943         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
65944         Needed on OSF/1 4.0.
65946 2008-09-28  Bruno Haible  <bruno@clisp.org>
65948         Override open more carefully.
65949         * lib/open.c (orig_open): New function.
65950         (rpl_open): Use orig_open instead of open.
65951         * lib/fcntl.in.h: Add special invocation convention.
65952         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
65953         (gl_FUNC_OPEN): Invoke it.
65955         Override freopen more carefully.
65956         * lib/freopen.c (orig_freopen): New function.
65957         (rpl_freopen): Use orig_freopen instead of freopen.
65958         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
65959         (gl_FUNC_FREOPEN): Invoke it.
65961         Override fopen more carefully.
65962         * lib/fopen.c (orig_fopen): New function.
65963         (rpl_fopen): Use orig_fopen instead of fopen.
65964         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
65965         (gl_FUNC_FOPEN): Invoke it.
65966         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
65968 2008-09-28  Bruno Haible  <bruno@clisp.org>
65970         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
65971         SIGPIPE.
65973 2008-09-28  Bruno Haible  <bruno@clisp.org>
65975         * tests/test-sigaction.c (handler, main): Disable the check whether
65976         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
65977         glibc systems with LinuxThreads.
65979 2008-09-28  Bruno Haible  <bruno@clisp.org>
65981         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
65983         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
65984         with AIX xlc.
65985         * lib/fcntl.in.h (open): Likewise.
65986         Reported by Rainer Tammer <tammer@tammer.net>.
65988 2008-09-28  Bruno Haible  <bruno@clisp.org>
65990         * modules/posix_spawnp-tests: New file.
65991         * tests/test-posix_spawn.c: New file.
65992         * tests/test-posix_spawn.in.sh: New file.
65994         New module 'posix_spawnp'.
65995         * modules/posix_spawnp: New file.
65996         * lib/spawnp.c: New file, from GNU libc with modifications.
65997         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
65999         New module 'posix_spawn'.
66000         * modules/posix_spawn: New file.
66001         * lib/spawn.c: New file, from GNU libc with modifications.
66002         * doc/posix-functions/posix_spawn.texi: Mention the new module.
66004         New module 'posix_spawnattr_destroy'.
66005         * modules/posix_spawnattr_destroy: New file.
66006         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
66007         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
66008         module.
66010         New module 'posix_spawnattr_setsigmask'.
66011         * modules/posix_spawnattr_setsigmask: New file.
66012         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
66013         modifications.
66014         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
66015         new module.
66017         New module 'posix_spawnattr_getsigmask'.
66018         * modules/posix_spawnattr_getsigmask: New file.
66019         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
66020         modifications.
66021         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
66022         new module.
66024         New module 'posix_spawnattr_setsigdefault'.
66025         * modules/posix_spawnattr_setsigdefault: New file.
66026         * lib/spawnattr_setdefault.c: New file, from GNU libc with
66027         modifications.
66028         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
66029         new module.
66031         New module 'posix_spawnattr_getsigdefault'.
66032         * modules/posix_spawnattr_getsigdefault: New file.
66033         * lib/spawnattr_getdefault.c: New file, from GNU libc with
66034         modifications.
66035         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
66036         new module.
66038         New module 'posix_spawnattr_setschedpolicy'.
66039         * modules/posix_spawnattr_setschedpolicy: New file.
66040         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
66041         modifications.
66042         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
66043         new module.
66045         New module 'posix_spawnattr_getschedpolicy'.
66046         * modules/posix_spawnattr_getschedpolicy: New file.
66047         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
66048         modifications.
66049         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
66050         new module.
66052         New module 'posix_spawnattr_setschedparam'.
66053         * modules/posix_spawnattr_setschedparam: New file.
66054         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
66055         modifications.
66056         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
66057         new module.
66059         New module 'posix_spawnattr_getschedparam'.
66060         * modules/posix_spawnattr_getschedparam: New file.
66061         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
66062         modifications.
66063         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
66064         new module.
66066         New module 'posix_spawnattr_setpgroup'.
66067         * modules/posix_spawnattr_setpgroup: New file.
66068         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
66069         modifications.
66070         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
66071         module.
66073         New module 'posix_spawnattr_getpgroup'.
66074         * modules/posix_spawnattr_getpgroup: New file.
66075         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
66076         modifications.
66077         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
66078         module.
66080         New module 'posix_spawnattr_setflags'.
66081         * modules/posix_spawnattr_setflags: New file.
66082         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
66083         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
66084         module.
66086         New module 'posix_spawnattr_getflags'.
66087         * modules/posix_spawnattr_getflags: New file.
66088         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
66089         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
66090         module.
66092         New module 'posix_spawnattr_init'.
66093         * modules/posix_spawnattr_init: New file.
66094         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
66095         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
66096         module.
66098         New module 'posix_spawn_file_actions_destroy'.
66099         * modules/posix_spawn_file_actions_destroy: New file.
66100         * lib/spawn_faction_destroy.c: New file, from GNU libc with
66101         modifications.
66102         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
66103         the new module.
66105         New module 'posix_spawn_file_actions_addopen'.
66106         * modules/posix_spawn_file_actions_addopen: New file.
66107         * lib/spawn_faction_addopen.c: New file, from GNU libc with
66108         modifications.
66109         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
66110         the new module.
66112         New module 'posix_spawn_file_actions_adddup2'.
66113         * modules/posix_spawn_file_actions_adddup2: New file.
66114         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
66115         modifications.
66116         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
66117         the new module.
66119         New module 'posix_spawn_file_actions_addclose'.
66120         * modules/posix_spawn_file_actions_addclose: New file.
66121         * lib/spawn_faction_addclose.c: New file, from GNU libc with
66122         modifications.
66123         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
66124         the new module.
66126         New module 'posix_spawn_file_actions_init'.
66127         * modules/posix_spawn_file_actions_init: New file.
66128         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
66129         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
66130         new module.
66132         New module 'posix_spawn-internal'.
66133         * modules/posix_spawn-internal: New file.
66134         * lib/spawn_int.h: New file, from GNU libc with modifications.
66135         * lib/spawni.c: New file, from GNU libc with modifications.
66136         * m4/posix_spawn.m4: New file.
66138         New module 'spawn'.
66139         * modules/spawn: New file.
66140         * lib/spawn.in.h: New file, from GNU libc with modifications.
66141         * m4/spawn_h.m4: New file.
66142         * doc/posix-headers/spawn.texi: Mention the new module.
66144 2008-09-28  Bruno Haible  <bruno@clisp.org>
66146         * modules/sched-tests: New file.
66147         * tests/test-sched.c: New file.
66149         New module 'sched'.
66150         * modules/sched: New file.
66151         * lib/sched.in.h: New file.
66152         * m4/sched_h.m4: New file.
66153         * doc/posix-headers/sched.texi: Mention the new module.
66155 2008-09-27  Eric Blake  <ebb9@byu.net>
66157         Fix previous patch, and tweak references to $0.
66158         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
66159         (func_version, func_gnulib_dir): Don't call this program
66160         gnulib-tool.
66161         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
66162         with using $0 in function.
66163         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
66164         (func_fatal_error): Reuse the name the user invoked us with.
66166 2008-09-27  Bruno Haible  <bruno@clisp.org>
66168         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
66169         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
66170         (gl_ICONV_H): Not here.
66171         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
66172         instead of assigning ICONV_H directly.
66174         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
66175         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
66176         WCHAR_H directly.
66178 2008-09-27  Bruno Haible  <bruno@clisp.org>
66180         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
66181         * modules/arpa_inet (Depends-on): Add link-warning.
66182         (Makefile.am): Insert the definition of GL_LINK-WARNING.
66183         * modules/unistd (Makefile.am): Likewise.
66185 2008-09-26  Bruno Haible  <bruno@clisp.org>
66187         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
66188         variables.
66189         (func_version): Essentially copied from gnulib-tool.
66190         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
66191         func_readlink): Copied from gnulib-tool.
66193 2008-09-26  Bruno Haible  <bruno@clisp.org>
66195         * gnulib-tool (func_version): Change directory to $gnulib_dir before
66196         invoking git-version-gen.
66198 2008-09-26  Bruno Haible  <bruno@clisp.org>
66200         * posix-modules: Update to directory names changed on 2008-01-19.
66201         Remove commas in output before splitting into words. No more need to
66202         avoid 'ftruncate' since 2007-02-19.
66204 2008-09-26  Bruno Haible  <bruno@clisp.org>
66206         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
66208 2008-09-26  Bruno Haible  <bruno@clisp.org>
66210         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
66211         * modules/fwriteerror (Depends-on): Add errno.
66213 2008-09-26  Bruno Haible  <bruno@clisp.org>
66215         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
66216         * tests/test-vc-list-files-cvs.sh: Likewise.
66218 2008-09-26  Bruno Haible  <bruno@clisp.org>
66220         * doc/posix-headers/sys_resource.texi: Reorder items.
66222 2008-09-26  Jim Meyering  <meyering@redhat.com>
66224         fts: tweak inode comparison function
66225         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
66226         inode numbers, as documented.
66228         fts: sort dirent entries on inode number before traversing
66229         This avoids a quadratic, seek-related performance penalty when
66230         operating on a directory containing many entries (measurable at 10k;
66231         3.5 hours at 2 million entries with a cold cache) on certain types
66232         of file systems, including ext3 and ext4, but not tmpfs.
66233         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
66234         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
66235         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
66236         (fs_handles_readdir_ordered_dirents_efficiently): New function.
66237         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
66238         (fts_build): Set the stat.st_ino member from D_INO.
66239         If it is likely to be useful, sort dirent entries on inode number.
66241         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
66242         and the struct statfs.f_type member.
66243         * modules/fts (Depends-on): Add d-ino.
66245 2008-09-26  Bruno Haible  <bruno@clisp.org>
66247         * modules/sigpipe-die (Depends-on): Add sigpipe.
66249         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
66250         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
66251         and GNULIB_STDIO_H_SIGPIPE are set.
66252         * lib/stdio-write.c: New file.
66253         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
66254         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
66255         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
66256         REPLACE_STDIO_WRITE_FUNCS.
66257         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
66258         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
66259         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
66260         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
66261         * modules/stdio (Files): Add lib/stdio-write.c.
66262         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
66263         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
66264         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
66265         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
66266         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
66267         REPLACE_FPRINTF_POSIX.
66268         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
66269         REPLACE_PRINTF_POSIX.
66270         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
66271         REPLACE_VFPRINTF_POSIX.
66272         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
66273         REPLACE_VPRINTF_POSIX.
66274         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
66275         SIGPIPE issue.
66276         * doc/posix-functions/fputc.texi: Likewise.
66277         * doc/posix-functions/fputs.texi: Likewise.
66278         * doc/posix-functions/fwrite.texi: Likewise.
66279         * doc/posix-functions/printf.texi: Likewise.
66280         * doc/posix-functions/putc.texi: Likewise.
66281         * doc/posix-functions/putchar.texi: Likewise.
66282         * doc/posix-functions/puts.texi: Likewise.
66283         * doc/posix-functions/vfprintf.texi: Likewise.
66284         * doc/posix-functions/vprintf.texi: Likewise.
66286         * modules/safe-write (Depends-on): Add write.
66288         * modules/sigpipe-tests: New file.
66289         * tests/test-sigpipe.c: New file.
66290         * tests/test-sigpipe.sh: New file.
66292         * modules/write: New file.
66293         * lib/unistd.in.h: Include <sys/types.h>.
66294         (write): New declaration.
66295         * lib/write.c: New file.
66296         * m4/write.m4: New file.
66297         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
66298         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
66299         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
66300         GNULIB_WRITE, REPLACE_WRITE.
66301         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
66302         and the SIGPIPE issue.
66304         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
66305         (raise): New declaration.
66306         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
66307         (ext_signal): New function.
66308         (rpl_raise): New function.
66309         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
66310         GNULIB_SIGNAL_H_SIGPIPE.
66311         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
66312         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
66314         * modules/sigpipe: New file.
66315         * m4/sigpipe.m4: New file.
66317 2008-09-25  Derek Price  <derek@ximbiot.com>
66318             Bruno Haible  <bruno@clisp.org>
66320         * gnulib-tool (func_import): Report all license incompatibilities, not
66321         just the first one.
66323 2008-09-25  Bruno Haible  <bruno@clisp.org>
66325         * gnulib-tool (func_import): When computing the edits, consider not
66326         only the Makefile.ams that exist but also those that will be generated.
66328 2008-09-25  Simon Josefsson  <simon@josefsson.org>
66330         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
66331         fixes gnulib-tool --test warning about duplicate dependency.
66333 2008-09-25  Bruno Haible  <bruno@clisp.org>
66335         * gnulib-tool: Don't ask the user to perform edits in the generated
66336         Makefile.ams.
66337         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
66338         apply to the Makefile.am being generated.
66339         (func_emit_tests_Makefile_am): Execute edits that apply to the
66340         Makefile.am being generated.
66341         (func_import): Setup list of Makefile.am edits before emitting the
66342         Makefile.ams, not at the end.
66343         (func_create_testdir): Update.
66344         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66346 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66348         * gnulib-tool (func_import): Store the --tests-base option in the
66349         comment in gnulib-cache.m4.
66351 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
66353         * NEWS: Document increased portability that sys_select now provides.
66355         * lib/sys_select.in.h: Install select wrapper.
66356         * lib/sys_socket.in.h: Use more descriptive name when there is no
66357         select wrapper.
66358         * lib/winsock-select.c: New.
66359         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
66360         Require gl_HEADER_SYS_SOCKET.
66361         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
66362         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
66363         * tests/test-sys_select.c: Add functional tests.
66365 2008-09-24  Eric Blake  <ebb9@byu.net>
66367         open, fopen: close fd leak in last patch
66368         * lib/open.c (rpl_open): Close fd before returning error.
66369         * lib/fopen.c (rpl_fopen): Close fd before returning error.
66370         * doc/posix-functions/open.texi (open): Document that Irix also
66371         has the bug.
66372         * doc/posix-functions/fopen.texi (fopen): Likewise.
66373         Reported by Paolo Bonzini.
66375 2008-09-24  Bruno Haible  <bruno@clisp.org>
66377         Ensure that a filename ending in a slash cannot be used to access a
66378         non-directory.
66379         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
66380         to check whether it's really a directory.
66381         * lib/fopen.c: Include fcntl.h, unistd.h.
66382         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
66383         and fdopen().
66384         * modules/fopen (Depends-on): Add unistd.
66385         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
66386         * tests/test-fopen.c (main): Likewise.
66387         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
66388         * doc/posix-functions/fopen.texi: Likewise.
66389         Reported by Eric Blake.
66391 2008-09-23  Eric Blake  <ebb9@byu.net>
66393         c-stack: avoid compiler optimizations when provoking overflow
66394         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
66395         recursion harder to optimize, to ensure a stack overflow occurs.
66396         * tests/test-c-stack.c (recurse): Likewise.
66397         Borrowed from libsigsegv.
66399         c-stack: work around Irix sigaltstack bug
66400         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
66401         whether sigaltstack uses wrong end of stack_t (copied in part from
66402         libsigsegv).
66403         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
66404         Irix bug, without requiring an over-allocation.
66405         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
66406         bug.
66408         fopen: document mingw bug on directories
66409         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
66410         not allowing a stream visiting a directory, even though reading
66411         from such a stream is not portable.
66413 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
66415         * lib/poll.c: Rewrite.
66416         * modules/poll: Depend on alloca.
66418 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
66420         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
66421         instead define prototypes for a full set of wrappers.  Ensure
66422         that Cygwin does not use the compatibility code, which is only
66423         for MinGW.
66424         * lib/winsock.c: New.
66425         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
66426         * modules/sys_socket: Add lib/winsock.c.
66428         * modules/poll-tests: Add errno and perror.
66429         * tests/test-poll.c: Use ioctl, not ioctlsocket.
66431 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
66433         * tests/test-poll.c: Downgrade minimum needed Winsock version.
66435 2008-09-23  Bruno Haible  <bruno@clisp.org>
66437         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
66438         * doc/glibc-functions/*: Likewise.
66440 2008-09-23  Simon Josefsson  <simon@josefsson.org>
66442         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
66443         success.
66445 2008-09-22  Eric Blake  <ebb9@byu.net>
66446             Bruno Haible  <bruno@clisp.org>
66448         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
66449         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
66450         supply %A but mishandle pseudo-NaN.
66451         Reported by Simon Josefsson.
66453 2008-09-21  Bruno Haible  <bruno@clisp.org>
66455         * tests/test-lock.c (main): Tweak skip message.
66456         * tests/test-tls.c (main): Likewise.
66458 2008-09-21  Bruno Haible  <bruno@clisp.org>
66460         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
66461         whether 'struct sigaction' has sa_sigaction here...
66462         (gl_PREREQ_SIG_HANDLER_H): ... not here.
66463         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
66465 2008-09-21  Bruno Haible  <bruno@clisp.org>
66467         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
66468         section.
66469         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
66470         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
66471         the new section.
66472         (Support for obsolete systems lacking POSIX:2001): New section.
66473         (String handling <string.h>): Move strdup to the new section.
66474         Suggested by Simon Josefsson and Paolo Bonzini.
66476 2008-09-21  Bruno Haible  <bruno@clisp.org>
66478         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
66479         exponents in %e and %g results on 'long double'. Needed for mingw's
66480         improved *printf functions.
66481         * tests/test-vasprintf-posix.c (test_function): Likewise.
66482         * tests/test-snprintf-posix.h (test_function): Likewise.
66483         * tests/test-sprintf-posix.h (test_function): Likewise.
66484         Reported by Eric Blake.
66486 2008-09-21  Bruno Haible  <bruno@clisp.org>
66488         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
66489         * tests/test-sprintf-posix.h (test_function): Likewise.
66491 2008-09-21  Bruno Haible  <bruno@clisp.org>
66493         * modules/getpass (Depends-on): Add strdup-posix.
66495         New module 'strdup-posix'.
66496         * modules/strdup-posix: New file.
66497         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
66498         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
66499         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
66500         REPLACE_STRDUP.
66501         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
66502         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
66503         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66504         strdup-posix.
66506         * modules/strdup (Depends-on): Remove malloc-posix.
66508 2008-09-20  Bruno Haible  <bruno@clisp.org>
66510         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
66511         Wildenhues.
66513 2008-09-20  Bruno Haible  <bruno@clisp.org>
66515         Ensure that wint_t gets defined on IRIX 5.3.
66516         * lib/wchar.in.h (wint_t): Define if not defined by the system.
66517         * lib/wctype.in.h (wint_t): Likewise.
66518         (__wctype_wint_t): Remove type.
66519         (isw*): Use wint_t instead of __wctype_wint_t.
66520         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
66521         * modules/wchar (Files): Add m4/wint_t.m4.
66522         (Makefile.am): Substitute HAVE_WINT_T.
66523         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
66524         * tests/test-wctype.c: Check that wint_t is defined.
66525         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
66526         * doc/posix-headers/wctype.texi: Likewise.
66527         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
66529 2008-09-18  Bruno Haible  <bruno@clisp.org>
66531         * gnulib-tool (func_exit): Update comment.
66533 2008-09-18  Simon Josefsson  <simon@josefsson.org>
66535         * modules/getaddrinfo (Depends-on): Remove strdup, this module
66536         assumes strdup exists and does not depend on strdup to return
66537         ENOMEM on out of memory conditions.
66539 2008-09-18  Bruno Haible  <bruno@clisp.org>
66541         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
66542         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
66543         digits for the exponent.
66545 2008-09-18  Jim Meyering  <meyering@redhat.com>
66546             Bruno Haible  <bruno@clisp.org>
66548         * lib/vasnprintf.c (decimal_point_char): Define also if
66549         NEED_PRINTF_INFINITE_LONG_DOUBLE.
66551 2008-09-16  Bruno Haible  <bruno@clisp.org>
66552         and Eric Blake  <ebb9@byu.net>
66554         vasnprintf: support Irix 5.3
66555         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
66556         that mishandle long double infinity.
66557         Reported by Tom G. Christensen.
66559 2008-09-16  Bruno Haible  <bruno@clisp.org>
66561         * doc/glibc-functions/scandir.texi: Mention the function is missing on
66562         Solaris 9.
66563         * doc/glibc-functions/alphasort.texi: Likewise.
66564         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
66566 2008-09-16  Jim Meyering  <meyering@redhat.com>
66568         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
66569         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
66570         a umask modification leak out of a subshell.  Otherwise, the
66571         opensolaris /bin/sh would be accepted and thus cause unwarranted
66572         failures in the coreutils test suite.
66574 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
66576         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
66577         to succeed.
66579 2008-09-16  Jim Meyering  <meyering@redhat.com>
66581         avoid spurious test failure when library is built without ACL support
66582         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
66583         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
66584         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
66585         * tests/test-copy-acl.sh: Likewise.
66587 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66589         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
66590         based on character occurrence counts.
66592 2008-09-15  Eric Blake  <ebb9@byu.net>
66594         tests: avoid some compiler warnings
66595         * tests/test-memchr.c (main): Pass NULL indirectly.
66596         * tests/test-closein.c (main): Avoid unused variable.
66598 2008-09-15  Bruno Haible  <bruno@clisp.org>
66600         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
66601         are missing on OpenBSD 4.0 individually.
66602         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66604 2008-09-15  Bruno Haible  <bruno@clisp.org>
66606         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
66607         * doc/posix-functions/strerror.texi: Mention also Cygwin.
66608         * doc/posix-functions/perror.texi: Likewise.
66609         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
66610         is missing.
66611         Reported by Eric Blake.
66613         * lib/errno.in.h: Use replacement values >= 2000.
66614         Reported by Eric Blake.
66616 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66618         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
66619         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
66620         limit.
66621         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
66622         compareseq was aborted.
66624 2008-09-14  Bruno Haible  <bruno@clisp.org>
66626         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
66627         yvec_edit_count.
66628         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
66629         (fstrcmp_bounded): Simplify result computation accordingly.
66631 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66633         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
66634         (fstrcmp): Define in terms of fstrcmp_bounded.
66635         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
66636         lower_bound argument.
66637         Return quickly if the result is certainly < lower_bound.
66638         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
66640 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66642         * lib/diffseq.h (EARLY_ABORT): New macro.
66643         (compareseq): Change return type to bool. Return true when EARLY_ABORT
66644         evaluates to true.
66646 2008-09-14  Bruno Haible  <bruno@clisp.org>
66648         * modules/perror-tests: New file.
66649         * tests/test-perror.sh: New file.
66650         * tests/test-perror.c: New file.
66652         New module 'perror'.
66653         * lib/stdio.in.h (perror): New declaration.
66654         * lib/perror.c: New file.
66655         * m4/perror.m4: New file.
66656         * modules/perror: New file.
66657         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
66658         * doc/posix-functions/perror.texi: Mention the perror module.
66659         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
66660         REPLACE_PERROR.
66661         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
66662         REPLACE_PERROR.
66664 2008-09-14  Bruno Haible  <bruno@clisp.org>
66666         * modules/stdio (Makefile.am): Reorder to match the order in
66667         lib/stdio.in.h.
66668         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
66670 2008-09-13  Bruno Haible  <bruno@clisp.org>
66672         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
66674 2008-09-13  Bruno Haible  <bruno@clisp.org>
66676         Extend strerror to cover the added errno values.
66677         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
66678         (rpl_strerror): Provide error messages for the added errno values and
66679         for the WSA* values.
66680         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
66681         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
66682         strerror.
66683         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
66684         * modules/strerror (Depends-on): Add errno.
66685         * doc/posix-functions/strerror.texi: Document the change.
66686         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
66687         and EOVERFLOW.
66689 2008-09-13  Bruno Haible  <bruno@clisp.org>
66691         * modules/EOVERFLOW: Remove file.
66692         * m4/eoverflow.m4: Remove file.
66693         * modules/EOVERFLOW-tests: Remove file.
66694         * tests/test-EOVERFLOW.c: Remove file.
66695         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
66696         * modules/ftell (Depends-on): Likewise.
66697         * modules/getdelim (Depends-on): Likewise.
66698         * modules/getugroups (Depends-on): Likewise.
66699         * modules/poll (Depends-on): Likewise.
66700         * modules/snprintf (Depends-on): Likewise.
66701         * modules/sprintf-posix (Depends-on): Likewise.
66702         * modules/vasnprintf (Depends-on): Likewise.
66703         * modules/vasprintf (Depends-on): Likewise.
66704         * modules/vfprintf-posix (Depends-on): Likewise.
66705         * modules/vsnprintf (Depends-on): Likewise.
66706         * modules/vsprintf-posix (Depends-on): Likewise.
66707         * modules/xvasprintf (Depends-on): Likewise.
66708         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
66709         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
66710         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
66711         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
66712         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
66713         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
66714         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
66715         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
66716         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
66717         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
66718         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
66719         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
66720         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
66721         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
66722         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
66723         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
66724         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
66725         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
66726         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
66727         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
66728         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
66729         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
66730         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
66731         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
66732         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
66733         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
66734         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
66735         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
66736         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
66737         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
66738         * MODULES.html.sh: Remove EOVERFLOW.
66739         * NEWS: Mention the change.
66741 2008-09-13  Bruno Haible  <bruno@clisp.org>
66743         * modules/errno-tests: New file.
66744         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
66746         * lib/errno.in.h: New file.
66747         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
66748         * modules/errno: New file.
66749         * doc/posix-headers/errno.texi: Update documentation.
66750         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
66752 2008-09-13  Bruno Haible  <bruno@clisp.org>
66754         * tests/test-poll.c: Use #if for native Windows, rather than testing
66755         __MSVCRT__.
66757 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66758             Bruno Haible  <bruno@clisp.org>
66760         * lib/glob.c: Don't include <pwd.h> on native Windows.
66761         (WINDOWS32): New macro.
66762         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
66764 2008-09-13  Bruno Haible  <bruno@clisp.org>
66766         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
66767         (ETIMEDOUT): Remove macro.
66768         (glthread_cond_timedwait_multithreaded): New declaration.
66769         (glthread_cond_timedwait): Use it.
66770         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
66771         (glthread_cond_timedwait_multithreaded): New function.
66773 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
66775         * modules/poll-tests: Do not check for io.h.
66776         * tests/test-poll.c: Check for __MSVCRT__ instead.
66778 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
66780         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
66781         * modules/poll-tests: Add inet_pton, stdbool, sockets.
66782         * tests/test-poll.c: Use them.  Use _pipe on Windows.
66784 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
66786         * modules/poll-tests: New.
66787         * tests/test-poll.c: New.
66789 2008-09-12  Eric Blake  <ebb9@byu.net>
66791         frexp: test for NetBSD failure on -0.0
66792         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
66793         not all, bugs from NetBSD 3.0 have been fixed.
66794         * doc/posix-functions/frexp.texi (frexp): Document bug.
66795         Reported by Thomas Klausner.
66797         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
66798         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
66799         literal -0.0.
66800         Reported by Jonathan C. Patschke <jp@centtech.com>.
66802 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66804         * lib/glthread/cond.h: Use dummy implementation also if
66805         USE_WIN32_THREADS.
66807 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66809         * modules/fnmatch-posix (License): Change to LGPLv2+.
66810         * modules/fnmatch-gnu (License): Likewise.
66812 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66814         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
66816 2008-09-11  Jim Meyering  <meyering@redhat.com>
66818         * users.txt: Add gtk-vnc.
66820 2008-09-08  Simon Josefsson  <simon@josefsson.org>
66822         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
66823         rotate amounts.
66825         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
66826         required for 16-bit and 8-bit rotates.
66827         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
66828         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
66829         UINT8_MAX instead of hard-coded constants.
66830         Suggested by Paul Eggert.
66832 2008-09-07  Bruno Haible  <bruno@clisp.org>
66834         * tests/test-striconveh.c (main): Check behaviour when converting from
66835         UTF-7.
66837         Make striconveh work better with stateful encodings.
66838         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
66839         that iconv does not increment the inptr when returning -1/EINVAL.
66841 2008-09-07  Bruno Haible  <bruno@clisp.org>
66843         * build-aux/config.rpath: Update according to libtool-2.2.6.
66844         * build-aux/config.libpath: Likewise.
66846 2008-09-06  Bruno Haible  <bruno@clisp.org>
66848         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
66849         * lib/freadptr.c (freadptr): Likewise.
66850         * lib/freadseek.c (freadptrinc): Likewise.
66851         Reported by Simon Josefsson.
66853 2008-09-06  Bruno Haible  <bruno@clisp.org>
66855         * modules/freadptr (License): Change to LGPLv2+.
66856         * modules/freadseek (License): Likewise.
66857         Suggested by Eric Blake.
66859         * modules/memchr2 (License): Change to LGPLv2+.
66860         Approved by Eric Blake.
66862 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66863             Bruno Haible  <bruno@clisp.org>
66865         Make gnulib-tool work with native 'sed' on AIX.
66866         * gnulib-tool (sed_noop): New variable.
66867         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
66868         func_add_or_update, func_create_testdir): Use it to initialize sed
66869         script variables.
66870         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
66872 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
66873             Bruno Haible  <bruno@clisp.org>
66875         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
66876         also works after #include directives.
66878 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
66880         getdate.y: reject an out-of-range timezone value
66881         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
66882         the range [-24...+24].  When specified with only one or two digits,
66883         * tests/test-getdate.c: Tests for the fix.
66884         * doc/getdate.texi: Document this change.
66886 2008-09-03  Bruno Haible  <bruno@clisp.org>
66888         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
66890 2008-09-02  Simon Josefsson  <simon@josefsson.org>
66892         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
66893         <bruce.korb@gmail.com> with ideas from Ben Pfaff
66894         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
66895         Blake <ebb9@byu.net>.
66897         * tests/test-bitrotate.c: Add more test vectors.
66899 2008-09-02  Eric Blake  <ebb9@byu.net>
66901         vasnprintf-posix: handle large precision via %.*d
66902         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
66903         when handling it ourselves.
66904         * tests/test-vasnprintf-posix.c (test_function): Add test.
66905         * tests/test-snprintf-posix.h (test_function): Likewise.
66906         * tests/test-sprintf-posix.h (test_function): Likewise.
66907         * tests/test-vasprintf-posix.c (test_function): Likewise.
66908         Reported by Alain Guibert.
66910 2008-09-01  Eric Blake  <ebb9@byu.net>
66912         c-stack: make configure-time check more robust
66913         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
66914         successful sigaction call.
66915         Reported by Tom G. Christensen.
66917 2008-09-01  Bruno Haible  <bruno@clisp.org>
66919         New module 'findprog-lgpl'.
66920         * modules/findprog-lgpl: New file.
66921         * lib/findprog-lgpl.c: New file.
66922         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
66923         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
66924         to decide whether to use strdup or xstrdup, concatenated_filename or
66925         xconcatenated_filename.
66927 2008-09-01  Bruno Haible  <bruno@clisp.org>
66929         Split module 'concat-filename' into 'concat-filename' (LGPL) and
66930         'xconcat-filename' (GPL).
66931         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
66932         (License): Change to LGPLv2+.
66933         * modules/xconcat-filename: New file.
66934         * lib/concat-filename.h (concatenated_filename): Change specification.
66935         (xconcatenated_filename): New declaration.
66936         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
66937         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
66938         memory situations.
66939         * lib/xconcat-filename.c: New file.
66940         * NEWS: Mention the change.
66941         * lib/findprog.c: Include concat-filename.h, not filename.h.
66942         (find_in_path): Use xconcatenated_filename instead of
66943         concatenated_filename.
66944         * lib/javacomp.c: Include concat-filename.h, not filename.h.
66945         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
66946         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
66947         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
66948         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
66949         instead of concatenated_filename.
66950         * lib/javaexec.c: Include concat-filename.h, not filename.h.
66951         (execute_java_class): Use xconcatenated_filename instead of
66952         concatenated_filename.
66953         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
66954         * modules/javacomp (Depends-on): Likewise.
66955         * modules/javaexec (Depends-on): Likewise.
66957 2008-09-01  Bruno Haible  <bruno@clisp.org>
66959         Split module 'filename' into 'filename' and 'concat-filename'.
66960         * modules/filename: Keep only lib/filename.h.
66961         (License): Change to LGPLv2+.
66962         * modules/concat-filename: New file, extracted from modules/filename.
66963         * lib/filename.h (concatenated_filename): Remove declaration.
66964         * lib/concat-filename.h: New file, extracted from lib/filename.h.
66965         * lib/concat-filename.c: Include concat-filename.h.
66966         * NEWS: Mention the change.
66968 2008-09-01  Simon Josefsson  <simon@josefsson.org>
66970         * lib/bitrotate.h (rotl8, rotr8): Add.
66972         * modules/bitrotate (configure.ac): Need
66973         AC_REQUIRE([AC_C_INLINE]).
66974         (Description): Mention stdint.h.  Reported by Bruno Haible
66975         <bruno@clisp.org>.
66977         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
66978         Paolo Bonzini <bonzini@gnu.org>.
66980 2008-08-31  Bruno Haible  <bruno@clisp.org>
66982         Assume Solaris specific bi-arch conventions on Solaris systems.
66983         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
66984         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
66985         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
66986         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
66987         like acl_libdirstem.
66988         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
66989         acl_libdirstem.
66990         * NEWS: Mention the change.
66991         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
66993 2008-08-31  Jim Meyering  <meyering@redhat.com>
66995         * lib/strftime.h: Add comments describing the two added arguments.
66997         remove duplicate #include directives
66998         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
66999         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
67001 2008-08-31  Bruno Haible  <bruno@clisp.org>
67003         New module 'sigpipe-die'.
67004         * modules/sigpipe-die: New file.
67005         * lib/sigpipe-die.h: New file.
67006         * lib/sigpipe-die.c: New file.
67007         * MODULES.html.sh (Signal handling): Add sigpipe-die.
67009 2008-08-31  Bruno Haible  <bruno@clisp.org>
67011         Don't override previously installed signal handlers.
67012         * lib/fatal-signal.c (saved_sigactions): New variable.
67013         (uninstall_handlers): Reset the signal to the saved handler, not
67014         to SIG_DFL (except when ignored).
67015         (install_handlers): Save the previous handlers.
67017 2008-08-30  Bruno Haible  <bruno@clisp.org>
67019         * gnulib-tool (func_reset_sigpipe): New function.
67020         (func_get_automake_snippet, func_modules_transitive_closure,
67021         func_import): Invoke it before a join command that reads from stdin,
67022         to avoid "echo: write error: Broken pipe" error messages on stderr.
67023         Reported by Sam Steingold <sds@gnu.org>.
67025 2008-08-30  Bruno Haible  <bruno@clisp.org>
67027         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
67028         Code copied from m4/open.m4.
67029         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
67030         access and the filename ends in a slash. Code copied from lib/open.c.
67031         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
67032         * tests/test-fopen.c (main): Check against bug with trailing slash.
67034 2008-08-29  Bruno Haible  <bruno@clisp.org>
67036         Avoid some "gcc -pedantic" warnings.
67037         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
67038         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
67039         * lib/dirent.in.h: Likewise.
67040         * lib/fcntl.in.h: Likewise.
67041         * lib/float.in.h: Likewise.
67042         * lib/iconv.in.h: Likewise.
67043         * lib/inttypes.in.h: Likewise.
67044         * lib/locale.in.h: Likewise.
67045         * lib/math.in.h: Likewise.
67046         * lib/netinet_in.in.h: Likewise.
67047         * lib/search.in.h: Likewise.
67048         * lib/signal.in.h: Likewise.
67049         * lib/stdarg.in.h: Likewise.
67050         * lib/stdint.in.h: Likewise.
67051         * lib/stdio.in.h: Likewise.
67052         * lib/stdlib.in.h: Likewise.
67053         * lib/string.in.h: Likewise.
67054         * lib/strings.in.h: Likewise.
67055         * lib/sys_select.in.h: Likewise.
67056         * lib/sys_socket.in.h: Likewise.
67057         * lib/sys_stat.in.h: Likewise.
67058         * lib/sys_time.in.h: Likewise.
67059         * lib/sysexits.in.h: Likewise.
67060         * lib/time.in.h: Likewise.
67061         * lib/unistd.in.h: Likewise.
67062         * lib/wchar.in.h: Likewise.
67063         * lib/wctype.in.h: Likewise.
67064         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
67065         * modules/fchdir (Makefile.am): Likewise.
67066         * modules/fcntl (Makefile.am): Likewise.
67067         * modules/float (Makefile.am): Likewise.
67068         * modules/iconv_open (Makefile.am): Likewise.
67069         * modules/inttypes (Makefile.am): Likewise.
67070         * modules/locale (Makefile.am): Likewise.
67071         * modules/math (Makefile.am): Likewise.
67072         * modules/netinet_in (Makefile.am): Likewise.
67073         * modules/search (Makefile.am): Likewise.
67074         * modules/signal (Makefile.am): Likewise.
67075         * modules/stdarg (Makefile.am): Likewise.
67076         * modules/stdint (Makefile.am): Likewise.
67077         * modules/stdio (Makefile.am): Likewise.
67078         * modules/stdlib (Makefile.am): Likewise.
67079         * modules/string (Makefile.am): Likewise.
67080         * modules/strings (Makefile.am): Likewise.
67081         * modules/sys_select (Makefile.am): Likewise.
67082         * modules/sys_socket (Makefile.am): Likewise.
67083         * modules/sys_stat (Makefile.am): Likewise.
67084         * modules/sys_time (Makefile.am): Likewise.
67085         * modules/sysexits (Makefile.am): Likewise.
67086         * modules/time (Makefile.am): Likewise.
67087         * modules/unistd (Makefile.am): Likewise.
67088         * modules/wchar (Makefile.am): Likewise.
67089         * modules/wctype (Makefile.am): Likewise.
67090         Reported by Reuben Thomas <rrt@sc3d.org>.
67092 2008-08-29  Bruno Haible  <bruno@clisp.org>
67094         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
67095         any more.
67097 2008-08-29  Simon Josefsson  <simon@josefsson.org>
67099         * MODULES.html.sh (Misc): Add bitrotate.
67101         * modules/bitrotate: New file.
67103         * lib/bitrotate.h: New file.
67105         * modules/bitrotate-tests: New file.
67107         * tests/test-bitrotate.c: New file.
67109         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
67110         on the bitrotate module.
67112         * lib/arctwo.c: Use new bitrotate module.
67114 2008-08-29  Jim Meyering  <meyering@redhat.com>
67116         bootstrap: merge changes from coreutils
67117         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
67118         of copied files.  Remove a kludge, now that this is fixed.
67119         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
67120         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
67121         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
67123 2008-08-29  Bruno Haible  <bruno@clisp.org>
67125         * MODULES.html.sh: Remove --cvs-urls option.
67127 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
67129         maint.mk: adjust to file name change
67130         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
67132 2008-08-28  Jim Meyering  <meyering@redhat.com>
67134         * modules/getndelim2 (License): Relicense to LGPLv2+.
67135         Approved by Richard Stallman for the version of 1995, and by
67136         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
67138 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
67140         * lib/getdelim.c (flockfile, funlockfile): Make all of them
67141         dummy if one is not available.  Do not touch them if
67142         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
67143         (getc_maybe_unlocked): New.
67144         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
67146 2008-08-26  Eric Blake  <ebb9@byu.net>
67148         doc/INSTALL: resync from autoconf
67149         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
67150         (INSTALL_PRELUDE): Delete; this is done more efficiently by
67151         moving...
67152         * install.texi [!autoconf]: ...here.  Resync from autoconf.
67153         * INSTALL: Regenerate.
67154         * INSTALL.ISO: New file.
67155         * INSTALL.UTF-8: Likewise.
67157 2008-08-26  Jim Meyering  <meyering@redhat.com>
67159         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
67160         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
67161         these definitions conditional, so that they may be overridden, too.
67163 2008-08-26  Bruno Haible  <bruno@clisp.org>
67165         Generate INSTALL file variants with prettier quotes.
67166         * doc/Makefile (INSTALL_PRELUDE): New macro.
67167         (INSTALL): Use it.
67168         (INSTALL.ISO, INSTALL.UTF-8): New rules.
67170 2008-08-26  Bruno Haible  <bruno@clisp.org>
67172         Run makeinfo in an English locale.
67173         * doc/Makefile (MAKEINFO): New variable.
67175 2008-08-26  Bruno Haible  <bruno@clisp.org>
67177         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
67178         Suggested by Eric Blake.
67180 2008-08-25  Bruno Haible  <bruno@clisp.org>
67182         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
67184 2008-08-25  Eric Blake  <ebb9@byu.net>
67186         c-stack: test that stack overflow can be caught
67187         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
67188         that platform allows handling stack overflow; at least OS/2 EMX
67189         has sigaltstack, but crashes before transferring control to
67190         handler on stack overflow.
67191         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
67192         check for HAVE_STACK_OVERFLOW_HANDLING.
67193         Reported by Elbert Pol.
67195 2008-08-25  Bruno Haible  <bruno@clisp.org>
67197         * doc/posix-functions/strftime.texi: Fix description of strftime
67198         module.
67200 2008-08-24  Bruno Haible  <bruno@clisp.org>
67202         * tests/uniwidth/test-uc_width2.c: New file.
67203         * tests/uniwidth/test-uc_width2.sh: New file.
67204         * modules/uniwidth/width-tests (Files): Add the new files.
67205         (TESTS): Add uniwidth/test-uc_width2.sh.
67206         (TESTS_ENVIRONMENT): New variable.
67207         (check_PROGRAMS): Add test-uc_width2.
67208         (test_uc_width2_SOURCES): New variable.
67210         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
67211         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
67212         not 0x00AB.
67213         Reported by Alexander V. Lukyanov <lav@netis.ru>.
67215 2008-08-22  Eric Blake  <ebb9@byu.net>
67217         test-lock, test-tls: mention why a test is skipped
67218         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
67219         skipped.
67220         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
67222         count-one-bits: relax license
67223         * modules/count-one-bits (License): Relicense to LGPLv2+.
67224         Suggested by Ludovic Courtès, approved by Ben Pfaff.
67226 2008-08-22  Andreas Schwab  <schwab@suse.de>
67228         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
67229         Remove spurious space in assignment.
67231 2008-08-21  Simon Josefsson  <simon@josefsson.org>
67233         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
67234         Paul Eggert <eggert@CS.UCLA.EDU>.
67236 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
67238         * modules/gettext: Add m4/threadlib.m4.
67240 2008-08-19  Eric Blake  <ebb9@byu.net>
67242         test-c-stack: fix compilation failure on FreeBSD 5.0
67243         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
67244         headers before <sys/resource.h>.
67245         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
67246         the bug.
67247         Reported by Nelson H. F. Beebe.
67249         strverscmp: migrate from "strverscmp.h" to <string.h>
67250         * modules/string (Makefile.am): Add new hooks.
67251         * modules/strverscmp (Files): Remove strverscmp.h.
67252         (Depends-on): Add string.
67253         (configure.ac): Add indicator.
67254         (Include): Mention new header.
67255         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
67256         defaults.
67257         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
67258         results.
67259         * lib/strverscmp.h: Delete.
67260         * lib/string.in.h (strverscmp): Provide declaration, when needed.
67261         * tests/test-strverscmp.c (includes): Adjust client.
67262         * lib/check-version.c (includes): Likewise.
67263         * NEWS: Document the change.
67265         strverscmp: add unit test
67266         * modules/strverscmp-tests: New file.
67267         * tests/test-strverscmp.c: Likewise.
67269 2008-08-19  Simon Josefsson  <simon@josefsson.org>
67271         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
67272         regarding Windows crypto stuff, from Mono.
67274 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
67276         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
67277         if present, for intel RND.  Return error on failures.
67279 2008-08-18  Ben Pfaff  <blp@gnu.org>
67281         gitlog-to-changelog: give better diagnostic for failed pipe-open
67282         * build-aux/gitlog-to-changelog: Improve error message: suggest
67283         that the version of Git may be too old.
67285 2008-08-18  Simon Josefsson  <simon@josefsson.org>
67287         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
67288         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
67290 2008-08-18  Bruno Haible  <bruno@clisp.org>
67292         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
67293         pthread_in_use().
67295 2008-08-18  Bruno Haible  <bruno@clisp.org>
67297         * lib/glthread/threadlib.c: Include <pthread.h>.
67299 2008-08-18  Bruno Haible  <bruno@clisp.org>
67301         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
67302         glthread_recursive_lock_* macros.
67303         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
67304         Fix syntax error.
67306 2008-08-18  Bruno Haible  <bruno@clisp.org>
67308         * lib/glthread/thread.c: Avoid forcing a context switch right after
67309         thread creation.
67311 2008-08-17  Bruno Haible  <bruno@clisp.org>
67313         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
67314         * lib/glthread/thread.h: Provide Win32 specific implementation.
67315         * modules/thread (Files): Add lib/glthread/thread.c.
67316         (Depends-on): Add lock.
67317         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
67319 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67321         New module 'yield'.
67322         * modules/yield: New file.
67323         * lib/glthread/yield.h: New file.
67324         * m4/yield.m4: New file.
67325         * MODULES.html.sh (Multithreading): Add yield.
67327 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67329         New module 'thread'.
67330         * modules/thread: New file.
67331         * lib/glthread/thread.h: New file.
67332         * m4/thread.m4: New file.
67333         * MODULES.html.sh (Multithreading): Add thread.
67335 2008-08-17  Bruno Haible  <bruno@clisp.org>
67337         * lib/glthread/lock.h: Include <stdlib.h> always.
67338         * lib/glthread/tls.h: Likewise.
67339         * lib/glthread/cond.h: Likewise.
67341 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67343         New module 'cond'.
67344         * modules/cond: New file.
67345         * lib/glthread/cond.h: New file.
67346         * lib/glthread/cond.c: New file.
67347         * m4/cond.m4: New file.
67348         * MODULES.html.sh (Multithreading): Add cond.
67350 2008-08-16  Eric Blake  <ebb9@byu.net>
67352         c-stack: fix regression on Irix 5.3 from 2008-06-21
67353         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
67354         sa_sigaction...
67355         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
67356         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
67357         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
67358         * modules/signal (Makefile.am): Use the value.
67359         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
67360         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
67361         * doc/posix-headers/signal.texi (signal.h): Document this
67362         portability issue.
67363         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
67364         Reported by Tom G. Christensen.
67366 2008-08-17  Bruno Haible  <bruno@clisp.org>
67368         New module 'threadlib'.
67369         * modules/threadlib: New file.
67370         * lib/glthread/threadlib.c: New file, extracted from
67371         lib/glthread/lock.c.
67372         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
67373         functions.
67374         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
67375         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
67376         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
67377         macros.
67378         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
67379         (gl_DISABLE_THREADS): Remove macro.
67380         * modules/lock (Files): Remove build-aux/config.rpath.
67381         (Depends-on): Remove havelib. Add threadlib.
67382         (configure.ac-early): Remove section.
67383         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
67384         * modules/tls (Depends-on): Remove lock. Add threadlib.
67385         (Link): New section, copied from threadlib.
67386         * MODULES.html.sh (Multithreading): Add threadlib.
67388 2008-08-14  Bruno Haible  <bruno@clisp.org>
67390         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
67391         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
67392         glthread_rwlock_unlock, glthread_rwlock_destroy,
67393         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
67394         glthread_recursive_lock_destroy): Define as macros always.
67395         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
67396         glthread_lock_lock.
67397         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
67398         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
67399         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
67400         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
67401         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
67402         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
67403         (glthread_recursive_lock_lock_func): Renamed from
67404         glthread_recursive_lock_lock.
67405         (glthread_recursive_lock_unlock_func): Renamed from
67406         glthread_recursive_lock_unlock.
67407         (glthread_recursive_lock_destroy_func): Renamed from
67408         glthread_recursive_lock_destroy.
67410 2008-08-14  Bruno Haible  <bruno@clisp.org>
67412         * lib/glthread/lock.h: Renamed from lib/lock.h.
67413         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
67414         * lib/glthread/tls.h: Renamed from lib/tls.h.
67415         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
67416         * lib/fstrcmp.c: Update includes.
67417         * lib/strsignal.c: Update includes.
67418         * modules/lock (Files, Makefile.am): Update.
67419         (Include): Change to "glthread/lock.h".
67420         * modules/tls (Files, Makefile.am): Update.
67421         (Include): Change to "glthread/tls.h".
67422         * tests/test-lock.c: Update includes.
67423         * tests/test-tls.c: Update includes.
67424         * NEWS: Mention the renamed header files.
67426 2008-08-11  Jim Meyering  <meyering@redhat.com>
67428         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
67430 2008-08-11  Eric Blake  <ebb9@byu.net>
67432         test-c-stack: avoid C99-ism
67433         * tests/test-c-stack.c (main): Fix whitespace, move declaration
67434         before statement.
67435         Reported by Alain Guibert.
67437 2008-08-10  Jim Meyering  <meyering@redhat.com>
67439         ensure that return value of uinttostr et al are not ignored
67440         * lib/inttostr.h (__GNUC_PREREQ): Define.
67441         (__attribute_warn_unused_result__): Define.
67442         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
67444 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
67446         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
67447         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
67449 2008-08-07  Jim Meyering  <meyering@redhat.com>
67451         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
67453         * modules/mkstemp (License): Relicense under LGPLv2+.
67454         * modules/tempname (License): Likewise.
67456 2008-08-06  Bruno Haible  <bruno@clisp.org>
67458         * lib/poll.c (poll): Further micro-optimization.
67460 2008-08-06  Jim Meyering  <meyering@redhat.com>
67462         inet_pton.c: use locale-independent tolower
67463         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
67464         (inet_pton6): Use c_tolower rather than tolower.
67465         * modules/inet_pton (Depends-on): Add c-ctype.
67467 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
67469         * lib/poll.c (poll): Avoid division when timeout is 0, cache
67470         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
67472 2008-08-06  Jim Meyering  <meyering@redhat.com>
67474         * modules/inet_pton (License): Relicense under LGPLv2+.
67476 2008-08-03  Bruno Haible  <bruno@clisp.org>
67478         Additional non-aborting API for lock and tls.
67479         * lib/lock.h: Include <errno.h>.
67480         (glthread_lock_init): New macro/function.
67481         (gl_lock_init): Define as wrapper around glthread_lock_init.
67482         (glthread_lock_lock): New macro/function.
67483         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
67484         (glthread_lock_unlock): New macro/function.
67485         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
67486         (glthread_lock_destroy): New macro/function.
67487         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
67488         (glthread_rwlock_init): New macro/function.
67489         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
67490         (glthread_rwlock_rdlock): New macro/function.
67491         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
67492         (glthread_rwlock_wrlock): New macro/function.
67493         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
67494         (glthread_rwlock_unlock): New macro/function.
67495         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
67496         (glthread_rwlock_destroy): New macro/function.
67497         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
67498         (glthread_recursive_lock_init): New macro/function.
67499         (gl_recursive_lock_init): Define as wrapper around
67500         glthread_recursive_lock_init.
67501         (glthread_recursive_lock_lock): New macro/function.
67502         (gl_recursive_lock_lock): Define as wrapper around
67503         glthread_recursive_lock_lock.
67504         (glthread_recursive_lock_unlock): New macro/function.
67505         (gl_recursive_lock_unlock): Define as wrapper around
67506         glthread_recursive_lock_unlock.
67507         (glthread_recursive_lock_destroy): New macro/function.
67508         (gl_recursive_lock_destroy): Define as wrapper around
67509         glthread_recursive_lock_destroy.
67510         (glthread_once): New macro/function.
67511         (gl_once): Define as wrapper around glthread_once.
67512         Update function declarations.
67513         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
67514         glthread_rwlock_init. Return error code.
67515         (glthread_rwlock_rdlock_multithreaded): Renamed from
67516         glthread_rwlock_rdlock. Return error code.
67517         (glthread_rwlock_wrlock_multithreaded): Renamed from
67518         glthread_rwlock_wrlock. Return error code.
67519         (glthread_rwlock_unlock_multithreaded): Renamed from
67520         glthread_rwlock_unlock. Return error code.
67521         (glthread_rwlock_destroy_multithreaded): Renamed from
67522         glthread_rwlock_destroy. Return error code.
67523         (glthread_recursive_lock_init_multithreaded): Renamed from
67524         glthread_recursive_lock_init. Return error code.
67525         (glthread_recursive_lock_lock_multithreaded): Renamed from
67526         glthread_recursive_lock_lock. Return error code.
67527         (glthread_recursive_lock_unlock_multithreaded): Renamed from
67528         glthread_recursive_lock_unlock. Return error code.
67529         (glthread_recursive_lock_destroy_multithreaded): Renamed from
67530         glthread_recursive_lock_destroy. Return error code.
67531         (glthread_once_call): Make static.
67532         (glthread_once_multithreaded): Renamed from glthread_once.
67533         * lib/tls.h: Include <errno.h>.
67534         (glthread_tls_key_init): New macro/function.
67535         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
67536         (glthread_tls_set): New macro/function.
67537         (gl_tls_set): Define as wrapper around glthread_tls_set.
67538         (glthread_tls_key_destroy): New macro/function.
67539         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
67540         Update function declarations.
67541         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
67542         glthread_tls_get.
67543         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
67545 2008-08-04  Eric Blake  <ebb9@byu.net>
67547         gnumakefile: use space, not TAB, outside of targets
67548         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
67550 2008-08-02  Jim Meyering  <meyering@redhat.com>
67552         getdate.y: avoid locale-dependent date parsing failure
67553         In Turkish locales, getdate would fail to recognize keywords
67554         containing a lowercase "i".  The solution is not to rely on
67555         locale-sensitive case-conversion.
67556         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
67557         (lookup_word): Use c_toupper in place of toupper.
67558         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
67559         Reported by Vefa Bicakci <bicave@superonline.com> in
67560         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
67561         * modules/getdate (Depends-on): Add c-ctype.
67563 2008-08-02  Bruno Haible  <bruno@clisp.org>
67565         * gnulib-tool (func_import): When updating or creating a .gitignore
67566         file, prepend each added line with a slash, and ignore leading slashes
67567         from the existing lines.
67568         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
67570 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67572         Portability fix for GNU make 3.79.1.
67573         * top/GNUmakefile: Avoid 'else COND', which older GNU make
67574         versions do not understand.
67576 2008-08-01  Bruno Haible  <bruno@clisp.org>
67578         Work around bug of HP-UX 10.20 cc with -0.0 literal.
67579         * tests/test-isnanf.h (zero): New variable.
67580         (main): Avoid literal -0.0f.
67581         * tests/test-isnand.h (zero): New variable.
67582         (main): Avoid literal -0.0.
67583         * tests/test-isnanl.h (zero): New variable.
67584         (main): Avoid literal -0.0L.
67585         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
67586         (test_float, test_double, test_long_double): Avoid literals -0.0f,
67587         -0.0, -0.0L.
67588         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
67589         (test_signbitd): Avoid literal -0.0.
67590         (test_signbitl): Avoid literal -0.0L.
67591         * tests/test-ceilf1.c (zero): New variable.
67592         (main): Avoid literal -0.0f.
67593         * tests/test-ceill.c (zero): New variable.
67594         (main): Avoid literal -0.0L.
67595         * tests/test-floorf1.c (zero): New variable.
67596         (main): Avoid literal -0.0f.
67597         * tests/test-floorl.c (zero): New variable.
67598         (main): Avoid literal -0.0L.
67599         * tests/test-roundf1.c (zero): New variable.
67600         (main): Avoid literal -0.0f.
67601         * tests/test-round1.c (zero): New variable.
67602         (main): Avoid literal -0.0.
67603         * tests/test-roundl.c (zero): New variable.
67604         (main): Avoid literal -0.0L.
67605         * tests/test-truncf1.c (zero): New variable.
67606         (main): Avoid literal -0.0f.
67607         * tests/test-trunc1.c (zero): New variable.
67608         (main): Avoid literal -0.0.
67609         * tests/test-truncl.c (zero): New variable.
67610         (main): Avoid literal -0.0L.
67611         * tests/test-frexp.c (zero): New variable.
67612         (main): Avoid literal -0.0.
67613         * tests/test-frexpl.c (zero): New variable.
67614         (main): Avoid literal -0.0L.
67615         * tests/test-ldexpl.c (zero): New variable.
67616         (main): Avoid literal -0.0L.
67617         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
67618         (zerod, zerol): New variables.
67619         (test_function): Avoid literals -0.0, -0.0L.
67620         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
67621         (zerod, zerol): New variables.
67622         (test_function): Avoid literals -0.0, -0.0L.
67623         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
67624         (zerod, zerol): New variables.
67625         (test_function): Avoid literals -0.0, -0.0L.
67626         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
67627         (zerod, zerol): New variables.
67628         (test_function): Avoid literals -0.0, -0.0L.
67629         * tests/test-strtod.c (zero): New variable.
67630         (main): Avoid literal -0.0.
67631         Reported by Jonathan C. Patschke <jp@centtech.com>.
67633 2008-07-31  Jim Meyering  <meyering@redhat.com>
67635         sha256.h: correct definition of SHA224_DIGEST_SIZE
67636         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
67637         Reported by Paulie Pena IV <paulie4@gmail.com>.
67638         Define as 224 / 8, rather than as a literal.
67639         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
67640         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
67641         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
67643 2008-07-31  Bruno Haible  <bruno@clisp.org>
67645         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
67646         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
67647         Reported by Jonathan Patschke <jp@centtech.com>.
67649 2008-07-31  Bruno Haible  <bruno@clisp.org>
67651         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
67652         Reported by Paolo Bonzini <bonzini@gnu.org>.
67654 2008-07-30  Eric Blake  <ebb9@byu.net>
67656         test-strtod: allow compilation without -lm
67657         * tests/test-strtod.c (main): Avoid link dependence on fabs.
67658         Reported by Dennis Clarke <blastwave@gmail.com>.
67660 2008-07-28  Jim Meyering  <meyering@redhat.com>
67662         bootstrap: work also when there are no .po files in po/
67663         * build-aux/bootstrap (update_po_files): Complete the change
67664         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
67666 2008-07-27  Jim Meyering  <meyering@redhat.com>
67668         * users.txt: Add zile.
67670 2008-07-26  Ben Pfaff  <blp@gnu.org>
67672         Add missing dependencies on new m4/exponent[fdl].m4 files.
67673         * modules/isnanf-nolibm: Add m4/exponentf.m4.
67674         * modules/isnand-nolibm: Add m4/exponentd.m4.
67675         * modules/isnanl-nolibm: Add m4/exponentl.m4.
67676         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
67677         m4/isnan[fdl].m4, because the macros actually used moved.
67678         Reported by Jim Meyering.
67680 2008-07-14  Ben Pfaff  <blp@gnu.org>
67682         Add isinf module.
67683         * lib/isinf.c: New file.
67684         * lib/math.in.h: Define isinf macro if we have decided to replace
67685         it.
67686         * m4/isinf.m4: New file.
67687         * m4/math_h.m4: Initialize and substitute variables for isinf
67688         module.
67689         * modules/isinf: New file.
67690         * modules/isinf-tests: New file.
67691         * modules/math: Add substitutions for new module.
67692         * tests/test-isinf.c: New file.
67693         * doc/posix-functions/isinf.texi: Mention new module.
67694         * MODULES.html.sh: Mention new module.
67696 2008-07-14  Ben Pfaff  <blp@gnu.org>
67698         Factor out some macros for use by additional modules.
67699         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
67700         exponentf.m4.
67701         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
67702         exponentd.m4.
67703         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
67704         file exponentl.m4.
67705         * m4/exponentf.m4: New file.
67706         * m4/exponentd.m4: New file.
67707         * m4/exponentl.m4: New file.
67708         * modules/isnanf: Use new file m4/exponentf.m4.
67709         * modules/isnand: Use new file m4/exponentd.m4.
67710         * modules/isnanl: Use new file m4/exponentl.m4.
67712 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
67714         mktime.c: normalize tp->tm_isdst value to -1/0/1.
67715         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
67716         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
67717         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
67719         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
67720         readlink on platforms without PATH_MAX.
67722 2008-07-21  Eric Blake  <ebb9@byu.net>
67724         Warn, not fail, on stale version.
67725         * top/GNUmakefile (_curr-ver): Tone down previous patch.
67727         Don't allow installation with stale devel version number.
67728         * top/GNUmakefile (_is-install-target): New macro.
67729         (_curr-ver): Forbid installation with stale version number.
67731 2008-07-20  Bruno Haible  <bruno@clisp.org>
67733         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
67734         TESTS_ENVIRONMENT.
67735         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
67737 2008-07-20  Bruno Haible  <bruno@clisp.org>
67739         * lib/c-stack.h (c_stack_action): Add documentation.
67740         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
67742 2008-07-20  Bruno Haible  <bruno@clisp.org>
67744         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
67745         * modules/readlink (License): Likewise.
67747 2008-07-17  Eric Blake  <ebb9@byu.net>
67749         * modules/c-stack (Link): Fix typo.
67751         Make c-stack use libsigsegv, when available.
67752         * modules/c-stack (Depends-on): Add libsigsegv.
67753         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
67754         needed.
67755         * lib/c-stack.c (SIGSTKSZ): Define fallback.
67756         (segv_handler, overflow_handler, c_stack_action)
67757         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
67758         implementation when libsigsegv is available, but only when using
67759         the library is necessary.
67760         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
67761         comment, explaining why XSI check fails on Linux.
67762         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
67763         * tests/test-c-stack2.sh: Tweak skip message.
67764         * NEWS: Document new link-time requirements.
67766 2008-07-16  Eric Blake  <ebb9@byu.net>
67768         c-stack: Expose false positives when not using libsigsegv.
67769         * modules/c-stack-tests (Files): Expand test.
67770         * tests/test-c-stack.c (main): Add means to conditionally trigger
67771         non-overflow SIGSEGV.
67772         * tests/test-c-stack2.sh: New file.
67774 2008-07-14  Bruno Haible  <bruno@clisp.org>
67776         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
67777         Reported by Eric Blake.
67779 2008-07-14  Sam Steingold  <sds@gnu.org>
67780             Bruno Haible  <bruno@clisp.org>
67782         New module libsigsegv.
67783         * modules/libsigsegv: New file.
67784         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
67785         modifications.
67786         * MODULES.html.sh (Signal handling): New section.
67788 2008-07-14  Bruno Haible  <bruno@clisp.org>
67790         * modules/unictype/ctype-* (Description): Add the word "function".
67791         Improves the resulting doc in MODULES.html.
67793 2008-07-12  Ben Pfaff  <blp@gnu.org>
67795         Add longlong module.
67796         * modules/longlong: New file.
67798 2008-07-12  Bruno Haible  <bruno@clisp.org>
67800         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
67801         to empty.
67803 2008-07-10  Ben Pfaff  <blp@gnu.org>
67805         Add isnan module.
67806         * doc/posix-functions/isnan.texi: Mention new module.
67807         * lib/math.in.h: Define isnan macro if we have decided to replace
67808         it.
67809         * m4/isnan.m4: New file.
67810         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
67811         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
67812         also.
67813         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
67814         redundancy.
67815         * m4/math_h.m4: Initialize and substitute variables for isnan
67816         module.
67817         * modules/isnan: New file.
67818         * modules/isnan-tests: New file.
67819         * modules/math: Add substitutions for new module.
67820         * tests/test-isnan.c: New file.
67821         * MODULES.html.sh: Mention new module.
67823 2008-07-10  Ben Pfaff  <blp@gnu.org>
67825         Add isnanf module.
67826         * lib/isnanf.m4: New file.
67827         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
67828         (gl_HAVE_ISNANF_IN_LIBM): New macro.
67829         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
67830         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
67831         * modules/isnanf: New file.
67832         * modules/isnanf-tests: New file.
67833         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
67834         files.
67835         * tests/test-isnanf-nolibm.c: factored most of its contents into
67836         new file tests/test-isnanf.h.
67837         * tests/test-isnanf.h: New file.
67838         * tests/test-isnanf.c: New file.
67839         * MODULES.html.sh: Mention new module.
67840         * doc/glibc-functions/isnanf.texi: Mention new module.
67842 2008-07-10  Ben Pfaff  <blp@gnu.org>
67844         Add isnand module.
67845         * lib/isnand.h: New file.
67846         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
67847         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
67848         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
67849         functionality also.
67850         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
67851         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
67852         (gl_HAVE_ISNAND_IN_LIBM): New macro.
67853         * modules/isnand: New file.
67854         * modules/isnand-tests: New file.
67855         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
67856         files.
67857         * tests/test-isnand-nolibm.c: factored most of its contents into
67858         new file tests/test-isnand.h.
67859         * tests/test-isnand.h: New file.
67860         * tests/test-isnand.c: New file.
67861         * MODULES.html.sh: Mention new module.
67863 2008-07-10  Ben Pfaff  <blp@gnu.org>
67865         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
67866         * lib/isnand.h: Rename lib/isnand-nolibm.h.
67867         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
67868         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
67869         * modules/isnanf-nolibm: Update references to renamed files.
67870         * modules/isnand-nolibm: Likewise.
67871         * modules/isnanf-nolibm-tests: Likewise.
67872         * modules/isnand-nolibm-tests: Likewise.
67873         * lib/frexp.c: Likewise.
67874         * lib/isfinite.c: Likewise.
67875         * lib/signbitd.c: Likewise.
67876         * lib/signbitf.c: Likewise.
67877         * lib/vasnprintf.c: Likewise.
67878         * tests/test-ceilf1.c: Likewise.
67879         * tests/test-ceilf2.c: Likewise.
67880         * tests/test-floorf1.c: Likewise.
67881         * tests/test-floorf2.c: Likewise.
67882         * tests/test-frexp.c: Likewise.
67883         * tests/test-round1.c: Likewise.
67884         * tests/test-round2.c: Likewise.
67885         * tests/test-roundf1.c: Likewise.
67886         * tests/test-strtod.c: Likewise.
67887         * tests/test-trunc1.c: Likewise.
67888         * tests/test-trunc2.c: Likewise.
67889         * tests/test-truncf1.c: Likewise.
67890         * tests/test-truncf2.c: Likewise.
67891         * NEWS: Mention the renamed header files.
67893 2008-07-11  Jim Meyering  <meyering@redhat.com>
67895         vc-list-files: make the last-resort awk code more portable
67896         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
67897         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
67898         does not support it.
67900 2008-07-10  Eric Blake  <ebb9@byu.net>
67902         Work with tar's bootstrap.
67903         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
67904         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
67905         an m4 comment.
67907 2008-07-09  Jim Meyering  <meyering@redhat.com>
67909         posix-shell.m4: fix typo that made this test malfunction
67910         * m4/posix-shell.m4: Remove capitalization in variable name.
67912 2008-07-08  Bruno Haible  <bruno@clisp.org>
67914         * m4/onceonly.m4: Update comments.
67915         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67917 2008-07-04  Jim Meyering  <meyering@redhat.com>
67919         * users.txt: Add vc-dwim.
67920         (bison, coreutils): Use the gitweb URL.
67922 2008-07-03  Jim Meyering  <meyering@redhat.com>
67924         * users.txt: Add libffcall.  From Sam Steingold.
67926 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
67928         getdate.y: do not ignore TZ with relative day, month or year offset
67929         * lib/getdate.y (get_date): Move the tz-handling block to follow the
67930         relative-date-handling, since otherwise, the latter would clobber the
67931         sole output (an updated Start value) of the tz-handling block.
67932         * tests/test-getdate.c: Tests for the fix
67934 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67936         Recognize 'foo_LIBRARIES += libgnu.a'.
67937         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
67938         makefile snippet has already specified an installation location,
67939         also using '+='.
67941 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
67943         getdate.y: factor out common actions
67944         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
67945         Use them in place of open-coded actions.
67947 2008-07-01  Simon Josefsson  <simon@josefsson.org>
67949         Add self-test for getdate module.
67950         * modules/getdate-tests: New file.
67951         * tests/test-getdate.c: New file.
67953 2008-06-29  Bruno Haible  <bruno@clisp.org>
67955         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
67956         .gitignore.
67957         Reported by Sylvain Beucler <beuc@beuc.net>.
67959 2008-06-29  Bruno Haible  <bruno@clisp.org>
67961         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
67962         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
67964 2008-06-29  Bruno Haible  <bruno@clisp.org>
67966         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
67967         EXTRA_DIST.
67968         Reported by Sylvain Beucler <beuc@beuc.net>.
67970 2008-06-26  Jim Meyering  <meyering@redhat.com>
67972         make several modules depend on the "open" module
67973         This provides slightly increased consistency when opening-for-write
67974         the name of a non-directory spelled with a trailing slash.
67975         * modules/chdir-safer: Likewise.
67976         * modules/chown: Likewise.
67977         * modules/clean-temp: Likewise.
67978         * modules/copy-file: Likewise.
67979         * modules/fchdir: Likewise.
67980         * modules/fcntl-safer: Likewise.
67981         * modules/pipe: Likewise.
67982         * modules/utime: Likewise.
67983         Prompted by Eric Blake and Bruno Haible.
67985 2008-06-24  Andreas Schwab  <schwab@suse.de>
67987         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
67988         literals can be used as initializers for global variables.
67990 2008-06-23  Eric Blake  <ebb9@byu.net>
67992         Make gnulib-cache.m4 easier to diff.
67993         * gnulib-tool (func_import): Allow newlines when reading cached
67994         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
67996 2008-06-23  Bruno Haible  <bruno@clisp.org>
67998         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
67999         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
68000         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
68001         m4/signalblocking.m4.
68002         (gl_PREREQ_SIGACTION): Don't invoke it.
68003         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
68004         gl_PREREQ_SIG_HANDLER_H.
68005         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
68006         Don't check for sigaction here.
68008 2008-06-23  Bruno Haible  <bruno@clisp.org>
68010         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
68011         (install_handlers): Don't set the SA_RESETHAND flag.
68013 2008-06-23  Bruno Haible  <bruno@clisp.org>
68015         * m4/sigaction.m4: Comment fixes.
68016         * lib/signal.in.h: Likewise.
68018 2008-06-23  Eric Blake  <ebb9@byu.net>
68020         Fix typo.
68021         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
68023         Avoid SA_ namespace.
68024         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
68025         Reported by Ralf Wildenhues.
68027         Avoid test failure due to SA_RESTORER.
68028         * tests/test-sigaction.c (SA_MASK): New macro.
68029         (main): Avoid failing due to extension flags being set.
68030         Reported by Jim Meyering.
68032         Revert use of sig-handler.h in sigprocmask.c.
68033         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
68034         it requires the existence of struct sigaction.
68035         * lib/sigprocmask.c (handler_t): Restore typedef.
68036         (rpl_signal, old_handlers): Use local type.
68038 2008-06-22  Bruno Haible  <bruno@clisp.org>
68040         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
68041         conditionally.
68042         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68044 2008-06-22  Bruno Haible  <bruno@clisp.org>
68046         * doc/posix-functions/siginterrupt.texi: Move note.
68048         * lib/signal.in.h (SA_RESTART): New macro.
68049         * lib/sigaction.c: Update comment.
68051         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
68053         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
68054         (gl_PREREQ_SIGPROCMASK): Invoke it.
68055         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
68057         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
68059         * lib/sigprocmask.c: Update a comment.
68061 2008-06-21  Eric Blake  <ebb9@byu.net>
68063         Use sigaction module rather than signal().
68064         * modules/c-stack (Depends-on): Add sigaction.
68065         * modules/fatal-signal (Depends-on): Likewise.
68066         * modules/nanosleep (Depends-on): Likewise.
68067         * modules/sigprocmask (Files): Add sig-handler.h.
68068         * modules/sigaction (Files): Likewise.
68069         * lib/sig-handler.h (get_handler): New file, suggested by Paul
68070         Eggert.
68071         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
68072         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
68073         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
68074         (init_fatal_signals): Likewise.
68075         * lib/nanosleep.c (rpl_nanosleep): Likewise.
68076         (siginterrupt): Delete fallback.
68077         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
68078         instead.
68079         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
68080         siginterrupt.
68082         New module sigaction, for mingw.
68083         * modules/sigaction: New module...
68084         * modules/sigaction-tests: ...and its test.
68085         * m4/sigaction.m4: New file.
68086         * lib/sigaction.c: Likewise.
68087         * tests/test-sigaction.c: Likewise.
68088         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
68089         * modules/signal (Makefile.am): Likewise.
68090         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
68091         needed.
68092         * doc/posix-headers/signal.texi (signal.h): Mention provided
68093         types.
68094         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
68095         that sigaction is preferable.
68096         * doc/posix-functions/sigaction.texi (sigaction): Mention new
68097         module.
68098         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68099         sigaction.
68101         Improve robustness of sigprocmask by overriding signal.
68102         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
68103         is in use.
68104         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
68105         (SIGKILL, SIGSTOP): Provide fallbacks.
68106         (rpl_signal): Implement.
68107         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
68108         signal can be called inside handlers.
68110         Fix nanosleep module on mingw.
68111         * modules/nanosleep (Depends-on): Add sys_select.
68112         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
68114         Fix licensing of sigprocmask.
68115         * modules/raise (License): Relicense as LGPL.
68117 2008-06-21  Bruno Haible  <bruno@clisp.org>
68119         * lib/propername.c (proper_name_utf8): Don't use the transliterated
68120         result if it contains question marks.
68121         Reported by Michael Geng <linux@michaelgeng.de>.
68123 2008-06-19  Bruno Haible  <bruno@clisp.org>
68125         Fix CVS-ism.
68126         * doc/gnulib.texi: Include updated-stamp.texi.
68127         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
68128         (updated-stamp.texi): New rule.
68129         (gnulib.info): Depend on it.
68130         * doc/.gitignore: Add updated-stamp.texi.
68131         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
68133 2008-06-19  Bruno Haible  <bruno@clisp.org>
68135         * doc/Makefile (gnulib.info): Update and simplify dependencies.
68136         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
68138 2008-06-19  Eric Blake  <ebb9@byu.net>
68140         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
68141         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
68142         Reported by Stepan Kasal.
68144 2008-06-18  Bruno Haible  <bruno@clisp.org>
68146         * lib/fatal-signal.c (init_fatal_signals): Add comment.
68147         Reported by Eric Blake.
68149 2008-06-18  Eric Blake  <ebb9@byu.net>
68151         Work around cygwin 1.5.25 strsignal bug.
68152         * tests/test-strsignal.c: Allow for const char *.
68153         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
68155 2008-06-18  Simon Josefsson  <simon@josefsson.org>
68157         * users.txt: Update URL to article and add author/date
68158         information.
68160 2008-06-17  Bruno Haible  <bruno@clisp.org>
68162         New macro gl_DISABLE_THREADS.
68163         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
68164         if the user did not pass --enable-threads or --disable-threads option.
68165         (gl_DISABLE_THREADS): New macro.
68166         Reported by Eric Blake <ebb9@byu.net>.
68168 2008-06-17  Bruno Haible  <bruno@clisp.org>
68170         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
68171         when the macro ignores it.
68172         Based on a patch by Eric Blake <ebb9@byu.net>.
68174 2008-06-17  Bruno Haible  <bruno@clisp.org>
68176         * modules/tls (License): Change to LGPLv2+.
68177         Reported by Eric Blake.
68179 2008-06-17  Eric Blake  <ebb9@byu.net>
68181         Simplify c-stack prerequisites.
68182         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
68183         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
68184         no longer requires <ucontext.h> to exist.  Optimize setrlimit
68185         check.
68186         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
68187         <sys/resource.h>.
68189         Move c-stack test into testsuite.
68190         * modules/c-stack-tests: New file.
68191         * lib/c-stack.c [DEBUG]: Move test program...
68192         * tests/test-c-stack.c: ...into this new file.  Skip rather than
68193         fail test if sigaltstack is lacking.
68194         * tests/test-c-stack.sh: New driver file.
68196 2008-06-16  Eric Blake  <ebb9@byu.net>
68198         Use raise module consistently.
68199         * modules/fatal-signal (Depends-on): Add raise.
68200         * modules/sigprocmask (Depends-on): Likewise.
68201         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
68202         * lib/sigprocmask.c (sigprocmask): Likewise.
68203         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
68204         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
68206         Fix compliance bug in sigpending.
68207         * lib/sigprocmask.c (sigpending): Return pending array via
68208         parameter, not return value.
68210 2008-06-14  Eric Blake  <ebb9@byu.net>
68212         Improve obstack-printf test code.
68213         * tests/test-obstack-printf.c (test_function): Fix comment, and
68214         simplify usage of obstack_* in macros.  Add a test for coverage.
68215         Reported by Bruno Haible.
68217 2008-06-14  Bruno Haible  <bruno@clisp.org>
68219         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
68220         array size as a constant, not as a const variable.
68221         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
68222         AC_USE_SYSTEM_EXTENSIONS.
68223         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
68224         Test whether the obstack_printf function actually exists.
68225         * modules/obstack-printf (Depends-on): Add extensions.
68226         (Include): Remove obstack.h.
68227         * modules/obstack-printf-posix (Depends-on): Add extensions.
68228         (Include): Remove obstack.h.
68230 2008-06-13  Eric Blake  <ebb9@byu.net>
68232         Add obstack-printf and obstack-printf-posix modules.
68233         * modules/obstack-printf: New file.
68234         * modules/obstack-printf-posix: Likewise.
68235         * MODULES.html.sh (Misc): Mention them.
68236         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
68237         Likewise.
68238         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
68239         Likewise.
68240         * modules/stdio (Makefile.am): Accomodate new modules.
68241         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
68242         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
68243         Declare.
68244         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
68245         functions.
68246         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
68247         (gl_REPLACE_OBSTACK_PRINTF): New macros
68248         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
68249         * tests/test-obstack-printf.c: New file.
68250         * modules/obstack-printf-tests: Likewise.
68251         * modules/obstack-printf-posix-tests: Likewise.
68253 2008-06-11  Bruno Haible  <bruno@clisp.org>
68255         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
68256         * lib/open.c: Include errno.h.
68257         (open): Fail when attempting to write to a file that has a trailing
68258         slash.
68259         * tests/test-open.c (main): Test against trailing slash bug.
68260         * doc/posix-functions/open.texi: Mention the trailing slash bug.
68262 2008-06-10  Bruno Haible  <bruno@clisp.org>
68264         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
68265         for $? to work inside the trap command, with various /bin/sh-s.
68266         * tests/test-vc-list-files-cvs.sh: Likewise.
68268 2008-06-10  Bruno Haible  <bruno@clisp.org>
68270         * lib/acl-internal.h: Don't include gettext.h here.
68271         * lib/set-mode-acl.c: Include gettext.h here.
68272         * lib/copy-acl.c: Likewise.
68274 2008-06-10  Bruno Haible  <bruno@clisp.org>
68276         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
68277         * lib/wait-process.c (wait_subprocess): Likewise.
68278         * lib/execute.h (execute): Add termsigp argument.
68279         * lib/execute.c (execute): Likewise.
68280         * lib/csharpcomp.c (compile_csharp_using_pnet,
68281         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
68282         * lib/csharpexec.c (execute_csharp_using_pnet,
68283         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
68284         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
68285         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
68286         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
68287         is_jikes_present): Update.
68288         * lib/javaexec.c (execute_java_class): Update.
68289         * lib/javaversion.c (execute_and_read_line): Update.
68290         * NEWS: Document the changes.
68291         Reported by Eric Blake.
68293 2008-06-10  Eric Blake  <ebb9@byu.net>
68295         Add missing include.
68296         * tests/test-strstr.c (includes): Add <signal.h>.
68297         * tests/test-strcasestr.c (includes): Likewise.
68298         * tests/test-memmem.c (includes): Likewise.
68300 2008-06-10  Bruno Haible  <bruno@clisp.org>
68302         * lib/wait-process.c (wait_subprocess): Add an assertion.
68304 2008-06-10  Bruno Haible  <bruno@clisp.org>
68306         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
68308 2008-06-10  Bruno Haible  <bruno@clisp.org>
68310         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
68311         using alarm().
68312         * tests/test-strcasestr.c (main): Likewise.
68313         * tests/test-strstr.c (main): Likewise.
68315 2008-06-09  Bruno Haible  <bruno@clisp.org>
68317         Work around the Solaris 10 ACE ACLs ABI change.
68318         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
68319         declare if ACL_NO_TRIVIAL is present.
68320         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
68321         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
68322         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
68323         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
68324         define if ACL_NO_TRIVIAL is present.
68325         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
68326         and use the current ABI.
68327         (file_has_acl): Use same #if condition as elsewhere.
68328         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
68329         in use, and use the current ABI.
68330         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
68331         Reported by Jim Meyering.
68333 2008-06-09  Eric Blake  <ebb9@byu.net>
68335         Work around environments that (stupidly) ignore SIGALRM.
68336         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
68337         before using alarm().
68338         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
68339         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
68340         Reported by Ian Beckwith <ianb@erislabs.net>.
68342         Produce autobuild blurb earlier in log.
68343         * modules/autobuild (configure.ac-early): Move AB_INIT here.
68345 2008-06-09  Jim Meyering  <meyering@redhat.com>
68346         and Ondřej Vašík  <ovasik@redhat.com>
68348         utimens.c: correct kernel bug work-around
68349         Ondřej Vašík found that the invalid return value of 280 indicates
68350         failure, not success, and the kernel bug we're trying to work
68351         around affects not just the utimensat call, but also the fallback
68352         futimens call.
68353         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
68354         not success.
68355         [HAVE_FUTIMENS]: Use the same work-around, here.
68357 2008-06-09  Jim Meyering  <meyering@redhat.com>
68359         add more guards around definition of ACE_-related code
68360         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
68361         ALLOW and ACE_OWNER are also defined.
68363 2008-06-08  Bruno Haible  <bruno@clisp.org>
68365         * lib/acl-internal.h: Add me as co-author.
68366         * lib/file-has-acl.c: Likewise.
68367         * lib/set-mode-acl.c: Likewise.
68368         * lib/copy-acl.c: Likewise.
68370 2008-06-08  Bruno Haible  <bruno@clisp.org>
68372         Add support for AIX ACLs.
68373         * lib/acl-internal.h (acl_nontrivial): New declaration.
68374         * lib/file-has-acl.c (acl_nontrivial): New function.
68375         (file_has_acl): Add implementation using AIX 4 ACL API.
68376         * lib/set-mode-acl.c (qset_acl): Likewise.
68377         * lib/copy-acl.c (qcopy_acl): Likewise.
68379 2008-06-08  Bruno Haible  <bruno@clisp.org>
68381         Add support for HP-UX ACLs.
68382         * lib/acl-internal.h (acl_nontrivial): New declaration.
68383         * lib/file-has-acl.c (acl_nontrivial): New function.
68384         (file_has_acl): Add implementation using HP-UX 11 ACL API.
68385         * lib/set-mode-acl.c (qset_acl): Likewise.
68386         * lib/copy-acl.c (qcopy_acl): Likewise.
68388 2008-06-08  Bruno Haible  <bruno@clisp.org>
68390         Add support for Cygwin ACLs.
68391         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
68392         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
68393         the chmod_or_fchmod call.
68394         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
68396 2008-06-08  Bruno Haible  <bruno@clisp.org>
68398         Fix bug with setuid modes in Solaris 10+ code.
68399         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
68400         succeeded, when the mode contains some special bits.
68402 2008-06-08  Bruno Haible  <bruno@clisp.org>
68404         Add support for Solaris 7..10 ACLs.
68405         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
68406         declarations.
68407         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
68408         functions.
68409         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
68410         * lib/set-mode-acl.c (qset_acl): Likewise.
68411         * lib/copy-acl.c (qcopy_acl): Likewise.
68413 2008-06-08  Bruno Haible  <bruno@clisp.org>
68415         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
68416         declaration.
68417         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
68418         (acl_access_nontrivial): Remove MacOS X case.
68419         (file_has_acl): Use acl_extended_nontrivial.
68420         * lib/copy-acl.c (qcopy_acl): Likewise.
68422 2008-06-08  Bruno Haible  <bruno@clisp.org>
68424         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
68426 2008-06-08  Jim Meyering  <meyering@redhat.com>
68428         * modules/acl (Maintainer): Add Bruno Haible.
68430 2008-06-07  Bruno Haible  <bruno@clisp.org>
68432         Improve support for Tru64 ACLs.
68433         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
68434         ACL on OSF/1.
68436 2008-06-07  Bruno Haible  <bruno@clisp.org>
68438         Add support for MacOS X ACLs.
68439         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
68440         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
68441         * lib/set-mode-acl.c (qset_acl): Likewise.
68442         * lib/copy-acl.c (qcopy_acl): Likewise.
68444 2008-06-07  Bruno Haible  <bruno@clisp.org>
68446         Fix memory leak introduced on 2008-05-22.
68447         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
68448         use.
68450 2008-06-07  Bruno Haible  <bruno@clisp.org>
68452         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
68453         to construct an empty ACL.
68455 2008-06-07  Bruno Haible  <bruno@clisp.org>
68457         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
68458         precisely.
68459         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
68461 2008-06-07  Bruno Haible  <bruno@clisp.org>
68463         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
68464         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
68466 2008-06-07  Bruno Haible  <bruno@clisp.org>
68468         * doc/posix-functions/_setjmp.texi: Explain the use of this function
68469         regardless of POSIX.
68470         * doc/posix-functions/_longjmp.texi: Likewise.
68471         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
68472         SystemV platform in this case.
68474 2008-06-06  Eric Blake  <ebb9@byu.net>
68476         Document abort() bugs.
68477         * doc/posix-functions/abort.texi (abort): Mention anomalies.
68479         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
68480         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
68481         sigsetjmp.
68482         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
68483         siglongjmp, but only as a macro.
68484         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
68485         is obsolete.
68486         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
68488         Tweak documentation to cover cygwin argz bugs.
68489         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
68490         argz bug fix; no code change needed since no cygwin releases
68491         occurred between the last fix and the bug being tested.
68492         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
68493         module and recently fixed cygwin bugs.
68494         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
68495         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
68496         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
68497         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
68498         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
68499         Likewise.
68500         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
68501         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
68502         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
68503         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
68504         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
68505         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
68506         Likewise.
68508         Avoid gcc warning on cygwin.
68509         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
68510         !ACL_NO_TRIVIAL]: Avoid unused variable.
68512 2008-06-05  Eric Blake  <ebb9@byu.net>
68514         Be tolerant of UNKNOWN version in gnulib-tool test dir.
68515         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
68516         git-version-gen fails to come up with a version.
68517         Reported by Simon Josefsson.
68519 2008-06-05  Jim Meyering  <meyering@redhat.com>
68520             Paul Eggert  <eggert@cs.ucla.edu>
68522         utimens.c: work around a probable Linux kernel bug
68523         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
68524         appears to be a kernel bug that causes utimensat to return 280
68525         instead of 0, indicating success.
68527 2008-06-04  Bruno Haible  <bruno@clisp.org>
68529         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
68530         2008-06-01 commit.
68532 2008-06-04  Bruno Haible  <bruno@clisp.org>
68534         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
68535         * lib/file-has-acl.c (acl_access_nontrivial): New function.
68536         (file_has_acl): Use it. Save errno afterwards.
68537         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
68539 2008-06-03  Bruno Haible  <bruno@clisp.org>
68541         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
68542         draft code. Simplify #ifs.
68543         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
68544         Put Solaris code after POSIX-draft code. Fix comments regarding
68545         Solaris 10, HP-UX. Mention Cygwin.
68546         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
68548 2008-06-03  Eric Blake  <ebb9@byu.net>
68550         Provide fallback for older kernels.
68551         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
68552         Provide runtime fallback if kernel lacks support.
68553         Reported by Mike Frysinger.
68555 2008-06-02  Bruno Haible  <bruno@clisp.org>
68557         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
68558         it exists.
68560 2008-06-02  Bruno Haible  <bruno@clisp.org>
68562         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
68563         * lib/copy-acl.c (qcopy_acl): Update comment.
68565 2008-06-02  Bruno Haible  <bruno@clisp.org>
68567         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
68568         like ACL APIs.
68570 2008-06-02  Bruno Haible  <bruno@clisp.org>
68572         * tests/test-file-has-acl.sh: Use different code for Cygwin.
68573         * tests/test-set-mode-acl.sh: Likewise.
68574         * tests/test-copy-acl.sh: Likewise.
68575         * tests/test-copy-file.sh: Likewise.
68577 2008-06-02  Bruno Haible  <bruno@clisp.org>
68579         * tests/test-file-has-acl.sh: Remove unused code.
68581 2008-06-01  Bruno Haible  <bruno@clisp.org>
68583         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
68584         (copy_acl): Just a wrapper around qcopy_acl that emits the error
68585         messages.
68586         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
68588 2008-06-01  Bruno Haible  <bruno@clisp.org>
68590         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
68591         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
68592         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
68593         APIs.
68594         * modules/acl-tests (configure.ac): Remove tests now contained in
68595         m4/acl.m4.
68597 2008-06-02  Jim Meyering  <meyering@redhat.com>
68599         announce-gen: use a better key-server host name
68600         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
68601         it may be more consistently reliable.  Suggested by Werner Koch
68602         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
68604 2008-06-01  Bruno Haible  <bruno@clisp.org>
68606         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
68607         Reported by Voroskoi Andras <voroskoi@gmail.com>.
68609 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
68611         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
68613 2008-06-01  Bruno Haible  <bruno@clisp.org>
68615         New ACL tests.
68616         * tests/test-file-has-acl.sh: New file.
68617         * tests/test-file-has-acl.c: New file.
68618         * tests/test-set-mode-acl.sh: New file.
68619         * tests/test-set-mode-acl.c: New file.
68620         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
68621         * tests/test-copy-acl.c: New file.
68622         * modules/acl-tests: New file, based on modules/copy-file-tests.
68623         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
68624         (Depends-on): Add acl-tests.
68625         (configure.ac): Remove checks.
68626         (Makefile.am): Don't create test-sameacls program here any more.
68628 2008-06-01  Bruno Haible  <bruno@clisp.org>
68630         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
68631         * tests/test-sameacls.c: Include progname.h.
68632         (main): Invoke set_program_name. Portability fixes for MacOS X,
68633         Solaris, HP-UX.
68635 2008-06-01  Bruno Haible  <bruno@clisp.org>
68637         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
68638         function.
68639         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
68641 2008-06-01  Bruno Haible  <bruno@clisp.org>
68643         * modules/rpmatch (Depends-on): Add strdup.
68645 2008-06-01  Bruno Haible  <bruno@clisp.org>
68647         * lib/pipe.c: Include unistd-safer.h.
68648         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
68649         * modules/pipe (Depends-on): Add unistd-safer.
68651 2008-05-30  Simon Josefsson  <simon@josefsson.org>
68653         * modules/autobuild (configure.ac): Call AB_INIT.
68655 2008-05-30  Simon Josefsson  <simon@josefsson.org>
68657         * tests/test-getaddrinfo.c: Don't print debug messages by default.
68658         Suggested by Bruno Haible <bruno@clisp.org>.
68660 2008-05-30  Simon Josefsson  <simon@josefsson.org>
68662         * tests/test-base64.c: Cast size_t to unsigned long when invoking
68663         printf.  Use %lu instead of %d.  Reported by Bruno Haible
68664         <bruno@clisp.org>.
68666 2008-05-29  Eric Blake  <ebb9@byu.net>
68668         Prefer new POSIX 200x interfaces over futimesat.
68669         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
68670         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
68671         when available.
68672         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
68674 2008-05-28  Bruno Haible  <bruno@clisp.org>
68676         * modules/stpcpy (License): Change to LGPLv2+.
68677         Requested by David Lutterkort <dlutter@redhat.com>.
68679 2008-05-27  Bruno Haible  <bruno@clisp.org>
68681         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
68682         current mingw.
68683         Reported by Jose E. Marchesi <jemarch@gnu.org>.
68685 2008-05-27  Bruno Haible  <bruno@clisp.org>
68687         * modules/iconv_open (Link): New section, from module 'iconv'.
68688         * modules/striconv (Link): Likewise.
68689         * modules/striconveh (Link): Likewise.
68690         * modules/xstriconv (Link): Likewise.
68691         * modules/unicodeio (Link): Likewise.
68692         * modules/propername (Link): Likewise.
68693         Reported by Jim Meyering.
68695 2008-05-26  Jim Meyering  <meyering@redhat.com>
68697         sha256: do not artificially restrict buffer length to be < 2^32
68698         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
68699         uint32_t to size_t.
68700         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
68701         to match.
68703         avoid unaligned access errors, e.g., on sparc
68704         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
68705         direct access through a possibly-unaligned uint64* pointer.
68706         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
68707         direct access through a possibly-unaligned uint32* pointer.
68708         Prompted by this patch from Tom "spot" Callaway:
68709         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
68711         sha512.c: fix typo in comment
68712         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
68714 2008-05-25  Bruno Haible  <bruno@clisp.org>
68716         * lib/set-mode-acl.c: Renamed from lib/acl.c.
68717         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
68718         (Makefile.am): Update lib_SOURCES.
68720 2008-05-25  Bruno Haible  <bruno@clisp.org>
68722         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
68724 2008-05-25  Jim Meyering  <meyering@redhat.com>
68726         useless-if-before-free: freed expr may have white-space differences
68727         * build-aux/useless-if-before-free: Recognize cases in which the
68728         freed expression differs from the tested one in embedded white
68729         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
68730         $1 was used, so we can't make any regexp shy.  Improved tests now
68731         detect this.
68733         useless-if-before-free: accept white space in the expression.
68734         * build-aux/useless-if-before-free: For now, any white space
68735         in the expression must be identical in the free argument.
68737         useless-if-before-free: efficiency tweak
68738         * build-aux/useless-if-before-free: Make the expression-matching
68739         regexp "shy".
68740         Make the *outer* regexp shy, not the expr-matching one.
68742         update code-in-comment to accept cast of free arg
68743         * build-aux/useless-if-before-free: Update regexp.
68745 2008-05-25  Bruno Haible  <bruno@clisp.org>
68747         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
68748         * modules/copy-file-tests (Files, Makefile.am): Update.
68749         * tests/test-copy-file.c (func_test_copy): Update.
68751 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
68753         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
68755 2008-05-23  Bruno Haible  <bruno@clisp.org>
68757         Improve support for ACLs on OSF/1.
68758         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
68759         Remove fallback for unknown flavors of ACLs.
68761 2008-05-22  Bruno Haible  <bruno@clisp.org>
68763         Add support for ACLs on OSF/1.
68764         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
68765         replacements.
68766         (acl_free_text): New macro fallback.
68767         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
68768         acl_free.
68769         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
68770         acl_free_text function. Require AC_C_INLINE.
68772 2008-05-22  Bruno Haible  <bruno@clisp.org>
68774         Make copy_acl work on MacOS X 10.5.
68775         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
68776         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
68777         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
68778         If MODE_INSIDE_ACL, don't assume that every system has the same text
68779         representation for ACLs as FreeBSD.
68780         * lib/copy-acl.c (copy_acl): Add support for platforms with
68781         !MODE_INSIDE_ACL.
68782         * lib/file-has-acl.c (file_has_acl): Likewise.
68783         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
68784         FreeBSD, MacOS X, or IRIX, respectively.
68786 2008-05-22  Bruno Haible  <bruno@clisp.org>
68788         * lib/acl.h: Don't include <sys/acl.h>.
68789         (GETACLCNT): Move fallback to lib/acl-internal.h.
68790         * lib/acl-internal.h: Include <sys/acl.h> here.
68791         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
68793 2008-05-22  Bruno Haible  <bruno@clisp.org>
68795         Split off copy_acl function to separate file.
68796         * lib/copy-acl.c: New file, extracted from lib/acl.c.
68797         * lib/acl.c (copy_acl): Moved function to separate file.
68798         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
68799         * modules/acl (Files): Add lib/copy-acl.c.
68800         (Makefiles.am): Augment lib_SOURCES.
68802 2008-05-22  Bruno Haible  <bruno@clisp.org>
68804         * modules/copy-file-tests: New file.
68805         * tests/test-copy-file.sh: New file.
68806         * tests/test-copy-file.c: New file.
68807         * tests/test-copy-file-sameacls.c: New file.
68809 2008-05-22  Eric Blake  <ebb9@byu.net>
68811         Avoid gcc warning.
68812         * tests/test-memcmp.c (main): Pass NULL indirectly.
68814 2008-05-21  Bruno Haible  <bruno@clisp.org>
68816         Add reference doc about ACLs.
68817         * doc/acl-resources.txt: New file.
68818         * doc/acl-cygwin.txt: New file.
68820 2008-05-21  Bruno Haible  <bruno@clisp.org>
68822         Avoid one more warning from gcc.
68823         * lib/vasnprintf.c (IF_LINT): Update comments.
68824         (VASNPRINTF): Use it also for the 'prefix' array initializer.
68826 2008-05-21  Jim Meyering  <meyering@redhat.com>
68828         avoid a warning from gcc
68829         * lib/vasnprintf.c (IF_LINT): Define.
68830         (scale10_round_decimal_long_double):
68831         Use it to avoid a "may be used uninitialized" warning.
68832         (scale10_round_decimal_double): Likewise.
68834 2008-05-21  Simon Josefsson  <simon@josefsson.org>
68836         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
68837         declared.
68839 2008-05-20  Bruno Haible  <bruno@clisp.org>
68841         * tests/test-memcmp.c (main): Test also the sign of the result. Test
68842         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
68844 2008-05-20  Simon Josefsson  <simon@josefsson.org>
68846         * modules/memcmp-tests: New file.
68847         * tests/test-memcmp.c: New file.
68849 2008-05-19  Bruno Haible  <bruno@clisp.org>
68851         * modules/propername (Notice, configure.ac): Put quoted "..." into
68852         --keyword option.
68853         * lib/propername.h: Update comments accordingly.
68854         Reported by Eric Blake.
68856 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
68858         * modules/getpass-gnu (Depends-on): Add fseeko.
68860 2008-05-19  Simon Josefsson  <simon@josefsson.org>
68862         * modules/base64-tests: New file.
68864 2008-05-19  Bo Borgerson <gigabo@gmail.com>
68866         * lib/base64.c (base64_decode_ctx): If a decode context structure
68867         was passed in use it to ignore newlines.  If a context structure
68868         was _not_ passed in, continue to treat newlines as garbage (this
68869         is the historical behavior).  Formerly base64_decode.
68870         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
68871         takes a decode context structure.
68872         * lib/base64.h (base64_decode): Macro for four-argument calls.
68873         (base64_decode_alloc): Likewise.
68874         * lib/base64.c (base64_decode_ctx): If a decode context structure
68875         was passed in use it to ignore newlines.  If a context structure
68876         was _not_ passed in, continue to treat newlines as garbage (this
68877         is the historical behavior).  Formerly base64_decode.
68878         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
68879         takes a decode context structure.
68880         * lib/base64.h (base64_decode): Macro for four-argument calls.
68881         (base64_decode_alloc): Likewise.
68883 2008-05-19  Jim Meyering  <meyering@redhat.com>
68885         avoid a warning from gcc
68886         * lib/trim.c (IF_LINT): Define.
68887         (trim2): Use it to avoid a "may be used uninitialized" warning.
68889         Fix doc typo.
68890         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
68892 2008-05-19  Bruno Haible  <bruno@clisp.org>
68894         * doc/glibc-functions/getpass.texi: Document limits of other
68895         implementations.
68897 2008-05-19  Simon Josefsson  <simon@josefsson.org>
68898             Bruno Haible <bruno@clisp.org>
68900         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
68902 2008-05-18  Bruno Haible  <bruno@clisp.org>
68904         * modules/propername: New file, from GNU gettext.
68905         * lib/propername.h: New file, from GNU gettext.
68906         * lib/propername.c: New file, from GNU gettext.
68907         * MODULES.html.sh (Internationalization functions): Add propername.
68909 2008-05-16  Jim Meyering  <meyering@redhat.com>
68910             Bruno Haible  <bruno@clisp.org>
68912         Avoid some warnings from "gcc -Wshadow".
68913         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
68915 2008-05-15  Eric Blake  <ebb9@byu.net>
68917         Extend previous patch to cygwin 1.7.0.
68918         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
68919         fast implementation in cygwin >= 1.7.0.
68920         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
68921         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
68923 2008-05-15  Bruno Haible  <bruno@clisp.org>
68925         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
68926         implementation in glibc >= 2.9.
68927         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
68928         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
68930 2008-05-15  Bruno Haible  <bruno@clisp.org>
68932         * MODULES.html.sh (Internationalization functions): Remove linebreak.
68933         (Unicode string functions): Add unilbrk/*.
68934         Reported by Karl Berry.
68936 2008-05-15  Eric Blake  <ebb9@byu.net>
68938         Fix violation of <stdbool.h> replacement in regex.
68939         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
68940         * lib/regexec.c (re_search_internal): Likewise.
68941         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
68943 2008-05-15  Jim Meyering  <meyering@redhat.com>
68945         avoid distracting test output when git or cvs is not found
68946         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
68947         * tests/test-vc-list-files-git.sh: Likewise.
68949 2008-05-15  Eric Blake  <ebb9@byu.net>
68951         Glibc finally accepted the memmem speedup code, bugzilla #5514.
68952         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
68953         glibc version.
68954         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
68955         * doc/posix-functions/strstr.texi (strstr): Likewise.
68956         * lib/str-two-way.h (MAX): Sychronize with glibc.
68958 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
68960         * lib/regcomp.c (optimize_utf8): Add a note on why we test
68961         opr.ctx_type.
68962         (calc_first): Initialize constraint field.
68963         (duplicate_node_closure): Use it instead of special casing ANCHORS.
68964         Fix grammar.
68965         (duplicate_node): Merge constraint field for all node types.
68966         (calc_eclosure_iter): Look at constraint field for all node types.
68967         * lib/regex_internal.c (create_cd_newstate): Don't look at
68968         opr.ctx_type.
68970 2008-05-14  Bruno Haible  <bruno@clisp.org>
68972         Help GCC to do better code generation.
68973         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
68974         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
68975         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
68976         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
68977         Declare with attribute 'malloc' if supported.
68979 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
68981         use "echo STR|wc -c" rather than unportable "expr length STR"
68982         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
68983         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
68985 2008-05-14  Jim Meyering  <meyering@redhat.com>
68987         use dd ibs=$n count=1 ... rather than less-portable head -c$n
68988         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
68989         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
68990         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
68991         via Collin Lasse.
68993 2008-05-14  Eric Blake  <ebb9@byu.net>
68995         Avoid quadratic growth in gl_LIBSOURCES.
68996         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
68997         Suggested by Bruno Haible.
68999         Test xmemdup0.
69000         * modules/xmemdup0-tests: New file.
69001         * tests/test-xmemdup0.c: Likewise.
69003 2008-05-13  Eric Blake  <ebb9@byu.net>
69005         Split xmemdup0 into its own module.
69006         * modules/xmemdup0: New file.
69007         * lib/xmemdup0.h: Likewise.
69008         * lib/xmemdup0.c: Likewise.
69009         * MODULES.html.sh (Memory management functions): Add xmemdup0.
69010         * lib/xalloc.h (xmemdup0): Remove.
69011         * lib/xmalloc.c (xmemdup0): Likewise.
69013 2008-05-13  Eric Blake  <ebb9@byu.net>
69014             Bruno Haible  <bruno@clisp.org>
69016         Reduce number of forks required during autoconf.
69017         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
69018         and gl_LIBSOURCES_DIR.
69019         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
69020         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
69021         m4_syscmd per file.
69022         <m4_foreach_w>: Move...
69023         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
69025 2008-05-13  Eric Blake  <ebb9@byu.net>
69027         * gnulib-tool: Fix various comment typos.
69029 2008-05-12  Bruno Haible  <bruno@clisp.org>
69031         Tailor the linebreaking algorithm.
69032         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
69034 2008-05-12  Bruno Haible  <bruno@clisp.org>
69036         Update to Unicode 5.0.0.
69037         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
69038         LBP_JV, LBP_JT. Redistribute values.
69039         (unilbrk_table): Change size.
69040         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
69041         Unicode TR#14 rev. 22.
69042         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
69043         LBP_JV, LBP_JT. Redistribute values.
69044         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
69045         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
69046         Update.
69047         * lib/unilbrk/lbrkprop1.h: Regenerated.
69048         * lib/unilbrk/lbrkprop2.h: Regenerated.
69049         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
69050         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
69051         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
69052         Likewise.
69053         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
69054         Likewise.
69055         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
69056         result.
69057         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
69058         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
69059         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
69060         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
69061         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
69062         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
69064 2008-05-11  Bruno Haible  <bruno@clisp.org>
69066         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
69068 2008-05-11  Bruno Haible  <bruno@clisp.org>
69070         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
69071         * modules/unilbrk/gen-lbrk: New file.
69073 2008-05-11  Bruno Haible  <bruno@clisp.org>
69075         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
69076         * m4/sha512.m4 (gl_SHA512): Likewise.
69078 2008-05-11  Jim Meyering  <meyering@redhat.com>
69080         New modules: crypto/sha256, crypto/sha512 (from coreutils)
69081         * modules/crypto/sha256: New file.
69082         * modules/crypto/sha512: Likewise.
69083         * lib/sha256.c: Likewise.
69084         * lib/sha256.h: Likewise.
69085         * lib/sha512.c: Likewise.
69086         * lib/sha512.h: Likewise.
69087         * lib/u64.h: Likewise.
69088         * m4/sha256.m4: Likewise.
69089         * m4/sha512.m4: Likewise.
69090         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
69092 2008-05-10  Bruno Haible  <bruno@clisp.org>
69094         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
69095         (Input/Output <stdio.h>): Add xprintf.
69096         (Signal handling <signal.h>): Add strsignal.
69097         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
69098         (Core language properties): Add func.
69099         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
69100         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
69101         strings.
69102         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
69103         (Input/output): New section.
69104         (File system functions): Add openat-die, stat-macros.
69105         (Networking functions): Add sockets.
69106         (Unicode string functions): Add unictype/*.
69107         (Support for building libraries and executables): Add gperf.
69108         (Support for building documentation): Add agpl-3.0.
69109         (Misc): Add nocrash.
69111 2008-05-10  Bruno Haible  <bruno@clisp.org>
69113         * modules/unictype/gen-ctype: New file.
69115 2008-05-10  Jim Meyering  <meyering@redhat.com>
69117         Make chdir-safer.c more efficient on a system with no symlinks.
69118         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
69119         also if ELOOP is zero.  Suggested by Bruno Haible.
69121         Make chdir-safer.c slightly safer.
69122         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
69123         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
69125         Avoid compile failure on systems without ELOOP (like mingw).
69126         * lib/chdir-safer.c (ELOOP): Define if not already defined.
69127         Reported by Bruno Haible.
69129 2008-05-10  Bruno Haible  <bruno@clisp.org>
69131         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
69132         (is_utf8_encoding): Use a case-insensitive comparison.
69133         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
69134         streq.
69136 2008-05-10  Bruno Haible  <bruno@clisp.org>
69138         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
69139         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
69140         * lib/unilbrk/ulc-common.h (iconv_string_length,
69141         iconv_string_keeping_offsets): Remove declarations.
69142         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
69143         Don't include <iconv.h>, streq.h, xsize.h.
69144         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
69145         conversion.
69146         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
69147         <iconv.h>, streq.h, xsize.h.
69148         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
69149         conversion.
69150         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
69151         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
69152         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
69153         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
69155 2008-05-10  Bruno Haible  <bruno@clisp.org>
69157         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
69158         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
69160         * modules/unilbrk/u32-width-linebreaks-tests: New file.
69161         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
69163         * modules/unilbrk/u16-width-linebreaks-tests: New file.
69164         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
69166         * modules/unilbrk/u8-width-linebreaks-tests: New file.
69167         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
69169         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
69170         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
69172         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
69173         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
69175         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
69176         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
69178         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
69179         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
69181 2008-05-10  Bruno Haible  <bruno@clisp.org>
69183         Split up 'linebreak' module.
69184         * lib/unilbrk.h: New file, based on lib/linebreak.h.
69185         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
69186         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
69187         modifications.
69188         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
69189         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
69190         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
69191         lib/linebreak.c.
69192         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
69193         lib/linebreak.c.
69194         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
69195         lib/linebreak.c.
69196         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
69197         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
69198         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
69199         lib/linebreak.c.
69200         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
69201         lib/linebreak.c.
69202         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
69203         lib/linebreak.c.
69204         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
69205         lib/linebreak.c.
69206         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
69207         lib/linebreak.c.
69208         * modules/unilbrk/base: New file.
69209         * modules/unilbrk/tables: New file.
69210         * modules/unilbrk/u8-possible-linebreaks: New file.
69211         * modules/unilbrk/u16-possible-linebreaks: New file.
69212         * modules/unilbrk/u32-possible-linebreaks: New file.
69213         * modules/unilbrk/ulc-common: New file.
69214         * modules/unilbrk/ulc-possible-linebreaks: New file.
69215         * modules/unilbrk/u8-width-linebreaks: New file.
69216         * modules/unilbrk/u16-width-linebreaks: New file.
69217         * modules/unilbrk/u32-width-linebreaks: New file.
69218         * modules/unilbrk/ulc-width-linebreaks: New file.
69219         * lib/linebreak.h: Remove file.
69220         * lib/linebreak.c: Remove file.
69221         * m4/linebreak.m4: Remove file.
69222         * modules/linebreak: Remove file.
69223         * NEWS: Mention the changes.
69225 2008-05-09  Eric Blake  <ebb9@byu.net>
69227         Add xmemdup0.
69228         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
69229         implementation.
69230         * lib/xmalloc.c (xmemdup0): New C implementation.
69232 2008-05-08  Bruno Haible  <bruno@clisp.org>
69234         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
69236 2008-05-07  Eric Blake  <ebb9@byu.net>
69238         Support cross-compilation of <wctype.h>.
69239         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
69240         AC_CACHE_CHECK.
69242 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
69244         * build-aux/vc-list-files: Add support for bzr.
69246 2008-05-03  Jim Meyering  <meyering@redhat.com>
69248         avoid failed assertion with tight malloc
69249         * tests/test-getndelim2.c: Correct an off-by-one assertion.
69251 2008-05-03  Simon Josefsson  <simon@josefsson.org>
69253         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
69254         are needed from arpa/inet.h.
69255         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
69256         Reported by Bruno Haible.
69258 2008-05-02  Jim Meyering  <meyering@redhat.com>
69260         avoid compilation error on FreeBSD 6
69261         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
69263 2008-05-01  Jim Meyering  <meyering@redhat.com>
69265         useless-if-before-free: correct --help's exit status description
69266         * build-aux/useless-if-before-free (usage): Like grep, exit 0
69267         for one or more matches, etc.  Reported by Bruno Haible.
69269         vc-list-files: make the stand-alone gnulib test work
69270         * modules/vc-list-files-tests (configure.ac):
69271         Define and AC_SUBST abs_aux_dir.
69272         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
69273         $(abs_top_srcdir) to each script and having each of them
69274         duplicate the work of setting PATH, set PATH here, using
69275         the new variable, abs_aux_dir instead.
69276         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
69277         * tests/test-vc-list-files-git.sh: Likewise.
69278         Reported by Bruno Haible.
69280 2008-05-01  Bruno Haible  <bruno@clisp.org>
69282         * lib/getndelim2.c (getndelim2): Fix newsize computation during
69283         reallocation. Rename 'done' to 'found_delimiter'.
69285 2008-05-01  Jim Meyering  <meyering@redhat.com>
69287         vc-list-files: accommodate /bin/sh like the one from Solaris 10
69288         * build-aux/vc-list-files: Use `...`, not $(...).
69290 2008-04-30  Jim Meyering  <meyering@redhat.com>
69292         add tests for vc-list-files
69293         * modules/vc-list-files-tests: New module.
69294         * tests/test-vc-list-files-cvs.sh: New file.
69295         * tests/test-vc-list-files-git.sh: New file.
69297         avoid a warning from gcc
69298         * lib/getndelim2.c (IF_LINT): Define.
69299         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
69301         vc-list-files: work properly with build-aux/cvsu, too
69302         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
69303         to all cvs-based clauses.
69305         vc-list-files: work properly in the CVS+awk case, too
69306         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
69308         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
69309         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
69310         take more than one file argument, so .  Add quotes, just in case $dir
69311         ever contains a shell meta-character.  Prompted by Soren Hansen in
69312         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
69314 2008-04-29  Eric Blake  <ebb9@byu.net>
69316         Optimize getndelim2 to use block operations when possible.
69317         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
69318         freadseek, and memchr2.
69319         * lib/getndelim2.c (getndelim2): Use them for block reads.
69321 2008-04-29  Bruno Haible  <bruno@clisp.org>
69323         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
69324         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
69325         * modules/inet_ntop (Depends-on): Add extensions.
69326         * modules/inet_pton (Depends-on): Likewise.
69327         Reported by Simon Josefsson.
69329 2008-04-29  Jim Meyering  <meyering@redhat.com>
69331         When the is more than one match in a block, match all of them.
69332         * build-aux/useless-if-before-free: Iterate through each block
69333         until there are no more matches.
69335         Fix broken useless-if-before-free script.
69336         * build-aux/useless-if-before-free: Fix typo: missing "?" after
69337         the expression to match cast of argument to free-like function.
69339 2008-04-29  Eric Blake  <ebb9@byu.net>
69341         Use new header.
69342         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
69344 2008-04-29  Jim Meyering  <meyering@redhat.com>
69346         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
69347         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
69348         by gnulib to exist and to declare e.g., inet_ntop.
69349         Don't include "inet_ntop.h", now removed.
69351         * m4/arpa_inet_h.m4: Remove trailing blanks.
69353 2008-04-29  Eric Blake  <ebb9@byu.net>
69355         Silence valgrind on safe reads beyond potential array bounds.
69356         * lib/rawmemchr.valgrind: New file.
69357         * lib/strchrnul.valgrind: Likewise.
69358         * modules/rawmemchr (Files): Distribute new file.
69359         * modules/strchrnul (Files): Likewise.
69360         Suggested by Bruno Haible.
69362 2008-04-29  Bruno Haible  <bruno@clisp.org>
69364         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
69365         (inet_ntop, inet_pton): Change portability warning's wording.
69366         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
69367         Invoke gl_CHECK_NEXT_HEADERS.
69368         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
69369         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
69370         set ARPA_INET_H.
69371         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
69372         * modules/arpa_inet (Description): No longer only for systems that
69373         lack it.
69374         (Depends-on): Add include_next.
69375         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
69376         HAVE_ARPA_INET_H.
69378 2008-04-29  Jim Meyering  <meyering@redhat.com>
69380         * modules/mkdir (License): Re-license as LGPLv2+.
69382 2008-04-29  Bruno Haible  <bruno@clisp.org>
69384         * modules/rawmemchr (Maintainer): Set to Eric.
69385         * modules/strchrnul (Maintainer): Likewise.
69387 2008-04-29  Simon Josefsson  <simon@josefsson.org>
69389         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
69390         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
69392         * modules/arpa_inet (arpa/inet.h): Use them.
69394 2008-04-28  Eric Blake  <ebb9@byu.net>
69396         Test getndelim2.
69397         * modules/getndelim2-tests: New file.
69398         * tests/test-getndelim2.c: Likewise.
69399         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
69400         stream.
69401         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
69403         * MODULES.html.sh: Document new module.
69405 2008-04-20  Bruno Haible  <bruno@clisp.org>
69407         * lib/c-stack.c (die): Use raise.
69408         * modules/c-stack (Depends-on): Add raise.
69410 2008-04-28  Bruno Haible  <bruno@clisp.org>
69412         Expect rpmatch to be declared.
69413         * lib/yesno.c (rpmatch): Remove declaration.
69415         Declare rpmatch.
69416         * lib/stdlib.in.h (rpmatch): New declaration.
69417         * lib/rpmatch.c: Include <stdlib.h> first.
69418         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
69419         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
69420         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
69421         HAVE_RPMATCH.
69422         * modules/rpmatch (Depends-on): Add stdlib, extensions.
69423         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69424         (Include): Set to <stdlib.h>.
69425         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
69426         HAVE_RPMATCH.
69427         * NEWS: Document the change.
69429 2008-04-28  Bruno Haible  <bruno@clisp.org>
69431         Change rpmatch to use nl_langinfo when appropriate.
69432         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
69433         (N_): New macro.
69434         (localized_pattern): New function/macro.
69435         (try): Remove match, nomatch arguments. Copy the pattern into safe
69436         memory before caching it.
69437         (rpmatch): Use localized_pattern. Add translator comments.
69438         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
69439         Suggested by Eric Blake.
69440         * modules/rpmatch (Depends-on): Add stdbool.
69442 2008-04-28  Eric Blake  <ebb9@byu.net>
69444         Add rawmemchr module, matching glibc.
69445         * modules/string (Makefile.am): New indicator.
69446         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
69447         * lib/string.in.h (rawmemchr): Declare when appropriate.
69448         * modules/rawmemchr: New file.
69449         * m4/rawmemchr.m4: Likewise.
69450         * lib/rawmemchr.c: Likewise.
69451         * modules/rawmemchr-tests: Likewise.
69452         * tests/test-rawmemchr.c: Likewise.
69453         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
69454         module.
69455         * modules/strchrnul (Depends-on): Add rawmemchr.
69456         * lib/strchrnul.c (strchrnul): Optimize a corner case.
69458         Whitespace cleanup.
69459         * tests/test-strchrnul.c: Reindent.
69460         * lib/strchrnul.c: Likewise.
69462         Optimize and test strchrnul.
69463         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
69464         * modules/strchrnul-tests: New file.
69465         * tests/test-strchrnul.c: Likewise.
69467         Remove intprops dependency.
69468         * modules/memchr (Depends-on): Remove intprops.
69469         * modules/memrchr (Depends-on): Likewise.
69470         * modules/memchr2 (Depends-on): Likewise.
69471         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
69472         * lib/memrchr.c (__memrchr): Likewise.
69473         * lib/memrchr2.c (memchr2): Likewise.
69474         Reported by Simon Josefsson.
69476 2008-04-28  Simon Josefsson  <simon@josefsson.org>
69478         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
69479         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69481 2008-04-28  Simon Josefsson  <simon@josefsson.org>
69483         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
69485         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
69487         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
69489         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
69490         declarations.
69491         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
69493         * m4/inet_pton.m4: Don't check for header files.
69495         * m4/inet_ntop.m4: Don't check for header files.
69497 2008-04-28  Simon Josefsson  <simon@josefsson.org>
69499         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
69500         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
69501         trigger for cygwin).
69502         Reported by Bruno Haible  <bruno@clisp.org>.
69504 2008-04-28  Bruno Haible  <bruno@clisp.org>
69506         * doc/posix-functions/strdup.texi: Mention mingw problem.
69508 2008-04-27  Bruno Haible  <bruno@clisp.org>
69510         * modules/stat-time-tests (Depends-on): Add sleep.
69511         * tests/test-stat-time.c (force_unlink): New function.
69512         (cleanup): Use it.
69513         (test_mtime): Remove the ctime related tests.
69514         (test_ctime): New function, containing the ctime related tests.
69515         (main): Call test_ctime, except on native Windows platforms.
69517 2008-04-27  Bruno Haible  <bruno@clisp.org>
69519         * lib/rpmatch.c (rpmatch): Add some comments.
69520         Reported by James Youngman <jay@gnu.org>.
69522 2008-04-27  Bruno Haible  <bruno@clisp.org>
69524         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
69525         quiet NaNs.
69527 2008-04-27  Bruno Haible  <bruno@clisp.org>
69529         Make test-yesno.sh work on mingw.
69530         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
69531         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
69532         (main): Set stdin to binary mode.
69533         * modules/yesno-tests (Depends-on): Add binary-io.
69535 2008-04-27  Bruno Haible  <bruno@clisp.org>
69537         Fix 'isfinite' on x86, x86_64, ia64 platforms.
69538         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
69539         argument that lie outside the IEEE 854 domain.
69540         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
69541         (gl_ISFINITE): Use it.
69542         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
69544 2008-04-27  Bruno Haible  <bruno@clisp.org>
69546         Allow local renaming in config.h.
69547         * lib/memrchr.c (memrchr): Don't undefine outside libc.
69549 2008-04-27  Bruno Haible  <bruno@clisp.org>
69551         * lib/memchr.c (__memchr): Change type of 'i'.
69552         * lib/memchr2.c (memchr2): Likewise.
69554 2008-04-26  Eric Blake  <ebb9@byu.net>
69555         and Bruno Haible  <bruno@clisp.org>
69557         Optimize and test memrchr.
69558         * modules/memrchr (Depends-on): Add intprops.
69559         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
69560         * modules/memrchr-tests: New file.
69561         * tests/test-memrchr.c: New file.
69563 2008-04-26  Bruno Haible  <bruno@clisp.org>
69565         Add tentative support for DragonFly BSD.
69566         * lib/stdio-impl.h: Add macros for DragonFly BSD.
69567         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
69568         fp.
69569         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
69570         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
69571         * lib/fpurge.c (fpurge): Likewise.
69572         * lib/freadable.c (freaadable): Likewise.
69573         * lib/freadahead.c (freadahead): Likewise.
69574         * lib/freading.c (freading): Likewise.
69575         * lib/freadptr.c (freadptr): Likewise.
69576         * lib/freadseek.c (freadptrinc): Likewise.
69577         * lib/fseeko.c (fseeko): Likewise.
69578         * lib/fseterr.c (fseterr): Likewise.
69579         * lib/fwritable.c (fwritable): Likewise.
69580         * lib/fwriting.c (fwriting): Likewise.
69582 2008-04-26  Bruno Haible  <bruno@clisp.org>
69584         * lib/stdio-impl.h: New file.
69585         * lib/fbufmode.c: Include stdio-impl.h.
69586         (fbufmode): Use fp_, remove redundant #defines.
69587         * lib/fflush.c: Include stdio-impl.h.
69588         (clear_ungetc_buffer): Remove redundant #defines.
69589         * lib/fpurge.c: Include stdio-impl.h.
69590         (fpurge): Remove redundant #defines.
69591         * lib/freadable.c: Include stdio-impl.h.
69592         (freadable): Remove redundant #defines.
69593         * lib/freadahead.c: Include stdio-impl.h.
69594         (freadahead): Remove redundant #defines.
69595         * lib/freading.c: Include stdio-impl.h.
69596         (freading): Remove redundant #defines.
69597         * lib/freadptr.c: Include stdio-impl.h.
69598         (freadptr): Remove redundant #defines.
69599         * lib/freadseek.c: Include stdio-impl.h.
69600         (freadptrinc): Remove redundant #defines.
69601         * lib/fseeko.c: Include stdio-impl.h.
69602         (rpl_fseeko): Remove redundant #defines.
69603         * lib/fseterr.c: Include stdio-impl.h.
69604         (fseterr): Remove redundant #defines.
69605         * lib/fwritable.c: Include stdio-impl.h.
69606         (fwritable: Remove redundant #defines.
69607         * lib/fwriting.c: Include stdio-impl.h.
69608         (fwriting): Remove redundant #defines.
69609         * modules/fbufmode (Files): Add lib/stdio-impl.h.
69610         * modules/fflush (Files): Likewise.
69611         * modules/fpurge (Files): Likewise.
69612         * modules/freadable (Files): Likewise.
69613         * modules/freadahead (Files): Likewise.
69614         * modules/freading (Files): Likewise.
69615         * modules/freadptr (Files): Likewise.
69616         * modules/freadseek (Files): Likewise.
69617         * modules/fseeko (Files): Likewise.
69618         * modules/fseterr (Files): Likewise.
69619         * modules/fwritable (Files): Likewise.
69620         * modules/fwriting (Files): Likewise.
69622 2008-04-26  Bruno Haible  <bruno@clisp.org>
69624         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
69625         restore_seek_optimization, update_fpos_cache): New functions, extracted
69626         from rpl_fflush.
69627         (rpl_fflush): Use them.
69628         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
69629         (gl_REPLACE_FFLUSH): Use it.
69631 2008-04-26  Bruno Haible  <bruno@clisp.org>
69633         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
69634         on Solaris.
69635         * tests/test-xstrtoimax.sh: Likewise.
69636         * tests/test-xstrtoumax.sh: Likewise.
69637         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69639 2008-04-26  Bruno Haible  <bruno@clisp.org>
69641         * modules/memchr-tests: New file.
69642         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
69644 2008-04-26  Eric Blake  <ebb9@byu.net>
69645             Bruno Haible  <bruno@clisp.org>
69647         * lib/memchr.c: Include intprops.h.
69648         (__memchr): Optimize parallel detection of matching bytes. Rename local
69649         variables. Add explanatory comments.
69651 2008-04-26  Bruno Haible  <bruno@clisp.org>
69653         Fix module 'memchr', broken since 2000-10-28.
69654         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
69656 2008-04-26  Bruno Haible  <bruno@clisp.org>
69658         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
69659         comments.
69661 2008-04-25  Eric Blake  <ebb9@byu.net>
69663         Use native fstatat on cygwin 1.7.0.
69664         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
69665         first.
69667 2008-04-23  Eric Blake  <ebb9@byu.net>
69669         Improve memchr2 performance.
69670         * lib/memchr2.c (memchr2): Further optimize parallel detection of
69671         NUL bytes.
69672         * modules/memchr2 (Depends-on): Use intprops.h.
69674 2008-04-23  Simon Josefsson  <simon@josefsson.org>
69676         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
69677         an inline function instead of a CPP macro.  Patch by Ben Pfaff
69678         <blp@cs.stanford.edu>.
69680 2008-04-23  Simon Josefsson  <simon@josefsson.org>
69682         * lib/arpa_inet.in.h: New file.
69684         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
69685         (Makefile.am): Sed in substitute header file.
69687         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
69688         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
69690         * modules/inet_ntop (configure.ac): Use
69691         gl_ARPA_INET_MODULE_INDICATOR.
69693         * modules/inet_pton (configure.ac): Use
69694         gl_ARPA_INET_MODULE_INDICATOR.
69696 2008-04-22  Jim Meyering  <meyering@redhat.com>
69698         * modules/verify (License): Re-license as LGPLv2+.
69700 2008-04-22  Simon Josefsson  <simon@josefsson.org>
69702         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
69703         parameter to void* as per POSIX standard (MinGW uses char*).
69705 2008-04-21  Bruno Haible  <bruno@clisp.org>
69707         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
69708         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
69709         Define to replacements if REPLACE_ISWCNTRL is 1.
69710         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
69711         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
69712         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
69713         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
69714         what it fixes.
69715         * doc/posix-functions/iswalpha.texi: Likewise.
69716         * doc/posix-functions/iswblank.texi: Likewise.
69717         * doc/posix-functions/iswcntrl.texi: Likewise.
69718         * doc/posix-functions/iswdigit.texi: Likewise.
69719         * doc/posix-functions/iswgraph.texi: Likewise.
69720         * doc/posix-functions/iswlower.texi: Likewise.
69721         * doc/posix-functions/iswprint.texi: Likewise.
69722         * doc/posix-functions/iswpunct.texi: Likewise.
69723         * doc/posix-functions/iswspace.texi: Likewise.
69724         * doc/posix-functions/iswupper.texi: Likewise.
69725         * doc/posix-functions/iswxdigit.texi: Likewise.
69726         Reported by Alain Guibert.
69728 2008-04-21  Bruno Haible  <bruno@clisp.org>
69730         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
69731         Patch by Alain Guibert.
69733 2008-04-21  Bruno Haible  <bruno@clisp.org>
69735         Fix test failures on mingw.
69736         * tests/test-xstrtol.c (print_no_progname): New function.
69737         (main): Install it in error_print_progname hook.
69738         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
69739         * tests/test-xstrtoimax.sh: Likewise.
69740         * tests/test-xstrtoumax.sh: Likewise.
69742 2008-04-21  Bruno Haible  <bruno@clisp.org>
69744         Fix test failure on mingw.
69745         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
69747 2008-04-21  Bruno Haible  <bruno@clisp.org>
69749         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
69750         Actually assign a value.
69752 2008-04-20  Bruno Haible  <bruno@clisp.org>
69754         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
69755         take 2.
69756         * lib/canonicalize.c (canonicalize_file_name): Elide if the
69757         'canonicalize-lgpl' module is also used.
69758         * lib/canonicalize-lgpl.c: Undo last change.
69759         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
69761 2008-04-20  Bruno Haible  <bruno@clisp.org>
69763         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
69764         config.h. Provide _mkdir based fallback for mingw.
69765         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
69766         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
69767         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
69768         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
69769         rather than defining mkdir in config.h.
69770         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
69771         (gl_SYS_STAT_H_DEFAULTS): New macro.
69772         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
69773         HAVE_IO_H any more.
69774         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
69775         HAVE_DECL_MKDIR and HAVE_IO_H.
69777 2008-04-20  Bruno Haible  <bruno@clisp.org>
69779         * lib/isapipe.c: Port to native Windows platforms.
69781 2008-04-20  Bruno Haible  <bruno@clisp.org>
69783         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
69785 2008-04-21  Eric Blake  <ebb9@byu.net>
69787         Work around preprocessors that don't handle UINTMAX_MAX.
69788         * lib/memchr2.c (memchr2): Avoid embedded #if.
69789         Reported by Alain Guibert, fix suggested by Bruno Haible.
69791 2008-04-21  Simon Josefsson  <simon@josefsson.org>
69793         * doc/posix-functions/strftime.texi (strftime): Explain better
69794         Windows incompatibility.  Suggested by Micah Cowan
69795         <micah@cowan.name>.
69797 2008-04-20  Bruno Haible  <bruno@clisp.org>
69799         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
69800         unistr/u8-mblen.
69802 2008-04-20  Bruno Haible  <bruno@clisp.org>
69804         Fix test failure on platforms with non-GNU iconv.
69805         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
69806         (U_TO_U8): Use it, rather than u16_to_u8.
69807         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
69808         units at the end of the input string.
69809         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
69811 2008-04-20  Bruno Haible  <bruno@clisp.org>
69813         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
69814         when the resulting length is 0.
69815         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
69817 2008-04-20  Bruno Haible  <bruno@clisp.org>
69819         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
69820         works.
69821         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
69823 2008-04-20  Bruno Haible  <bruno@clisp.org>
69825         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
69826         * modules/tsearch-tests (configure.ac): Test for initstate function.
69828 2008-04-20  Bruno Haible  <bruno@clisp.org>
69830         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
69831         for nlink_t if missing.
69832         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
69834 2008-04-19  Bruno Haible  <bruno@clisp.org>
69836         Work around snprintf bug on Linux libc5.
69837         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
69838         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69839         gl_SNPRINTF_SIZE1.
69840         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69841         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
69842         that test failed.
69843         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
69844         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
69845         * modules/snprintf (Files): Add m4/printf.m4.
69846         * modules/vsnprintf (Files): Likewise.
69847         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
69848         * doc/posix-functions/vsnprintf.texi: Likewise.
69850 2008-04-19  Bruno Haible  <bruno@clisp.org>
69852         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
69853         from 0.0058 to less than 10^-7.
69855 2008-04-19  Bruno Haible  <bruno@clisp.org>
69857         Fix rounding when a precision is given.
69858         * lib/vasnprintf.c (is_borderline): New function.
69859         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
69860         9...9x.
69861         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
69862         %e, %g.
69863         * tests/test-vasprintf-posix.c (test_function): Likewise.
69864         * tests/test-snprintf-posix.h (test_function): Likewise.
69865         * tests/test-sprintf-posix.h (test_function): Likewise.
69866         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
69867         * tests/test-printf-posix.h (test_function): Likewise.
69868         * tests/test-printf-posix.output: Update.
69869         Reported by John Darrington <john@darrington.wattle.id.au> via
69870         Ben Pfaff <blp@cs.stanford.edu>.
69872 2008-04-18  Simon Josefsson  <simon@josefsson.org>
69874         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
69875         Suggested by Bruno Haible <bruno@clisp.org>.
69877 2008-04-17  Bruno Haible  <bruno@clisp.org>
69879         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
69880         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
69881         implementation.
69882         Patch by Bruce Merry <bmerry@gmail.com>.
69884 2008-04-17  Simon Josefsson  <simon@josefsson.org>
69886         * doc/posix-functions/strftime.texi (strftime): Mention that %e
69887         doesn't work under Windows.
69889 2008-04-16  Bruno Haible  <bruno@clisp.org>
69891         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
69892         New macros.
69893         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
69894         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
69895         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
69896         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
69897         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
69898         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
69899         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
69900         macros.
69901         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
69902         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
69903         Northern Sotho, Uighur.
69905 2008-04-16  Bruno Haible  <bruno@clisp.org>
69907         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
69908         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
69909         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
69910         Reported by Daniel Bergström <daniel@octocode.com>.
69912 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
69913             Bruno Haible  <bruno@clisp.org>
69915         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
69916         function.
69917         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
69918         New functions, mostly extracted from gl_locale_name_default.
69919         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
69921 2008-04-16  Eric Blake  <ebb9@byu.net>
69923         Adjust strtod detection to catch glibc 2.7 bug.
69924         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
69925         Reported by John Gatewood Ham.
69927 2008-04-16  Bruno Haible  <bruno@clisp.org>
69929         Add tentative support for Linux libc5.
69930         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
69931         * lib/fpurge.c (fpurge): Likewise.
69932         * lib/freadable.c (freadable): Likewise.
69933         * lib/freadahead.c (freadahead): Likewise.
69934         * lib/freading.c (freading): Likewise.
69935         * lib/freadptr.c (freadptr): Likewise.
69936         * lib/freadseek.c (freadptrinc): Likewise.
69937         * lib/fseeko.c (rpl_fseeko): Likewise.
69938         * lib/fseterr.c (fseterr): Likewise.
69939         * lib/fwritable.c (fwritable): Likewise.
69940         * lib/fwriting.c (fwriting): Likewise.
69941         Reported by Alain Guibert <alguibert+bts@free.fr>.
69943 2008-04-15  Bruno Haible  <bruno@clisp.org>
69945         * modules/mathl (configure.ac): Define module indicator.
69947 2008-04-15  Bruno Haible  <bruno@clisp.org>
69949         * lib/logl.c (logl): Remove unused variables.
69951 2008-04-15  Bruno Haible  <bruno@clisp.org>
69953         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
69954         fails.
69956 2008-04-15  Bruno Haible  <bruno@clisp.org>
69958         * lib/trim.c (trim2): Fix argument of isspace() macro.
69960 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
69962         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
69963         to 0.
69964         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
69966 2008-04-14  Bruno Haible  <bruno@clisp.org>
69968         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
69969         AC_LANG_PROGRAM argument.
69970         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
69971         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
69972         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
69973         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
69974         * m4/math_h.m4 (gl_MATH_H): Likewise.
69975         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
69976         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
69977         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
69978         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
69979         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
69980         * m4/regex.m4 (gl_REGEX): Likewise.
69981         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
69982         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
69983         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
69984         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
69985         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
69986         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
69987         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
69988         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
69990 2008-04-14  Jim Meyering  <meyering@redhat.com>
69992         test-strtod: fix typos: s/abs/fabs/
69993         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
69995 2008-04-13  Bruno Haible  <bruno@clisp.org>
69997         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
69998         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
69999         module is also used and while not building the reloc-wrapper.
70001 2008-04-13  Bruno Haible  <bruno@clisp.org>
70003         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
70005 2008-04-13  Bruno Haible  <bruno@clisp.org>
70007         Fix AIX compilation failure introduced on 2008-04-02.
70008         * tests/test-frexp.c (exp): Undefine before redefining.
70009         * tests/test-frexpl.c (exp): Likewise.
70011 2008-04-13  Bruno Haible  <bruno@clisp.org>
70013         Work around a HP-UX stdio bug.
70014         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
70015         * tests/test-ftello.c (main): Likewise.
70016         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
70017         * doc/posix-functions/ftello.texi: Likewise.
70019 2008-04-13  Bruno Haible  <bruno@clisp.org>
70021         Make test-signbit pass on HP-UX/hppa.
70022         * tests/test-signbit.c (minus_zerol): New variable.
70023         (test_signbitl): Use it.
70025 2008-04-13  Bruno Haible  <bruno@clisp.org>
70027         Make truncl work on OSF/1 4.0.
70028         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
70029         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
70030         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
70031         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
70032         HAVE_DECL_TRUNCL.
70033         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
70034         HAVE_DECL_TRUNCL.
70035         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
70037 2008-04-13  Bruno Haible  <bruno@clisp.org>
70039         * lib/unictype.h: Remove trailing comma from enumeration definitions.
70041 2008-04-13  Bruno Haible  <bruno@clisp.org>
70043         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
70044         expression, so as to avoid HP-UX 11 cc compiler bug.
70046 2008-04-13  Bruno Haible  <bruno@clisp.org>
70048         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
70050 2008-04-13  Bruno Haible  <bruno@clisp.org>
70052         * lib/git-merge-changelog.c: Remove empty declaration outside of
70053         functions.
70055 2008-04-13  Bruno Haible  <bruno@clisp.org>
70057         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
70059 2008-04-13  Bruno Haible  <bruno@clisp.org>
70061         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
70062         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
70063         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
70064         also if it exists but lacks definitions of the SHUT_* macros.
70065         * modules/sys_socket (Description): Update.
70066         Reported by Elbert Pol <e.pol@chello.nl>.
70068 2008-04-13  Bruno Haible  <bruno@clisp.org>
70070         * lib/localcharset.c (OS2): Don't redefine if already defined.
70071         Reported by Elbert Pol <e.pol@chello.nl>.
70073 2008-04-13  Bruno Haible  <bruno@clisp.org>
70075         * lib/binary-io.h [__EMX__]: Include <io.h>.
70076         Reported by Elbert Pol <e.pol@chello.nl>.
70078 2008-04-12  Bruno Haible  <bruno@clisp.org>
70080         * lib/fpucw.h: Enable the definitions also for x86_64.
70081         Needed for NetBSD/x86_64.
70082         Reported by Thomas Klausner <tk@giga.or.at>.
70084 2008-04-12  Bruno Haible  <bruno@clisp.org>
70086         * tests/test-strtod.c: Include isnand.h.
70087         (main): Use isnand instead of isnan.
70088         Reported by Jim Meyering.
70090 2008-04-12  Bruno Haible  <bruno@clisp.org>
70092         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
70093         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
70095 2008-04-12  Jim Meyering  <meyering@redhat.com>
70097         * m4/math_h.m4 (gl_MATH_H): Fix typos.
70099 2008-04-12  Bruno Haible  <bruno@clisp.org>
70101         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
70102         Reported by Elbert Pol <e.pol@chello.nl>.
70104 2008-04-12  Eric Blake  <ebb9@byu.net>
70106         Work around Solaris 10 math.h bug.
70107         * m4/math_h.m4 (gl_MATH_H): Check for bug.
70108         (gl_MATH_H_DEFAULTS): Set up default.
70109         * modules/math (Makefile.am): Replace new indicators.
70110         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
70111         * tests/test-math.c (main): Test this.
70112         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
70113         * doc/posix-headers/math.texi (math.h): Mention bug.
70114         Reported by Nelson H. F. Beebe and Jim Meyering.
70116 2008-04-11  Bruno Haible  <bruno@clisp.org>
70118         Adapt to future versions of Apple GCC.
70119         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
70120         Reported by Peter O'Gorman <peter@pogma.com>.
70122 2008-04-11  Bruno Haible  <bruno@clisp.org>
70124         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
70126 2008-04-11  Bruno Haible  <bruno@clisp.org>
70128         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
70130         * modules/getaddrinfo-tests (Makefile.am): Define
70131         test_getaddrinfo_LDADD.
70133 2008-04-11  Bruno Haible  <bruno@clisp.org>
70135         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
70136         (init): Fix syntax error.
70137         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
70138         is declared.
70140 2008-04-11  Bruno Haible  <bruno@clisp.org>
70142         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
70143         * modules/glob (Depends-on): Add stdbool.
70145 2008-04-11  Bruno Haible  <bruno@clisp.org>
70147         * lib/trim.c: Include <string.h>.
70149 2008-04-11  Eric Blake  <ebb9@byu.net>
70151         Avoid compile failure on OS/2.
70152         * lib/regex_internal.h (internal_function): Disable optimization
70153         on OS/2 (__EMX__), where it caused compiler error.
70154         Reported by Elbert Pol.
70156 2008-04-11  Bruno Haible  <bruno@clisp.org>
70158         Flush the standard error stream before aborting. Needed on mingw.
70159         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
70160         * tests/test-array_list.c (ASSERT): Likewise.
70161         * tests/test-array_oset.c (ASSERT): Likewise.
70162         * tests/test-avltree_list.c (ASSERT): Likewise.
70163         * tests/test-avltree_oset.c (ASSERT): Likewise.
70164         * tests/test-avltreehash_list.c (ASSERT): Likewise.
70165         * tests/test-binary-io.c (ASSERT): Likewise.
70166         * tests/test-byteswap.c (ASSERT): Likewise.
70167         * tests/test-c-ctype.c (ASSERT): Likewise.
70168         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
70169         * tests/test-c-strcasestr.c (ASSERT): Likewise.
70170         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
70171         * tests/test-c-strstr.c (ASSERT): Likewise.
70172         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
70173         * tests/test-canonicalize.c (ASSERT): Likewise.
70174         * tests/test-carray_list.c (ASSERT): Likewise.
70175         * tests/test-ceilf1.c (ASSERT): Likewise.
70176         * tests/test-ceilf2.c (ASSERT): Likewise.
70177         * tests/test-ceill.c (ASSERT): Likewise.
70178         * tests/test-count-one-bits.c (ASSERT): Likewise.
70179         * tests/test-fbufmode.c (ASSERT): Likewise.
70180         * tests/test-fflush2.c (ASSERT): Likewise.
70181         * tests/test-floorf1.c (ASSERT): Likewise.
70182         * tests/test-floorf2.c (ASSERT): Likewise.
70183         * tests/test-floorl.c (ASSERT): Likewise.
70184         * tests/test-fopen.c (ASSERT): Likewise.
70185         * tests/test-fpending.c (ASSERT): Likewise.
70186         * tests/test-fprintf-posix.c (ASSERT): Likewise.
70187         * tests/test-fpurge.c (ASSERT): Likewise.
70188         * tests/test-freadable.c (ASSERT): Likewise.
70189         * tests/test-freadahead.c (ASSERT): Likewise.
70190         * tests/test-freading.c (ASSERT): Likewise.
70191         * tests/test-freadptr.c (ASSERT): Likewise.
70192         * tests/test-freadptr2.c (ASSERT): Likewise.
70193         * tests/test-freadseek.c (ASSERT): Likewise.
70194         * tests/test-freopen.c (ASSERT): Likewise.
70195         * tests/test-frexp.c (ASSERT): Likewise.
70196         * tests/test-frexpl.c (ASSERT): Likewise.
70197         * tests/test-fseek.c (ASSERT): Likewise.
70198         * tests/test-fseeko.c (ASSERT): Likewise.
70199         * tests/test-fstrcmp.c (ASSERT): Likewise.
70200         * tests/test-ftell.c (ASSERT): Likewise.
70201         * tests/test-ftello.c (ASSERT): Likewise.
70202         * tests/test-func.c (ASSERT): Likewise.
70203         * tests/test-fwritable.c (ASSERT): Likewise.
70204         * tests/test-fwriting.c (ASSERT): Likewise.
70205         * tests/test-getdelim.c (ASSERT): Likewise.
70206         * tests/test-getline.c (ASSERT): Likewise.
70207         * tests/test-i-ring.c (ASSERT): Likewise.
70208         * tests/test-iconv-utf.c (ASSERT): Likewise.
70209         * tests/test-iconv.c (ASSERT): Likewise.
70210         * tests/test-isfinite.c (ASSERT): Likewise.
70211         * tests/test-isnand.c (ASSERT): Likewise.
70212         * tests/test-isnanf.c (ASSERT): Likewise.
70213         * tests/test-isnanl.h (ASSERT): Likewise.
70214         * tests/test-ldexpl.c (ASSERT): Likewise.
70215         * tests/test-linked_list.c (ASSERT): Likewise.
70216         * tests/test-linkedhash_list.c (ASSERT): Likewise.
70217         * tests/test-localename.c (ASSERT): Likewise.
70218         * tests/test-lseek.c (ASSERT): Likewise.
70219         * tests/test-mbscasecmp.c (ASSERT): Likewise.
70220         * tests/test-mbscasestr1.c (ASSERT): Likewise.
70221         * tests/test-mbscasestr2.c (ASSERT): Likewise.
70222         * tests/test-mbscasestr3.c (ASSERT): Likewise.
70223         * tests/test-mbscasestr4.c (ASSERT): Likewise.
70224         * tests/test-mbschr.c (ASSERT): Likewise.
70225         * tests/test-mbscspn.c (ASSERT): Likewise.
70226         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
70227         * tests/test-mbspbrk.c (ASSERT): Likewise.
70228         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
70229         * tests/test-mbsrchr.c (ASSERT): Likewise.
70230         * tests/test-mbsspn.c (ASSERT): Likewise.
70231         * tests/test-mbsstr1.c (ASSERT): Likewise.
70232         * tests/test-mbsstr2.c (ASSERT): Likewise.
70233         * tests/test-mbsstr3.c (ASSERT): Likewise.
70234         * tests/test-memchr2.c (ASSERT): Likewise.
70235         * tests/test-memmem.c (ASSERT): Likewise.
70236         * tests/test-open.c (ASSERT): Likewise.
70237         * tests/test-printf-frexp.c (ASSERT): Likewise.
70238         * tests/test-printf-frexpl.c (ASSERT): Likewise.
70239         * tests/test-printf-posix.c (ASSERT): Likewise.
70240         * tests/test-quotearg.c (ASSERT): Likewise.
70241         * tests/test-rbtree_list.c (ASSERT): Likewise.
70242         * tests/test-rbtree_oset.c (ASSERT): Likewise.
70243         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
70244         * tests/test-round1.c (ASSERT): Likewise.
70245         * tests/test-roundf1.c (ASSERT): Likewise.
70246         * tests/test-roundl.c (ASSERT): Likewise.
70247         * tests/test-signbit.c (ASSERT): Likewise.
70248         * tests/test-sleep.c (ASSERT): Likewise.
70249         * tests/test-snprintf-posix.c (ASSERT): Likewise.
70250         * tests/test-snprintf.c (ASSERT): Likewise.
70251         * tests/test-sprintf-posix.c (ASSERT): Likewise.
70252         * tests/test-stat-time.c (ASSERT): Likewise.
70253         * tests/test-strcasestr.c (ASSERT): Likewise.
70254         * tests/test-strerror.c (ASSERT): Likewise.
70255         * tests/test-striconv.c (ASSERT): Likewise.
70256         * tests/test-striconveh.c (ASSERT): Likewise.
70257         * tests/test-striconveha.c (ASSERT): Likewise.
70258         * tests/test-strsignal.c (ASSERT): Likewise.
70259         * tests/test-strstr.c (ASSERT): Likewise.
70260         * tests/test-strtod.c (ASSERT): Likewise.
70261         * tests/test-trunc1.c (ASSERT): Likewise.
70262         * tests/test-trunc2.c (ASSERT): Likewise.
70263         * tests/test-truncf1.c (ASSERT): Likewise.
70264         * tests/test-truncf2.c (ASSERT): Likewise.
70265         * tests/test-truncl.c (ASSERT): Likewise.
70266         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
70267         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
70268         * tests/test-vasnprintf.c (ASSERT): Likewise.
70269         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
70270         * tests/test-vasprintf.c (ASSERT): Likewise.
70271         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
70272         * tests/test-vprintf-posix.c (ASSERT): Likewise.
70273         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
70274         * tests/test-vsnprintf.c (ASSERT): Likewise.
70275         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
70276         * tests/test-wcwidth.c (ASSERT): Likewise.
70277         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
70278         * tests/test-xprintf-posix.c (ASSERT): Likewise.
70279         * tests/test-xvasprintf.c (ASSERT): Likewise.
70280         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
70281         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
70282         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
70283         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
70284         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
70285         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
70286         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
70287         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
70288         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
70289         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
70290         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
70291         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
70292         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
70293         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
70294         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
70295         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
70296         * tests/unictype/test-block_list.c (ASSERT): Likewise.
70297         * tests/unictype/test-block_of.c (ASSERT): Likewise.
70298         * tests/unictype/test-block_test.c (ASSERT): Likewise.
70299         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
70300         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
70301         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
70302         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
70303         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
70304         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
70305         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
70306         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
70307         * tests/unictype/test-combining.c (ASSERT): Likewise.
70308         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
70309         * tests/unictype/test-digit.c (ASSERT): Likewise.
70310         * tests/unictype/test-mirror.c (ASSERT): Likewise.
70311         * tests/unictype/test-numeric.c (ASSERT): Likewise.
70312         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
70313         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
70314         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
70315         * tests/unictype/test-scripts.c (ASSERT): Likewise.
70316         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
70317         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
70318         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
70319         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
70320         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
70321         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
70322         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
70323         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
70324         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
70325         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
70326         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
70327         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
70328         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
70329         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
70330         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
70331         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
70332         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
70333         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
70334         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
70335         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
70336         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
70337         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
70338         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
70339         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
70340         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
70341         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
70342         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
70343         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
70344         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
70345         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
70346         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
70347         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
70348         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
70349         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
70350         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
70351         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
70352         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
70353         Reported by Eric Blake.
70355 2008-04-11  Bruno Haible  <bruno@clisp.org>
70357         * lib/wchar.in.h: Tweak comment.
70359 2008-04-11  Bruno Haible  <bruno@clisp.org>
70361         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
70362         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
70363         gl_COMMON.
70364         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
70366 2008-04-11  Bruno Haible  <bruno@clisp.org>
70368         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
70370 2008-04-11  Simon Josefsson  <simon@josefsson.org>
70372         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
70373         of attempting to use non-existing /dev/*random.  Based on patch
70374         from Adam Strzelecki <ono@java.pl> in
70375         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
70377 2008-04-08  Bruno Haible  <bruno@clisp.org>
70379         Add tentative support for emx+gcc.
70380         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
70381         * lib/fpurge.c (fpurge): Likewise.
70382         * lib/freadable.c (freadable): Likewise.
70383         * lib/freadahead.c (freadahead): Likewise.
70384         * lib/freading.c (freading): Likewise.
70385         * lib/freadptr.c (freadptr): Likewise.
70386         * lib/freadseek.c (freadptrinc): Likewise.
70387         * lib/fseeko.c (rpl_fseeko): Likewise.
70388         * lib/fseterr.c (fseterr): Likewise.
70389         * lib/fwritable.c (fwritable): Likewise.
70390         * lib/fwriting.c (fwriting): Likewise.
70391         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
70393 2008-04-09  Eric Blake  <ebb9@byu.net>
70395         Avoid some autoconf warnings.
70396         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
70397         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
70398         * m4/afs.m4 (gl_AFS): Likewise.
70399         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
70400         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
70401         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
70402         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
70403         (gl_INTEGER_TYPE_SUFFIX): Likewise.
70404         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
70405         (AC_CHECK_DECLS_ONCE): Likewise.
70406         Rename file...
70407         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
70408         gnulib-tool requires autoconf 2.59 or better.
70409         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
70411 2008-04-08  Eric Blake  <ebb9@byu.net>
70413         Use 'git describe --match' if present (added in git 1.5.5).
70414         * build-aux/git-version-gen: Limit result to tags that match 'v*'
70415         if possible.
70417 2008-04-08  Bruno Haible  <bruno@clisp.org>
70419         Add tentative support for OpenServer.
70420         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
70421         _ptr, _cnt.
70422         * lib/fpurge.c (fpurge): Likewise.
70423         * lib/freadable.c (freadable): Likewise.
70424         * lib/freadahead.c (freadahead): Likewise.
70425         * lib/freading.c (freading): Likewise.
70426         * lib/freadptr.c (freadptr): Likewise.
70427         * lib/freadseek.c (freadptrinc): Likewise.
70428         * lib/fseeko.c (rpl_fseeko): Likewise.
70429         * lib/fseterr.c (fseterr): Likewise.
70430         * lib/fwritable.c (fwritable): Likewise.
70431         * lib/fwriting.c (fwriting): Likewise.
70432         Reported by Roger Cornelius <rac@tenzing.org> and
70433         Brian K. White <brian@aljex.com>.
70435 2008-04-06  Jim Meyering  <meyering@redhat.com>
70437         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
70439 2008-04-06  Bruno Haible  <bruno@clisp.org>
70441         Avoid possible error with non-ASCII bytes in UTF-8 locales.
70442         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
70443         * tests/test-printf-posix.sh: Likewise.
70444         * tests/test-vfprintf-posix.sh: Likewise.
70445         * tests/test-vprintf-posix.sh: Likewise.
70446         * tests/test-xprintf-posix.sh: Likewise.
70448 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70450         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
70451         hide error from 'ls', needed on OS/2.
70452         Report by Elbert Pol <elbert.pol@gmail.com>.
70454 2008-04-04  Eric Blake  <ebb9@byu.net>
70456         Make test-fseeko.c failures meaningful.
70457         * tests/test-fseeko.c: Print line number on failure.
70458         * tests/test-fseek.c: Likewise.
70459         Reported by Nelson H. F. Beebe.
70461         Improve strtod bug detection check.
70462         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
70463         required for Solaris 10.
70464         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
70466 2008-04-04  Bruno Haible  <bruno@clisp.org>
70468         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
70469         by m4/setenv.m4.
70471 2008-04-03  Eric Blake  <ebb9@byu.net>
70473         Ensure sane .version contents.
70474         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
70475         version string.
70476         * build-aux/git-version-gen: Improve documentation.
70478         Make GNU make output nicer.
70479         * top/GNUmakefile [!_have-Makefile]: Add dependency on
70480         MAKECMDGOALS to enforce message for all command line targets.  Set
70481         srcdir for use in maint.mk.
70483         Another maintainer tweak.
70484         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
70485         a target that regenerates version.
70487 2008-04-03  Jim Meyering  <meyering@redhat.com>
70489         vc-list-files: don't cause coreutils "make po-check" failure
70490         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
70492 2008-04-03  Eric Blake  <ebb9@byu.net>
70494         Allow VPATH usage of vc-list-files.
70495         * build-aux/vc-list-files (scriptversion): Add timestamp.
70496         (options): Add --help, --version, -C.
70497         (CVS): Support installed cvsu.
70499 2008-04-02  Bruno Haible  <bruno@clisp.org>
70501         Avoid some "statement with no effect" warnings from gcc.
70502         * tests/test-wctype.c (main): Explicitly ignore unused values.
70503         Reported by Jim Meyering.
70505 2008-04-02  Jim Meyering  <meyering@redhat.com>
70507         Avoid some warnings from "gcc -Wshadow".
70508         * tests/test-frexp.c (exp): Define to a different identifier.
70509         * tests/test-frexpl.c (exp): Likewise.
70511 2008-04-03  Jim Meyering  <meyering@redhat.com>
70513         bootstrap: remove dangling *.[ch] symlinks from lib
70514         * build-aux/bootstrap [dangling symlink removal]: Move find's
70515         -depth option to precede all others, to avoid a warning.
70516         Remove *.[ch] files too, and from "$source_base" (usually lib/).
70518 2008-04-02  Bruno Haible  <bruno@clisp.org>
70520         Avoid some warnings from "gcc -Wshadow".
70521         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
70522         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
70523         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
70524         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
70525         Reported by Jim Meyering.
70527 2008-04-01  Bruno Haible  <bruno@clisp.org>
70529         Fix test to work on IRIX 6.5 with cc.
70530         * tests/test-math.c (numeric_equal): New function.
70531         (main): Use it.
70533 2008-04-01  Bruno Haible  <bruno@clisp.org>
70535         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
70537 2008-04-01  Bruno Haible  <bruno@clisp.org>
70539         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
70540         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
70541         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
70542         (Depends-on): Remove math.
70544         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
70545         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
70546         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
70547         (Depends-on): Remove math.
70549         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
70550         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
70551         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
70552         (Depends-on): Remove math.
70553         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
70554         (Depends-on): Remove math.
70556         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
70557         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
70558         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
70559         (Depends-on): Remove math.
70560         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
70561         (Depends-on): Remove math.
70563         * tests/test-round1.c: Include nan.h.
70564         (main): Use NaNd instead of NAN.
70565         * modules/round-tests (Files): Add tests/nan.h.
70567         * tests/test-trunc1.c: Include nan.h.
70568         (main): Use NaNd instead of NAN.
70569         * modules/trunc-tests (Files): Add tests/nan.h.
70571         * tests/test-roundf1.c: Include nan.h.
70572         (main): Use NaNf instead of NAN.
70573         * modules/roundf-tests (Files): Add tests/nan.h.
70575         * tests/test-truncf1.c: Include nan.h.
70576         (main): Use NaNf instead of NAN.
70577         * modules/truncf-tests (Files): Add tests/nan.h.
70579         * tests/test-ceilf1.c: Include nan.h.
70580         (main): Use NaNf instead of NAN.
70581         * modules/ceilf-tests (Files): Add tests/nan.h.
70583         * tests/test-floorf1.c: Include nan.h.
70584         (main): Use NaNf instead of NAN.
70585         * modules/floorf-tests (Files): Add tests/nan.h.
70587         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
70588         (main): Use NaNf instead of NAN.
70589         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
70591         * tests/test-isnand.c: Include nan.h instead of <math.h>.
70592         (main): Use NaNd instead of NAN.
70593         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
70595         * tests/test-frexp.c: Include nan.h.
70596         (main): Use NaNd instead of NAN.
70597         * modules/frexp-tests (Files): Add tests/nan.h.
70599         * lib/isnan.c: Don't include <math.h>.
70600         (FUNC): Don't use NAN macro.
70601         * modules/isnand-nolibm (Depends-on): Remove math.
70602         * modules/isnanf-nolibm (Depends-on): Remove math.
70603         * modules/isnanl (Depends-on): Remove math.
70604         * modules/isnanl-nolibm (Depends-on): Remove math.
70606         * tests/nan.h: New file.
70608 2008-04-01  Eric Blake  <ebb9@byu.net>
70610         Fix typos.
70611         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
70612         values to be the right type.
70614         For now, cater to gnulib strtod inaccuracies.
70615         * tests/test-strtod.c (main): Allow 1-ulp error on expected
70616         fractional results.  While not as nice from a QoI perspective, it
70617         is a quicker patch than correctly implementing decimal to binary
70618         rounding.
70620 2008-03-31  Eric Blake  <ebb9@byu.net>
70622         Guarantee a definition of NAN.
70623         * lib/math.in.h (NAN): Define if missing.
70624         * tests/test-math.c (main): Test it.
70625         * doc/posix-headers/math.texi (math.h): Document this.
70626         * lib/isnan.c (rpl_isnand): Use it.
70627         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
70628         * tests/test-floorf1.c (NaN): Likewise.
70629         * tests/test-frexp.c (NaN): Likewise.
70630         * tests/test-isnand.c (NaN): Likewise.
70631         * tests/test-isnanf.c (NaN): Likewise.
70632         * tests/test-round1.c (NaN): Likewise.
70633         * tests/test-roundf1.c (NaN): Likewise.
70634         * tests/test-snprintf-posix.h (NaN): Likewise.
70635         * tests/test-sprintf-posix.h (NaN): Likewise.
70636         * tests/test-trunc1.c (NaN): Likewise.
70637         * tests/test-truncf1.c (NaN): Likewise.
70638         * tests/test-vasnprintf-posix.c (NaN): Likewise.
70639         * tests/test-vasprintf-posix.c (NaN): Likewise.
70640         * modules/isnand-nolibm (Depends-on): Add math.
70641         * modules/isnanf-nolibm (Depends-on): Likewise.
70642         * modules/isnanl (Depends-on): Likewise.
70643         * modules/isnanl-nolibm (Depends-on): Likewise.
70644         * modules/snprintf-posix-tests (Depends-on): Likewise.
70645         * modules/sprintf-posix-tests (Depends-on): Likewise.
70646         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
70647         * modules/vsprintf-posix-tests (Depends-on): Likewise.
70648         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
70649         * modules/vasprintf-posix-tests (Depends-on): Likewise.
70651 2008-03-31  Bruno Haible  <bruno@clisp.org>
70653         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
70654         * doc/posix-functions/strtod.texi: Likewise.
70656 2008-03-31  Bruno Haible  <bruno@clisp.org>
70658         * tests/test-strtod.c (main): Don't use C99 syntax.
70660 2008-03-31  Bruno Haible  <bruno@clisp.org>
70662         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
70663         Reported by Eric Blake.
70665 2008-03-31  Jim Meyering  <meyering@redhat.com>
70667         Don't compare actual signbit return values.
70668         * tests/test-strtod.c (main): Rather, compare only their
70669         zero/non-zero nature.
70671 2008-03-31  Eric Blake  <ebb9@byu.net>
70673         More strtod documentation.
70674         * doc/posix-functions/strtod.texi (strtod): Interpret more test
70675         failures as distinct bugs.
70677 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
70679         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
70680         Problem reported by Erik Benada in
70681         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
70683 2008-03-30  Bruno Haible  <bruno@clisp.org>
70685         * tests/test-strtod.c: Add comments about which assertion fails on which
70686         platform.
70687         * doc/posix-functions/strtod.texi: Add info about many more platforms.
70689 2008-03-30  Eric Blake  <ebb9@byu.net>
70691         Test signbit behavior on zeros.
70692         * tests/test-signbit.c (test_signbitf): Add tests for zero.
70693         (test_signbitd, test_signbitl): Likewise.
70695         More strtod touchups.
70696         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
70697         sign of negative underflow, for now.  Use .5, not .1.
70698         * doc/posix-functions/strtod.texi (strtod): Mention these
70699         limitations.
70700         Reported by Jim Meyering.
70702 2008-03-30  Bruno Haible  <bruno@clisp.org>
70704         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
70705         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
70707 2008-03-30  Bruno Haible  <bruno@clisp.org>
70709         Avoid failure when attempting to return empty iconv results on some
70710         platforms.
70711         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
70712         allocation, don't report ENOMEM when the resulting string is empty.
70714 2008-03-30  Bruno Haible  <bruno@clisp.org>
70716         Fix buffer overrun.
70717         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
70718         Don't consider the width for tmp_length. Check count against tmp_length
70719         before doing the padding. Ensure enough allocation during padding.
70721 2008-03-30  Eric Blake  <ebb9@byu.net>
70723         strtod touchups.
70724         * lib/strtod.c (strtod): Avoid compiler warnings.
70725         Reported by Jim Meyering.
70727 2008-03-30  Bruno Haible  <bruno@clisp.org>
70729         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
70730         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
70731         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
70732         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
70733         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
70734         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
70735         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
70736         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
70738         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
70739         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
70740         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
70741         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
70742         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
70743         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
70744         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
70745         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
70747         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
70748         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
70749         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
70750         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
70751         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
70752         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
70753         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
70754         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
70756         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
70757         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
70759         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
70760         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
70762         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
70763         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
70765         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
70766         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
70767         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
70769         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
70770         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
70771         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
70773         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
70774         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
70775         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
70777         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
70778         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
70779         * modules/vasprintf (Depends-on): Add EOVERFLOW.
70781         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
70782         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
70783         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
70784         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
70785         (Depends-on): Add EOVERFLOW.
70786         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
70787         (Depends-on): Add EOVERFLOW.
70788         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
70789         (Depends-on): Add EOVERFLOW.
70790         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
70791         (Depends-on): Add EOVERFLOW.
70792         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
70793         (Depends-on): Add EOVERFLOW.
70794         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
70795         (Depends-on): Add EOVERFLOW.
70796         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
70797         (Depends-on): Add EOVERFLOW.
70798         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
70799         (Depends-on): Add EOVERFLOW.
70801         * lib/sprintf.c (EOVERFLOW): Remove fallback.
70802         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
70803         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
70805         * lib/snprintf.c (EOVERFLOW): Remove fallback.
70806         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
70807         * modules/snprintf (Depends-on): Add EOVERFLOW.
70809         * lib/poll.c (EOVERFLOW): Remove fallback.
70810         * modules/poll (Depends-on): Add EOVERFLOW.
70812         * lib/getugroups.c (EOVERFLOW): Remove fallback.
70813         * modules/getugroups (Depends-on): Add EOVERFLOW.
70815         * lib/getdelim.c (EOVERFLOW): Remove fallback.
70816         * modules/getdelim (Depends-on): Add EOVERFLOW.
70818         * lib/ftell.c (EOVERFLOW): Remove fallback.
70819         * modules/ftell (Depends-on): Add EOVERFLOW.
70821         * lib/fprintf.c (EOVERFLOW): Remove fallback.
70822         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
70823         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
70825         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
70827         * modules/EOVERFLOW-tests: New file.
70828         * tests/test-EOVERFLOW.c: New file.
70830         * modules/EOVERFLOW: New file.
70831         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
70833 2008-03-30  Bruno Haible  <bruno@clisp.org>
70835         Fix bug introduced on 2007-06-10.
70836         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
70837         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
70839 2008-03-30  Bruno Haible  <bruno@clisp.org>
70841         Improve freadseek's efficiency after ungetc.
70842         * lib/freadseek.c: Include freadahead.h.
70843         (freadptrinc): New function, extracted from freadseek.
70844         (freadseek): Use it in a loop. Use freadahead to determine the number
70845         of loop iterations.
70846         * modules/freadseek (Depends-on): Add freadahead.
70847         (configure.ac): Require AC_C_INLINE.
70849 2008-03-30  Bruno Haible  <bruno@clisp.org>
70851         * lib/freadseek.c (freadseek): Don't ignore the return value of
70852         freadptr.
70854 2008-03-29  Eric Blake  <ebb9@byu.net>
70856         Add hex float support.
70857         * modules/strtod (Depends-on): Add c-ctype.
70858         (Link): Mention POW_LIB.
70859         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
70860         whitespace between 'e' and exponent.
70861         * tests/test-strtod.c (main): Enable hex float tests.
70862         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
70863         now provides.
70865         Document various strtod bugs, with some fixes.
70866         * doc/posix-functions/strtod.texi (strtod): Document bugs with
70867         "-0x", "inf", "nan", and hex constants.
70868         * doc/posix-functions/atof.texi (atof): Likewise.
70869         * modules/stdlib (Makefile.am): Support strtod.
70870         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
70871         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
70872         detect additional strtod bugs.
70873         * lib/stdlib.in.h (rpl_strtod): Add declarations.
70874         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
70875         bool where appropriate.  Parse 'inf' and 'nan'.
70876         * tests/test-strtod.c: New file.
70877         * modules/strtod (Depends-on): Add stdbool, stdlib.
70878         (configure.ac): Turn on module indicator.
70879         * modules/strtod-tests: New module.
70881 2008-03-29  Eric Blake  <ebb9@byu.net>
70883         Fix ftell on mingw.
70884         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
70885         * modules/ftell-tests (Depends-on): Add binary-io.
70886         * modules/ftello-tests (Depends-on): Likewise.
70887         * tests/test-ftell.c (main): Enhance test to cover behavior after
70888         ungetc.  Enforce binary mode.
70889         * tests/test-ftello.c (main): Likewise.
70891         Pass test-freadseek on cygwin.
70892         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
70893         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
70894         ungetc buffer.
70896         * tests/test-fflush2.c (main): Fix typo.
70898 2008-03-29  Bruno Haible  <bruno@clisp.org>
70900         * tests/test-fflush2.c (main): Temporarily disable the contents of
70901         this test.
70902         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
70903         Reported by Eric Blake.
70905 2008-03-28  Simon Josefsson  <simon@josefsson.org>
70907         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
70908         (GC_SHA224_DIGEST_SIZE): Add.
70910         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
70911         (gc_hash_digest_length): Likewise.
70912         (gc_hash_buffer): Likewise.
70914 2008-03-25  Bruno Haible  <bruno@clisp.org>
70916         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
70917         detail which gettext release to use.
70918         Reported by Simon Josefsson.
70920 2008-03-26  Jim Meyering  <meyering@redhat.com>
70922         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
70923         * modules/gnumakefile (clean-GNUmakefile): Also, use
70924         test ... && ... || : syntax rather than if-then ... fi.
70926         gnumakefile: Don't double-quote-expand $(VPATH) value.
70927         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
70929 2008-03-24  Eric Blake  <ebb9@byu.net>
70931         Alter GNUmakefile to install into top directory.
70932         * modules/maintainer-makefile: Split, and add dependency...
70933         * modules/gnumakefile: to this new module.
70934         * build-aux/GNUmakefile: Move...
70935         * top/GNUmakefile: ...here.
70936         * build-aux/maint.mk: Move...
70937         * top/maint.mk: ...here.
70938         * MODULES.html.sh (Support for maintaining...): Document new
70939         module.
70941 2008-03-23  Bruno Haible  <bruno@clisp.org>
70943         * gnulib-tool: New options --vc-files, --no-vc-files.
70944         (func_usage): Document them.
70945         (vc_files): New variable.
70946         (func_import): Consider vc_files.
70947         (func_create_testdir): Set vc_files to empty.
70948         Suggested by Jim Meyering and Karl Berry.
70950 2008-03-23  Bruno Haible  <bruno@clisp.org>
70952         Fix regex compilation error on HP-UX 11.
70953         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
70954         * modules/regex (Files): Add m4/mbstate_t.m4.
70955         Reported by Ton Voon <ton.voon@altinity.com>.
70957 2008-03-23  Bruno Haible  <bruno@clisp.org>
70959         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
70961 2008-03-23  Eric Blake  <ebb9@byu.net>
70962             Bruno Haible  <bruno@clisp.org>
70964         Install files from top/ in the destination directory.
70965         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
70966         augmentation also for the files from top/.
70967         (func_import, func_create_testdir): Rewrite file names:
70968         top/filename -> filename.
70970 2008-03-23  Bruno Haible  <bruno@clisp.org>
70972         Tweak "gnulib --version" output.
70973         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
70975 2008-03-23  Bruno Haible  <bruno@clisp.org>
70977         Tweak "gnulib --version" output.
70978         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
70979         rather than contents of ChangeLog, when possible.
70981 2008-03-21  Eric Blake  <ebb9@byu.net>
70983         More --version tweaks.
70984         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
70985         date of last ChangeLog entry.
70987 2008-03-21  Jim Meyering  <meyering@redhat.com>
70989         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
70991 2008-03-20  Eric Blake  <ebb9@byu.net>
70993         VPATH fix.
70994         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
70996 2008-03-20  Simon Josefsson  <simon@josefsson.org>
70998         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
70999         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
71001 2008-03-20  Eric Blake  <ebb9@byu.net>
71003         Sync GNUmakefile with coreutils.
71004         * build-aux/GNUmakefile (have-Makefile): Rename...
71005         (_have-Makefile): ...to this, for namespace consideration.
71006         (GNUmakefile.cfg): Include, if present.
71007         (_autoreconf): Define a default.
71008         (_is-dist-target): New rule for rebuilds to pick up intra-release
71009         version.
71010         (maint-cfg.mk): Rename...
71011         (cfg.mk): ...to this.
71013 2008-03-18  Jim Meyering  <meyering@redhat.com>
71015         New script and module: mktempd
71016         * MODULES.html.sh (maint+release support): Add mktempd.
71017         * build-aux/mktempd: New file.
71018         * modules/mktempd: New file.
71020 2008-03-15  Jim Meyering  <meyering@redhat.com>
71022         Undo last change.
71023         * lib/sha1.c, lib/md5.c: 63 != ~63.
71024         Reported by Andreas Schwab.
71026         sha1.c, md5.c: Hoist a redundant expression.
71027         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
71028         "ctx->buflen" only once, before calling *_process_block.
71029         * lib/md5.c (md5_process_bytes): Likewise.
71031 2008-03-14  Eric Blake  <ebb9@byu.net>
71033         Bump copyright year in files generated by gnulib-tool.
71034         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
71035         gnulib-tool, rather than hard-coding it.
71037         Fix 'gnulib-tool --version' output to work with git.
71038         * gnulib-tool (func_gnulib_dir): New function, extracted from...
71039         (startup): ...here.
71040         (func_version): Use it to invoke git-version-gen, rather than
71041         relying on CVS keyword expansion.  Modernize wording.
71042         (cvsdatestamp, last_checkin_date, version): Kill unused
71043         variables.
71045 2008-03-12  Jim Meyering  <meyering@redhat.com>
71047         Recognize optional cast of the argument to free.
71048         * build-aux/useless-if-before-free: Update regexps.
71050         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
71052 2008-03-11  Bruno Haible  <bruno@clisp.org>
71054         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
71055         by a single package.
71056         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
71057         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
71058         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
71059         Reported by Sam Steingold <sds@gnu.org>.
71061 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
71063         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
71064         repositories.
71066 2008-03-11  Bruno Haible  <bruno@clisp.org>
71068         Avoid conflicts between local macro definitions.
71069         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
71070         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
71072 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
71073             Bruno Haible  <bruno@clisp.org>
71075         Make va_copy work with some version of xlc on AIX 5.1.
71076         * lib/stdarg.in.h: New file.
71077         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
71078         On AIX, use a <stdarg.h> file substitute.
71079         * modules/stdarg (Files): Add lib/stdarg.in.h.
71080         (Depends-on): Add include_next.
71081         (Makefile.am): Build a stdarg.h substitute if requested.
71082         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
71084 2008-03-10  Bruno Haible  <bruno@clisp.org>
71086         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
71087         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
71088         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
71090 2008-03-10  Bruno Haible  <bruno@clisp.org>
71092         * modules/stdlib (Depends-on): Add include_next, remove
71093         absolute-header.
71095 2008-03-09  Bruno Haible  <bruno@clisp.org>
71097         * lib/freadahead.h (freadahead): Document more precisely.
71098         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
71099         the sum of both buffer sizes.
71100         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
71101         * NEWS: Document the change.
71103 2008-03-09  Bruno Haible  <bruno@clisp.org>
71105         Extend freadptr to return also the buffer size.
71106         * lib/freadptr.h (freadptr): Add sizep argument.
71107         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
71108         (freadptr): Add sizep argument. Determine buffer size like freadahead
71109         does.
71110         * tests/test-freadptr.c: Don't include freadahead.h.
71111         (main): Adapt for new calling convention of freadptr.
71112         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
71113         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
71114         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
71115         tests/test-freadptr2.sh.
71116         (Depends): Remove freadahead.
71117         (TESTS): Add test-freadptr2.sh.
71118         (check_PROGRAMS): Add test-freadptr2.
71120 2008-03-09  Bruno Haible  <bruno@clisp.org>
71122         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
71123         Report and solution by Simon Josefsson.
71125 2008-03-06  Bruno Haible  <bruno@clisp.org>
71127         Make fflush after ungetc work on BSD platforms.
71128         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
71129         * tests/test-fflush2.c: New file.
71130         * tests/test-fflush2.sh: New file.
71131         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
71132         tests/test-fflush2.c.
71133         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
71134         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
71136 2008-03-06  Eric Blake  <ebb9@byu.net>
71138         Likewise for ftello.
71139         * modules/ftello (Dependencies): Add extensions.
71140         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
71142 2008-03-06  Bruno Haible  <bruno@clisp.org>
71144         * modules/fseeko (Dependencies): Add extensions.
71145         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
71146         Needed on glibc systems.
71148 2008-03-06  Bruno Haible  <bruno@clisp.org>
71150         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
71151         email address.
71152         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
71154 2008-03-06  Bruno Haible  <bruno@clisp.org>
71156         * users.txt: Add libgnupdf.
71158 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
71160         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
71161         (Header File Substitutes, Function Substitutes,
71162         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
71163         (Build robot for gnulib): Fix typo.
71165 2008-03-06  Bruno Haible  <bruno@clisp.org>
71167         * doc/gnulib-tool.texi (VCS Issues): Small updates.
71168         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
71170 2008-03-06  Bruno Haible  <bruno@clisp.org>
71172         * doc/func.texi: New file, extracted from doc/gnulib.texi.
71173         * doc/gnulib.texi: Include it.
71175 2008-03-06  Simon Josefsson  <simon@josefsson.org>
71177         * modules/func (License): Change license to unlimited; there was
71178         no LGPL parts in the module anyway.
71180 2008-03-06  Simon Josefsson  <simon@josefsson.org>
71182         * modules/__func__: Renamed to modules/func.
71183         * modules/__func__-tests: Renamed to modules/func-tests.
71184         * tests/test-__func__.c: Renamed to tests/test-func.c.
71185         * m4/__func__.m4: Renamed to m4/func.m4.
71186         * doc/gnulib.texi (__func__): Section renamed to func.
71187         Suggested by Eric Blake <ebb9@byu.net>.
71189 2008-03-06  Simon Josefsson  <simon@josefsson.org>
71191         * doc/gnulib.texi (__func__): Use C99 terminology when talking
71192         about __func__.  Make example self-contained.  Suggested by Eric
71193         Blake <ebb9@byu.net>.
71195         * tests/test-__func__.c (main): Avoid extraneous () around __func.
71196         Suggested by Eric Blake <ebb9@byu.net>.
71198 2008-03-06  Simon Josefsson  <simon@josefsson.org>
71200         * modules/__func__: New file.
71201         * modules/__func__-tests: New file.
71202         * tests/test-__func__.c: New file.
71203         * m4/__func__.m4: New file.
71204         * doc/gnulib.texi (__func__): Document __func__ module.
71206 2008-03-05  Simon Josefsson  <simon@josefsson.org>
71208         * modules/byteswap (License): Re-license as LGPLv2+.
71210 2008-03-05  Simon Josefsson  <simon@josefsson.org>
71212         * doc/Makefile: Add pdf target.
71214 2008-03-05  Simon Josefsson  <simon@josefsson.org>
71216         * modules/inline (License): Use 'unlimited', since there are only
71217         *.m4 files in this module.
71219 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
71220             Bruno Haible  <bruno@clisp.org>
71222         Add support for HP C 7.1 on OpenVMS 8.3.
71223         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
71225 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
71227         Update VMS specifics.
71228         * lib/getopt.c [VMS]: Remove include of unixlib.h.
71230 2008-03-02  Jim Meyering  <meyering@redhat.com>
71232         Remove the last dependency on the "free" module.
71233         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
71234         Reported by Bob Proulx.
71236         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
71238         Remove useless "if" tests before free.  Deprecate "free" module.
71239         * doc/posix-functions/free.texi: Mention that this
71240         module is no longer useful.
71241         * modules/free (Notice): Say this module is obsolete.
71242         * modules/readutmp (Depends-on): Remove free.
71243         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
71244         * lib/putenv.c (putenv): Likewise.
71245         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
71246         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
71247         * tests/test-c-strcasestr.c (main): Likewise.
71248         * tests/test-c-strstr.c (main): Likewise.
71249         * tests/test-mbscasestr1.c (main): Likewise.
71250         * tests/test-mbscasestr2.c (main): Likewise.
71251         * tests/test-mbsstr1.c (main): Likewise.
71252         * tests/test-mbsstr2.c (main): Likewise.
71253         * tests/test-memmem.c (main): Likewise.
71254         * tests/test-strcasestr.c (main): Likewise.
71255         * tests/test-striconv.c (main): Likewise.
71256         * tests/test-striconveh.c (main): Likewise.
71257         * tests/test-striconveha.c (main): Likewise.
71258         * tests/test-strstr.c (main): Likewise.
71260         * build-aux/git-version-gen: Adjust a comment and the Usage string.
71262         bootstrap: sync from coreutils again
71263         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
71265 2008-03-01  Jim Meyering  <meyering@redhat.com>
71267         bootstrap: sync from coreutils
71268         * build-aux/bootstrap (update_po_files): Copy a .po file into place
71269         also when the target doesn't exist.
71271 2008-03-01  Eric Blake  <ebb9@byu.net>
71273         Fix bugs in last patch.
71274         * lib/memchr2.c (memchr2): Fix typo.
71275         * tests/test-memchr2.c: Test previous bug, and don't use GNU
71276         extension.
71277         Reported by Bruce Korb.
71279         New module 'memchr2'.
71280         * modules/memchr2: New file.
71281         * modules/memchr2-tests: Likewise.
71282         * lib/memchr2.h: Likewise.
71283         * lib/memchr2.c: Likewise, based on memchr.c.
71284         * tests/test-memchr2.c: New test.
71285         * MODULES.html.sh (String handling): Add memchr2.
71287 2008-02-29  Bruno Haible  <bruno@clisp.org>
71289         * modules/freadseek-tests: New file.
71290         * tests/test-freadseek.sh: New file.
71291         * tests/test-freadseek.c: New file.
71293         New module 'freadseek'.
71294         * modules/freadseek: New file.
71295         * lib/freadseek.h: New file.
71296         * lib/freadseek.c: New file.
71297         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
71299 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
71301         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
71302         wydawca.
71304         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
71305         program_invocation_name and program_invocation_short_name are
71306         present.
71308 2008-02-28  Bruno Haible  <bruno@clisp.org>
71310         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
71311         * tests/test-freadptr.sh: Also test non-seekable stdin.
71313 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
71315         * build-aux/bootstrap (source_base, m4_base)
71316         (doc_base, tests_base): New variables.
71317         (gnulib_tool_options): Do not hardcode base directories, use
71318         the above variables instead.
71320 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
71322         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
71324 2008-02-28  Bruno Haible  <bruno@clisp.org>
71326         * modules/freadptr-tests: New file.
71327         * tests/test-freadptr.sh: New file.
71328         * tests/test-freadptr.c: New file.
71330         New module 'freadptr'.
71331         * modules/freadptr: New file.
71332         * lib/freadptr.h: New file.
71333         * lib/freadptr.c: New file.
71334         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
71336 2008-02-26  Karl Berry  <karl@freefriends.org>
71338         Sync from Libtool:
71339         * libltdl/argz.c (argz_add, argz_count): New functions.
71340         * libltdl/argz.in.h: Declare them.
71341         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
71343 2008-02-22  Bruno Haible  <bruno@clisp.org>
71345         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
71346         is a pointer type.  Needed for HP-UX 10.
71347         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
71348         * doc/posix-functions/gmtime_r.texi: Likewise.
71349         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
71351 2008-02-24  Bruno Haible  <bruno@clisp.org>
71353         * modules/environ-tests: New file.
71354         * tests/test-environ.c: New file.
71356         New module 'environ'.
71357         * modules/environ: New file.
71358         * lib/unistd.in.h (environ): New declaration.
71359         * m4/environ.m4: New file.
71360         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
71361         after use.
71362         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
71363         HAVE_DECL_ENVIRON.
71364         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
71365         HAVE_DECL_ENVIRON.
71366         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
71367         wrong claim that 'environ' is missing on some systems.
71368         * modules/execute (Depends-on): Add environ.
71369         * lib/execute.c (environ): Remove fallback declaration.
71370         * modules/pipe (Depends-on): Add environ.
71371         * lib/pipe.c (environ): Remove fallback declaration.
71372         * modules/setenv (Depends-on): Add environ.
71373         * lib/setenv.c (environ): Remove fallback declaration.
71374         * modules/unsetenv (Depends-on): Add environ.
71375         * lib/unsetenv.c (environ): Remove fallback declaration.
71376         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
71377         m4/environ.m4.
71378         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
71379         (gl_PREREQ_UNSETENV): Likewise.
71381 2008-02-24  Bruno Haible  <bruno@clisp.org>
71383         * doc/posix-functions/environ.texi: Document the MacOS X problem.
71385 2008-02-20  Bob Proulx  <bob@proulx.com>
71387         Enable use of older two part flavor 'git describe'.
71388         * build-aux/git-version-gen: If using the older two part flavor of
71389         git version then recreate the third part now present in the
71390         newer three part flavor of git describe.
71392 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
71394         * lib/fts.c (fts_build): Typo correction to comment.
71396 2008-02-17  Bruno Haible  <bruno@clisp.org>
71398         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
71399         generating no-op conflicts.
71401 2008-02-17  Bruno Haible  <bruno@clisp.org>
71403         Speed up by 10%.
71404         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
71405         result_entries, rather than an index-based loop.
71407 2008-02-17  Bruno Haible  <bruno@clisp.org>
71409         Speed up by 25%.
71410         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
71411         'hashcode_cached'.
71412         (entry_create): New function.
71413         (entry_hashcode): Use the cached hashcode if possible.
71414         (read_changelog_file, try_split_merged_entry): Use entry_create.
71416 2008-02-17  Bruno Haible  <bruno@clisp.org>
71418         Speed up from O(n^2) to O(n) for long ChangeLog files.
71419         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
71420         (read_changelog_file): Change implementation of entries_reversed list
71421         to rbtreehash.
71422         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
71424 2008-02-17  Bruno Haible  <bruno@clisp.org>
71426         New option --split-merged-entry.
71427         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
71428         (find_paragraph_end, try_split_merged_entry): New functions.
71429         (long_options): Add option --split-merged-entry.
71430         (usage): Document option --split-merged-entry.
71431         (main): Implement option --split-merged-entry.
71432         Reported by Eric Blake.
71434 2008-02-17  Bruno Haible  <bruno@clisp.org>
71436         * lib/git-merge-changelog.c: Include c-strstr.h.
71437         (main): Support the "git pull --rebase" situation.
71438         * modules/git-merge-changelog (Depends-on): Add c-strstr.
71439         Reported by Eric Blake.
71441 2008-02-16  Eric Blake  <ebb9@byu.net>
71443         Avoid doubling \ in common case of "c-maybe" quoting style.
71444         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
71445         eliding outer quotes.
71446         * lib/quotearg.h: Document this.
71447         * tests/test-quotearg.c (result_strings, inputs, results_g)
71448         (flag_results, locale_results): Test it by adding a new string to
71449         each test group.
71450         (compare_strings): Test new string.
71452 2008-02-13  Eric Blake  <ebb9@byu.net>
71454         Avoid trigraph quoting in default output.
71455         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
71456         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
71457         unless explicitly requested.
71458         * tests/test-quotearg.c (flag_results, main): Add additional tests.
71460 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
71462         Don't rely on signed integer overflowing to negative value.
71463         * lib/getugroups.c (getugroups): Include <limits.h>.
71464         Instead, compare against INT_MAX, and increment only if the test passes.
71466 2008-02-13  Jim Meyering  <meyering@redhat.com>
71467         and Eric Blake  <ebb9@byu.net>
71469         Avoid shadowing warning and compile errors on Linux.
71470         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
71471         forwarding macros on Linux.
71472         (dcgettext): Define a stub, for Linux.
71473         (results_g, main): Avoid warnings.
71475 2008-02-12  Eric Blake  <ebb9@byu.net>
71477         Silence warning in last patch.
71478         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
71480         Quotearg part 4: add tests, fix c-maybe colon quoting.
71481         * lib/quotearg.h: Improve documentation.
71482         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
71483         escapes when adding outer quotes.  When quoting trigraphs, use
71484         valid C notation.  When quoting NUL, omit extra characters if next
71485         character is not digit.  Alter prototype.
71486         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
71487         callers.
71488         * modules/quotearg-tests: New module.
71489         * tests/test-quotearg.c: New test.
71491 2008-02-07  Eric Blake  <ebb9@byu.net>
71493         Quotearg part 3: add flag to control outer quote elision.
71494         * lib/quotearg.h (c_maybe_quoting_style): New style.
71495         (enum quoting_flags): Better documentation of flags.
71496         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
71497         c-maybe style.
71498         (quotearg_buffer_restyled): Handle new flag to elide outer
71499         quotes.
71501         Quotearg part 2: add flag that can control NUL elision.
71502         * lib/quotearg.h (set_quoting_flags): New prototype.
71503         * lib/quotearg.c (struct quoting_options): Add flag field.
71504         (set_quoting_flags): New function.
71505         (quotearg_buffer_restyled): Add flags parameter.
71506         (quotearg_alloc_mem): Set the flag if length cannot be returned.
71507         (quotearg_n_options): Set the flag, since length cannot be
71508         returned.
71509         (quoting_options_from_style): Default flags correctly.
71511         Quotearg part 1: more wrappers, restore quotearg_char state.
71512         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
71513         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
71514         (quotearg_colon_mem): New wrappers.
71515         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
71516         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
71517         functions.
71518         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
71519         (quotearg_colon_mem): New functions.
71521 2008-02-11  Bruno Haible  <bruno@clisp.org>
71523         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
71524         library in the current directory: it does not work with parallel make.
71525         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71527 2008-02-11  Bruno Haible  <bruno@clisp.org>
71529         * .gitattributes: New file.
71531 2008-02-11  Jim Meyering  <meyering@redhat.com>
71533         useless-if-before-free: Fix reversed exit values.
71534         * build-aux/useless-if-before-free: Use correct values
71535         for EXIT_MATCH and EXIT_NO_MATCH.
71537         * build-aux/useless-if-before-free: Close stdout carefully.
71539 2008-02-10  Bruno Haible  <bruno@clisp.org>
71541         New module 'git-merge-changelog'.
71542         * modules/git-merge-changelog: New file.
71543         * lib/git-merge-changelog.c: New file.
71545 2008-02-10  Jim Meyering  <meyering@redhat.com>
71547         useless-if-before-free: New option: --list (-l).
71549         useless-if-before-free: Don't exit immediately upon open failure.
71550         * build-aux/useless-if-before-free: Exit 2 for errors.
71551         Upon failure to open a file, don't exit immediately.
71552         Rather, just warn and continue with any remaining files.
71554 2008-02-10  Bruno Haible  <bruno@clisp.org>
71556         New abstract list operation 'node_set_value'.
71557         * lib/gl_list.h (gl_list_node_set_value): New function.
71558         (struct gl_list_implementation): New field node_set_value.
71559         * lib/gl_list.c (gl_list_node_set_value): New function.
71560         * lib/gl_array_list.c (gl_array_node_set_value): New function.
71561         (gl_array_list_implementation): Update.
71562         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
71563         (gl_carray_list_implementation): Update.
71564         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
71565         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
71566         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
71567         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
71568         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
71569         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
71570         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
71571         Update.
71572         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
71573         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
71574         (gl_sublist_list_implementation): Update.
71576 2008-02-10  Bruno Haible  <bruno@clisp.org>
71578         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
71579         Needed when ELEMENT is #defined to 'some_type *'.
71581 2008-02-10  Jim Meyering  <meyering@redhat.com>
71583         New script and module: useless-if-before-free
71584         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
71585         * build-aux/useless-if-before-free: New file.
71586         * modules/useless-if-before-free: New file.
71588         * build-aux/gitlog-to-changelog: Use committer date, not author date.
71590         xstrtol_error: Fix typo.
71591         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
71592         s/exit_failure/exit_status/.
71594 2008-02-09  Jim Meyering  <meyering@redhat.com>
71596         New script and module: gitlog-to-changelog
71597         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
71598         * modules/gitlog-to-changelog: New file.
71599         * build-aux/gitlog-to-changelog: New file.
71601 2008-02-08  Jim Meyering  <meyering@redhat.com>
71603         Avoid two "parameter unused" warnings.
71604         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
71605         Mark "st" as used.
71607         Use "git COMMAND", not "git-COMMAND".
71608         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
71609         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
71610         * build-aux/git-version-gen: Use "git status", not "git-status".
71612 2008-02-07  Bruno Haible  <bruno@clisp.org>
71614         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
71615         Avoids a crash on Windows Vista.
71616         Reported by Adam Strzelecki <ono@java.pl> via
71617         Simon Josefsson <simon@josefsson.org>.
71619 2008-02-06  Bruno Haible  <bruno@clisp.org>
71621         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
71622         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
71623         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
71624         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
71625         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
71626         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
71627         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
71628         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
71629         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
71630         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
71631         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
71632         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
71633         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
71634         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
71635         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
71636         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
71637         left-adjust flag.
71638         * tests/test-snprintf-posix.h (test_function): Likewise.
71639         * tests/test-sprintf-posix.h (test_function): Likewise.
71640         * tests/test-vasprintf-posix.c (test_function): Likewise.
71641         * doc/posix-functions/fprintf.texi: Update.
71642         * doc/posix-functions/printf.texi: Update.
71643         * doc/posix-functions/snprintf.texi: Update.
71644         * doc/posix-functions/sprintf.texi: Update.
71645         * doc/posix-functions/vfprintf.texi: Update.
71646         * doc/posix-functions/vprintf.texi: Update.
71647         * doc/posix-functions/vsnprintf.texi: Update.
71648         * doc/posix-functions/vsprintf.texi: Update.
71649         Reported by Peter Fales <psfales@alcatel-lucent.com>.
71651 2008-02-06  Bruno Haible  <bruno@clisp.org>
71653         Fix bug introduced on 2008-01-26.
71654         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
71656 2008-02-06  Bruno Haible  <bruno@clisp.org>
71658         Fix bug introduced on 2007-06-10.
71659         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
71660         !NEED_PRINTF_FLAG_ZERO.
71662 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
71664         getloadavg: use libperfstat on AIX5
71665         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
71667 2008-02-03  Bruno Haible  <bruno@clisp.org>
71669         * lib/diffseq.h: Add comments about required #includes.
71670         Reported by Michael Biggs <gnulib@doubleplum.net>.
71672 2008-02-01  Bruno Haible  <bruno@clisp.org>
71674         * users.txt: Add gnuit.
71676 2008-01-31  Bruno Haible  <bruno@clisp.org>
71678         * lib/md4.c (set_uint32): Mark as inline.
71679         * lib/md5.c (set_uint32): Likewise.
71680         * lib/sha1.c (set_uint32): Likewise.
71681         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
71682         * m4/md5.m4 (gl_MD5): Likewise.
71683         * m4/sha1.m4 (gl_SHA1): Likewise.
71685 2008-01-31  Jim Meyering  <meyering@redhat.com>
71687         Use "sizeof VAR", rather than a literal "4".
71688         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
71689         * lib/md4.c (md4_read_ctx): Likewise.
71690         * lib/sha1.c (sha1_read_ctx): Likewise.
71692 2008-01-31  Simon Josefsson  <simon@josefsson.org>
71694         * tests/test-sha1.c: New file, based on test-md5.c.
71696         * modules/crypto/sha1-tests: New file.
71698 2008-01-31  Simon Josefsson  <simon@josefsson.org>
71700         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
71702 2008-01-31  Jim Meyering  <meyering@redhat.com>
71704         Prefer "sizeof v" over the equivalent "4".
71705         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
71706         * lib/md5.c (set_uint32): Likewise.
71707         * lib/sha1.c (set_uint32): Likewise.
71709 2008-01-31  Simon Josefsson  <simon@josefsson.org>
71711         * lib/sha1.c (set_uint32): Mark function as static.
71713 2008-01-31  Simon Josefsson  <simon@josefsson.org>
71715         md2: clarify comments to say that alignment is not required.
71716         * lib/md2.h: Remove warning about alignment in comment.
71717         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
71718         never been required.
71720 2008-01-31  Simon Josefsson  <simon@josefsson.org>
71722         md4: adapt alignment constraint fix from sha1.
71723         * lib/md4.c (set_uint32): New function, from sha1.c
71724         (md4_read_ctx): Use it.
71725         (md4_finish_ctx): Doc fix.
71726         * lib/md4.h: Doc fix.
71728 2008-01-31  Simon Josefsson  <simon@josefsson.org>
71730         md5: adapt alignment constraint fix from sha1.
71731         * lib/md5.c (set_uint32): New function, from sha1.c
71732         (md5_read_ctx): Use it.
71733         (md5_finish_ctx): Doc fix.
71734         * lib/md5.h: Doc fix.
71736 2008-01-30  Peter Palfrader  <weasel@debian.org>
71738         sha1: remove the result buffer alignment constraint
71739         * lib/sha1.c (set_uint32): New function.
71740         (sha1_read_ctx): Rewrite to remove the result buffer alignment
71741         constraint.
71742         (sha1_finish_ctx): Remove comment warning about alignment constraint.
71743         * lib/sha1.h: Likewise.
71745 2008-01-30  Andreas Schwab  <schwab@suse.de>
71746             Bruno Haible  <bruno@clisp.org>
71748         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
71749         correct definition of LDBL_MIN_EXP.
71751 2008-01-30  Karl Berry  <karl@gnu.org>
71753         * config/srclist-update: try to preserve x bit on updates.
71754         * config/srclistvars.sh: update for karl.
71756 2008-01-29  Jim Meyering  <meyering@redhat.com>
71758         vasnprintf.c: Avoid warning about unused label
71759         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
71760         "overflow" label definition and associated code with the
71761         same cpp condition that guards the sole use of that label.
71763 2008-01-26  Bruno Haible  <bruno@clisp.org>
71765         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
71766         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
71767         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
71768         * lib/isnanl-nolibm.h (isnanl): Likewise.
71769         Reported by Paul Eggert <eggert@cs.ucla.edu>.
71771 2008-01-26  Bruno Haible  <bruno@clisp.org>
71773         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
71774         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
71776 2008-01-26  Bruno Haible  <bruno@clisp.org>
71778         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
71779         GCC >= 4.0 built-in.
71780         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
71782 2008-01-26  Bruno Haible  <bruno@clisp.org>
71784         Rename isnan, applicable to 'double' only, to isnand.
71785         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
71786         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
71787         (configure.ac): Update.
71788         (Include): Replace "isnan.h" with "isnand.h".
71789         * m4/isnand.m4: Renamed from m4/isnan.m4.
71790         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
71791         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
71792         instead of isnan.c.
71793         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
71794         instead of HAVE_ISNAN_IN_LIBC.
71795         (isnand): Renamed from isnan.
71796         * lib/isnand.c: New file.
71797         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
71798         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
71799         (Makefile.am): Update.
71800         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
71801         Include isnand.h instead of isnan.h.
71802         (main): Test isnand instead of isnan.
71803         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
71804         isnan-nolibm.
71805         * modules/frexp (Depends-on): Likewise.
71806         * modules/frexp-tests (Depends-on): Likewise.
71807         * modules/frexp-nolibm (Depends-on): Likewise.
71808         * modules/frexp-nolibm-tests (Depends-on): Likewise.
71809         * modules/isfinite (Depends-on): Likewise.
71810         * modules/round-tests (Depends-on): Likewise.
71811         * modules/signbit (Depends-on): Likewise.
71812         * modules/signbit-tests (Depends-on): Likewise.
71813         * modules/snprintf-posix (Depends-on): Likewise.
71814         * modules/sprintf-posix (Depends-on): Likewise.
71815         * modules/trunc-tests (Depends-on): Likewise.
71816         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
71817         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
71818         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
71819         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
71820         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
71821         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
71822         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
71823         * modules/vasnprintf-posix (Depends-on): Likewise.
71824         * modules/vasprintf-posix (Depends-on): Likewise.
71825         * modules/vfprintf-posix (Depends-on): Likewise.
71826         * modules/vsnprintf-posix (Depends-on): Likewise.
71827         * modules/vsprintf-posix (Depends-on): Likewise.
71828         * lib/frexp.c: Include isnand.h instead of isnan.h.
71829         (ISNAN): Set to isnand instead of isnan.
71830         * lib/isfinite.c: Include isnand.h instead of isnan.h.
71831         (gl_isfinited): Use isnand instead of isnan.
71832         * lib/signbitd.c: Include isnand.h instead of isnan.h.
71833         (gl_signbitd): Use isnand instead of isnan.
71834         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
71835         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
71836         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
71837         (main): Use isnand instead of isnan.
71838         * tests/test-round1.c: Include isnand.h.
71839         (main): Use isnand instead of isnan.
71840         * tests/test-round2.c: Include isnand.h instead of isnan.h.
71841         (ISNAN): Set to isnand instead of isnan.
71842         * tests/test-trunc1.c: Include isnand.h.
71843         (main): Use isnand instead of isnan.
71844         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
71845         (equal): Use isnand instead of isnan.
71846         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
71847         isnand-nolibm.
71848         * NEWS: Mention the change.
71850 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
71851             Bruno Haible  <bruno@clisp.org>
71853         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
71854         the GCC builtins for signbits are present and set
71855         REPLACE_SIGNBIT_USING_GCC if so.
71856         * lib/math.in.h (signbit): Define using GCC builtins if
71857         REPLACE_SIGNBIT_USING_GCC is set.
71858         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
71859         REPLACE_SIGNBIT_USING_GCC.
71860         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
71862 2008-01-25  Jim Meyering  <meyering@redhat.com>
71864         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
71865         * lib/poll.c: Include <config.h>, not "config.h".
71866         * tests/test-getaddrinfo.c: Likewise.
71868 2008-01-25  Simon Josefsson  <simon@josefsson.org>
71870         * modules/sockets-tests: New file.
71872 2008-01-24  Simon Josefsson  <simon@josefsson.org>
71874         * modules/sockets: New module, can be used to call WSA_Startup and
71875         WSA_Cleanup when needed.
71877         * lib/sockets.h, lib/sockets.c: New files.
71879         * m4/sockets.m4: New file.
71881         * tests/test-sockets.c: New file.
71883 2008-01-19  Bruno Haible  <bruno@clisp.org>
71885         * doc/posix-headers: Renamed from doc/headers.
71886         * doc/posix-functions: Renamed from doc/functions.
71887         * doc/gnulib.texi: Update.
71889 2008-01-19  Bruno Haible  <bruno@clisp.org>
71891         * doc/glibc-functions/strcasestr.texi: Include contents of
71892         doc/functions/strcasestr.texi, fixing the list of platforms.
71893         * doc/functions/strcasestr.texi: Remove file.
71895 2008-01-19  Bruno Haible  <bruno@clisp.org>
71897         * doc/glibc-functions/memmem.texi: Include contents of
71898         doc/functions/memmem.texi.
71899         * doc/functions/memmem.texi: Remove file.
71901 2008-01-18  Bruno Haible  <bruno@clisp.org>
71903         * doc/glibc-functions/*.texi: New files.
71904         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
71905         to use the new files.
71907 2008-01-17  Bruno Haible  <bruno@clisp.org>
71909         * tests/test-gethostname.c (main): Fix printf statement.
71911 2008-01-17  Simon Josefsson  <simon@josefsson.org>
71913         * modules/gethostname-tests: New file.
71915         * tests/test-gethostname.c: New file.
71917 2008-01-17  Simon Josefsson  <simon@josefsson.org>
71919         * lib/gethostname.c: Include string.h unconditionally, strncpy is
71920         used by the UNAME case.  Reported by Bruno Haible
71921         <bruno@clisp.org>.
71923 2008-01-17  Eric Blake  <ebb9@byu.net>
71925         Convert c-strcasestr to be more efficient.
71926         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
71927         (Depends-on): Add c-strcase, remove malloca, strnlen.
71928         * tests/test-c-strcasestr.c (main): Enhance test.
71929         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
71931 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
71933         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
71934         Use it in creating po/Makevars.
71936 2008-01-15  Simon Josefsson  <simon@josefsson.org>
71938         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
71939         Applications that requires it should initialize libgcrypt
71940         manually.
71942 2008-01-16  Simon Josefsson  <simon@josefsson.org>
71944         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
71946 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
71948         Fix problem with getdate on mingw32 reported by Simon Josefsson
71949         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
71950         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
71951         tzname", when deciding whether to declare tzname.
71952         * lib/strftime.c (tzname): Likewise.
71954 2008-01-15  Bruno Haible  <bruno@clisp.org>
71956         Work around a MacOS X 10.5 bug in frexpl().
71957         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
71958         * doc/functions/frexpl.texi: Document the bug.
71959         Reported by Elias Pipping <pipping@gentoo.org>.
71961 2008-01-14  Eric Blake  <ebb9@byu.net>
71963         Touch up previous patch.
71964         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
71965         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
71967         Convert strcasestr module to use Two-Way algorithm.
71968         * modules/strcasestr-simple: New module, based on the old
71969         strcasestr, but with Two-Way rather than KMP.
71970         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
71971         * lib/string.in.h (rpl_strcasestr): Declare.
71972         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
71973         performance.
71974         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
71975         * modules/string (Makefile.am): Support strcasestr.
71976         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
71977         * modules/strcasestr-tests (Depends-on): Check for alarm.
71978         * tests/test-strcasestr.c: Augment test.
71979         * lib/str-two-way.h: Clean up stray macro.
71980         * NEWS: Document new module.
71981         * MODULES.html.sh (string handling): Likewise.
71982         * doc/functions/strcasestr.texi: New file.
71983         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
71984         here, since it is not a POSIX function.
71986 2008-01-14  Colin Watson  <cjwatson@debian.org>
71987             Bruno Haible  <bruno@clisp.org>
71989         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
71990         works fine; if not, set REPLACE_STRSIGNAL.
71991         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
71992         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
71993         REPLACE_STRSIGNAL.
71994         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
71995         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
71996         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
71998 2008-01-14  Bruno Haible  <bruno@clisp.org>
72000         * modules/strsignal (Include): Change to <string.h>.
72002 2008-01-14  Colin Watson  <cjwatson@debian.org>
72004         * modules/argp (Notice): Add a notice recommending to change
72005         XGETTEXT_OPTIONS.
72006         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
72008 2008-01-13  Colin Watson  <cjwatson@debian.org>
72010         * modules/strsignal-tests: New file.
72011         * tests/test-strsignal.c: New file.
72013         * lib/strsignal.c: New file, from glibc with modifications.
72014         * lib/siglist.h: New file, from glibc with modifications.
72015         * lib/string.in.h (strsignal): New declaration.
72016         * m4/strsignal.m4: New file.
72017         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
72018         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
72019         * modules/strsignal: New file.
72020         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
72021         HAVE_DECL_STRSIGNAL.
72023 2008-01-13  Bruno Haible  <bruno@clisp.org>
72025         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
72026         locale encoding is not ASCII. Needed for OpenBSD 4.0.
72027         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
72028         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
72030 2008-01-13  Bruno Haible  <bruno@clisp.org>
72032         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
72033         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
72034         * lib/argp.h (__attribute__): Likewise.
72035         * lib/c-stack.c (__attribute__): Likewise.
72036         * lib/error.h (__attribute__): Likewise.
72037         * lib/fts.c (__attribute__): Likewise.
72038         * lib/openat.h (__attribute__): Likewise.
72039         * lib/stdio.in.h (__attribute__): Likewise.
72040         * lib/string.in.h (__attribute__): Likewise.
72041         * lib/utimens.c (__attribute__): Likewise.
72042         * lib/vasnprintf.h (__attribute__): Likewise.
72043         * lib/xalloc.h (__attribute__): Likewise.
72044         * lib/xprintf.h (__attribute__): Likewise.
72045         * lib/xstrtol.h (__attribute__): Likewise.
72046         * lib/xvasprintf.h (__attribute__): Likewise.
72048 2008-01-12  Bruno Haible  <bruno@clisp.org>
72050         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
72051         * doc/glibc-headers/a.out.texi: New file.
72052         * doc/glibc-headers/aliases.texi: New file.
72053         * doc/glibc-headers/alloca.texi: New file.
72054         * doc/glibc-headers/ar.texi: New file.
72055         * doc/glibc-headers/argp.texi: New file.
72056         * doc/glibc-headers/argz.texi: New file.
72057         * doc/glibc-headers/byteswap.texi: New file.
72058         * doc/glibc-headers/crypt.texi: New file.
72059         * doc/glibc-headers/endian.texi: New file.
72060         * doc/glibc-headers/envz.texi: New file.
72061         * doc/glibc-headers/err.texi: New file.
72062         * doc/glibc-headers/error.texi: New file.
72063         * doc/glibc-headers/execinfo.texi: New file.
72064         * doc/glibc-headers/fpu_control.texi: New file.
72065         * doc/glibc-headers/fstab.texi: New file.
72066         * doc/glibc-headers/fts.texi: New file.
72067         * doc/glibc-headers/getopt.texi: New file.
72068         * doc/glibc-headers/ieee754.texi: New file.
72069         * doc/glibc-headers/ifaddrs.texi: New file.
72070         * doc/glibc-headers/libintl.texi: New file.
72071         * doc/glibc-headers/mcheck.texi: New file.
72072         * doc/glibc-headers/mntent.texi: New file.
72073         * doc/glibc-headers/obstack.texi: New file.
72074         * doc/glibc-headers/paths.texi: New file.
72075         * doc/glibc-headers/printf.texi: New file.
72076         * doc/glibc-headers/pty.texi: New file.
72077         * doc/glibc-headers/resolv.texi: New file.
72078         * doc/glibc-headers/shadow.texi: New file.
72079         * doc/glibc-headers/sysexits.texi: New file.
72080         * doc/glibc-headers/ttyent.texi: New file.
72082 2008-01-12  Jim Meyering  <meyering@redhat.com>
72084         announce-gen: emit Gnulib's git-based version string.
72085         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
72086         New option --gnulib-version=V, where V is expected to be
72087         the output of running git describe in the gnulib directory.
72088         (get_tool_versions): Request feedback on xdelta.  I suspect it's
72089         not useful, and plan to stop publishing an xdelta file with each
72090         coreutils release.
72092         * build-aux/announce-gen: Also check for lzma-compressed files.
72094 2008-01-11  Bruno Haible  <bruno@clisp.org>
72096         * tests/test-memmem.c (main): Increase maximum allowed time.
72097         * tests/test-strstr.c (main): Likewise.
72099 2008-01-11  Bruno Haible  <bruno@clisp.org>
72101         * doc/functions/memmem.texi: Add more precisions about platforms.
72102         * doc/functions/strstr.texi: Likewise.
72104 2008-01-10  Eric Blake  <ebb9@byu.net>
72106         * m4/strstr.m4: Delete cruft from copy-n-paste.
72107         Reported by Bruno Haible.
72109 2008-01-10  Bruno Haible  <bruno@clisp.org>
72111         Make c-strstr rely on strstr.
72112         * lib/c-strstr.c: Don't include str-kmp.h.
72113         (c_strstr): Define in terms of strstr.
72114         * modules/c-strstr (Files): Remove lib/str-kmp.h.
72115         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
72117 2008-01-10  Bruno Haible  <bruno@clisp.org>
72119         * doc/gnulib.texi (String Functions in C Locale): New section.
72120         * doc/c-ctype.texi: New file.
72121         * doc/c-strcase.texi: New file.
72122         * doc/c-strcaseeq.texi: New file.
72123         * doc/c-strcasestr.texi: New file.
72124         * doc/c-strstr.texi: New file.
72125         * doc/c-strtod.texi: New file.
72126         * doc/c-strtold.texi: New file.
72128 2008-01-10  Eric Blake  <ebb9@byu.net>
72130         * lib/relocatable.h: Fix a comment.
72132 2008-01-10  Eric Blake  <ebb9@byu.net>
72134         Share two-way algorithm.
72135         * lib/str-two-way.h: New file, merged from...
72136         * lib/memmem.c: ...here...
72137         * lib/strstr.c: ...and here.
72138         * modules/memmem (Files): Use it.
72139         * modules/strstr (Files): Likewise.
72141         Avoid quadratic strstr implementations.
72142         * lib/strstr.c: New file.
72143         * m4/strstr.m4: Likewise.
72144         * modules/strstr: Likewise.
72145         * modules/strstr-tests: Likewise.
72146         * tests/test-strstr.c: Likewise.
72147         * lib/string.in.h (rpl_strstr): Declare.
72148         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
72149         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
72150         * modules/string (Makefile.am): Likewise.
72151         * MODULES.html.sh (string handling): Mention new module.
72152         * doc/functions/strstr.texi (strstr): Document the bug.
72154 2008-01-10  Bruno Haible  <bruno@clisp.org>
72156         * lib/relocatable.h (relocate): State whether result is freshly
72157         allocated or not.
72158         * lib/relocatable.c (relocate): Return a freshly allocated string
72159         instead of a pointer to a privately held string.
72160         Reported by Sylvain Beucler <beuc@gnu.org>.
72162 2008-01-10  Colin Watson  <cjwatson@debian.org>
72164         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
72165         s/S_ISNLK/S_ISLNK/.
72167 2008-01-09  Bruno Haible  <bruno@clisp.org>
72169         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
72170         and other files.
72171         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
72172         if it's only a guess.
72173         * modules/memmem: Simplify by depending on memmem-simple.
72175 2008-01-09  Bruno Haible  <bruno@clisp.org>
72177         Work around OpenBSD 4.0 tdelete() bug.
72178         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
72179         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
72180         macros and don't redefine the enum values.
72181         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
72182         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
72183         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
72185 2008-01-09  Bruno Haible  <bruno@clisp.org>
72187         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
72188         (main): Don't perform the tests if setlocale did not install a UTF-8
72189         locale. Needed on OpenBSD 4.0.
72190         * modules/wcwidth-tests (Depends-on): Add localcharset.
72192 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72194         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
72195         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
72196         * NEWS: announce this.
72197         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
72199 2008-01-09  Simon Josefsson  <simon@josefsson.org>
72200         and Eric Blake  <ebb9@byu.net>
72202         Add memmem-simple module.
72203         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
72204         (gl_FUNC_MEMMEM): Separate performance from presence checks.
72205         * modules/memmem-simple: New file.
72206         * modules/memmem (Description): Tweak.
72207         * MODULES.html.sh (string handling): Mention new module.
72208         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
72209         addressed by memmem-simple.
72210         * NEWS: Document the difference.
72212 2008-01-09  Eric Blake  <ebb9@byu.net>
72214         Give gcc some memmem optimization hints.
72215         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
72216         (strcasestr): Declare as pure.
72217         * modules/memmem (Maintainer): Claim my implementation.
72219 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72221         Support AIX 6.1 and higher.
72222         * build-aux/config.libpath: Likewise.
72223         * build-aux/config.rpath: Likewise.
72225 2008-01-08  Jim Meyering  <meyering@redhat.com>
72226             Bruno Haible  <bruno@clisp.org>
72228         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
72229         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
72230         Reported by Peter Fales in
72231         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
72233 2008-01-08  Bruno Haible  <bruno@clisp.org>
72235         * modules/unictype/category-of (Depends-on): Add
72236         unictype/category-none.
72237         * modules/unictype/category-and-tests (Depends-on): Add
72238         unictype/category-{L,N,Lu,Nd}.
72239         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
72240         * modules/unictype/category-or-tests (Depends-on): Add
72241         unictype/category-{L,N}.
72242         * modules/unictype/category-name-tests (Depends-on): Add
72243         unictype/category-{Z,Nl}.
72244         Reported by Simon Josefsson.
72246 2008-01-08  Bruno Haible  <bruno@clisp.org>
72248         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
72249         convention better.
72250         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
72251         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
72252         Reported by Peter Miller <millerp@canb.auug.org.au>.
72254 2008-01-08  Eric Blake  <ebb9@byu.net>
72256         Rewrite memmem to guarantee linear complexity without malloc.
72257         * lib/memmem.c (memmem): Use Two-Way rather than
72258         Knuth-Morris-Pratt, to allow O(1) space usage.
72259         (critical_factorization, two_way_short_needle)
72260         (two_way_long_needle): New functions.
72261         (knuth_morris_pratt): Delete.
72262         * modules/memmem (Depends-on): No longer need malloca or stdbool.
72263         Add stdint.
72264         * tests/test-memmem.c (main): Add tests for periodic needle and
72265         sublinear performance.
72266         * doc/functions/memmem.texi (memmem): Document other deficiencies
72267         in cygwin and older glibc.
72269 2008-01-08  Bruno Haible  <bruno@clisp.org>
72271         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
72272         augmentation.
72274 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
72276         Add a configure time option: --disable-acl.
72277         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
72278         AC_ARG_ENABLE(acl).
72280 2008-01-06  Simon Josefsson  <simon@josefsson.org>
72282         * tests/test-localename.c: Don't include obsolete "setenv.h".
72284         * modules/localename-tests (Depends-on): Need unsetenv.
72286 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72288         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
72290 2008-01-06  Colin Watson  <cjwatson@debian.org>
72292         * users.txt: Add man-db.
72294 2008-01-07  Bruno Haible  <bruno@clisp.org>
72296         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
72297         previous section name.
72299 2008-01-07  Bruno Haible  <bruno@clisp.org>
72301         * lib/progname.c (set_program_name): Don't strip off a leading
72302         "lt-" prefix outside a .libs directory.
72303         Suggested by Paul Eggert.
72305 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
72306             Bruno Haible  <bruno@clisp.org>
72308         Improve memory cleanup in 'relocatable' module.
72309         * lib/relocatable.h (compute_curr_prefix): Change return type to
72310         'char *'.
72311         * lib/relocatable.c (compute_curr_prefix): Change return type to
72312         'char *'. Free curr_installdir after use.
72313         (relocate): Free curr_prefix_better after use.
72314         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
72316 2008-01-01  Bruno Haible  <bruno@clisp.org>
72318         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
72319         failure on older glibc systems.
72320         Reported by Peter Fales <psfales@alcatel-lucent.com>.
72322 2008-01-05  Eric Blake  <ebb9@byu.net>
72324         Avoid quadratic system memmem.
72325         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
72326         Reported by Ralf Wildenhues.
72328         Fix memmem test for mingw.
72329         * modules/memmem-tests (configure.ac): Check for alarm.
72330         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
72331         it.
72332         * doc/functions/memmem.texi: New file.
72333         * doc/gnulib.texi (Function Substitutes): Add memmem.
72334         Reported by Bruno Haible.
72336 2008-01-04  Bruno Haible  <bruno@clisp.org>
72338         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
72339         Require gl_HEADER_STRINGS_H_DEFAULTS, not
72340         gl_HEADER_STRING_H_DEFAULTS.
72342 2008-01-04  Eric Blake  <ebb9@byu.net>
72344         Shorten duration of memmem test.
72345         * tests/test-memmem.c (main): Use alarm to declare failure if test
72346         is taking too long.
72347         Reported by Ralf Wildenhues.
72349 2007-12-21  Simon Josefsson  <simon@josefsson.org>
72351         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
72352         string, needed by strerror.
72354 2008-01-03  Colin Watson  <cjwatson@debian.org>
72355             Bruno Haible  <bruno@clisp.org>
72357         * doc/gnulib-tool.texi (Localization): New section.
72359 2008-01-02  Bruno Haible  <bruno@clisp.org>
72361         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
72362         variables to 'unsigned char *' type.
72363         Reported by Paul Eggert.
72365 2008-01-02  Jim Meyering  <jim@meyering.net>
72367         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
72369 2007-12-31  Jim Meyering  <jim@meyering.net>
72371         Avoid use of private FTS type name.
72372         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
72374 2007-12-30  Karl Berry  <karl@gnu.org>
72376         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
72377         work around defect in Texinfo and/or the standalone Info browser.
72379 2007-12-30  Bruno Haible  <bruno@clisp.org>
72381         Unify 5 copies of the KMP code.
72382         * lib/str-kmp.h: New file.
72383         * lib/c-strcasestr.c: Include str-kmp.h.
72384         (knuth_morris_pratt): Remove function.
72385         (c_strcasestr): Update.
72386         * lib/c-strstr.c: Include str-kmp.h.
72387         (knuth_morris_pratt): Remove function.
72388         (c_strcasestr): Update.
72389         * lib/mbscasestr.c: Include str-kmp.h.
72390         (knuth_morris_pratt_unibyte): Remove function.
72391         * lib/mbsstr.c: Include str-kmp.h.
72392         (knuth_morris_pratt_unibyte): Remove function.
72393         * lib/strcasestr.c: Include str-kmp.h.
72394         (knuth_morris_pratt): Remove function.
72395         (strcasestr): Update.
72396         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
72397         * modules/c-strstr (Files): Likewise.
72398         * modules/mbscasestr (Files): Likewise.
72399         * modules/mbsstr (Files): Likewise.
72400         * modules/strcasestr (Files): Likewise.
72401         Suggested by Paul Eggert.
72403 2007-12-30  Bruno Haible  <bruno@clisp.org>
72405         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
72406         defined.
72408 2007-12-30  Bruno Haible  <bruno@clisp.org>
72410         * lib/xmalloca.h: Include xalloc.h.
72411         (xnmalloca): New macro.
72413 2007-12-30  Bruno Haible  <bruno@clisp.org>
72415         * lib/malloca.h (nmalloca): New macro.
72416         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
72417         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
72418         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
72419         knuth_morris_pratt_multibyte): Likewise.
72420         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
72421         knuth_morris_pratt_multibyte): Likewise.
72422         * lib/memmem.c (knuth_morris_pratt): Likewise.
72423         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
72425 2007-12-25  Bruno Haible  <bruno@clisp.org>
72427         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
72428         * lib/glob.c: Don't include openat.h.
72429         (link_exists2_p): Add back the code that deals with the
72430         !GLOB_ALTDIRFUNC case.
72431         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
72432         let it do the filename concatenation.
72433         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
72434         * modules/glob (Depends-on): Remove openat.
72436 2007-12-31  Bruno Haible  <bruno@clisp.org>
72438         * modules/dirfd (License): Change to LGPLv2+.
72439         Approved by Jim Meyering.
72441 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
72443         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
72444         when multiplying M by sizeof (size_t).
72446 2007-12-10  Martin Lambers  <marlam@marlam.de>
72448         Override getpagesize on mingw.
72449         * lib/getpagesize.c: New file.
72450         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
72451         * modules/getpagesize (Files): Add lib/getpagesize.c.
72452         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
72453         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
72454         REPLACE_GETPAGESIZE.
72455         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
72457 2007-12-25  Bruno Haible  <bruno@clisp.org>
72459         * modules/localcharset (Notice): New field.
72460         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
72461         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
72463 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
72464             Bruno Haible  <bruno@clisp.org>
72466         Avoid using the syntax symbol() in formatted documentation.
72467         * MODULES.html.sh (func_module): When replacing symbol() with a
72468         hyperlink, remove the parentheses. Show an error if some remain.
72469         Recognize and render the '...' syntax.
72470         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
72471         Rework. Add paragraph about GCC's inlining.
72472         * doc/alloca.texi: Likewise.
72473         * doc/error.texi: Remove parentheses from symbol reference.
72474         * doc/gnulib-intro.texi: Likewise.
72475         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
72476         * modules/fnmatch (Description): Reword to say "the ... function".
72477         * modules/full-read (Description): Likewise.
72478         * modules/full-write (Description): Likewise.
72479         * modules/safe-read (Description): Likewise.
72480         * modules/safe-write (Description): Likewise.
72481         * modules/strchrnul (Description): Likewise.
72482         * modules/trim (Description): Likewise.
72483         * modules/error (Description): Remove parentheses from symbol
72484         references.
72485         * modules/verror (Description): Likewise.
72486         Reported by Karl Berry.
72488 2007-12-25  Bruno Haible  <bruno@clisp.org>
72490         Fixup after 2007-10-16 commit.
72491         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
72493 2007-12-24  Bruno Haible  <bruno@clisp.org>
72495         Make --enable-relocatable work with DESTDIR.
72496         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
72497         to compute installdir from destprog.
72498         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
72499         also set the RELOC_DESTDIR variable.
72500         Reported by Левашев Иван <octagram@bluebottle.com>.
72502 2007-12-24  Bruno Haible  <bruno@clisp.org>
72504         Fix link error due to xalloc_die().
72505         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
72506         of xreadlink.
72507         * lib/relocwrapper.c: Update comments.
72508         * build-aux/install-reloc: Remove xreadlink.c from file list.
72509         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
72510         xreadlink.c.
72511         Reported by Левашев Иван <octagram@bluebottle.com>.
72513 2007-12-24  Bruno Haible  <bruno@clisp.org>
72515         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
72516         * lib/setenv.h: Remove file.
72517         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
72518         lib/setenv.h.
72519         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
72520         (Depends-on): Add stdlib.
72521         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
72522         gl_FUNC_UNSETENV.
72523         (Include): Replace setenv.h with <stdlib.h>.
72524         * modules/unsetenv: New file.
72525         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
72526         * lib/unsetenv.c: Include <stdlib.h> first.
72527         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
72528         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
72529         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
72530         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
72531         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
72532         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
72533         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
72534         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
72535         * doc/functions/unsetenv.texi: Update.
72536         * modules/xsetenv (Depends-on): Add unsetenv.
72537         * modules/getdate (Depends-on): Likewise.
72538         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
72539         * lib/xsetenv.c: Don't include setenv.h.
72540         * lib/getdate.y: Likewise.
72541         * lib/relocwrapper.c: Likewise.
72542         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
72543         (Depends-on): Add stdlib.
72544         * NEWS: Mention the changes.
72545         Reported by Левашев Иван <octagram@bluebottle.com>.
72547 2007-12-23  Bruno Haible  <bruno@clisp.org>
72549         * lib/memmem.c (memmem): Use lowercase variable names. Tab
72550         indentation.
72552 2007-12-23  Bruno Haible  <bruno@clisp.org>
72554         * lib/c-strcasestr.c: Add more comments.
72555         * lib/c-strstr.c: Likewise.
72556         * lib/mbscasestr.c: Likewise.
72557         * lib/mbsstr.c: Likewise.
72558         * lib/strcasestr.c: Likewise.
72559         * lib/memmem.c: Likewise.
72561 2007-12-23  Bruno Haible  <bruno@clisp.org>
72563         * tests/test-memmem.c: Include <string.h> first.
72565 2007-12-22  Bruno Haible  <bruno@clisp.org>
72567         * gnulib-tool (func_create_testdir): Change $auxdir while generating
72568         the contents of $testsbase.
72569         Reported by Ralf Wildenhues.
72571 2007-12-22  Bruno Haible  <bruno@clisp.org>
72573         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
72574         two variables local_ldadd_before, local_ldadd_last.
72576 2007-12-20  Eric Blake  <ebb9@byu.net>
72578         Work around circular library issue when cross-compiling.
72579         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
72580         that progname.o does not need to pull in rpl_memcmp.
72582 2007-12-19  Eric Blake  <ebb9@byu.net>
72584         Fix memmem to avoid O(n^2) worst-case complexity.
72585         * lib/memmem.c (knuth_morris_pratt): New function.
72586         (memmem): Use it if first few naive iterations fail.
72587         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
72588         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
72589         * modules/memchr (License): Likewise.
72590         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
72591         malloca.
72592         * tests/test-memmem.c: Rewrite, borrowing ideas from
72593         test-mbsstr1.c; the old version wouldn't even compile!
72594         * modules/memmem-tests: New file.
72595         * lib/string.in.h (rpl_memmem): Add declaration.
72596         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
72597         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
72598         REPLACE_MEMMEM.
72600 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
72602         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
72603         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
72604         before any system include files, and undef after them all.  This
72605         should fix a problem on VMS reported by John E. Malmberg in
72606         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
72608 2007-12-17  Eric Blake  <ebb9@byu.net>
72610         Revert addition of verify, for BSD/OS.
72611         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
72612         can't handle large files, for the sake of obsolete platforms.
72613         * modules/fseeko (Depends-on): Remove verify.
72614         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
72615         * doc/functions/ftello.texi (ftello): Likewise.
72616         * doc/functions/fgetpos.texi (fgetpos): Likewise.
72617         Reported by Larry Jones.
72619 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
72621         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
72622         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
72624 2007-12-17  Jim Meyering  <meyering@redhat.com>
72626         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
72627         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
72628         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
72629         * modules/getcwd (Depends-on): Add openat.
72630         Reported by Petr Salinger.
72632 2007-12-17  Bruno Haible  <bruno@clisp.org>
72634         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
72635         avoid a segmentation fault of the configure test on x86_64 systems.
72637 2007-12-15  Jim Meyering  <meyering@redhat.com>
72639         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
72641 2007-12-13  Eric Blake  <ebb9@byu.net>
72643         Another fseek test.
72644         * tests/test-fseek.c (main): Also test ungetc handling.
72645         * tests/test-fseeko.c (main): Likewise.
72646         * modules/fseeko (Depends-on): Add verify.
72647         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
72648         large.
72649         Reported by Larry Jones.
72651         Fix fseeko on mingw.
72652         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
72653         seek.
72655         Beef up fseek tests.
72656         * tests/test-fseek.c (main): Also test eof handling.
72657         * tests/test-fseeko.c (main): Likewise.
72658         Reported by Larry Jones.
72660 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
72662         Fix fseeko on BSD-based platforms.
72663         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
72664         successful seek.
72666 2007-12-12  Eric Blake  <ebb9@byu.net>
72668         Allow circular dependency of separate libtests.a
72669         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
72670         when use_libtests.
72672 2007-12-11  Eric Blake  <ebb9@byu.net>
72674         Fix bug with -0.0L in previous patch.
72675         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
72676         * tests/test-isnan.c (main): Also test on zeroes.
72677         * tests/test-isnanf.c (main): Likewise.
72678         * tests/test-isnanl.h (main): Likewise.
72680         Detect pseudo-denormals on x86 even when cross-compiling.
72681         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
72682         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
72683         invalid bit patterns that happen to satisfy ==.
72685         Avoid link failures with separate libtests.a.
72686         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
72687         last, to satisfy circular dependencies.
72689 2007-12-11  Eric Blake  <ebb9@byu.net>
72690         and Bruno Haible  <bruno@clisp.org>
72692         Fix OpenBSD 4.0 <float.h> handling of long double.
72693         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
72694         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
72695         * doc/headers/float.texi (float.h): Document OpenBSD bug.
72697 2007-12-11  Jim Meyering  <meyering@redhat.com>
72699         * users.txt: Add libvirt.
72701         Support versions of autoconf prior to 2.59c.
72702         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
72703         if it is not already defined.
72705 2007-12-09  Bruno Haible  <bruno@clisp.org>
72707         Let 'gnulib-tool --import' collect sources needed for the tests in
72708         tests/ rather than in lib/.
72709         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
72710         argument. If true, add rules to generate libtests.a, and put libtests.a
72711         into $(LDADD). Consider source files in subdirectories and set
72712         uses_subdirs.
72713         (func_emit_initmacro_start, func_emit_initmacro_end,
72714         func_emit_initmacro_done): Pass all arguments explicitly.
72715         (func_import): Determine two module lists main_modules,
72716         testsrelated_modules. Determine use_libtests. Determine two variables
72717         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
72718         instead of just sed_transform_lib_file. Determine two variables
72719         main_files and testsrelated_files. Compute 'files' as the union of
72720         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
72721         func_add_or_update. In the generated gnulib-comp.m4, collect the
72722         object files for tests/ in different variables than those for lib/.
72723         Substitute LIBTESTS_LIBDEPS.
72724         (func_create_testdir): Combine the uses_subdirs results from
72725         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
72727 2007-12-09  Bruno Haible  <bruno@clisp.org>
72729         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
72730         the build-aux directory.
72732 2007-12-09  Bruno Haible  <bruno@clisp.org>
72734         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
72735         introduced on 2006-09-09.
72737 2007-12-07  Jim Meyering  <meyering@redhat.com>
72739         Let these macros work also with autoconf-2.59.
72740         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
72741         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
72742         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
72744 2007-12-06  Jim Meyering  <meyering@redhat.com>
72746         Avoid a configure-time syntax error in gl_FUNC_ACL.
72747         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
72748         function in each branch, before testing the cache variable.
72750 2007-12-04  Eric Blake  <ebb9@byu.net>
72752         Make scripts executable.
72753         * build-aux/config.guess: Add execute permissions.
72754         * build-aux/config.sub: Likewise.
72755         * build-aux/gendocs.sh: Likewise.
72757         Fix frexp on mingw.
72758         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
72759         cross-compiling.
72760         * doc/functions/frexp.texi (frexp): Document the bug.
72762         Make cygwin fseeko check more reliable.
72763         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
72764         version numbers, rather than unrelated feature check.
72765         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
72766         * doc/functions/ftello.texi (ftello): Likewise.
72767         Reported by Bruno Haible.
72769         * m4/strerror.m4: Bump version number.
72771 2007-12-03  Bruno Haible  <bruno@clisp.org>
72773         * doc/functions/mprotect.texi: Mention the mingw problem.
72775 2007-12-03  Eric Blake  <ebb9@byu.net>
72777         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
72778         REPLACE_STRERROR is initialized before this macro.
72780 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
72782         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
72783         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
72784         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
72785         put -lsec in even for programs other than 'ls'.  This fixes a problem
72786         for gettext reported by Bruno Haible in
72787         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
72788         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
72789         Add support for Solaris 10.  This isn't efficient, but should get the
72790         job done for now.
72792 2007-12-03  James Youngman  <jay@gnu.org>
72794         * doc/regexprops-generic.texi: change "an close-group" to "a
72795         close-group" and "illegal" to "not allowed".
72797 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72799         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
72800         pr_byname.h. Needed for the rare case when the maintainer has done
72801         "make maintainer-clean" in the source directory and then attempts a
72802         build outside the source directory.
72803         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
72804         scripts_byname.h.
72806 2007-12-02  Martin Lambers <marlam@marlam.de>
72807             Bruno Haible  <bruno@clisp.org>
72809         * lib/getpagesize.h: Remove file.
72810         * lib/unistd.in.h: Include declaration of getpagesize here.
72811         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
72812         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
72813         HAVE_SYS_PARAM_H.
72814         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
72815         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
72816         * modules/getpagesize (Files): Remove lib/getpagesize.h.
72817         (Depends-on): Add unistd.
72818         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72819         (Include): Use <unistd.h> instead of getpagesize.h.
72820         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
72821         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
72822         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
72823         gl_GETPAGESIZE invocation, already handled by module dependency.
72824         * lib/pagealign_alloc.c: Don't include getpagesize.h.
72826 2007-12-02  Bruno Haible  <bruno@clisp.org>
72828         * modules/strings-tests: New file.
72829         * tests/test-strings.c: New file.
72831         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
72832         * lib/strings.in.h: New file.
72833         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
72834         * m4/strings_h.m4: New file.
72835         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
72836         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
72837         * modules/strings: New file.
72838         * modules/string (Makefile.am): Update.
72839         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
72840         Reported by Karl Berry.
72842 2007-12-01  Eric Blake  <ebb9@byu.net>
72844         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
72845         accommodate fix in cygwin 1.5.25.
72847 2007-12-01  Jim Meyering  <meyering@redhat.com>
72849         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
72850         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
72851         that would inhibit utf8-optimization of a regexp containing line-
72852         or buffer-anchors, e.g., `^', `$'.
72854 2007-11-30  Bruno Haible  <bruno@clisp.org>
72856         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
72857         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
72858         glthread_recursive_lock_init.
72859         * lib/lock.c (glthread_recursive_lock_init)
72860         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
72861         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
72863 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
72865         New function qset_acl, like set_acl but with syscall semantics.
72866         * lib/acl.h (qset_acl): New decl.
72867         * lib/acl.c (qset_acl): New function.
72868         (set_acl): Use new function.  Use more-consistent diagnostics.
72870 2007-11-28  Jim Meyering  <meyering@redhat.com>
72872         * modules/physmem (License): Change from GPL to LGPLv2+.
72874 2007-11-26  Bruno Haible  <bruno@clisp.org>
72876         * lib/vasnprintf.c (decode_long_double): Don't abort if the
72877         'long double' type has excess precision.
72878         Reported by Jim Meyering in
72879         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
72881 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72883         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
72884         Sync from <http://gnu.org/licenses>.
72885         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
72886         with license text from same location.
72887         * doc/maintain.texi, doc/standards.texi:  Sync from
72888         <http://savannah.gnu.org/projects/gnustandards>.
72890 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
72891         and Jim Meyering  <meyering@redhat.com>
72893         Adjust getdate' grammar to accept a slightly more regular language.
72894         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
72895         Before, the former was rejected.
72896         * lib/getdate.y (digits_to_date_time): New function, factored
72897         out of ...
72898         (number): ...here.  Just call digits_to_date_time.
72899         (hybrid): New non-terminal to handle an <unsigned number,
72900         signed relative offset> sequence consistently.
72902 2007-11-18  Jim Meyering  <meyering@redhat.com>
72904         Pull my changes from coreutils:
72905         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
72906         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
72907         use of $gnulib_tool_option_extras, so that it's separated from the
72908         preceding argument.
72910         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
72911         * build-aux/bootstrap (cp_mark_as_generated): Create any required
72912         parent destination directories before copying a file into place.
72914 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
72916         bootstrap: work also with 4-argument variant of AC_INIT
72917         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
72919 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72921         Port test-getaddrinfo to Solaris.
72922         Problem reported by Bruno Haible in
72923         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
72924         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
72925         explanation of setting 'hints'.
72926         Don't reject an implementation merely because it returns EAI_SERVICE.
72927         (EAI_SERVICE): Define to 0 if not defined.
72929 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
72931         The license of gnu-make and posix-shell is now "GPLed build tool".
72932         * modules/gnu-make (License): Likewise.
72933         * modules/posix-shell (License): Likewise.
72935         New module posix-shell, for determining a POSIX shell
72936         or perhaps something that is close enough to a POSIX shell.
72937         * m4/posix-shell.m4: New file.
72938         * modules/posix-shell: New file.
72940         * MODULES.html.sh: Mention new module.
72942         New module gnu-make, for determining whether we're using GNU Make.
72943         * m4/gnu-make.m4: New file.
72944         * modules/gnu-make: New file.
72945         * MODULES.html.sh: Mention new module.
72947 2007-11-14  Jim Meyering  <meyering@redhat.com>
72949         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
72950         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
72951         use this macro to create a function _definition_.
72952         Remove useless "#undef ARGMATCH_DIE".
72954 2007-11-14  Bruno Haible  <bruno@clisp.org>
72956         * lib/config.charset: Update for OpenBSD 4.1.
72957         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
72959 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
72961         Document 64-bit #if problems in stdint.texi.
72962         * doc/headers/stdint.texi (stdint.h): Mention problems with
72963         64-bit-#if, and how to work around them.
72965         Don't insist on 'long long int' support in the preprocessor.  It
72966         breaks too many things.  For example, PRIdMAX still uses a 'long
72967         long int' format with the latest Sun compiler, even though
72968         HAVE_LONG_LONG_INT isn't defined due to that compiler's
72969         preprocessor problem.  This causes the latest coreutils to dump
72970         core on Solaris 10 sparc with the Sun C compiler.
72971         Instead, fix the 2007-10-16 problem in a different way, by evaluating
72972         the troublesome expressions at configure-time, not at #if-time.
72973         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
72974         preprocessor.
72975         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
72976         compile-time C checks, done at 'configure'-time.
72977         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
72978         * modules/inttypes (Makefile): Substitute the new symbols that
72979         gl_INTTYPES_H now generates.
72980         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
72982 2007-11-12  Bruno Haible  <bruno@clisp.org>
72984         Tests for Unicode character classification functions.
72986         * modules/unictype/bidicategory-byname-tests: New file.
72987         * modules/unictype/bidicategory-name-tests: New file.
72988         * modules/unictype/bidicategory-of-tests: New file.
72989         * modules/unictype/bidicategory-test-tests: New file.
72990         * modules/unictype/block-list-tests: New file.
72991         * modules/unictype/block-of-tests: New file.
72992         * modules/unictype/block-test-tests: New file.
72993         * modules/unictype/category-C-tests: New file.
72994         * modules/unictype/category-Cc-tests: New file.
72995         * modules/unictype/category-Cf-tests: New file.
72996         * modules/unictype/category-Cn-tests: New file.
72997         * modules/unictype/category-Co-tests: New file.
72998         * modules/unictype/category-Cs-tests: New file.
72999         * modules/unictype/category-L-tests: New file.
73000         * modules/unictype/category-Ll-tests: New file.
73001         * modules/unictype/category-Lm-tests: New file.
73002         * modules/unictype/category-Lo-tests: New file.
73003         * modules/unictype/category-Lt-tests: New file.
73004         * modules/unictype/category-Lu-tests: New file.
73005         * modules/unictype/category-M-tests: New file.
73006         * modules/unictype/category-Mc-tests: New file.
73007         * modules/unictype/category-Me-tests: New file.
73008         * modules/unictype/category-Mn-tests: New file.
73009         * modules/unictype/category-N-tests: New file.
73010         * modules/unictype/category-Nd-tests: New file.
73011         * modules/unictype/category-Nl-tests: New file.
73012         * modules/unictype/category-No-tests: New file.
73013         * modules/unictype/category-P-tests: New file.
73014         * modules/unictype/category-Pc-tests: New file.
73015         * modules/unictype/category-Pd-tests: New file.
73016         * modules/unictype/category-Pe-tests: New file.
73017         * modules/unictype/category-Pf-tests: New file.
73018         * modules/unictype/category-Pi-tests: New file.
73019         * modules/unictype/category-Po-tests: New file.
73020         * modules/unictype/category-Ps-tests: New file.
73021         * modules/unictype/category-S-tests: New file.
73022         * modules/unictype/category-Sc-tests: New file.
73023         * modules/unictype/category-Sk-tests: New file.
73024         * modules/unictype/category-Sm-tests: New file.
73025         * modules/unictype/category-So-tests: New file.
73026         * modules/unictype/category-Z-tests: New file.
73027         * modules/unictype/category-Zl-tests: New file.
73028         * modules/unictype/category-Zp-tests: New file.
73029         * modules/unictype/category-Zs-tests: New file.
73030         * modules/unictype/category-and-not-tests: New file.
73031         * modules/unictype/category-and-tests: New file.
73032         * modules/unictype/category-byname-tests: New file.
73033         * modules/unictype/category-name-tests: New file.
73034         * modules/unictype/category-none-tests: New file.
73035         * modules/unictype/category-of-tests: New file.
73036         * modules/unictype/category-or-tests: New file.
73037         * modules/unictype/category-test-withtable-tests: New file.
73038         * modules/unictype/combining-class-tests: New file.
73039         * modules/unictype/ctype-alnum-tests: New file.
73040         * modules/unictype/ctype-alpha-tests: New file.
73041         * modules/unictype/ctype-blank-tests: New file.
73042         * modules/unictype/ctype-cntrl-tests: New file.
73043         * modules/unictype/ctype-digit-tests: New file.
73044         * modules/unictype/ctype-graph-tests: New file.
73045         * modules/unictype/ctype-lower-tests: New file.
73046         * modules/unictype/ctype-print-tests: New file.
73047         * modules/unictype/ctype-punct-tests: New file.
73048         * modules/unictype/ctype-space-tests: New file.
73049         * modules/unictype/ctype-upper-tests: New file.
73050         * modules/unictype/ctype-xdigit-tests: New file.
73051         * modules/unictype/decimal-digit-tests: New file.
73052         * modules/unictype/digit-tests: New file.
73053         * modules/unictype/mirror-tests: New file.
73054         * modules/unictype/numeric-tests: New file.
73055         * modules/unictype/property-alphabetic-tests: New file.
73056         * modules/unictype/property-ascii-hex-digit-tests: New file.
73057         * modules/unictype/property-bidi-arabic-digit-tests: New file.
73058         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
73059         * modules/unictype/property-bidi-block-separator-tests: New file.
73060         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
73061         * modules/unictype/property-bidi-common-separator-tests: New file.
73062         * modules/unictype/property-bidi-control-tests: New file.
73063         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
73064         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
73065         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
73066         * modules/unictype/property-bidi-european-digit-tests: New file.
73067         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
73068         * modules/unictype/property-bidi-left-to-right-tests: New file.
73069         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
73070         * modules/unictype/property-bidi-other-neutral-tests: New file.
73071         * modules/unictype/property-bidi-pdf-tests: New file.
73072         * modules/unictype/property-bidi-segment-separator-tests: New file.
73073         * modules/unictype/property-bidi-whitespace-tests: New file.
73074         * modules/unictype/property-byname-tests: New file.
73075         * modules/unictype/property-combining-tests: New file.
73076         * modules/unictype/property-composite-tests: New file.
73077         * modules/unictype/property-currency-symbol-tests: New file.
73078         * modules/unictype/property-dash-tests: New file.
73079         * modules/unictype/property-decimal-digit-tests: New file.
73080         * modules/unictype/property-default-ignorable-code-point-tests: New file.
73081         * modules/unictype/property-deprecated-tests: New file.
73082         * modules/unictype/property-diacritic-tests: New file.
73083         * modules/unictype/property-extender-tests: New file.
73084         * modules/unictype/property-format-control-tests: New file.
73085         * modules/unictype/property-grapheme-base-tests: New file.
73086         * modules/unictype/property-grapheme-extend-tests: New file.
73087         * modules/unictype/property-grapheme-link-tests: New file.
73088         * modules/unictype/property-hex-digit-tests: New file.
73089         * modules/unictype/property-hyphen-tests: New file.
73090         * modules/unictype/property-id-continue-tests: New file.
73091         * modules/unictype/property-id-start-tests: New file.
73092         * modules/unictype/property-ideographic-tests: New file.
73093         * modules/unictype/property-ids-binary-operator-tests: New file.
73094         * modules/unictype/property-ids-trinary-operator-tests: New file.
73095         * modules/unictype/property-ignorable-control-tests: New file.
73096         * modules/unictype/property-iso-control-tests: New file.
73097         * modules/unictype/property-join-control-tests: New file.
73098         * modules/unictype/property-left-of-pair-tests: New file.
73099         * modules/unictype/property-line-separator-tests: New file.
73100         * modules/unictype/property-logical-order-exception-tests: New file.
73101         * modules/unictype/property-lowercase-tests: New file.
73102         * modules/unictype/property-math-tests: New file.
73103         * modules/unictype/property-non-break-tests: New file.
73104         * modules/unictype/property-not-a-character-tests: New file.
73105         * modules/unictype/property-numeric-tests: New file.
73106         * modules/unictype/property-other-alphabetic-tests: New file.
73107         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
73108         * modules/unictype/property-other-grapheme-extend-tests: New file.
73109         * modules/unictype/property-other-id-continue-tests: New file.
73110         * modules/unictype/property-other-id-start-tests: New file.
73111         * modules/unictype/property-other-lowercase-tests: New file.
73112         * modules/unictype/property-other-math-tests: New file.
73113         * modules/unictype/property-other-uppercase-tests: New file.
73114         * modules/unictype/property-paired-punctuation-tests: New file.
73115         * modules/unictype/property-paragraph-separator-tests: New file.
73116         * modules/unictype/property-pattern-syntax-tests: New file.
73117         * modules/unictype/property-pattern-white-space-tests: New file.
73118         * modules/unictype/property-private-use-tests: New file.
73119         * modules/unictype/property-punctuation-tests: New file.
73120         * modules/unictype/property-quotation-mark-tests: New file.
73121         * modules/unictype/property-radical-tests: New file.
73122         * modules/unictype/property-sentence-terminal-tests: New file.
73123         * modules/unictype/property-soft-dotted-tests: New file.
73124         * modules/unictype/property-space-tests: New file.
73125         * modules/unictype/property-terminal-punctuation-tests: New file.
73126         * modules/unictype/property-test-tests: New file.
73127         * modules/unictype/property-titlecase-tests: New file.
73128         * modules/unictype/property-unassigned-code-value-tests: New file.
73129         * modules/unictype/property-unified-ideograph-tests: New file.
73130         * modules/unictype/property-uppercase-tests: New file.
73131         * modules/unictype/property-variation-selector-tests: New file.
73132         * modules/unictype/property-white-space-tests: New file.
73133         * modules/unictype/property-xid-continue-tests: New file.
73134         * modules/unictype/property-xid-start-tests: New file.
73135         * modules/unictype/property-zero-width-tests: New file.
73136         * modules/unictype/scripts-tests: New file.
73137         * modules/unictype/syntax-c-ident-tests: New file.
73138         * modules/unictype/syntax-c-whitespace-tests: New file.
73139         * modules/unictype/syntax-java-ident-tests: New file.
73140         * modules/unictype/syntax-java-whitespace-tests: New file.
73141         * tests/unictype/test-bidi_byname.c: New file.
73142         * tests/unictype/test-bidi_name.c: New file.
73143         * tests/unictype/test-bidi_of.c: New file.
73144         * tests/unictype/test-bidi_test.c: New file.
73145         * tests/unictype/test-block_list.c: New file.
73146         * tests/unictype/test-block_of.c: New file.
73147         * tests/unictype/test-block_test.c: New file.
73148         * tests/unictype/test-categ_and.c: New file.
73149         * tests/unictype/test-categ_and_not.c: New file.
73150         * tests/unictype/test-categ_byname.c: New file.
73151         * tests/unictype/test-categ_name.c: New file.
73152         * tests/unictype/test-categ_none.c: New file.
73153         * tests/unictype/test-categ_of.c: New file.
73154         * tests/unictype/test-categ_or.c: New file.
73155         * tests/unictype/test-categ_test_withtable.c: New file.
73156         * tests/unictype/test-combining.c: New file.
73157         * tests/unictype/test-decdigit.c: New file.
73158         * tests/unictype/test-digit.c: New file.
73159         * tests/unictype/test-mirror.c: New file.
73160         * tests/unictype/test-numeric.c: New file.
73161         * tests/unictype/test-pr_byname.c: New file.
73162         * tests/unictype/test-pr_test.c: New file.
73163         * tests/unictype/test-predicate-part1.h: New file.
73164         * tests/unictype/test-predicate-part2.h: New file.
73165         * tests/unictype/test-scripts.c: New file.
73166         * tests/unictype/test-sy_c_ident.c: New file.
73167         * tests/unictype/test-sy_java_ident.c: New file.
73169         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
73170         for Unicode 5.0.0.
73171         * tests/unictype/test-categ_Cc.c: Likewise.
73172         * tests/unictype/test-categ_Cf.c: Likewise.
73173         * tests/unictype/test-categ_Cn.c: Likewise.
73174         * tests/unictype/test-categ_Co.c: Likewise.
73175         * tests/unictype/test-categ_Cs.c: Likewise.
73176         * tests/unictype/test-categ_L.c: Likewise.
73177         * tests/unictype/test-categ_Ll.c: Likewise.
73178         * tests/unictype/test-categ_Lm.c: Likewise.
73179         * tests/unictype/test-categ_Lo.c: Likewise.
73180         * tests/unictype/test-categ_Lt.c: Likewise.
73181         * tests/unictype/test-categ_Lu.c: Likewise.
73182         * tests/unictype/test-categ_M.c: Likewise.
73183         * tests/unictype/test-categ_Mc.c: Likewise.
73184         * tests/unictype/test-categ_Me.c: Likewise.
73185         * tests/unictype/test-categ_Mn.c: Likewise.
73186         * tests/unictype/test-categ_N.c: Likewise.
73187         * tests/unictype/test-categ_Nd.c: Likewise.
73188         * tests/unictype/test-categ_Nl.c: Likewise.
73189         * tests/unictype/test-categ_No.c: Likewise.
73190         * tests/unictype/test-categ_P.c: Likewise.
73191         * tests/unictype/test-categ_Pc.c: Likewise.
73192         * tests/unictype/test-categ_Pd.c: Likewise.
73193         * tests/unictype/test-categ_Pe.c: Likewise.
73194         * tests/unictype/test-categ_Pf.c: Likewise.
73195         * tests/unictype/test-categ_Pi.c: Likewise.
73196         * tests/unictype/test-categ_Po.c: Likewise.
73197         * tests/unictype/test-categ_Ps.c: Likewise.
73198         * tests/unictype/test-categ_S.c: Likewise.
73199         * tests/unictype/test-categ_Sc.c: Likewise.
73200         * tests/unictype/test-categ_Sk.c: Likewise.
73201         * tests/unictype/test-categ_Sm.c: Likewise.
73202         * tests/unictype/test-categ_So.c: Likewise.
73203         * tests/unictype/test-categ_Z.c: Likewise.
73204         * tests/unictype/test-categ_Zl.c: Likewise.
73205         * tests/unictype/test-categ_Zp.c: Likewise.
73206         * tests/unictype/test-categ_Zs.c: Likewise.
73207         * tests/unictype/test-ctype_alnum.c: Likewise.
73208         * tests/unictype/test-ctype_alpha.c: Likewise.
73209         * tests/unictype/test-ctype_blank.c: Likewise.
73210         * tests/unictype/test-ctype_cntrl.c: Likewise.
73211         * tests/unictype/test-ctype_digit.c: Likewise.
73212         * tests/unictype/test-ctype_graph.c: Likewise.
73213         * tests/unictype/test-ctype_lower.c: Likewise.
73214         * tests/unictype/test-ctype_print.c: Likewise.
73215         * tests/unictype/test-ctype_punct.c: Likewise.
73216         * tests/unictype/test-ctype_space.c: Likewise.
73217         * tests/unictype/test-ctype_upper.c: Likewise.
73218         * tests/unictype/test-ctype_xdigit.c: Likewise.
73219         * tests/unictype/test-decdigit.h: Likewise.
73220         * tests/unictype/test-digit.h: Likewise.
73221         * tests/unictype/test-numeric.h: Likewise.
73222         * tests/unictype/test-pr_alphabetic.c: Likewise.
73223         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
73224         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
73225         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
73226         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
73227         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
73228         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
73229         * tests/unictype/test-pr_bidi_control.c: Likewise.
73230         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
73231         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
73232         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
73233         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
73234         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
73235         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
73236         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
73237         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
73238         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
73239         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
73240         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
73241         * tests/unictype/test-pr_combining.c: Likewise.
73242         * tests/unictype/test-pr_composite.c: Likewise.
73243         * tests/unictype/test-pr_currency_symbol.c: Likewise.
73244         * tests/unictype/test-pr_dash.c: Likewise.
73245         * tests/unictype/test-pr_decimal_digit.c: Likewise.
73246         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
73247         * tests/unictype/test-pr_deprecated.c: Likewise.
73248         * tests/unictype/test-pr_diacritic.c: Likewise.
73249         * tests/unictype/test-pr_extender.c: Likewise.
73250         * tests/unictype/test-pr_format_control.c: Likewise.
73251         * tests/unictype/test-pr_grapheme_base.c: Likewise.
73252         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
73253         * tests/unictype/test-pr_grapheme_link.c: Likewise.
73254         * tests/unictype/test-pr_hex_digit.c: Likewise.
73255         * tests/unictype/test-pr_hyphen.c: Likewise.
73256         * tests/unictype/test-pr_id_continue.c: Likewise.
73257         * tests/unictype/test-pr_id_start.c: Likewise.
73258         * tests/unictype/test-pr_ideographic.c: Likewise.
73259         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
73260         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
73261         * tests/unictype/test-pr_ignorable_control.c: Likewise.
73262         * tests/unictype/test-pr_iso_control.c: Likewise.
73263         * tests/unictype/test-pr_join_control.c: Likewise.
73264         * tests/unictype/test-pr_left_of_pair.c: Likewise.
73265         * tests/unictype/test-pr_line_separator.c: Likewise.
73266         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
73267         * tests/unictype/test-pr_lowercase.c: Likewise.
73268         * tests/unictype/test-pr_math.c: Likewise.
73269         * tests/unictype/test-pr_non_break.c: Likewise.
73270         * tests/unictype/test-pr_not_a_character.c: Likewise.
73271         * tests/unictype/test-pr_numeric.c: Likewise.
73272         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
73273         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
73274         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
73275         * tests/unictype/test-pr_other_id_continue.c: Likewise.
73276         * tests/unictype/test-pr_other_id_start.c: Likewise.
73277         * tests/unictype/test-pr_other_lowercase.c: Likewise.
73278         * tests/unictype/test-pr_other_math.c: Likewise.
73279         * tests/unictype/test-pr_other_uppercase.c: Likewise.
73280         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
73281         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
73282         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
73283         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
73284         * tests/unictype/test-pr_private_use.c: Likewise.
73285         * tests/unictype/test-pr_punctuation.c: Likewise.
73286         * tests/unictype/test-pr_quotation_mark.c: Likewise.
73287         * tests/unictype/test-pr_radical.c: Likewise.
73288         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
73289         * tests/unictype/test-pr_soft_dotted.c: Likewise.
73290         * tests/unictype/test-pr_space.c: Likewise.
73291         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
73292         * tests/unictype/test-pr_titlecase.c: Likewise.
73293         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
73294         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
73295         * tests/unictype/test-pr_uppercase.c: Likewise.
73296         * tests/unictype/test-pr_variation_selector.c: Likewise.
73297         * tests/unictype/test-pr_white_space.c: Likewise.
73298         * tests/unictype/test-pr_xid_continue.c: Likewise.
73299         * tests/unictype/test-pr_xid_start.c: Likewise.
73300         * tests/unictype/test-pr_zero_width.c: Likewise.
73301         * tests/unictype/test-sy_c_whitespace.c: Likewise.
73302         * tests/unictype/test-sy_java_whitespace.c: Likewise.
73304 2007-11-12  Bruno Haible  <bruno@clisp.org>
73306         Unicode character classification functions.
73307         * lib/unictype.h: New file.
73308         * modules/unictype/base: New file.
73309         * modules/unictype/category-L: New file.
73310         * modules/unictype/category-Lu: New file.
73311         * modules/unictype/category-Ll: New file.
73312         * modules/unictype/category-Lt: New file.
73313         * modules/unictype/category-Lm: New file.
73314         * modules/unictype/category-Lo: New file.
73315         * modules/unictype/category-M: New file.
73316         * modules/unictype/category-Mn: New file.
73317         * modules/unictype/category-Mc: New file.
73318         * modules/unictype/category-Me: New file.
73319         * modules/unictype/category-N: New file.
73320         * modules/unictype/category-Nd: New file.
73321         * modules/unictype/category-Nl: New file.
73322         * modules/unictype/category-No: New file.
73323         * modules/unictype/category-P: New file.
73324         * modules/unictype/category-Pc: New file.
73325         * modules/unictype/category-Pd: New file.
73326         * modules/unictype/category-Ps: New file.
73327         * modules/unictype/category-Pe: New file.
73328         * modules/unictype/category-Pi: New file.
73329         * modules/unictype/category-Pf: New file.
73330         * modules/unictype/category-Po: New file.
73331         * modules/unictype/category-S: New file.
73332         * modules/unictype/category-Sm: New file.
73333         * modules/unictype/category-Sc: New file.
73334         * modules/unictype/category-Sk: New file.
73335         * modules/unictype/category-So: New file.
73336         * modules/unictype/category-Z: New file.
73337         * modules/unictype/category-Zs: New file.
73338         * modules/unictype/category-Zl: New file.
73339         * modules/unictype/category-Zp: New file.
73340         * modules/unictype/category-C: New file.
73341         * modules/unictype/category-Cc: New file.
73342         * modules/unictype/category-Cf: New file.
73343         * modules/unictype/category-Cs: New file.
73344         * modules/unictype/category-Co: New file.
73345         * modules/unictype/category-Cn: New file.
73346         * modules/unictype/category-or: New file.
73347         * modules/unictype/category-of: New file.
73348         * modules/unictype/category-test: New file.
73349         * modules/unictype/category-test-withtable: New file.
73350         * modules/unictype/category-byname: New file.
73351         * modules/unictype/category-none: New file.
73352         * modules/unictype/category-and: New file.
73353         * modules/unictype/category-and-not: New file.
73354         * modules/unictype/category-name: New file.
73355         * modules/unictype/combining-class: New file.
73356         * modules/unictype/category-all: New file.
73357         * modules/unictype/bidicategory-all: New file.
73358         * modules/unictype/bidicategory-byname: New file.
73359         * modules/unictype/bidicategory-name: New file.
73360         * modules/unictype/bidicategory-of: New file.
73361         * modules/unictype/bidicategory-test: New file.
73362         * modules/unictype/decimal-digit: New file.
73363         * modules/unictype/digit: New file.
73364         * modules/unictype/numeric: New file.
73365         * modules/unictype/mirror: New file.
73366         * modules/unictype/property-white-space: New file.
73367         * modules/unictype/property-alphabetic: New file.
73368         * modules/unictype/property-other-alphabetic: New file.
73369         * modules/unictype/property-not-a-character: New file.
73370         * modules/unictype/property-default-ignorable-code-point: New file.
73371         * modules/unictype/property-other-default-ignorable-code-point: New
73372         file.
73373         * modules/unictype/property-deprecated: New file.
73374         * modules/unictype/property-logical-order-exception: New file.
73375         * modules/unictype/property-variation-selector: New file.
73376         * modules/unictype/property-private-use: New file.
73377         * modules/unictype/property-unassigned-code-value: New file.
73378         * modules/unictype/property-uppercase: New file.
73379         * modules/unictype/property-other-uppercase: New file.
73380         * modules/unictype/property-lowercase: New file.
73381         * modules/unictype/property-other-lowercase: New file.
73382         * modules/unictype/property-titlecase: New file.
73383         * modules/unictype/property-soft-dotted: New file.
73384         * modules/unictype/property-id-start: New file.
73385         * modules/unictype/property-other-id-start: New file.
73386         * modules/unictype/property-id-continue: New file.
73387         * modules/unictype/property-other-id-continue: New file.
73388         * modules/unictype/property-xid-start: New file.
73389         * modules/unictype/property-xid-continue: New file.
73390         * modules/unictype/property-pattern-white-space: New file.
73391         * modules/unictype/property-pattern-syntax: New file.
73392         * modules/unictype/property-join-control: New file.
73393         * modules/unictype/property-grapheme-base: New file.
73394         * modules/unictype/property-grapheme-extend: New file.
73395         * modules/unictype/property-other-grapheme-extend: New file.
73396         * modules/unictype/property-grapheme-link: New file.
73397         * modules/unictype/property-bidi-control: New file.
73398         * modules/unictype/property-bidi-left-to-right: New file.
73399         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
73400         * modules/unictype/property-bidi-arabic-right-to-left: New file.
73401         * modules/unictype/property-bidi-european-digit: New file.
73402         * modules/unictype/property-bidi-eur-num-separator: New file.
73403         * modules/unictype/property-bidi-eur-num-terminator: New file.
73404         * modules/unictype/property-bidi-arabic-digit: New file.
73405         * modules/unictype/property-bidi-common-separator: New file.
73406         * modules/unictype/property-bidi-block-separator: New file.
73407         * modules/unictype/property-bidi-segment-separator: New file.
73408         * modules/unictype/property-bidi-whitespace: New file.
73409         * modules/unictype/property-bidi-non-spacing-mark: New file.
73410         * modules/unictype/property-bidi-boundary-neutral: New file.
73411         * modules/unictype/property-bidi-pdf: New file.
73412         * modules/unictype/property-bidi-embedding-or-override: New file.
73413         * modules/unictype/property-bidi-other-neutral: New file.
73414         * modules/unictype/property-hex-digit: New file.
73415         * modules/unictype/property-ascii-hex-digit: New file.
73416         * modules/unictype/property-ideographic: New file.
73417         * modules/unictype/property-unified-ideograph: New file.
73418         * modules/unictype/property-radical: New file.
73419         * modules/unictype/property-ids-binary-operator: New file.
73420         * modules/unictype/property-ids-trinary-operator: New file.
73421         * modules/unictype/property-zero-width: New file.
73422         * modules/unictype/property-space: New file.
73423         * modules/unictype/property-non-break: New file.
73424         * modules/unictype/property-iso-control: New file.
73425         * modules/unictype/property-format-control: New file.
73426         * modules/unictype/property-dash: New file.
73427         * modules/unictype/property-hyphen: New file.
73428         * modules/unictype/property-punctuation: New file.
73429         * modules/unictype/property-line-separator: New file.
73430         * modules/unictype/property-paragraph-separator: New file.
73431         * modules/unictype/property-quotation-mark: New file.
73432         * modules/unictype/property-sentence-terminal: New file.
73433         * modules/unictype/property-terminal-punctuation: New file.
73434         * modules/unictype/property-currency-symbol: New file.
73435         * modules/unictype/property-math: New file.
73436         * modules/unictype/property-other-math: New file.
73437         * modules/unictype/property-paired-punctuation: New file.
73438         * modules/unictype/property-left-of-pair: New file.
73439         * modules/unictype/property-combining: New file.
73440         * modules/unictype/property-composite: New file.
73441         * modules/unictype/property-decimal-digit: New file.
73442         * modules/unictype/property-numeric: New file.
73443         * modules/unictype/property-diacritic: New file.
73444         * modules/unictype/property-extender: New file.
73445         * modules/unictype/property-ignorable-control: New file.
73446         * modules/unictype/property-test: New file.
73447         * modules/unictype/property-byname: New file.
73448         * modules/unictype/property-all: New file.
73449         * modules/unictype/scripts: New file.
73450         * modules/unictype/scripts-all: New file.
73451         * modules/unictype/block-of: New file.
73452         * modules/unictype/block-test: New file.
73453         * modules/unictype/block-list: New file.
73454         * modules/unictype/block-all: New file.
73455         * modules/unictype/syntax-c-whitespace: New file.
73456         * modules/unictype/syntax-java-whitespace: New file.
73457         * modules/unictype/syntax-c-ident: New file.
73458         * modules/unictype/syntax-java-ident: New file.
73459         * modules/unictype/ctype-alnum: New file.
73460         * modules/unictype/ctype-alpha: New file.
73461         * modules/unictype/ctype-cntrl: New file.
73462         * modules/unictype/ctype-digit: New file.
73463         * modules/unictype/ctype-graph: New file.
73464         * modules/unictype/ctype-lower: New file.
73465         * modules/unictype/ctype-print: New file.
73466         * modules/unictype/ctype-punct: New file.
73467         * modules/unictype/ctype-space: New file.
73468         * modules/unictype/ctype-upper: New file.
73469         * modules/unictype/ctype-xdigit: New file.
73470         * modules/unictype/ctype-blank: New file.
73471         * lib/unictype/bidi_byname.c: New file.
73472         * lib/unictype/bidi_name.c: New file.
73473         * lib/unictype/bidi_of.c: New file.
73474         * lib/unictype/bidi_test.c: New file.
73475         * lib/unictype/bitmap.h: New file.
73476         * lib/unictype/block_test.c: New file.
73477         * lib/unictype/blocks.c: New file.
73478         * lib/unictype/categ_C.c: New file.
73479         * lib/unictype/categ_Cc.c: New file.
73480         * lib/unictype/categ_Cf.c: New file.
73481         * lib/unictype/categ_Cn.c: New file.
73482         * lib/unictype/categ_Co.c: New file.
73483         * lib/unictype/categ_Cs.c: New file.
73484         * lib/unictype/categ_L.c: New file.
73485         * lib/unictype/categ_Ll.c: New file.
73486         * lib/unictype/categ_Lm.c: New file.
73487         * lib/unictype/categ_Lo.c: New file.
73488         * lib/unictype/categ_Lt.c: New file.
73489         * lib/unictype/categ_Lu.c: New file.
73490         * lib/unictype/categ_M.c: New file.
73491         * lib/unictype/categ_Mc.c: New file.
73492         * lib/unictype/categ_Me.c: New file.
73493         * lib/unictype/categ_Mn.c: New file.
73494         * lib/unictype/categ_N.c: New file.
73495         * lib/unictype/categ_Nd.c: New file.
73496         * lib/unictype/categ_Nl.c: New file.
73497         * lib/unictype/categ_No.c: New file.
73498         * lib/unictype/categ_P.c: New file.
73499         * lib/unictype/categ_Pc.c: New file.
73500         * lib/unictype/categ_Pd.c: New file.
73501         * lib/unictype/categ_Pe.c: New file.
73502         * lib/unictype/categ_Pf.c: New file.
73503         * lib/unictype/categ_Pi.c: New file.
73504         * lib/unictype/categ_Po.c: New file.
73505         * lib/unictype/categ_Ps.c: New file.
73506         * lib/unictype/categ_S.c: New file.
73507         * lib/unictype/categ_Sc.c: New file.
73508         * lib/unictype/categ_Sk.c: New file.
73509         * lib/unictype/categ_Sm.c: New file.
73510         * lib/unictype/categ_So.c: New file.
73511         * lib/unictype/categ_Z.c: New file.
73512         * lib/unictype/categ_Zl.c: New file.
73513         * lib/unictype/categ_Zp.c: New file.
73514         * lib/unictype/categ_Zs.c: New file.
73515         * lib/unictype/categ_and.c: New file.
73516         * lib/unictype/categ_and_not.c: New file.
73517         * lib/unictype/categ_byname.c: New file.
73518         * lib/unictype/categ_name.c: New file.
73519         * lib/unictype/categ_none.c: New file.
73520         * lib/unictype/categ_of.c: New file.
73521         * lib/unictype/categ_or.c: New file.
73522         * lib/unictype/categ_test.c: New file.
73523         * lib/unictype/combining.c: New file.
73524         * lib/unictype/ctype_alnum.c: New file.
73525         * lib/unictype/ctype_alpha.c: New file.
73526         * lib/unictype/ctype_blank.c: New file.
73527         * lib/unictype/ctype_cntrl.c: New file.
73528         * lib/unictype/ctype_digit.c: New file.
73529         * lib/unictype/ctype_graph.c: New file.
73530         * lib/unictype/ctype_lower.c: New file.
73531         * lib/unictype/ctype_print.c: New file.
73532         * lib/unictype/ctype_punct.c: New file.
73533         * lib/unictype/ctype_space.c: New file.
73534         * lib/unictype/ctype_upper.c: New file.
73535         * lib/unictype/ctype_xdigit.c: New file.
73536         * lib/unictype/decdigit.c: New file.
73537         * lib/unictype/digit.c: New file.
73538         * lib/unictype/identsyntaxmap.h: New file.
73539         * lib/unictype/mirror.c: New file.
73540         * lib/unictype/numeric.c: New file.
73541         * lib/unictype/pr_alphabetic.c: New file.
73542         * lib/unictype/pr_ascii_hex_digit.c: New file.
73543         * lib/unictype/pr_bidi_arabic_digit.c: New file.
73544         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
73545         * lib/unictype/pr_bidi_block_separator.c: New file.
73546         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
73547         * lib/unictype/pr_bidi_common_separator.c: New file.
73548         * lib/unictype/pr_bidi_control.c: New file.
73549         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
73550         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
73551         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
73552         * lib/unictype/pr_bidi_european_digit.c: New file.
73553         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
73554         * lib/unictype/pr_bidi_left_to_right.c: New file.
73555         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
73556         * lib/unictype/pr_bidi_other_neutral.c: New file.
73557         * lib/unictype/pr_bidi_pdf.c: New file.
73558         * lib/unictype/pr_bidi_segment_separator.c: New file.
73559         * lib/unictype/pr_bidi_whitespace.c: New file.
73560         * lib/unictype/pr_byname.c: New file.
73561         * lib/unictype/pr_byname.gperf: New file.
73562         * lib/unictype/pr_combining.c: New file.
73563         * lib/unictype/pr_composite.c: New file.
73564         * lib/unictype/pr_currency_symbol.c: New file.
73565         * lib/unictype/pr_dash.c: New file.
73566         * lib/unictype/pr_decimal_digit.c: New file.
73567         * lib/unictype/pr_default_ignorable_code_point.c: New file.
73568         * lib/unictype/pr_deprecated.c: New file.
73569         * lib/unictype/pr_diacritic.c: New file.
73570         * lib/unictype/pr_extender.c: New file.
73571         * lib/unictype/pr_format_control.c: New file.
73572         * lib/unictype/pr_grapheme_base.c: New file.
73573         * lib/unictype/pr_grapheme_extend.c: New file.
73574         * lib/unictype/pr_grapheme_link.c: New file.
73575         * lib/unictype/pr_hex_digit.c: New file.
73576         * lib/unictype/pr_hyphen.c: New file.
73577         * lib/unictype/pr_id_continue.c: New file.
73578         * lib/unictype/pr_id_start.c: New file.
73579         * lib/unictype/pr_ideographic.c: New file.
73580         * lib/unictype/pr_ids_binary_operator.c: New file.
73581         * lib/unictype/pr_ids_trinary_operator.c: New file.
73582         * lib/unictype/pr_ignorable_control.c: New file.
73583         * lib/unictype/pr_iso_control.c: New file.
73584         * lib/unictype/pr_join_control.c: New file.
73585         * lib/unictype/pr_left_of_pair.c: New file.
73586         * lib/unictype/pr_line_separator.c: New file.
73587         * lib/unictype/pr_logical_order_exception.c: New file.
73588         * lib/unictype/pr_lowercase.c: New file.
73589         * lib/unictype/pr_math.c: New file.
73590         * lib/unictype/pr_non_break.c: New file.
73591         * lib/unictype/pr_not_a_character.c: New file.
73592         * lib/unictype/pr_numeric.c: New file.
73593         * lib/unictype/pr_other_alphabetic.c: New file.
73594         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
73595         * lib/unictype/pr_other_grapheme_extend.c: New file.
73596         * lib/unictype/pr_other_id_continue.c: New file.
73597         * lib/unictype/pr_other_id_start.c: New file.
73598         * lib/unictype/pr_other_lowercase.c: New file.
73599         * lib/unictype/pr_other_math.c: New file.
73600         * lib/unictype/pr_other_uppercase.c: New file.
73601         * lib/unictype/pr_paired_punctuation.c: New file.
73602         * lib/unictype/pr_paragraph_separator.c: New file.
73603         * lib/unictype/pr_pattern_syntax.c: New file.
73604         * lib/unictype/pr_pattern_white_space.c: New file.
73605         * lib/unictype/pr_private_use.c: New file.
73606         * lib/unictype/pr_punctuation.c: New file.
73607         * lib/unictype/pr_quotation_mark.c: New file.
73608         * lib/unictype/pr_radical.c: New file.
73609         * lib/unictype/pr_sentence_terminal.c: New file.
73610         * lib/unictype/pr_soft_dotted.c: New file.
73611         * lib/unictype/pr_space.c: New file.
73612         * lib/unictype/pr_terminal_punctuation.c: New file.
73613         * lib/unictype/pr_test.c: New file.
73614         * lib/unictype/pr_titlecase.c: New file.
73615         * lib/unictype/pr_unassigned_code_value.c: New file.
73616         * lib/unictype/pr_unified_ideograph.c: New file.
73617         * lib/unictype/pr_uppercase.c: New file.
73618         * lib/unictype/pr_variation_selector.c: New file.
73619         * lib/unictype/pr_white_space.c: New file.
73620         * lib/unictype/pr_xid_continue.c: New file.
73621         * lib/unictype/pr_xid_start.c: New file.
73622         * lib/unictype/pr_zero_width.c: New file.
73623         * lib/unictype/scripts.c: New file.
73624         * lib/unictype/sy_c_ident.c: New file.
73625         * lib/unictype/sy_c_whitespace.c: New file.
73626         * lib/unictype/sy_java_ident.c: New file.
73627         * lib/unictype/sy_java_whitespace.c: New file.
73629         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
73630         Unicode 5.0.0.
73631         * lib/unictype/blocks.h: Likewise.
73632         * lib/unictype/categ_C.h: Likewise.
73633         * lib/unictype/categ_Cc.h: Likewise.
73634         * lib/unictype/categ_Cf.h: Likewise.
73635         * lib/unictype/categ_Cn.h: Likewise.
73636         * lib/unictype/categ_Co.h: Likewise.
73637         * lib/unictype/categ_Cs.h: Likewise.
73638         * lib/unictype/categ_L.h: Likewise.
73639         * lib/unictype/categ_Ll.h: Likewise.
73640         * lib/unictype/categ_Lm.h: Likewise.
73641         * lib/unictype/categ_Lo.h: Likewise.
73642         * lib/unictype/categ_Lt.h: Likewise.
73643         * lib/unictype/categ_Lu.h: Likewise.
73644         * lib/unictype/categ_M.h: Likewise.
73645         * lib/unictype/categ_Mc.h: Likewise.
73646         * lib/unictype/categ_Me.h: Likewise.
73647         * lib/unictype/categ_Mn.h: Likewise.
73648         * lib/unictype/categ_N.h: Likewise.
73649         * lib/unictype/categ_Nd.h: Likewise.
73650         * lib/unictype/categ_Nl.h: Likewise.
73651         * lib/unictype/categ_No.h: Likewise.
73652         * lib/unictype/categ_P.h: Likewise.
73653         * lib/unictype/categ_Pc.h: Likewise.
73654         * lib/unictype/categ_Pd.h: Likewise.
73655         * lib/unictype/categ_Pe.h: Likewise.
73656         * lib/unictype/categ_Pf.h: Likewise.
73657         * lib/unictype/categ_Pi.h: Likewise.
73658         * lib/unictype/categ_Po.h: Likewise.
73659         * lib/unictype/categ_Ps.h: Likewise.
73660         * lib/unictype/categ_S.h: Likewise.
73661         * lib/unictype/categ_Sc.h: Likewise.
73662         * lib/unictype/categ_Sk.h: Likewise.
73663         * lib/unictype/categ_Sm.h: Likewise.
73664         * lib/unictype/categ_So.h: Likewise.
73665         * lib/unictype/categ_Z.h: Likewise.
73666         * lib/unictype/categ_Zl.h: Likewise.
73667         * lib/unictype/categ_Zp.h: Likewise.
73668         * lib/unictype/categ_Zs.h: Likewise.
73669         * lib/unictype/categ_of.h: Likewise.
73670         * lib/unictype/combining.h: Likewise.
73671         * lib/unictype/ctype_alnum.h: Likewise.
73672         * lib/unictype/ctype_alpha.h: Likewise.
73673         * lib/unictype/ctype_blank.h: Likewise.
73674         * lib/unictype/ctype_cntrl.h: Likewise.
73675         * lib/unictype/ctype_digit.h: Likewise.
73676         * lib/unictype/ctype_graph.h: Likewise.
73677         * lib/unictype/ctype_lower.h: Likewise.
73678         * lib/unictype/ctype_print.h: Likewise.
73679         * lib/unictype/ctype_punct.h: Likewise.
73680         * lib/unictype/ctype_space.h: Likewise.
73681         * lib/unictype/ctype_upper.h: Likewise.
73682         * lib/unictype/ctype_xdigit.h: Likewise.
73683         * lib/unictype/decdigit.h: Likewise.
73684         * lib/unictype/digit.h: Likewise.
73685         * lib/unictype/mirror.h: Likewise.
73686         * lib/unictype/numeric.h: Likewise.
73687         * lib/unictype/pr_alphabetic.h: Likewise.
73688         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
73689         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
73690         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
73691         * lib/unictype/pr_bidi_block_separator.h: Likewise.
73692         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
73693         * lib/unictype/pr_bidi_common_separator.h: Likewise.
73694         * lib/unictype/pr_bidi_control.h: Likewise.
73695         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
73696         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
73697         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
73698         * lib/unictype/pr_bidi_european_digit.h: Likewise.
73699         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
73700         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
73701         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
73702         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
73703         * lib/unictype/pr_bidi_pdf.h: Likewise.
73704         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
73705         * lib/unictype/pr_bidi_whitespace.h: Likewise.
73706         * lib/unictype/pr_combining.h: Likewise.
73707         * lib/unictype/pr_composite.h: Likewise.
73708         * lib/unictype/pr_currency_symbol.h: Likewise.
73709         * lib/unictype/pr_dash.h: Likewise.
73710         * lib/unictype/pr_decimal_digit.h: Likewise.
73711         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
73712         * lib/unictype/pr_deprecated.h: Likewise.
73713         * lib/unictype/pr_diacritic.h: Likewise.
73714         * lib/unictype/pr_extender.h: Likewise.
73715         * lib/unictype/pr_format_control.h: Likewise.
73716         * lib/unictype/pr_grapheme_base.h: Likewise.
73717         * lib/unictype/pr_grapheme_extend.h: Likewise.
73718         * lib/unictype/pr_grapheme_link.h: Likewise.
73719         * lib/unictype/pr_hex_digit.h: Likewise.
73720         * lib/unictype/pr_hyphen.h: Likewise.
73721         * lib/unictype/pr_id_continue.h: Likewise.
73722         * lib/unictype/pr_id_start.h: Likewise.
73723         * lib/unictype/pr_ideographic.h: Likewise.
73724         * lib/unictype/pr_ids_binary_operator.h: Likewise.
73725         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
73726         * lib/unictype/pr_ignorable_control.h: Likewise.
73727         * lib/unictype/pr_iso_control.h: Likewise.
73728         * lib/unictype/pr_join_control.h: Likewise.
73729         * lib/unictype/pr_left_of_pair.h: Likewise.
73730         * lib/unictype/pr_line_separator.h: Likewise.
73731         * lib/unictype/pr_logical_order_exception.h: Likewise.
73732         * lib/unictype/pr_lowercase.h: Likewise.
73733         * lib/unictype/pr_math.h: Likewise.
73734         * lib/unictype/pr_non_break.h: Likewise.
73735         * lib/unictype/pr_not_a_character.h: Likewise.
73736         * lib/unictype/pr_numeric.h: Likewise.
73737         * lib/unictype/pr_other_alphabetic.h: Likewise.
73738         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
73739         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
73740         * lib/unictype/pr_other_id_continue.h: Likewise.
73741         * lib/unictype/pr_other_id_start.h: Likewise.
73742         * lib/unictype/pr_other_lowercase.h: Likewise.
73743         * lib/unictype/pr_other_math.h: Likewise.
73744         * lib/unictype/pr_other_uppercase.h: Likewise.
73745         * lib/unictype/pr_paired_punctuation.h: Likewise.
73746         * lib/unictype/pr_paragraph_separator.h: Likewise.
73747         * lib/unictype/pr_pattern_syntax.h: Likewise.
73748         * lib/unictype/pr_pattern_white_space.h: Likewise.
73749         * lib/unictype/pr_private_use.h: Likewise.
73750         * lib/unictype/pr_punctuation.h: Likewise.
73751         * lib/unictype/pr_quotation_mark.h: Likewise.
73752         * lib/unictype/pr_radical.h: Likewise.
73753         * lib/unictype/pr_sentence_terminal.h: Likewise.
73754         * lib/unictype/pr_soft_dotted.h: Likewise.
73755         * lib/unictype/pr_space.h: Likewise.
73756         * lib/unictype/pr_terminal_punctuation.h: Likewise.
73757         * lib/unictype/pr_titlecase.h: Likewise.
73758         * lib/unictype/pr_unassigned_code_value.h: Likewise.
73759         * lib/unictype/pr_unified_ideograph.h: Likewise.
73760         * lib/unictype/pr_uppercase.h: Likewise.
73761         * lib/unictype/pr_variation_selector.h: Likewise.
73762         * lib/unictype/pr_white_space.h: Likewise.
73763         * lib/unictype/pr_xid_continue.h: Likewise.
73764         * lib/unictype/pr_xid_start.h: Likewise.
73765         * lib/unictype/pr_zero_width.h: Likewise.
73766         * lib/unictype/scripts.h: Likewise.
73767         * lib/unictype/scripts_byname.gperf: Likewise.
73768         * lib/unictype/sy_c_ident.h: Likewise.
73769         * lib/unictype/sy_c_whitespace.h: Likewise.
73770         * lib/unictype/sy_java_ident.h: Likewise.
73771         * lib/unictype/sy_java_whitespace.h: Likewise.
73773         * lib/unictype/Makefile: New file.
73774         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
73775         glibc.
73776         * lib/unictype/3level.h: New file, copied from glibc.
73777         * lib/unictype/3levelbit.h: New file.
73779 2007-11-11  Bruno Haible  <bruno@clisp.org>
73781         * modules/gperf: New file.
73782         * modules/iconv_open (Depends-on): Add it.
73783         (Makefile.am): Remove the GPERF definition.
73785 2007-11-11  Bruno Haible  <bruno@clisp.org>
73787         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
73788         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
73790 2007-11-11  Bruno Haible  <bruno@clisp.org>
73792         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
73793         (usage): Remove function.
73795 2007-11-11  Bruno Haible  <bruno@clisp.org>
73797         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
73798         gl_FUNC_CEILF_LIBS.
73799         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
73800         gl_FUNC_CEIL_LIBS.
73801         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
73802         gl_FUNC_CEILL_LIBS.
73803         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
73804         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
73805         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
73807 2007-11-11  Bruno Haible  <bruno@clisp.org>
73809         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
73810         roundf were declared but do not exist on functions.
73811         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
73812         roundl were declared but do not exist on functions.
73813         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
73814         HAVE_FLOORL_AND_CEILL, respectively.
73815         Needed for Sun C on Solaris 10.
73817 2007-11-11  Bruno Haible  <bruno@clisp.org>
73819         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
73820         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
73821         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
73822         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
73823         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
73824         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
73825         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
73826         HAVE_DECL_ROUNDF.
73827         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
73828         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
73829         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
73830         of HAVE_DECL_ROUND*.
73831         * modules/math (Makefile.am): Update.
73833 2007-11-10  Bruno Haible  <bruno@clisp.org>
73835         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
73836         ptrdiff_t as m4/intl.m4.
73838 2007-11-10  Jim Meyering  <meyering@redhat.com>
73840         Avoid link failure for the argmatch test.
73841         * tests/test-argmatch.c (usage): Define function to avoid a link
73842         failure: argmatch_die requires a usage function.
73844 2007-11-09  Bruno Haible  <bruno@clisp.org>
73846         * doc/functions/snprintf.texi: Mention BeOS deficiency.
73847         * doc/functions/vsnprintf.texi: Likewise.
73848         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
73849         with a size argument < 2.
73851 2007-11-09  Bruno Haible  <bruno@clisp.org>
73853         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
73854         buffer. Fixes an inefficiency introduced on 2007-11-03.
73856 2007-11-09  Bruno Haible  <bruno@clisp.org>
73858         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
73859         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
73861 2007-11-08  Jim Meyering  <meyering@redhat.com>
73863         Change cache variable name prefix "jm_" to "gl_" everywhere.
73864         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
73865         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
73866         * m4/uptime.m4: s/gl_/jm_/
73868 2007-11-07  Bruno Haible  <bruno@clisp.org>
73870         Update to GNU gettext 0.17.
73871         * m4/intl.m4: Update to GNU gettext 0.17.
73872         * m4/po.m4: Likewise.
73873         * modules/gettext (Files): Remove m4/ulonglong.m4.
73874         (configure.ac): Require gettext infrastructure from version 0.17.
73876 2007-11-06  Bruno Haible  <bruno@clisp.org>
73878         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
73879         symbolic values are not defined in a public header.
73880         * lib/freadable.c (freadable) [QNX]: Likewise.
73881         * lib/freadahead.c (freadahead) [QNX]: Likewise.
73882         * lib/freading.c (freading) [QNX]: Likewise.
73883         * lib/fseterr.c (fseterr) [QNX]: Likewise.
73884         * lib/fwritable.c (fwritable) [QNX]: Likewise.
73885         * lib/fwriting.c (fwriting) [QNX]: Likewise.
73886         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
73887         Reported by Alain Magloire.
73889         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
73891 2007-11-05  Bruno Haible  <bruno@clisp.org>
73893         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
73894         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
73895         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
73896         Reported by Eric Blake.
73898 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73899             Bruno Haible  <bruno@clisp.org>
73901         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
73902         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
73903         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
73904         (malloc): Undefine also before including <stdlib.h>.
73905         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
73906         Needed on OSF/1 4.0.
73908 2007-11-05  Jim Meyering  <meyering@redhat.com>
73910         git-version-gen: sync from coreutils.
73911         * build-aux/git-version-gen: Add comments.
73912         Change the first '-' to '.' in the snapshot version string,
73913         e.g., 6.9-377-08144 -> 6.9.377-08144
73914         Remove first parameter.
73915         Don't declare a version "-dirty" merely because a time
73916         stamp has changed.
73918 2007-11-04  Bruno Haible  <bruno@clisp.org>
73920         * lib/lock.h: Protect all macro definitions containing an 'if'
73921         statement through a "do { ... } while (0)".
73922         * lib/tls.h: Likewise.
73924 2007-11-04  Bruno Haible  <bruno@clisp.org>
73926         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
73928 2007-11-04  Bruno Haible  <bruno@clisp.org>
73930         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
73931         * modules/fprintf-posix (Depends-on): Add nocrash.
73932         * modules/snprintf-posix (Depends-on): Likewise.
73933         * modules/sprintf-posix (Depends-on): Likewise.
73934         * modules/vasnprintf-posix (Depends-on): Likewise.
73935         * modules/vasprintf-posix (Depends-on): Likewise.
73936         * modules/vfprintf-posix (Depends-on): Likewise.
73937         * modules/vsnprintf-posix (Depends-on): Likewise.
73938         * modules/vsprintf-posix (Depends-on): Likewise.
73939         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
73940         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
73941         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
73942         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
73943         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
73944         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
73945         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
73947 2007-11-04  Bruno Haible  <bruno@clisp.org>
73949         * modules/nocrash: New file.
73950         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
73951         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
73953 2007-11-04  Bruno Haible  <bruno@clisp.org>
73955         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
73956         precision handling.
73957         * tests/test-vasprintf-posix.c (test_function): Likewise.
73958         * tests/test-snprintf-posix.h (test_function): Likewise.
73959         * tests/test-sprintf-posix.h (test_function): Likewise.
73961         Fix *printf behaviour for large precisions on mingw and BeOS.
73962         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
73963         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
73964         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
73965         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
73966         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
73967         gl_PRINTF_PRECISION and test its result. Invoke
73968         gl_PREREQ_VASNPRINTF_PRECISION.
73969         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
73970         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
73971         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
73972         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
73973         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
73974         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
73975         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
73976         * doc/functions/fprintf.texi: Update.
73977         * doc/functions/printf.texi: Update.
73978         * doc/functions/snprintf.texi: Update.
73979         * doc/functions/sprintf.texi: Update.
73980         * doc/functions/vfprintf.texi: Update.
73981         * doc/functions/vprintf.texi: Update.
73982         * doc/functions/vsnprintf.texi: Update.
73983         * doc/functions/vsprintf.texi: Update.
73985 2007-11-04  Bruno Haible  <bruno@clisp.org>
73987         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
73989 2007-11-04  Bruno Haible  <bruno@clisp.org>
73991         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
73992         Reported by Sylvain Beucler <beuc@gnu.org>.
73994 2007-11-03  Bruno Haible  <bruno@clisp.org>
73996         * tests/test-fprintf-posix2.sh: New file.
73997         * tests/test-fprintf-posix2.c: New file.
73998         * modules/fprintf-posix-tests (Files): Add them.
73999         (TESTS): Add test-fprintf-posix2.sh.
74000         (configure.ac): Check for getrlimit and setrlimit.
74001         (check_PROGRAMS): Add test-fprintf-posix2.
74003         * tests/test-printf-posix2.sh: New file.
74004         * tests/test-printf-posix2.c: New file.
74005         * modules/printf-posix-tests (Files): Add them.
74006         (TESTS): Add test-printf-posix2.sh.
74007         (configure.ac): Check for getrlimit and setrlimit.
74008         (check_PROGRAMS): Add test-printf-posix2.
74010         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
74011         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
74012         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
74013         (decode_double): New function, copied from decode_long_double.
74014         (scale10_round_decimal_decoded): New function, extracted from
74015         scale10_round_decimal_long_double.
74016         (scale10_round_decimal_long_double): Use it.
74017         (scale10_round_decimal_double): New function.
74018         (floorlog10): New function.
74019         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
74020         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
74021         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
74022         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
74023         gl_PRINTF_ENOMEM and test its result. Invoke
74024         gl_PREREQ_VASNPRINTF_ENOMEM.
74025         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
74026         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
74027         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
74028         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
74029         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
74030         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
74031         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
74032         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
74033         * modules/snprintf-posix (Depends-on): Likewise.
74034         * modules/sprintf-posix (Depends-on): Likewise.
74035         * modules/vasnprintf-posix (Depends-on): Likewise.
74036         * modules/vasprintf-posix (Depends-on): Likewise.
74037         * modules/vfprintf-posix (Depends-on): Likewise.
74038         * modules/vsnprintf-posix (Depends-on): Likewise.
74039         * modules/vsprintf-posix (Depends-on): Likewise.
74040         * doc/functions/fprintf.texi: Update.
74041         * doc/functions/printf.texi: Update.
74042         * doc/functions/snprintf.texi: Update.
74043         * doc/functions/sprintf.texi: Update.
74044         * doc/functions/vfprintf.texi: Update.
74045         * doc/functions/vprintf.texi: Update.
74046         * doc/functions/vsnprintf.texi: Update.
74047         * doc/functions/vsprintf.texi: Update.
74049 2007-11-03  Bruno Haible  <bruno@clisp.org>
74051         * modules/frexp-nolibm-tests: New file.
74053         * modules/frexp-nolibm: New file.
74054         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
74056 2007-11-03  Bruno Haible  <bruno@clisp.org>
74058         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
74059         value is C99 compliant.
74060         Needed for OSF/1 5.1.
74062 2007-11-03  Bruno Haible  <bruno@clisp.org>
74064         Fix out-of-memory handling of vasnprintf.
74065         * lib/printf-parse.c: Include <errno.h>.
74066         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
74067         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
74068         is already set.
74070 2007-11-02  Eric Blake  <ebb9@byu.net>
74072         Fix tests on cygwin.
74073         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
74075 2007-11-01  Bruno Haible  <bruno@clisp.org>
74077         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
74078         warning.
74079         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
74080         needed for POSIX compatibility.
74082 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
74084         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
74085         for compatibility with GNU.
74087 2007-11-01  Bruno Haible  <bruno@clisp.org>
74089         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
74090         (putenv): Renamed from rpl_putenv. Change argument type from
74091         'const char *' to 'char *'.
74092         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
74093         of defining putenv in config.h, just set REPLACE_PUTENV.
74094         * modules/putenv (Depends-on): Add stdlib.
74095         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74096         (Include): Use <stdlib.h>.
74097         * lib/stdlib.in.h (putenv): New declaration.
74098         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
74099         REPLACE_PUTENV.
74100         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
74101         REPLACE_PUTENV.
74102         Needed for MacOS X 10.5.0.
74103         Reported by Peter O'Gorman <peter@pogma.com>.
74105 2007-11-01  Jim Meyering  <meyering@redhat.com>
74107         Treat an empty date string exactly like "0".
74108         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
74109         if the remaining date string (to be parsed) is empty, use "0".
74110         Reported by Mischa Molhoek and discussed in this thread:
74111         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
74113 2007-10-31  Bruno Haible  <bruno@clisp.org>
74115         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
74116         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
74117         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
74118         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
74119         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
74120         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
74122 2007-10-31  Bruno Haible  <bruno@clisp.org>
74124         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
74125         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
74126         (AC_TYPE_LONG_LONG_INT): Use it.
74127         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
74128         it as well.
74129         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
74130         to m4/longlong.m4.
74131         * modules/stdint (Files): Remove m4/ulonglong.m4.
74132         * modules/strtoull (Files): Use m4/longlong.m4 instead of
74133         m4/ulonglong.m4.
74134         * modules/strtoumax (Files): Likewise.
74136 2007-10-30  Bruno Haible  <bruno@clisp.org>
74138         * modules/xvasprintf-posix: New file.
74139         Suggested by Eric Blake.
74141 2007-10-30  Bruno Haible  <bruno@clisp.org>
74143         * modules/xprintf-posix-tests: New file.
74144         * tests/test-xprintf-posix.sh: New file.
74145         * tests/test-xprintf-posix.c: New file.
74146         * tests/test-xfprintf-posix.c: New file.
74148         * modules/xprintf-posix: New file.
74150 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74152         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
74153         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
74154         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
74156 2007-10-29  Bruno Haible  <bruno@clisp.org>
74158         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
74159         contain the special marker '_cv_'.
74160         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
74161         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
74162         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
74163         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
74164         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
74165         Reported by Ralf Wildenhues.
74167 2007-10-29  Bruno Haible  <bruno@clisp.org>
74169         * gnulib-tool (func_import): When --lgpl is not specified, set
74170         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
74171         GPLv3.
74172         Reported by Simon Josefsson.
74174 2007-10-28  Bruno Haible  <bruno@clisp.org>
74176         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
74177         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
74178         HAVE_DECL_ISFINITE.
74179         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
74180         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
74181         HAVE_DECL_ISFINITE.
74183 2007-10-28  Bruno Haible  <bruno@clisp.org>
74185         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
74186         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
74188 2007-10-28  Bruno Haible  <bruno@clisp.org>
74190         Fix link errors with Sun C 5.0 on Solaris 10.
74191         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
74192         function is declared but not present in the compiler's libm.
74193         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
74194         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
74195         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
74196         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
74197         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
74198         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
74199         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
74200         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
74201         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
74202         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
74203         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
74204         HAVE_DECL_FLOORL.
74206 2007-10-28  Bruno Haible  <bruno@clisp.org>
74208         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
74209         gl_FUNC_FLOORL. Cache the result.
74210         (gl_FUNC_FLOORL): Use it.
74211         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
74212         gl_FUNC_CEILL. Cache the result.
74213         (gl_FUNC_CEILL): Use it.
74215         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
74216         gl_FUNC_FLOOR. Cache the result.
74217         (gl_FUNC_FLOOR): Use it.
74218         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
74219         gl_FUNC_CEIL. Cache the result.
74220         (gl_FUNC_CEIL): Use it.
74222         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
74223         gl_FUNC_FLOORF. Cache the result.
74224         (gl_FUNC_FLOORF): Use it.
74225         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
74226         gl_FUNC_CEILF. Cache the result.
74227         (gl_FUNC_CEILF): Use it.
74229 2007-10-28  Bruno Haible  <bruno@clisp.org>
74231         * gnulib-tool: Allow specifying the LGPL version number through
74232         --lgpl=2 or --lgpl=3.
74233         (func_usage): Document --lgpl with argument.
74234         Handle --lgpl=... arguments.
74235         (func_import): Recognize also gl_LGPL calls with an argument. When
74236         --lgpl=2 is used and the module's license is just LGPL, report an
74237         error. Set sed_transform_lib_file according to the lgpl variable. In
74238         the generated files, use --lgpl or gl_LGPL invocations with argument,
74239         if necessary.
74240         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
74241         an LGPv2+ license.
74242         * doc/gnulib-tool.texi (Modified imports): Update explanation of
74243         gl_LGPL macro.
74245 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74246             Bruno Haible  <bruno@clisp.org>
74248         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
74249         (u16_uctomb_aux): Likewise.
74250         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
74251         !HAVE_INLINE.
74252         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
74254 2007-10-28  Bruno Haible  <bruno@clisp.org>
74256         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
74257         Invoke AM_GETTEXT_OPTION if it exists.
74258         * modules/vasprintf: Likewise.
74259         * modules/verror: Likewise.
74260         * modules/xprintf: Likewise.
74261         * modules/xvasprintf: Likewise.
74263 2007-10-27  Ben Pfaff  <blp@gnu.org>
74265         * lib/math.in.h: Define isfinite macro and prototypes for
74266         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
74267         implementations.
74268         * m4/math_h.m4: New substitutions for isfinite module.
74269         * lib/isfinite.c: New file.
74270         * m4/isfinite.m4: New file.
74271         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
74272         * modules/isfinite: New file.
74273         * modules/isfinite-tests: New file.
74274         * tests/tests-isfinite.c: New file.
74275         * doc/functions/isfinite.texi: Mention isfinite module.
74276         * MODULES.html.sh: Mention new module.
74278 2007-10-27  Ben Pfaff  <blp@gnu.org>
74280         Ralf Wildenhues reported that Tru64 4.0D declares the round
74281         functions but does not have definitions.
74282         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
74283         cannot be found in any library, set the output variable to
74284         "missing" instead of "".
74285         * m4/round.m4: Also use our substitute if we cannot find round in
74286         any library, even if it is declared.
74287         * m4/roundf.m4: Likewise for roundf.
74288         * m4/roundl.m4: Likewise for roundl.
74289         * lib/math.in.h: Undefine roundf, round, roundl before defining
74290         their replacements, to allow for hypothetical systems where these
74291         may be defined as macros but not available in libraries.
74293 2007-10-27  Bruno Haible  <bruno@clisp.org>
74295         * doc/gnulib.texi: Invoke @firstparagraphindent.
74296         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
74297         changes in gnulib.
74298         (Source changes): New section.
74300 2007-10-26  Bruno Haible  <bruno@clisp.org>
74302         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
74303         borrowed from autoconf.
74305 2007-10-26  Bruno Haible  <bruno@clisp.org>
74307         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
74308         strerror returned the empty string. Needed on HP-UX 11.00.
74310 2007-10-24  Micah Cowan  <micah@cowan.name>
74312         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
74313         * build-aux/bootstrap: Remove support for now-unnecessary option,
74314         --cvs-user, and envvars CVS_USER, CVS_RSH.
74316 2007-10-24  Jim Meyering  <meyering@redhat.com>
74318         Avoid diagnostics from sha1sum when there is no cached checksum.
74319         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
74320         if the po.s1 file hasn't been created yet.
74322         * build-aux/bootstrap: Sync from coreutils:
74323         2007-10-24  Jim Meyering  <meyering@redhat.com>
74324         Get gnulib from the git repository, not from an obsolete cvs one.
74325         * build-aux/bootstrap: Suggestion from Micah Cowan.
74326         2007-10-04  Jim Meyering  <jim@meyering.net>
74327         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
74328         (update_po_files): Work also when there are no .po files in po/.
74330 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
74332         * README: Append ".git" to git and cg examples.
74333         Problem reported by Benoit Sigoure.
74335 2007-10-23  Micah Cowan  <micah@cowan.name>
74337         * users.txt: Add wget.
74339 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74341         Fix linking of some unistdio tests on FreeBSD.
74342         * modules/unistdio/u16-vsnprintf-tests
74343         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
74344         * modules/unistdio/u16-vsprintf-tests
74345         (test_u16_vsnprintf1_LDADD): Likewise.
74346         * modules/unistdio/u32-vsnprintf-tests
74347         (test_u32_vsnprintf1_LDADD): Likewise.
74348         * modules/unistdio/u32-vsprintf-tests
74349         (test_u32_vsprintf1_LDADD): Likewise.
74350         * modules/unistdio/u8-vsnprintf-tests
74351         (test_u8_vsnprintf1_LDADD): Likewise.
74352         * modules/unistdio/u8-vsprintf-tests
74353         (test_u8_vsprintf1_LDADD): Likewise.
74354         * modules/unistdio/ulc-vsnprintf-tests
74355         (test_ulc_vsnprintf1_LDADD): Likewise.
74356         * modules/unistdio/ulc-vsprintf-tests
74357         (test_ulc_vsprintf1_LDADD): Likewise.
74359         Fix linking of some uniconv tests on FreeBSD.
74360         * modules/uniconv/u16-conv-from-enc-tests
74361         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
74362         * modules/uniconv/u16-conv-to-enc-tests
74363         (test_u16_conv_to_enc_LDADD): Likewise.
74364         * modules/uniconv/u16-strconv-from-enc-tests
74365         (test_u16_strconv_from_enc_LDADD): Likewise.
74366         * modules/uniconv/u16-strconv-to-enc-tests
74367         (test_u16_strconv_to_enc_LDADD): Likewise.
74368         * modules/uniconv/u32-conv-from-enc-tests
74369         (test_u32_conv_from_enc_LDADD): Likewise.
74370         * modules/uniconv/u32-conv-to-enc-tests
74371         (test_u32_conv_to_enc_LDADD): Likewise.
74372         * modules/uniconv/u32-strconv-from-enc-tests
74373         (test_u32_strconv_from_enc_LDADD): Likewise.
74374         * modules/uniconv/u32-strconv-to-enc-tests
74375         (test_u32_strconv_to_enc_LDADD): Likewise.
74376         * modules/uniconv/u8-conv-from-enc-tests
74377         (test_u8_conv_from_enc_LDADD): Likewise.
74378         * modules/uniconv/u8-conv-to-enc-tests
74379         (test_u8_conv_to_enc_LDADD): Likewise.
74380         * modules/uniconv/u8-strconv-from-enc-tests
74381         (test_u8_strconv_from_enc_LDADD): Likewise.
74382         * modules/uniconv/u8-strconv-to-enc-tests
74383         (test_u8_strconv_to_enc_LDADD): Likewise.
74385 2007-10-22  Bruno Haible  <bruno@clisp.org>
74387         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
74388         size.
74390 2007-10-22  Eric Blake  <ebb9@byu.net>
74392         Tweak x*printf documentation.
74393         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
74394         variable name and comments.
74395         Suggested by Bruno Haible.
74397 2007-10-22  Bruno Haible  <bruno@clisp.org>
74399         * lib/acl.c (copy_acl): Fix file name in comment.
74401 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
74403         Fix Tru64 problem with stdbool.h.
74404         * lib/stdbool.in.h (false, true):
74405         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
74406         Don't declare as an enum in this situation; it runs afoul of Tru64.
74407         Problem reported by Steven M. Schweda in
74408         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
74410 2007-10-22  Eric Blake  <ebb9@byu.net>
74412         Also wrap vf?printf.
74413         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
74414         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
74415         (xvprintf, xvfprintf): New functions.
74417 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74419         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
74420         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
74422         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
74423         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
74425 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
74427         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
74428         by Bruno Haible.
74430 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74432         * lib/getloadavg.c
74433         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
74434         Undef `sys' after including sys/table.h, for Tru64 4.0D.
74436         * tests/test-i-ring.c: Work for C89.
74438 2007-10-22  Bruno Haible  <bruno@clisp.org>
74440         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
74441         -1u, in preprocessor expression, so that we don't test for the bug
74442         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
74443         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
74445 2007-10-22  Eric Blake  <ebb9@byu.net>
74447         * tests/test-yesno.sh: Silence stderr during test.
74449 2007-10-22  Simon Josefsson  <simon@josefsson.org>
74451         * modules/crypto/gc-camellia: New file.
74453         * m4/gc-camellia.m4: New file.
74455         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
74457         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
74459 2007-10-22  Simon Josefsson  <simon@josefsson.org>
74461         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
74462         --help to stdout.  Reported by sms@antinode.org (Steven
74463         M. Schweda).
74465 2007-10-22  Simon Josefsson  <simon@josefsson.org>
74467         * users.txt: Fix link to libksba.
74469 2007-10-21  Ben Pfaff  <blp@gnu.org>
74471         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
74472         round.c roundf implementation that depends on floorf and ceilf to
74473         be tested unconditionally.
74475 2007-10-21  Ben Pfaff  <blp@gnu.org>
74477         * m4/check-libm-func.m4: Removed.
74478         * m4/check-math-lib.m4: New file.
74479         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
74480         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
74481         definition and lack of AC_LIBOBJ([roundf]).
74482         * m4/roundl.m4: Ditto, and similarly for roundl.
74483         * modules/round: Reference new m4 file.
74484         * modules/roundf: Ditto.
74485         * modules/roundl: Ditto.
74486         * tests/test-round2.c (main): Use ROUND instead of round.
74487         Bug report from Bruno Haible.
74489 2007-10-21  Bruno Haible  <bruno@clisp.org>
74491         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
74492         context.
74494 2007-10-21  Bruno Haible  <bruno@clisp.org>
74496         * tests/test-wcwidth.c (main): Allow negative result for some control
74497         characters.
74499         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
74500         Needed on OSF/1 5.1.
74502 2007-10-21  Bruno Haible  <bruno@clisp.org>
74504         * tests/test-floorf1.c: Include isnanf.h.
74505         (main): Use isnanf() instead of isnan().
74506         * tests/test-ceilf1.c: Include isnanf.h.
74507         (main): Use isnanf() instead of isnan().
74508         * tests/test-truncf1.c: Include isnanf.h.
74509         (main): Use isnanf() instead of isnan().
74510         * tests/test-roundf1.c: Include isnanf.h.
74511         (main): Use isnanf() instead of isnan().
74513 2007-10-21  Eric Blake  <ebb9@byu.net>
74515         * users.txt: Update URL for m4.
74517 2007-10-21  Bruno Haible  <bruno@clisp.org>
74519         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
74521 2007-10-21  Bruno Haible  <bruno@clisp.org>
74523         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
74524         Git's management files if the CVS files are not present.
74526 2007-10-20  Bruno Haible  <bruno@clisp.org>
74528         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
74529         gcc-3.4.x.
74531 2007-10-20  Ben Pfaff  <blp@gnu.org>
74533         * lib/math.in.h: Declare round, roundf, roundl if we are providing
74534         implementations.
74535         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
74536         * lib/round.c: New file.
74537         * lib/roundf.c: New file.
74538         * lib/roundl.c: New file.
74539         * m4/round.m4: New file.
74540         * m4/roundf.m4: New file.
74541         * m4/roundl.m4: New file.
74542         * m4/check-libm-func-m4: New file.
74543         * modules/math: Replace round, roundf, roundl related @VARS@ in
74544         math.in.h.
74545         * modules/round: New file.
74546         * modules/round-tests: New file.
74547         * modules/roundf: New file.
74548         * modules/roundf-tests: New file.
74549         * modules/roundl: New file.
74550         * modules/roundl-tests: New file.
74551         * tests/test-round1.c: New file.
74552         * tests/test-round2.c: New file.
74553         * tests/test-roundf1.c: New file.
74554         * tests/test-roundf2.c: New file.
74555         * tests/test-roundl.c: New file.
74556         * doc/functions/round.texi: Mention round module.
74557         * doc/functions/roundf.texi: Mention roundf module.
74558         * doc/functions/roundl.texi: Mention roundl module.
74559         * MODULES.html.sh: Mention new modules.
74560         Thanks to Bruno Haible for suggestions.
74562 2007-10-20  Jim Meyering  <meyering@redhat.com>
74564         * lib/xprintf.c: Include <config.h> unconditionally.
74566         Change xprintf's license to GPL.
74567         * modules/xprintf (License): s/LGPL/GPL/, since this module
74568         depends on modules (exit and exitfail) which are GPL.
74569         Suggestion from Bruno Haible.
74571         xprintf fixes.
74572         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
74573         Use a clearer diagnostic.
74574         Patch from Bruno Haible.
74576 2007-10-20  Bruno Haible  <bruno@clisp.org>
74578         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
74579         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
74580         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74582 2007-10-20  Bruno Haible  <bruno@clisp.org>
74584         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
74585         precision in the comparison result > x - 1 or similar.
74586         * tests/test-ceilf2.c (correct_result_p): Likewise.
74587         * tests/test-truncf2.c (correct_result_p): Likewise.
74588         * tests/test-trunc2.c (correct_result_p): Likewise.
74589         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74591 2007-10-20  Bruno Haible  <bruno@clisp.org>
74593         * modules/ceil: New file.
74594         * m4/ceil.m4: New file.
74595         * doc/functions/ceil.texi: Mention the 'ceil' module.
74597 2007-10-20  Bruno Haible  <bruno@clisp.org>
74599         * modules/floor: New file.
74600         * m4/floor.m4: New file.
74601         * doc/functions/floor.texi: Mention the 'floor' module.
74603 2007-10-20  Bruno Haible  <bruno@clisp.org>
74605         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
74606         of %a.
74607         * modules/floorf-tests (Depends-on): Likewise.
74608         * modules/truncf-tests (Depends-on): Likewise.
74609         * modules/trunc-tests (Depends-on): Likewise.
74610         Reported by Ben Pfaff.
74612 2007-10-19  Jim Meyering  <meyering@redhat.com>
74614         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
74615         Don't bother testing specific errno values.  Just test ferror.
74617         New module: xprintf
74618         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
74620 2007-10-19  Bruno Haible  <bruno@clisp.org>
74622         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
74623         syntax.
74624         * modules/javaexec (Makefile.am): Likewise.
74625         * modules/relocatable-prog (Makefile.am): Likewise.
74626         Suggested by Jim Meyering.
74628 2007-10-18  Bruno Haible  <bruno@clisp.org>
74630         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
74631         Reported by Jim Meyering.
74633 2007-10-18  Eric Blake  <ebb9@byu.net>
74635         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
74637 2007-10-18  Bruno Haible  <bruno@clisp.org>
74639         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
74640         the format string into writable memory. Needed in Fortify conditions.
74642 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
74643             Bruno Haible  <bruno@clisp.org>
74645         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
74646         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
74647         * modules/trim (Depends-on): Add mbchar.
74648         (configure.ac): Add gl_FUNC_MBRTOWC.
74649         (Makefile.am): Augment lib_SOURCES.
74651 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
74653         Modify glob.c to use fstatat and dirfd, to simplify it.
74654         Suggested by Eric Blake.
74655         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
74656         Don't include <stdbool.h>; not used.
74657         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
74658         (link_exists_p): Simplify implementation, since we can now assume
74659         dirfd and fstatat.
74660         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
74662 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74664         * gnulib-tool (func_get_dependencies): Fix sed script to
74665         match only tests.
74667 2007-10-17  Bruno Haible  <bruno@clisp.org>
74669         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
74670         allow locale names without encoding suffix.
74671         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
74672         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
74674 2007-10-16  Bruno Haible  <bruno@clisp.org>
74676         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
74677         * lib/getgroups.c (getgroups): Likewise.
74678         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
74680 2007-10-16  Bruno Haible  <bruno@clisp.org>
74682         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
74683         * modules/malloc-posix (License): Likewise.
74684         * modules/realloc-posix (License): Likewise.
74685         * modules/calloc-posix (License): Likewise.
74686         * modules/intprops (License): Change from GPL to LGPL, with
74687         Paul Eggert's approval.
74689 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
74691         Merge glibc changes into lib/glob.c.
74693         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
74694         2007-10-15 04:59:03 UTC.  Here are the changes:
74696         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
74698         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
74700         * lib/glob.c: Add some branch prediction throughout.
74702         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
74704         [BZ #5103]
74705         * lib/glob.c (glob): Recognize patterns starting \/.
74707         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
74709         [BZ #3996]
74710         * lib/glob.c (attribute_hidden): Define if not defined.
74711         (glob): Unescape dirname, filename or username when needed and not
74712         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
74713         is NULL.  Handle unescaped [ in pattern without closing ].
74714         Don't pass GLOB_CHECK down to recursive glob for directories.
74715         (__glob_pattern_type): New function.
74716         (__glob_pattern_p): Implement using __glob_pattern_type.
74717         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
74718         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
74719         Remove unreachable code.
74721         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
74723         * lib/glob.c (glob_in_dir): Add some comments and asserts to
74724         explain why there are no leaks.
74726         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
74728         [BZ #3253]
74729         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
74730         time, rather allocate increasingly bigger arrays of pointers, if
74731         possible with alloca, if too large with malloc.
74733 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
74735         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
74736         Problem reported by H.Merijn Brand in
74737         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
74738         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
74739         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
74741 2007-10-15  Bruno Haible  <bruno@clisp.org>
74743         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
74744         with explicit rpl_ prefix.
74745         * lib/fopen.c (fopen): Likewise.
74746         * lib/freopen.c (freopen): Likewise.
74747         * lib/iconv.c (iconv): Likewise.
74748         * lib/iconv_close.c (iconv_close): Likewise.
74750 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74752         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
74754 2007-10-15  Bruno Haible  <bruno@clisp.org>
74756         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
74757         <stddef.h> instead of <stdlib.h> since we only need NULL.
74758         Reported by Ben Pfaff <blp@cs.stanford.edu>.
74760 2007-10-15  Bruno Haible  <bruno@clisp.org>
74762         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
74763         Replace paragraph talking about LIBOBJS.
74764         Reported by Colin Watson <cjwatson@debian.org>.
74766 2007-10-15  Bruno Haible  <bruno@clisp.org>
74768         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
74769         <stdlib.h> before using NULL.
74771 2007-10-15  Simon Josefsson  <simon@josefsson.org>
74773         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
74774         Reported by Albert Chin <china@thewrittenword.com>.
74776 2007-10-14  Bruno Haible  <bruno@clisp.org>
74778         * modules/iconv_open-utf-tests: New file.
74779         * tests/test-iconv-utf.c: New file.
74781         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
74782         * modules/iconv_open-utf: New file.
74783         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
74784         (iconv, iconv_close): New declarations.
74785         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
74786         be defined.
74787         (iconv_open): Add special handling of conversion between UTF-8 and
74788         UTF-{16,32}{BE,LE}.
74789         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
74790         * lib/iconv_close.c: New file.
74791         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
74792         gl_FUNC_ICONV_OPEN.
74793         (gl_FUNC_ICONV_OPEN): Use it.
74794         (gl_FUNC_ICONV_OPEN_UTF): New macro.
74795         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
74796         and REPLACE_ICONV_UTF.
74797         * modules/iconv_open (Depends-on): Add c-strcase.
74798         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
74799         ICONV_CONST.
74800         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
74802 2007-10-13  Albert Chin  <china@thewrittenword.com>
74803             Bruno Haible  <bruno@clisp.org>
74805         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
74806         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
74808 2007-10-13  Bruno Haible  <bruno@clisp.org>
74810         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
74811         defined, use the ISO C99 inline semantics.
74812         * lib/argp.h (ARGP_EI): Likewise.
74814 2007-10-13  Bruno Haible  <bruno@clisp.org>
74816         Handle 'inline' change in gcc 4.3.0.
74817         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
74818         argp_fmtstream_write, argp_fmtstream_set_lmargin,
74819         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
74820         argp_fmtstream_point): Disable 'extern' declaration if the function
74821         definition is going to be provided inline.
74822         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
74823         semantics, not the ISO C99 inline semantics.
74824         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
74825         'extern' declaration if the function definition is going to be provided
74826         inline.
74827         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
74828         the GNU C inline semantics, not the ISO C99 inline semantics. With
74829         GCC 4.2, avoid a warning.
74831 2007-10-13  Bruno Haible  <bruno@clisp.org>
74833         * lib/freading.h (freading): Enable the use of __freading for
74834         glibc >= 2.7.
74835         * lib/freading.c (freading): Likewise.
74837 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
74839         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
74840         "warning: C99 inline functions are not supported; using GNU89".
74842 2007-10-12  Bruno Haible  <bruno@clisp.org>
74844         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
74845         of 2.
74846         * tests/test-ceilf2.c: New file.
74847         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
74849         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
74850         * modules/ceilf-tests: Update.
74852 2007-10-12  Bruno Haible  <bruno@clisp.org>
74854         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
74855         of 2.
74856         * tests/test-floorf2.c: New file.
74857         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
74859         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
74860         * modules/floorf-tests: Update.
74862 2007-10-12  Bruno Haible  <bruno@clisp.org>
74864         * tests/test-trunc2.c: New file.
74865         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
74867         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
74868         * modules/trunc-tests: Update.
74870 2007-10-12  Bruno Haible  <bruno@clisp.org>
74872         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
74873         of 2.
74874         * tests/test-truncf2.c: New file.
74875         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
74877         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
74878         * modules/truncf-tests: Update.
74880 2007-10-11  Eric Blake  <ebb9@byu.net>
74882         Don't claim strerror is broken on Interix.
74883         * doc/functions/strerror.texi (strerror): Known broken systems are
74884         now Solaris 8, and not Interix.
74885         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
74886         Interix on cross-compile.
74887         Reported by Martin Koeppe in
74888         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
74890 2007-10-11  Bruno Haible  <bruno@clisp.org>
74892         * modules/i-ring-tests: New file.
74893         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
74894         instead of assert.
74896 2007-10-11  Bruno Haible  <bruno@clisp.org>
74898         * modules/filenamecat-tests: New file.
74899         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
74900         * lib/filenamecat.c: Remove test code.
74902 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
74904         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
74906         * lib/strerror.c: Include <string.h> always, to test interface,
74907         and to remove the need for the dummy.
74908         Include intprops.h to compute width instead of doing it ourselves
74909         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
74910         (strerror): Define it to return NULL if there's no system strerror.
74911         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
74912         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
74913         ancient pre-strerror Unix systems well any more.  Saying "unknown
74914         system error" is enough.
74915         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
74916         simpler strerror.c implementation.
74917         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
74918         Simplify the tests to reflect the simpler strerror implementation.
74919         * modules/strerror (Depends-on): Add intprops.
74921 2007-10-09  Eric Blake  <ebb9@byu.net>
74923         Silence test-fpending.
74924         * modules/fpending-tests (Files): Add wrapper script.
74925         * tests/test-fpending.sh: New file.
74927 2007-10-09  Bruno Haible  <bruno@clisp.org>
74929         * MODULES.html.sh (func_module): Don't create a hyperlink for
74930         function names like 'printf_frexp'.
74931         (Misc): Add crc, memxor.
74932         (Characteristics of floating types): New section.
74933         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
74934         isnanf-nolibm, signbit, trunc, truncf, truncl.
74935         (Enhancements for ISO C 99 functions): New subsection Input/output.
74936         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
74937         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
74938         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
74939         (Compatibility checks for POSIX:2001 functions): Add clock-time.
74940         (Enhancements for POSIX:2001 functions): Add chdir-long.
74941         (File system functions): Add areadlink, chdir-safer, read-file.
74942         Remove cycle-check.
74943         (File system as inode set): New section.
74944         (Date and time): Add gethrxtime.
74945         (Multithreading): Add openmp.
74946         (Internationalization functions): Add localename.
74947         (Unicode string functions): Add unistr/u*-mbsnlen.
74948         (Support for maintaining and releasing projects): Add git-version-gen.
74949         (Lone files): Remove directories.
74951 2007-10-08  Ben Pfaff  <blp@gnu.org>
74953         * lib/xmalloca.h: Fix typo in comment.
74955 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
74957         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
74958         when avoiding problems with integer overflow.  Use a portable test
74959         instead.
74961 2007-10-08  Simon Josefsson  <simon@josefsson.org>
74963         * modules/dummy (License): Change to LGPLv2+.
74964         * modules/float (License): Likewise
74965         * modules/realloc (License): Likewise
74966         * modules/stdlib (License): Likewise
74968 2007-10-07  Bruno Haible  <bruno@clisp.org>
74970         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
74971         * floor.c (TWO_MANT_DIG): Likewise.
74972         * ceil.c (TWO_MANT_DIG): Likewise.
74973         Reported by Ben Pfaff.
74975 2007-10-07  Bruno Haible  <bruno@clisp.org>
74977         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
74978         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
74979         * lib/frexp.c (FUNC): Likewise.
74980         * lib/printf-frexp.h (printf_frexp): Likewise.
74981         * lib/printf-frexpl.h (printf_frexpl): Likewise.
74982         * lib/printf-frexp.c (FUNC): Likewise.
74983         Suggested by Jim Meyering.
74985 2007-10-07  Jim Meyering  <meyering@redhat.com>
74987         Make xnanosleep's integer overflow test more robust.
74988         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
74989         so that gcc-4.3.0 doesn't optimize away this test for overflow.
74991 2007-10-07  Bruno Haible  <bruno@clisp.org>
74993         * NEWS: Mention the license change.
74995         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
74996         abbreviations in the modules files.
74998         Change copyright notice from GPLv2+ to GPLv3+.
74999         * README: Change copyright notice.
75000         * MODULES.html.sh: Likewise.
75001         * build-aux/bootstrap.conf: Likewise.
75002         * build-aux/config.libpath: Likewise.
75003         * build-aux/csharpcomp.sh.in: Likewise.
75004         * build-aux/csharpexec.sh.in: Likewise.
75005         * build-aux/install-reloc: Likewise.
75006         * build-aux/javacomp.sh.in: Likewise.
75007         * build-aux/javaexec.sh.in: Likewise.
75008         * build-aux/ldd.sh.in: Likewise.
75009         * build-aux/reloc-ldflags: Likewise.
75010         * build-aux/relocatable.sh.in: Likewise.
75011         * build-aux/x-to-1.in: Likewise.
75012         * check-module: Likewise.
75013         * config/srclistvars.sh: Likewise.
75014         * gnulib-tool: Likewise.
75015         * lib/acl-internal.h: Likewise.
75016         * lib/acl.c: Likewise.
75017         * lib/acl.h: Likewise.
75018         * lib/acl_entries.c: Likewise.
75019         * lib/areadlink-with-size.c: Likewise.
75020         * lib/areadlink.c: Likewise.
75021         * lib/areadlink.h: Likewise.
75022         * lib/argmatch.c: Likewise.
75023         * lib/argmatch.h: Likewise.
75024         * lib/argp-ba.c: Likewise.
75025         * lib/argp-eexst.c: Likewise.
75026         * lib/argp-fmtstream.c: Likewise.
75027         * lib/argp-fmtstream.h: Likewise.
75028         * lib/argp-fs-xinl.c: Likewise.
75029         * lib/argp-help.c: Likewise.
75030         * lib/argp-namefrob.h: Likewise.
75031         * lib/argp-parse.c: Likewise.
75032         * lib/argp-pin.c: Likewise.
75033         * lib/argp-pv.c: Likewise.
75034         * lib/argp-pvh.c: Likewise.
75035         * lib/argp-xinl.c: Likewise.
75036         * lib/argp.h: Likewise.
75037         * lib/at-func.c: Likewise.
75038         * lib/atanl.c: Likewise.
75039         * lib/backupfile.c: Likewise.
75040         * lib/backupfile.h: Likewise.
75041         * lib/basename.c: Likewise.
75042         * lib/binary-io.h: Likewise.
75043         * lib/byteswap.in.h: Likewise.
75044         * lib/c-stack.c: Likewise.
75045         * lib/c-stack.h: Likewise.
75046         * lib/c-strcasestr.c: Likewise.
75047         * lib/c-strcasestr.h: Likewise.
75048         * lib/c-strstr.c: Likewise.
75049         * lib/c-strstr.h: Likewise.
75050         * lib/c-strtod.c: Likewise.
75051         * lib/calloc.c: Likewise.
75052         * lib/canon-host.c: Likewise.
75053         * lib/canon-host.h: Likewise.
75054         * lib/canonicalize-lgpl.c: Likewise.
75055         * lib/canonicalize.c: Likewise.
75056         * lib/canonicalize.h: Likewise.
75057         * lib/ceil.c: Likewise.
75058         * lib/ceilf.c: Likewise.
75059         * lib/ceill.c: Likewise.
75060         * lib/chdir-long.c: Likewise.
75061         * lib/chdir-long.h: Likewise.
75062         * lib/chdir-safer.c: Likewise.
75063         * lib/chdir-safer.h: Likewise.
75064         * lib/chown.c: Likewise.
75065         * lib/classpath.c: Likewise.
75066         * lib/classpath.h: Likewise.
75067         * lib/clean-temp.c: Likewise.
75068         * lib/clean-temp.h: Likewise.
75069         * lib/cloexec.c: Likewise.
75070         * lib/close-stream.c: Likewise.
75071         * lib/closein.c: Likewise.
75072         * lib/closein.h: Likewise.
75073         * lib/closeout.c: Likewise.
75074         * lib/closeout.h: Likewise.
75075         * lib/concat-filename.c: Likewise.
75076         * lib/copy-file.c: Likewise.
75077         * lib/copy-file.h: Likewise.
75078         * lib/count-one-bits.h: Likewise.
75079         * lib/crc.c: Likewise.
75080         * lib/crc.h: Likewise.
75081         * lib/creat-safer.c: Likewise.
75082         * lib/csharpcomp.c: Likewise.
75083         * lib/csharpcomp.h: Likewise.
75084         * lib/csharpexec.c: Likewise.
75085         * lib/csharpexec.h: Likewise.
75086         * lib/cycle-check.c: Likewise.
75087         * lib/cycle-check.h: Likewise.
75088         * lib/diacrit.c: Likewise.
75089         * lib/diacrit.h: Likewise.
75090         * lib/diffseq.h: Likewise.
75091         * lib/dirchownmod.c: Likewise.
75092         * lib/dirent.in.h: Likewise.
75093         * lib/dirfd.c: Likewise.
75094         * lib/dirfd.h: Likewise.
75095         * lib/dirname.c: Likewise.
75096         * lib/dirname.h: Likewise.
75097         * lib/dummy.c: Likewise.
75098         * lib/dup-safer.c: Likewise.
75099         * lib/dup2.c: Likewise.
75100         * lib/eealloc.h: Likewise.
75101         * lib/error.c: Likewise.
75102         * lib/error.h: Likewise.
75103         * lib/euidaccess.c: Likewise.
75104         * lib/exclude.c: Likewise.
75105         * lib/exclude.h: Likewise.
75106         * lib/execute.c: Likewise.
75107         * lib/execute.h: Likewise.
75108         * lib/exitfail.c: Likewise.
75109         * lib/exitfail.h: Likewise.
75110         * lib/expl.c: Likewise.
75111         * lib/fatal-signal.c: Likewise.
75112         * lib/fatal-signal.h: Likewise.
75113         * lib/fbufmode.c: Likewise.
75114         * lib/fbufmode.h: Likewise.
75115         * lib/fchdir.c: Likewise.
75116         * lib/fchmodat.c: Likewise.
75117         * lib/fchownat.c: Likewise.
75118         * lib/fcntl--.h: Likewise.
75119         * lib/fcntl-safer.h: Likewise.
75120         * lib/fcntl.in.h: Likewise.
75121         * lib/fd-safer.c: Likewise.
75122         * lib/fflush.c: Likewise.
75123         * lib/file-has-acl.c: Likewise.
75124         * lib/file-set.c: Likewise.
75125         * lib/file-type.c: Likewise.
75126         * lib/file-type.h: Likewise.
75127         * lib/fileblocks.c: Likewise.
75128         * lib/filemode.c: Likewise.
75129         * lib/filemode.h: Likewise.
75130         * lib/filename.h: Likewise.
75131         * lib/filenamecat.c: Likewise.
75132         * lib/filenamecat.h: Likewise.
75133         * lib/findprog.c: Likewise.
75134         * lib/findprog.h: Likewise.
75135         * lib/float.in.h: Likewise.
75136         * lib/floor.c: Likewise.
75137         * lib/floorf.c: Likewise.
75138         * lib/floorl.c: Likewise.
75139         * lib/fopen-safer.c: Likewise.
75140         * lib/fopen.c: Likewise.
75141         * lib/fpending.c: Likewise.
75142         * lib/fpending.h: Likewise.
75143         * lib/fprintf.c: Likewise.
75144         * lib/fprintftime.h: Likewise.
75145         * lib/fpucw.h: Likewise.
75146         * lib/fpurge.c: Likewise.
75147         * lib/fpurge.h: Likewise.
75148         * lib/freadable.c: Likewise.
75149         * lib/freadable.h: Likewise.
75150         * lib/freadahead.c: Likewise.
75151         * lib/freadahead.h: Likewise.
75152         * lib/freading.c: Likewise.
75153         * lib/freading.h: Likewise.
75154         * lib/free.c: Likewise.
75155         * lib/freopen.c: Likewise.
75156         * lib/frexp.c: Likewise.
75157         * lib/frexpl.c: Likewise.
75158         * lib/fseek.c: Likewise.
75159         * lib/fseterr.c: Likewise.
75160         * lib/fseterr.h: Likewise.
75161         * lib/fstatat.c: Likewise.
75162         * lib/fstrcmp.c: Likewise.
75163         * lib/fstrcmp.h: Likewise.
75164         * lib/fsusage.c: Likewise.
75165         * lib/fsusage.h: Likewise.
75166         * lib/ftell.c: Likewise.
75167         * lib/ftello.c: Likewise.
75168         * lib/fts-cycle.c: Likewise.
75169         * lib/fts.c: Likewise.
75170         * lib/fts_.h: Likewise.
75171         * lib/full-read.c: Likewise.
75172         * lib/full-read.h: Likewise.
75173         * lib/full-write.c: Likewise.
75174         * lib/full-write.h: Likewise.
75175         * lib/fwritable.c: Likewise.
75176         * lib/fwritable.h: Likewise.
75177         * lib/fwriteerror.c: Likewise.
75178         * lib/fwriteerror.h: Likewise.
75179         * lib/fwriting.c: Likewise.
75180         * lib/fwriting.h: Likewise.
75181         * lib/gcd.c: Likewise.
75182         * lib/gcd.h: Likewise.
75183         * lib/getcwd.c: Likewise.
75184         * lib/getdate.h: Likewise.
75185         * lib/getdate.y: Likewise.
75186         * lib/getdomainname.c: Likewise.
75187         * lib/getdomainname.h: Likewise.
75188         * lib/getgroups.c: Likewise.
75189         * lib/gethostname.c: Likewise.
75190         * lib/gethrxtime.c: Likewise.
75191         * lib/gethrxtime.h: Likewise.
75192         * lib/getloadavg.c: Likewise.
75193         * lib/getndelim2.c: Likewise.
75194         * lib/getndelim2.h: Likewise.
75195         * lib/getnline.c: Likewise.
75196         * lib/getnline.h: Likewise.
75197         * lib/getopt.c: Likewise.
75198         * lib/getopt.in.h: Likewise.
75199         * lib/getopt1.c: Likewise.
75200         * lib/getopt_int.h: Likewise.
75201         * lib/getpagesize.h: Likewise.
75202         * lib/getsubopt.c: Likewise.
75203         * lib/gettime.c: Likewise.
75204         * lib/getugroups.c: Likewise.
75205         * lib/getugroups.h: Likewise.
75206         * lib/getusershell.c: Likewise.
75207         * lib/gl_anyavltree_list1.h: Likewise.
75208         * lib/gl_anyavltree_list2.h: Likewise.
75209         * lib/gl_anyhash_list1.h: Likewise.
75210         * lib/gl_anyhash_list2.h: Likewise.
75211         * lib/gl_anylinked_list1.h: Likewise.
75212         * lib/gl_anylinked_list2.h: Likewise.
75213         * lib/gl_anyrbtree_list1.h: Likewise.
75214         * lib/gl_anyrbtree_list2.h: Likewise.
75215         * lib/gl_anytree_list1.h: Likewise.
75216         * lib/gl_anytree_list2.h: Likewise.
75217         * lib/gl_anytree_oset.h: Likewise.
75218         * lib/gl_anytreehash_list1.h: Likewise.
75219         * lib/gl_anytreehash_list2.h: Likewise.
75220         * lib/gl_array_list.c: Likewise.
75221         * lib/gl_array_list.h: Likewise.
75222         * lib/gl_array_oset.c: Likewise.
75223         * lib/gl_array_oset.h: Likewise.
75224         * lib/gl_avltree_list.c: Likewise.
75225         * lib/gl_avltree_list.h: Likewise.
75226         * lib/gl_avltree_oset.c: Likewise.
75227         * lib/gl_avltree_oset.h: Likewise.
75228         * lib/gl_avltreehash_list.c: Likewise.
75229         * lib/gl_avltreehash_list.h: Likewise.
75230         * lib/gl_carray_list.c: Likewise.
75231         * lib/gl_carray_list.h: Likewise.
75232         * lib/gl_linked_list.c: Likewise.
75233         * lib/gl_linked_list.h: Likewise.
75234         * lib/gl_linkedhash_list.c: Likewise.
75235         * lib/gl_linkedhash_list.h: Likewise.
75236         * lib/gl_list.c: Likewise.
75237         * lib/gl_list.h: Likewise.
75238         * lib/gl_oset.c: Likewise.
75239         * lib/gl_oset.h: Likewise.
75240         * lib/gl_rbtree_list.c: Likewise.
75241         * lib/gl_rbtree_list.h: Likewise.
75242         * lib/gl_rbtree_oset.c: Likewise.
75243         * lib/gl_rbtree_oset.h: Likewise.
75244         * lib/gl_rbtreehash_list.c: Likewise.
75245         * lib/gl_rbtreehash_list.h: Likewise.
75246         * lib/gl_sublist.c: Likewise.
75247         * lib/gl_sublist.h: Likewise.
75248         * lib/group-member.c: Likewise.
75249         * lib/group-member.h: Likewise.
75250         * lib/hard-locale.c: Likewise.
75251         * lib/hard-locale.h: Likewise.
75252         * lib/hash-pjw.c: Likewise.
75253         * lib/hash-pjw.h: Likewise.
75254         * lib/hash-triple.c: Likewise.
75255         * lib/hash.c: Likewise.
75256         * lib/hash.h: Likewise.
75257         * lib/human.c: Likewise.
75258         * lib/human.h: Likewise.
75259         * lib/i-ring.c: Likewise.
75260         * lib/i-ring.h: Likewise.
75261         * lib/idcache.c: Likewise.
75262         * lib/imaxabs.c: Likewise.
75263         * lib/imaxdiv.c: Likewise.
75264         * lib/inet_pton.c: Likewise.
75265         * lib/inet_pton.h: Likewise.
75266         * lib/intprops.h: Likewise.
75267         * lib/inttostr.c: Likewise.
75268         * lib/inttostr.h: Likewise.
75269         * lib/inttypes.in.h: Likewise.
75270         * lib/isapipe.c: Likewise.
75271         * lib/isdir.c: Likewise.
75272         * lib/isnan.c: Likewise.
75273         * lib/isnan.h: Likewise.
75274         * lib/isnanf.c: Likewise.
75275         * lib/isnanf.h: Likewise.
75276         * lib/isnanl-nolibm.h: Likewise.
75277         * lib/isnanl.c: Likewise.
75278         * lib/isnanl.h: Likewise.
75279         * lib/javacomp.c: Likewise.
75280         * lib/javacomp.h: Likewise.
75281         * lib/javaexec.c: Likewise.
75282         * lib/javaexec.h: Likewise.
75283         * lib/javaversion.c: Likewise.
75284         * lib/javaversion.h: Likewise.
75285         * lib/javaversion.java: Likewise.
75286         * lib/lbrkprop.h: Likewise.
75287         * lib/lchmod.h: Likewise.
75288         * lib/lchown.c: Likewise.
75289         * lib/ldexpl.c: Likewise.
75290         * lib/linebreak.c: Likewise.
75291         * lib/linebreak.h: Likewise.
75292         * lib/linebuffer.c: Likewise.
75293         * lib/linebuffer.h: Likewise.
75294         * lib/locale.in.h: Likewise.
75295         * lib/logl.c: Likewise.
75296         * lib/long-options.c: Likewise.
75297         * lib/long-options.h: Likewise.
75298         * lib/lstat.c: Likewise.
75299         * lib/lstat.h: Likewise.
75300         * lib/math.in.h: Likewise.
75301         * lib/mbchar.c: Likewise.
75302         * lib/mbchar.h: Likewise.
75303         * lib/mbfile.h: Likewise.
75304         * lib/mbiter.h: Likewise.
75305         * lib/mbscasecmp.c: Likewise.
75306         * lib/mbscasestr.c: Likewise.
75307         * lib/mbschr.c: Likewise.
75308         * lib/mbscspn.c: Likewise.
75309         * lib/mbslen.c: Likewise.
75310         * lib/mbsncasecmp.c: Likewise.
75311         * lib/mbsnlen.c: Likewise.
75312         * lib/mbspbrk.c: Likewise.
75313         * lib/mbspcasecmp.c: Likewise.
75314         * lib/mbsrchr.c: Likewise.
75315         * lib/mbssep.c: Likewise.
75316         * lib/mbsspn.c: Likewise.
75317         * lib/mbsstr.c: Likewise.
75318         * lib/mbstok_r.c: Likewise.
75319         * lib/mbswidth.c: Likewise.
75320         * lib/mbswidth.h: Likewise.
75321         * lib/mbuiter.h: Likewise.
75322         * lib/memcasecmp.c: Likewise.
75323         * lib/memcasecmp.h: Likewise.
75324         * lib/memchr.c: Likewise.
75325         * lib/memcmp.c: Likewise.
75326         * lib/memcoll.c: Likewise.
75327         * lib/memcoll.h: Likewise.
75328         * lib/memcpy.c: Likewise.
75329         * lib/memrchr.c: Likewise.
75330         * lib/mkancesdirs.c: Likewise.
75331         * lib/mkdir-p.c: Likewise.
75332         * lib/mkdir-p.h: Likewise.
75333         * lib/mkdir.c: Likewise.
75334         * lib/mkdirat.c: Likewise.
75335         * lib/mkdtemp.c: Likewise.
75336         * lib/mkstemp-safer.c: Likewise.
75337         * lib/mkstemp.c: Likewise.
75338         * lib/modechange.c: Likewise.
75339         * lib/modechange.h: Likewise.
75340         * lib/mountlist.c: Likewise.
75341         * lib/mountlist.h: Likewise.
75342         * lib/mpsort.c: Likewise.
75343         * lib/nanosleep.c: Likewise.
75344         * lib/obstack.c: Likewise.
75345         * lib/obstack.h: Likewise.
75346         * lib/open-safer.c: Likewise.
75347         * lib/open.c: Likewise.
75348         * lib/openat-die.c: Likewise.
75349         * lib/openat-priv.h: Likewise.
75350         * lib/openat-proc.c: Likewise.
75351         * lib/openat.c: Likewise.
75352         * lib/openat.h: Likewise.
75353         * lib/pagealign_alloc.c: Likewise.
75354         * lib/pagealign_alloc.h: Likewise.
75355         * lib/physmem.c: Likewise.
75356         * lib/physmem.h: Likewise.
75357         * lib/pipe-safer.c: Likewise.
75358         * lib/pipe.c: Likewise.
75359         * lib/pipe.h: Likewise.
75360         * lib/posixtm.c: Likewise.
75361         * lib/posixtm.h: Likewise.
75362         * lib/posixver.c: Likewise.
75363         * lib/printf-frexp.c: Likewise.
75364         * lib/printf-frexp.h: Likewise.
75365         * lib/printf-frexpl.c: Likewise.
75366         * lib/printf-frexpl.h: Likewise.
75367         * lib/printf.c: Likewise.
75368         * lib/progname.c: Likewise.
75369         * lib/progname.h: Likewise.
75370         * lib/progreloc.c: Likewise.
75371         * lib/putenv.c: Likewise.
75372         * lib/quote.c: Likewise.
75373         * lib/quote.h: Likewise.
75374         * lib/quotearg.c: Likewise.
75375         * lib/quotearg.h: Likewise.
75376         * lib/raise.c: Likewise.
75377         * lib/readline.c: Likewise.
75378         * lib/readline.h: Likewise.
75379         * lib/readlink.c: Likewise.
75380         * lib/readtokens.c: Likewise.
75381         * lib/readtokens.h: Likewise.
75382         * lib/readtokens0.c: Likewise.
75383         * lib/readtokens0.h: Likewise.
75384         * lib/readutmp.c: Likewise.
75385         * lib/readutmp.h: Likewise.
75386         * lib/realloc.c: Likewise.
75387         * lib/relocwrapper.c: Likewise.
75388         * lib/rename-dest-slash.c: Likewise.
75389         * lib/rename.c: Likewise.
75390         * lib/rmdir.c: Likewise.
75391         * lib/rpmatch.c: Likewise.
75392         * lib/safe-read.c: Likewise.
75393         * lib/safe-read.h: Likewise.
75394         * lib/safe-write.c: Likewise.
75395         * lib/safe-write.h: Likewise.
75396         * lib/same-inode.h: Likewise.
75397         * lib/same.c: Likewise.
75398         * lib/same.h: Likewise.
75399         * lib/save-cwd.c: Likewise.
75400         * lib/save-cwd.h: Likewise.
75401         * lib/savedir.c: Likewise.
75402         * lib/savedir.h: Likewise.
75403         * lib/savewd.c: Likewise.
75404         * lib/savewd.h: Likewise.
75405         * lib/search.in.h: Likewise.
75406         * lib/setenv.c: Likewise.
75407         * lib/setenv.h: Likewise.
75408         * lib/settime.c: Likewise.
75409         * lib/sh-quote.c: Likewise.
75410         * lib/sh-quote.h: Likewise.
75411         * lib/sig2str.c: Likewise.
75412         * lib/sig2str.h: Likewise.
75413         * lib/signal.in.h: Likewise.
75414         * lib/signbitd.c: Likewise.
75415         * lib/signbitf.c: Likewise.
75416         * lib/signbitl.c: Likewise.
75417         * lib/sigprocmask.c: Likewise.
75418         * lib/sincosl.c: Likewise.
75419         * lib/sleep.c: Likewise.
75420         * lib/sprintf.c: Likewise.
75421         * lib/sqrtl.c: Likewise.
75422         * lib/stat-time.h: Likewise.
75423         * lib/stdio--.h: Likewise.
75424         * lib/stdio-safer.h: Likewise.
75425         * lib/stdlib--.h: Likewise.
75426         * lib/stdlib-safer.h: Likewise.
75427         * lib/stdlib.in.h: Likewise.
75428         * lib/stpcpy.c: Likewise.
75429         * lib/stpncpy.c: Likewise.
75430         * lib/strchrnul.c: Likewise.
75431         * lib/strcspn.c: Likewise.
75432         * lib/strerror.c: Likewise.
75433         * lib/strftime.c: Likewise.
75434         * lib/strftime.h: Likewise.
75435         * lib/striconveh.c: Likewise.
75436         * lib/striconveh.h: Likewise.
75437         * lib/striconveha.c: Likewise.
75438         * lib/striconveha.h: Likewise.
75439         * lib/stripslash.c: Likewise.
75440         * lib/strnlen1.c: Likewise.
75441         * lib/strnlen1.h: Likewise.
75442         * lib/strtod.c: Likewise.
75443         * lib/strtoimax.c: Likewise.
75444         * lib/strtok_r.c: Likewise.
75445         * lib/strtol.c: Likewise.
75446         * lib/strtoll.c: Likewise.
75447         * lib/strtoul.c: Likewise.
75448         * lib/strtoull.c: Likewise.
75449         * lib/sysexits.in.h: Likewise.
75450         * lib/tempname.c: Likewise.
75451         * lib/tempname.h: Likewise.
75452         * lib/timespec.h: Likewise.
75453         * lib/tls.c: Likewise.
75454         * lib/tls.h: Likewise.
75455         * lib/tmpdir.c: Likewise.
75456         * lib/tmpdir.h: Likewise.
75457         * lib/tmpfile-safer.c: Likewise.
75458         * lib/tmpfile.c: Likewise.
75459         * lib/trigl.c: Likewise.
75460         * lib/trigl.h: Likewise.
75461         * lib/trim.c: Likewise.
75462         * lib/trim.h: Likewise.
75463         * lib/trunc.c: Likewise.
75464         * lib/truncf.c: Likewise.
75465         * lib/truncl.c: Likewise.
75466         * lib/tsearch.c: Likewise.
75467         * lib/unicodeio.c: Likewise.
75468         * lib/unicodeio.h: Likewise.
75469         * lib/unistd--.h: Likewise.
75470         * lib/unistd-safer.h: Likewise.
75471         * lib/unistdio/ulc-fprintf.c: Likewise.
75472         * lib/unistdio/ulc-vfprintf.c: Likewise.
75473         * lib/unlinkdir.c: Likewise.
75474         * lib/unlinkdir.h: Likewise.
75475         * lib/unlocked-io.h: Likewise.
75476         * lib/unsetenv.c: Likewise.
75477         * lib/userspec.c: Likewise.
75478         * lib/utime.c: Likewise.
75479         * lib/utimecmp.c: Likewise.
75480         * lib/utimecmp.h: Likewise.
75481         * lib/utimens.c: Likewise.
75482         * lib/verify.h: Likewise.
75483         * lib/verror.c: Likewise.
75484         * lib/verror.h: Likewise.
75485         * lib/version-etc-fsf.c: Likewise.
75486         * lib/version-etc.c: Likewise.
75487         * lib/version-etc.h: Likewise.
75488         * lib/vfprintf.c: Likewise.
75489         * lib/vprintf.c: Likewise.
75490         * lib/vsprintf.c: Likewise.
75491         * lib/w32spawn.h: Likewise.
75492         * lib/wait-process.c: Likewise.
75493         * lib/wait-process.h: Likewise.
75494         * lib/wcwidth.c: Likewise.
75495         * lib/write-any-file.c: Likewise.
75496         * lib/xalloc-die.c: Likewise.
75497         * lib/xalloc.h: Likewise.
75498         * lib/xasprintf.c: Likewise.
75499         * lib/xgetcwd.c: Likewise.
75500         * lib/xgetcwd.h: Likewise.
75501         * lib/xgetdomainname.c: Likewise.
75502         * lib/xgetdomainname.h: Likewise.
75503         * lib/xgethostname.c: Likewise.
75504         * lib/xmalloc.c: Likewise.
75505         * lib/xmalloca.c: Likewise.
75506         * lib/xmalloca.h: Likewise.
75507         * lib/xmemcoll.c: Likewise.
75508         * lib/xnanosleep.c: Likewise.
75509         * lib/xreadlink.c: Likewise.
75510         * lib/xreadlink.h: Likewise.
75511         * lib/xsetenv.c: Likewise.
75512         * lib/xsetenv.h: Likewise.
75513         * lib/xstriconv.c: Likewise.
75514         * lib/xstriconv.h: Likewise.
75515         * lib/xstrndup.c: Likewise.
75516         * lib/xstrndup.h: Likewise.
75517         * lib/xstrtod.c: Likewise.
75518         * lib/xstrtod.h: Likewise.
75519         * lib/xstrtol-error.c: Likewise.
75520         * lib/xstrtol.c: Likewise.
75521         * lib/xstrtol.h: Likewise.
75522         * lib/xtime.h: Likewise.
75523         * lib/xvasprintf.c: Likewise.
75524         * lib/xvasprintf.h: Likewise.
75525         * lib/yesno.c: Likewise.
75526         * lib/yesno.h: Likewise.
75527         * posix-modules: Likewise.
75528         * tests/test-alloca-opt.c: Likewise.
75529         * tests/test-arcfour.c: Likewise.
75530         * tests/test-arctwo.c: Likewise.
75531         * tests/test-argmatch.c: Likewise.
75532         * tests/test-argp-2.sh: Likewise.
75533         * tests/test-argp.c: Likewise.
75534         * tests/test-arpa_inet.c: Likewise.
75535         * tests/test-array_list.c: Likewise.
75536         * tests/test-array_oset.c: Likewise.
75537         * tests/test-atexit.c: Likewise.
75538         * tests/test-avltree_list.c: Likewise.
75539         * tests/test-avltree_oset.c: Likewise.
75540         * tests/test-avltreehash_list.c: Likewise.
75541         * tests/test-base64.c: Likewise.
75542         * tests/test-binary-io.c: Likewise.
75543         * tests/test-byteswap.c: Likewise.
75544         * tests/test-c-ctype.c: Likewise.
75545         * tests/test-c-strcasecmp.c: Likewise.
75546         * tests/test-c-strcasestr.c: Likewise.
75547         * tests/test-c-strncasecmp.c: Likewise.
75548         * tests/test-c-strstr.c: Likewise.
75549         * tests/test-canonicalize-lgpl.c: Likewise.
75550         * tests/test-canonicalize.c: Likewise.
75551         * tests/test-carray_list.c: Likewise.
75552         * tests/test-ceilf.c: Likewise.
75553         * tests/test-ceill.c: Likewise.
75554         * tests/test-count-one-bits.c: Likewise.
75555         * tests/test-crc.c: Likewise.
75556         * tests/test-dirname.c: Likewise.
75557         * tests/test-fbufmode.c: Likewise.
75558         * tests/test-fcntl.c: Likewise.
75559         * tests/test-fflush.c: Likewise.
75560         * tests/test-floorf.c: Likewise.
75561         * tests/test-floorl.c: Likewise.
75562         * tests/test-fopen.c: Likewise.
75563         * tests/test-fprintf-posix.c: Likewise.
75564         * tests/test-fprintf-posix.h: Likewise.
75565         * tests/test-fpurge.c: Likewise.
75566         * tests/test-freadable.c: Likewise.
75567         * tests/test-freadahead.c: Likewise.
75568         * tests/test-freading.c: Likewise.
75569         * tests/test-freopen.c: Likewise.
75570         * tests/test-frexp.c: Likewise.
75571         * tests/test-frexpl.c: Likewise.
75572         * tests/test-fseek.c: Likewise.
75573         * tests/test-fseeko.c: Likewise.
75574         * tests/test-fseterr.c: Likewise.
75575         * tests/test-fstrcmp.c: Likewise.
75576         * tests/test-ftell.c: Likewise.
75577         * tests/test-ftello.c: Likewise.
75578         * tests/test-fwritable.c: Likewise.
75579         * tests/test-fwriting.c: Likewise.
75580         * tests/test-getaddrinfo.c: Likewise.
75581         * tests/test-getpass.c: Likewise.
75582         * tests/test-gettimeofday.c: Likewise.
75583         * tests/test-hmac-md5.c: Likewise.
75584         * tests/test-hmac-sha1.c: Likewise.
75585         * tests/test-iconv.c: Likewise.
75586         * tests/test-iconvme.c: Likewise.
75587         * tests/test-inttypes.c: Likewise.
75588         * tests/test-isnan.c: Likewise.
75589         * tests/test-isnanf.c: Likewise.
75590         * tests/test-isnanl-nolibm.c: Likewise.
75591         * tests/test-isnanl.c: Likewise.
75592         * tests/test-isnanl.h: Likewise.
75593         * tests/test-ldexpl.c: Likewise.
75594         * tests/test-linked_list.c: Likewise.
75595         * tests/test-linkedhash_list.c: Likewise.
75596         * tests/test-locale.c: Likewise.
75597         * tests/test-localename.c: Likewise.
75598         * tests/test-lock.c: Likewise.
75599         * tests/test-lseek.c: Likewise.
75600         * tests/test-malloca.c: Likewise.
75601         * tests/test-math.c: Likewise.
75602         * tests/test-mbscasecmp.c: Likewise.
75603         * tests/test-mbscasestr1.c: Likewise.
75604         * tests/test-mbscasestr2.c: Likewise.
75605         * tests/test-mbscasestr3.c: Likewise.
75606         * tests/test-mbscasestr4.c: Likewise.
75607         * tests/test-mbschr.c: Likewise.
75608         * tests/test-mbscspn.c: Likewise.
75609         * tests/test-mbsncasecmp.c: Likewise.
75610         * tests/test-mbspbrk.c: Likewise.
75611         * tests/test-mbspcasecmp.c: Likewise.
75612         * tests/test-mbsrchr.c: Likewise.
75613         * tests/test-mbsspn.c: Likewise.
75614         * tests/test-mbsstr1.c: Likewise.
75615         * tests/test-mbsstr2.c: Likewise.
75616         * tests/test-mbsstr3.c: Likewise.
75617         * tests/test-md5.c: Likewise.
75618         * tests/test-memmem.c: Likewise.
75619         * tests/test-netinet_in.c: Likewise.
75620         * tests/test-open.c: Likewise.
75621         * tests/test-printf-frexp.c: Likewise.
75622         * tests/test-printf-frexpl.c: Likewise.
75623         * tests/test-printf-posix.c: Likewise.
75624         * tests/test-printf-posix.h: Likewise.
75625         * tests/test-rbtree_list.c: Likewise.
75626         * tests/test-rbtree_oset.c: Likewise.
75627         * tests/test-rbtreehash_list.c: Likewise.
75628         * tests/test-read-file.c: Likewise.
75629         * tests/test-rijndael.c: Likewise.
75630         * tests/test-search.c: Likewise.
75631         * tests/test-signbit.c: Likewise.
75632         * tests/test-sleep.c: Likewise.
75633         * tests/test-snprintf-posix.c: Likewise.
75634         * tests/test-snprintf-posix.h: Likewise.
75635         * tests/test-snprintf.c: Likewise.
75636         * tests/test-sprintf-posix.c: Likewise.
75637         * tests/test-sprintf-posix.h: Likewise.
75638         * tests/test-stat-time.c: Likewise.
75639         * tests/test-stdbool.c: Likewise.
75640         * tests/test-stdint.c: Likewise.
75641         * tests/test-stdio.c: Likewise.
75642         * tests/test-stdlib.c: Likewise.
75643         * tests/test-stpncpy.c: Likewise.
75644         * tests/test-strcasestr.c: Likewise.
75645         * tests/test-striconv.c: Likewise.
75646         * tests/test-striconveh.c: Likewise.
75647         * tests/test-striconveha.c: Likewise.
75648         * tests/test-string.c: Likewise.
75649         * tests/test-sys_select.c: Likewise.
75650         * tests/test-sys_socket.c: Likewise.
75651         * tests/test-sys_stat.c: Likewise.
75652         * tests/test-sys_time.c: Likewise.
75653         * tests/test-sysexits.c: Likewise.
75654         * tests/test-time.c: Likewise.
75655         * tests/test-tls.c: Likewise.
75656         * tests/test-trunc.c: Likewise.
75657         * tests/test-truncf.c: Likewise.
75658         * tests/test-truncl.c: Likewise.
75659         * tests/test-unistd.c: Likewise.
75660         * tests/test-vasnprintf-posix.c: Likewise.
75661         * tests/test-vasnprintf-posix2.c: Likewise.
75662         * tests/test-vasnprintf.c: Likewise.
75663         * tests/test-vasprintf-posix.c: Likewise.
75664         * tests/test-vasprintf.c: Likewise.
75665         * tests/test-verify.c: Likewise.
75666         * tests/test-vfprintf-posix.c: Likewise.
75667         * tests/test-vprintf-posix.c: Likewise.
75668         * tests/test-vsnprintf-posix.c: Likewise.
75669         * tests/test-vsnprintf.c: Likewise.
75670         * tests/test-vsprintf-posix.c: Likewise.
75671         * tests/test-wchar.c: Likewise.
75672         * tests/test-wctype.c: Likewise.
75673         * tests/test-wcwidth.c: Likewise.
75674         * tests/test-xstrtol.c: Likewise.
75675         * tests/test-xvasprintf.c: Likewise.
75676         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
75677         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
75678         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
75679         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
75680         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
75681         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
75682         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
75683         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
75684         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
75685         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
75686         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
75687         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
75688         * tests/uniname/test-uninames.c: Likewise.
75689         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
75690         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
75691         * tests/unistdio/test-u16-printf1.h: Likewise.
75692         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
75693         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
75694         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
75695         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
75696         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
75697         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
75698         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
75699         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
75700         * tests/unistdio/test-u32-printf1.h: Likewise.
75701         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
75702         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
75703         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
75704         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
75705         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
75706         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
75707         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
75708         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
75709         * tests/unistdio/test-u8-printf1.h: Likewise.
75710         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
75711         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
75712         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
75713         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
75714         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
75715         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
75716         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
75717         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
75718         * tests/unistdio/test-ulc-printf1.h: Likewise.
75719         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
75720         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
75721         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
75722         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
75723         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
75724         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
75725         * tests/uniwidth/test-u16-strwidth.c: Likewise.
75726         * tests/uniwidth/test-u16-width.c: Likewise.
75727         * tests/uniwidth/test-u32-strwidth.c: Likewise.
75728         * tests/uniwidth/test-u32-width.c: Likewise.
75729         * tests/uniwidth/test-u8-strwidth.c: Likewise.
75730         * tests/uniwidth/test-u8-width.c: Likewise.
75731         * tests/uniwidth/test-uc_width.c: Likewise.
75732         * config/srclist-update: Likewise.
75733         (fixlicense): Update to GPLv3+.
75735         Change copyright notice from LGPLv2.1+ to LGPLv3+.
75736         * tests/test-tsearch.c: Change copyright notice.
75738         Change copyright notice from LGPLv2.0+ to LGPLv3+.
75739         * lib/c-strcaseeq.h: Change copyright notice.
75740         * lib/streq.h: Likewise.
75741         * lib/uniconv.h: Likewise.
75742         * lib/uniconv/u-conv-from-enc.h: Likewise.
75743         * lib/uniconv/u-conv-to-enc.h: Likewise.
75744         * lib/uniconv/u-strconv-from-enc.h: Likewise.
75745         * lib/uniconv/u-strconv-to-enc.h: Likewise.
75746         * lib/uniconv/u16-conv-from-enc.c: Likewise.
75747         * lib/uniconv/u16-conv-to-enc.c: Likewise.
75748         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
75749         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
75750         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
75751         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
75752         * lib/uniconv/u32-conv-from-enc.c: Likewise.
75753         * lib/uniconv/u32-conv-to-enc.c: Likewise.
75754         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
75755         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
75756         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
75757         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
75758         * lib/uniconv/u8-conv-from-enc.c: Likewise.
75759         * lib/uniconv/u8-conv-to-enc.c: Likewise.
75760         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
75761         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
75762         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
75763         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
75764         * lib/uniname.h: Likewise.
75765         * lib/uniname/uniname.c: Likewise.
75766         * lib/unistdio.h: Likewise.
75767         * lib/unistdio/u-asnprintf.h: Likewise.
75768         * lib/unistdio/u-asprintf.h: Likewise.
75769         * lib/unistdio/u-printf-args.c: Likewise.
75770         * lib/unistdio/u-printf-args.h: Likewise.
75771         * lib/unistdio/u-printf-parse.h: Likewise.
75772         * lib/unistdio/u-snprintf.h: Likewise.
75773         * lib/unistdio/u-sprintf.h: Likewise.
75774         * lib/unistdio/u-vasprintf.h: Likewise.
75775         * lib/unistdio/u-vsnprintf.h: Likewise.
75776         * lib/unistdio/u-vsprintf.h: Likewise.
75777         * lib/unistdio/u16-asnprintf.c: Likewise.
75778         * lib/unistdio/u16-asprintf.c: Likewise.
75779         * lib/unistdio/u16-printf-parse.c: Likewise.
75780         * lib/unistdio/u16-snprintf.c: Likewise.
75781         * lib/unistdio/u16-sprintf.c: Likewise.
75782         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
75783         * lib/unistdio/u16-u16-asprintf.c: Likewise.
75784         * lib/unistdio/u16-u16-snprintf.c: Likewise.
75785         * lib/unistdio/u16-u16-sprintf.c: Likewise.
75786         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
75787         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
75788         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
75789         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
75790         * lib/unistdio/u16-vasnprintf.c: Likewise.
75791         * lib/unistdio/u16-vasprintf.c: Likewise.
75792         * lib/unistdio/u16-vsnprintf.c: Likewise.
75793         * lib/unistdio/u16-vsprintf.c: Likewise.
75794         * lib/unistdio/u32-asnprintf.c: Likewise.
75795         * lib/unistdio/u32-asprintf.c: Likewise.
75796         * lib/unistdio/u32-printf-parse.c: Likewise.
75797         * lib/unistdio/u32-snprintf.c: Likewise.
75798         * lib/unistdio/u32-sprintf.c: Likewise.
75799         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
75800         * lib/unistdio/u32-u32-asprintf.c: Likewise.
75801         * lib/unistdio/u32-u32-snprintf.c: Likewise.
75802         * lib/unistdio/u32-u32-sprintf.c: Likewise.
75803         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
75804         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
75805         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
75806         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
75807         * lib/unistdio/u32-vasnprintf.c: Likewise.
75808         * lib/unistdio/u32-vasprintf.c: Likewise.
75809         * lib/unistdio/u32-vsnprintf.c: Likewise.
75810         * lib/unistdio/u32-vsprintf.c: Likewise.
75811         * lib/unistdio/u8-asnprintf.c: Likewise.
75812         * lib/unistdio/u8-asprintf.c: Likewise.
75813         * lib/unistdio/u8-printf-parse.c: Likewise.
75814         * lib/unistdio/u8-snprintf.c: Likewise.
75815         * lib/unistdio/u8-sprintf.c: Likewise.
75816         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
75817         * lib/unistdio/u8-u8-asprintf.c: Likewise.
75818         * lib/unistdio/u8-u8-snprintf.c: Likewise.
75819         * lib/unistdio/u8-u8-sprintf.c: Likewise.
75820         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
75821         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
75822         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
75823         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
75824         * lib/unistdio/u8-vasnprintf.c: Likewise.
75825         * lib/unistdio/u8-vasprintf.c: Likewise.
75826         * lib/unistdio/u8-vsnprintf.c: Likewise.
75827         * lib/unistdio/u8-vsprintf.c: Likewise.
75828         * lib/unistdio/ulc-asnprintf.c: Likewise.
75829         * lib/unistdio/ulc-asprintf.c: Likewise.
75830         * lib/unistdio/ulc-printf-parse.c: Likewise.
75831         * lib/unistdio/ulc-snprintf.c: Likewise.
75832         * lib/unistdio/ulc-sprintf.c: Likewise.
75833         * lib/unistdio/ulc-vasnprintf.c: Likewise.
75834         * lib/unistdio/ulc-vasprintf.c: Likewise.
75835         * lib/unistdio/ulc-vsnprintf.c: Likewise.
75836         * lib/unistdio/ulc-vsprintf.c: Likewise.
75837         * lib/unistr.h: Likewise.
75838         * lib/unistr/u-cpy-alloc.h: Likewise.
75839         * lib/unistr/u-cpy.h: Likewise.
75840         * lib/unistr/u-endswith.h: Likewise.
75841         * lib/unistr/u-move.h: Likewise.
75842         * lib/unistr/u-set.h: Likewise.
75843         * lib/unistr/u-startswith.h: Likewise.
75844         * lib/unistr/u-stpcpy.h: Likewise.
75845         * lib/unistr/u-stpncpy.h: Likewise.
75846         * lib/unistr/u-strcat.h: Likewise.
75847         * lib/unistr/u-strcpy.h: Likewise.
75848         * lib/unistr/u-strcspn.h: Likewise.
75849         * lib/unistr/u-strdup.h: Likewise.
75850         * lib/unistr/u-strlen.h: Likewise.
75851         * lib/unistr/u-strncat.h: Likewise.
75852         * lib/unistr/u-strncpy.h: Likewise.
75853         * lib/unistr/u-strnlen.h: Likewise.
75854         * lib/unistr/u-strpbrk.h: Likewise.
75855         * lib/unistr/u-strspn.h: Likewise.
75856         * lib/unistr/u-strstr.h: Likewise.
75857         * lib/unistr/u-strtok.h: Likewise.
75858         * lib/unistr/u16-check.c: Likewise.
75859         * lib/unistr/u16-chr.c: Likewise.
75860         * lib/unistr/u16-cmp.c: Likewise.
75861         * lib/unistr/u16-cpy-alloc.c: Likewise.
75862         * lib/unistr/u16-cpy.c: Likewise.
75863         * lib/unistr/u16-endswith.c: Likewise.
75864         * lib/unistr/u16-mblen.c: Likewise.
75865         * lib/unistr/u16-mbsnlen.c: Likewise.
75866         * lib/unistr/u16-mbtouc-aux.c: Likewise.
75867         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
75868         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
75869         * lib/unistr/u16-mbtouc.c: Likewise.
75870         * lib/unistr/u16-mbtoucr.c: Likewise.
75871         * lib/unistr/u16-move.c: Likewise.
75872         * lib/unistr/u16-next.c: Likewise.
75873         * lib/unistr/u16-prev.c: Likewise.
75874         * lib/unistr/u16-set.c: Likewise.
75875         * lib/unistr/u16-startswith.c: Likewise.
75876         * lib/unistr/u16-stpcpy.c: Likewise.
75877         * lib/unistr/u16-stpncpy.c: Likewise.
75878         * lib/unistr/u16-strcat.c: Likewise.
75879         * lib/unistr/u16-strchr.c: Likewise.
75880         * lib/unistr/u16-strcmp.c: Likewise.
75881         * lib/unistr/u16-strcpy.c: Likewise.
75882         * lib/unistr/u16-strcspn.c: Likewise.
75883         * lib/unistr/u16-strdup.c: Likewise.
75884         * lib/unistr/u16-strlen.c: Likewise.
75885         * lib/unistr/u16-strmblen.c: Likewise.
75886         * lib/unistr/u16-strmbtouc.c: Likewise.
75887         * lib/unistr/u16-strncat.c: Likewise.
75888         * lib/unistr/u16-strncmp.c: Likewise.
75889         * lib/unistr/u16-strncpy.c: Likewise.
75890         * lib/unistr/u16-strnlen.c: Likewise.
75891         * lib/unistr/u16-strpbrk.c: Likewise.
75892         * lib/unistr/u16-strrchr.c: Likewise.
75893         * lib/unistr/u16-strspn.c: Likewise.
75894         * lib/unistr/u16-strstr.c: Likewise.
75895         * lib/unistr/u16-strtok.c: Likewise.
75896         * lib/unistr/u16-to-u32.c: Likewise.
75897         * lib/unistr/u16-to-u8.c: Likewise.
75898         * lib/unistr/u16-uctomb-aux.c: Likewise.
75899         * lib/unistr/u16-uctomb.c: Likewise.
75900         * lib/unistr/u32-check.c: Likewise.
75901         * lib/unistr/u32-chr.c: Likewise.
75902         * lib/unistr/u32-cmp.c: Likewise.
75903         * lib/unistr/u32-cpy-alloc.c: Likewise.
75904         * lib/unistr/u32-cpy.c: Likewise.
75905         * lib/unistr/u32-endswith.c: Likewise.
75906         * lib/unistr/u32-mblen.c: Likewise.
75907         * lib/unistr/u32-mbsnlen.c: Likewise.
75908         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
75909         * lib/unistr/u32-mbtouc.c: Likewise.
75910         * lib/unistr/u32-mbtoucr.c: Likewise.
75911         * lib/unistr/u32-move.c: Likewise.
75912         * lib/unistr/u32-next.c: Likewise.
75913         * lib/unistr/u32-prev.c: Likewise.
75914         * lib/unistr/u32-set.c: Likewise.
75915         * lib/unistr/u32-startswith.c: Likewise.
75916         * lib/unistr/u32-stpcpy.c: Likewise.
75917         * lib/unistr/u32-stpncpy.c: Likewise.
75918         * lib/unistr/u32-strcat.c: Likewise.
75919         * lib/unistr/u32-strchr.c: Likewise.
75920         * lib/unistr/u32-strcmp.c: Likewise.
75921         * lib/unistr/u32-strcpy.c: Likewise.
75922         * lib/unistr/u32-strcspn.c: Likewise.
75923         * lib/unistr/u32-strdup.c: Likewise.
75924         * lib/unistr/u32-strlen.c: Likewise.
75925         * lib/unistr/u32-strmblen.c: Likewise.
75926         * lib/unistr/u32-strmbtouc.c: Likewise.
75927         * lib/unistr/u32-strncat.c: Likewise.
75928         * lib/unistr/u32-strncmp.c: Likewise.
75929         * lib/unistr/u32-strncpy.c: Likewise.
75930         * lib/unistr/u32-strnlen.c: Likewise.
75931         * lib/unistr/u32-strpbrk.c: Likewise.
75932         * lib/unistr/u32-strrchr.c: Likewise.
75933         * lib/unistr/u32-strspn.c: Likewise.
75934         * lib/unistr/u32-strstr.c: Likewise.
75935         * lib/unistr/u32-strtok.c: Likewise.
75936         * lib/unistr/u32-to-u16.c: Likewise.
75937         * lib/unistr/u32-to-u8.c: Likewise.
75938         * lib/unistr/u32-uctomb.c: Likewise.
75939         * lib/unistr/u8-check.c: Likewise.
75940         * lib/unistr/u8-chr.c: Likewise.
75941         * lib/unistr/u8-cmp.c: Likewise.
75942         * lib/unistr/u8-cpy-alloc.c: Likewise.
75943         * lib/unistr/u8-cpy.c: Likewise.
75944         * lib/unistr/u8-endswith.c: Likewise.
75945         * lib/unistr/u8-mblen.c: Likewise.
75946         * lib/unistr/u8-mbsnlen.c: Likewise.
75947         * lib/unistr/u8-mbtouc-aux.c: Likewise.
75948         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
75949         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
75950         * lib/unistr/u8-mbtouc.c: Likewise.
75951         * lib/unistr/u8-mbtoucr.c: Likewise.
75952         * lib/unistr/u8-move.c: Likewise.
75953         * lib/unistr/u8-next.c: Likewise.
75954         * lib/unistr/u8-prev.c: Likewise.
75955         * lib/unistr/u8-set.c: Likewise.
75956         * lib/unistr/u8-startswith.c: Likewise.
75957         * lib/unistr/u8-stpcpy.c: Likewise.
75958         * lib/unistr/u8-stpncpy.c: Likewise.
75959         * lib/unistr/u8-strcat.c: Likewise.
75960         * lib/unistr/u8-strchr.c: Likewise.
75961         * lib/unistr/u8-strcmp.c: Likewise.
75962         * lib/unistr/u8-strcpy.c: Likewise.
75963         * lib/unistr/u8-strcspn.c: Likewise.
75964         * lib/unistr/u8-strdup.c: Likewise.
75965         * lib/unistr/u8-strlen.c: Likewise.
75966         * lib/unistr/u8-strmblen.c: Likewise.
75967         * lib/unistr/u8-strmbtouc.c: Likewise.
75968         * lib/unistr/u8-strncat.c: Likewise.
75969         * lib/unistr/u8-strncmp.c: Likewise.
75970         * lib/unistr/u8-strncpy.c: Likewise.
75971         * lib/unistr/u8-strnlen.c: Likewise.
75972         * lib/unistr/u8-strpbrk.c: Likewise.
75973         * lib/unistr/u8-strrchr.c: Likewise.
75974         * lib/unistr/u8-strspn.c: Likewise.
75975         * lib/unistr/u8-strstr.c: Likewise.
75976         * lib/unistr/u8-strtok.c: Likewise.
75977         * lib/unistr/u8-to-u16.c: Likewise.
75978         * lib/unistr/u8-to-u32.c: Likewise.
75979         * lib/unistr/u8-uctomb-aux.c: Likewise.
75980         * lib/unistr/u8-uctomb.c: Likewise.
75981         * lib/unitypes.h: Likewise.
75982         * lib/uniwidth.h: Likewise.
75983         * lib/uniwidth/cjk.h: Likewise.
75984         * lib/uniwidth/u16-strwidth.c: Likewise.
75985         * lib/uniwidth/u16-width.c: Likewise.
75986         * lib/uniwidth/u32-strwidth.c: Likewise.
75987         * lib/uniwidth/u32-width.c: Likewise.
75988         * lib/uniwidth/u8-strwidth.c: Likewise.
75989         * lib/uniwidth/u8-width.c: Likewise.
75990         * lib/uniwidth/width.c: Likewise.
75992 2007-10-07  Bruno Haible  <bruno@clisp.org>
75994         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
75995         The file is still under LGPL (see modules/inttypes).
75997 2007-10-06  Bruno Haible  <bruno@clisp.org>
75999         * modules/trunc (Dependencies): Add 'extensions'.
76000         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
76001         Reported by Ben Pfaff <blp@gnu.org>.
76003 2007-10-06  Bruno Haible  <bruno@clisp.org>
76005         * modules/freopen-tests: New file.
76006         * tests/test-freopen.c: New file.
76008         * modules/fopen-tests: New file.
76009         * tests/test-fopen.c: New file.
76011         * modules/fopen: New file.
76012         * lib/fopen.c: New file.
76013         * m4/fopen.m4: New file.
76014         * modules/freopen: New file.
76015         * lib/freopen.c: New file.
76016         * m4/freopen.m4: New file.
76017         * lib/stdio.in.h (fopen, freopen): New declarations.
76018         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
76019         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
76020         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
76021         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
76022         * doc/functions/fopen.texi: Mention the 'fopen' module.
76023         * doc/functions/freopen.texi: Mention the 'freopen' module.
76025 2007-10-06  Bruno Haible  <bruno@clisp.org>
76027         * modules/open-tests: New file.
76028         * tests/test-open.c: New file.
76030         * modules/open: New file.
76031         * lib/open.c: New file.
76032         * m4/open.m4: New file.
76033         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
76034         lib/open.c does.
76035         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
76036         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
76037         macros.
76038         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
76039         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
76040         REPLACE_OPEN.
76041         * doc/functions/open.texi: Mention the 'open' module.
76043 2007-10-04  Bruno Haible  <bruno@clisp.org>
76045         * modules/ceill-tests: New file.
76046         * tests/test-ceill.c: New file.
76048         * modules/ceill: New file.
76049         * lib/ceill.c: Replace entire file.
76050         * m4/ceill.m4: New file.
76051         * lib/math.in.h (ceill): Replace declaration.
76052         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
76053         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
76054         * doc/functions/ceill.texi: Mention the 'ceill' module.
76055         * modules/mathl (Files): Remove lib/ceill.c.
76056         (Depends-on): Add ceill.
76058 2007-10-04  Bruno Haible  <bruno@clisp.org>
76060         * modules/ceilf-tests: New file.
76061         * tests/test-ceilf.c: New file.
76063         * modules/ceilf: New file.
76064         * lib/ceil.c: New file.
76065         * lib/ceilf.c: New file.
76066         * m4/ceilf.m4: New file.
76067         * lib/math.in.h (ceilf): New declaration.
76068         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
76069         HAVE_DECL_CEILF.
76070         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
76071         HAVE_DECL_CEILF.
76072         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
76074 2007-10-04  Bruno Haible  <bruno@clisp.org>
76076         * modules/floorl-tests: New file.
76077         * tests/test-floorl.c: New file.
76079         * modules/floorl: New file.
76080         * lib/floorl.c: Replace entire file.
76081         * m4/floorl.m4: New file.
76082         * lib/math.in.h (floorl): Replace declaration.
76083         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
76084         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
76085         * doc/functions/floorl.texi: Mention the 'floorl' module.
76086         * modules/mathl (Files): Remove lib/floorl.c.
76087         (Depends-on): Add floorl.
76089 2007-10-04  Bruno Haible  <bruno@clisp.org>
76091         * modules/floorf-tests: New file.
76092         * tests/test-floorf.c: New file.
76094         * modules/floorf: New file.
76095         * lib/floor.c: New file.
76096         * lib/floorf.c: New file.
76097         * m4/floorf.m4: New file.
76098         * lib/math.in.h (floorf): New declaration.
76099         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
76100         HAVE_DECL_FLOORF.
76101         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
76102         HAVE_DECL_FLOORF.
76103         * doc/functions/floorf.texi: Mention the 'floorf' module.
76105 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
76106             Bruno Haible  <bruno@clisp.org>
76108         Advertise for the Git server instead of the CVS server.
76109         * doc/gnulib-intro.texi (Steady Development): Mention the Git
76110         repository instead of the CVS one.
76111         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
76112         about all VCS systems generically.
76113         * doc/gnulib.texi (Introduction): Capitalize `Git'.
76115 2007-10-04  Bruno Haible  <bruno@clisp.org>
76117         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
76118         means.
76119         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
76121 2007-10-04  Bruno Haible  <bruno@clisp.org>
76123         * modules/truncl-tests: New file.
76124         * tests/test-truncl.c: New file.
76126         * modules/truncl: New file.
76127         * lib/truncl.c: New file.
76128         * m4/truncl.m4: New file.
76129         * lib/math.in.h (truncl): New declaration.
76130         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
76131         HAVE_DECL_TRUNCL.
76132         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
76133         HAVE_DECL_TRUNCL.
76134         * doc/functions/truncl.texi: Mention the 'truncl' module.
76136 2007-10-04  Bruno Haible  <bruno@clisp.org>
76138         * modules/truncf-tests: New file.
76139         * tests/test-truncf.c: New file.
76141         * modules/truncf: New file.
76142         * lib/trunc.c: Make paramerizable through USE_* macros.
76143         * lib/truncf.c: New file.
76144         * m4/truncf.m4: New file.
76145         * lib/math.in.h (truncf): New declaration.
76146         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
76147         HAVE_DECL_TRUNCF.
76148         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
76149         HAVE_DECL_TRUNCF.
76150         * doc/functions/truncf.texi: Mention the 'truncf' module.
76152 2007-10-03  Bruno Haible  <bruno@clisp.org>
76154         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
76155         augmentation also for tests modules.
76156         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
76157         * modules/atexit-tests (Makefile.am): Likewise.
76158         * modules/binary-io-tests (Makefile.am): Likewise.
76159         * modules/c-strcase-tests (Makefile.am): Likewise.
76160         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
76161         * modules/canonicalize-tests (Makefile.am): Likewise.
76162         * modules/closein-tests (Makefile.am): Likewise.
76163         * modules/fprintf-posix-tests (Makefile.am): Likewise.
76164         * modules/freadahead-tests (Makefile.am): Likewise.
76165         * modules/fseek-tests (Makefile.am): Likewise.
76166         * modules/fseeko-tests (Makefile.am): Likewise.
76167         * modules/ftell-tests (Makefile.am): Likewise.
76168         * modules/ftello-tests (Makefile.am): Likewise.
76169         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
76170         * modules/isnanl-tests (Makefile.am): Likewise.
76171         * modules/lseek-tests (Makefile.am): Likewise.
76172         * modules/mbscasecmp-tests (Makefile.am): Likewise.
76173         * modules/mbscasestr-tests (Makefile.am): Likewise.
76174         * modules/mbschr-tests (Makefile.am): Likewise.
76175         * modules/mbscspn-tests (Makefile.am): Likewise.
76176         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
76177         * modules/mbspbrk-tests (Makefile.am): Likewise.
76178         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
76179         * modules/mbsrchr-tests (Makefile.am): Likewise.
76180         * modules/mbsspn-tests (Makefile.am): Likewise.
76181         * modules/mbsstr-tests (Makefile.am): Likewise.
76182         * modules/printf-posix-tests (Makefile.am): Likewise.
76183         * modules/snprintf-posix-tests (Makefile.am): Likewise.
76184         * modules/sprintf-posix-tests (Makefile.am): Likewise.
76185         * modules/tsearch-tests (Makefile.am): Likewise.
76186         * modules/uniname/uniname-tests (Makefile.am): Likewise.
76187         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
76188         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
76189         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
76190         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
76191         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
76192         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
76193         * modules/vprintf-posix-tests (Makefile.am): Likewise.
76194         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
76195         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
76196         * modules/xstrtoimax-tests (Makefile.am): Likewise.
76197         * modules/xstrtol-tests (Makefile.am): Likewise.
76198         * modules/xstrtoumax-tests (Makefile.am): Likewise.
76199         * modules/yesno-tests (Makefile.am): Likewise.
76201 2007-10-03  Bruno Haible  <bruno@clisp.org>
76203         * modules/trunc-tests: New file.
76204         * tests/test-trunc.c: New file.
76206         * modules/trunc: New file.
76207         * lib/trunc.c: New file.
76208         * m4/trunc.m4: New file.
76209         * lib/math.in.h (trunc): New declaration.
76210         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
76211         HAVE_DECL_TRUNC.
76212         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
76213         HAVE_DECL_TRUNC.
76214         * doc/functions/trunc.texi: Mention the 'trunc' module.
76216 2007-10-03  Bruno Haible  <bruno@clisp.org>
76218         * tests/test-fpending.c: New file, mostly copied
76219         from coreutils/lib/t-fpending.c.
76220         * modules/fpending-tests: New file.
76222 2007-10-03  Bruno Haible  <bruno@clisp.org>
76224         Port the stdio extensions to QNX (untested).
76225         * lib/fseterr.c (fseterr): Add support for QNX.
76226         * lib/fbufmode.c (fbufmode): Likewise.
76227         * lib/freadable.c (freadable): Likewise.
76228         * lib/fwritable.c (fwritable): Likewise.
76229         * lib/freading.c (freading): Likewise.
76230         * lib/fwriting.c (fwriting): Likewise.
76231         * lib/freadahead.c (freadahed): Likewise.
76232         * lib/fpurge.c (fpurge): Likewise.
76233         * lib/fseeko.c (rpl_fseeko): Likewise.
76235 2007-10-03  Bruno Haible  <bruno@clisp.org>
76236             Jim Meyering  <jim@meyering.net>
76237             Eric Blake  <ebb9@byu.net>
76239         * doc/relocatable.texi: Use @command instead of @program.
76241 2007-10-02  Jim Meyering  <jim@meyering.net>
76243         Perform one more "_.h" -> ".in.h" substitution.
76244         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
76245         instead of unistd_.h here, too.
76247 2007-10-01  Bruno Haible  <bruno@clisp.org>
76249         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
76250         Needed for the alloca-opt module.
76252 2007-09-30  Bruno Haible  <bruno@clisp.org>
76254         * lib/alloca.in.h: Renamed from lib/alloca_.h.
76255         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
76256         alloca_.h.
76257         * lib/argz.in.h: Renamed from lib/argz_.h.
76258         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
76259         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
76260         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
76261         byteswap_.h.
76262         * lib/dirent.in.h: Renamed from lib/dirent_.h.
76263         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
76264         dirent_.h.
76265         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
76266         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
76267         fcntl_.h.
76268         * lib/float.in.h: Renamed from lib/float_.h.
76269         * modules/float (Files, Makefile.am): Use float.in.h instead of
76270         float_.h.
76271         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
76272         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
76273         fnmatch_.h.
76274         * lib/getopt.in.h: Renamed from lib/getopt_.h.
76275         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
76276         getopt_.h.
76277         * lib/glob.in.h: Renamed from lib/glob_.h.
76278         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
76279         * lib/iconv.in.h: Renamed from lib/iconv_.h.
76280         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
76281         iconv_.h.
76282         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
76283         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
76284         inttypes_.h.
76285         * lib/locale.in.h: Renamed from lib/locale_.h.
76286         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
76287         locale_.h.
76288         * lib/math.in.h: Renamed from lib/math_.h.
76289         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
76290         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
76291         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
76292         of netinet_in_.h. Add dependency.
76293         * lib/poll.in.h: Renamed from lib/poll_.h.
76294         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
76295         * lib/search.in.h: Renamed from lib/search_.h.
76296         * modules/search (Files, Makefile.am): Use search.in.h instead of
76297         search_.h.
76298         * lib/signal.in.h: Renamed from lib/signal_.h.
76299         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
76300         _signal.h.
76301         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
76302         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
76303         stdbool_.h.
76304         * lib/stdint.in.h: Renamed from lib/stdint_.h.
76305         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
76306         stdint_.h.
76307         * lib/stdio.in.h: Renamed from lib/stdio_.h.
76308         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
76309         stdio_.h.
76310         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
76311         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
76312         stdlib_.h.
76313         * lib/string.in.h: Renamed from lib/string_.h.
76314         * modules/string (Files, Makefile.am): Use string.in.h instead of
76315         string_.h.
76316         * doc/gnulib-tool.texi (Initial import): Update.
76317         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
76318         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
76319         of sys_select_.h. Add dependency.
76320         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
76321         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
76322         of sys_socket_.h.
76323         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
76324         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
76325         sys_stat_.h.
76326         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
76327         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
76328         sys_time_.h.
76329         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
76330         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
76331         sysexits_.h.
76332         * lib/time.in.h: Renamed from lib/time_.h.
76333         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
76334         * lib/unistd.in.h: Renamed from lib/unistd_.h.
76335         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
76336         unistd_.h.
76337         * lib/wchar.in.h: Renamed from lib/wchar_.h.
76338         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
76339         wchar_.h.
76340         * lib/wctype.in.h: Renamed from lib/wctype_.h.
76341         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
76342         wctype_.h.
76343         * build-aux/bootstrap (slurp): Update.
76344         * lib/.cppi-disable: Update.
76346 2007-09-30  Bruno Haible  <bruno@clisp.org>
76348         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
76349         Needed on BeOS.
76351 2007-09-30  Bruno Haible  <bruno@clisp.org>
76353         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
76355 2007-09-29  Bruno Haible  <bruno@clisp.org>
76357         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
76359 2007-09-29  Bruno Haible  <bruno@clisp.org>
76361         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
76362         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
76363         * build-aux/install-reloc: Compile also areadlink.c.
76364         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
76366 2007-09-29  Bruno Haible  <bruno@clisp.org>
76368         * gnulib-tool (func_emit_initmacro_done): Indentation.
76370 2007-09-29  Bruno Haible  <bruno@clisp.org>
76372         * README: Add CVS checkout update instructions.
76373         Info from Bob Proulx <bob@proulx.com>.
76375 2007-09-28  Eric Blake  <ebb9@byu.net>
76377         Provide move-if-change.
76378         * build-aux/move-if-change: New file, based on best practice
76379         rather than any canonical upstream location.
76381 2007-09-28  Jim Meyering  <jim@meyering.net>
76383         Fix canonicalize loop-detection corner case.
76384         Do not attempt to stat the symlink values stored via seen_triple.
76385         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
76386         on linux-2.6.18, (but not 2.6.22).
76387         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
76388         triple_compare.  The former compares dev,ino,filename, while the latter
76389         would actually stat dirname(filename) when dev and ino were equal.
76390         * lib/hash-triple.c: Install <string.h>.
76391         (STREQ): Define.
76392         (triple_compare_ino_str): New function.
76393         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
76395 2007-09-28  Eric Blake  <ebb9@byu.net>
76397         Enforce that AC_REPLACE_FUNCS files exist.
76398         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
76399         override check for typos.
76401         Fix test-closein on Solaris 10.
76402         * tests/test-closein.c (main): Don't assume stdin can be inherited
76403         closed on all systems.
76404         * tests/test-closein.sh: Likewise.
76405         Reported by Piotr Tarnowski.
76407 2007-09-28  Jim Meyering  <jim@meyering.net>
76409         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
76411 2007-09-27  Jim Meyering  <jim@meyering.net>
76413         canonicalize: Avoid a false-positive cycle failure.
76414         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
76415         Sort.  Remove cycle-check.
76416         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
76417         not cycle-check.h.
76418         (seen_triple): New function.
76419         (canonicalize_filename_mode): Use it instead of cycle-check.
76420         * tests/test-canonicalize.c: Add a test for this bug.
76421         * tests/test-canonicalize.sh: Set up and run the test.
76423         New module, file-set, from coreutils.
76424         * modules/file-set: Define it.
76425         * lib/file-set.c, lib/file-set.h: Implement.
76427         New module, hash-triple, from coreutils.
76428         * modules/hash-triple: Define it.
76429         * lib/hash-triple.c, lib/hash-triple.h: Implement.
76431 2007-09-25  Eric Blake  <ebb9@byu.net>
76433         Fix strerror on Interix.
76434         * lib/string_.h (strerror): Declare replacement.
76435         * doc/functions/strerror.texi (strerror): Document the Interix
76436         shortcoming.
76437         * modules/string (Makefile.am): Support new hooks.
76438         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
76439         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
76440         gl_FUNC_STRERROR_SEPARATE.
76441         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
76442         * lib/strerror.c (rpl_strerror): Provide replacement.
76443         * modules/strerror (Depends-on): Add string.
76444         (configure.ac): Detect use of module.
76445         * tests/test-strerror.c: New file.
76446         * modules/strerror-tests: New test module.
76447         * modules/argp (Depends-on): Add strerror.
76448         * modules/error (Depends-on): Likewise.
76449         Reported by Martin Koeppe.
76451 2007-09-24  Bruno Haible  <bruno@clisp.org>
76453         * README: Update git instructions.
76455 2007-09-24  Eric Blake  <ebb9@byu.net>
76457         Revert fpending breakage from 2007-09-08.
76458         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
76459         __fpending.c.
76461 2007-09-24  Jim Meyering  <jim@meyering.net>
76463         filenamecat.c: Add a test.
76464         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
76465         showing how the function works when DIR is the empty string.
76467 2007-09-21  Simon Josefsson  <simon@josefsson.org>
76469         * tests/test-canonicalize.sh: Turn on executable bit.
76471 2007-09-19  Eric Blake  <ebb9@byu.net>
76473         * README: Update CVS instructions.
76475 2007-09-18  Bruno Haible  <bruno@clisp.org>
76477         * modules/areadlink: New file.
76478         * lib/areadlink.h (areadlink): New declaration.
76479         * lib/areadlink.c: New file, based on lib/xreadlink.c.
76481 2007-09-17  Jim Meyering  <jim@meyering.net>
76483         * lib/savewd.c (ESTALE) [!defined]: Define.
76484         Reported to be required on Interix by Martin Koeppe.
76486 2007-09-17  Bruno Haible  <bruno@clisp.org>
76488         * gnulib-tool (func_version): Use $version.
76490 2007-09-16  Bruno Haible  <bruno@clisp.org>
76492         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
76493         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
76494         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
76495         Reported by Greg Schafer <gschafer@zip.com.au>.
76497 2007-09-15  Bruno Haible  <bruno@clisp.org>
76499         * gnulib-tool (sed): Try a little harder to make bash understand the
76500         alias.
76501         Reported by Bruce Korb <bruce.korb@gmail.com>.
76503 2007-09-13  Eric Blake  <ebb9@byu.net>
76505         * ChangeLog: Remove conflict markers.
76507 2007-09-13  Simon Josefsson  <simon@josefsson.org>
76509         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
76510         Reported by Bruno Haible <bruno@clisp.org>.
76512 2007-09-12  Bruno Haible  <bruno@clisp.org>
76514         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
76515         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
76516         is not defined.
76518 2007-09-12  Eric Blake  <ebb9@byu.net>
76520         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
76521         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
76522         Autoconf definition.
76523         * modules/euidaccess (Depends-on): Add extensions, for
76524         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
76525         * modules/fnmatch (Depends-on): Likewise.
76526         * modules/getaddrinfo (Depends-on): Likewise.
76527         * modules/getdelim (Depends-on): Likewise.
76528         * modules/getline (Depends-on): Likewise.
76529         * modules/getsubopt (Depends-on): Likewise.
76530         * modules/gettext (Depends-on): Likewise.
76531         * modules/group-member (Depends-on): Likewise.
76532         * modules/mbchar (Depends-on): Likewise.
76533         * modules/memmem (Depends-on): Likewise.
76534         * modules/mempcpy (Depends-on): Likewise.
76535         * modules/memrchr (Depends-on): Likewise.
76536         * modules/pagealign_alloc (Depends-on): Likewise.
76537         * modules/readutmp (Depends-on): Likewise.
76538         * modules/stpcpy (Depends-on): Likewise.
76539         * modules/stpncpy (Depends-on): Likewise.
76540         * modules/strchrnul (Depends-on): Likewise.
76541         * modules/strndup (Depends-on): Likewise.
76542         * modules/strsep (Depends-on): Likewise.
76543         * modules/strverscmp (Depends-on): Likewise.
76544         * modules/vasprintf (Depends-on): Likewise.
76545         * modules/wcwidth (Depends-on): Likewise.
76546         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
76547         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
76548         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
76549         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
76550         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
76551         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
76552         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
76553         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
76554         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
76555         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
76556         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
76557         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
76558         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
76559         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
76560         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
76561         * m4/readutmp.m4 (gl_READUTMP): Likewise.
76562         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
76563         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
76564         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
76565         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
76566         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
76567         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
76568         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
76569         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
76570         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
76571         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
76572         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
76573         so that lock.m4 can be used in gettext without extensions module.
76575 2007-09-11  Bruno Haible  <bruno@clisp.org>
76577         * m4/isc-posix.m4: Remove file.
76578         Suggested by Eric Blake.
76580 2007-09-11  Eric Blake  <ebb9@byu.net>
76582         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
76584 2007-09-10  Bruno Haible  <bruno@clisp.org>
76586         * posix-modules: Fix typo in error message.
76587         Reported by Matt <mkraai@beckman.com>.
76589 2007-09-09  Bruno Haible  <bruno@clisp.org>
76591         * doc/functions/getdelim.texi: Update list of platforms lacking the
76592         function.
76593         * doc/functions/getline.texi: Likewise.
76595 2007-09-09  Jim Meyering  <jim@meyering.net>
76597         * lib/hash.c (hash_initialize): Detect calloc failure.
76598         Reported by Bruno Haible.
76600 2007-09-09  Bruno Haible  <bruno@clisp.org>
76602         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
76603         malloc or realloc fails.
76605 2007-09-09  Bruno Haible  <bruno@clisp.org>
76607         * modules/getcwd (Depends-on): Add malloc-posix.
76608         * modules/glob (Depends-on): Likewise.
76609         * modules/putenv (Depends-on): Likewise.
76610         * modules/strdup (Depends-on): Likewise.
76611         * modules/getdelim (Depends-on): Add realloc-posix.
76612         * modules/read-file (Depends-on): Likewise.
76614 2007-09-09  Bruno Haible  <bruno@clisp.org>
76616         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
76617         (gl_FUNC_MALLOC_POSIX): Require it.
76618         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
76619         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
76620         * modules/realloc (Files): Add m4/malloc.m4.
76621         * modules/calloc (Files): Likewise.
76623 2007-09-09  Bruno Haible  <bruno@clisp.org>
76625         * modules/malloc-posix: New file.
76626         * modules/malloc (Depends-on): Add malloc-posix.
76627         * lib/malloc.c: Include errno.h.
76628         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
76629         and a POSIX-compatible malloc into a single function. Set ENOMEM
76630         when returning NULL.
76631         * m4/malloc.m4: New file.
76632         * doc/functions/malloc.texi: Mention the malloc-posix module.
76633         * lib/stdlib_.h (malloc): New declaration.
76634         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
76635         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
76636         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
76637         and HAVE_MALLOC_POSIX.
76639 2007-09-09  Bruno Haible  <bruno@clisp.org>
76641         * modules/realloc-posix: New file.
76642         * modules/realloc (Depends-on): Add realloc-posix.
76643         * lib/realloc.c: Include errno.h.
76644         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
76645         and a POSIX-compatible realloc into a single function. Set ENOMEM
76646         when returning NULL.
76647         * m4/realloc.m4: New file.
76648         * doc/functions/realloc.texi: Mention the realloc-posix module.
76649         * lib/stdlib_.h (realloc): New declaration.
76650         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
76651         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
76652         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
76653         and HAVE_REALLOC_POSIX.
76655 2007-09-09  Bruno Haible  <bruno@clisp.org>
76657         * modules/calloc-posix: New file.
76658         * modules/calloc (Depends-on): Add calloc-posix.
76659         * lib/calloc.c: Include errno.h.
76660         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
76661         and a POSIX-compatible calloc into a single function. Set ENOMEM
76662         when returning NULL.
76663         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
76664         * doc/functions/calloc.texi: Mention the calloc-posix module.
76665         * lib/stdlib_.h (calloc): New declaration.
76666         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
76667         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
76668         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
76669         and HAVE_CALLOC_POSIX.
76671 2007-09-09  Bruno Haible  <bruno@clisp.org>
76673         Allow for modules to show an arbitrary notice.
76674         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
76675         * gnulib-tool: New option --extract-notice.
76676         (func_usage): Document it.
76677         (sed_extract_prog): Update.
76678         (func_get_notice): New function.
76679         (func_modules_notice): New function.
76680         (func_import, func_create_testdir): Invoke it.
76681         Suggested by Jim Meyering.
76683 2007-09-09  Bruno Haible  <bruno@clisp.org>
76685         * gnulib-tool: New options --verbose, --quiet.
76686         (func_usage): Document them.
76687         (verbose): New variable.
76688         (func_execute_command): New function.
76689         (func_import): Don't show the module list and the file list if
76690         $verbose < 0.
76691         (func_create_testdir): Likewise. Use func_execute_command.
76692         (func_create_megatestdir): Use func_execute_command.
76694 2007-09-08  Bruno Haible  <bruno@clisp.org>
76696         * gnulib-tool (func_import): Prefer rsync over wget when available,
76697         for fetching the PO files.
76699 2007-09-08  Bruno Haible  <bruno@clisp.org>
76701         * posix-modules: New file. Portions copied from gnulib-tool.
76702         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
76704 2007-09-08  Jim Meyering  <jim@meyering.net>
76706         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
76707         * lib/fpending.h: Rename from __fpending.h.
76708         * lib/fpending.c: Rename from __fpending.c.
76709         Include "fpending.h", not "__fpending.h".
76710         * lib/__fpending.h, lib/__fpending.c: Remove files.
76711         * modules/fpending (Files): Reflect new file names.
76712         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
76714 2007-09-08  Bruno Haible  <bruno@clisp.org>
76716         * m4/inttypes-h.m4: Remove stub file.
76718 2007-09-07  Simon Josefsson  <simon@josefsson.org>
76720         * doc/headers/stdint.texi: Discuss #include_next issue.
76722 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
76724         * build-aux/bootstrap: Remove obsolete comment about wget --help.
76726 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76728         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
76729         in variable name.
76731 2007-09-03  Jim Meyering  <jim@meyering.net>
76733         New module: git-version-gen.
76734         * modules/git-version-gen: New file.
76736         Import changes from coreutils for bootstrap script.
76738         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
76740         bootstrap: uses rsync to download the .po files
76741         * build-aux/bootstrap (po_download_command_format): New global.
76742         (download_po_files): Use rsync.
76743         (update_po_files): Don't remove .po files after download,
76744         so future rsync runs can take advantage of the copies.
76746         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
76748         Solve the unnecessary-.po-file-regeneration problem once and for all.
76749         * build-aux/bootstrap (download_po_files): New function, renamed from
76750         get_translations.  Now, downloads, but doesn't update LINGUAS.
76751         (update_po_files): New function.
76753         bootstrap: Ignore more.
76754         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
76755         uniwidth to e.g., lib/.gitignore.
76756         (slurp): Handle the sys_stat_.h -> sys mapping, too.
76758         * build-aux/bootstrap: New setting: vc_ignore.
76759         (insert_sorted_if_absent): Create $file if absent.
76760         Adapt to new, possibly empty, list: $vc_ignore.
76762         bootstrap: generate more ignorable names
76763         * build-aux/bootstrap (slurp): When generating ignorable names,
76764         also map .sin to .sed, .gperf to .c, and .y to .c.
76766 2007-09-03  Jim Meyering  <jim@meyering.net>
76768         * build-aux/git-version-gen: New file, from coreutils.  For details, see
76769         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
76771 2007-09-02  Bruno Haible  <bruno@clisp.org>
76773         Fix mis-recognition of 'mcs' on QNX 6.
76774         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
76775         output contains the string "Mono".
76776         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
76777         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
76779 2007-09-01  Bruno Haible  <bruno@clisp.org>
76781         Fix collision between uniwidth/* and linebreak modules.
76782         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
76783         u32_width): Remove declarations.
76784         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
76785         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
76786         streq3, streq2, streq1, streq0): Remove functions.
76787         (STREQ): Remove macro.
76788         (is_cjk_encoding): Remove function.
76789         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
76790         (uc_width, u8_width, u16_width, u32_width): Remove functions.
76791         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
76792         * NEWS: Document the change.
76794 2007-09-01  Bruno Haible  <bruno@clisp.org>
76796         * lib/streq.h: Add double-inclusion guard.
76798 2007-09-01  Karl Berry  <karl@gnu.org>
76800         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
76802 2007-08-28  Jim Meyering  <jim@meyering.net>
76804         Rename mreadlink_with_size to areadlink_with_size.
76805         * NEWS: Document the change.
76806         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
76807         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
76808         * lib/mreadlink.h: Rename this to...
76809         * lib/areadlink.h: ...this.
76810         * modules/mreadlink-with-size: Rename this to...
76811         * modules/areadlink-with-size: ...this.
76812         * lib/canonicalize.c: Reflect the renaming.
76813         * modules/canonicalize: Likewise.
76815 2007-08-26  Bruno Haible  <bruno@clisp.org>
76817         * gnulib-tool (func_import): When deciding which files to remove,
76818         consider also dangling symbolic links.
76819         Reported by Eric Blake.
76821 2007-08-26  Bruno Haible  <bruno@clisp.org>
76823         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
76825 2007-08-23  Simon Josefsson  <simon@josefsson.org>
76827         * lib/readline.c: Don't include getline.h, the prototype is now
76828         found in stdio.h.
76830 2007-08-23  Jim Meyering  <jim@meyering.net>
76832         Getdelim touchup.
76833         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
76834         around the funlockfile call, since funlockfile never sets errno.
76835         Don't set errno upon failed realloc.
76837 2007-08-22  Eric Blake  <ebb9@byu.net>
76839         Getline touchups.
76840         * lib/getdelim.c (getdelim): Revert regression that required *n to
76841         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
76842         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
76843         getdelim, rather than whether implementation is missing.
76844         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
76845         * lib/stdio_.h (getline): Also declare if replacement is
76846         required.
76847         * doc/functions/getdelim.texi: New file.
76848         * doc/functions/getline.texi: Likewise.
76849         * doc/gnulib.texi (Function Substitutes): Add new files.
76850         Reported by Bruno Haible.
76852 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
76854         * users.txt: Add Guile.
76856 2007-08-22  Eric Blake  <ebb9@byu.net>
76858         * tests/test-getdelim.c (main): Use remove, not unlink.
76859         * tests/test-getline.c (main): Likewise.
76861         Move getline and getdelim into stdio.h, per POSIX 200x.
76862         * modules/getline (Files): Remove getline.h.
76863         (Depends-on): Add stdio.
76864         (configure.ac): Add module indicator.
76865         * modules/getdelim (Files): Remove getdelim.h.
76866         (Depends-on): Add stdio.
76867         (configure.ac): Add module indicator.
76868         * modules/stdio (Makefile.am): Work with new indicators.
76869         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
76870         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
76871         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
76872         * lib/getdelim.h: Delete.
76873         * lib/getline.h: Delete.
76874         * lib/stdio_.h (getdelim, getline): Declare.
76875         * modules/getdelim-tests: New module.
76876         * modules/getline-tests: Likewise.
76877         * tests/test-getdelim.c: New file.
76878         * tests/test-getline.c: Likewise.
76879         * NEWS: Document the change.
76880         * lib/getline.c: Update choice of header.
76881         * lib/csharpcomp.c: Likewise.
76882         * lib/getpass.c: Likewise.
76883         * lib/javacomp.c: Likewise.
76884         * lib/javaversion.c: Likewise.
76885         * lib/yesno.c: Likewise.
76886         * lib/getdelim.c: Likewise.
76887         (getdelim): Set errno on failure, and avoid memory leak.
76889 2007-08-19  Bruno Haible  <bruno@clisp.org>
76891         * modules/closein (Depends-on): Add freadahead.
76892         * lib/closein.c: Include freadahead.h.
76893         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
76894         is zero.
76896 2007-08-19  Bruno Haible  <bruno@clisp.org>
76898         * modules/freadahead-tests: New file.
76899         * tests/test-freadahead.sh: New file.
76900         * tests/test-freadahead.c: New file.
76902         * modules/freadahead: New file.
76903         * lib/freadahead.h: New file.
76904         * lib/freadahead.c: New file.
76905         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
76906         fbufmode, fpurge, freadable, fwritable.
76908 2007-08-19  Eric Blake  <ebb9@byu.net>
76910         Test yesno in combination with closein.
76911         * lib/yesno.c (yesno): Document use of stdin.
76912         * modules/yesno-tests (Files): New module.
76913         * tests/test-yesno.c (main): New file.
76914         * tests/test-yesno.sh: Likewise.
76916 2007-08-19  Bruno Haible  <bruno@clisp.org>
76918         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
76919         * lib/fseeko.c (rpl_fseeko): Likewise.
76920         * lib/fseterr.c (fseterr): Likewise.
76922 2007-08-19  Bruno Haible  <bruno@clisp.org>
76924         * tests/test-lseek.c (main): Disable a test for BeOS.
76925         * doc/functions/lseek.texi: Document the BeOS bug.
76927 2007-08-19  Bruno Haible  <bruno@clisp.org>
76928             Eric Blake  <ebb9@byu.net>
76930         * lib/lseek.c: Include <sys/stat.h>.
76931         (rpl_lseek): Add workaround code also for Unix platforms.
76932         Needed for BeOS.
76933         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
76934         * doc/functions/lseek.texi: Document BeOS definiency.
76936 2007-08-18  Bruno Haible  <bruno@clisp.org>
76938         * modules/fstrcmp-tests: New file.
76939         * tests/test-fstrcmp.c: New file.
76941 2007-08-18  Bruno Haible  <bruno@clisp.org>
76943         * modules/fstrcmp: New file, from GNU gettext with modifications.
76944         * lib/fstrcmp.h: New file, from GNU gettext.
76945         * lib/fstrcmp.c: New file, from GNU gettext.
76946         * MODULES.html.sh (String handling): Add fstrcmp.
76948 2007-08-18  Bruno Haible  <bruno@clisp.org>
76950         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
76951         'bool'.
76952         (diag, compareseq): Remove const from the ctxt argument.
76953         (USE_HEURISTIC): Undefine at the end.
76955 2007-08-18  Jim Meyering  <jim@meyering.net>
76957         New file: lib/idcache.h
76958         * NEWS: Mention the addition.
76959         * modules/idcache (Files): Add lib/idcache.h
76960         * lib/idcache.c: Include "idcache.h".
76961         Don't include <sys/types.h>.
76962         Add a FIXME comment.
76963         Move file-scoped "static" declarations to the top.
76964         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
76966 2007-08-17  Bruno Haible  <bruno@clisp.org>
76967         and Paul Eggert  <eggert@cs.ucla.edu>
76969         * MODULES.html.sh: Add diffseq.
76970         * modules/diffseq: New file.
76971         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
76972         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
76974 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76976         Import changes from coreutils for bootstrap script.
76978         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
76980         * build-aux/bootstrap (slurp): Work even in environments where
76981         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
76982         current code does not slurp files whose names start with ".", and
76983         this looks like it might be a troublesome area.
76985         2007-07-11  Jim Meyering  <jim@meyering.net>
76987         If there's a GPL vN copyright comment, require that N == 3.
76989         2007-07-08  Jim Meyering  <jim@meyering.net>
76991         Run the coreutils-specific code only if tests/Makefile.am.in exists.
76992         * build-aux/bootstrap (mam_template): Move definition out of loop.
76994         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
76996         * build-aux/bootstrap (symlink_to_dir): Rename function from
76997         symlink_to_gnulib.  Add a directory parameter.  Update all
76998         callers.
76999         (cp_mark_as_generated): Also check for -- and link to -- files in
77000         gl/.
77002         2007-07-08  Jim Meyering  <jim@meyering.net>
77004         Adapt to deeper hierarchy in gnulib.
77005         * build-aux/bootstrap (symlink_to_dir): If the destination
77006         directory doesn't exist, create it. This is required at least for
77007         "lib/uniwidth/cjk.h".
77009         2007-05-15  Jim Meyering  <jim@meyering.net>
77011         * build-aux/bootstrap: Now that generated Makefile.am files
77012         are no longer under version control, they must be created at
77013         bootstrap time.
77015 2007-08-14  Ben Pfaff  <blp@gnu.org>
77017         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
77019 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
77021         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
77022         given the changes below.
77023         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
77024         even on hosts that have padding bits beyond the supported 64.
77026 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
77028         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
77029         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
77030         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
77031         depends on it.
77032         (xstrtol_error): Remove.
77033         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
77034         but with a different signature.
77035         (ATTRIBUTE_NORETURN, __attribute__): New macros.
77036         * lib/xstrtol-error.c: Include exitfail.h.
77037         (xstrtol_fatal): New function, with a different signature from the
77038         old xstrtol_error, so that the caller need not worry about passing
77039         in an exit status, or about storage management of the option argument.
77040         (xstrtol_error): Now a static function.  Redo signature to
77041         implement xstrtol_fatal.  Output the correct number of hyphens in
77042         front of the option so that the caller need not worry about
77043         storage management.
77044         (N_): New macro.
77045         (_): Remove; not used now.
77046         * modules/xstrtol: Depend on getopt.
77047         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
77048         of old STRTOL_FATAL_ERROR macro.
77049         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
77050         of test program.
77051         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
77052         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
77054 2007-08-08  Eric Blake  <ebb9@byu.net>
77056         * lib/xstrtol-error.c: Add missing include.
77058         Move xstrtol messages into gnulib domain, when --pobase is used.
77059         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
77060         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
77061         * modules/xstrtol (Files): Distribute new file.
77062         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
77063         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
77064         * tests/test-xstrtol.c: ...into new file.
77065         * tests/test-xstrtoul.c: Also test xstrtoul.
77066         * tests/test-xstrtoimax.c: Also test xstrtoimax.
77067         * tests/test-xstrtoumax.c: Also test xstrtoumax.
77068         * tests/test-xstrtol.sh: Drive the tests.
77069         * tests/test-xstrtoimax.sh: Likewise.
77070         * tests/test-xstrtoumax.sh: Likewise.
77071         * modules/xstrtol-tests: New module.
77072         * modules/xstrtoimax-tests: Likewise.
77073         * modules/xstrtoumax-tests: Likewise.
77075 2007-08-08  Jim Meyering  <jim@meyering.net>
77077         New function: mfile_name_concat.
77078         * lib/filenamecat.c (mfile_name_concat): New function, just like
77079         file_name_concat, but return NULL upon failure rather than exiting
77080         with a diagnostic.
77081         * lib/filenamecat.h: Declare it.
77083 2007-08-07  Bruno Haible  <bruno@clisp.org>
77085         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
77086         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
77087         warning from gcc.
77088         Reported by Eric Blake.
77090 2007-08-07  Simon Josefsson  <simon@josefsson.org>
77092         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
77093         * modules/crypto/arcfour (License): Likewise.
77094         * modules/crypto/des-tests (License): Likewise.
77095         * modules/crypto/gc-arctwo-tests (License): Likewise.
77096         * modules/crypto/gc-des-tests (License): Likewise.
77097         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
77098         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
77099         * modules/crypto/gc-md2-tests (License): Likewise.
77100         * modules/crypto/gc-md4-tests (License): Likewise.
77101         * modules/crypto/gc-md5-tests (License): Likewise.
77102         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
77103         * modules/crypto/gc-rijndael-tests (License): Likewise.
77104         * modules/crypto/gc-sha1-tests (License): Likewise.
77105         * modules/crypto/gc-tests (License): Likewise.
77106         * modules/crypto/hmac-md5 (License): Likewise.
77107         * modules/crypto/hmac-sha1 (License): Likewise.
77108         * modules/crypto/md2-tests (License): Likewise.
77109         * modules/crypto/md4-tests (License): Likewise.
77110         * modules/crypto/md5 (License): Likewise.
77111         * modules/crypto/rijndael (License): Likewise.
77112         * modules/crypto/sha1 (License): Likewise.
77113         * modules/memxor (License): Likewise.
77115 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
77116         and Bruno Haible  <bruno@clisp.org>
77118         * NEWS: Describe interface changes to human, xstrtol.
77119         * lib/human.h: Include <xstrtol.h>.
77120         (human_options): Return enum strtol_error, not int.  Remove
77121         bool arg; take int * instead.
77122         * lib/human.c: Don't include "gettext.h".
77123         (_): Remove; no longer used.
77124         Don't include <xstrtol.h>, since human.h does it.
77125         (human_options): Adjust to abovementioned interface changes.
77126         Do not report error to stderr; that's now the caller's
77127         responsibility.
77128         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
77129         interface change.
77130         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
77131         Str, Argument_type_string.  All uses changed.  Put " argument"
77132         in diagnostics to make them clearer.  Change wording of suffix
77133         message for clarity.
77134         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
77135         Argument_type_string.
77136         (STRTOL_FATAL_WARN): Remove; no longer used.
77137         * modules/human (Depends-on): Remove gettext-h.
77139 2007-08-06  Simon Josefsson  <simon@josefsson.org>
77141         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
77143 2007-07-31  Bruno Haible  <bruno@clisp.org>
77145         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
77146         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
77147         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
77149 2007-07-31  Bruno Haible  <bruno@clisp.org>
77151         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
77152         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
77154 2007-07-30  Bruno Haible  <bruno@clisp.org>
77156         * modules/base64 (License): Use the synonymous term "LGPLv2+".
77157         * modules/c-ctype (License): Likewise.
77158         * modules/c-strcase (License): Likewise.
77159         * modules/check-version (License): Likewise.
77160         * modules/iconv (License): Likewise.
77161         * modules/iconv_open (License): Likewise.
77162         * modules/read-file (License): Likewise.
77163         * modules/striconv (License): Likewise.
77164         * modules/strverscmp (License): Likewise.
77165         * modules/vasprintf (License): Likewise.
77166         * modules/crypto/des (License): Likewise.
77167         * modules/crypto/gc (License): Likewise.
77168         * modules/crypto/gc-arcfour (License): Likewise.
77169         * modules/crypto/gc-arctwo (License): Likewise.
77170         * modules/crypto/gc-des (License): Likewise.
77171         * modules/crypto/gc-hmac-md5 (License): Likewise.
77172         * modules/crypto/gc-hmac-sha1 (License): Likewise.
77173         * modules/crypto/gc-md2 (License): Likewise.
77174         * modules/crypto/gc-md4 (License): Likewise.
77175         * modules/crypto/gc-md5 (License): Likewise.
77176         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
77177         * modules/crypto/gc-random (License): Likewise.
77178         * modules/crypto/gc-rijndael (License): Likewise.
77179         * modules/crypto/gc-sha1 (License): Likewise.
77180         * modules/crypto/md2 (License): Likewise.
77181         * modules/crypto/md4 (License): Likewise.
77183 2007-07-30  Jim Meyering  <jim@meyering.net>
77185         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
77186         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
77187         it has valid stat data.  This bug would cause du not to count the
77188         sizes of inaccessible directories.
77189         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
77190         in <http://bugzilla.redhat.com/250077>.
77192 2007-07-25  Peter O'Gorman  <peter@pogma.com>
77193             Bruno Haible  <bruno@clisp.org>
77195         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
77196         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
77197         #include_next, gives a diagnostic about it, but reports no error in
77198         the exit code.
77199         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
77201 2007-07-24  Ben Pfaff  <blp@gnu.org>
77203         Improve name: "count-one-bits" is better than "popcount".
77204         * MODULES.html.sh: Update name.
77205         * lib/popcount.h: Renamed lib/count-one-bits.h.
77206         (popcount): Renamed count_one_bits.
77207         (popcountl): Renamed count_one_bits_l.
77208         (popcountll): Renamed count_one_bits_ll.
77209         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
77210         * modules/popcount: Renamed module/count-one-bits.
77211         * modules/popcount-tests: Renamed module/count-one-bits-tests.
77212         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
77214 2007-07-23  Ben Pfaff  <blp@gnu.org>
77216         * lib/popcount.h (popcount32): Reduce size of constants, to allow
77217         better code generation, and add U to large constants to avoid
77218         warnings, in non-GCC case.
77219         Suggested by Bruno Haible.
77221 2007-07-23  Ben Pfaff  <blp@gnu.org>
77223         * lib/popcount.h: Use verify_true instead of if...abort.
77224         * modules/popcount: Depend on verify module.
77225         Suggested by Jim Meyering.
77227 2007-07-23  Bruno Haible  <bruno@clisp.org>
77229         * gnulib-tool (func_import): Create a .cvsignore file also when the
77230         directory is not yet in CVS but the toplevel directory is. When
77231         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
77232         Reported by Karl Berry.
77234 2007-07-22  Ben Pfaff  <blp@gnu.org>
77236         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
77237         case.
77238         Suggested by Eric Blake.
77240 2007-07-22  Ben Pfaff  <blp@gnu.org>
77242         New module: popcount.
77243         * MODULES.html.sh: Add popcount.
77244         * modules/popcount: New file.
77245         * modules/popcount-tests: New file.
77246         * tests/test-popcount.c: New file.
77247         * lib/popcount.h: New file.
77248         * m4/popcount.m4: New file.
77250 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
77252         * build-aux/announce-gen: Update to GPLv3.
77254         * build-aux/config.guess: Update from config.
77256 2007-07-21  Bruno Haible  <bruno@clisp.org>
77258         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
77259         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
77261 2007-07-20  Jim Meyering  <jim@meyering.net>
77263         * check-module: Diagnose a self-dependency.
77265 2007-07-19  Bruno Haible  <bruno@clisp.org>
77267         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
77268         empty.
77269         Reported by Eric Blake.
77271 2007-07-18  Bruno Haible  <bruno@clisp.org>
77273         * gnulib-tool: New options --po-base, --po-domain.
77274         (func_usage): Document them.
77275         (pobase, po_domain): New variables.
77276         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
77277         DEFAULT_TEXT_DOMAIN.
77278         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
77279         (func_import): Consider pobase and po_domain. Create a po/ directory.
77280         (func_create_testdir): Set pobase and po_domain to empty.
77281         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
77282         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
77284 2007-07-18  Bruno Haible  <bruno@clisp.org>
77286         * gnulib-tool (func_get_automake_snippet): Synthesize also an
77287         EXTRA_DIST augmentation for files in build-aux/.
77289 2007-07-16  Bruno Haible  <bruno@clisp.org>
77291         * modules/lseek (License): Use the synonymous term "LGPLv2+".
77292         * modules/getdelim (License): Likewise.
77294 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77296         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
77297         * modules/d-type (License): Likewise.
77298         * modules/extensions (License): Likewise.
77299         * modules/fnmatch (License): Likewise.
77300         * modules/fseeko (License): Likewise.
77301         * modules/getaddrinfo (License): Likewise.
77302         * modules/getline (License): Likewise.
77303         * modules/getlogin_r (License): Likewise.
77304         * modules/getpass (License): Likewise.
77305         * modules/gettimeofday (License): Likewise.
77306         * modules/glob (License): Likewise.
77307         * modules/inet_ntop (License): Likewise.
77308         * modules/malloc (License): Likewise.
77309         * modules/malloca (License): Likewise.
77310         * modules/memmem (License): Likewise.
77311         * modules/mempcpy (License): Likewise.
77312         * modules/memset (License): Likewise.
77313         * modules/minmax (License): Likewise.
77314         * modules/mktime (License): Likewise.
77315         * modules/netinet_in (License): Likewise.
77316         * modules/pathmax (License): Likewise.
77317         * modules/poll (License): Likewise.
77318         * modules/regex (License): Likewise.
77319         * modules/snprintf (License): Likewise.
77320         * modules/stdbool (License): Likewise.
77321         * modules/stdint (License): Likewise.
77322         * modules/stdio (License): Likewise.
77323         * modules/strcase (License): Likewise.
77324         * modules/strcasestr (License): Likewise.
77325         * modules/strdup (License): Likewise.
77326         * modules/string (License): Likewise.
77327         * modules/strndup (License): Likewise.
77328         * modules/strnlen (License): Likewise.
77329         * modules/strpbrk (License): Likewise.
77330         * modules/strptime (License): Likewise.
77331         * modules/strsep (License): Likewise.
77332         * modules/sys_select (License): Likewise.
77333         * modules/sys_socket (License): Likewise.
77334         * modules/sys_stat (License): Likewise.
77335         * modules/sys_time (License): Likewise.
77336         * modules/time (License): Likewise.
77337         * modules/time_r (License): Likewise.
77338         * modules/timegm (License): Likewise.
77339         * modules/unistd (License): Likewise.
77340         * modules/vsnprintf (License): Likewise.
77341         * modules/wctype (License): Likewise.
77343 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77345         * modules/argz (License): LGPLv2+.
77347 2007-07-15  Karl Berry  <karl@gnu.org>
77349         * doc/gnulib.texi: revise node structure per new fdl.texi.
77351 2007-07-14  Bruno Haible  <bruno@clisp.org>
77353         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
77354         the output file.
77355         * lib/uniname/uninames.h: Regenerated.
77357 2007-07-14  Karl Berry  <karl@gnu.org>
77359         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
77360         omitting sectioning and index commands.
77362 2007-07-13  Bruno Haible  <bruno@clisp.org>
77364         New gnulib-tool option --more-symlinks.
77365         * gnulib-tool (func_usage): Document --more-symlinks.
77366         (do_copyrights): New variable.
77367         Recognize option --more-symlinks.
77368         (func_import): Don't add a copyright notice transform to
77369         sed_transform_lib_file if do_copyrights is empty.
77371 2007-07-13  Bruno Haible  <bruno@clisp.org>
77373         * lib/vasnprintf.c (decimal_point_char): Define also if
77374         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
77375         && !NEED_PRINTF_DIRECTIVE_A.
77376         Reported by Clemens Koller <clemens.koller@anagramm.de> via
77377         Gary V. Vaughan <gary@gnu.org>.
77379 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
77381         * lib/inttypes_.h: Undo previous change, since it was fixed
77382         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
77384 2007-07-13  Bruno Haible  <bruno@clisp.org>
77386         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
77387         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
77389 2007-07-13  Jim Meyering  <jim@meyering.net>
77391         df: Don't fail for Tru64's "file-on-file mount".
77392         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
77393         so we fall through and use statfs instead.  Details here:
77394         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
77395         Reported by Albert Chin.
77397 2007-07-13  Bruno Haible  <bruno@clisp.org>
77399         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
77400         * modules/configmake (License): Likewise.
77401         * modules/gettext (License): Likewise.
77402         * modules/gettext-h (License): Likewise.
77403         * modules/include_next (License): Likewise.
77404         * modules/link-warning (License): Likewise.
77405         * modules/localcharset (License): Likewise.
77406         * modules/localename (License): Likewise.
77407         * modules/lock (License): Likewise.
77408         * modules/relocatable-lib-lgpl (License): Likewise.
77409         * modules/size_max (License): Likewise.
77410         * modules/vasnprintf (License): Likewise.
77411         * modules/wchar (License): Likewise.
77412         * modules/xsize (License): Likewise.
77414 2007-07-13  Bruno Haible  <bruno@clisp.org>
77416         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
77417         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
77419 2007-07-12  Bruno Haible  <bruno@clisp.org>
77421         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
77422         in the modules files.
77424 2007-07-11  Karl Berry  <karl@gnu.org>
77426         * MODULES.html.sh (func_module): use
77427          sed -e '\|^'"${includefile}"'$|d'
77428          instead of /.../d, to avoid errors on $includefile's containing /.
77430 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
77432         * gnulib-tool (func_import): Avoid duplication of --avoid
77433         statements
77434         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
77435         names to `_' in variable names.
77437 2007-07-10  Eric Blake  <ebb9@byu.net>
77439         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
77440         * NEWS: Document this change.
77442 2007-07-08  Bruno Haible  <bruno@clisp.org>
77444         Update to Unicode 5.0.
77445         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
77446         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
77447         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
77448         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
77449         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
77450         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
77451         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
77452         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
77453         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
77454         U+10A3F, U+1D242..U+1D244.
77455         (nonspacing_table_ind): Update.
77456         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
77457         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
77459 2007-07-08  Bruno Haible  <bruno@clisp.org>
77461         Update to Unicode 5.0.
77462         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
77463         code transform. Extend the name index field of unicode_name_to_code and
77464         unicode_code_to_name from 16 to 24 bits.
77465         * lib/uniname/uniname.c (unicode_character_name,
77466         unicode_name_character): Add the range 0x12xxx to the code transform.
77467         * lib/uniname/uninames.h: Regenerated.
77468         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
77470 2007-07-07  Bruno Haible  <bruno@clisp.org>
77472         * modules/wcwidth-tests: New file.
77473         * tests/test-wcwidth.c: New file.
77475         Work around MacOS X wcwidth() bug.
77476         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
77477         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
77478         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
77479         original wcwidth in non-UTF-8 locales.
77480         * modules/wcwidth (Depends-on): Add localcharset, streq,
77481         uniwidth/width.
77482         * doc/functions/wcwidth.texi: Update.
77484 2007-07-07  Bruno Haible  <bruno@clisp.org>
77486         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
77487         (wcwidth): New declaration.
77488         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
77489         macros.
77490         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
77491         here. Prepare for creating <wchar.h> unconditionally.
77492         * modules/wchar (Depends-on): Add link-warning.
77493         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
77494         REPLACE_WCWIDTH, and GL_LINK_WARNING.
77495         * lib/wcwidth.h: Remove file.
77496         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
77497         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
77498         * modules/wcwidth (Files): Remove lib/wcwidth.h.
77499         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
77500         (Include): Replace wcwidth.h with <wchar.h>.
77501         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
77502         * lib/mbchar.h: Don't include wcwidth.h.
77503         * lib/mbswidth.c: Likewise.
77504         * NEWS: Mention the change.
77506 2007-07-07  Bruno Haible  <bruno@clisp.org>
77508         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
77509         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
77510         definition with an external declaration.
77511         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
77512         defined as a function. Remove AC_C_INLINE requirement.
77513         * modules/wcwidth (Files): Add lib/wcwidth.c.
77514         (Makefile.am): Remove redundant statement.
77516 2007-07-07  Bruno Haible  <bruno@clisp.org>
77518         * MODULES.html.sh (Unicode string functions): Add the new modules.
77520         * tests/uniwidth/test-u32-strwidth.c: New file.
77521         * modules/uniwidth/u32-strwidth-tests: New file.
77523         * lib/uniwidth/u32-strwidth.c: New file.
77524         * modules/uniwidth/u32-strwidth: New file.
77526         * tests/uniwidth/test-u16-strwidth.c: New file.
77527         * modules/uniwidth/u16-strwidth-tests: New file.
77529         * lib/uniwidth/u16-strwidth.c: New file.
77530         * modules/uniwidth/u16-strwidth: New file.
77532         * tests/uniwidth/test-u8-strwidth.c: New file.
77533         * modules/uniwidth/u8-strwidth-tests: New file.
77535         * lib/uniwidth/u8-strwidth.c: New file.
77536         * modules/uniwidth/u8-strwidth: New file.
77538         * tests/uniwidth/test-u32-width.c: New file.
77539         * modules/uniwidth/u32-width-tests: New file.
77541         * lib/uniwidth/u32-width.c: New file.
77542         * modules/uniwidth/u32-width: New file.
77544         * tests/uniwidth/test-u16-width.c: New file.
77545         * modules/uniwidth/u16-width-tests: New file.
77547         * lib/uniwidth/u16-width.c: New file.
77548         * modules/uniwidth/u16-width: New file.
77550         * tests/uniwidth/test-u8-width.c: New file.
77551         * modules/uniwidth/u8-width-tests: New file.
77553         * lib/uniwidth/u8-width.c: New file.
77554         * modules/uniwidth/u8-width: New file.
77556         * tests/uniwidth/test-uc_width.c: New file.
77557         * modules/uniwidth/width-tests: New file.
77559         * lib/uniwidth/width.c: New file, from GNU libiconv.
77560         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
77561         * modules/uniwidth/width: New file.
77563         * lib/uniwidth.h: New file, from GNU libiconv.
77564         * modules/uniwidth/base: New file.
77566 2007-07-07  Bruno Haible  <bruno@clisp.org>
77568         * lib/uniname.h: New file, from GNU gettext.
77569         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
77570         * lib/uniname/uninames.h: New file, from GNU gettext.
77571         * lib/uniname/uniname.c: New file, from GNU gettext.
77572         * tests/uniname/test-uninames.sh: New file.
77573         * tests/uniname/test-uninames.c: New file, from GNU gettext.
77574         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
77575         * modules/uniname/base: New file.
77576         * modules/uniname/uniname: New file.
77577         * modules/uniname/uniname-tests: New file.
77578         * MODULES.html.sh (Unicode string functions): Add the new modules.
77580 2007-07-06  Bruno Haible  <bruno@clisp.org>
77582         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
77584 2007-07-06  Bruno Haible  <bruno@clisp.org>
77586         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
77587         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
77588         includes <cygwin/sys_time.h> which includes <sys/select.h> which
77589         include <sys/time.h>.
77590         Reported by Eric Blake.
77592 2007-07-06  Eric Blake  <ebb9@byu.net>
77594         Fix testing canonicalize on cygwin.
77595         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
77596         Revert patch from 2007-06-19.
77597         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
77598         canonicalize module is also in use.
77599         * tests/test-canonicalize.c: New file.
77600         * tests/test-canonicalize.sh: Likewise.
77601         * modules/canonicalize-tests: Likewise.
77603 2007-07-06  Jim Meyering  <jim@meyering.net>
77605         * lib/getugroups.c (getugroups): Detect getgrent failure.
77606         Adjust comment to reflect reality: this function may return -1.
77608 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
77610         * build-aux/bootstrap (TP_URL,get_translations): Update to use
77611         the new TP address.
77612         (usage): Fix typo
77613         (gnulib_mk): New variable.
77615 2007-07-05  Jim Meyering  <jim@meyering.net>
77617         Don't let endgrent clobber errno, no matter how improbable.
77618         * lib/getugroups.c (getugroups): Save and restore errno around
77619         endgrent call.
77621         Close the group DB even when failing with 2^31 or more members.
77622         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
77624 2007-07-04  Jim Meyering  <jim@meyering.net>
77626         * lib/getugroups.h: New file.
77627         * lib/getugroups.c: Include "getugroups.h".
77628         Remove uses of "register" keyword.
77629         Move local variable, "cp", down into scope where used.
77630         Give "username" parameter the "const" attribute.
77631         * modules/getugroups (Files): Add lib/getugroups.h
77633 2007-07-04  Karl Berry  <karl@gnu.org>
77635         * MODULES.html.sh (func_all_modules): Complete rename of
77636         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
77638 2007-07-02  Bruno Haible  <bruno@clisp.org>
77640         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
77641         mode, when inttypes.h comes from gnulib.
77642         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
77644 2007-07-02  Simon Josefsson  <simon@josefsson.org>
77646         * NEWS: Mention lgpl module name change.
77648         * modules/lgpl-2.1: Renamed from lgpl.
77650         * NEWS: Mention gpl module name change.
77652         * modules/gpl-3.0: New file, based on gpl-2.0.
77654         * modules/gpl-2.0: Renamed from gpl.
77656         * modules/gpl: Fix filename, doc/gpl.texi is now found at
77657         doc/gpl-2.0.texi.
77659 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
77661         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
77662         #define __STDC_LIMIT_MACROS temporarily while including
77663         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
77664         Problem reported by Joel E. Denny in
77665         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
77667 2007-07-01  Bruno Haible  <bruno@clisp.org>
77669         * lib/unistdio.h: New file.
77670         * lib/unistdio/u-asnprintf.h: New file.
77671         * lib/unistdio/u-asprintf.h: New file.
77672         * lib/unistdio/u-printf-args.c: New file.
77673         * lib/unistdio/u-printf-args.h: New file.
77674         * lib/unistdio/u-printf-parse.h: New file.
77675         * lib/unistdio/u-snprintf.h: New file.
77676         * lib/unistdio/u-sprintf.h: New file.
77677         * lib/unistdio/u-vasprintf.h: New file.
77678         * lib/unistdio/u-vsnprintf.h: New file.
77679         * lib/unistdio/u-vsprintf.h: New file.
77680         * lib/unistdio/ulc-asnprintf.c: New file.
77681         * lib/unistdio/ulc-asprintf.c: New file.
77682         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
77683         * lib/unistdio/ulc-printf-parse.c: New file.
77684         * lib/unistdio/ulc-snprintf.c: New file.
77685         * lib/unistdio/ulc-sprintf.c: New file.
77686         * lib/unistdio/ulc-vasnprintf.c: New file.
77687         * lib/unistdio/ulc-vasprintf.c: New file.
77688         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
77689         * lib/unistdio/ulc-vsnprintf.c: New file.
77690         * lib/unistdio/ulc-vsprintf.c: New file.
77691         * lib/unistdio/u8-asnprintf.c: New file.
77692         * lib/unistdio/u8-asprintf.c: New file.
77693         * lib/unistdio/u8-printf-parse.c: New file.
77694         * lib/unistdio/u8-snprintf.c: New file.
77695         * lib/unistdio/u8-sprintf.c: New file.
77696         * lib/unistdio/u8-vasnprintf.c: New file.
77697         * lib/unistdio/u8-vasprintf.c: New file.
77698         * lib/unistdio/u8-vsnprintf.c: New file.
77699         * lib/unistdio/u8-vsprintf.c: New file.
77700         * lib/unistdio/u8-u8-asnprintf.c: New file.
77701         * lib/unistdio/u8-u8-asprintf.c: New file.
77702         * lib/unistdio/u8-u8-snprintf.c: New file.
77703         * lib/unistdio/u8-u8-sprintf.c: New file.
77704         * lib/unistdio/u8-u8-vasnprintf.c: New file.
77705         * lib/unistdio/u8-u8-vasprintf.c: New file.
77706         * lib/unistdio/u8-u8-vsnprintf.c: New file.
77707         * lib/unistdio/u8-u8-vsprintf.c: New file.
77708         * lib/unistdio/u16-asnprintf.c: New file.
77709         * lib/unistdio/u16-asprintf.c: New file.
77710         * lib/unistdio/u16-printf-parse.c: New file.
77711         * lib/unistdio/u16-snprintf.c: New file.
77712         * lib/unistdio/u16-sprintf.c: New file.
77713         * lib/unistdio/u16-vasnprintf.c: New file.
77714         * lib/unistdio/u16-vasprintf.c: New file.
77715         * lib/unistdio/u16-vsnprintf.c: New file.
77716         * lib/unistdio/u16-vsprintf.c: New file.
77717         * lib/unistdio/u16-u16-asnprintf.c: New file.
77718         * lib/unistdio/u16-u16-asprintf.c: New file.
77719         * lib/unistdio/u16-u16-snprintf.c: New file.
77720         * lib/unistdio/u16-u16-sprintf.c: New file.
77721         * lib/unistdio/u16-u16-vasnprintf.c: New file.
77722         * lib/unistdio/u16-u16-vasprintf.c: New file.
77723         * lib/unistdio/u16-u16-vsnprintf.c: New file.
77724         * lib/unistdio/u16-u16-vsprintf.c: New file.
77725         * lib/unistdio/u32-asnprintf.c: New file.
77726         * lib/unistdio/u32-asprintf.c: New file.
77727         * lib/unistdio/u32-printf-parse.c: New file.
77728         * lib/unistdio/u32-snprintf.c: New file.
77729         * lib/unistdio/u32-sprintf.c: New file.
77730         * lib/unistdio/u32-vasnprintf.c: New file.
77731         * lib/unistdio/u32-vasprintf.c: New file.
77732         * lib/unistdio/u32-vsnprintf.c: New file.
77733         * lib/unistdio/u32-vsprintf.c: New file.
77734         * lib/unistdio/u32-u32-asnprintf.c: New file.
77735         * lib/unistdio/u32-u32-asprintf.c: New file.
77736         * lib/unistdio/u32-u32-snprintf.c: New file.
77737         * lib/unistdio/u32-u32-sprintf.c: New file.
77738         * lib/unistdio/u32-u32-vasnprintf.c: New file.
77739         * lib/unistdio/u32-u32-vasprintf.c: New file.
77740         * lib/unistdio/u32-u32-vsnprintf.c: New file.
77741         * lib/unistdio/u32-u32-vsprintf.c: New file.
77742         * tests/unistdio/test-ulc-asnprintf1.c: New file.
77743         * tests/unistdio/test-ulc-asnprintf1.h: New file.
77744         * tests/unistdio/test-ulc-printf1.h: New file.
77745         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
77746         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
77747         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
77748         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
77749         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
77750         * tests/unistdio/test-ulc-vasprintf1.c: New file.
77751         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
77752         * tests/unistdio/test-ulc-vsprintf1.c: New file.
77753         * tests/unistdio/test-u8-asnprintf1.c: New file.
77754         * tests/unistdio/test-u8-asnprintf1.h: New file.
77755         * tests/unistdio/test-u8-printf1.h: New file.
77756         * tests/unistdio/test-u8-vasnprintf1.c: New file.
77757         * tests/unistdio/test-u8-vasnprintf2.c: New file.
77758         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
77759         * tests/unistdio/test-u8-vasnprintf3.c: New file.
77760         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
77761         * tests/unistdio/test-u8-vasprintf1.c: New file.
77762         * tests/unistdio/test-u8-vsnprintf1.c: New file.
77763         * tests/unistdio/test-u8-vsprintf1.c: New file.
77764         * tests/unistdio/test-u16-asnprintf1.c: New file.
77765         * tests/unistdio/test-u16-asnprintf1.h: New file.
77766         * tests/unistdio/test-u16-printf1.h: New file.
77767         * tests/unistdio/test-u16-vasnprintf1.c: New file.
77768         * tests/unistdio/test-u16-vasnprintf2.c: New file.
77769         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
77770         * tests/unistdio/test-u16-vasnprintf3.c: New file.
77771         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
77772         * tests/unistdio/test-u16-vasprintf1.c: New file.
77773         * tests/unistdio/test-u16-vsnprintf1.c: New file.
77774         * tests/unistdio/test-u16-vsprintf1.c: New file.
77775         * tests/unistdio/test-u32-asnprintf1.c: New file.
77776         * tests/unistdio/test-u32-asnprintf1.h: New file.
77777         * tests/unistdio/test-u32-printf1.h: New file.
77778         * tests/unistdio/test-u32-vasnprintf1.c: New file.
77779         * tests/unistdio/test-u32-vasnprintf2.c: New file.
77780         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
77781         * tests/unistdio/test-u32-vasnprintf3.c: New file.
77782         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
77783         * tests/unistdio/test-u32-vasprintf1.c: New file.
77784         * tests/unistdio/test-u32-vsnprintf1.c: New file.
77785         * tests/unistdio/test-u32-vsprintf1.c: New file.
77786         * modules/unistdio/base: New file.
77787         * modules/unistdio/u-printf-args: New file.
77788         * modules/unistdio/ulc-asnprintf: New file.
77789         * modules/unistdio/ulc-asprintf: New file.
77790         * modules/unistdio/ulc-fprintf: New file.
77791         * modules/unistdio/ulc-printf-parse: New file.
77792         * modules/unistdio/ulc-snprintf: New file.
77793         * modules/unistdio/ulc-sprintf: New file.
77794         * modules/unistdio/ulc-vasnprintf: New file.
77795         * modules/unistdio/ulc-vasprintf: New file.
77796         * modules/unistdio/ulc-vfprintf: New file.
77797         * modules/unistdio/ulc-vsnprintf: New file.
77798         * modules/unistdio/ulc-vsprintf: New file.
77799         * modules/unistdio/u8-asnprintf: New file.
77800         * modules/unistdio/u8-asprintf: New file.
77801         * modules/unistdio/u8-printf-parse: New file.
77802         * modules/unistdio/u8-snprintf: New file.
77803         * modules/unistdio/u8-sprintf: New file.
77804         * modules/unistdio/u8-vasnprintf: New file.
77805         * modules/unistdio/u8-vasprintf: New file.
77806         * modules/unistdio/u8-vsnprintf: New file.
77807         * modules/unistdio/u8-vsprintf: New file.
77808         * modules/unistdio/u8-u8-asnprintf: New file.
77809         * modules/unistdio/u8-u8-asprintf: New file.
77810         * modules/unistdio/u8-u8-snprintf: New file.
77811         * modules/unistdio/u8-u8-sprintf: New file.
77812         * modules/unistdio/u8-u8-vasnprintf: New file.
77813         * modules/unistdio/u8-u8-vasprintf: New file.
77814         * modules/unistdio/u8-u8-vsnprintf: New file.
77815         * modules/unistdio/u8-u8-vsprintf: New file.
77816         * modules/unistdio/u16-asnprintf: New file.
77817         * modules/unistdio/u16-asprintf: New file.
77818         * modules/unistdio/u16-printf-parse: New file.
77819         * modules/unistdio/u16-snprintf: New file.
77820         * modules/unistdio/u16-sprintf: New file.
77821         * modules/unistdio/u16-vasnprintf: New file.
77822         * modules/unistdio/u16-vasprintf: New file.
77823         * modules/unistdio/u16-vsnprintf: New file.
77824         * modules/unistdio/u16-vsprintf: New file.
77825         * modules/unistdio/u16-u16-asnprintf: New file.
77826         * modules/unistdio/u16-u16-asprintf: New file.
77827         * modules/unistdio/u16-u16-snprintf: New file.
77828         * modules/unistdio/u16-u16-sprintf: New file.
77829         * modules/unistdio/u16-u16-vasnprintf: New file.
77830         * modules/unistdio/u16-u16-vasprintf: New file.
77831         * modules/unistdio/u16-u16-vsnprintf: New file.
77832         * modules/unistdio/u16-u16-vsprintf: New file.
77833         * modules/unistdio/u32-asnprintf: New file.
77834         * modules/unistdio/u32-asprintf: New file.
77835         * modules/unistdio/u32-printf-parse: New file.
77836         * modules/unistdio/u32-snprintf: New file.
77837         * modules/unistdio/u32-sprintf: New file.
77838         * modules/unistdio/u32-vasnprintf: New file.
77839         * modules/unistdio/u32-vasprintf: New file.
77840         * modules/unistdio/u32-vsnprintf: New file.
77841         * modules/unistdio/u32-vsprintf: New file.
77842         * modules/unistdio/u32-u32-asnprintf: New file.
77843         * modules/unistdio/u32-u32-asprintf: New file.
77844         * modules/unistdio/u32-u32-snprintf: New file.
77845         * modules/unistdio/u32-u32-sprintf: New file.
77846         * modules/unistdio/u32-u32-vasnprintf: New file.
77847         * modules/unistdio/u32-u32-vasprintf: New file.
77848         * modules/unistdio/u32-u32-vsnprintf: New file.
77849         * modules/unistdio/u32-u32-vsprintf: New file.
77850         * modules/unistdio/ulc-asnprintf-tests: New file.
77851         * modules/unistdio/ulc-vasnprintf-tests: New file.
77852         * modules/unistdio/ulc-vasprintf-tests: New file.
77853         * modules/unistdio/ulc-vsnprintf-tests: New file.
77854         * modules/unistdio/ulc-vsprintf-tests: New file.
77855         * modules/unistdio/u8-asnprintf-tests: New file.
77856         * modules/unistdio/u8-vasnprintf-tests: New file.
77857         * modules/unistdio/u8-vasprintf-tests: New file.
77858         * modules/unistdio/u8-vsnprintf-tests: New file.
77859         * modules/unistdio/u8-vsprintf-tests: New file.
77860         * modules/unistdio/u16-asnprintf-tests: New file.
77861         * modules/unistdio/u16-vasnprintf-tests: New file.
77862         * modules/unistdio/u16-vasprintf-tests: New file.
77863         * modules/unistdio/u16-vsnprintf-tests: New file.
77864         * modules/unistdio/u16-vsprintf-tests: New file.
77865         * modules/unistdio/u32-asnprintf-tests: New file.
77866         * modules/unistdio/u32-vasnprintf-tests: New file.
77867         * modules/unistdio/u32-vasprintf-tests: New file.
77868         * modules/unistdio/u32-vsnprintf-tests: New file.
77869         * modules/unistdio/u32-vsprintf-tests: New file.
77870         * MODULES.html.sh (Unicode string functions): Add the new modules.
77872 2007-07-01  Bruno Haible  <bruno@clisp.org>
77874         * lib/sprintf.c (sprintf): Limit the available length estimation,
77875         to avoid address wraparound.
77876         * lib/vsprintf.c (vsprintf): Likewise.
77877         * modules/sprintf-posix (Dependencies): Add stdint.
77878         * modules/vsprintf-posix (Dependencies): Likewise.
77880 2007-07-01  Bruno Haible  <bruno@clisp.org>
77882         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
77883         Windows PATH as well. Conservative double-quoting. Comments.
77885 2007-07-01  Bruno Haible  <bruno@clisp.org>
77886             Eric Blake  <ebb9@byu.net>
77887             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77889         * gnulib-tool (self_abspathname): Fix algorithm to cope with
77890         empty components in $PATH, denoting '.'.
77892 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77894         * gnulib-tool: Fix indentation.
77895         (func_create_megatestdir): Likewise.
77896         Report by Bruno Haible.
77898 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77900         Sync from Automake.
77901         * build-aux/gnupload: Fix shell portability issues with for loops.
77902         Report by Karl Berry.
77904 2007-06-29  Simon Josefsson  <simon@josefsson.org>
77906         * build-aux/maint.mk (POURL): Use translationproject.org.
77908 2007-06-27  Simon Josefsson  <simon@josefsson.org>
77909             Bruno Haible  <bruno@clisp.org>
77911         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
77912         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
77913         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
77914         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
77915         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
77917 2007-06-27  Bruno Haible  <bruno@clisp.org>
77919         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
77920         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
77922 2007-06-26  Karl Berry  <karl@gnu.org>
77924         * MODULES.html.sh: remove xreadlink-with-size.
77926 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
77928         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
77929         method that I hope also handles the double-include problem noted
77930         by Bruno Haible in
77931         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
77933 2007-06-23  Bruno Haible  <bruno@clisp.org>
77935         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77936         Don't let the 'mostlyclean' target fail if the last subdirectory could
77937         not be removed.
77938         Reported by Karl Berry.
77940 2007-06-23  Bruno Haible  <bruno@clisp.org>
77942         * gnulib-tool (echo): Add a speedier workaround for ksh.
77943         * tests/test-echo.sh: Likewise.
77945 2007-06-23  Bruno Haible  <bruno@clisp.org>
77947         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
77948         * tests/test-echo.sh: Likewise.
77950 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77952         * gnulib-tool (IFS): Initialize early, so we don't set it to
77953         empty later.
77954         (self_abspathname): Rewrite algorithm to set it, reindent.
77955         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
77956         (func_create_megatestdir): Merge some sed scripts.
77958 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
77960         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
77961         exposed by Sun Studio 11 cc on Solaris 8.
77963 2007-06-22  Bruno Haible  <bruno@clisp.org>
77965         * gnulib-tool (echo): Ensure the echo primitive does not interpret
77966         backslashes.
77967         * tests/test-echo.sh: New file.
77969 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77971         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
77972         simplify `sed_replace_build_aux' scripts, they are portable but
77973         echoing them with `echo' is not.
77974         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
77976 2007-06-21  Karl Berry  <karl@gnu.org>
77978         * config/srclist.txt: guess we can't handle the licenses via
77979         srclist at the moment.
77981 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
77983         * MODULES.html.sh: Add include_next.
77984         * modules/include_next: New file.
77986 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
77988         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
77989         INCLUDE_NEXT.
77990         (gl_CHECK_NEXT_HEADERS): New macro.
77991         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
77992         the obsolescent gl_ABSOLUTE_HEADER.
77993         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
77994         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
77995         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
77996         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
77997         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
77998         * m4/math_h.m4 (gl_MATH_H): Likewise.
77999         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
78000         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
78001         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
78002         * m4/stdint.m4 (gl_STDINT_H): Likewise.
78003         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
78004         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
78005         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
78006         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
78007         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
78008         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
78009         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
78010         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
78011         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
78012         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
78013         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
78014         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
78015         * m4/inttypes.m4 (gl_INTTYPES_H): Define
78016         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
78017         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
78018         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
78019         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
78020         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
78021         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
78022         * lib/float_.h: Likewise.
78023         * lib/inttypes_.h: Likewise.
78024         * lib/math_.h: Likewise.
78025         * lib/search_.h: Likewise.
78026         * lib/signal_.h: Likewise.
78027         * lib/stdint_.h: Likewise.
78028         * lib/stdio_.h: Likewise.
78029         * lib/stdlib_.h: Likewise.
78030         * lib/string_.h: Likewise.
78031         * lib/sys_stat_.h: Likewise.
78032         * lib/sys_time_.h: Likewise.
78033         * lib/time_.h: Likewise.
78034         * lib/unistd_.h: Likewise.
78035         * lib/wchar_.h: Likewise.
78036         * lib/wctype_.h: Likewise.
78037         * lib/dirent_.h: Likewise.
78038         * lib/iconv_.h: Likewise.
78039         * lib/locale_.h: Likewise.
78040         * lib/netinet_in_.h: Likewise.
78041         * lib/sys_select_.h: Likewise.
78042         * lib/sys_socket_.h: Likewise.
78043         * lib/sysexits_.h: Likewise.
78044         * modules/fcntl (Depends-on): Depend on include_next, not
78045         absolute_header.
78046         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
78047         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
78048         * modules/fchdir: Likewise.
78049         * modules/float: Likewise.
78050         * modules/iconv_open: Likewise.
78051         * modules/inttypes: Likewise.
78052         * modules/locale: Likewise.
78053         * modules/math: Likewise.
78054         * modules/netinet_in: Likewise.
78055         * modules/search: Likewise.
78056         * modules/signal: Likewise.
78057         * modules/stdint: Likewise.
78058         * modules/stdio: Likewise.
78059         * modules/stdlib: Likewise.
78060         * modules/string: Likewise.
78061         * modules/sys_select: Likewise.
78062         * modules/sys_socket: Likewise.
78063         * modules/sys_stat: Likewise.
78064         * modules/sys_time: Likewise.
78065         * modules/sysexits: Likewise.
78066         * modules/time: Likewise.
78067         * modules/unistd: Likewise.
78068         * modules/wchar: Likewise.
78069         * modules/wctype: Likewise.
78070         * modules/sys_stat: Change maintainer to "all".
78071         * modules/unistd: Likewise.
78073 2007-06-20  Karl Berry  <karl@gnu.org>
78075         * config/srclist.txt: track www changes in license files.
78077 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
78079         * build-aux/bootstrap: Remove stray dot.
78080         Make sure build_aux settings are honored when linking
78081         gnulib_extra_files.
78083 2007-06-19  Eric Blake  <ebb9@byu.net>
78085         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
78086         Allow compilation on cygwin.
78088 2007-06-19  Jim Meyering  <jim@meyering.net>
78090         xreadlink-with-size: Remove module.  No longer used.
78091         Ex-callers now use xreadlink or mreadlink-with-size.
78092         * modules/xreadlink-with-size: Remove module.
78093         * lib/xreadlink-with-size.c: Remove file.
78094         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
78095         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
78096         just before the function definition *is* accurate.
78098         Eliminate one way canonicalize_filename_mode could exit.
78099         * lib/canonicalize.c (canonicalize_filename_mode):
78100         Use mreadlink_with_size, not xreadlink_with_size.
78102 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
78104         Detect porting problems to FreeBSD/arm, which has time_t wider than
78105         long int.  Original problem reported for GNU diff by Xin Li in
78106         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
78107         * modules/getdate (Depends-on): Add intprops, verify.
78108         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
78109         is an integer type no wider than long int.
78111 2007-06-18  Jim Meyering  <jim@meyering.net>
78113         New module: mreadlink-with-size.
78114         * MODULES.html.sh: Add mreadlink-with-size.
78115         * modules/mreadlink-with-size: New module
78116         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
78117         not xreadlink-with-size.
78118         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
78120 2007-06-16  Bruno Haible  <bruno@clisp.org>
78122         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
78123         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
78124         Reported by Gary V. Vaughan <gary@gnu.org>.
78126 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
78128         Revamp lchown so that it lives in unistd.h where it belongs.
78129         * lib/lchown.h: Remove.
78130         * lib/dirchownmod.c: Don't include lib/lchown.h.
78131         * lib/fchownat.c: Likewise.
78132         * lib/openat.c: Likewise.
78133         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
78134         does not follow symlinks.
78135         (EOPNOTSUPP): Define if not defined.
78136         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
78137         is defined to 0.
78138         (lchown): New decl.
78139         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
78140         Do not check for lchown decl.
78141         Set REPLACE_LCHOWN.
78142         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
78143         REPLACE_LCHOWN.
78144         * modules/chown: Make it clear it follows symlinks.
78145         * modules/lchown: Make it clear it doesn't follow symlinks.
78146         (Files): Remove lib/lchown.h
78147         (Depends-on): Add unistd.
78148         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
78149         (Include): Include <unistd.h>, not "lchown.h".
78150         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
78151         REPLACE_LCHOWN.
78153 2007-06-15  Jim Meyering  <jim@meyering.net>
78155         Change license (GPL to LGPL) of fsusage and dependents.
78156         * modules/fsusage (License): Change to LGPL.
78157         * modules/full-read (License): Likewise.
78158         * modules/full-write (License): Likewise.
78159         * modules/safe-read (License): Likewise.
78160         * modules/safe-write (License): Likewise.
78162 2007-06-14  Ben Pfaff  <blp@gnu.org>
78164         Missing part of allocsa -> malloca transition.
78165         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
78166         gl_MALLOCA.
78168 2007-06-12  Bruno Haible  <bruno@clisp.org>
78170         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
78171         to ia64, x86_64, i386.
78172         Reported by Eric Blake.
78174 2007-06-12  Bruno Haible  <bruno@clisp.org>
78176         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
78177         cross-compiling to x86_64.
78179 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
78181         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
78182         glitch reported by Ralf Wildenhues in
78183         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
78185         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
78186         Vin Shelton.
78188 2007-06-11  Bruno Haible  <bruno@clisp.org>
78190         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
78191         replacement string.
78192         Reported by Eric Blake.
78194 2007-06-10  Bruno Haible  <bruno@clisp.org>
78196         Prepare vasnprintf code for use with Unicode strings.
78197         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
78198         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
78199         TYPE_U32_STRING.
78200         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
78201         a_u32_string variants.
78202         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
78203         * lib/printf-args.c: Don't include config.h and the specification
78204         header if PRINTF_FETCHARGS is already defined.
78205         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
78206         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
78207         TYPE_U16_STRING, TYPE_U32_STRING.
78208         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
78209         u16_directive, u16_directives, u32_directive, u32_directives): New
78210         types.
78211         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
78212         New declarations.
78213         * lib/printf-parse.c: Don't include config.h and the specification
78214         header if PRINTF_PARSE is already defined. Eliminate the set of
78215         parameters for WIDE_CHAR_VERSION; the user of this file must provide
78216         them now. Include c-ctype.h.
78217         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
78218         directive and CHAR_T_ONLY_ASCII.
78219         * lib/vasnprintf.c: Don't include config.h and the specification header
78220         if VASNPRINTF is already defined.
78221         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
78222         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
78223         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
78224         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
78225         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
78226         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
78227         code accordingly.
78228         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
78229         pad_ourselves also in this case, with the 'c' and 's' directives, and
78230         with a different notion of "width".
78231         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
78233 2007-06-10  Bruno Haible  <bruno@clisp.org>
78235         * modules/unistr/u32-mbsnlen: New file.
78236         * lib/unistr/u32-mbsnlen.c: New file.
78238         * modules/unistr/u16-mbsnlen: New file.
78239         * lib/unistr/u16-mbsnlen.c: New file.
78241         * modules/unistr/u8-mbsnlen: New file.
78242         * lib/unistr/u8-mbsnlen.c: New file.
78244         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
78245         declarations.
78247 2007-06-10  Bruno Haible  <bruno@clisp.org>
78249         * lib/string_.h (mbsnlen): New declaration.
78250         * lib/mbsnlen.c: New file.
78251         * m4/mbsnlen.m4: New file.
78252         * modules/mbsnlen: New file.
78253         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
78254         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
78255         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
78257 2007-06-10  Bruno Haible  <bruno@clisp.org>
78259         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
78261 2007-06-10  Bruno Haible  <bruno@clisp.org>
78263         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
78264         * lib/mbuiter.h: Likewise.
78266 2007-06-10  Bruno Haible  <bruno@clisp.org>
78268         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
78269         declaration.
78271 2007-06-10  Karl Berry  <karl@gnu.org>
78273         * config/srclist.txt: remove gettext entries, Bruno prefers
78274         to update individually.
78276 2007-06-10  Bruno Haible  <bruno@clisp.org>
78278         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
78279         'maxlen'. Ensure only length + width bytes are allocated, not
78280         length + 1 + width.
78282 2007-06-09  Bruno Haible  <bruno@clisp.org>
78284         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
78285         (CHAR_T): Remove macro.
78286         (VASNPRINTF): Update.
78288 2007-06-09  Bruno Haible  <bruno@clisp.org>
78290         * MODULES.html.sh (Unicode string functions): Add the new modules.
78292         * modules/uniconv/u32-conv-to-enc: New file.
78293         * lib/uniconv/u32-conv-to-enc.c: New file.
78294         * modules/uniconv/u32-conv-to-enc-tests: New file.
78295         * tests/uniconv/test-u32-conv-to-enc.c: New file.
78297         * modules/uniconv/u16-conv-to-enc: New file.
78298         * lib/uniconv/u16-conv-to-enc.c: New file.
78299         * lib/uniconv/u-conv-to-enc.h: New file.
78300         * modules/uniconv/u16-conv-to-enc-tests: New file.
78301         * tests/uniconv/test-u16-conv-to-enc.c: New file.
78303         * modules/uniconv/u8-conv-to-enc: New file.
78304         * lib/uniconv/u8-conv-to-enc.c: New file.
78305         * modules/uniconv/u8-conv-to-enc-tests: New file.
78306         * tests/uniconv/test-u8-conv-to-enc.c: New file.
78308         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
78309         u32_conv_to_encoding): New declarations.
78311 2007-06-09  Bruno Haible  <bruno@clisp.org>
78313         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
78315 2007-06-09  Bruno Haible  <bruno@clisp.org>
78317         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
78318         * modules/malloca: Renamed from modules/allocsa, updated.
78319         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
78320         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
78321         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
78322         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
78323         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
78324         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
78325         * modules/xmalloca: Renamed from modules/xallocsa, updated.
78326         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
78327         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
78328         * modules/c-strcasestr (Depends-on): Update.
78329         * lib/c-strcasestr.c: Update.
78330         * modules/c-strstr (Depends-on): Update.
78331         * lib/c-strstr.c: Update.
78332         * modules/canonicalize-lgpl (Depends-on): Update.
78333         * lib/canonicalize-lgpl.c: Update.
78334         * modules/clean-temp (Depends-on): Update.
78335         * lib/clean-temp.c: Update.
78336         * modules/csharpcomp (Depends-on): Update.
78337         * lib/csharpcomp.c: Update.
78338         * modules/csharpexec (Depends-on): Update.
78339         * lib/csharpexec.c: Update.
78340         * modules/javacomp (Depends-on): Update.
78341         * lib/javacomp.c: Update.
78342         * modules/javaexec (Depends-on): Update.
78343         * lib/javaexec.c: Update.
78344         * modules/mbscasestr (Depends-on): Update.
78345         * lib/mbscasestr.c: Update.
78346         * modules/mbsstr (Depends-on): Update.
78347         * lib/mbsstr.c: Update.
78348         * modules/setenv (Depends-on): Update.
78349         * lib/setenv.c: Update.
78350         * modules/strcasestr (Depends-on): Update.
78351         * lib/strcasestr.c: Update.
78352         * modules/striconveha (Depends-on): Update.
78353         * lib/striconveha.c: Update.
78354         * modules/relocatable-prog-wrapper (Files): Update.
78355         * lib/relocwrapper.c: Update.
78356         * build-aux/install-reloc: Update.
78357         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
78359 2007-06-08  Bruno Haible  <bruno@clisp.org>
78361         Port to uClibc.
78362         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
78363         * lib/fpurge.c (fpurge): Likewise.
78364         * lib/freading.c (freading): Likewise.
78365         * lib/fseeko.c (rpl_fseeko): Likewise.
78366         * lib/fseterr.c (fseterr): Likewise.
78367         * lib/fwriting.c (fwriting): Likewise.
78368         * tests/test-fflush.c (main): Avoid a failure on uClibc.
78370 2007-06-08  Bruno Haible  <bruno@clisp.org>
78372         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
78373         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
78374         * modules/gettext (Files): Add m4/intlmacosx.m4.
78376 2007-06-07  Bruno Haible  <bruno@clisp.org>
78378         * modules/localename-tests: New file.
78379         * tests/test-localename.c: New file.
78381         New module 'localename'.
78382         * lib/localename.h: New file.
78383         * lib/localename.c: New file, from GNU gettext.
78384         * m4/localename.m4: New file.
78385         * modules/localename: New file.
78387 2007-06-07  Bruno Haible  <bruno@clisp.org>
78389         Work around the lack of <wchar.h> on some builds of uClibc.
78390         * doc/headers/wchar.texi: Update.
78391         * lib/wchar_.h: Include <wchar.h> only if it exists.
78392         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
78393         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
78394         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
78395         doesn't exist.
78396         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
78397         * modules/mbfile (Depends-on): Add wchar.
78398         * modules/mbiter (Depends-on): Likewise.
78399         * modules/mbuiter (Depends-on): Likewise.
78400         Reported by Simon Josefsson.
78402 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
78404         Work around problem reported by Steven M. Schweda in
78405         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
78406         Tru64 5.1B with the Compaq compiler environment installed declares
78407         an 'isblank' function but does not define it in the C library.
78408         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
78409         * lib/regex_internal.h (isblank): Likewise.
78410         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
78411         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
78413 2007-06-05  Bruno Haible  <bruno@clisp.org>
78415         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
78416         ia64.
78417         * modules/printf-safe: New file.
78418         * modules/fprintf-posix (Depends-on): Add printf-safe.
78419         * modules/printf-posix (Depends-on): Likewise.
78420         * modules/snprintf-posix (Depends-on): Likewise.
78421         * modules/sprintf-posix (Depends-on): Likewise.
78422         * modules/vasnprintf-posix (Depends-on): Likewise.
78423         * modules/vasprintf-posix (Depends-on): Likewise.
78424         * modules/vfprintf-posix (Depends-on): Likewise.
78425         * modules/vprintf-posix (Depends-on): Likewise.
78426         * modules/vsnprintf-posix (Depends-on): Likewise.
78427         * modules/vsprintf-posix (Depends-on): Likewise.
78428         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
78429         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
78430         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
78431         "no" on i386, x86_64, ia64.
78432         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
78433         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
78434         on i386, x86_64, ia64.
78435         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
78436         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
78437         on i386, x86_64, ia64.
78438         * tests/test-vasnprintf-posix.c: Include float.h.
78439         (LDBL80_WORDS): New macro.
78440         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
78441         on i386, x86_64, ia64.
78442         * tests/test-vasprintf-posix.c: Include float.h.
78443         (LDBL80_WORDS): New macro.
78444         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
78445         on i386, x86_64, ia64.
78446         * tests/test-snprintf-posix.c: Include float.h.
78447         * tests/test-sprintf-posix.c: Likewise.
78448         * tests/test-vsnprintf-posix.c: Likewise.
78449         * tests/test-vsprintf-posix.c: Likewise.
78451 2007-06-05  Bruno Haible  <bruno@clisp.org>
78453         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
78454         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
78455         non-IEEE numbers on i386, x86_64, ia64.
78456         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
78457         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
78458         * tests/test-isnanl.h: Include float.h.
78459         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
78461 2007-06-05  Bruno Haible  <bruno@clisp.org>
78463         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
78464         also the %a / %A. Handle the %a / %A code before this extra handling.
78466 2007-06-05  Bruno Haible  <bruno@clisp.org>
78468         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
78469         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
78471 2007-06-05  Bruno Haible  <bruno@clisp.org>
78473         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
78474         typo in variable name.
78476 2007-06-05  Eric Blake  <ebb9@byu.net>
78478         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
78479         Reported by Simon Josefsson.
78481 2007-06-04  Bruno Haible  <bruno@clisp.org>
78483         Avoid test failures on some PowerPC platforms.
78484         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
78485         Define differently for PowerPC.
78486         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
78487         Reported by Gary V. Vaughan <gary@gnu.org>.
78489 2007-06-02  Bruno Haible  <bruno@clisp.org>
78491         Fix test-stdint failure on FreeBSD/ia64.
78492         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
78493         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
78494         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
78495         * doc/headers/stdint.texi: Update.
78497 2007-06-01  Bruno Haible  <bruno@clisp.org>
78499         * tests/test-binary-io.c (main): Pass a third argument to open().
78500         Reported by Gary V. Vaughan <gary@gnu.org>.
78502 2007-06-01  Bruno Haible  <bruno@clisp.org>
78504         * doc/functions/frexpl.texi: Update for mingw.
78506 2007-06-01  Bruno Haible  <bruno@clisp.org>
78508         * tests/test-lseek.c (main): Disable test of errno for invalid third
78509         argument.
78510         * doc/functions/lseek.texi: Update.
78511         Reported by Gary V. Vaughan <gary@gnu.org>.
78513 2007-05-28  Bruno Haible  <bruno@clisp.org>
78515         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
78517 2007-05-31  Eric Blake  <ebb9@byu.net>
78519         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
78520         cross compiling.
78522 2007-05-30  Eric Blake  <ebb9@byu.net>
78523         and Bruno Haible  <bruno@clisp.org>
78525         Work around mingw test failures exposed by m4-1.4.9b.
78526         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
78527         * tests/test-unistd.c: Disable uid_t and git_t tests for the
78528         moment.
78530 2007-05-30  Bruno Haible  <bruno@clisp.org>
78532         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
78533         assuming that they are closed. Needed on HP-UX 11.
78535 2007-05-29  Bruno Haible  <bruno@clisp.org>
78537         Fix a problem with #include_next.
78538         * lib/dirent_.h: Split the double-inclusion guard.
78539         * lib/fcntl_.h: Likewise.
78540         * lib/float_.h: Likewise.
78541         * lib/iconv_.h: Likewise.
78542         * lib/inttypes_.h: Likewise.
78543         * lib/locale_.h: Likewise.
78544         * lib/math_.h: Likewise.
78545         * lib/netinet_in_.h: Likewise.
78546         * lib/search_.h: Likewise.
78547         * lib/signal_.h: Likewise.
78548         * lib/stdint_.h: Likewise.
78549         * lib/stdio_.h: Likewise.
78550         * lib/stdlib_.h: Likewise.
78551         * lib/string_.h: Likewise.
78552         * lib/sys_select_.h: Likewise.
78553         * lib/sys_socket_.h: Likewise.
78554         * lib/sys_stat_.h: Likewise.
78555         * lib/sys_time_.h: Likewise.
78556         * lib/sysexits_.h: Likewise.
78557         * lib/time_.h: Likewise.
78558         * lib/unistd_.h: Likewise.
78559         * lib/wchar_.h: Likewise.
78560         * lib/wctype_.h: Likewise.
78562 2007-05-29  Bruno Haible  <bruno@clisp.org>
78564         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
78565         for the moment.
78567 2007-05-29  Bruno Haible  <bruno@clisp.org>
78569         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
78570         invocation.
78571         Reported by Eric Blake.
78573 2007-05-29  Bruno Haible  <bruno@clisp.org>
78575         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
78576         compiling case.
78578 2007-05-29  Eric Blake  <ebb9@byu.net>
78579             Bruno Haible  <bruno@clisp.org>
78581         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
78582         cross compiles.
78584 2007-05-28  Eric Blake  <ebb9@byu.net>
78586         * modules/closein-tests (test_closein_LDADD): Support test on
78587         cygwin with libtool.
78589 2007-05-28  Bruno Haible  <bruno@clisp.org>
78591         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
78592         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
78593         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
78594         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
78595         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
78596         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
78597         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
78598         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
78599         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
78601 2007-05-28  Eric Blake  <ebb9@byu.net>
78603         Unconditionally include <config.h> in unit tests.
78604         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
78605         * tests/test-allocsa.c, tests/test-arcfour.c,
78606         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
78607         tests/test-array_list.c, tests/test-array_oset.c,
78608         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
78609         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
78610         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
78611         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
78612         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
78613         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
78614         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
78615         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
78616         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
78617         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
78618         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
78619         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
78620         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
78621         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
78622         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
78623         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
78624         test-md5.c, test-memmem.c, test-printf-posix.c,
78625         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
78626         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
78627         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
78628         test-strcasestr.c, test-striconv.c, test-striconveh.c,
78629         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
78630         test-vasnprintf-posix2.c, test-vasnprintf.c,
78631         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
78632         test-vfprintf-posix.c, test-vprintf-posix.c,
78633         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
78634         test-xvasprintf.c: Likewise.
78636 2007-05-28  Bruno Haible  <bruno@clisp.org>
78638         * gnulib-tool (func_import): Remember the --with-tests command-line
78639         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
78640         Reported by Eric Blake.
78642 2007-05-28  Bruno Haible  <bruno@clisp.org>
78644         * modules/ftell-tests: New file.
78645         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
78646         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
78648         * lib/ftell.c: New file.
78649         * modules/ftell: New file.
78650         * m4/ftell.m4: New file.
78651         * doc/functions/ftell.texi: Update.
78652         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
78653         REPLACE_FTELL.
78654         * lib/stdio_.h (rpl_ftell): New declaration.
78655         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
78656         REPLACE_FTELL.
78658 2007-05-28  Eric Blake  <ebb9@byu.net>
78660         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
78662 2007-05-28  Bruno Haible  <bruno@clisp.org>
78664         * modules/fseek-tests: New file.
78665         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
78666         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
78668         * lib/fseek.c: New file.
78669         * modules/fseek: New file.
78670         * m4/fseek.m4: New file.
78671         * doc/functions/fseek.texi: Update.
78672         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
78673         REPLACE_FSEEK.
78674         * lib/stdio_.h (rpl_fseek): New declaration.
78675         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
78676         REPLACE_FSEEK.
78678 2007-05-28  Bruno Haible  <bruno@clisp.org>
78680         * lib/stdio_.h (fflush): More comments.
78682 2007-05-28  Bruno Haible  <bruno@clisp.org>
78684         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
78685         runtime test.
78687 2007-05-28  Eric Blake  <ebb9@byu.net>
78689         Improve lseek module.
78690         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
78691         * lib/unistd_.h (lseek): Scale back link warning message.
78692         * tests/test-lseek.c: Beef up test.
78693         * tests/test-lseek.sh: Exercise more facets of lseek.
78694         Reported by Bruno Haible.
78696 2007-05-28  Bruno Haible  <bruno@clisp.org>
78698         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
78699         to define.
78701 2007-05-27  Bruno Haible  <bruno@clisp.org>
78703         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
78705 2007-05-27  Bruno Haible  <bruno@clisp.org>
78707         * modules/openmp: New file.
78708         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
78709         Noah Misch.
78711 2007-05-26  Bruno Haible  <bruno@clisp.org>
78713         * modules/chdir-long (Depends-on): Add fchdir.
78714         * modules/chdir-safer (Depends-on): Likewise.
78715         * modules/fts (Depends-on): Likewise.
78716         * modules/fts-lgpl (Depends-on): Likewise.
78717         * modules/openat (Depends-on): Likewise.
78718         * modules/savewd (Depends-on): Likewise.
78720 2007-05-24  Eric Blake  <ebb9@byu.net>
78722         Fix lseek on mingw.
78723         * modules/lseek: New module.
78724         * m4/lseek.m4: New file.
78725         * lib/lseek.c: New file.
78726         * modules/lseek-tests: New file.
78727         * tests/test-lseek.c: New file.
78728         * tests/test-lseek.sh: New file.
78729         * MODULES.html.sh: Document lseek module.
78730         * modules/fflush (Depends-on): Add lseek, fseeko.
78731         * modules/fseeko (Depends-on): Likewise.
78732         * modules/ftello (Depends-on): Likewise.
78733         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
78734         broken.
78735         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
78736         broken.
78737         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
78738         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
78739         * lib/ftello.c (rpl_ftello): Likewise.
78740         * tests/test-fseeko.c (main): Test this.
78741         * tests/test-fseeko.sh: Likewise.
78742         * tests/test-ftello.c (main): Likewise.
78743         * tests/test-ftello.sh: Likewise.
78744         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
78745         implies replacing fseek.
78746         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
78747         HAVE_FTELLO.
78748         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
78749         * modules/unistd (Makefile.am): Likewise.
78750         * lib/unistd_.h (lseek): Declare a replacement.
78751         * doc/functions/lseek.texi (lseek): Document this fix.
78752         * doc/functions/fseek.texi (fseek): Likewise.
78753         * doc/functions/ftell.texi (ftell): Likewise.
78755 2007-05-24  Bruno Haible  <bruno@clisp.org>
78757         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
78758         in the printed representation of a NaN.
78759         * tests/test-vasprintf-posix.c (test_function): Likewise.
78760         * tests/test-snprintf-posix.h (test_function): Likewise.
78761         * tests/test-sprintf-posix.h (test_function): Likewise.
78762         Reported by Eric Blake.
78764 2007-05-23  Eric Blake  <ebb9@byu.net>
78766         Fix fseeko/ftello on cygwin 1.5.24.
78767         * doc/functions/fseeko.texi (fseeko): Document the fix.
78768         * doc/functions/ftello.texi (ftello): Document the fix.
78769         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
78770         * doc/functions/stdout.text (stdout): New file.
78771         * doc/functions/stderr.text (stderr): New file.
78772         * doc/gnulib.texi (Function Substitutes): Use new files.
78773         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
78774         prior to 1.7.0.
78775         * tests/test-ftello.c (main): Likewise for ftello.
78776         * tests/test-fseeko.sh: New file.
78777         * tests/test-ftello.sh: New file.
78778         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
78779         with seekable stdin.
78780         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
78781         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
78782         (gl_REPLACE_FSEEKO): New macro.
78783         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
78784         * modules/fseeko (Files): Distribute fseeko.c.
78785         * modules/ftello (Files): Distribute ftello.c.
78786         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
78787         mode.
78788         * lib/ftello.c (rpl_ftello): New file.
78789         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
78790         fseeko, ftello.
78791         (gl_STDIN_LARGE_OFFSET): New macro.
78792         * modules/stdio (Makefile.am): Perform the replacement.
78793         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
78795 2007-05-23  Bruno Haible  <bruno@clisp.org>
78797         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
78798         GNULIB_POSIXCHECK is defined.
78800 2007-05-21  Bruno Haible  <bruno@clisp.org>
78802         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
78803         Check also the output for NaN arguments. When cross-compiling, guess
78804         no on IRIX.
78805         * lib/vasnprintf.c: Update comments.
78806         * tests/test-vasnprintf-posix.c (strisnan): New function.
78807         (test_function): Use it.
78808         * tests/test-vasprintf-posix.c (strisnan): New function.
78809         (test_function): Use it.
78810         * tests/test-snprintf-posix.h (strisnan): New function.
78811         (test_function): Use it.
78812         * tests/test-sprintf-posix.h (strisnan): New function.
78813         (test_function): Use it.
78814         Reported by Eric Blake.
78816 2007-05-20  Bruno Haible  <bruno@clisp.org>
78818         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
78819         numbers that fails on BeOS.
78820         * doc/functions/frexpl.texi: Update.
78822 2007-05-20  Jim Meyering  <jim@meyering.net>
78824         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
78825         forced upon us by glibc-2.6.
78827 2007-05-20  Bruno Haible  <bruno@clisp.org>
78829         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
78830         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
78831         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
78832         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
78833         NEED_PRINTF_INFINITE.
78834         (is_infinitel): New function.
78835         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
78836         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
78837         gl_PREREQ_VASNPRINTF_INFINITE.
78838         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
78839         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
78840         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
78841         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
78842         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
78843         gl_PREREQ_VASNPRINTF_INFINITE.
78844         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
78845         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
78846         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
78847         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
78848         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
78849         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
78850         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
78851         * doc/functions/fprintf.texi: Update.
78852         * doc/functions/printf.texi: Update.
78853         * doc/functions/snprintf.texi: Update.
78854         * doc/functions/sprintf.texi: Update.
78855         * doc/functions/vfprintf.texi: Update.
78856         * doc/functions/vprintf.texi: Update.
78857         * doc/functions/vsnprintf.texi: Update.
78858         * doc/functions/vsprintf.texi: Update.
78860 2007-05-20  Bruno Haible  <bruno@clisp.org>
78862         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
78863         was not found in libc.
78864         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
78866 2007-05-20  Bruno Haible  <bruno@clisp.org>
78868         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
78869         printed as "-nan" instead of "nan".
78870         * tests/test-vasprintf-posix.c (test_function): Likewise.
78871         * tests/test-snprintf-posix.h (test_function): Likewise.
78872         * tests/test-sprintf-posix.h (test_function): Likewise.
78873         Needed for HP-UX 11.
78875 2007-05-20  Jim Meyering  <jim@meyering.net>
78877         Fix buggy test for the fchownat-deref bug.
78878         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
78879         symlink required for the run-test.  Without it, this test would
78880         always declare that fchownat doesn't work, and client code would
78881         unnecessarily use the replacement function with fixed libc.
78882         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
78883         Reported by Greg Schafer.
78885 2007-05-19  Bruno Haible  <bruno@clisp.org>
78887         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
78888         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
78889         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
78890         Needed for IRIX 6.5 and Solaris 2.5.1.
78892 2007-05-19  Bruno Haible  <bruno@clisp.org>
78894         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
78895         (test_function): Skip tests involving -0.0 on platforms where
78896         -0.0 = 0.0.
78897         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
78898         (test_function): Skip tests involving -0.0 on platforms where
78899         -0.0 = 0.0.
78900         * tests/test-snprintf-posix.h (have_minus_zero): New function.
78901         (test_function): Skip tests involving -0.0 on platforms where
78902         -0.0 = 0.0.
78903         * tests/test-sprintf-posix.h (have_minus_zero): New function.
78904         (test_function): Skip tests involving -0.0 on platforms where
78905         -0.0 = 0.0.
78906         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
78907         tests.
78908         * tests/test-printf-posix.h (test_function): Likewise.
78909         * tests/test-printf-posix.output: Remove all -0.0 related results.
78910         Needed for IRIX 6.5.
78912 2007-05-19  Bruno Haible  <bruno@clisp.org>
78914         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
78915         printed as "nan0x7fffffff" instead of "nan".
78916         * tests/test-vasprintf-posix.c (test_function): Likewise.
78917         * tests/test-snprintf-posix.h (test_function): Likewise.
78918         * tests/test-sprintf-posix.h (test_function): Likewise.
78919         * tests/test-fprintf-posix.h (NaN): Remove macro.
78920         (test_function): Remove all NaN related tests.
78921         * tests/test-printf-posix.h (NaN): Remove macro.
78922         (test_function): Remove all NaN related tests.
78923         * tests/test-printf-posix.output: Remove all NaN related results.
78924         Needed for IRIX 6.5.
78926 2007-05-19  Bruno Haible  <bruno@clisp.org>
78928         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
78929         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
78931 2007-05-19  Bruno Haible  <bruno@clisp.org>
78933         * lib/float_.h: New file.
78934         * m4/float_h.m4: New file.
78935         * modules/float: New file.
78936         * modules/isnanl (Dependencies): Add float.
78937         * modules/isnanl-nolibm (Dependencies): Likewise.
78938         * modules/mathl (Dependencies): Likewise.
78939         * modules/printf-frexpl (Dependencies): Likewise.
78940         * modules/signbit (Dependencies): Likewise.
78941         * modules/vasnprintf (Dependencies): Likewise.
78942         * doc/headers/float.texi: Update.
78944 2007-05-19  Jim Meyering  <jim@meyering.net>
78946         * lib/utimens.c (gl_futimens): Rename from futimens,
78947         now that glibc-2.6 declares futimens.
78948         * lib/utimens.h: Likewise.
78950 2007-05-19  Bruno Haible  <bruno@clisp.org>
78952         Avoid test failures on mingw.
78953         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
78954         * tests/test-printf-posix.sh: Likewise.
78955         * tests/test-vfprintf-posix.sh: Likewise.
78956         * tests/test-vprintf-posix.sh: Likewise.
78958 2007-05-19  Bruno Haible  <bruno@clisp.org>
78960         Fix *printf result for NaN, Inf, -0.0 on mingw.
78961         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
78962         * lib/vasnprintf.c: Include math.h and isnan.h.
78963         (is_infinite_or_zero): New function.
78964         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
78965         values in the %f, %F, %e, %E, %g, %G directives.
78966         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
78967         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
78968         gl_PRINTF_INFINITE and test its result. Invoke
78969         gl_PREREQ_VASNPRINTF_INFINITE.
78970         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
78971         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
78972         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
78973         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
78974         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
78975         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
78976         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
78977         * doc/functions/fprintf.texi: Update.
78978         * doc/functions/printf.texi: Update.
78979         * doc/functions/snprintf.texi: Update.
78980         * doc/functions/sprintf.texi: Update.
78981         * doc/functions/vfprintf.texi: Update.
78982         * doc/functions/vprintf.texi: Update.
78983         * doc/functions/vsnprintf.texi: Update.
78984         * doc/functions/vsprintf.texi: Update.
78986 2007-05-19  Bruno Haible  <bruno@clisp.org>
78988         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
78989         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
78990         Instead of multiplying with 10^k, set extra_zeroes to k.
78991         (scale10_round_long_double): Remove function.
78993 2007-05-18  Bruno Haible  <bruno@clisp.org>
78995         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
78996         introduced on 2007-05-06.
78998 2007-05-18  Bruno Haible  <bruno@clisp.org>
79000         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
79001         %g directives.
79002         * tests/test-vasprintf-posix.c (test_function): Likewise.
79003         * tests/test-snprintf-posix.h (test_function): Likewise.
79004         * tests/test-sprintf-posix.h (test_function): Likewise.
79006 2007-05-18  Bruno Haible  <bruno@clisp.org>
79008         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
79009         (strmatch): New function.
79010         (test_function): Test the %f directive on numbers of various exponents.
79011         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
79012         (strmatch): New function.
79013         (test_function): Test the %f directive on numbers of various exponents.
79014         * tests/test-snprintf-posix.h (strmatch): New function.
79015         (test_function): Test the %f directive on numbers of various exponents.
79016         * tests/test-sprintf-posix.h (strmatch): New function.
79017         (test_function): Test the %f directive on numbers of various exponents.
79018         * tests/test-snprintf-posix.c (SIZEOF): New macro.
79019         * tests/test-sprintf-posix.c (SIZEOF): New macro.
79020         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
79021         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
79023 2007-05-18  Bruno Haible  <bruno@clisp.org>
79025         Add support for 'long double' number output.
79026         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
79027         * lib/vasnprintf.c: Include math.h and float+.h.
79028         (mp_limb_t): New type.
79029         (GMP_LIMB_BITS): New macro.
79030         (mp_twolimb_t): New type.
79031         (GMP_TWOLIMB_BITS): New macro.
79032         (mpn_t): New type.
79033         (multiply, divide, convert_to_decimal, decode_long_double,
79034         scale10_round_long_double, scale10_round_decimal_long_double,
79035         floorlog10l): New functions.
79036         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
79037         for the %f, %F, %e, %E, %g, %G directives.
79038         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
79039         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
79040         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
79041         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
79042         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
79043         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
79044         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
79045         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
79046         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
79047         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
79048         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
79049         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
79050         * modules/snprintf-posix (Depends-on): Likewise.
79051         * modules/sprintf-posix (Depends-on): Likewise.
79052         * modules/vasnprintf-posix (Depends-on): Likewise.
79053         * modules/vasprintf-posix (Depends-on): Likewise.
79054         * modules/vfprintf-posix (Depends-on): Likewise.
79055         * modules/vsnprintf-posix (Depends-on): Likewise.
79056         * modules/vsprintf-posix (Depends-on): Likewise.
79057         * modules/vasnprintf (Files): Add lib/float+.h.
79058         * doc/functions/fprintf.texi: Update.
79059         * doc/functions/printf.texi: Update.
79060         * doc/functions/snprintf.texi: Update.
79061         * doc/functions/sprintf.texi: Update.
79062         * doc/functions/vfprintf.texi: Update.
79063         * doc/functions/vprintf.texi: Update.
79064         * doc/functions/vsnprintf.texi: Update.
79065         * doc/functions/vsprintf.texi: Update.
79067 2007-05-18  Bruno Haible  <bruno@clisp.org>
79069         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
79071 2007-05-18  Bruno Haible  <bruno@clisp.org>
79073         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
79074         for printing 64-bit integers. Needed for mingw.
79076 2007-05-18  Bruno Haible  <bruno@clisp.org>
79078         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
79079         gl_FUNC_FREXPL_WORKS.
79080         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
79082 2007-05-18  Bruno Haible  <bruno@clisp.org>
79084         * modules/frexpl-nolibm-tests: New file.
79086         * modules/frexpl-nolibm: New file.
79087         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
79089 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
79091         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
79092         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
79093         GCC 4.2, which otherwise issues a lot of warnings.
79094         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
79095         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
79096         Likewise.
79097         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
79098         * modules/iconv_open (iconv.h): Likewise.
79099         * modules/locale (locale.h): Likewise.
79100         * modules/netinet_in (netinet/in.h): Likewise.
79101         * modules/sys_select (sys_select.h): Likewise.
79102         * modules/sys_socket (sys/socket.h): Likewise.
79103         * modules/sys_stat (sys/stat.h): Likewise.
79104         * modules/sysexits (sysexits.h): Likewise.
79105         * modules/unistd (unistd.h): Likewise.
79107 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79109         * modules/closein-tests (Makefile.am): Distribute
79110         `test-closein.sh'.
79112 2007-05-17  Bruno Haible  <bruno@clisp.org>
79114         * tests/test-printf-posix.output: Renamed from
79115         tests/test-fprintf-posix.out.
79116         * modules/fprintf-posix-tests: Update.
79117         * modules/printf-posix-tests: Update.
79118         * modules/vfprintf-posix-tests: Update.
79119         * modules/vprintf-posix-tests: Update.
79120         * tests/test-fprintf-posix.sh: Update.
79121         * tests/test-printf-posix.sh: Update.
79122         * tests/test-vfprintf-posix.sh: Update.
79123         * tests/test-vprintf-posix.sh: Update.
79124         Reported by Ralf Wildenhues.
79126 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
79128         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
79129         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
79130         GCC 4.2, which otherwise issues a lot of warnings.
79131         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
79132         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
79133         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
79134         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
79135         it should no longer be needed.
79136         * lib/string_.h: Likewise.
79137         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
79138         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
79139         * modules/inttypes (inttypes.h): Likewise.
79140         * modules/math (math.h): Likewise.
79141         * modules/search (search.h): Likewise.
79142         * modules/signal (signal.h): Likewise.
79143         * modules/stdint (stdint.h): Likewise.
79144         * modules/stdio (stdio.h): Likewise.
79145         * modules/stdlib (stdlib.h): Likewise.
79146         * modules/string (string.h): Likewise.
79147         * modules/sys_time (sys/time.h): Likewise.
79148         * modules/time (time.h): Likewise.
79149         * modules/wchar (wchar.h): Likewise.
79150         * modules/wctype (wtype.h): Likewise.
79152 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
79154         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
79156 2007-05-13  Bruno Haible  <bruno@clisp.org>
79158         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
79159         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
79160         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
79161         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
79162         (gl_PREREQ_STRTOK_R): Don't require it here.
79164 2007-05-13  Bruno Haible  <bruno@clisp.org>
79166         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
79167         when used in C++ mode.
79169 2007-05-12  Bruno Haible  <bruno@clisp.org>
79171         * lib/linebuffer.h: Tweak doc.
79172         * lib/linebuffer.c: Likewise.
79174 2007-05-12  James Youngman  <jay@gnu.org>
79176         * lib/linebuffer.c (readlinebuffer_delim): New function,
79177         like readlinebuffer, but use a caller-specified delimiter.
79178         (readlinebuffer): Just call readlinebuffer_delim with '\n'
79179         as the delimiter.
79180         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
79182 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
79184         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
79185         * modules/openat (Files): Remove openat-die.c.
79186         (Depends-on): Add openat-die.
79187         * modules/openat-die: New module.
79189 2007-05-06  Bruno Haible  <bruno@clisp.org>
79191         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
79192         Update with info about Cygwin.
79193         * doc/functions/fprintf.texi: Update.
79194         * doc/functions/printf.texi: Update.
79195         * doc/functions/snprintf.texi: Update.
79196         * doc/functions/sprintf.texi: Update.
79197         * doc/functions/vfprintf.texi: Update.
79198         * doc/functions/vprintf.texi: Update.
79199         * doc/functions/vsnprintf.texi: Update.
79200         * doc/functions/vsprintf.texi: Update.
79201         Reported by Eric Blake.
79203 2007-05-06  Bruno Haible  <bruno@clisp.org>
79205         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
79206         padding ourselves for the floating-point directives.
79207         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
79208         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
79209         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
79210         gl_PRINTF_FLAG_ZERO and test its result. Invoke
79211         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
79212         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
79213         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
79214         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
79215         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
79216         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
79217         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
79218         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
79219         * tests/test-snprintf-posix.h (test_function): Also check the width
79220         and some flags in the %f directive.
79221         * tests/test-sprintf-posix.h (test_function): Likewise.
79222         * tests/test-vasnprintf-posix.c (test_function): Likewise.
79223         * tests/test-vasprintf-posix.c (test_function): Likewise.
79224         * doc/functions/fprintf.texi: Update.
79225         * doc/functions/printf.texi: Update.
79226         * doc/functions/snprintf.texi: Update.
79227         * doc/functions/sprintf.texi: Update.
79228         * doc/functions/vfprintf.texi: Update.
79229         * doc/functions/vprintf.texi: Update.
79230         * doc/functions/vsnprintf.texi: Update.
79231         * doc/functions/vsprintf.texi: Update.
79233 2007-05-06  Bruno Haible  <bruno@clisp.org>
79235         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
79236         pass the ' flag character to sprintf or snprintf.
79237         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
79238         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
79239         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
79240         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
79241         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
79242         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
79243         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
79244         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
79245         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
79246         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
79247         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
79248         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
79249         * tests/test-snprintf-posix.h (test_function): Also check the grouping
79250         flag.
79251         * tests/test-sprintf-posix.h (test_function): Likewise.
79252         * tests/test-vasnprintf-posix.c (test_function): Likewise.
79253         * tests/test-vasprintf-posix.c (test_function): Likewise.
79254         * doc/functions/fprintf.texi: Update.
79255         * doc/functions/printf.texi: Update.
79256         * doc/functions/snprintf.texi: Update.
79257         * doc/functions/sprintf.texi: Update.
79258         * doc/functions/vfprintf.texi: Update.
79259         * doc/functions/vprintf.texi: Update.
79260         * doc/functions/vsnprintf.texi: Update.
79261         * doc/functions/vsprintf.texi: Update.
79263 2007-05-01  Bruno Haible  <bruno@clisp.org>
79265         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
79267 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
79269         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
79270         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
79272 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
79274         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
79275         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
79276         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
79278 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
79280         * lib/argp-help.c (struct hol_entry): New member `ord'.
79281         (HOL_ENTRY_PTRCMP): Use ord for comparison
79282         (hol_sort): Initialize ord.
79284 2007-05-01  Bruno Haible  <bruno@clisp.org>
79286         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
79287         Reported by Eric Blake.
79288         * doc/gnulib.texi (Function Substitutes): Update.
79290 2007-05-01  Bruno Haible  <bruno@clisp.org>
79292         * doc/functions.texi: Remove file, now redundant through
79293         doc/functions/*.texi.
79295 2007-05-01  Bruno Haible  <bruno@clisp.org>
79297         * modules/argp (Depends-on): Add sleep.
79299 2007-05-01  Bruno Haible  <bruno@clisp.org>
79301         * modules/sleep-tests: New file.
79302         * tests/test-sleep.c: New file.
79304         * modules/sleep: New file.
79305         * lib/sleep.c: New file.
79306         * m4/sleep.m4: New file.
79307         * lib/unistd_.h (sleep): New declaration.
79308         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
79309         HAVE_SLEEP.
79310         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
79311         * doc/functions/sleep.texi: Document the sleep module.
79313 2007-05-01  Bruno Haible  <bruno@clisp.org>
79315         * lib/sigprocmask.h: Remove file.
79316         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
79317         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
79318         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
79319         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
79320         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
79321         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
79322         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
79323         HAVE_SIGSET_T as a shell variable.
79324         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
79325         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
79326         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
79327         (Depends-on): Add signal. Remove verify.
79328         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
79329         (Include): Mention <signal.h> instead of sigprocmask.h.
79330         * NEWS: Mention the change.
79331         * lib/fatal-signal.c: Don't include sigprocmask.h.
79333 2007-05-01  Bruno Haible  <bruno@clisp.org>
79335         * modules/signal: New file.
79336         * lib/signal_.h: New file.
79337         * m4/signal_h.m4: New file.
79339 2007-05-01  Bruno Haible  <bruno@clisp.org>
79341         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
79342         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
79343         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
79344         HAVE_WCTYPE_CTMP_BUG into wctype.h.
79346 2007-05-01  Bruno Haible  <bruno@clisp.org>
79348         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
79349         configure time.
79350         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
79351         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
79352         * modules/sys_stat (Makefile.am): Substitute their values into
79353         sys/stat.h.
79355 2007-05-01  Bruno Haible  <bruno@clisp.org>
79357         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
79358         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
79359         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
79361 2007-05-01  Bruno Haible  <bruno@clisp.org>
79363         * doc/header/assert.texi: Undo last change: don't mention the gnulib
79364         'assert' module here.
79366 2007-05-01  Bruno Haible  <bruno@clisp.org>
79368         * doc/functions/*.texi: New files.
79369         * doc/functions/google-ranking.txt: New file.
79370         * doc/gnulib.texi (Function Substitutes): New chapter.
79371         (ctime, inet_ntoa): Remove sections.
79372         * doc/ctime.texi: Remove file.
79373         * doc/inet_ntoa.texi: Remove file.
79374         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
79375         dependencies.
79376         (%.info): New rule, specifying a --reference-limit.
79378 2007-05-01  Bruno Haible  <bruno@clisp.org>
79380         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
79382 2007-05-01  Bruno Haible  <bruno@clisp.org>
79384         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
79385         the portability of 'mkdir' to mingw systems.
79387 2007-05-01  Bruno Haible  <bruno@clisp.org>
79389         * doc/headers/google-ranking.txt: New file.
79391 2007-04-30  Eric Blake  <ebb9@byu.net>
79393         Prefer fseeko to fseek.
79394         * modules/getpass (Depends-on): Add fseeko.
79395         * lib/getpass.c (getpass): Use fseeko, not fseek.
79397 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
79399         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
79400         assumes the sorting is stable, while most qsort implementations
79401         are not.  Use argument addresses to ensure they never compare as
79402         equal.
79404         * tests/test-argp-2.sh (usage-indent test): Fix output
79405         (func_compare): Restore diff options
79406         * tests/test-argp.c: Restore #include "progname.h"
79408 2007-04-29  Bruno Haible  <bruno@clisp.org>
79410         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
79411         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
79412         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
79413         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
79414         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
79415         (configure.ac): Define CHECK_SNPRINTF_POSIX.
79416         (TESTS, check_PROGRAMS): Add test-snprintf.
79417         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
79418         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
79419         (TESTS, check_PROGRAMS): Add test-vsnprintf.
79420         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
79421         assertions that fail on HP-UX, OSF/1, or IRIX.
79422         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
79424 2007-04-29  Bruno Haible  <bruno@clisp.org>
79426         * MODULES.html.sh (posix_functions): Remove 'contents'.
79428 2007-04-29  Karl Berry  <karl@gnu.org>
79430         * config/srclist.txt (gendocs_template_min): new entry.
79432 2007-04-29  Bruno Haible  <bruno@clisp.org>
79434         Work around fpurge bug on BSD systems.
79435         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
79436         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
79437         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
79438         fpurge to rpl_fpurge if the system already has this function.
79439         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
79440         the case where the system already has this function. Correct invariants
79441         on BSD systems.
79442         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
79443         BSD systems.
79445 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
79447         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
79448         proposed by Sven Verdoolaege.
79450         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
79451         options.
79452         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
79453         (usage and help tests): Update
79455 2007-04-29  Bruno Haible  <bruno@clisp.org>
79457         * tests/test-fflush.c (main): Use a file of size 17, not 10.
79458         Print more information in case of failure. Disable a test on BeOS.
79460 2007-04-29  Bruno Haible  <bruno@clisp.org>
79462         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
79463         This helps debugging on systems on which no gdb is available.
79465 2007-04-29  Bruno Haible  <bruno@clisp.org>
79467         * lib/freading.h: Improve comments.
79468         * lib/fwriting.h: Likewise.
79469         * tests/test-freading.c (main): Don't check freading immediately after
79470         repositioning. Needed for glibc.
79472 2007-04-29  Bruno Haible  <bruno@clisp.org>
79474         * lib/freading.c (freading): Trivial simplification.
79476 2007-04-28  Bruno Haible  <bruno@clisp.org>
79478         * tests/test-fwriting.c (main): Also test the interaction between
79479         fflush and fwriting.
79480         * modules/fwriting-tests (Depends-on): Add fflush.
79482         * tests/test-freading.c (main): Also test the interaction between
79483         fflush and freading.
79484         * modules/freading-tests (Depends-on): Add fflush.
79486 2007-04-28  Bruno Haible  <bruno@clisp.org>
79488         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
79489         fseeko and ftello.
79490         Suggested by Eric Blake.
79492 2007-04-28  Jim Meyering  <jim@meyering.net>
79494         Avoid false-negative in gl_STDINT_H's C99 conformance test.
79495         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
79496         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
79498 2007-04-27  Eric Blake  <ebb9@byu.net>
79500         * doc/headers/assert.texi (assert.h): Document assert module use.
79502 2007-04-27  Bruno Haible  <bruno@clisp.org>
79504         * doc/headers/*.texi: New files.
79505         * doc/gnulib.texi (Header File Substitutes): New chapter.
79506         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
79507         dependencies.
79508         (standards.info ,standards.html, standards.dvi): Update dependencies.
79509         (mostlyclean, clean): New targets.
79511 2007-04-27  Bruno Haible  <bruno@clisp.org>
79513         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
79514         * modules/sysexits (Files, Makefile.am): Update.
79516         * lib/sys_socket_.h: Renamed from lib/socket_.h.
79517         * modules/sys_socket (Files, Makefile.am): Update.
79519         * lib/sys_stat_.h: Renamed from lib/stat_.h.
79520         * modules/sys_stat (Files, Makefile.am): Update.
79522 2007-04-27  Eric Blake  <ebb9@byu.net>
79524         * lib/freading.h: Improve comments.
79525         * lib/fwriting.h: Likewise.
79526         * lib/fflush.c: Likewise.
79528         Fix closein for mingw.
79529         * modules/closein-tests: Add tests for closein.
79530         * tests/test-closein.c: New file.
79531         * tests/test-closein.sh: Likewise.
79532         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
79533         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
79535 2007-04-27  Bruno Haible  <bruno@clisp.org>
79537         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
79538         version is < 6.
79539         * lib/math_.h [__DECC]: Likewise.
79540         * lib/stdio_.h [__DECC]: Likewise.
79541         * lib/stdlib_.h [__DECC]: Likewise.
79542         * lib/string_.h [__DECC]: Likewise.
79543         * lib/time_.h [__DECC]: Likewise.
79544         * lib/wchar_.h [__DECC]: Likewise.
79545         * lib/wctype_.h [__DECC]: Likewise.
79547 2007-04-27  Bruno Haible  <bruno@clisp.org>
79549         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
79551 2007-04-27  Bruno Haible  <bruno@clisp.org>
79553         * lib/fflush.c: Add comments.
79554         * modules/fpurge-tests (Depends-on): Add fflush.
79555         * modules/freadable-tests (Depends-on): Likewise.
79556         * modules/fwritable-tests (Depends-on): Likewise.
79558 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
79560         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
79561         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
79562         Report by Bruno Haible <bruno@clisp.org>.
79564 2007-04-26  Eric Blake  <ebb9@byu.net>
79566         Fix fflush on mingw.
79567         * modules/fflush (Depends-on): Add freading.
79568         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
79569         but unread data.
79571 2007-04-26  Eric Blake  <ebb9@byu.net>
79572         and Bruno Haible  <bruno@clisp.org>
79574         Implement freading and fwriting.
79575         * lib/freading.c: New file.
79576         * lib/freading.h: Likewise.
79577         * m4/freading.m4: Likewise.
79578         * modules/freading: Likewise.
79579         * modules/freading-tests: Likewise.
79580         * tests/test-freading.c: Likewise.
79581         * lib/fwriting.c: New file.
79582         * lib/fwriting.h: Likewise.
79583         * m4/fwriting.m4: Likewise.
79584         * modules/fwriting: Likewise.
79585         * modules/fwriting-tests: Likewise.
79586         * tests/test-fwriting.c: Likewise.
79587         * MODULES.html.sh (File stream based Input/Output): Mention them.
79589 2007-04-26  Bruno Haible  <bruno@clisp.org>
79591         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
79592         'long' when we assume it.
79593         Suggested by Eric Blake.
79595 2007-04-26  Bruno Haible  <bruno@clisp.org>
79597         Ensure fseeko, ftello are declared on glibc systems.
79598         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
79599         * modules/fseeko (configure.ac-early): Likewise.
79600         * modules/ftello (configure.ac-early): Likewise.
79601         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
79602         AC_FUNC_FSEEKO for this.
79603         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
79604         (gl_CHECK_FSEEKO): Remove macro.
79606 2007-04-26  Bruno Haible  <bruno@clisp.org>
79608         * tests/test-fflush.c (main): Also check the ftell result after
79609         fflush and fseek/fseeko.
79610         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
79611         file descriptor position cache in the stream.
79612         * lib/fseeko.c (rpl_fseeko): Likewise.
79614 2007-04-26  Bruno Haible  <bruno@clisp.org>
79616         * modules/fflush-tests (Depends-on): Add fseeko.
79618 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
79619             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79621         * lib/argz_.h: ensure error_t definition is obtained in same
79622         mechanism system argz.h would have.
79623         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
79624         argz facilities are known bad.  Err on the side of caution if
79625         cross-compiling.
79627 2007-04-25  Eric Blake  <ebb9@byu.net>
79629         * lib/fpurge.c (includes): Use stdlib.h for free.
79630         * tests/test-fflush.c (main): Also test fflush-fseeko.
79632 2007-04-25  Bruno Haible  <bruno@clisp.org>
79634         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
79635         * lib/fseeko.c: New file.
79636         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
79637         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
79638         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
79639         gl_FUNC_FSEEKO.
79640         (gl_FUNC_FSEEKO): Invoke it.
79641         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
79642         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
79643         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
79645 2007-04-25  Bruno Haible  <bruno@clisp.org>
79647         * modules/fflush (Depends-on): Add ftello.
79649 2007-04-25  Bruno Haible  <bruno@clisp.org>
79651         * modules/ftello-tests: New file.
79652         * tests/test-ftello.c: New file.
79654         * modules/ftello: New file.
79655         * m4/ftello.m4: New file.
79656         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
79657         HAVE_FTELLO.
79658         * lib/stdio_.h (ftello): New declaration.
79659         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
79660         HAVE_FTELLO.
79662 2007-04-25  Bruno Haible  <bruno@clisp.org>
79664         * modules/fseeko-tests: New file.
79665         * tests/test-fseeko.c: New file.
79667         * modules/fseeko: New file.
79668         * m4/fseeko.m4: New file.
79669         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
79670         HAVE_FSEEKO.
79671         * lib/stdio_.h (fseeko): New declaration.
79672         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
79673         HAVE_FSEEKO.
79675 2007-04-25  Bruno Haible  <bruno@clisp.org>
79677         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
79679 2007-04-25  Bruno Haible  <bruno@clisp.org>
79681         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
79682         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
79683         * tests/test-unistd.c: Likewise.
79684         * tests/test-fcntl.c: Likewise.
79686 2007-04-23  Eric Blake  <ebb9@byu.net>
79688         * lib/fflush.c: Fix missing include.
79689         Reported by Bruno Haible.
79691 2007-04-23  Bruno Haible  <bruno@clisp.org>
79693         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
79694         Reported by Eric Blake.
79696 2007-04-23  Bruno Haible  <bruno@clisp.org>
79698         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
79700 2007-04-23  Bruno Haible  <bruno@clisp.org>
79702         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
79704 2007-04-23  Bruno Haible  <bruno@clisp.org>
79706         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
79707         Needed on HP-UX 11.
79709 2007-04-16  Eric Blake  <ebb9@byu.net>
79711         Make fflush rely on fpurge.
79712         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
79713         open coding all variants.
79714         * modules/fflush (Depends-on): Add fpurge and unistd.
79715         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
79716         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
79718         Fix --with-tests compilation on cygwin.
79719         * modules/argmatch-tests (Makefile.am): List gnulib library first
79720         in LDADD.
79721         * modules/argp-tests (Makefile.am): Likewise.
79722         * modules/array-list-tests (Makefile.am): Likewise.
79723         * modules/array-oset-tests (Makefile.am): Likewise.
79724         * modules/avltree-list-tests (Makefile.am): Likewise.
79725         * modules/avltree-oset-tests (Makefile.am): Likewise.
79726         * modules/avltreehash-list-tests (Makefile.am): Likewise.
79727         * modules/carray-list-tests (Makefile.am): Likewise.
79728         * modules/dirname-tests (Makefile.am): Likewise.
79729         * modules/frexp-tests (Makefile.am): Likewise.
79730         * modules/isnanl-tests (Makefile.am): Likewise.
79731         * modules/linked-list-tests (Makefile.am): Likewise.
79732         * modules/linkedhash-list-tests (Makefile.am): Likewise.
79733         * modules/lock-tests (Makefile.am): Likewise.
79734         * modules/rbtree-list-tests (Makefile.am): Likewise.
79735         * modules/rbtree-oset-tests (Makefile.am): Likewise.
79736         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
79737         * modules/tls-tests (Makefile.am): Likewise.
79738         * modules/tsearch-tests (Makefile.am): Likewise.
79739         * modules/xvasprintf-tests (Makefile.am): Likewise.
79741         Fix fpurge for cygwin.
79742         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
79743         value.
79744         * modules/fpurge-tests (Depends-on): Clean up trash.
79746 2007-04-16  Simon Josefsson  <simon@josefsson.org>
79748         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
79750         * m4/autobuild.m4: Re-indent.
79752 2007-04-13  Bruno Haible  <bruno@clisp.org>
79754         * modules/fpurge-tests: New file.
79755         * tests/test-fpurge.c: New file.
79757         * modules/fpurge: New file.
79758         * lib/fpurge.h: New file.
79759         * lib/fpurge.c: New file.
79760         * m4/fpurge.m4: New file.
79762 2007-04-13  Bruno Haible  <bruno@clisp.org>
79764         * modules/fbufmode-tests: New file.
79765         * tests/test-fbufmode.c: New file.
79767         * modules/fbufmode: New file.
79768         * lib/fbufmode.h: New file.
79769         * lib/fbufmode.c: New file.
79770         * m4/fbufmode.m4: New file.
79772 2007-04-13  Bruno Haible  <bruno@clisp.org>
79774         * modules/fwritable-tests: New file.
79775         * tests/test-fwritable.c: New file.
79777         * modules/fwritable: New file.
79778         * lib/fwritable.h: New file.
79779         * lib/fwritable.c: New file.
79780         * m4/fwritable.m4: New file.
79782 2007-04-13  Bruno Haible  <bruno@clisp.org>
79784         * modules/freadable-tests: New file.
79785         * tests/test-freadable.c: New file.
79787         * modules/freadable: New file.
79788         * lib/freadable.h: New file.
79789         * lib/freadable.c: New file.
79790         * m4/freadable.m4: New file.
79792 2007-04-13  Bruno Haible  <bruno@clisp.org>
79794         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
79795         MOSTLYCLEANFILES.
79797 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
79799         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
79800         gzip bootstrap.conf to avoid dragging in i18n machinery.
79801         (gnulib_tool_option): Use it.
79803 2007-04-13  Bruno Haible  <bruno@clisp.org>
79805         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
79806         %F directives.
79807         * tests/test-vasprintf-posix.c (test_function): Likewise.
79808         * tests/test-snprintf-posix.h (test_function): Likewise.
79809         * tests/test-sprintf-posix.h (test_function): Likewise.
79810         * tests/test-fprintf-posix.h (test_function): Likewise.
79811         * tests/test-printf-posix.h (test_function): Likewise.
79812         * tests/test-fprintf-posix.out: Likewise.
79814 2007-04-13  Bruno Haible  <bruno@clisp.org>
79816         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
79817         * modules/tls-tests (configure.ac): Likewise.
79818         Reported by Arto C. Nirkko <anirkko@insel.ch>.
79820 2007-04-13  Bruno Haible  <bruno@clisp.org>
79822         * lib/tls.c (glthread_tls_get): Fix return type.
79823         Patch by Arto C. Nirkko <anirkko@insel.ch>.
79825 2007-04-12  Eric Blake  <ebb9@byu.net>
79827         * modules/gettime (Depends-on): Remove gettime.
79828         Reported by Dmitry V. Levin.
79830 2007-04-12  Bruno Haible  <bruno@clisp.org>
79832         * modules/fflush (Include): Mention <stdio.h>.
79833         * modules/strtoimax (Include): Mention <inttypes.h>.
79834         * modules/strtoumax (Include): Likewise.
79836 2007-04-12  Eric Blake  <ebb9@byu.net>
79838         * .cvsignore: New file.
79839         * .gitignore: Likewise.
79841 2007-04-12  Bruno Haible  <bruno@clisp.org>
79843         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
79844         not before, since $(LDADD) often contains libgnu.a.
79845         * modules/striconv-tests (test_striconv_LDADD): Likewise.
79846         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
79847         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
79848         Needed on Cygwin.
79850 2007-04-12  Eric Blake  <ebb9@byu.net>
79852         Work around glibc's failure to flush stdin on fclose.
79853         * lib/closein.c (close_stdin): Flush stdin before closing.
79855         Work around glibc's failure to reset seekable stdin on exit.
79856         * modules/closein: New module.
79857         * lib/closein.c: New file.
79858         * lib/closein.h: Likewise.
79859         * m4/closein.m4: Likewise.
79860         * MODULES.html.sh (File stream based Input/Output): Document it.
79862 2007-04-12  Simon Josefsson  <simon@josefsson.org>
79864         * gnulib-tool: Rename generated 'autobuild' script to
79865         'do-autobuild' in --create-megatestdir output.
79867         * doc/gnulib.texi (Build robot for gnulib): Fix.
79869 2007-04-12  Simon Josefsson  <simon@josefsson.org>
79871         * modules/sysexits (Depends-on): Add absolute-header.
79873 2007-04-12  Eric Blake  <ebb9@byu.net>
79875         No need to preserve errno on success.
79876         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
79877         Reported by Bruno Haible.
79879 2007-04-12  Simon Josefsson  <simon@josefsson.org>
79881         * MODULES.html.sh (Support for maintaining and releasing
79882         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
79884 2007-04-12  Simon Josefsson  <simon@josefsson.org>
79886         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
79888 2007-04-12  Simon Josefsson  <simon@josefsson.org>
79890         * modules/autobuild: New module.
79892         * m4/autobuild.m4: New file.
79894 2007-04-11  Bruno Haible  <bruno@clisp.org>
79896         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
79897         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
79898         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
79899         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
79900         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
79901         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
79902         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
79903         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
79904         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
79905         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
79906         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
79907         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
79908         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
79909         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
79910         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
79911         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
79912         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
79913         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
79914         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
79915         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
79916         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
79917         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
79918         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
79919         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
79920         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
79921         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
79922         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
79923         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
79924         Reported by Eric Blake.
79926 2007-04-11  Bruno Haible  <bruno@clisp.org>
79928         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
79930 2007-04-10  Bruno Haible  <bruno@clisp.org>
79932         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
79933         for NaN and Infinity. Needed on FreeBSD 6.1.
79934         * tests/test-vasnprintf-posix.c (test_function): Undo last change
79935         regarding results for "%010a" of Infinity and NaN.
79936         * tests/test-vasprintf-posix.c (test_function): Likewise.
79937         * tests/test-snprintf-posix.h (test_function): Likewise.
79938         * tests/test-sprintf-posix.h (test_function): Likewise.
79939         * tests/test-fprintf-posix.h (test_function): Likewise.
79940         * tests/test-printf-posix.h (test_function): Likewise.
79941         * tests/test-fprintf-posix.out: Likewise.
79943 2007-04-10  Bruno Haible  <bruno@clisp.org>
79945         * modules/locale-tests: New file.
79946         * tests/test-locale.c: New file.
79948         * modules/locale: New file.
79949         * lib/locale_.h: New file.
79950         * m4/locale_h.m4: New file.
79952 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
79953             Bruno Haible  <bruno@clisp.org>
79955         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
79956         be determined, test for availability of the copysignf, copysign,
79957         copysignl functions.
79958         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
79959         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
79960         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
79962 2007-04-09  Eric Blake  <ebb9@byu.net>
79964         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
79965         * modules/stdio (Makefile.am): Support fflush.
79966         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
79967         * modules/fflush: New file.
79968         * lib/fflush.c: Likewise.
79969         * m4/fflush.m4: Likewise.
79970         * modules/fflush-tests: New test.
79971         * tests/test-fflush.c: Likewise.
79972         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
79974 2007-04-06  Bruno Haible  <bruno@clisp.org>
79976         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
79977         (VASNPRINTF): Use signbit for faster determination whether to print a
79978         minus sign.
79979         * modules/vasnprintf (Files): Remove lib/float+.h.
79980         * modules/fprintf-posix (Depends-on): Add signbit.
79981         * modules/snprintf-posix (Depends-on): Likewise.
79982         * modules/sprintf-posix (Depends-on): Likewise.
79983         * modules/vasnprintf-posix (Depends-on): Likewise.
79984         * modules/vasprintf-posix (Depends-on): Likewise.
79985         * modules/vfprintf-posix (Depends-on): Likewise.
79986         * modules/vsnprintf-posix (Depends-on): Likewise.
79987         * modules/vsprintf-posix (Depends-on): Likewise.
79989 2007-04-06  Bruno Haible  <bruno@clisp.org>
79991         * tests/test-frexp.c (main): Test also the sign bit of zero results.
79992         * tests/test-frexpl.c (main): Likewise.
79993         * tests/test-ldexpl.c (main): Likewise.
79994         * modules/frexp-tests (Depends-on): Add signbit.
79995         * modules/frexpl-tests (Depdends-on): Likewise.
79996         * modules/ldexpl-tests (Depdends-on): Likewise.
79998 2007-04-06  Bruno Haible  <bruno@clisp.org>
80000         * modules/signbit-tests: New file.
80001         * tests/test-signbit.c: New file.
80003         * modules/signbit: New file.
80004         * lib/signbitf.c: New file.
80005         * lib/signbitd.c: New file.
80006         * lib/signbitl.c: New file.
80007         * m4/signbit.m4: New file.
80008         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
80009         (signbit): New macro.
80010         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
80011         REPLACE_SIGNBIT.
80012         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
80013         REPLACE_FREXPL into math.h.
80015 2007-04-06  Bruno Haible  <bruno@clisp.org>
80017         * modules/isnanf-nolibm-tests: New file.
80018         * tests/test-isnanf.c: New file.
80020         * modules/isnanf-nolibm: New file.
80021         * lib/isnanf.h: New file.
80022         * lib/isnanf.c: New file.
80023         * lib/isnan.c: Consider the USE_FLOAT macro.
80024         * m4/isnanf.m4: New file.
80026 2007-04-06  Bruno Haible  <bruno@clisp.org>
80028         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
80029         (Link): New section.
80031         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
80033 2007-04-06  Bruno Haible  <bruno@clisp.org>
80035         Assume the 'long double' type.
80036         * m4/longdouble.m4: Remove file.
80037         * config/srclist.txt: Don't mention longdouble.m4.
80038         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
80039         * lib/float+.h: Likewise.
80040         * lib/frexp.c: Likewise.
80041         * lib/printf-args.h: Likewise.
80042         * lib/printf-args.c: Likewise.
80043         * lib/printf-frexp.c: Likewise.
80044         * lib/printf-parse.c: Likewise.
80045         * lib/vasnprintf.c: Likewise.
80046         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
80047         * m4/intl.m4: Likewise.
80048         * m4/isnanl.m4: Likewise.
80049         * m4/printf.m4: Likewise.
80050         * m4/printf-frexpl.m4: Likewise.
80051         * m4/vasnprintf.m4: Likewise.
80052         * modules/allocsa (Files): Remove m4/longdouble.m4.
80053         * modules/gettext (Files): Likewise.
80054         * modules/relocatable-prog-wrapper (Files): Likewise.
80055         * modules/vasnprintf (Files): Likewise.
80056         * modules/isnanl (Files): Likewise.
80057         (Include): Simplify.
80058         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
80059         (Include): Simplify.
80060         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
80061         (Include): Simplify.
80062         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
80063         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
80064         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
80065         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
80066         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
80067         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
80068         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
80069         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
80070         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
80071         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
80072         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
80073         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
80074         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
80075         * tests/test-isnanl.c: Likewise.
80076         * tests/test-snprintf-posix.h: Likewise.
80077         * tests/test-sprintf-posix.h: Likewise.
80078         * tests/test-vasnprintf-posix.c: Likewise.
80079         * tests/test-vasnprintf-posix2.c: Likewise.
80080         * tests/test-vasprintf-posix.c: Likewise.
80082 2007-04-06  Bruno Haible  <bruno@clisp.org>
80084         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
80085         * lib/math_.h [__DECC]: Include the overridden include file through
80086         #include_next, outside the double-inclusion guard.
80087         * lib/stdio_.h [__DECC]: Likewise.
80088         * lib/stdlib_.h [__DECC]: Likewise.
80089         * lib/string_.h [__DECC]: Likewise.
80090         * lib/time_.h [__DECC]: Likewise.
80091         * lib/wchar_.h [__DECC]: Likewise.
80092         * lib/wctype_.h [__DECC]: Likewise.
80093         * lib/inttypes_.h [__DECC]: Likewise.
80094         Reported by Albert Chin <china@thewrittenword.com> in
80095         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
80097 2007-04-04  Eric Blake  <ebb9@byu.net>
80099         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
80100         1.5.x.
80102 2007-04-04  Bruno Haible  <bruno@clisp.org>
80104         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
80105         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
80107 2007-04-04  Bruno Haible  <bruno@clisp.org>
80109         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
80110         results for "%010a" of Infinity and NaN.
80111         * tests/test-vasprintf-posix.c (test_function): Likewise.
80112         * tests/test-snprintf-posix.h (test_function): Likewise.
80113         * tests/test-sprintf-posix.h (test_function): Likewise.
80114         * tests/test-fprintf-posix.h (test_function): Remove these tests.
80115         * tests/test-printf-posix.h (test_function): Likewise.
80116         * tests/test-fprintf-posix.out: Update.
80117         Needed for FreeBSD 6.1.
80119 2007-04-04  Bruno Haible  <bruno@clisp.org>
80121         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
80122         directly used by the gnulib modules nor by gnulib-tool.
80124 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
80126         * DEPENDENCIES: Give overall description of version dependency
80127         desirability.  Use more-typical names for apps.
80128         Add shell, coreutils, diffutils, grep, tar, gzip.
80130 2007-04-04  Simon Josefsson  <simon@josefsson.org>
80132         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
80134 2007-04-04  Karl Berry  <karl@gnu.org>
80136         * MODULES.html.sh (func_module): missing '.
80138 2007-04-03  Bruno Haible  <bruno@clisp.org>
80140         * modules/argmatch-tests (Makefile.am): New variable
80141         test_argmatch_LDADD.
80142         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
80143         * modules/array-list-tests (Makefile.am): New variable
80144         test_array_list_LDADD.
80145         * modules/array-oset-tests (Makefile.am): New variable
80146         test_array_oset_LDADD.
80147         * modules/avltree-list-tests (Makefile.am): New variable
80148         test_avltree_list_LDADD.
80149         * modules/avltree-oset-tests (Makefile.am): New variable
80150         test_avltree_oset_LDADD.
80151         * modules/avltreehash-list-tests (Makefile.am): New variable
80152         test_avltreehash_list_LDADD.
80153         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
80154         test_canonicalize_lgpl_LDADD.
80155         * modules/carray-list-tests (Makefile.am): New variable
80156         test_carray_list_LDADD.
80157         * modules/dirname-tests (Makefile.am): New variable
80158         test_dirname_LDADD.
80159         * modules/linked-list-tests (Makefile.am): New variable
80160         test_linked_list_LDADD.
80161         * modules/linkedhash-list-tests (Makefile.am): New variable
80162         test_linkedhash_list_LDADD.
80163         * modules/rbtree-list-tests (Makefile.am): New variable
80164         test_rbtree_list_LDADD.
80165         * modules/rbtree-oset-tests (Makefile.am): New variable
80166         test_rbtree_oset_LDADD.
80167         * modules/rbtreehash-list-tests (Makefile.am): New variable
80168         test_rbtreehash_list_LDADD.
80169         * modules/xvasprintf-tests (Makefile.am): New variable
80170         test_xvasprintf_LDADD.
80171         Reported by Eric Blake.
80173 2007-04-03  Eric Blake  <ebb9@byu.net>
80175         * DEPENDENCIES: Weaken m4 requirements.
80177 2007-04-03  Bruno Haible  <bruno@clisp.org>
80179         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
80180         * modules/isnanl-tests (configure.ac): Likewise.
80182 2007-04-03  Ben Pfaff  <blp@gnu.org>
80184         * modules/iconv_open: Add $(srcdir)/ to source directory
80185         references in Makefile fragments that call gperf, to fix VPATH
80186         builds.
80188 2007-04-03  Bruno Haible  <bruno@clisp.org>
80190         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
80191         * lib/ldexpl.c: Undo last change.
80193 2007-04-03  Bruno Haible  <bruno@clisp.org>
80195         * modules/printf-frexpl (Depends-on): Undo last change.
80196         (Files): Add m4/ldexpl.m4.
80198 2007-04-03  Bruno Haible  <bruno@clisp.org>
80200         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
80201         * modules/isnanl (Link): New section.
80203         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
80204         * modules/frexp (Link): New section.
80206         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
80207         * modules/frexpl (Link): New section.
80209         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
80210         * modules/ldexpl (Link): New section.
80212 2007-04-03  Bruno Haible  <bruno@clisp.org>
80214         * modules/TEMPLATE-EXTENDED: New file.
80215         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
80217 2007-04-03  Bruno Haible  <bruno@clisp.org>
80219         * DEPENDENCIES: New file.
80220         Suggested by Simon Josefsson.
80222 2007-04-03  Bruno Haible  <bruno@clisp.org>
80224         * doc/gnulib.texi: Escape @.
80226 2007-04-03  James Youngman  <jay@gnu.org>
80227         and Paul Eggert  <eggert@cs.ucla.edu>
80229         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
80230         birthtime on all systems that have birthtime, not just those which
80231         use st_birthtimensec rather than st_birthtim.  Putting zero in
80232         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
80233         that the birth time is not available for files on an NFS mount.
80235 2007-04-03  Simon Josefsson  <simon@josefsson.org>
80237         * modules/memxor: Move back from crypto/, suggested by Bruno.
80238         * modules/crypto/hmac-sha1: Fix memxor dependency.
80240         * modules/crypto/gc: Moved from ../.
80242 2007-04-02  Eric Blake  <ebb9@byu.net>
80244         * lib/ldexpl.c (includes): Avoid libm.
80246         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
80248 2007-04-02  Bruno Haible  <bruno@clisp.org>
80250         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
80251         on IRIX.
80253 2007-04-02  Bruno Haible  <bruno@clisp.org>
80255         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
80256         x86 or x86_64 platforms running MacOS X.
80257         Reported by Ryan Schmidt <@ryandesign.com>.
80259 2007-04-02  Bruno Haible  <bruno@clisp.org>
80261         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
80262         i386.
80264 2007-04-01  Simon Josefsson  <simon@josefsson.org>
80266         * modules/crypto/arcfour: Moved from ../.
80267         * modules/crypto/arcfour-tests: Moved from ../.
80268         * modules/crypto/arctwo: Moved from ../.
80269         * modules/crypto/arctwo-tests: Moved from ../.
80270         * modules/crypto/des: Moved from ../.
80271         * modules/crypto/des-tests: Moved from ../.
80272         * modules/crypto/gc-arcfour: Moved from ../.
80273         * modules/crypto/gc-arcfour-tests: Moved from ../.
80274         * modules/crypto/gc-arctwo: Moved from ../.
80275         * modules/crypto/gc-arctwo-tests: Moved from ../.
80276         * modules/crypto/gc-des: Moved from ../.
80277         * modules/crypto/gc-des-tests: Moved from ../.
80278         * modules/crypto/gc-hmac-md5: Moved from ../.
80279         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
80280         * modules/crypto/gc-hmac-sha1: Moved from ../.
80281         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
80282         * modules/crypto/gc-md2: Moved from ../.
80283         * modules/crypto/gc-md2-tests: Moved from ../.
80284         * modules/crypto/gc-md4: Moved from ../.
80285         * modules/crypto/gc-md4-tests: Moved from ../.
80286         * modules/crypto/gc-md5: Moved from ../.
80287         * modules/crypto/gc-md5-tests: Moved from ../.
80288         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
80289         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
80290         * modules/crypto/gc-random: Moved from ../.
80291         * modules/crypto/gc-rijndael: Moved from ../.
80292         * modules/crypto/gc-rijndael-tests: Moved from ../.
80293         * modules/crypto/gc-sha1: Moved from ../.
80294         * modules/crypto/gc-sha1-tests: Moved from ../.
80295         * modules/crypto/gc-tests: Moved from ../.
80296         * modules/crypto/hmac-md5: Moved from ../.
80297         * modules/crypto/hmac-md5-tests: Moved from ../.
80298         * modules/crypto/hmac-sha1: Moved from ../.
80299         * modules/crypto/hmac-sha1-tests: Moved from ../.
80300         * modules/crypto/md2: Moved from ../.
80301         * modules/crypto/md2-tests: Moved from ../.
80302         * modules/crypto/md4: Moved from ../.
80303         * modules/crypto/md4-tests: Moved from ../.
80304         * modules/crypto/md5: Moved from ../.
80305         * modules/crypto/md5-tests: Moved from ../.
80306         * modules/crypto/memxor: Moved from ../.
80307         * modules/crypto/rijndael: Moved from ../.
80308         * modules/crypto/rijndael-tests: Moved from ../.
80309         * modules/crypto/sha1: Moved from ../.
80311 2007-03-30  James Youngman  <jay@gnu.org>
80313         * tests/test-stat-time.c (prepare_test): use chmod() rather than
80314         rename() to change the ctime of a file (because ctime is unaffected
80315         by rename on jfs2 on AIX 5.1).
80316         (main): Start by doing cleanup, in case a previous run failed leaving
80317         test files behind.
80319 2007-03-31  Bruno Haible  <bruno@clisp.org>
80321         Support old proprietary implementations of iconv.
80322         * modules/iconv_open: New file.
80323         * lib/iconv_.h: New file.
80324         * m4/iconv_h.m4: New file.
80325         * lib/iconv_open.c: New file.
80326         * lib/iconv_open-aix.gperf: New file.
80327         * lib/iconv_open-hpux.gperf: New file.
80328         * lib/iconv_open-irix.gperf: New file.
80329         * lib/iconv_open-osf.gperf: New file.
80330         * m4/iconv_open.m4: New file.
80331         * modules/linebreak (Depends-on): Add iconv_open.
80332         * modules/striconv (Depends-on): Likewise.
80333         * modules/striconveh (Depends-on): Likewise.
80334         * modules/unicodeio (Depends-on): Likewise.
80335         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
80336         (iconv_t)(-1).
80337         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
80338         conversion if cd is (iconv_t)(-1).
80339         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
80340         is not possible.
80342 2007-03-31  Bruno Haible  <bruno@clisp.org>
80344         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
80345         work on Solaris either. Protect also second use of "autodetect_jp".
80347 2007-03-31  Bruno Haible  <bruno@clisp.org>
80349         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
80350         the function is not present.
80352 2007-03-31  Bruno Haible  <bruno@clisp.org>
80354         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
80355         the function is not present.
80357 2007-03-31  Bruno Haible  <bruno@clisp.org>
80359         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
80360         a bug in HP-UX iconv_open().
80362 2007-03-31  Bruno Haible  <bruno@clisp.org>
80364         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
80365         (Mathematics <math.h>): New section, add fpieee.
80366         (Input/output <stdio.h>): Add fseterr.
80367         (Mathematics <math.h>): New section, add printf-frexp.
80368         (Container data structures): Add sublist.
80369         (Core language properties): Add fpucw, inline.
80370         (Functions for greatest-width integer types <inttypes.h>): Add
80371         imaxabs, imaxdiv, inttypes.
80372         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
80373         isnanl-nolibm, ldexp.
80374         (Mathematics <math.h>): New section, add printf-frexpl.
80375         (Support for systems lacking POSIX:2001): Add fprintf-posix,
80376         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
80377         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
80378         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
80379         (Unicode string functions): Add unistr/u*-mbtoucr.
80380         (Java): Add javacomp-script, javaexec-script.
80381         (C#): Add csharpcomp-script, csharpexec-script.
80382         (Support for building libraries and executables): Add havelib,
80383         relocatable-*.
80384         (Support for maintaining and releasing projects): Renamed from
80385         'Support for maintaining and release projects'. Add announce-gen.
80387 2007-03-31  Bruno Haible  <bruno@clisp.org>
80389         * README: Talk primarily about git.
80390         (git and CVS): Renamed from CVS.
80391         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
80392         gnulib is available through git.
80393         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
80395 2007-03-30  Bruno Haible  <bruno@clisp.org>
80397         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
80398         * lib/poll_.h: Likewise.
80399         * lib/stat_.h: Likewise.
80400         * lib/sys_time_.h: Likewise.
80401         * lib/sysexit_.h: Likewise.
80402         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
80403         * lib/stdbool_.h: Likewise.
80404         * lib/byteswap_.h: Add double-inclusion guard.
80406 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
80408         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
80410 2007-03-30  Karl Berry  <karl@gnu.org>
80412         * config/srclist-update: double space after USA in the license
80413         substitution, since that's how it's usually (?) written.
80415 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
80417         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
80418         reported by Bruno Haible.
80420 2007-03-29  Bruno Haible  <bruno@clisp.org>
80422         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
80423         a bug in AIX iconv().
80425 2007-03-29  Bruno Haible  <bruno@clisp.org>
80427         * modules/ldexpl-tests: New file.
80428         * tests/test-ldexpl.c: New file.
80430 2007-03-29  Bruno Haible  <bruno@clisp.org>
80432         * lib/ldexpl.c: Include fpucw.h.
80433         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
80434         multiplication.
80435         * modules/ldexpl (Depends-on): Add fpucw.
80437 2007-03-29  Bruno Haible  <bruno@clisp.org>
80439         * modules/ldexpl: New file.
80440         * m4/ldexpl.m4: New file.
80441         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
80442         set.
80443         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
80444         REPLACE_LDEXPL.
80445         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
80446         REPLACE_LDEXPL.
80447         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
80448         gl_FUNC_LDEXPL_WORKS.
80449         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
80450         * modules/mathl (Files): Remove lib/ldexpl.c.
80451         (Depends-on): Add ldexpl.
80453 2007-03-29  Bruno Haible  <bruno@clisp.org>
80455         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
80457 2007-03-29  Bruno Haible  <bruno@clisp.org>
80459         * tests/test-striconveh.c (main): Don't assume that a direct conversion
80460         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
80461         and possibly also HP-UX.
80462         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
80463         work on AIX, IRIX, HP-UX, OSF/1.
80464         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
80465         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
80466         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
80467         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
80468         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
80469         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
80471 2007-03-29  Bruno Haible  <bruno@clisp.org>
80473         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
80475 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
80477         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
80478         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
80480 2007-03-29  Eric Blake  <ebb9@byu.net>
80482         * lib/acl-internal.h: Remove redundant include.
80483         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
80484         Cygwin when a file is locked.
80486 2007-03-29  Bruno Haible  <bruno@clisp.org>
80488         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
80489         file.
80490         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
80492 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
80494         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
80495         try to remove a parent directory if the child couldn't be removed
80496         (except for the first rmdir, which could fail because the child
80497         doesn't exist).  Problem reported by Jeff Blaine in
80498         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
80500 2007-03-28  Bruno Haible  <bruno@clisp.org>
80502         * lib/striconveh.c (utf8conv_carefully): New function.
80503         (mem_cd_iconveh_internal): Invoke it.
80505 2007-03-28  Bruno Haible  <bruno@clisp.org>
80507         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
80508         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
80509         input.
80510         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
80511         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
80512         unistr/u8-uctomb.
80514 2007-03-28  Bruno Haible  <bruno@clisp.org>
80516         * modules/unistr/u8-mbtoucr: New file.
80517         * lib/unistr/u8-mbtoucr.c: New file.
80518         * modules/unistr/u16-mbtoucr: New file.
80519         * lib/unistr/u16-mbtoucr.c: New file.
80520         * modules/unistr/u16-mbtoucr: New file.
80521         * lib/unistr/u16-mbtoucr.c: New file.
80522         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
80524 2007-03-27  Simon Josefsson  <simon@josefsson.org>
80525             Bruno Haible  <bruno@clisp.org>
80527         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
80528         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
80529         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
80531         * m4/stdio_h.m4: Add stubs for vasprintf too.
80533         * modules/stdio: Support vasprintf in sed command.
80535         * modules/vasprintf: Depend on stdio for prototypes.  Remove
80536         vasprintf.h.  Add stdio module indicator.
80538         * lib/stdio_.h: Declare asprintf and vasprintf, based on
80539         vasprintf.h.
80541         * lib/vasprintf.h: File removed.
80543         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
80544         * lib/vasprintf.c: Ditto.
80545         * lib/xvasprintf.c: Ditto.
80546         * tests/test-vasprintf-posix.c: Ditto.
80547         * tests/test-vasprintf.c: Ditto.
80549 2007-03-27  Bruno Haible  <bruno@clisp.org>
80551         Make vasnprintf multithread-safe.
80552         * lib/vasnprintf.c (decimal_point_char): New function.
80553         (VASNPRINTF): Use it.
80554         Suggested by Simon Josefsson.
80556 2007-03-27  Eric Blake  <ebb9@byu.net>
80558         Support sub-second birthtime on cygwin.
80559         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
80560         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
80561         (get_stat_birthtime): Also work with st_birthtim.
80563 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
80565         * lib/stat-time.h (USE_BIRTHTIME): Remove.
80566         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
80567         (get_stat_birthtime_ns): Do not try to use "spare" fields.
80568         (get_stat_birthtime_ns): Simplify compile-time tests.
80569         (get_stat_birthtime): Change the API to look like
80570         get_stat_mtime etc., except return a negative tv_nsec on error.
80571         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
80572         Don't check for "spare" fields.
80573         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
80574         or for struct stat.st_birthtime, as these tests aren't used.
80575         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
80577 2007-03-27  Bruno Haible  <bruno@clisp.org>
80579         * lib/stat-time.h: Include <sys/stat.h>.
80581 2007-03-27  James Youngman  <jay@gnu.org>
80583         * lib/stat-time.h (get_stat_birthtime): New function for
80584           retrieving st_birthtime as provided by UFS2 (hence *BSD).
80585         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
80586           and its variants.
80587         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
80588         * modules/stat-time-test: New file.
80589         * tests/test-stat-time.c: New test, devised by Bruno Haible.
80591 2007-03-26  Bruno Haible  <bruno@clisp.org>
80593         Better support of signalling NaNs.
80594         * lib/atanl.c: Include isnanl.h.
80595         (atanl): Perform test for NaN at the beginning of the function and
80596         through a call to isnanl.
80597         * lib/cosl.c: Include isnanl.h.
80598         (cosl): Perform test for NaN at the beginning of the function and
80599         through a call to isnanl.
80600         * lib/ldexpl.c: Include isnanl.h.
80601         (ldexpl): Perform test for NaN through a call to isnanl.
80602         * lib/logl.c: Include isnanl.h.
80603         (logl): Perform test for NaN at the beginning of the function and
80604         through a call to isnanl.
80605         * lib/sinl.c: Include isnanl.h.
80606         (sinl): Perform test for NaN at the beginning of the function and
80607         through a call to isnanl.
80608         * lib/sqrtl.c: Include isnanl.h.
80609         (sqrtl): Perform test for NaN at the beginning of the function and
80610         through a call to isnanl.
80611         * lib/tanl.c: Include isnanl.h.
80612         (tanl): Perform test for NaN at the beginning of the function and
80613         through a call to isnanl.
80614         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
80615         * modules/mathl (Depends-on): Add isnanl.
80617 2007-03-26  Eric Blake  <ebb9@byu.net>
80619         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
80620         regression in logic sense of previous patch.
80622 2007-03-26  Bruno Haible  <bruno@clisp.org>
80624         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
80625         unportable shell command "if ! ...".
80626         Reported by Ralf Wildenhues.
80628 2007-03-25  Bruno Haible  <bruno@clisp.org>
80630         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
80631         <sysexits.h> file, and only add EX_CONFIG.
80632         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
80633         absolute file name and whether it is sufficient. Substitute also
80634         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
80635         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
80636         ABSOLUTE_SYSEXITS_H into sysexits.h.
80638 2007-03-25  Bruno Haible  <bruno@clisp.org>
80640         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
80641         hints is NULL.
80643 2007-03-25  Bruno Haible  <bruno@clisp.org>
80645         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
80646         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
80648 2007-03-25  Bruno Haible  <bruno@clisp.org>
80650         * lib/vasnprintf.c: Include langinfo.h.
80651         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
80652         multithread-safe.
80653         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
80654         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
80655         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
80656         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
80657         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
80658         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
80659         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
80660         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
80661         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
80662         Reported by Simon Josefsson.
80664 2007-03-25  Bruno Haible  <bruno@clisp.org>
80666         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
80667         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
80668         * modules/vasnprintf (Depends-on): Add stdint.
80670 2007-03-25  Bruno Haible  <bruno@clisp.org>
80672         * modules/fpieee: New file.
80673         * m4/fpieee.m4: New file.
80674         * modules/isnan-nolibm (Depends-on): Add fpieee.
80675         * modules/isnanl-nolibm (Depends-on): Add fpieee.
80676         * modules/isnanl (Depends-on): Add fpieee.
80678 2007-03-25  Bruno Haible  <bruno@clisp.org>
80680         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
80682 2007-03-25  Bruno Haible  <bruno@clisp.org>
80684         Avoid test failures on IRIX 6.5.
80685         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
80686         (main): Use it.
80687         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
80688         macros.
80689         (main): Use them.
80691 2007-03-25  Bruno Haible  <bruno@clisp.org>
80693         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
80694         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
80695         exists but doesn't work.
80696         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
80697         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
80698         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
80699         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
80700         math.h.
80702 2007-03-25  Bruno Haible  <bruno@clisp.org>
80704         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
80705         returns inf. Needed on IRIX 6.5.
80707 2007-03-25  Bruno Haible  <bruno@clisp.org>
80709         * tests/test-frexpl.c: Include isnanl-nolibm.h.
80710         (main): Use isnanl instead of x != x idiom.
80711         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
80713         * tests/test-frexp.c: Include isnan.h.
80714         (main): Use isnan instead of x != x idiom.
80715         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
80717 2007-03-25  Bruno Haible  <bruno@clisp.org>
80719         * tests/test-frexp.c (NaN): New function/macro.
80720         (main): Use it instead of 0.0 / 0.0.
80721         * tests/test-isnan.c (NaN): New function/macro.
80722         (main): Use it instead of 0.0 / 0.0.
80723         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
80724         (test_function): Use it instead of 0.0 / 0.0.
80725         * tests/test-vasprintf-posix.c (NaN): New function/macro.
80726         (test_function): Use it instead of 0.0 / 0.0.
80727         * tests/test-snprintf-posix.h (NaN): New function/macro.
80728         (test_function): Use it instead of 0.0 / 0.0.
80729         * tests/test-sprintf-posix.h (NaN): New function/macro.
80730         (test_function): Use it instead of 0.0 / 0.0.
80731         * tests/test-fprintf-posix.h (NaN): New function/macro.
80732         (test_function): Use it instead of 0.0 / 0.0.
80733         * tests/test-printf-posix.h (NaN): New function/macro.
80734         (test_function): Use it instead of 0.0 / 0.0.
80736         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
80738 2007-03-25  Bruno Haible  <bruno@clisp.org>
80740         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
80742 2007-03-25  Bruno Haible  <bruno@clisp.org>
80744         * lib/regexec.c (merge_state_with_log): Make static.
80746 2007-03-25  Bruno Haible  <bruno@clisp.org>
80748         * lib/trigl.c (kernel_rem_pio2): Make static.
80750 2007-03-25  Bruno Haible  <bruno@clisp.org>
80752         * lib/sincosl.c (sincosl_table): Make static.
80754 2007-03-25  Bruno Haible  <bruno@clisp.org>
80756         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
80757         if the compiler does not support C99.
80759 2007-03-25  Bruno Haible  <bruno@clisp.org>
80761         * modules/time (Makefile.am): Ensure all rule action lines start with a
80762         tab.
80764 2007-03-24  Bruno Haible  <bruno@clisp.org>
80766         * modules/tsearch-tests: New file.
80767         * tests/test-tsearch.sh: New file.
80768         * tests/test-tsearch.c: New file, mostly copied from glibc.
80770         * modules/search-tests: New file.
80771         * tests/test-search.c: New file.
80773         * modules/search: New file.
80774         * lib/search_.h: New file, incorporating lib/tsearch.h.
80775         * m4/search_h.m4: New file.
80776         * lib/tsearch.h: Remove file.
80777         * lib/tsearch.c: Include search.h instead of tsearch.h.
80778         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
80779         HAVE_TSEARCH.
80780         * modules/tsearch (Files): Remove lib/tsearch.h.
80781         (Depends-on): Add search.
80782         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
80783         (Include): Change tsearch.h into search.h.
80785 2007-03-24  Bruno Haible  <bruno@clisp.org>
80787         * modules/fpucw: New file.
80788         * lib/fpucw.h: New file.
80789         * lib/frexp.c: Include fpucw.h.
80790         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
80791         (FUNC): Use them.
80792         * lib/printf-frexp.c: Include fpucw.h.
80793         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
80794         (FUNC): Use them.
80795         * lib/vasnprintf.c: Include fpucw.h.
80796         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
80797         'long double' calculations.
80798         * tests/test-frexpl.c: Include fpucw.h.
80799         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
80800         * tests/test-printf-frexpl.c: Include fpucw.h.
80801         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
80802         * modules/frexpl (Depends-on): Add fpucw.
80803         * modules/printf-frexpl (Depends-on): Likewise.
80804         * modules/fprintf-posix (Depends-on): Likewise.
80805         * modules/snprintf-posix (Depends-on): Likewise.
80806         * modules/sprintf-posix (Depends-on): Likewise.
80807         * modules/vasnprintf-posix (Depends-on): Likewise.
80808         * modules/vasprintf-posix (Depends-on): Likewise.
80809         * modules/vfprintf-posix (Depends-on): Likewise.
80810         * modules/vsnprintf-posix (Depends-on): Likewise.
80811         * modules/vsprintf-posix (Depends-on): Likewise.
80812         * modules/frexpl-tests (Depends-on): Likewise.
80813         * modules/printf-frexpl-tests (Depends-on): Likewise.
80815 2007-03-24  Bruno Haible  <bruno@clisp.org>
80817         * lib/float+.h: New file.
80818         * lib/isnan.c: Include float+.h.
80819         (SIZE): New macro.
80820         (FUNC): Compare only SIZE bytes of the value.
80821         * lib/vasnprintf.c: Include float+.h.
80822         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
80823         SIZEOF_LDBL or SIZEOF_DBL bytes.
80824         * modules/isnan-nolibm (Files): Add lib/float+.h.
80825         * modules/isnanl-nolibm (Files): Add lib/float+.h.
80826         * modules/isnanl (Files): Add lib/float+.h.
80827         * modules/vasnprintf (Files): Add lib/float+.h.
80829 2007-03-24  Bruno Haible  <bruno@clisp.org>
80831         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
80832         include isnanl-nolibm.h.
80834 2007-03-24  Bruno Haible  <bruno@clisp.org>
80836         * tests/test-read-file.c (main): Don't produce spurious output for
80837         expected situations. Make the test fail if it encountered unexpected
80838         results.
80840 2007-03-24  Bruno Haible  <bruno@clisp.org>
80842         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
80843         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
80845 2007-03-24  Bruno Haible  <bruno@clisp.org>
80847         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
80849 2007-03-24  Bruno Haible  <bruno@clisp.org>
80851         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
80852         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
80854         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
80855         * modules/utf8-ucs4: Turn into a symbolic link to module
80856         unistr/u8-mbtouc.
80858         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
80859         utf8-ucs4-unsafe.
80860         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
80861         unistr/u8-mbtouc-unsafe.
80863         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
80864         * modules/utf16-ucs4: Turn into a symbolic link to module
80865         unistr/u16-mbtouc.
80867         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
80868         utf16-ucs4-unsafe.
80869         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
80870         unistr/u16-mbtouc-unsafe.
80872         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
80873         * modules/ucs4-utf8: Turn into a symbolic link to module
80874         unistr/u8-ubtomb.
80876         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
80877         * modules/ucs4-utf16: Turn into a symbolic link to module
80878         unistr/u16-ubtomb.
80880 2007-03-24  Bruno Haible  <bruno@clisp.org>
80882         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
80883         Enable the function only if HAVE_INLINE.
80884         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
80885         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
80886         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
80887         Enable the function only if HAVE_INLINE.
80888         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
80889         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
80890         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
80891         Enable the function only if HAVE_INLINE.
80892         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
80893         Enable the function only if HAVE_INLINE.
80894         * modules/utf8-ucs4: Update.
80895         * modules/utf8-ucs4-unsafe: Update.
80896         * modules/utf16-ucs4: Update.
80897         * modules/utf16-ucs4-unsafe: Update.
80898         * modules/ucs4-utf8: Update.
80899         * modules/ucs4-utf16: Update.
80901 2007-03-24  Bruno Haible  <bruno@clisp.org>
80903         * lib/utf8-ucs4.h: Remove file.
80904         * lib/utf8-ucs4-unsafe.h: Remove file.
80905         * lib/utf16-ucs4.h: Remove file.
80906         * lib/utf16-ucs4-unsafe.h: Remove file.
80907         * lib/ucs4-utf8.h: Remove file.
80908         * lib/ucs4-utf16.h: Remove file.
80909         * lib/unistr.h: Include their previous contents.
80910         * m4/utf-ucs4.m4: Remove file.
80911         * m4/ucs4-utf.m4: Remove file.
80912         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
80913         (Depends-on): Add unistr/base.
80914         (configure.ac): Remove gl_UTF_UCS4.
80915         (Makefile.am): Update.
80916         (Include): Change to unistr.h.
80917         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
80918         (Depends-on): Add unistr/base.
80919         (configure.ac): Remove gl_UTF_UCS4.
80920         (Makefile.am): Update.
80921         (Include): Change to unistr.h.
80922         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
80923         (Depends-on): Add unistr/base.
80924         (configure.ac): Remove gl_UTF_UCS4.
80925         (Makefile.am): Update.
80926         (Include): Change to unistr.h.
80927         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
80928         (Depends-on): Add unistr/base.
80929         (configure.ac): Remove gl_UTF_UCS4.
80930         (Makefile.am): Update.
80931         (Include): Change to unistr.h.
80932         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
80933         (Depends-on): Add unistr/base.
80934         (configure.ac): Remove gl_UCS4_UTF.
80935         (Makefile.am): Update.
80936         (Include): Change to unistr.h.
80937         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
80938         (Depends-on): Add unistr/base.
80939         (configure.ac): Remove gl_UCS4_UTF.
80940         (Makefile.am): Update.
80941         (Include): Change to unistr.h.
80942         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
80943         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
80944         utf8-ucs4-unsafe.h.
80945         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
80946         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
80947         utf16-ucs4-unsafe.h.
80948         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
80949         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
80950         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
80951         * lib/unistr/u8-strchr.c: Likewise.
80952         * lib/unistr/u8-strrchr.c: Likewise.
80953         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
80954         * lib/unistr/u16-strchr.c: Likewise.
80955         * lib/unistr/u16-strrchr.c: Likewise.
80956         * lib/striconveh.c: Update.
80957         * lib/linebreak.c: Update.
80959 2007-03-24  Bruno Haible  <bruno@clisp.org>
80961         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
80962         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
80964 2007-03-22  Bruno Haible  <bruno@clisp.org>
80966         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
80968 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
80970         * MODULES.html.sh (File system functions): New module write-any-file.
80971         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
80972         * m4/write-any-file.m4: New files.
80974 2007-03-23  Eric Blake  <ebb9@byu.net>
80976         * gnulib-tool: Rearrange space-tab sequences, since some editors
80977         like to eat them.
80979 2007-03-23  Eric Blake  <ebb9@byu.net>
80981         * lib/version-etc.c (version_etc_va): Update license wording to
80982         be more concise.  Recommended by Richard Stallman.
80984 2007-03-22  Bruno Haible  <bruno@clisp.org>
80986         * lib/poll.c (MSG_PEEK): New fallback definition.
80988 2007-03-22  Bruno Haible  <bruno@clisp.org>
80990         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
80991         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
80992         (main): Update.
80993         Fixes a compilation error on BeOS.
80995 2007-03-22  Bruno Haible  <bruno@clisp.org>
80997         * modules/frexpl-tests: New file.
80998         * tests/test-frexpl.c: New file.
81000         * modules/frexpl: New file.
81001         * m4/frexpl.m4: New file.
81002         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
81003         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
81004         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
81005         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
81006         (Depends-on): Add frexpl. Remove isnanl-nolibm.
81007         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
81009 2007-03-22  Bruno Haible  <bruno@clisp.org>
81011         * lib/frexpl.c: Share code with lib/frexp.c.
81012         * modules/mathl (Files): Add lib/frexp.c.
81013         (Depends-on): Add isnanl-nolibm.
81015 2007-03-22  Bruno Haible  <bruno@clisp.org>
81017         * modules/printf-frexp (Files): Add m4/frexp.m4.
81018         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
81019         only if the found frexp function actually works.
81021 2007-03-22  Bruno Haible  <bruno@clisp.org>
81023         * lib/frexp.c: Remove older implementation that uses divisions.
81025 2007-03-21  Bruno Haible  <bruno@clisp.org>
81027         * modules/frexp-tests: New file.
81028         * tests/test-frexp.c: New file.
81030         * modules/frexp: New file.
81031         * lib/frexp.c: New file.
81032         * m4/frexp.m4: New file.
81033         * lib/math_.h (frexp): New declaration.
81034         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
81035         REPLACE_FREXP.
81036         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
81038 2007-03-21  Bruno Haible  <bruno@clisp.org>
81040         * modules/isnanl-tests: New file.
81041         * tests/test-isnanl.c: New file.
81043         * modules/isnanl: New file.
81044         * lib/isnanl.h: New file.
81045         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
81046         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
81047         gl_FUNC_ISNANL_WORKS.
81048         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
81049         New macros.
81051 2007-03-21  Bruno Haible  <bruno@clisp.org>
81053         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
81054         lib/isnanl.h.
81055         (Include): Update.
81056         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
81057         * lib/vasnprintf.c: Update.
81058         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
81059         tests/test-isnanl.h, remove tests/test-isnanl.c.
81060         (Makefile.am): Update.
81061         * tests/test-isnanl-nolibm.c: New file.
81062         * tests/test-isnanl.h: New file.
81063         * tests/test-isnanl.c: Remove file.
81065 2007-03-21  Jim Meyering  <jim@meyering.net>
81067         When trying to open ".", treat ESTALE like EACCES.
81068         * lib/savewd.c (savewd_save): Resort to forking not just upon
81069         failure with EACCES, but also when errno is ESTALE.
81071 2007-03-20  Bruno Haible  <bruno@clisp.org>
81073         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
81074         Needed on AIX 5.1. Reported by Matthew Woehlke.
81076 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
81078         Suggestions by Bruno Haible:
81079         * lib/acl-internal.h: Include "gettext.h" rather than rolling
81080         our own.
81081         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
81082         * modules/acl (Depends-on): Add gettext.
81084 2007-03-19  Bruno Haible  <bruno@clisp.org>
81086         * modules/iconvme: Remove file.
81087         * lib/iconvme.h: Remove file.
81088         * lib/iconvme.c: Remove file.
81089         * m4/iconvme.m4: Remove file.
81091 2007-03-19  Bruno Haible  <bruno@clisp.org>
81093         * doc/relocatable-maint.texi: Break long shell script line.
81094         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
81096 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
81098         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
81099         handle file_has_acl.
81100         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
81101         * lib/acl.c: Move header inclusions and related macro defns into
81102         lib/acl-internal.h.
81103         (S_ISLNK): Remove defn, since that's now done for us.
81104         (file_has_acl): Move to lib/file-has-acl.c.
81105         Call acl_trivial if available.  This is the crucial part of the fix.
81106         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
81107         shared within the library.  Rewrite a bit, partly to make it compatible
81108         with the GNU coding style.
81109         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
81110         Remove unnecessary double-quotes.
81111         Don't test for acl_to_text; the build will catch that.
81112         Replace acl_entries if it doesn't exist and it is needed.
81113         Check for -lsec and acl_trivial (as used on Solaris 10).
81114         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
81115         lib/file-has-acl.c.
81116         (Depends-on): Add sys_stat, for S_ISLNK.
81118 2007-03-19  Ben Pfaff  <blp@gnu.org>
81120         * doc/gnulib.texi: Fix typos.
81121         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
81123 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
81125         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
81126         If size is zero here, buf must be zero.
81128 2007-03-19  Simon Josefsson  <simon@josefsson.org>
81130         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
81131         <bruno@clisp.org>.
81133 2007-03-18  Bruno Haible  <bruno@clisp.org>
81135         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
81136         Suggested by Eric Blake.
81138 2007-03-18  Ben Pfaff  <blp@gnu.org>
81140         * doc/relocatable.texi: Recommend using as prefix a directory
81141         that does not exist and will never be created.  Based on
81142         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
81143         and others.
81145 2007-03-17  Bruno Haible  <bruno@clisp.org>
81147         * lib/fchownat.c: Include lchown.h.
81149 2007-03-17  Bruno Haible  <bruno@clisp.org>
81151         Fix endless loop when the given allocated size was > INT_MAX.
81152         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
81153         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
81154         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
81155         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
81156         * lib/sprintf.c (sprintf): Likewise.
81158 2007-03-17  Bruno Haible  <bruno@clisp.org>
81160         * tests/test-argp-2.sh (func_compare): Output a context diff.
81162 2007-03-17  Bruno Haible  <bruno@clisp.org>
81164         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
81165         locale's decimal-point character.
81167 2007-03-17  Bruno Haible  <bruno@clisp.org>
81169         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
81170         before comparing it. Needed because on some platforms (e.g. x86) a
81171         'long double' occupies less bytes than sizeof (long double).
81173 2007-03-17  Bruno Haible  <bruno@clisp.org>
81175         * tests/test-crc.c (main): Make printf statements 64-bit clean.
81176         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
81177         * tests/test-getaddrinfo.c (simple): Likewise.
81178         * tests/test-read-file.c (main): Likewise.
81180 2007-03-17  Bruno Haible  <bruno@clisp.org>
81182         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
81184 2007-03-17  Bruno Haible  <bruno@clisp.org>
81186         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
81187         unused variable.
81189 2007-03-17  Bruno Haible  <bruno@clisp.org>
81191         * tests/test-c-strcasecmp.c: Include c-strcase.h.
81192         * tests/test-c-strncasecmp.c: Likewise.
81194 2007-03-17  Bruno Haible  <bruno@clisp.org>
81196         * modules/stdlib (Depends-on): Add unistd.
81197         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
81198         Needed for MacOS X 10.3.
81200 2007-03-17  Bruno Haible  <bruno@clisp.org>
81202         * lib/unistr/u-strdup.h: Include <stdlib.h>.
81204 2007-03-17  Bruno Haible  <bruno@clisp.org>
81206         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
81208 2007-03-17  Bruno Haible  <bruno@clisp.org>
81210         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
81211         to reflect files copied from gnulib (with or without modifications).
81212         Suggested by Jim Meyering.
81214 2007-03-17  Eric Blake  <ebb9@byu.net>
81216         * NEWS: Document stdlib change from 2007-02-18.
81218 2007-03-17  Jim Meyering  <jim@meyering.net>
81220         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
81221         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
81222         someone uses a name containing shell meta-characters.
81223         Reported by Alfred M. Szmidt.
81225         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
81227 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
81229         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
81230         and copy gettext configuration files only if configure.ac contains
81231         a use of AM_GNU_GETTEXT_VERSION.
81233 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
81235         * build-aux/bootstrap (gnulib_name): New variable.
81236         (gnulib_tool_options): Use it.
81238 2007-03-13  Simon Josefsson  <simon@josefsson.org>
81240         * tests/test-des.c: Use new namespace.
81242 2007-03-15  Bruno Haible  <bruno@clisp.org>
81244         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
81245         Reported by James Youngman <jay@gnu.org>.
81247 2007-03-15  Bruno Haible  <bruno@clisp.org>
81249         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
81250         declared prototype. Needed with cc on OSF/1 5.1.
81252 2007-03-15  Bruno Haible  <bruno@clisp.org>
81254         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
81255         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
81256         (struct gl_list_implementation): Add dispose_fn argument to the
81257         'create_empty', 'create' methods.
81258         (struct gl_list_impl_base): Add field 'dispose_fn'.
81259         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
81260         argument.
81261         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
81262         dispose_fn argument.
81263         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
81264         dispose_fn on the dropped values.
81265         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
81266         dispose_fn argument.
81267         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
81268         dropped values.
81269         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
81270         (gl_tree_remove_node): Call dispose_fn on the dropped value.
81271         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
81272         (gl_tree_remove_node): Call dispose_fn on the dropped value.
81273         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
81274         argument.
81275         (gl_tree_list_free): Call dispose_fn on the dropped values.
81276         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
81277         the dropped values.
81278         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
81279         Add dispose_fn argument.
81280         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
81281         Call dispose_fn on the dropped values.
81282         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
81283         Add dispose_fn argument.
81284         (gl_sublist_create): Initialize the 'dispose_fn' field.
81285         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
81286         * tests/test-array_list.c (main): Update.
81287         * tests/test-carray_list.c (main): Update.
81288         * tests/test-avltree_list.c (main): Update.
81289         * tests/test-rbtree_list.c (main): Update.
81290         * tests/test-avltreehash_list.c (main): Update.
81291         * tests/test-rbtreehash_list.c (main): Update.
81292         * tests/test-linked_list.c (main): Update.
81293         * tests/test-linkedhash_list.c (main): Update.
81294         * tests/test-array_oset.c (main): Update.
81296 2007-03-15  Bruno Haible  <bruno@clisp.org>
81298         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
81299         (gl_oset_create_empty): Add dispose_fn argument.
81300         (struct gl_oset_implementation): Add dispose_fn argument to
81301         'create_empty' method.
81302         (struct gl_oset_impl_base): Add dispose_fn field.
81303         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
81304         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
81305         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
81306         values.
81307         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
81308         (gl_tree_oset_free): Call dispose_fn on the dropped values.
81309         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
81310         dropped value.
81311         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
81312         dropped value.
81313         * tests/test-array_oset.c (main): Update.
81314         * tests/test-avltree_oset.c (main): Update.
81315         * tests/test-rbtree_oset.c (main): Update.
81316         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
81318 2007-03-13  Bruno Haible  <bruno@clisp.org>
81320         * tests/test-stdbool.c (i): Update after last patch.
81322 2007-03-12  Bruno Haible  <bruno@clisp.org>
81324         * lib/quotearg.c: Include <wctype.h> early, before the definition of
81325         the iswprint macro. Needed on Solaris 2.5.1.
81327 2007-03-12  Bruno Haible  <bruno@clisp.org>
81329         * tests/test-printf-frexp.c (main): Declare x as volatile.
81331 2007-03-12  Simon Josefsson  <simon@josefsson.org>
81333         * doc/gnulib.texi (Build robot for gnulib): New section.
81335 2007-03-12  Jim Meyering  <jim@meyering.net>
81337         * build-aux/bootstrap: New file.
81338         * build-aux/bootstrap.conf: New file, from coreutils.
81340 2007-03-11  Bruno Haible  <bruno@clisp.org>
81342         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
81344 2007-03-12  Simon Josefsson  <simon@josefsson.org>
81346         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
81347         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
81348         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
81350 2007-03-11  Bruno Haible  <bruno@clisp.org>
81352         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
81353         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
81355 2007-03-11  Bruno Haible  <bruno@clisp.org>
81357         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
81358         formula. Needed for SunPRO C 5.0.
81360 2007-03-11  Bruno Haible  <bruno@clisp.org>
81362         * modules/long-options (Depends-on): Add getopt.
81364 2007-03-11  Bruno Haible  <bruno@clisp.org>
81366         * modules/modechange (Depends-on): Add stdbool.
81368 2007-03-11  Bruno Haible  <bruno@clisp.org>
81370         * modules/i-ring (Depends-on): Add stdbool.
81372 2007-03-11  Bruno Haible  <bruno@clisp.org>
81374         * modules/gc-des (Depends-on): Add stdbool.
81376 2007-03-11  Bruno Haible  <bruno@clisp.org>
81378         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
81380 2007-03-11  Bruno Haible  <bruno@clisp.org>
81382         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
81384 2007-03-11  Bruno Haible  <bruno@clisp.org>
81386         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
81388 2007-03-11  Bruno Haible  <bruno@clisp.org>
81390         * lib/vasnprintf.c (sprintf): Undefine.
81392 2007-03-11  Bruno Haible  <bruno@clisp.org>
81394         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
81395         initializers in SunPRO C and Compaq C compilers.
81397 2007-03-11  Bruno Haible  <bruno@clisp.org>
81399         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
81400         decrementing code ANSI C compliant.
81402 2007-03-11  Bruno Haible  <bruno@clisp.org>
81404         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
81405         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
81407 2007-03-11  Bruno Haible  <bruno@clisp.org>
81409         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
81410         <stdbool.h> substitute doesn't pass.
81412 2007-03-11  Bruno Haible  <bruno@clisp.org>
81414         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
81416 2007-03-11  Bruno Haible  <bruno@clisp.org>
81418         * gnulib-tool (func_create_megatestdir): Create also an autobuild
81419         script, for submission to autobuild.josefsson.org.
81421 2007-03-10  Bruno Haible  <bruno@clisp.org>
81423         * modules/canonicalize-lgpl-tests: New file.
81424         * tests/test-canonicalize-lgpl.sh: New file.
81425         * tests/test-canonicalize-lgpl.c: New file.
81427         * modules/c-strcase-tests: New file.
81428         * tests/test-c-strcase.sh: New file.
81429         * tests/test-c-strcasecmp.c: New file.
81430         * tests/test-c-strncasecmp.c: New file.
81432         * modules/atexit-tests: New file.
81433         * tests/test-atexit.sh: New file.
81434         * tests/test-atexit.c: New file.
81436 2007-03-10  Bruno Haible  <bruno@clisp.org>
81438         * tests/test-binary-io.sh: Use temporary filenames that are not so
81439         likely to clash with those of other tests (in a parallel make).
81440         * tests/test-binary-io.c: Likewise.
81442 2007-03-10  Bruno Haible  <bruno@clisp.org>
81444         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
81445         fallback; use #error instead.
81446         Suggested by Simon Josefsson.
81448 2007-03-10  Bruno Haible  <bruno@clisp.org>
81450         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
81451         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
81452         first and the last.
81454 2007-03-10  Bruno Haible  <bruno@clisp.org>
81456         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
81458 2007-03-10  Bruno Haible  <bruno@clisp.org>
81460         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
81461         "make distcheck".
81462         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
81463         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
81464         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
81466 2007-03-10  Bruno Haible  <bruno@clisp.org>
81468         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
81469         variable.
81470         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
81471         variable.
81473 2007-03-09  Eric Blake  <ebb9@byu.net>
81474         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
81476         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
81477         types are not being provided by gnulib.
81478         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
81479         types are supported.
81481 2007-03-10  Bruno Haible  <bruno@clisp.org>
81483         * lib/stdio_.h (__attribute__): New macro.
81484         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
81485         vsprintf): Specify __attribute__ __format__ for GCC.
81486         Suggested by Eric Blake.
81488 2007-03-09  Bruno Haible  <bruno@clisp.org>
81490         * modules/printf-posix-tests: New file.
81491         * tests/test-printf-posix.sh: New file.
81492         * tests/test-printf-posix.c: New file.
81494         * modules/printf-posix: New file.
81495         * lib/printf.c: New file.
81496         * m4/printf-posix-rpl.m4: New file.
81497         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
81498         REPLACE_PRINTF.
81499         * lib/stdio_.h (printf): New declaration.
81500         (format, __format__, ____printf____, ____scanf____, ____strftime____,
81501         ____strfmon____): New macros.
81502         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
81503         REPLACE_PRINTF.
81505 2007-03-09  Bruno Haible  <bruno@clisp.org>
81507         * tests/test-vasnprintf-posix2.sh: New file.
81508         * tests/test-vasnprintf-posix2.c: New file.
81509         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
81510         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
81511         (Makefile.am): Activate test-vasnprintf-posix2.sh.
81513         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
81514         a locale dependent decimal point, rather than always '.'.
81516 2007-03-09  Eric Blake  <ebb9@byu.net>
81518         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
81519         spite of platforms like Tandem/NSK that define it to -1.
81521 2007-03-08  Bruno Haible  <bruno@clisp.org>
81523         * modules/vprintf-posix-tests: New file.
81524         * tests/test-vprintf-posix.sh: New file.
81525         * tests/test-vprintf-posix.c: New file.
81526         * tests/test-printf-posix.h: New file.
81528         * modules/vprintf-posix: New file.
81529         * lib/vprintf.c: New file.
81530         * m4/vprintf-posix.m4: New file.
81531         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
81532         REPLACE_VPRINTF.
81533         * lib/stdio_.h (vprintf): New declaration.
81534         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
81535         REPLACE_VPRINTF.
81537 2007-03-08  Bruno Haible  <bruno@clisp.org>
81539         * modules/fprintf-posix-tests: New file.
81540         * tests/test-fprintf-posix.sh: New file.
81541         * tests/test-fprintf-posix.c: New file.
81543         * modules/fprintf-posix: New file.
81544         * lib/fprintf.c: New file.
81545         * m4/fprintf-posix.m4: New file.
81546         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
81547         REPLACE_FPRINTF.
81548         * lib/stdio_.h (fprintf): New declaration.
81549         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
81550         REPLACE_FPRINTF.
81552 2007-03-08  Bruno Haible  <bruno@clisp.org>
81554         * modules/vfprintf-posix-tests: New file.
81555         * tests/test-vfprintf-posix.sh: New file.
81556         * tests/test-vfprintf-posix.c: New file.
81557         * tests/test-fprintf-posix.h: New file.
81558         * tests/test-fprintf-posix.out: New file.
81560         * modules/vfprintf-posix: New file.
81561         * lib/vfprintf.c: New file.
81562         * m4/vfprintf-posix.m4: New file.
81563         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
81564         REPLACE_VFPRINTF.
81565         * lib/stdio_.h (vfprintf): New declaration.
81566         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
81567         REPLACE_VFPRINTF.
81569 2007-03-08  Bruno Haible  <bruno@clisp.org>
81571         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
81573 2007-03-08  Bruno Haible  <bruno@clisp.org>
81575         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
81576         instead of 'expr' invocations.
81577         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
81578         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
81579         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
81580         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
81581         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
81582         Suggested by Paul Eggert.
81584 2007-03-08  Bruno Haible  <bruno@clisp.org>
81586         * modules/fseterr-tests: New file.
81587         * tests/test-fseterr.c: New file.
81589         * modules/fseterr: New file.
81590         * lib/fseterr.h: New file.
81591         * lib/fseterr.c: New file.
81593 2007-03-08  Bruno Haible  <bruno@clisp.org>
81595         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
81596         * lib/getopt_.h: Likewise.
81597         * lib/mbswidth.h: Likewise.
81598         * lib/setenv.h: Likewise.
81599         * lib/vasnprintf.h: Likewise.
81600         * lib/vasprintf.h: Likewise.
81601         * lib/verror.h: Likewise.
81602         * lib/xsetenv.h: Likewise.
81603         * lib/xvasprintf.h: Likewise.
81605 2007-03-08  Jim Meyering  <jim@meyering.net>
81607         * users.txt: Add parted.
81609         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
81611 2007-03-07  Bruno Haible  <bruno@clisp.org>
81613         * m4/printf.m4: Make the shell script snippets copy&pastable.
81615 2007-03-02  Bruno Haible  <bruno@clisp.org>
81617         * lib/netinet_in_.h: New file.
81618         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
81619         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
81620         * modules/netinet_in (Files): Add lib/netinet_in_.h.
81621         (Depends-on): Add absolute-header.
81622         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
81623         into netinet/in.h.
81625 2007-03-03  Bruno Haible  <bruno@clisp.org>
81627         * lib/sys_select_.h: New file.
81628         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
81629         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
81630         * modules/sys_select (Files): Add lib/sys_select_.h.
81631         (Depends-on): Add absolute-header.
81632         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
81633         into sys/select.h.
81635 2007-03-02  Bruno Haible  <bruno@clisp.org>
81637         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
81638         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
81639         values.
81640         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
81641         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
81642         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
81643         * modules/sys_socket (Depends-on): Add absolute-header.
81644         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
81645         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
81646         (Include): Remove requirement of inclusion of <sys/types.h>.
81648 2007-03-02  Bruno Haible  <bruno@clisp.org>
81650         * lib/byteswap_.h (bswap_32): Fix formula.
81652 2007-03-06  Bruno Haible  <bruno@clisp.org>
81654         * modules/sprintf-posix-tests: New file.
81655         * tests/test-sprintf-posix.c: New file.
81657         * modules/sprintf-posix: New file.
81658         * lib/sprintf.c: New file.
81659         * m4/sprintf-posix.m4: New file.
81660         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
81661         REPLACE_SPRINTF.
81662         * lib/stdio_.h (sprintf): New declaration.
81663         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
81664         REPLACE_SPRINTF.
81666 2007-03-06  Bruno Haible  <bruno@clisp.org>
81668         * modules/vsprintf-posix-tests: New file.
81669         * tests/test-vsprintf-posix.c: New file.
81670         * tests/test-sprintf-posix.h: New file.
81672         * modules/vsprintf-posix: New file.
81673         * lib/vsprintf.c: New file.
81674         * m4/vsprintf-posix.m4: New file.
81675         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
81676         REPLACE_VSPRINTF.
81677         * lib/stdio_.h (vsprintf): New declaration.
81678         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
81679         REPLACE_VSPRINTF.
81681 2007-03-06  Bruno Haible  <bruno@clisp.org>
81683         * modules/vsnprintf (Depend-on): Remove minmax.
81685 2007-03-06  Bruno Haible  <bruno@clisp.org>
81687         * modules/snprintf-posix-tests: New file.
81688         * tests/test-snprintf-posix.c: New file.
81690         * modules/snprintf-posix: New file.
81691         * m4/snprintf-posix.m4: New file.
81692         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
81693         gl_FUNC_SNPRINTF.
81694         (gl_FUNC_SNPRINTF): Invoke it.
81695         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
81696         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
81697         is set.
81698         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
81700 2007-03-06  Bruno Haible  <bruno@clisp.org>
81702         * modules/vsnprintf-posix-tests: New file.
81703         * tests/test-vsnprintf-posix.c: New file.
81704         * tests/test-snprintf-posix.h: New file.
81706         * modules/vsnprintf-posix: New file.
81707         * m4/vsnprintf-posix.m4: New file.
81708         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
81709         gl_FUNC_VSNPRINTF.
81710         (gl_FUNC_VSNPRINTF): Invoke it.
81711         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
81712         * lib/stdio_.h (vsnprintf): Define as a replacement if
81713         REPLACE_VSNPRINTF is set.
81714         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
81716 2007-03-06  Bruno Haible  <bruno@clisp.org>
81718         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
81719         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
81721 2007-03-06  Bruno Haible  <bruno@clisp.org>
81723         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
81724         (asinl): Declare also if HAVE_DECL_ASINL is set.
81725         (atanl): Declare also if HAVE_DECL_ATANL is set.
81726         (ceill): Declare also if HAVE_DECL_CEILL is set.
81727         (cosl): Declare also if HAVE_DECL_COSL is set.
81728         (expl): Declare also if HAVE_DECL_EXPL is set.
81729         (floorl): Declare also if HAVE_DECL_FLOORL is set.
81730         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
81731         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
81732         (logl): Declare also if HAVE_DECL_LOGL is set.
81733         (sinl): Declare also if HAVE_DECL_SINL is set.
81734         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
81735         (tanl): Declare also if HAVE_DECL_TANL is set.
81736         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
81737         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
81738         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
81739         declaration of frexpl, ldexpl.
81740         * modules/printf-frexpl (Depends-on): Add math.
81741         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
81743 2007-03-05  Bruno Haible  <bruno@clisp.org>
81745         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
81746         frexpl and ldexpl are declared.
81747         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
81749 2007-03-05  Bruno Haible  <bruno@clisp.org>
81751         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
81752         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
81754 2007-03-05  Bruno Haible  <bruno@clisp.org>
81756         * lib/stdio_.h: Include <stddef.h>.
81758 2007-03-05  Bruno Haible  <bruno@clisp.org>
81760         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
81762 2007-03-05  Bruno Haible  <bruno@clisp.org>
81764         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
81765         NetBSD 4, from Ralf Wildenhues.
81767 2007-03-04  Bruno Haible  <bruno@clisp.org>
81769         * lib/vasprintf.h: Update #if logic for the case when the functions
81770         exist but are overridden.
81772 2007-03-04  Bruno Haible  <bruno@clisp.org>
81774         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
81775         implementations: glibc-2.4 and MacOS X 10.3.
81776         * tests/test-vasnprintf-posix.c (test_function): Test also the case
81777         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
81778         * tests/test-vasprintf-posix.c (test_function): Likewise.
81780 2007-03-04  Bruno Haible  <bruno@clisp.org>
81782         * modules/vasprintf-posix-tests: New file.
81783         * tests/test-vasprintf-posix.c: New file.
81785         * modules/vasprintf-posix: New file.
81786         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
81787         defined.
81788         * m4/vasprintf-posix.m4: New file.
81789         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
81790         gl_FUNC_VASPRINTF.
81791         (gl_FUNC_VASPRINTF): Invoke it.
81792         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
81793         here.
81794         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
81796 2007-03-04  Bruno Haible  <bruno@clisp.org>
81798         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
81799         REPLACE_GETTIMEOFDAY.
81800         * modules/sys_time (Makefile.am): Likewise.
81801         * m4/sys_time_h.m4: Likewise.
81802         * m4/gettimeofday.m4: Likewise.
81804 2007-03-04  Bruno Haible  <bruno@clisp.org>
81806         * modules/vasnprintf-posix-tests: New file.
81807         * tests/test-vasnprintf-posix.c: New file.
81809         * modules/vasnprintf-posix: New file.
81810         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
81811         printf-frexpl.h.
81812         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
81813         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
81814         REPLACE_VASNPRINTF is defined.
81815         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
81816         gl_FUNC_VASNPRINTF.
81817         (gl_FUNC_VASNPRINTF): Invoke it.
81818         * m4/vasnprintf-posix.m4: New file.
81819         * m4/printf.m4: New file.
81821 2007-03-04  Bruno Haible  <bruno@clisp.org>
81823         Compile progreloc.c only if --enable-relocatable is specified.
81824         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
81825         if --enable-relocatable was specified.
81826         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
81827         lib_SOURCES.
81829 2007-03-04  Jim Meyering  <jim@meyering.net>
81831         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
81832         Use it consistently, rather than enumerating errno constants.
81834 2007-03-04  Bruno Haible  <bruno@clisp.org>
81836         * modules/xvasprintf-tests: New file.
81837         * tests/test-xvasprintf.c: New file.
81839         * modules/vasprintf-tests: New file.
81840         * tests/test-vasprintf.c: New file.
81842         * modules/vasnprintf-tests: New file.
81843         * tests/test-vasnprintf.c: New file.
81845         * modules/vsnprintf-tests: New file.
81846         * tests/test-vsnprintf.c: New file.
81848         * modules/snprintf-tests: New file.
81849         * tests/test-snprintf.c: New file.
81851 2007-03-04  Bruno Haible  <bruno@clisp.org>
81853         Compile relocatable.c only if --enable-relocatable is specified.
81854         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
81855         gl_RELOCATABLE_LIBRARY.
81856         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
81857         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
81858         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
81859         gl_RELOCATABLE_LIBRARY.
81860         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
81861         (Makefile.am): Remove lib_SOURCES.
81862         * modules/relocatable-lib-lgpl (configure.ac): Invoke
81863         gl_RELOCATABLE_LIBRARY.
81864         (Makefile.am): Remove lib_SOURCES.
81865         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
81866         always.
81867         * modules/relocatable-prog-wrapper (configure.ac): Invoke
81868         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
81870 2007-03-04  Bruno Haible  <bruno@clisp.org>
81872         * modules/argmatch-tests: New file.
81873         * tests/test-argmatch.c: New file.
81875         * tests/test-allocsa.c (main): Halve the number of loop runs.
81877         * modules/alloca-opt-tests: New file.
81878         * tests/test-alloca-opt.c: New file.
81880 2007-03-04  Jim Meyering  <jim@meyering.net>
81882         Work around difference between Linux ACLs and Solaris 10 ZFS.
81883         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
81884         for EINVAL.
81886 2007-03-03  Bruno Haible  <bruno@clisp.org>
81888         * modules/relocatable-prog (Depends-on): Add back progreloc's
81889         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
81891 2007-03-03  Bruno Haible  <bruno@clisp.org>
81893         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
81894         * modules/relocatable-lib: New file.
81896 2007-03-03  Bruno Haible  <bruno@clisp.org>
81898         * modules/relocatable-prog: Renamed from modules/relocatable.
81899         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
81901 2007-03-03  Bruno Haible  <bruno@clisp.org>
81903         * modules/relocatable-script (Files): Add doc/relocatable.texi,
81904         m4/relocatable-lib.m4.
81905         (Depends-on): Remove 'relocatable'.
81906         (configure.ac): Add gl_RELOCATABLE_NOP.
81908 2007-03-03  Bruno Haible  <bruno@clisp.org>
81910         * modules/relocatable-prog-wrapper: New file.
81911         * modules/relocatable (Depends-on): Add it. Remove all other
81912         dependencies except progname.
81913         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
81915         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
81916         (gl_FUNC_STRERROR): Nop.
81917         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
81919         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
81920         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
81922         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
81923         (gl_FUNC_READLINK): Update.
81925         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
81927 2007-03-03  Bruno Haible  <bruno@clisp.org>
81929         * lib/xreadlink.c: Include <unistd.h> unconditionally.
81930         * modules/xreadlink (Depends-on): Add unistd.
81931         * modules/xreadlink-with-size (Depends-on): Likewise.
81933 2007-03-03  Bruno Haible  <bruno@clisp.org>
81935         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
81936         extracted from gt_FUNC_SETENV.
81937         (gt_FUNC_SETENV): Remove macro.
81938         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
81939         remove gt_FUNC_SETENV.
81941 2007-03-03  Bruno Haible  <bruno@clisp.org>
81943         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
81944         ENABLE_RELOCATABLE here.
81945         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
81947 2007-03-03  Bruno Haible  <bruno@clisp.org>
81949         * modules/rbtreehash-list-tests (Depends-on): Add progname.
81950         * tests/test-rbtreehash_list.c: Include progname.h.
81951         (main): Call set_program_name.
81953         * modules/rbtree-oset-tests (Depends-on): Add progname.
81954         * tests/test-rbtree_oset.c: Include progname.h.
81955         (main): Call set_program_name.
81957         * modules/rbtree-list-tests (Depends-on): Add progname.
81958         * tests/test-rbtree_list.c: Include progname.h.
81959         (main): Call set_program_name.
81961         * modules/linked-list-tests (Depends-on): Add progname.
81962         * tests/test-linked_list.c: Include progname.h.
81963         (main): Call set_program_name.
81965 2007-03-03  Bruno Haible  <bruno@clisp.org>
81967         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
81968         All uses of __restrict changed to _Restrict_.
81969         * lib/glob_.h (__restrict): Remove macro.
81971 2007-03-02  Bruno Haible  <bruno@clisp.org>
81973         * modules/gettext (configure.ac): Require gettext infrastructure
81974         from version 0.16.1.
81976 2007-03-02  Bruno Haible  <bruno@clisp.org>
81978         * modules/linkedhash-list-tests (Depends-on): Add progname.
81979         * tests/test-linkedhash_list.c: Include progname.h.
81980         (main): Call set_program_name.
81982         * modules/carray-list-tests (Depends-on): Add progname.
81983         * tests/test-carray_list.c: Include progname.h.
81984         (main): Call set_program_name.
81986         * modules/avltreehash-list-tests (Depends-on): Add progname.
81987         * tests/test-avltreehash_list.c: Include progname.h.
81988         (main): Call set_program_name.
81990         * modules/avltree-oset-tests (Depends-on): Add progname.
81991         * tests/test-avltree_oset.c: Include progname.h.
81992         (main): Call set_program_name.
81994         * modules/avltree-list-tests (Depends-on): Add progname.
81995         * tests/test-avltree_list.c: Include progname.h.
81996         (main): Call set_program_name.
81998         * modules/array-oset-tests (Depends-on): Add progname.
81999         * tests/test-array_oset.c: Include progname.h.
82000         (main): Call set_program_name.
82002         * modules/array-list-tests (Depends-on): Add progname.
82003         * tests/test-array_list.c: Include progname.h.
82004         (main): Call set_program_name.
82006         * modules/argp-tests (Depends-on): Add progname.
82007         * tests/test-argp.c: Include argp.h first. Include progname.h.
82008         (main): Call set_program_name.
82010 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
82012         * doc/gnulib-tool.texi (Initial import): Reword description of
82013         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
82014         limited effect even if defined after the first system include.
82016 2007-03-01  Bruno Haible  <bruno@clisp.org>
82018         * build-aux/config.libpath: Update to libtool-1.5.22.
82019         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
82021 2007-03-01  Bruno Haible  <bruno@clisp.org>
82023         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
82024         foo_CFLAGS.
82025         Reported by Ralf Wildenhues.
82027 2007-03-01  Bruno Haible  <bruno@clisp.org>
82029         * build-aux/install-reloc: Remove object files left over by some
82030         compilers.
82031         Reported by Ralf Wildenhues.
82033 2007-03-01  Bruno Haible  <bruno@clisp.org>
82035         * build-aux/install-reloc: Break long lines.
82037 2007-03-01  Bruno Haible  <bruno@clisp.org>
82039         * doc/relocatable.texi: Document that it may not work on OpenBSD.
82040         Reported by Ralf Wildenhues.
82042 2007-03-01  Bruno Haible  <bruno@clisp.org>
82044         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
82045         include ordering constraints.
82047 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82049         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
82050         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
82051         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
82052         as another example.
82053         * lib/time_.h: Fix misspelling.
82054         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
82055         Require gl_HEADER_TIME_H_DEFAULTS.
82056         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
82057         * m4/time_r.m4 (gl_TIME_R): Likewise.
82058         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
82060 2007-03-01  Bruno Haible  <bruno@clisp.org>
82062         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
82063         * m4/utimens.m4 (gl_UTIMENS): Likewise.
82065 2007-03-01  Jim Meyering  <jim@meyering.net>
82067         * modules/xreadlink (Maintainer): Add my name.
82068         * modules/xreadlink-with-size (Depends-on): Alphabetize.
82070 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
82071             Bruno Haible  <bruno@clisp.org>
82073         * build-aux/install-reloc: Compile also c-ctype.c.
82074         * build-aux/relocatable.sh.in: New file.
82075         * doc/relocatable.texi: New file.
82076         * doc/relocatable-maint.texi: New file.
82077         * doc/gnulib.texi: Include relocatable-maint.texi.
82078         * lib/progreloc.c: Include unistd.h unconditionally.
82079         * lib/relocwrapper.c: Include unistd.h unconditionally.
82080         Include c-ctype.h.
82081         (add_dotbin): Use c_tolower.
82082         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
82083         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
82084         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
82085         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
82086         to m4/relocatable-lib.m4.
82087         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
82088         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
82089         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
82090         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
82091         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
82092         * modules/relocatable: New file.
82093         * modules/relocatable-lib: New file.
82094         * modules/relocatable-script: New file.
82096 2007-02-28  Bruno Haible  <bruno@clisp.org>
82098         Import --enable-relocatable infrastructure.
82099         * build-aux/config.libpath: New file, from GNU gettext.
82100         * build-aux/install-reloc: New file, from GNU gettext.
82101         * build-aux/reloc-ldflags: New file, from GNU gettext.
82102         * lib/relocatable.h: New file, from GNU gettext.
82103         * lib/relocatable.c: New file, from GNU gettext.
82104         * lib/relocwrapper.c: New file, from GNU gettext.
82105         * m4/relocatable.m4: New file, from GNU gettext.
82107 2007-02-28  Bruno Haible  <bruno@clisp.org>
82109         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
82111         * modules/xreadlink: New file, from GNU gettext with modifications.
82112         * lib/xreadlink.c: New file, from GNU gettext.
82113         * lib/xreadlink.h: Add comments.
82114         (xreadlink): New declaration.
82116         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
82117         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
82118         lib/xreadlink-with-size.c.
82119         (configure.ac): Remove gl_XREADLINK invocation.
82120         (Makefile.am): Augment lib_SOURCES.
82121         * m4/xreadlink.m4: Remove file.
82122         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
82123         (xreadlink_with_size): Renamed from xreadink.
82124         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
82125         * modules/canonicalize (Depends-on): Replace xreadlink with
82126         xreadlink-with-size.
82127         * lib/canonicalize.c (canonicalize_filename_mode): Update.
82129 2007-02-25  Jim Meyering  <jim@meyering.net>
82131         * build-aux/announce-gen: When complaining about excess arguments,
82132         list them.
82134 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
82136         * README: Document signed integer overflow situation more
82137         accurately.
82139 2007-02-25  Bruno Haible  <bruno@clisp.org>
82141         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
82142         'a' or 'A' conversion.
82144 2007-02-25  Bruno Haible  <bruno@clisp.org>
82146         * modules/filename: Renamed from modules/pathname.
82147         (Files): Replace lib/pathname.h with lib/filename.h. Replace
82148         lib/concatpath.c with lib/concat-filename.c.
82149         (Makefile.am): Update.
82150         (Include): Replace pathname.h with filename.h.
82151         * lib/filename.h: Renamed from lib/pathname.h.
82152         (concatenated_filename): Renamed from concatenated_pathname.
82153         * lib/concat-filename.c: Renamed from lib/concatpath.c.
82154         (concatenated_filename): Renamed from concatenated_pathname.
82155         * lib/findprog.c: Include filename.h instead of pathname.h.
82156         (find_in_path): Update.
82157         * lib/javacomp.c: Include filename.h instead of pathname.h.
82158         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
82159         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
82160         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
82161         is_oldgcj_14_13_usable, is_javac_usable): Update.
82162         * lib/javaexec.c: Include filename.h instead of pathname.h.
82163         (execute_java_class): Update.
82164         * modules/findprog: Update.
82165         * modules/javacomp: Update.
82166         * modules/javaexec: Update.
82167         * MODULES.html.sh (File system functions): Add 'filename', remove
82168         'pathname'.
82170 2007-02-25  Bruno Haible  <bruno@clisp.org>
82172         * modules/printf-frexpl-tests: New file.
82173         * tests/test-printf-frexpl.c: New file.
82175         * modules/printf-frexpl: New file.
82176         * lib/printf-frexpl.h: New file.
82177         * lib/printf-frexpl.c: New file.
82178         * m4/printf-frexpl.m4: New file.
82180 2007-02-25  Bruno Haible  <bruno@clisp.org>
82182         * modules/printf-frexp-tests: New file.
82183         * tests/test-printf-frexp.c: New file.
82185         * modules/printf-frexp: New file.
82186         * lib/printf-frexp.h: New file.
82187         * lib/printf-frexp.c: New file.
82188         * m4/printf-frexp.m4: New file.
82190 2007-02-25  Bruno Haible  <bruno@clisp.org>
82192         Assume automake >= 1.10 for the tests.
82193         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
82194         * modules/arctwo-tests: Likewise.
82195         * modules/argp-tests: Likewise.
82196         * modules/avltree-list-tests: Likewise.
82197         * modules/avltree-oset-tests: Likewise.
82198         * modules/avltreehash-list-tests: Likewise.
82199         * modules/carray-list-tests: Likewise.
82200         * modules/crc-tests: Likewise.
82201         * modules/des-tests: Likewise.
82202         * modules/gc-arcfour-tests: Likewise.
82203         * modules/gc-arctwo-tests: Likewise.
82204         * modules/gc-des-tests: Likewise.
82205         * modules/gc-hmac-md5-tests: Likewise.
82206         * modules/gc-hmac-sha1-tests: Likewise.
82207         * modules/gc-md2-tests: Likewise.
82208         * modules/gc-md4-tests: Likewise.
82209         * modules/gc-md5-tests: Likewise.
82210         * modules/gc-pbkdf2-sha1-tests: Likewise.
82211         * modules/gc-rijndael-tests: Likewise.
82212         * modules/gc-sha1-tests: Likewise.
82213         * modules/gc-tests: Likewise.
82214         * modules/getaddrinfo-tests: Likewise.
82215         * modules/hmac-md5-tests: Likewise.
82216         * modules/hmac-sha1-tests: Likewise.
82217         * modules/linked-list-tests: Likewise.
82218         * modules/linkedhash-list-tests: Likewise.
82219         * modules/lock-tests: Likewise.
82220         * modules/md2-tests: Likewise.
82221         * modules/md4-tests: Likewise.
82222         * modules/md5-tests: Likewise.
82223         * modules/rbtree-list-tests: Likewise.
82224         * modules/rbtree-oset-tests: Likewise.
82225         * modules/rbtreehash-list-tests: Likewise.
82226         * modules/read-file-tests: Likewise.
82227         * modules/rijndael-tests: Likewise.
82228         * modules/stdint-tests: Likewise.
82229         * modules/tls-tests: Likewise.
82231 2007-02-24  Bruno Haible  <bruno@clisp.org>
82233         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
82234         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
82235         function; instead check whether isnan with a double argument links.
82236         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
82237         function; instead check whether isnan with a 'long double' argument
82238         links.
82239         Reported by Eric Blake <ebb9@byu.net>.
82241 2007-02-24  Bruno Haible  <bruno@clisp.org>
82243         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
82244         defined.
82245         * lib/isnanl.c: Remove all code. Just include isnan.c.
82246         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
82248 2007-02-25  Jim Meyering  <jim@meyering.net>
82250         Avoid conflicting types for 'unsetenv' on FreeBSD.
82251         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
82252         conflicting with FreeBSD's (5.0 and 6.1) function declaration
82253         in stdlib.h.
82255 2007-02-24  Bruno Haible  <bruno@clisp.org>
82257         * modules/isnanl-nolibm-tests: New file.
82258         * tests/test-isnanl.c: New file.
82260         * modules/isnanl-nolibm: New file.
82261         * lib/isnanl.h: New file.
82262         * lib/isnanl.c: New file.
82263         * m4/isnanl.m4: New file.
82265 2007-02-24  Bruno Haible  <bruno@clisp.org>
82267         * modules/isnan-nolibm-tests: New file.
82268         * tests/test-isnan.c: New file.
82270         * modules/isnan-nolibm: New file.
82271         * lib/isnan.h: New file.
82272         * lib/isnan.c: New file.
82273         * m4/isnan.m4: New file.
82275 2007-02-24  Bruno Haible  <bruno@clisp.org>
82277         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
82278         assume that an exponent fits in 20 bits.
82280 2007-02-24  Jim Meyering  <jim@meyering.net>
82282         * m4/regex.m4: Update the description of the configure-time option,
82283         --without-included-regex, to state accurately what the defaults are,
82284         and perhaps to give people an idea why using this option is risky.
82286 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
82288         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
82289         loops on small arguments.  This attempts to avoid the problem
82290         Bruno Haible reported for AIX 4.3.2 in
82291         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
82293 2007-02-23  Bruno Haible  <bruno@clisp.org>
82295         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
82296         Needed for help2man.
82298 2007-02-23  Karl Berry  <karl@gnu.org>
82300         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
82301         exists, foo.h should be cvs-ignored, not committed.
82303 2007-02-23  Eric Blake  <ebb9@byu.net>
82305         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
82306         * lib/stat-time.h (includes): Likewise.
82307         * lib/utimecmp.c (includes): Likewise.
82308         * lib/utimens.h (includes): Likewise.
82309         * lib/getdate.y (includes): Also include "timespec.h" for use
82310         internal to the module.
82311         * modules/utimens (Depends-on): Revert yesterday's patch.
82312         * modules/nanosleep (Depends-on): Add missing dependency.
82314 2007-02-22  Bruno Haible  <bruno@clisp.org>
82316         * lib/glob.c: Don't include getlogin_r.h.
82318 2007-02-22  Jim Meyering  <jim@meyering.net>
82320         * modules/utimens (Depends-on): Add timespec, required for
82321         utimens.h's inclusion of timespec.h.
82323 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
82325         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
82326         long unreadable paths in GNU/Linux.  Problem reported by Andreas
82327         Schwab in
82328         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
82329         I'll try to think of a better way to fix the Solaris problem.
82331         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
82332         like glibc; on Solaris 10, it fails with errno == EINVAL.
82333         POSIX says the behavior is unspecified if the first argument is NULL,
82334         so play it safe and never pass NULL to the system getcwd.
82336 2007-02-21  Jim Meyering  <jim@meyering.net>
82338         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
82339         of gettimeofday.  It would conflict with the one now always
82340         provided via sys_time_.h.  Reported by Matthew Woehlke, as
82341         an IRIX 6.5 build failure.
82343 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
82345         Minor fixups to port to Solaris 10 with Sun C 5.8.
82346         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
82347         * modules/getcwd (Depends-on): Add dirfd.
82348         * lib/putenv.c (putenv): #undef it.
82349         (rpl_putenv): New decl.
82350         (malloc, free): Include <stdlib.h> rather than prototyping separately.
82352 2007-02-20  Bruno Haible  <bruno@clisp.org>
82354         * modules/stdio-tests: New file.
82355         * tests/test-stdio.c: New file.
82357         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
82358         (Depends-on): Add stdio.
82359         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
82360         (Include): Use <stdio.h> instead of vsnprintf.h.
82361         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
82362         HAVE_DECL_VSNPRINTF.
82363         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
82365         * modules/snprintf (Files): Remove lib/snprintf.h.
82366         (Depends-on): Add stdio.
82367         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
82368         (Include): Use <stdio.h> instead of snprintf.h.
82369         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
82370         HAVE_DECL_SNPRINTF.
82371         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
82372         * lib/getaddrinfo.c: Likewise.
82374         * modules/stdio: New file.
82375         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
82376         * lib/snprintf.h: Remove file.
82377         * lib/vsnprintf.h: Remove file.
82378         * lib/.cppi-disable: Remove snprintf.h.
82379         * m4/stdio_h.m4: New file.
82380         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
82382 2007-02-20  Jim Meyering  <jim@meyering.net>
82384         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
82385         used by e.g., mingw.  From Bruno Haible.
82387 2007-02-19  Bruno Haible  <bruno@clisp.org>
82389         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
82390         warnings.
82391         Reported by Ben Pfaff <blp@cs.stanford.edu>.
82393 2007-02-19  Bruno Haible  <bruno@clisp.org>
82395         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
82396         from mingw users.
82398 2007-02-19  Bruno Haible  <bruno@clisp.org>
82400         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
82401         warnings.
82402         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
82404 2007-02-19  Jim Meyering  <jim@meyering.net>
82406         Don't use FD after a successful "fdopendir (fd)".
82407         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
82408         Reset it by calling dirfd on the just-obtained DIR*.
82410         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
82411         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
82413 2007-02-18  Bruno Haible  <bruno@clisp.org>
82415         * lib/readlink.c: Include <unistd.h>.
82416         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
82417         HAVE_READLINK.
82418         * modules/readlink (Depends-on): Add unistd.
82419         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
82420         (Include): Add <unistd.h>.
82422         * lib/getlogin_r.h: Remove file.
82423         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
82424         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
82425         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
82426         HAVE_DECL_GETLOGIN_R.
82427         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
82428         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
82429         (Include): Use <unistd.h> instead of getlogin_r.h.
82431         * lib/getcwd.h: Remove file.
82432         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
82433         * lib/xgetcwd.c: Likewise.
82434         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
82435         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
82436         * modules/getcwd (Files): Remove lib/getcwd.h.
82437         (Depends-on): Add unistd.
82438         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
82439         (Include): Use <unistd.h> instad of getcwd.h.
82441         * lib/ftruncate.c: Include <unistd.h> first.
82442         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
82443         Set HAVE_FTRUNCATE.
82444         * modules/ftruncate (Depends-on): Add unistd.
82445         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
82447         * lib/fchdir.c: Include <unistd.h> first.
82448         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
82449         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
82450         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
82451         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
82452         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
82454         * lib/dup2.c: Include <unistd.h> first.
82455         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
82456         HAVE_DUP2.
82457         * modules/dup2 (Depends-on): Add unistd.
82458         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
82460         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
82461         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
82462         REPLACE_CHOWN. Don't define chown as a macro here.
82463         * modules/chown (Depends-on): Add unistd.
82464         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
82466         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
82467         Add definition for GL_LINK_WARNING.
82468         (chown, dup2): New declarations.
82469         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
82470         link warning.
82471         (ftruncate): New declaration.
82472         (getcwd): New declaration, taken from old getcwd.h.
82473         (getlogin_r): New declaration, taken from old getlogin_r.h.
82474         (readlink): New declaration.
82475         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
82476         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
82477         (gl_PREREQ_UNISTD): Remove macro.
82478         (gl_UNISTD_MODULE_INDICATOR): New macro.
82479         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
82480         many new variables. Don't set UNISTD_H.
82481         * modules/unistd (Description): Change.
82482         (Depends-on): Add link-warning.
82483         (configure.ac): Update.
82484         (Makefile.am): Create unistd.h always. Substitute many new variables
82485         into it.
82487 2007-02-18  Bruno Haible  <bruno@clisp.org>
82489         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
82490         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
82491         HAVE_GETSUBOPT.
82492         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
82493         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
82494         * lib/getsubopt.h: Remove file.
82495         * modules/getsubopt (Files): Remove lib/getsubopt.h.
82496         (Depends-on): Add stdlib.
82497         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
82498         (Includes): Use <stdlib.h> instead of getsubopt.h.
82499         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
82500         Set HAVE_GETSUBOPT.
82501         * lib/getsubopt.c: Don't include getsubopt.h.
82503 2007-02-18  Bruno Haible  <bruno@clisp.org>
82505         * modules/fchdir (Depends-on): Add dup2.
82507 2007-02-18  Bruno Haible  <bruno@clisp.org>
82509         * lib/stdlib_.h: Handle glibc's special invocation convention
82510         specially.
82512 2007-02-18  Bruno Haible  <bruno@clisp.org>
82514         * modules/stdlib-tests: New file.
82515         * tests/test-stdlib.c: New file.
82517         * modules/mkstemp (Files): Remove lib/mkstemp.h.
82518         (Depends-on): Add stdlib.
82519         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
82520         (Includes): Use <stdlib.h> instead of mkstemp.h.
82521         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
82522         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
82523         * lib/mkstemp.c: Don't include mkstemp.h.
82524         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
82525         * lib/stdlib--.h: Don't include mkstemp.h.
82527         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
82528         (Depends-on): Add stdlib.
82529         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
82530         (Includes): Use <stdlib.h> instead of mkdtemp.h.
82531         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
82532         HAVE_MKDTEMP.
82533         * lib/mkdtemp.c: Don't include mkdtemp.h.
82534         * lib/clean-temp.c: Don't include mkdtemp.h.
82536         * modules/exit (Files): Remove lib/exit.h.
82537         (Depends-on): Add stdlib.
82538         (Makefile.am): Remove lib_SOURCES.
82539         (Include): Use <stdlib.h> instead of exit.h.
82540         * lib/argmatch.c: Don't include exit.h.
82541         * lib/execute.c: Likewise.
82542         * lib/pagealign_alloc.c: Likewise.
82543         * lib/pipe.c: Likewise.
82544         * lib/wait-process.c: Likewise.
82545         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
82546         * lib/exitfail.c: Likewise.
82547         * lib/savewd.c: Likewise.
82548         * lib/xsetenv.c: Likewise.
82550         * modules/stdlib: New file.
82551         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
82552         and extra comments about mkstemp().
82553         * lib/exit.h: Remove file.
82554         * lib/mkdtemp.h: Remove file.
82555         * lib/mkstemp.h: Remove file.
82556         * m4/stdlib_h.m4: New file.
82557         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
82559 2007-02-18  Bruno Haible  <bruno@clisp.org>
82561         * modules/math-tests: New file.
82562         * tests/test-math.c: New file.
82564         * modules/math: New file.
82565         * modules/mathl (Files): Remove lib/mathl.h.
82566         (Depends-on): Add math.
82567         (Makefile.am): Don't mention mathl.h.
82568         (Include): Use <math.h> instead of mathl.h.
82569         * lib/math_.h: New file.
82570         * lib/mathl.h: Remove file.
82571         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
82572         mathl.h.
82573         * lib/asinl.c: Likewise.
82574         * lib/atanl.c: Likewise.
82575         * lib/ceill.c: Likewise.
82576         * lib/cosl.c: Likewise.
82577         * lib/expl.c: Likewise.
82578         * lib/floorl.c: Likewise.
82579         * lib/frexpl.c: Likewise.
82580         * lib/ldexpl.c: Likewise.
82581         * lib/logl.c: Likewise.
82582         * lib/sincosl.c: Likewise.
82583         * lib/sinl.c: Likewise.
82584         * lib/sqrtl.c: Likewise.
82585         * lib/tanl.c: Likewise.
82586         * lib/trigl.c: Likewise.
82587         * m4/math_h.m4: New file.
82588         * MODULES.html.sh (Mathematics): Add math.
82590 2007-02-17  Bruno Haible  <bruno@clisp.org>
82592         * modules/wctype-tests: New file.
82593         * tests/test-wctype.c: New file.
82595         * modules/wchar-tests: New file.
82596         * tests/test-wchar.c: New file.
82598         * modules/unistd-tests: New file.
82599         * tests/test-unistd.c: New file.
82601         * modules/time-tests: New file.
82602         * tests/test-time.c: New file.
82604         * modules/sysexits-tests: New file.
82605         * tests/test-sysexits.c: New file.
82607         * modules/sys_time-tests: New file.
82608         * tests/test-sys_time.c: New file.
82610         * modules/sys_stat-tests: New file.
82611         * tests/test-sys_stat.c: New file.
82613         * modules/sys_socket-tests: New file.
82614         * tests/test-sys_socket.c: New file.
82616         * modules/sys_select-tests: New file.
82617         * tests/test-sys_select.c: New file.
82619         * modules/string-tests: New file.
82620         * tests/test-string.c: New file.
82622         * modules/stdbool-tests: New file.
82623         * tests/test-stdbool.c: New file.
82625         * modules/netinet_in-tests: New file.
82626         * tests/test-netinet_in.c: New file.
82628         * modules/inttypes-tests: New file.
82629         * tests/test-inttypes.c: New file.
82631         * modules/fcntl-tests: New file.
82632         * tests/test-fcntl.c: New file.
82634         * modules/byteswap-tests: New file.
82635         * tests/test-byteswap.c: New file.
82637         * modules/arpa_inet-tests: New file.
82638         * tests/test-arpa_inet.c: New file.
82640 2007-02-17  Bruno Haible  <bruno@clisp.org>
82642         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
82643         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
82644         if the corresponding module is not enabled. Emit link warnings if
82645         the function is used nevertheless.
82646         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
82647         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
82648         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
82649         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
82650         * modules/inttypes (Depends-on): Add link-warning.
82651         (Makefile.am): Copy the contents of build-aux/link-warning.h into
82652         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
82653         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
82654         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
82655         * modules/imaxdiv (configure.ac): Likewise.
82656         * modules/strtoimax (configure.ac): Likewise.
82657         * modules/strtoumax (configure.ac): Likewise.
82659 2007-02-17  Bruno Haible  <bruno@clisp.org>
82661         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
82662         gl_STRING_MODULE_INDICATOR_DEFAULTS.
82663         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
82664         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
82666 2007-02-17  Bruno Haible  <bruno@clisp.org>
82668         * modules/link-warning: New file.
82669         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
82670         * lib/string_.h (GL_LINK_WARNING): Remove definition.
82671         * modules/string (Depends-on): Add link-warning.
82672         (Makefile.am): Copy the contents of build-aux/link-warning.h into
82673         string.h.
82674         * MODULES.html.sh (Support for building libraries and executables): Add
82675         link-warning.
82677 2007-02-17  Bruno Haible  <bruno@clisp.org>
82679         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
82680         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
82681         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
82682         long lines.
82684 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
82685             Bruno Haible  <bruno@clisp.org>
82687         * modules/tmpfile: New file.
82688         * lib/tmpfile.c: New file.
82689         * m4/tmpfile.m4: New file.
82690         * MODULES.html.sh (func_all_modules): New section "Input/output".
82692 2007-02-15  Bruno Haible  <bruno@clisp.org>
82694         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
82695         (supports_delete_on_close): New function.
82696         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
82698 2007-02-14  Bruno Haible  <bruno@clisp.org>
82700         * modules/mbspcasecmp-tests: New file.
82701         * tests/test-mbspcasecmp.sh: New file.
82702         * tests/test-mbspcasecmp.c: New file.
82704         New module mbspcasecmp.
82705         * modules/mbspcasecmp: New file.
82706         * lib/mbspcasecmp.c: New file.
82707         * lib/string_.h (strncasecmp): Change warning message.
82708         (mbspcasecmp): New declaration.
82709         * m4/mbspcasecmp.m4: New file.
82710         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
82711         GNULIB_MBSPCASECMP.
82712         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
82713         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
82715 2007-02-14  Bruno Haible  <bruno@clisp.org>
82717         * modules/mbsncasecmp-tests: New file.
82718         * tests/test-mbsncasecmp.sh: New file.
82719         * tests/test-mbsncasecmp.c: New file.
82721         New module mbsncasecmp.
82722         * modules/mbsncasecmp: New file.
82723         * lib/mbsncasecmp.c: New file.
82724         * lib/string_.h (mbsncasecmp): New declaration.
82725         * m4/mbsncasecmp.m4: New file.
82726         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
82727         GNULIB_MBSNCASECMP.
82728         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
82729         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
82731 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
82733         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
82734         Verify that it doesn't overlap with our flags.
82735         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
82736         do not have the desired effect in multibyte locales; instead, use
82737         mbscasecmp.
82738         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
82739         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
82740         we don't require GNU fnmatch ourselves (if our users require it, they
82741         should do so explicitly).
82743         Fix regex code so it doesn't rely on strcasecmp.
82744         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
82745         Otherwise, include gnulib's langinfo.h.
82746         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
82747         undesirable behavior in non-C locales.  Instead, rely on localecharset.
82748         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
82749         * modules/regex (FILES): Remove m4/codeset.m4.
82750         (Depends-on): Add localcharset.  Remove strcase.
82752 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82754         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
82755         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
82757 2007-02-13  Bruno Haible  <bruno@clisp.org>
82759         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
82760         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82762 2007-02-12  Bruno Haible  <bruno@clisp.org>
82764         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
82765         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
82766         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
82767         time warning rather than a link error.
82769 2007-02-12  Bruno Haible  <bruno@clisp.org>
82771         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
82772         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
82773         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82775 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
82777         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
82778         args, not 2.
82780 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
82782         New module 'time', so that apps can include <time.h> as per
82783         POSIX and GNU instead of separate include files like time_r.h
82784         and timegm.h.  This implementation tries out a simpler approach
82785         for replacing decls in standard include files (as compared to
82786         the string module), somewhat as an experiment.
82788         * config/srclist.txt: Comment out mktime.c for now.
82789         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
82790         since it doesn't apply any more.  Use generic wording instead.
82791         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
82792         'time'.
82793         * lib/time_.h, m4/time_h.m4, modules/time: New files.
82794         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
82795         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
82796         Don't include <sys/types.h>; no longer needed since we assume C89.
82797         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
82798         * lib/strftime.c: Likewise.
82799         * lib/time_r.c: Likewise.
82800         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
82801         * lib/nanosleep.c: Include <time.h> first, to check interface.
82802         * lib/strptime.c: Likewise.
82803         * lib/time_r.c: Likewise.
82804         * lib/timegm.c: Likewise.
82805         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
82806         needed.
82807         * lib/timegm.c: Don't include timegm.h; no longer needed.
82808         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
82809         time.h now handles any problems in that area.
82810         (struct timespec, nanosleep): Remove; time.h now arranges for these.
82811         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
82812         that time.h defines struct timespec.
82813         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
82814         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
82815         handles that.
82816         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
82817         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
82818         needed.  Set REPLACE_LOCALTIME.
82819         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
82820         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
82821         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
82822         nanosleep; time_h.m4 now does that.  Don't require
82823         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
82824         module handles this now.
82825         * modules/getdate (Depends-on): Remove timespec.  Add time.
82826         * modules/nanosleep (Depends-on): Likewise.
82827         * modules/stat-time (Depends-on): Likewise.
82828         * modules/nanosleep (Include): Include time.h, not timespec.h.
82829         * modules/strptime (Files): Remove lib/strptime.h.
82830         (Depends-on): Add extensions, time.
82831         (Include): Include time.h, not strptime.h.
82832         * modules/time_r (Files): Remove lib/time_r.h.
82833         (Depends-on): Add time.
82834         (Include): Include time.h, not time_r.h.
82835         * modules/timegm: Likewise.
82836         * modules/timespec (Description): Now does timespec-related decls
82837         of our own, instead of struct timespec itself.
82838         (Depends-on): Add time; remove extensions.
82839         (Maintainer): Add self.
82840         * modules/utimecmp (Depends-on): Add time; remove timespec.
82841         * modules/utimens (Depends-on): Likewise.
82842         * modules/xnanosleep (Depends-on): Likewise.
82844 2007-02-11  Bruno Haible  <bruno@clisp.org>
82846         * lib/c-strstr.c: Include allocsa.h.
82847         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
82848         * lib/c-strcasestr.c: Include allocsa.h.
82849         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
82850         * lib/strcasestr.c: Include allocsa.h.
82851         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
82852         * lib/mbsstr.c: Include allocsa.h.
82853         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
82854         allocsa/freesa instead of malloc/free.
82855         * lib/mbscasestr.c: Include allocsa.h.
82856         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
82857         allocsa/freesa instead of malloc/free.
82858         * modules/c-strstr (Depends-on): Add allocsa.
82859         * modules/c-strcasestr (Depends-on): Likewise.
82860         * modules/strcasestr (Depends-on): Likewise.
82861         * modules/mbsstr (Depends-on): Likewise.
82862         * modules/mbscasestr (Depends-on): Likewise.
82864 2007-02-11  Bruno Haible  <bruno@clisp.org>
82866         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
82868         * modules/mbsspn-tests: New file.
82869         * tests/test-mbsspn.sh: New file.
82870         * tests/test-mbsspn.c: New file.
82872 2007-02-11  Bruno Haible  <bruno@clisp.org>
82874         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
82876         * modules/mbspbrk-tests: New file.
82877         * tests/test-mbspbrk.sh: New file.
82878         * tests/test-mbspbrk.c: New file.
82880 2007-02-11  Bruno Haible  <bruno@clisp.org>
82882         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
82883         unneeded cast.
82885         * modules/mbscspn-tests: New file.
82886         * tests/test-mbscspn.sh: New file.
82887         * tests/test-mbscspn.c: New file.
82889 2007-02-11  Bruno Haible  <bruno@clisp.org>
82891         * modules/mbscasecmp-tests: New file.
82892         * tests/test-mbscasecmp.sh: New file.
82893         * tests/test-mbscasecmp.c: New file.
82895 2007-02-11  Bruno Haible  <bruno@clisp.org>
82897         Ensure O(n) worst-case complexity of mbscasestr.
82898         * lib/mbscasestr.c: Include stdbool.h.
82899         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
82900         functions.
82901         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
82902         the bookkeeping indicates that it's worth it.
82903         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
82905         * modules/mbscasestr-tests: New file.
82906         * tests/test-mbscasestr1.c: New file.
82907         * tests/test-mbscasestr2.sh: New file.
82908         * tests/test-mbscasestr2.c: New file.
82909         * tests/test-mbscasestr3.sh: New file.
82910         * tests/test-mbscasestr3.c: New file.
82911         * tests/test-mbscasestr4.sh: New file.
82912         * tests/test-mbscasestr4.c: New file.
82913         * m4/locale-tr.m4: New file.
82915 2007-02-11  Bruno Haible  <bruno@clisp.org>
82917         Ensure O(n) worst-case complexity of mbsstr.
82918         * lib/mbsstr.c: Include stdbool.h.
82919         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
82920         functions.
82921         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
82922         bookkeeping indicates that it's worth it.
82923         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
82925         * modules/mbsstr-tests: New file.
82926         * tests/test-mbsstr1.c: New file.
82927         * tests/test-mbsstr2.sh: New file.
82928         * tests/test-mbsstr2.c: New file.
82929         * tests/test-mbsstr3.sh: New file.
82930         * tests/test-mbsstr3.c: New file.
82931         * m4/locale-fr.m4: New file.
82933 2007-02-11  Bruno Haible  <bruno@clisp.org>
82935         * lib/mbsrchr.c (mbsrchr): Fix bug.
82937         * modules/mbsrchr-tests: New file.
82938         * tests/test-mbsrchr.sh: New file.
82939         * tests/test-mbsrchr.c: New file.
82941 2007-02-11  Bruno Haible  <bruno@clisp.org>
82943         * lib/mbschr.c (mbschr): Fix bug.
82945         * modules/mbschr-tests: New file.
82946         * tests/test-mbschr.sh: New file.
82947         * tests/test-mbschr.c: New file.
82948         * m4/locale-zh.m4: New file.
82950 2007-02-11  Bruno Haible  <bruno@clisp.org>
82952         Support for copying multibyte string iterators.
82953         * lib/mbiter.h: Include <string.h>.
82954         (mbiter_multi_copy): New function.
82955         (mbi_copy): New macro.
82956         * lib/mbuiter.h: Include <string.h>.
82957         (mbuiter_multi_copy): New function.
82958         (mbui_copy): New macro.
82960 2007-02-11  Bruno Haible  <bruno@clisp.org>
82962         New module mbslen.
82963         * modules/mbslen: New file.
82964         * lib/mbslen.c: New file.
82965         * lib/string_.h (mbslen): New declaration.
82966         * m4/mbslen.m4: New file.
82967         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
82968         GNULIB_MBSLEN.
82969         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
82970         * MODULES.html.sh (Internationalization functions): Add mbslen.
82972 2007-02-11  Bruno Haible  <bruno@clisp.org>
82974         Ensure O(n) worst-case complexity of strcasestr substitute.
82975         * lib/strcasestr.c: Include stdbool.h.
82976         (knuth_morris_pratt): New function.
82977         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
82978         bookkeeping indicates that it's worth it.
82979         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
82981         * modules/strcasestr-tests: New file.
82982         * tests/test-strcasestr.c: New file.
82984 2007-02-11  Bruno Haible  <bruno@clisp.org>
82986         Ensure O(n) worst-case complexity of c_strcasestr.
82987         * lib/c-strcasestr.c: Include stdbool.h, string.h.
82988         (knuth_morris_pratt): New function.
82989         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
82990         the bookkeeping indicates that it's worth it.
82991         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
82993         * modules/c-strcasestr-tests: New file.
82994         * tests/test-c-strcasestr.c: New file.
82996 2007-02-11  Bruno Haible  <bruno@clisp.org>
82998         Ensure O(n) worst-case complexity of c_strstr.
82999         * lib/c-strstr.c: Include stdbool.h, string.h.
83000         (knuth_morris_pratt): New function.
83001         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
83002         bookkeeping indicates that it's worth it.
83003         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
83005         * lib/c-strstr.c: Complete rewrite for maintainability.
83007         * modules/c-strstr-tests: New file.
83008         * tests/test-c-strstr.c: New file.
83010 2007-02-11  Bruno Haible  <bruno@clisp.org>
83012         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
83013         5.2.1 and earlier, whereby \055 was treated just like the range
83014         delimiter '-'.
83015         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
83017 2007-02-08  Bruno Haible  <bruno@clisp.org>
83019         * modules/regex (Depends-on): Add stdbool.
83020         Reported by Dalibor Topic <robilad@kaffe.org>.
83022 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
83024         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
83025         Prefer returning from main to exiting from it.
83026         Remove unnecessary parens after sizeof.
83028 2007-02-05  Bruno Haible  <bruno@clisp.org>
83030         New module mbssep.
83031         * modules/mbssep: New file.
83032         * lib/mbssep.c: New file.
83033         * lib/string_.h (strsep): Add a conditional link warning.
83034         (mbssep): New declaration.
83035         * m4/mbssep.m4: New file.
83036         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
83037         GNULIB_MBSSEP.
83038         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
83039         * MODULES.html.sh (Internationalization functions): Add mbssep.
83041 2007-02-05  Bruno Haible  <bruno@clisp.org>
83043         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
83044         Optimize search in case of 1 delimiter.
83046 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
83048         * lib/acl.h: Include sys/types.h before sys/acl.h.
83050 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
83052         Merge upstream fix for glibc bugzilla #3957:
83054         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
83056         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
83057         bit for RE_HAT_LISTS_NOT_NEWLINE.
83058         (build_charclass_op): Remove bogus comment.
83060 2007-02-05  Simon Josefsson  <simon@josefsson.org>
83062         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
83064 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
83066         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
83067         * lib/memmem.c [!defined _LIBC]: Include config.h.
83069 2007-02-04  Bruno Haible  <bruno@clisp.org>
83071         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
83072         warning message.
83074 2007-02-04  Bruno Haible  <bruno@clisp.org>
83076         New module mbstok_r.
83077         * modules/mbstok_r: New file.
83078         * lib/mbstok_r.c: New file.
83079         * lib/string_.h (strtok_r): Change argument names to match the
83080         comments. Add a conditional link warning.
83081         (mbstok_r): New declaration.
83082         * m4/mbstok_r.m4: New file.
83083         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
83084         GNULIB_MBSTOK_R.
83085         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
83086         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
83088 2007-02-04  Bruno Haible  <bruno@clisp.org>
83090         New module mbsspn.
83091         * modules/mbsspn: New file.
83092         * lib/mbsspn.c: New file.
83093         * lib/string_.h (strspn): Add a conditional link warning.
83094         (mbsspn): New declaration.
83095         * m4/mbsspn.m4: New file.
83096         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
83097         GNULIB_MBSSPN.
83098         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
83099         * MODULES.html.sh (Internationalization functions): Add mbsspn.
83101 2007-02-04  Bruno Haible  <bruno@clisp.org>
83103         New module mbspbrk.
83104         * modules/mbspbrk: New file.
83105         * lib/mbspbrk.c: New file.
83106         * lib/string_.h (strpbrk): Add a conditional link warning.
83107         (mbspbrk): New declaration.
83108         * m4/mbspbrk.m4: New file.
83109         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
83110         GNULIB_MBSPBRK.
83111         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
83112         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
83114 2007-02-04  Bruno Haible  <bruno@clisp.org>
83116         New module mbscspn.
83117         * modules/mbscspn: New file.
83118         * lib/mbscspn.c: New file.
83119         * lib/string_.h (strcspn): Add a conditional link warning.
83120         (mbscspn): New declaration.
83121         * m4/mbscspn.m4: New file.
83122         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
83123         GNULIB_MBSCSPN.
83124         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
83125         * MODULES.html.sh (Internationalization functions): Add mbscspn.
83127 2007-02-04  Bruno Haible  <bruno@clisp.org>
83129         New module mbscasestr, reduced goal of strcasestr.
83130         * modules/mbscasestr: New file.
83131         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
83132         (mbscasestr): Renamed from strcasestr.
83133         * lib/strcasestr.c: Don't include mbuiter.h.
83134         (strcasestr): Remove support for multibyte locales.
83135         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
83136         Change the conditional link warning.
83137         (mbscasestr): New declaration.
83138         * m4/mbscasestr.m4: New file.
83139         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
83140         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
83141         REPLACE_STRCASESTR.
83142         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
83143         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
83144         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
83145         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
83146         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
83147         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
83148         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
83149         (Depends-on): Remove mbuiter.
83150         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
83152 2007-02-04  Bruno Haible  <bruno@clisp.org>
83154         Simplify handling of strncasecmp.
83155         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
83156         the conditional link warning.
83157         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
83158         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
83159         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
83160         * modules/strcase (configure.ac): Don't invoke
83161         gl_STRING_MODULE_INDICATOR.
83162         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
83164 2007-02-04  Bruno Haible  <bruno@clisp.org>
83166         New module mbscasecmp, reduced goal of strcasecmp.
83167         * modules/mbscasecmp: New file.
83168         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
83169         (mbscasecmp): Renamed from strcasecmp.
83170         * lib/strcasecmp.c: Don't include mbuiter.h.
83171         (strcasecmp): Remove support for multibyte locales.
83172         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
83173         Change the conditional link warning.
83174         (mbscasecmp): New declaration.
83175         * m4/mbscasecmp.m4: New file.
83176         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
83177         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
83178         REPLACE_STRCASECMP.
83179         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
83180         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
83181         GNULIB_MBSCASECMP.
83182         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
83183         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
83184         * modules/strcase (Files): Remove m4/mbrtowc.m4.
83185         (Depends-on): Remove mbuiter.
83186         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
83188 2007-02-04  Bruno Haible  <bruno@clisp.org>
83190         New module mbsstr. Remove module strstr.
83191         * modules/mbsstr: New file.
83192         * modules/strstr: Remove file.
83193         * lib/mbsstr.c: Renamed from lib/strstr.c.
83194         (mbsstr): Renamed from strstr.
83195         * lib/string_.h (strstr): Remove declaration. Change the conditional
83196         link warning.
83197         (mbsstr): New declaration.
83198         * m4/mbsstr.m4: New file.
83199         * m4/strstr.m4: Remove file.
83200         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
83201         REPLACE_STRSTR.
83202         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
83203         Don't initialize GNULIB_STRSTR.
83204         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
83205         substitute GNULIB_STRSTR and REPLACE_STRSTR.
83206         * MODULES.html.sh (Internationalization functions): Add mbsstr.
83207         (Support for systems lacking ANSI C 89): Remove strstr.
83209 2007-02-04  Bruno Haible  <bruno@clisp.org>
83211         New module mbsrchr.
83212         * modules/mbsrchr: New file.
83213         * lib/mbsrchr.c: New file.
83214         * lib/string_.h (strrchr): Add a conditional link warning.
83215         (mbsrchr): New declaration.
83216         * m4/mbsrchr.m4: New file.
83217         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
83218         GNULIB_MBSRCHR.
83219         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
83220         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
83222 2007-02-04  Bruno Haible  <bruno@clisp.org>
83224         New module mbschr.
83225         * modules/mbschr: New file.
83226         * lib/mbschr.c: New file.
83227         * lib/string_.h (strchr): Add a conditional link warning.
83228         (mbschr): New declaration.
83229         * m4/mbschr.m4: New file.
83230         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
83231         GNULIB_MBSCHR.
83232         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
83233         * MODULES.html.sh (Internationalization functions): Add mbschr.
83235 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
83237         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
83239         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
83241 2007-02-04  Bruno Haible  <bruno@clisp.org>
83243         New module description section 'configure.ac-early'.
83244         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
83245         (func_get_autoconf_early_snippet): New function.
83246         (func_import, func_create_testdir): Use it. Remove special cases for
83247         modules 'extensions' and 'lock'.
83248         * modules/extensions (configure.ac-early): Require
83249         gl_USE_SYSTEM_EXTENSIONS.
83250         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
83252 2007-02-04  Bruno Haible  <bruno@clisp.org>
83254         Make use of gcj-4.3's -fsource and -ftarget option.
83255         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
83256         and if so try the options -fsource and -ftarget.
83257         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
83258         source_version, ftarget_option, target_version arguments.
83259         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
83260         (is_envjavac_oldgcj_14_14_usable): Renamed from
83261         is_envjavac_gcj_14_14_usable.
83262         (is_envjavac_oldgcj_14_13_usable): Renamed from
83263         is_envjavac_gcj_14_13_usable.
83264         (is_gcj_present): Update.
83265         (is_gcj_43, is_gcj43_usable): New functions.
83266         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
83267         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
83268         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
83269         try the options -fsource and -ftarget.
83271 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83273         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
83274         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
83275         larger value.
83277 2007-02-03  Jim Meyering  <jim@meyering.net>
83279         Give tools a better chance to allocate space for very large buffers.
83280         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
83282         Make pwd and readlink work also when run with an unreadable parent dir
83283         on systems with openat support.
83284         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
83285         provided getcwd function, even when we have openat support.
83286         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
83288 2007-02-02  Bruno Haible  <bruno@clisp.org>
83290         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
83291         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
83292         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
83293         portability problems if one of these functions is only used on specific
83294         platforms.
83295         Reported by Paul Eggert.
83297 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
83299         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
83300         is causing more trouble than it's curing.
83301         * lib/regex_internal.h (__mempcpy): Remove.
83302         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
83303         (and make the code a tad smaller to boot).
83304         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
83306 2007-02-02  Jim Meyering  <jim@meyering.net>
83308         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
83309         section, not in the Makefile.am: one.
83311 2007-02-02  Eric Blake  <ebb9@byu.net>
83313         * lib/strchrnul.c: Always include config.h first.
83315         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
83316         gnulib strstr is not necessary here.
83318 2007-02-02  Simon Josefsson  <simon@josefsson.org>
83320         * m4/socklen.m4: Fix typo.
83322 2007-02-02  Eric Blake  <ebb9@byu.net>
83324         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
83325         * modules/netinet_in (Makefile.am): Likewise.
83327 2007-02-01  Bruno Haible  <bruno@clisp.org>
83329         * lib/string_.h (GL_LINK_WARNING): New macro.
83330         (strcasecmp, strstr, strcasestr): If provided by the system,
83331         conditionally define as a macro that leads to a warning instead of to
83332         an error.
83333         (strncasecmp): Conditionally define as a macro that leads to a warning.
83335 2007-02-01  Karl Berry  <karl@gnu.org>
83337         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
83339 2007-02-01  Bruno Haible  <bruno@clisp.org>
83341         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
83342         renamings.
83344 2007-02-01  Eric Blake  <ebb9@byu.net>
83346         * modules/regex (Depends-on): Revert dependence on mempcpy.
83347         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
83348         module's definition of mempcpy.
83349         Reported by Paul Eggert.
83351 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
83353         * lib/string_.h: If the gnulib module XYZ is not present, undefine
83354         the symbol XYZ before redefining it.  This fixes a problem with
83355         programs that don't use XYZ, when compiled on systems that define
83356         XYZ to something else.
83358 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
83360         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
83361         occurs when "mkdir -m foo" creates a setgid directory that is (1)
83362         writeable to group or other and (2) is intended to have a special
83363         mode bit that is set or cleared.  In such a case, the directory
83364         should be neither group- nor other-writeable until the special
83365         mode bits are right.
83367 2007-01-31  Eric Blake  <ebb9@byu.net>
83369         * modules/mountlist (Depends-on): Add strstr.
83371         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
83372         bug.
83373         * modules/string (Makefile.am): Remove redundant replacement.
83374         * modules/regex (Depends-on): Add mempcpy.
83376 2007-01-31  Bruno Haible  <bruno@clisp.org>
83378         New module description field 'Link'.
83379         * gnulib-tool (func_usage): Document --extract-link-directive.
83380         (sed_extract_prog): Recognize 'Link' directive.
83381         (func_get_link_directive): New function.
83382         (func_import): Show summary of link directives.
83383         Handle --extract-link-directive option.
83384         * modules/acl (Link): New section.
83385         * modules/clock-time (Link): New section.
83386         * modules/euidaccess (Link): New section.
83387         * modules/gettext (Link): New section.
83388         * modules/iconv (Link): New section.
83389         * modules/lock (Link): New section.
83390         * modules/nanosleep (Link): New section.
83391         * modules/readline (Link): New section.
83393 2007-01-27  Bruno Haible  <bruno@clisp.org>
83395         Enforce the use of gnulib modules for unportable <string.h> functions.
83396         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
83397         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
83398         (gl_HEADER_STRING_H_BODY): Require it.
83399         * lib/string_.h: If the gnulib module XYZ is not present, redefine
83400         the symbol XYZ to one that gives a link error.
83401         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
83402         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
83403         * modules/mempcpy (configure.ac): Likewise.
83404         * modules/memrchr (configure.ac): Likewise.
83405         * modules/stpcpy (configure.ac): Likewise.
83406         * modules/stpncpy (configure.ac): Likewise.
83407         * modules/strcase (configure.ac): Likewise.
83408         * modules/strcasestr (configure.ac): Likewise.
83409         * modules/strchrnul (configure.ac): Likewise.
83410         * modules/strdup (configure.ac): Likewise.
83411         * modules/strndup (configure.ac): Likewise.
83412         * modules/strnlen (configure.ac): Likewise.
83413         * modules/strpbrk (configure.ac): Likewise.
83414         * modules/strsep (configure.ac): Likewise.
83415         * modules/strstr (configure.ac): Likewise.
83416         * modules/strtok_r (configure.ac): Likewise.
83418 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
83420         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
83422 2007-01-30  Jim Meyering  <jim@meyering.net>
83424         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
83426 2007-01-29  Bruno Haible  <bruno@clisp.org>
83428         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
83429         * lib/execute.c: Likewise.
83430         * lib/pipe.c: Likewise.
83431         * lib/printf-args.h: Likewise.
83432         * lib/printf-args.c: Likewise.
83433         * lib/printf-parse.c: Likewise.
83434         * lib/vasnprintf.c: Likewise.
83436 2007-01-29  Eric Blake  <ebb9@byu.net>
83438         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
83439         declaration.
83441 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
83443         * lib/strptime.h (strptime): Use 'restrict' for args where
83444         POSIX requires this.
83445         * lib/strptime.c (strptime): Likewise.
83446         Change license notice from LGPL to GPL, since gnulib-tool will
83447         change this as needed.
83448         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
83449         defined.
83450         Include "strptime.h" first, to check interface.
83451         Do not #undef _LIBC and _NL_CURRENT.
83452         Do not include <stdlib.h>; no longer needed.
83453         Include "time_r.h" and declare ptime_locale_status
83454         only if _LIBC is not defined.
83455         (__P): Remove unused macro.
83456         (match_string): Bring back glibc version, but use it only if _LIBC
83457         is defined.
83458         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
83459         Remove unnecessary assertion and abort() call.
83460         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
83461         * m4/strptime.m4: Fix serial number comment.
83462         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
83463         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
83464         (Depends-on): Add time_r.
83466 2007-01-29  Bruno Haible  <bruno@clisp.org>
83468         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83469         strptime.
83470         * modules/strptime (Depends-on): Add stdbool.
83471         * lib/strptime.h: Include <time.h> always. Add comments.
83473 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
83475         * modules/strptime: New file.
83476         * lib/strptime.h: New file.
83477         * lib/strptime.c: New file.
83478         * m4/strptime.m4: New file.
83480 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83482         * MODULES.html.sh: New module mpsort.
83483         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
83485         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
83486         a circularity problem with HP-UX ia64 reported by Bob Proulx in
83487         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
83488         All uses changed.
83489         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
83490         All uses changed.
83491         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
83492         to _Restrict_.
83493         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
83494         the parameter matches the prototype.
83496 2007-01-28  Jim Meyering  <jim@meyering.net>
83498         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
83499         sys/time.h here, reverting that part of the previous patch:
83500         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
83502 2007-01-28  Bruno Haible  <bruno@clisp.org>
83504         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
83505         value of $(SYS_TIME_H).
83506         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
83507         remove it conditionally, too. [added by Jim Meyering]
83508         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
83509         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
83510         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
83511         GETTIMEOFDAY_REPLACEMENT to 1.
83513 2007-01-28  Bruno Haible  <bruno@clisp.org>
83515         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
83516         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
83517         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
83518         Set UNISTD_H instead of UNISTD_H2.
83519         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
83521 2007-01-28  Bruno Haible  <bruno@clisp.org>
83523         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
83524         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
83526 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83528         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
83529         (func_create_testdir): Ensure C locale for `grep' and `tr'
83530         character ranges.
83531         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
83532         ACLOCAL_AMFLAGS parsing state machine.
83534 2007-01-27  Bruno Haible  <bruno@clisp.org>
83536         * modules/unistr/base: Update.
83538 2007-01-27  Bruno Haible  <bruno@clisp.org>
83540         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
83541         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
83542         * modules/unistr/u32-mbtouc-unsafe: Renamed from
83543         modules/unistr/u32-mbtouc.
83544         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
83545         * lib/unistr.h: Update.
83546         * lib/linebreak.c: Update.
83547         * modules/unistr/u32-mbtouc: Renamed from
83548         modules/unistr/u32-mbtouc-safe.
83549         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
83550         * lib/unistr.h: Update.
83551         * lib/unistr/u32-to-u8.c: Update.
83552         * lib/unistr/u32-to-u16.c: Update.
83554 2007-01-27  Bruno Haible  <bruno@clisp.org>
83556         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
83557         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
83558         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
83559         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
83560         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
83561         * modules/unistr/u16-mbtouc-unsafe: Renamed from
83562         modules/unistr/u16-mbtouc.
83563         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
83564         * lib/unistr.h: Update.
83565         * lib/linebreak.c: Update.
83566         * modules/linebreak: Update.
83567         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
83568         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
83569         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
83570         * modules/unistr/u16-mbtouc: Renamed from
83571         modules/unistr/u16-mbtouc-safe.
83572         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
83573         * lib/unistr.h: Update.
83574         * lib/unistr/u16-to-u8.c: Update.
83575         * modules/unistr/u16-to-u8: Update.
83576         * lib/unistr/u16-to-u32.c: Update.
83577         * modules/unistr/u16-to-u32: Update.
83579 2007-01-27  Bruno Haible  <bruno@clisp.org>
83581         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
83582         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
83583         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
83584         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
83585         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
83586         * modules/unistr/u8-mbtouc-unsafe: Renamed from
83587         modules/unistr/u8-mbtouc.
83588         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
83589         * lib/unistr.h: Update.
83590         * lib/striconveh.c: Update.
83591         * modules/striconveh: Update.
83592         * lib/linebreak.c: Update.
83593         * modules/linebreak: Update.
83594         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
83595         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
83596         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
83597         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
83598         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
83599         * lib/unistr.h: Update.
83600         * lib/striconveh.c: Update.
83601         * modules/striconveh: Update.
83602         * lib/unistr/u8-to-u16.c: Update.
83603         * modules/unistr/u8-to-u16: Update.
83604         * lib/unistr/u8-to-u32.c: Update.
83605         * modules/unistr/u8-to-u32: Update.
83607 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83609         Sync from Libtool.
83610         * lib/argz.c: Do not include strings.h nor memory.h, include
83611         string.h unconditionally.  Patch by Simon Josefsson.
83613 2007-01-27  Bruno Haible  <bruno@clisp.org>
83615         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
83616         from gl_HEADER_STRING_H_BODY.
83617         (gl_HEADER_STRING_H_BODY): Require it.
83618         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
83619         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
83620         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
83621         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
83622         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
83623         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
83624         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
83625         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
83626         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
83627         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
83628         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
83629         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
83630         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
83631         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
83632         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
83634 2007-01-27  Bruno Haible  <bruno@clisp.org>
83636         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
83637         check_PROGRAMS into noinst_PROGRAMS.
83638         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
83639         check_PROGRAMS in this case.
83640         (func_import): Set for_test to false.
83641         (func_create_testdir): Set for_test to true.
83643 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
83644             Bruno Haible  <bruno@clisp.org>
83646         * modules/strcasestr (Files): Remove lib/strcasestr.h.
83647         (Depends-on): Add string.
83648         (Includes): Use <string.h> instead of strcasestr.h.
83649         * modules/string (Makefile.am): Also substitute the value of
83650         REPLACE_STRCASESTR.
83651         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
83652         assume strcasestr is declared in <string.h> not <strings.h>. Also
83653         set REPLACE_STRCASESTR.
83654         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
83655         REPLACE_STRCASESTR.
83656         * lib/strcasestr.h: Remove file.
83657         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
83658         * lib/string_.h (strcasestr): New declaration.
83660 2007-01-27  Bruno Haible  <bruno@clisp.org>
83662         * lib/string_.h: Use 'extern'.
83664 2007-01-27  Jim Meyering  <jim@meyering.net>
83666         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
83667         of set-but-not-used local, "q".
83669         * lib/mempcpy.c: Include <config.h> before <string.h>.
83670         This fixes a compilation error on HP-UX, due to the system's
83671         "restrict"-using mempcpy prototype.
83673 2007-01-26  Bruno Haible  <bruno@clisp.org>
83675         Small optimization.
83676         * lib/javacomp.c: Include c-strstr.h.
83677          (is_envjavac_gcj): Use c_strstr instead of strstr.
83678         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
83680 2007-01-26  Bruno Haible  <bruno@clisp.org>
83682         * MODULES.html.sh (Unicode string functions): Add the new modules.
83684         * modules/uniconv/u32-strconv-to-locale: New file.
83685         * lib/uniconv/u32-strconv-to-locale.c: New file.
83687         * modules/uniconv/u16-strconv-to-locale: New file.
83688         * lib/uniconv/u16-strconv-to-locale.c: New file.
83690         * modules/uniconv/u8-strconv-to-locale: New file.
83691         * lib/uniconv/u8-strconv-to-locale.c: New file.
83693         * modules/uniconv/u32-strconv-from-locale: New file.
83694         * lib/uniconv/u32-strconv-from-locale.c: New file.
83696         * modules/uniconv/u16-strconv-from-locale: New file.
83697         * lib/uniconv/u16-strconv-from-locale.c: New file.
83699         * modules/uniconv/u8-strconv-from-locale: New file.
83700         * lib/uniconv/u8-strconv-from-locale.c: New file.
83702         * modules/uniconv/u32-strconv-to-enc: New file.
83703         * lib/uniconv/u32-strconv-to-enc.c: New file.
83704         * modules/uniconv/u32-strconv-to-enc-tests: New file.
83705         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
83707         * modules/uniconv/u16-strconv-to-enc: New file.
83708         * lib/uniconv/u16-strconv-to-enc.c: New file.
83709         * lib/uniconv/u-strconv-to-enc.h: New file.
83710         * modules/uniconv/u16-strconv-to-enc-tests: New file.
83711         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
83713         * modules/uniconv/u8-strconv-to-enc: New file.
83714         * lib/uniconv/u8-strconv-to-enc.c: New file.
83715         * modules/uniconv/u8-strconv-to-enc-tests: New file.
83716         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
83718         * modules/uniconv/u32-strconv-from-enc: New file.
83719         * lib/uniconv/u32-strconv-from-enc.c: New file.
83720         * modules/uniconv/u32-strconv-from-enc-tests: New file.
83721         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
83723         * modules/uniconv/u16-strconv-from-enc: New file.
83724         * lib/uniconv/u16-strconv-from-enc.c: New file.
83725         * modules/uniconv/u16-strconv-from-enc-tests: New file.
83726         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
83728         * modules/uniconv/u8-strconv-from-enc: New file.
83729         * lib/uniconv/u8-strconv-from-enc.c: New file.
83730         * lib/uniconv/u-strconv-from-enc.h: New file.
83731         * modules/uniconv/u8-strconv-from-enc-tests: New file.
83732         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
83734         * modules/uniconv/u32-conv-from-enc: New file.
83735         * lib/uniconv/u32-conv-from-enc.c: New file.
83736         * modules/uniconv/u32-conv-from-enc-tests: New file.
83737         * tests/uniconv/test-u32-conv-from-enc.c: New file.
83739         * modules/uniconv/u16-conv-from-enc: New file.
83740         * lib/uniconv/u16-conv-from-enc.c: New file.
83741         * lib/uniconv/u-conv-from-enc.h: New file.
83742         * modules/uniconv/u16-conv-from-enc-tests: New file.
83743         * tests/uniconv/test-u16-conv-from-enc.c: New file.
83745         * modules/uniconv/u8-conv-from-enc: New file.
83746         * lib/uniconv/u8-conv-from-enc.c: New file.
83747         * modules/uniconv/u8-conv-from-enc-tests: New file.
83748         * tests/uniconv/test-u8-conv-from-enc.c: New file.
83750         * modules/uniconv/base: New file.
83751         * lib/uniconv.h: New file.
83753 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
83755         * doc/gnulib-tool.texi (Initial import): Update to match current
83756         behavior with strdup module.
83757         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
83758         * lib/memmem.h: Remove; all uses removed.  This is now done
83759         by <string.h>.
83760         * lib/mempcpy.h: Likewise.
83761         * lib/memrchr.h: Likewise.
83762         * lib/stpcpy.h: Likewise.
83763         * lib/stpncpy.h: Likewise.
83764         * lib/strcase.h: Likewise.
83765         * lib/strchrnul.h: Likewise.
83766         * lib/strdup.h: Likewise.
83767         * lib/strndup.h: Likewise.
83768         * lib/strnlen.h: Likewise.
83769         * lib/strpbrk.h: Likewise.
83770         * lib/strsep.h: Likewise.
83771         * lib/strstr.h: Likewise.
83772         * lib/strtok_r.h: Likewise.
83773         * lib/string_.h: New file.
83774         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
83775         Rely on <string.h> instead.
83776         * lib/canon-host.c: Likewise.
83777         * lib/chdir-long.c: Likewise.
83778         * lib/concatpath.c: Likewise.
83779         * lib/exclude.c: Likewise.
83780         * lib/fchdir.c: Likewise.
83781         * lib/getaddrinfo.c: Likewise.
83782         * lib/getcwd.c: Likewise.
83783         * lib/getsubopt.c: Likewise.
83784         * lib/glob.c: Likewise.
83785         * lib/hard-locale.c: Likewise.
83786         * lib/iconvme.c: Likewise.
83787         * lib/javacomp.c: Likewise.
83788         * lib/mempcpy.c: Likewise.
83789         * lib/memrchr.c: Likewise.
83790         * lib/regex_internal.h: Likewise.
83791         * lib/stpncpy.c: Likewise.
83792         * lib/strcasecmp.c: Likewise.
83793         * lib/strchrnul.c: Likewise.
83794         * lib/strdup.c: Likewise.
83795         * lib/striconv.c: Likewise.
83796         * lib/striconveh.c: Likewise.
83797         * lib/striconveha.c: Likewise.
83798         * lib/strncasecmp.c: Likewise.
83799         * lib/strndup.c: Likewise.
83800         * lib/strnlen.c: Likewise.
83801         * lib/strsep.c: Likewise.
83802         * lib/strstr.c: Likewise.
83803         * lib/strtok_r.c: Likewise.
83804         * lib/userspec.c: Likewise.
83805         * lib/w32spawn.h: Likewise.
83806         * lib/xstrndup.c: Likewise.
83807         * lib/mountlist.c (strstr): Remove decl.
83808         * m4/string_h.m4: New file.
83809         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
83810         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
83811         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
83812         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
83813         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
83814         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
83815         Set REPLACE_STRCASECMP if necessary.
83816         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
83817         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
83818         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
83819         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
83820         HAVE_DECL_STRDUP if necessary.
83821         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
83822         since gl_FUNC_STRNDUP does that now.
83823         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
83824         Check for decl here...
83825         (gl_PREREQ_STRNLEN): ... not here.
83826         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
83827         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
83828         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
83829         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
83830         necessary.
83831         * modules/string: New file.
83832         * modules/memmem (Files): Remove special-purpose include file.
83833         (Depends-on): Add string.
83834         (Include): Include <string.h>, not the removed file.
83835         * modules/mempcpy: Likewise.
83836         * modules/memrchr: Likewise.
83837         * modules/stpcpy: Likewise.
83838         * modules/stpncpy: Likewise.
83839         * modules/strcase: Likewise.
83840         * modules/strchrnul: Likewise.
83841         * modules/strdup: Likewise.
83842         * modules/strndup: Likewise.
83843         * modules/strnlen: Likewise.
83844         * modules/strpbrk: Likewise.
83845         * modules/strsep: Likewise.
83846         * modules/strstr: Likewise.
83847         * modules/strtok_r: Likewise.
83848         * tests/test-dirname.c: Don't include "strdup.h", since
83849         <string.h> now suffices.
83850         * tests/test-memmem.c: Don't include "memmem.h", since
83851         <string.h> now suffices.
83853 2007-01-25  Bruno Haible  <bruno@clisp.org>
83855         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
83856         *resultp is 0.
83858         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
83859         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
83860         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
83861         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
83863         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
83864         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
83865         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
83866         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
83867         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
83868         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
83870 2007-01-24  Bruno Haible  <bruno@clisp.org>
83872         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
83873         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
83874         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
83875         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
83876         gl_FUNC_FTS_CORE.
83877         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
83878         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
83879         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83880         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
83881         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
83882         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
83883         gl_FUNC_FCHOWNAT.
83884         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
83885         gl_FUNC_STRFTIME.
83886         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
83887         Reported by Ralf Wildenhues.
83889 2007-01-24  Bruno Haible  <bruno@clisp.org>
83891         Drop AC_REQUIRE calls that are redundant with the module dependencies.
83892         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
83893         gl_GETADDRINFO.
83894         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
83895         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
83896         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
83898 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
83900         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
83901         Don't use 'exit'; just return from 'main'.
83902         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
83904         * lib/fnmatch_.h: Readjust white space and comments to match
83905         glibc, to avoid spurious diffs.
83907 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83909         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
83910         2004-12-01 change by Jakub Jelinek, since this code won't compile
83911         if !LIBC.  Problem reported by Bob Proulx.
83913 2007-01-23  Bruno Haible  <bruno@clisp.org>
83915         * lib/striconveh.c: Include c-strcaseeq.h.
83916         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
83917         * modules/striconveh (Depends-on): Add c-strcaseeq.
83919 2007-01-23  Bruno Haible  <bruno@clisp.org>
83921         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
83923         * modules/c-strcaseeq: New file.
83924         * lib/c-strcaseeq.h: New file.
83926         * modules/streq: New file.
83927         * lib/streq.h: New file.
83929 2007-01-23  Bruno Haible  <bruno@clisp.org>
83931         * modules/striconveha-tests: New file.
83932         * tests/test-striconveha.c: New file.
83934         * lib/striconveha.h: Include <stdbool.h>.
83935         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
83936         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
83937         (mem_iconveha_notranslit): Renamed from mem_iconveha.
83938         (mem_iconveha): New function.
83939         (str_iconveha_notranslit): Renamed from str_iconveha.
83940         (str_iconveha): New function.
83941         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
83942         c-strcase.
83944 2007-01-23  Bruno Haible  <bruno@clisp.org>
83946         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
83947         encodings without forgiving before trying any encoding with handler.
83948         (str_iconveha): Try all encodings without forgiving before trying any
83949         encoding with handler.
83951 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83953         Import the following changes from libc.
83955         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
83957         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
83959         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
83961         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
83962         normal_bracket label.
83964         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
83966         [BZ #361]
83967         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
83968         to normal_bracket after fetching the next character.
83970 2007-01-22  Bruno Haible  <bruno@clisp.org>
83972         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
83973         argument.
83974         * lib/striconveh.c (iconv_carefully_1): New function.
83975         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
83976         argument.
83977         (str_cd_iconveh): Update.
83978         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
83979         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
83980         * tests/test-striconveh.c (MAGIC): New macro.
83981         (new_offsets): New function.
83982         (main): Test call with and without offsets.
83984 2007-01-22  Bruno Haible  <bruno@clisp.org>
83986         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
83987         * modules/sys_select (Makefile.am): Likewise.
83988         * modules/sys_socket (Makefile.am): Likewise.
83989         * modules/sys_time (Makefile.am): Likewise.
83991 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
83993         * modules/gettimeofday (License): Change from GPL to LGPL, since
83994         gettimeofday is a library function.
83996 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83998         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
84000 2007-01-21  Bruno Haible  <bruno@clisp.org>
84002         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
84004 2007-01-21  Bruno Haible  <bruno@clisp.org>
84006         * modules/striconveha: New file.
84007         * lib/striconveha.h: New file.
84008         * lib/striconveha.c: New file.
84009         * MODULES.html.sh (Internationalization functions): Add striconveha.
84010         * lib/striconv.c (str_iconv): Optimize the case of an empty input
84011         string.
84012         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
84014 2007-01-21  Bruno Haible  <bruno@clisp.org>
84016         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
84017         * lib/striconveh.c (str_iconveh): Likewise.
84019 2007-01-21  Bruno Haible  <bruno@clisp.org>
84021         * lib/striconveh.h (mem_iconveh): New declaration.
84022         * lib/striconveh.c (mem_iconveh): New function.
84023         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
84025 2007-01-21  Bruno Haible  <bruno@clisp.org>
84027         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
84029         * lib/striconveh.h (mem_cd_iconveh): Change specification.
84030         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
84031         original result buffer.
84032         (str_cd_iconveh): Update.
84033         * tests/test-striconveh.c (main): Update.
84035         * lib/striconv.h (mem_cd_iconv): Change specification.
84036         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
84037         result buffer.
84038         (str_cd_iconv): Update.
84039         * tests/test-striconv.c (main): Update.
84041 2007-01-21  Bruno Haible  <bruno@clisp.org>
84043         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
84045 2007-01-20  Jim Meyering  <jim@meyering.net>
84047         * lib/userspec.c (parse_with_separator): If a user or group string
84048         starts with "+", skip the corresponding name-to-ID look-up, since
84049         such a look-up must fail: user and group names may not include "+".
84051 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
84053         * lib/poll.c: Include sys/time.h and time.h unconditionally,
84054         since we now assume the sys_time module.
84055         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
84056         check for sys/time.h; no longer needed.
84057         * modules/poll (Depends-on): Depend on sys_time.
84059 2007-01-18  Bruno Haible  <bruno@clisp.org>
84061         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
84062         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
84064         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
84065         gettimeofday.
84067         * tests/test-gettimeofday.c: Include <time.h>.
84068         (dummy): Remove variable.
84070         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
84071         gl_HEADER_SYS_TIME_H.
84072         (gl_HEADER_SYS_TIME_H): New macro.
84074         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
84075         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
84076         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
84077         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
84078         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
84079         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
84080         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
84081         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
84082         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
84083         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
84084         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
84086         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
84087         last change; it caused a compilation error when cross-compiling to
84088         Cygwin.
84090 2007-01-18  Jim Meyering  <jim@meyering.net>
84092         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
84093         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
84094         than the race-prone "test -d sys || mkdir sys".
84095         (configure.ac): Use AC_PROG_MKDIR_P.
84096         * modules/sys_select: Likewise.
84097         * modules/sys_socket: Likewise.
84098         * modules/sys_time: Likewise.
84100 2007-01-18  Eric Blake  <ebb9@byu.net>
84102         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
84103         replace gettimeofday.
84104         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
84105         name, to avoid infinite recursion.
84107 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
84109         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
84110         module sys_time.
84111         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
84112         assume timespec.h defines struct timeval.
84113         * lib/settime.c: Likewise.
84114         * lib/utimens.c: Likewise.
84115         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
84116         since we now assume the gettimeofday module.
84117         * lib/tempname.c (__gen_tempname): Likewise.
84118         * lib/gettimeofday.h: Remove.
84119         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
84120         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
84121         Include <time.h>, for 'time()'.
84122         (localtime_buffer_addr): Also use this workaround if
84123         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
84124         to simplify the uses.  All uses changed.
84125         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
84126         that #undef is inside {}, and 'const' follows type name consistently.
84127         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
84128         (gettimeofday): Do not use the maximum possible value for
84129         tv->tv_usec, since that might break usages other than ls.c.
84130         Instead, we'll leave ls.c alone.  This undoes today's patch
84131         by Bruno.  Add a compile-time warning for 1s-clock resolution;
84132         we've never observed the problem but might as well keep the
84133         canary.
84134         * lib/nanosleep.c: Include timespec.h first, for interface check.
84135         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
84136         now assume the sys_time module.
84137         * lib/tempname.c: Likewise.
84138         * lib/timespec.h: Likewise.
84139         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
84140         needed.
84141         * lib/strftime.c: Likewise.
84142         * lib/timespec.h: Likewise.
84143         * lib/posixtm.c: Include posixtm.h first, for interface check.
84144         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
84145         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
84146         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
84147         * lib/sys_time_.h: New file.
84148         * lib/timespec.h (struct timespec): Use long int, not long.
84149         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
84150         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
84151         Remove obsolescent call to AC_HEADER_TIME.
84152         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
84153         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
84154         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
84155         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
84156         Likewise.
84157         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
84158         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
84159         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
84160         into the sys_time module.  Check for gettimeofday just once.
84161         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
84162         for gettimeofday signature to just check the signature.  Merely
84163         compile it, since linking doesn't test signature.  Improve test for
84164         whether gettimeofday.o is actually needed.
84165         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
84166         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
84167         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
84168         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
84169         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
84170         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
84171         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
84172         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
84173         than worrying about sys/time.h.
84174         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
84175         Don't bother worrying about TIME_WITH_SYS_TIME.
84176         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
84177         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
84178         * m4/sys_time_h.m4: New file.
84179         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
84180         Don't include sys/time.h.  Return from main rather than exiting.
84181         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
84182         all uses changed.
84183         * modules/gethrxtime (Depends-on): Add sys_time.
84184         * modules/gettime (Depends-on): Likewise.
84185         * modules/gettimeofday (Depends-on): Likewise.
84186         * modules/nanosleep (Depends-on): Likewise.
84187         * modules/settime (Depends-on): Likewise.
84188         * modules/tempname (Depends-on): Likewise.
84189         * modules/utimens (Depends-on): Likewise.
84190         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
84191         (Include): Change back to <sys/time.h>.
84192         (Maintainer): Add self.
84193         * modules/sys_time: New file.
84194         * modules/tempname (Depends-on): Add gettimeofday.
84195         * tests/test-gettimeofday.c: Include <sys/time.h>
84196         rather than gettimeofday.h.
84198 2007-01-17  Bruno Haible  <bruno@clisp.org>
84200         * gnulib-tool (func_get_license): Revert last patch. Instead, let
84201         the license default to GPL.
84202         (func_create_testdir): Don't complain if a module is LGPL and its
84203         tests module depends on GPLed modules.
84205 2007-01-17  Bruno Haible  <bruno@clisp.org>
84207         * lib/gettimeofday.c (gettimeofday): Add code for the case
84208         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
84209         maximum possible value for tv->tv_usec, rather than the minimum one.
84211 2005-10-08  Martin Lambers  <marlam@marlam.de>
84212 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
84213 2007-01-16  Bruno Haible  <bruno@clisp.org>
84215         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
84216         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
84217         gl_FUNC_GETTIMEOFDAY.
84218         (Include): Add gettimeofday.h.
84219         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
84220         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
84221         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
84222         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
84223         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
84224         * lib/gettimeofday.h: New file.
84225         * lib/gettimeofday.c: Include <sys/timeb.h>.
84226         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
84227         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
84228         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
84229         fall back on time().
84231         * tests/test-gettimeofday.c: New file.
84232         * modules/gettimeofday-tests: New file.
84234 2007-01-16  Eric Blake  <ebb9@byu.net>
84236         * modules/fnmatch (Depends-on): Depend on wchar.
84237         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
84238         * m4/fnmatch.m4: Likewise.
84239         * modules/mbchar (Makefile.am): Assume <wchar.h>.
84240         * m4/mbchar.m4: Likewise.
84241         * modules/mbswidth (Depends-on): Depend on wchar.
84242         * lib/mbswidth.c: Assume <wchar.h>.
84243         * m4/mbswidth.m4: Likewise.
84244         * modules/quotearg (Depends-on): Depend on wchar.
84245         * lib/quotearg.c: Assume <wchar.h>.
84246         * m4/quotearg.m4: Likewise.
84247         * modules/regex (Depends-on): Depend on wchar.
84248         * lib/regex_internal.h: Assume <wchar.h>.
84249         * m4/regex.m4: Likewise.
84250         * modules/stdint (Depends-on): Depend on wchar.
84251         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
84252         * m4/stdint.m4: Likewise.
84253         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
84254         * modules/strftime (Depends-on): Depend on wchar.
84255         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
84256         * modules/strtol (Depends-on): Depend on wchar.
84257         * lib/strtol.c: Assume <wchar.h>.
84258         * modules/wcwidth (Depends-on): Depend on wchar.
84259         * lib/wcwidth.h: Assume <wchar.h>.
84260         * m4/wcwidth.m4: Likewise.
84262 2007-01-16  Bruno Haible  <bruno@clisp.org>
84264         * modules/csharpexec-script: New, created from...
84265         * modules/csharpexec: ... this.
84267 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
84269         * modules/javaexec-script: New, created from...
84270         * modules/javaexec: ... this.
84272 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84274         * modules/poll (Dependencies): Add sys_select.
84276 2007-01-15  Jim Meyering  <jim@meyering.net>
84278         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
84279         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
84280         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
84281         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
84283 2007-01-15  Bruno Haible  <bruno@clisp.org>
84285         * modules/striconveh: New file.
84286         * lib/striconveh.h: New file.
84287         * lib/striconveh.c: New file.
84288         * MODULES.html.sh (Internationalization functions): Add striconveh.
84290         * modules/striconveh-tests: New file.
84291         * tests/test-striconveh.c: New file.
84293 2007-01-15  Bruno Haible  <bruno@clisp.org>
84295         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
84296         not from GNU libiconv or GNU libc.
84298 2007-01-15  Bruno Haible  <bruno@clisp.org>
84300         * doc/gnulib-intro.texi (Copyright): Explain the different license
84301         terms for module descriptions, autoconf macros, tests, documentation.
84303 2007-01-14  Bruno Haible  <bruno@clisp.org>
84305         * modules/striconv-tests: New file.
84306         * tests/test-striconv.c: New file.
84308 2007-01-14  Bruno Haible  <bruno@clisp.org>
84310         * modules/iconv-tests: New file.
84311         * tests/test-iconv.c: New file.
84313 2007-01-14  Bruno Haible  <bruno@clisp.org>
84315         * gnulib-tool (func_get_license): For test modules, use the license of
84316         the main module.
84318 2007-01-14  Bruno Haible  <bruno@clisp.org>
84320         * modules/iconv (Include): Clarify that <iconv.h> can only be included
84321         if iconv is found to exist.
84323 2007-01-14  Bruno Haible  <bruno@clisp.org>
84325         * modules/c-ctype-tests: New file.
84326         * tests/test-c-ctype.c: New file.
84328 2007-01-14  Bruno Haible  <bruno@clisp.org>
84330         * modules/binary-io-tests: New file.
84331         * tests/test-binary-io.sh: New file.
84332         * tests/test-binary-io.c: New file.
84334 2007-01-14  Bruno Haible  <bruno@clisp.org>
84336         * modules/array-oset-tests: New file.
84337         * tests/test-array_oset.c: New file.
84339 2007-01-14  Bruno Haible  <bruno@clisp.org>
84341         * modules/array-list-tests: New file.
84342         * tests/test-array_list.c: New file.
84344 2007-01-14  Bruno Haible  <bruno@clisp.org>
84346         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
84347         and make.
84348         Reported by Simon Josefsson in
84349         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
84351 2007-01-14  Bruno Haible  <bruno@clisp.org>
84353         * modules/allocsa-tests: New file.
84354         * tests/test-allocsa.c: New file.
84356 2007-01-14  Bruno Haible  <bruno@clisp.org>
84358         * modules/fchdir (Depends-on): Add absolute-header.
84359         * modules/unistd (Depends-on): Likewise.
84361 2006-12-30  Bruno Haible  <bruno@clisp.org>
84363         * modules/fchdir: New file.
84364         * modules/unistd (Files): Add lib/unistd_.h.
84365         (Makefile.am): Generate unistd.h from unistd_.h.
84366         * lib/fchdir.c: New file.
84367         * lib/dirent_.h: New file.
84368         * lib/unistd_.h: New file.
84369         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
84370         * m4/fchdir.m4: New file.
84371         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
84372         (gl_HEADER_UNISTD): Invoke it.
84373         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
84374         function.
84375         * lib/backupfile.c (opendir, closedir): Undefine.
84376         * lib/chown.c (open, close): Undefine.
84377         * lib/clean-temp.c (open, close): Undefine.
84378         * lib/copy-file.c (open, close): Undefine.
84379         * lib/execute.c (open, close): Undefine.
84380         * lib/fsusage.c (open, close): Undefine.
84381         * lib/gc-gnulib.c (open, close): Undefine.
84382         * lib/getcwd.c (opendir, closedir): Undefine.
84383         * lib/glob.c (opendir, closedir): Undefine.
84384         * lib/javacomp.c (open, close): Undefine.
84385         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
84386         * lib/openat-proc.c (open, close): Undefine.
84387         * lib/pagealign_alloc.c (open, close): Undefine.
84388         * lib/pipe.c (open, close): Undefine.
84389         * lib/progreloc.c (open, close): Undefine.
84390         * lib/savedir.c (opendir, closedir): Undefine.
84391         * lib/utime.c (open, close): Undefine.
84392         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
84394 2007-01-10  Bruno Haible  <bruno@clisp.org>
84396         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
84398 2007-01-12  Eric Blake  <ebb9@byu.net>
84400         Provide a robust <wchar.h>.  Further simplifications are now
84401         possible in other modules, but not included here.
84402         * modules/wchar: New module.
84403         * m4/wchar.m4: New file.
84404         * lib/wchar_.h: Likewise.
84405         * modules/mbchar (Depends-on): Depend on wchar, as the first use
84406         of the new module.
84407         * MODULES.html.sh (Extended multibyte and wide character utilities):
84408         New section.
84410 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
84412         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
84413         to a reasonable default for memory allocation.
84414         (xreadlink): Don't allocate a huge buffer, to work around a buggy
84415         file system that reports garbage st_size values for symlinks.
84416         Problem reported by Liyang Hu.
84418 2007-01-11  Simon Josefsson  <simon@josefsson.org>
84420         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
84421         Emacs .#* auto-save files).
84423 2007-01-11  Bruno Haible  <bruno@clisp.org>
84425         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
84426         directory.
84428 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
84430         Use @...@ consistently in lib/wctype_.h.
84431         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
84432         on it being set to 1 or 0.
84433         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
84434         go back to AC_SUBSTing it.
84435         * modules/wctype (Makefile.am): Undo previous change.
84437 2007-01-10  Eric Blake  <ebb9@byu.net>
84439         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
84440         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
84441         * modules/wctype (Makefile.am): Likewise.
84442         Reported by Chris McGuire.
84444 2007-01-10  Jim Meyering  <jim@meyering.net>
84446         fts.c: a small readability/maintainability improvement
84447         * lib/fts.c (fts_read): Make this code slightly more readable and
84448         maintainable by hoisting the "sp->fts_cur = p" assignments to
84449         immediately follow the statements that set P.  Derived from
84450         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
84452 2007-01-10  Eric Blake  <ebb9@byu.net>
84454         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
84455         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
84456         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
84457         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
84458         Reported by Chris McGuire.
84460 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84462         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
84463         in sed script.
84465 2007-01-09  Bruno Haible  <bruno@clisp.org>
84467         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
84468         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
84469         variables.
84470         (func_module): Use them.
84472 2007-01-09  Bruno Haible  <bruno@clisp.org>
84474         * modules/unistr/base: New file.
84475         * lib/unistr.h: New file.
84477         * modules/unistr/u8-to-u16: New file.
84478         * lib/unistr/u8-to-u16.c: New file.
84480         * modules/unistr/u8-to-u32: New file.
84481         * lib/unistr/u8-to-u32.c: New file.
84483         * modules/unistr/u16-to-u8: New file.
84484         * lib/unistr/u16-to-u8.c: New file.
84486         * modules/unistr/u16-to-u32: New file.
84487         * lib/unistr/u16-to-u32.c: New file.
84489         * modules/unistr/u32-to-u8: New file.
84490         * lib/unistr/u32-to-u8.c: New file.
84492         * modules/unistr/u32-to-u16: New file.
84493         * lib/unistr/u32-to-u16.c: New file.
84495         * modules/unistr/u8-check: New file.
84496         * modules/unistr/u16-check: New file.
84497         * modules/unistr/u32-check: New file.
84498         * lib/unistr/u8-check.c: New file.
84499         * lib/unistr/u16-check.c: New file.
84500         * lib/unistr/u32-check.c: New file.
84502         * modules/unistr/u8-chr: New file.
84503         * modules/unistr/u16-chr: New file.
84504         * modules/unistr/u32-chr: New file.
84505         * lib/unistr/u8-chr.c: New file.
84506         * lib/unistr/u16-chr.c: New file.
84507         * lib/unistr/u32-chr.c: New file.
84509         * modules/unistr/u8-cmp: New file.
84510         * modules/unistr/u16-cmp: New file.
84511         * modules/unistr/u32-cmp: New file.
84512         * lib/unistr/u8-cmp.c: New file.
84513         * lib/unistr/u16-cmp.c: New file.
84514         * lib/unistr/u32-cmp.c: New file.
84516         * modules/unistr/u8-cpy: New file.
84517         * modules/unistr/u16-cpy: New file.
84518         * modules/unistr/u32-cpy: New file.
84519         * lib/unistr/u8-cpy.c: New file.
84520         * lib/unistr/u16-cpy.c: New file.
84521         * lib/unistr/u32-cpy.c: New file.
84522         * lib/unistr/u-cpy.h: New file.
84524         * modules/unistr/u8-cpy-alloc: New file.
84525         * modules/unistr/u16-cpy-alloc: New file.
84526         * modules/unistr/u32-cpy-alloc: New file.
84527         * lib/unistr/u8-cpy-alloc.c: New file.
84528         * lib/unistr/u16-cpy-alloc.c: New file.
84529         * lib/unistr/u32-cpy-alloc.c: New file.
84530         * lib/unistr/u-cpy-alloc.h: New file.
84532         * modules/unistr/u8-endswith: New file.
84533         * modules/unistr/u16-endswith: New file.
84534         * modules/unistr/u32-endswith: New file.
84535         * lib/unistr/u8-endswith.c: New file.
84536         * lib/unistr/u16-endswith.c: New file.
84537         * lib/unistr/u32-endswith.c: New file.
84538         * lib/unistr/u-endswith.h: New file.
84540         * modules/unistr/u8-mblen: New file.
84541         * modules/unistr/u16-mblen: New file.
84542         * modules/unistr/u32-mblen: New file.
84543         * lib/unistr/u8-mblen.c: New file.
84544         * lib/unistr/u16-mblen.c: New file.
84545         * lib/unistr/u32-mblen.c: New file.
84547         * modules/unistr/u8-mbtouc: New file.
84548         * modules/unistr/u16-mbtouc: New file.
84549         * modules/unistr/u32-mbtouc: New file.
84550         * lib/unistr/u8-mbtouc.c: New file.
84551         * lib/unistr/u16-mbtouc.c: New file.
84552         * lib/unistr/u32-mbtouc.c: New file.
84554         * modules/unistr/u8-mbtouc-safe: New file.
84555         * modules/unistr/u16-mbtouc-safe: New file.
84556         * modules/unistr/u32-mbtouc-safe: New file.
84557         * lib/unistr/u8-mbtouc-safe.c: New file.
84558         * lib/unistr/u16-mbtouc-safe.c: New file.
84559         * lib/unistr/u32-mbtouc-safe.c: New file.
84561         * modules/unistr/u8-move: New file.
84562         * modules/unistr/u16-move: New file.
84563         * modules/unistr/u32-move: New file.
84564         * lib/unistr/u8-move.c: New file.
84565         * lib/unistr/u16-move.c: New file.
84566         * lib/unistr/u32-move.c: New file.
84567         * lib/unistr/u-move.h: New file.
84569         * modules/unistr/u8-next: New file.
84570         * modules/unistr/u16-next: New file.
84571         * modules/unistr/u32-next: New file.
84572         * lib/unistr/u8-next.c: New file.
84573         * lib/unistr/u16-next.c: New file.
84574         * lib/unistr/u32-next.c: New file.
84576         * modules/unistr/u8-prev: New file.
84577         * modules/unistr/u16-prev: New file.
84578         * modules/unistr/u32-prev: New file.
84579         * lib/unistr/u8-prev.c: New file.
84580         * lib/unistr/u16-prev.c: New file.
84581         * lib/unistr/u32-prev.c: New file.
84583         * modules/unistr/u8-set: New file.
84584         * modules/unistr/u16-set: New file.
84585         * modules/unistr/u32-set: New file.
84586         * lib/unistr/u8-set.c: New file.
84587         * lib/unistr/u16-set.c: New file.
84588         * lib/unistr/u32-set.c: New file.
84589         * lib/unistr/u-set.h: New file.
84591         * modules/unistr/u8-startswith: New file.
84592         * modules/unistr/u16-startswith: New file.
84593         * modules/unistr/u32-startswith: New file.
84594         * lib/unistr/u8-startswith.c: New file.
84595         * lib/unistr/u16-startswith.c: New file.
84596         * lib/unistr/u32-startswith.c: New file.
84597         * lib/unistr/u-startswith.h: New file.
84599         * modules/unistr/u8-stpcpy: New file.
84600         * modules/unistr/u16-stpcpy: New file.
84601         * modules/unistr/u32-stpcpy: New file.
84602         * lib/unistr/u8-stpcpy.c: New file.
84603         * lib/unistr/u16-stpcpy.c: New file.
84604         * lib/unistr/u32-stpcpy.c: New file.
84605         * lib/unistr/u-stpcpy.h: New file.
84607         * modules/unistr/u8-stpncpy: New file.
84608         * modules/unistr/u16-stpncpy: New file.
84609         * modules/unistr/u32-stpncpy: New file.
84610         * lib/unistr/u8-stpncpy.c: New file.
84611         * lib/unistr/u16-stpncpy.c: New file.
84612         * lib/unistr/u32-stpncpy.c: New file.
84613         * lib/unistr/u-stpncpy.h: New file.
84615         * modules/unistr/u8-strcat: New file.
84616         * modules/unistr/u16-strcat: New file.
84617         * modules/unistr/u32-strcat: New file.
84618         * lib/unistr/u8-strcat.c: New file.
84619         * lib/unistr/u16-strcat.c: New file.
84620         * lib/unistr/u32-strcat.c: New file.
84621         * lib/unistr/u-strcat.h: New file.
84623         * modules/unistr/u8-strchr: New file.
84624         * modules/unistr/u16-strchr: New file.
84625         * modules/unistr/u32-strchr: New file.
84626         * lib/unistr/u8-strchr.c: New file.
84627         * lib/unistr/u16-strchr.c: New file.
84628         * lib/unistr/u32-strchr.c: New file.
84630         * modules/unistr/u8-strcmp: New file.
84631         * modules/unistr/u16-strcmp: New file.
84632         * modules/unistr/u32-strcmp: New file.
84633         * lib/unistr/u8-strcmp.c: New file.
84634         * lib/unistr/u16-strcmp.c: New file.
84635         * lib/unistr/u32-strcmp.c: New file.
84637         * modules/unistr/u8-strcpy: New file.
84638         * modules/unistr/u16-strcpy: New file.
84639         * modules/unistr/u32-strcpy: New file.
84640         * lib/unistr/u8-strcpy.c: New file.
84641         * lib/unistr/u16-strcpy.c: New file.
84642         * lib/unistr/u32-strcpy.c: New file.
84643         * lib/unistr/u-strcpy.h: New file.
84645         * modules/unistr/u8-strcspn: New file.
84646         * modules/unistr/u16-strcspn: New file.
84647         * modules/unistr/u32-strcspn: New file.
84648         * lib/unistr/u8-strcspn.c: New file.
84649         * lib/unistr/u16-strcspn.c: New file.
84650         * lib/unistr/u32-strcspn.c: New file.
84651         * lib/unistr/u-strcspn.h: New file.
84653         * modules/unistr/u8-strdup: New file.
84654         * modules/unistr/u16-strdup: New file.
84655         * modules/unistr/u32-strdup: New file.
84656         * lib/unistr/u8-strdup.c: New file.
84657         * lib/unistr/u16-strdup.c: New file.
84658         * lib/unistr/u32-strdup.c: New file.
84659         * lib/unistr/u-strdup.h: New file.
84661         * modules/unistr/u8-strlen: New file.
84662         * modules/unistr/u16-strlen: New file.
84663         * modules/unistr/u32-strlen: New file.
84664         * lib/unistr/u8-strlen.c: New file.
84665         * lib/unistr/u16-strlen.c: New file.
84666         * lib/unistr/u32-strlen.c: New file.
84667         * lib/unistr/u-strlen.h: New file.
84669         * modules/unistr/u8-strmblen: New file.
84670         * modules/unistr/u16-strmblen: New file.
84671         * modules/unistr/u32-strmblen: New file.
84672         * lib/unistr/u8-strmblen.c: New file.
84673         * lib/unistr/u16-strmblen.c: New file.
84674         * lib/unistr/u32-strmblen.c: New file.
84676         * modules/unistr/u8-strmbtouc: New file.
84677         * modules/unistr/u16-strmbtouc: New file.
84678         * modules/unistr/u32-strmbtouc: New file.
84679         * lib/unistr/u8-strmbtouc.c: New file.
84680         * lib/unistr/u16-strmbtouc.c: New file.
84681         * lib/unistr/u32-strmbtouc.c: New file.
84683         * modules/unistr/u8-strncat: New file.
84684         * modules/unistr/u16-strncat: New file.
84685         * modules/unistr/u32-strncat: New file.
84686         * lib/unistr/u8-strncat.c: New file.
84687         * lib/unistr/u16-strncat.c: New file.
84688         * lib/unistr/u32-strncat.c: New file.
84689         * lib/unistr/u-strncat.h: New file.
84691         * modules/unistr/u8-strncmp: New file.
84692         * modules/unistr/u16-strncmp: New file.
84693         * modules/unistr/u32-strncmp: New file.
84694         * lib/unistr/u8-strncmp.c: New file.
84695         * lib/unistr/u16-strncmp.c: New file.
84696         * lib/unistr/u32-strncmp.c: New file.
84698         * modules/unistr/u8-strncpy: New file.
84699         * modules/unistr/u16-strncpy: New file.
84700         * modules/unistr/u32-strncpy: New file.
84701         * lib/unistr/u8-strncpy.c: New file.
84702         * lib/unistr/u16-strncpy.c: New file.
84703         * lib/unistr/u32-strncpy.c: New file.
84704         * lib/unistr/u-strncpy.h: New file.
84706         * modules/unistr/u8-strnlen: New file.
84707         * modules/unistr/u16-strnlen: New file.
84708         * modules/unistr/u32-strnlen: New file.
84709         * lib/unistr/u8-strnlen.c: New file.
84710         * lib/unistr/u16-strnlen.c: New file.
84711         * lib/unistr/u32-strnlen.c: New file.
84712         * lib/unistr/u-strnlen.h: New file.
84714         * modules/unistr/u8-strpbrk: New file.
84715         * modules/unistr/u16-strpbrk: New file.
84716         * modules/unistr/u32-strpbrk: New file.
84717         * lib/unistr/u8-strpbrk.c: New file.
84718         * lib/unistr/u16-strpbrk.c: New file.
84719         * lib/unistr/u32-strpbrk.c: New file.
84720         * lib/unistr/u-strpbrk.h: New file.
84722         * modules/unistr/u8-strrchr: New file.
84723         * modules/unistr/u16-strrchr: New file.
84724         * modules/unistr/u32-strrchr: New file.
84725         * lib/unistr/u8-strrchr.c: New file.
84726         * lib/unistr/u16-strrchr.c: New file.
84727         * lib/unistr/u32-strrchr.c: New file.
84729         * modules/unistr/u8-strspn: New file.
84730         * modules/unistr/u16-strspn: New file.
84731         * modules/unistr/u32-strspn: New file.
84732         * lib/unistr/u8-strspn.c: New file.
84733         * lib/unistr/u16-strspn.c: New file.
84734         * lib/unistr/u32-strspn.c: New file.
84735         * lib/unistr/u-strspn.h: New file.
84737         * modules/unistr/u8-strstr: New file.
84738         * modules/unistr/u16-strstr: New file.
84739         * modules/unistr/u32-strstr: New file.
84740         * lib/unistr/u8-strstr.c: New file.
84741         * lib/unistr/u16-strstr.c: New file.
84742         * lib/unistr/u32-strstr.c: New file.
84743         * lib/unistr/u-strstr.h: New file.
84745         * modules/unistr/u8-strtok: New file.
84746         * modules/unistr/u16-strtok: New file.
84747         * modules/unistr/u32-strtok: New file.
84748         * lib/unistr/u8-strtok.c: New file.
84749         * lib/unistr/u16-strtok.c: New file.
84750         * lib/unistr/u32-strtok.c: New file.
84751         * lib/unistr/u-strtok.h: New file.
84753         * modules/unistr/u8-uctomb: New file.
84754         * modules/unistr/u16-uctomb: New file.
84755         * modules/unistr/u32-uctomb: New file.
84756         * lib/unistr/u8-uctomb.c: New file.
84757         * lib/unistr/u16-uctomb.c: New file.
84758         * lib/unistr/u32-uctomb.c: New file.
84760         * MODULES.html.sh (Unicode string functions): Add the new modules.
84762 2007-01-08  Bruno Haible  <bruno@clisp.org>
84764         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
84765         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
84766         subdirectories.
84768 2007-01-08  Karl Berry  <karl@gnu.org>
84770         * doc/error.texi: mention that main() fns must set program_name
84771         when progname is used.
84773 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
84775         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
84776         WCTYPE_H is empty, for the benefit of builds from non-distclean
84777         directories.  Problem reported by Eric Blake in
84778         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
84780 2007-01-08  Bruno Haible  <bruno@clisp.org>
84782         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
84783         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
84784         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
84785         PROVIDE_CANONICALIZE_FILENAME_MODE.
84786         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
84788 2007-01-08  Bruno Haible  <bruno@clisp.org>
84790         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
84791         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
84792         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
84793         * lib/fts.c: Likewise.
84794         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
84796 2006-12-25  Bruno Haible  <bruno@clisp.org>
84798         * modules/utf8-ucs4-safe: New file.
84799         * lib/utf8-ucs4-safe.h: New file.
84800         * lib/unistr/utf8-ucs4-safe.c: New file.
84802         * modules/utf16-ucs4-safe: New file.
84803         * lib/utf16-ucs4-safe.h: New file.
84804         * lib/unistr/utf16-ucs4-safe.c: New file.
84806         * MODULES.html.sh (Unicode string functions): Add the new modules.
84808 2007-01-08  Bruno Haible  <bruno@clisp.org>
84810         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
84811         (Depends-on): Add unitypes.
84812         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
84813         (u8_mbtouc_aux): Move out to separate file.
84814         (u8_mbtouc): Use ucs4_t, uint8_t types.
84815         * lib/unistr/utf8-ucs4.c: New file.
84817         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
84818         (Depends-on): Add unitypes.
84819         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
84820         (u16_mbtouc_aux): Move out to separate file.
84821         (u16_mbtouc): Use ucs4_t, uint16_t types.
84822         * lib/unistr/utf16-ucs4.c: New file.
84824         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
84825         (Depends-on): Add unitypes.
84826         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
84827         (u8_uctomb_aux): Move out to separate file.
84828         (u8_uctomb): Use ucs4_t, uint8_t types.
84829         * lib/unistr/ucs4-utf8.c: New file.
84831         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
84832         (Depends-on): Add unitypes.
84833         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
84834         (u16_uctomb_aux): Move out to separate file.
84835         (u16_uctomb): Use ucs4_t, uint16_t types.
84836         * lib/unistr/ucs4-utf16.c: New file.
84838 2006-12-25  Bruno Haible  <bruno@clisp.org>
84840         * modules/unitypes: New file.
84841         * lib/unitypes.h: New file.
84842         * MODULES.html.sh (func_all_modules): New section "Unicode string
84843         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
84844         this section. Add unitypes.
84846 2007-01-08  Bruno Haible  <bruno@clisp.org>
84848         Avoid variable names that conflict with those from libtool.
84849         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
84850         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
84851         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
84852         library_names_spec to acl_library_names_spec, hardcode_* to
84853         acl_hardcode_*.
84854         Reported by Ralf Wildenhues.
84856 2007-01-08  Bruno Haible  <bruno@clisp.org>
84858         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
84859         definition.
84860         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
84861         definition.
84862         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
84863         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
84864         definition.
84865         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
84866         definition.
84867         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
84868         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
84869         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
84870         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
84871         definition.
84872         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
84873         definition.
84874         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
84875         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
84876         GC_USE_<algorithm>.
84877         * lib/gc-libgcrypt.c: Likewise.
84878         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
84879         * modules/gc-arctwo (configure.ac): Likewise.
84880         * modules/gc-des (configure.ac): Likewise.
84881         * modules/gc-hmac-md5 (configure.ac): Likewise.
84882         * modules/gc-hmac-sha1 (configure.ac): Likewise.
84883         * modules/gc-md2 (configure.ac): Likewise.
84884         * modules/gc-md4 (configure.ac): Likewise.
84885         * modules/gc-md5 (configure.ac): Likewise.
84886         * modules/gc-random (configure.ac): Likewise.
84887         * modules/gc-rijndael (configure.ac): Likewise.
84888         * modules/gc-sha1 (configure.ac): Likewise.
84890 2007-01-08  Bruno Haible  <bruno@clisp.org>
84892         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
84893         macro definition.
84894         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
84895         definition.
84896         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
84897         definition.
84898         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
84899         * modules/fcntl-safer (configure.ac): Likewise.
84900         * modules/fopen-safer (configure.ac): Likewise.
84901         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
84902         GNULIB_FWRITEERROR macro definition.
84904 2007-01-08  Bruno Haible  <bruno@clisp.org>
84906         * m4/gnulib-common.m4: New file.
84907         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
84908         (func_get_filelist): Add m4/gnulib-common.m4.
84910 2007-01-08  Bruno Haible  <bruno@clisp.org>
84912         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
84913         command.
84915 2007-01-08  Jim Meyering  <jim@meyering.net>
84917         Use a more robust test for a "can't happen" condition.
84918         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
84919         narrowed the st_size value.  Presuming the "can't happen" condition
84920         is true, that narrowing could conceivably convert an invalid st_size
84921         value into a valid one.  Instead, use a change based on Matthew
84922         Woehlke's original patch.
84924         Slight readability improvement: use an assert-like macro
84925         in place of literal "abort ()" uses.
84926         * lib/fts.c (fts_assert): Define.
84927         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
84928         Use this macro instead of a bare 'abort'.
84930 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
84932         Don't worry about using IRIX 5.3's wctype.h broken definitions;
84933         simply work around them.
84934         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
84935         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
84936         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
84937         declaring.
84938         Don't bother to define as macros, since the standard doesn't require it.
84939         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
84940         longer worry about IRIX 5.3.
84941         (HAVE_WCTYPE_CTMP_BUG): Remove.
84943 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84945         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
84946         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
84947         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
84948         Problems reported by Georg Schwarz for IRIX 5.3.
84950         * gnulib-tool (autoconf_minversion): Take the maximum version number
84951         found, not the minimum.  Problem reported by James Youngman.
84953 2007-01-03  Karl Berry  <karl@gnu.org>
84955         * doc/error.texi: new file, explaining interaction with progname.
84956         * doc/gnulib.texi: include it.  Update copyright.
84958 2007-01-03  Simon Josefsson  <simon@josefsson.org>
84960         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
84961         AC_CANONICAL_HOST, to improve autobuild outputs.
84963 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
84964             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
84966         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
84967         sockets, server sockets, and other file descriptors.  Count errors
84968         to compute the return value.  Reorder the code a bit to be easier
84969         to follow.  Don't set event bits that were not requested (except
84970         POLLERR and POLLHUP).
84972 2007-01-01  Bruno Haible  <bruno@clisp.org>
84974         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
84976 2007-01-03  Jim Meyering  <jim@meyering.net>
84978         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
84980 2007-01-02  Bruno Haible  <bruno@clisp.org>
84982         * modules/settime (Include): Require timespec.h.
84983         * modules/nanosleep (Include): Likewise.
84985 2007-01-01  Bruno Haible  <bruno@clisp.org>
84987         * gnulib-tool (func_emit_copyright_notice): Bump year.
84988         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
84990 2007-01-01  Bruno Haible  <bruno@clisp.org>
84992         Improve support for OpenBSD.
84993         * build-aux/config.rpath (libname_spec): Export.
84994         (library_names_spec): New variable. Export.
84995         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
84996         library_names_spec from the config.rpath output. Locate shared library
84997         through the name pattern in library_names_spec.
84999 2007-01-01  Eric Blake  <ebb9@byu.net>
85001         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
85003 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
85005         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
85006         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
85007         assume the C locale, and avoid an "eval" that could cause trouble.
85008         Problem with SORT reported by Bob Proulx.
85010         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
85011         Define.  Trivial patch from Henning Nielsen Lund, originally
85012         sent to bug-grep@gnu.org today.
85014 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
85016         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
85017         struct stat.  Problem reported by Henning Nielsen Lund.
85018         * lib/acl.c: Include acl.h first, to check interface.  Don't
85019         bother to include sys/types.h and sys/stat.h again.
85021 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
85023         Import the following change from libc; problem reported by
85024         Sven Verdoolaege.
85026         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
85028         [BZ #1373]
85029         * lib/argp.h: Remove __NTH for __argp_usage inline function.
85031 2006-12-28  Jim Meyering  <jim@meyering.net>
85033         * build-aux/announce-gen: Do not assume that the package
85034         builds any of tar.gz, tar.bz2, and .xdelta files.
85035         Suggestion from Simon Josefsson.
85037 2006-12-28  Simon Josefsson  <simon@josefsson.org>
85039         * modules/announce-gen: New file.
85041 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
85043         * lib/mbchar.h: Just include <wctype.h>; the wctype module
85044         handles its gotchas now.
85045         * lib/mbswidth.c: Likewise.
85046         * lib/wcwidth.h: Likewise.
85047         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
85048         and iswcntrl; the wctype module does this stuff now.
85049         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
85050         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
85051         * modules/mbchar (Depends-on): Add wctype.
85052         * modules/mbswidth (Depends-on): Likewise.
85053         * modules/wcwidth (Depends-on): Likewise.
85055 2006-12-27  Eric Blake  <ebb9@byu.net>
85057         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
85058         module uses more than what <wctype.h> is required to provide.
85060 2006-12-26  Eric Blake  <ebb9@byu.net>
85062         * gnulib-tool (sed_extract_prog): Avoid space-tab.
85064 2006-12-26  Eric Blake  <ebb9@byu.net>
85066         * modules/absolute-header: New module.
85067         * modules/fcntl (Depends-on): Depend on it.
85068         * modules/inttypes (Depends-on): Likewise.
85069         * modules/stdint (Depends-on): Likewise.
85070         * modules/sys_stat (Depends-on): Likewise.
85071         * modules/wctype (Depends-on): Likewise.
85072         * MODULES.html.sh (Support for building libraries and
85073         executables): Document it.
85075 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
85077         * gnulib-tool (SED): Remove, undoing previous change.
85078         The problem was that it broke coreutils on Solaris, because
85079         "sed --posix" leaked into a makefile.
85080         (sed): New alias, if 'alias' and GNU sed.
85082 2006-12-24  Jim Meyering  <jim@meyering.net>
85084         Work around an fchownat bug in glibc-2.4:
85085         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
85086         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
85087         in spite of the -P option.
85088         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
85089         New macros.
85090         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
85091         * modules/openat (Files): Add lib/fchownat.c.
85092         * lib/openat.c (fchownat): Don't define here.  Move to...
85093         * lib/fchownat.c: ...this new file.
85095 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85097         Fix bug reported by Bruno Haible in
85098         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
85099         where quotearg.c didn't compile on Mac OS X 10.2 because it
85100         lacks <wchar.h> and wint_t.
85101         * lib/wctype_.h (__wctype_wint_t): New type.
85102         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
85103         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
85104         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
85105         Arg is now of type __wctype_wint_t, not wint_t.
85106         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
85107         substitute HAVE_WINT_T.
85108         * modules/wctype (Files): Add m4/wint_t.m4.
85109         (wctype.h): Substitute HAVE_WINT_T.
85111 2006-12-23  Bruno Haible  <bruno@clisp.org>
85113         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
85115 2006-12-23  Bruno Haible  <bruno@clisp.org>
85117         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
85118         S_ISLNK.
85119         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
85120         mingw.
85122 2006-12-22  Bruno Haible  <bruno@clisp.org>
85124         * lib/copy-file.c: Include acl.h.
85125         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
85126         Close the file descriptors only after being done with copy_acl.
85127         * modules/copy-file (Depends-on): Add acl.
85129 2006-12-22  Bruno Haible  <bruno@clisp.org>
85131         * gnulib-tool (SED): New variable.
85132         Use $SED instead of sed everywhere.
85134 2006-12-22  Bruno Haible  <bruno@clisp.org>
85136         * modules/no-c++: New file.
85137         * m4/no-c++.m4: New file.
85138         * MODULES.html.sh (Support for building libraries and executables):
85139         Add no-c++.
85141 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
85143         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
85144         Include <limits.h>, and use its INT_MAX to rewrite the
85145         j loop so that it does not overflow 'int'.  Problem reported by
85146         Ralf Wildenhues in
85147         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
85148         Play it safe by shifting left by 1 rather than multiplying by 2,
85149         as GCC is less likely to optimize this away when the value
85150         is signed (when it assumes overflow leads to undefined behavior).
85151         Also, don't assume time_t uses two's complement.
85153 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
85155         * MODULES.html.sh: New module wctype.
85156         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
85157         * lib/fnmatch.c: Don't bother to include <wchar.h> before
85158         <wctype.h>, since the new wctype module should fix this.
85159         * lib/quotearg.c: Include <wctype.h> unconditionally, since
85160         the wctype module should arrange for it.
85161         * lib/regex_internal.h: Likewise.
85162         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
85163         since the wctype module should handle this now.
85164         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
85165         * modules/fnmatch (Depends-on): Add wctype.
85166         * modules/quotearg (Depends-on): Likewise.
85167         * modules/regex (Depends-on): Likewise.
85169 2006-12-19  Bruno Haible  <bruno@clisp.org>
85171         * lib/strdup.h [C++]: Wrap definitions in extern "C".
85172         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
85174 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85176         * modules/savewd (Depends-on): Fix dependency on fcntl.
85178 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
85180         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
85181         conforms to C99, rather than relying on the user's environment
85182         setting of STDINT_H.
85184 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
85185         and Eric Blake  <ebb9@byu.net>
85187         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
85188         This is more consistent with the other defines here.
85189         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
85190         Port to z/OS.  Problem reported by Paul Gilmartin.
85191         Change local vars to use gl_ prefix rather than ac_.
85192         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
85193         with other defines.
85194         * modules/double-slash-root: New module.
85195         * modules/dirname (Files): Remove m4/double-slash-root.m4.
85196         (Depends-on): Add double-slash-root.
85197         * MODULES.html.sh (File system functions): Mention new module.
85199 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
85201         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
85202         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
85203         This is for the benefit of gzip, which doesn't do i18n.
85205 2006-12-12  Jim Meyering  <jim@meyering.net>
85207         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
85208         Reported by Andreas Schwab <schwab@suse.de>.
85210 2006-12-12  Bruno Haible  <bruno@clisp.org>
85212         Merge these changes.
85213         2006-09-05  Bruno Haible  <bruno@clisp.org>
85214         * lib/iconvme.c (iconv_string): No need to save and restore errno when
85215         iconv_alloc succeeded.
85216         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
85217         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
85218         test for " && dest " at the end - dest is always != NULL there. Call
85219         iconv with 4xNULL arguments initially, to reset the state. Call iconv
85220         with 2xNULL arguments, also to flush the state storage. Handle the
85221         IRIX iconv behaviour. Realloc the final result, to throw away unused
85222         memory.
85224 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
85226         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
85227         and fchmodat unconditionally, since glibc 2.4 has them.
85228         Problem reported by Arkadiusz Miskiewicz.
85230 2006-12-10  Bruno Haible  <bruno@clisp.org>
85232         * gnulib-tool (func_import): Show the include files only for those
85233         modules that are copied and specified.
85234         Reported by Karl Berry.
85236 2006-12-08  Jim Meyering  <jim@meyering.net>
85238         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
85239         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
85241         * build-aux/announce-gen: Add two new options, both optional:
85242         --bootstrap-tools=TOOL_LIST
85243               a comma-separated list of tools, e.g.,
85244               autoconf,automake,bison,gnulib
85245         --gnulib-snapshot-date=DATE
85246               if gnulib is in the bootstrap tool list,
85247               then report this as the snapshot date.
85248               If not specified, use the current date/time.
85249               If you specify a date here, be sure it's UTC.
85251 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85253         * tests/test-argp-2.sh: Fix test to match actual output.
85254         (func_compare): Fix sed script to be portable.
85256 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
85258         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
85259         workaround for this case.  It is not autoconfigured now; offhand
85260         it's hard to see how to autoconfigure it.
85262 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
85264         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
85265         a directory that is about to be chowned.  Such a directory's
85266         initial file permissions should permit the owner only and this
85267         should not be changed until after the chown, since the group and
85268         other bits would be incorrect if they granted permission before
85269         the chown.
85271         Fix porting problem for iswctype reported by Georg Schwarz in:
85272         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
85273         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
85274         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
85275         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
85276         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
85278 2006-12-03  Jim Meyering  <jim@meyering.net>
85280         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
85281         p->fts_statp may not yet be defined.
85282         (fts_read): Instead, set it in the caller, once p->fts_statp is
85283         sure to be defined, and corresponds to a top-level directory.
85284         This bug made du -x fail.  Here's the coreutils test case:
85285         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
85286         Reported by Mike Frysinger.
85288 2006-12-01  Jim Meyering  <jim@meyering.net>
85290         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
85291         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
85292         Reported by Simon Josefsson.
85294 2006-11-30  Jim Meyering  <jim@meyering.net>
85296         * m4/warning.m4: Use the all-permissive copyright notice
85297         recommended by RMS (rather than LGPL).
85298         * m4/vararrays.m4: Likewise.
85299         * m4/flexmember.m4: Likewise.
85301 2006-11-29  Bruno Haible  <bruno@clisp.org>
85303         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
85304         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
85305         using +=.
85306         Reported by Simon Josefsson <simon@josefsson.org>.
85308 2006-11-28  James Youngman <jay@gnu.org>
85310         * README: Advise users that they might find the bug-gnulib@gnu.org
85311         and autotools-announce@gnu.org mailing lists useful.
85313 2006-11-28  Bruno Haible  <bruno@clisp.org>
85315         * m4/ptrdiff_max.m4: Remove file.
85317 2006-11-21  Bruno Haible  <bruno@clisp.org>
85319         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
85320         _AC_COMPUTE_INT.
85321         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
85322         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
85323         _AC_COMPUTE_INT.
85324         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
85325         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
85326         _AC_COMPUTE_INT.
85327         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
85329 2006-11-28  Jim Meyering  <jim@meyering.net>
85331         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
85332         warning from "gcc -Wshadow" about shadowing the builtin.
85334 2006-11-27  Bruno Haible  <bruno@clisp.org>
85336         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
85337         _AC_COMPUTE_INT.
85338         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
85340 2006-11-27  Bruno Haible  <bruno@clisp.org>
85341             Paul Eggert  <eggert@cs.ucla.edu>
85343         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
85345 2006-11-26  Bruno Haible  <bruno@clisp.org>
85347         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
85348         noinst_LTLIBRARIES.
85350 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
85351             Bruno Haible  <bruno@clisp.org>
85353         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
85354         if compiling with "gcc -ansi".
85356 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
85358         Fix some incompatibilities with gcc -ansi -pedantic.
85359         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
85360         if compiling pedantically with GCC, unless it's C99 or later.
85361         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
85362         it mishandles gcc -ansi -pedantic as well.
85363         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
85364         if gcc -pedantic.
85365         * lib/regexec.c (check_node_accept_bytes): Don't use auto
85366         initializers for struct if -pedantic, unless it's C99 or later.
85368 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
85370         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
85371         Don't close an fd more than once. Identical atimes indicate
85372         success, not failure.
85374 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
85376         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
85378 2006-11-23  Jim Meyering  <jim@meyering.net>
85380         * build-aux/announce-gen: New file.  From coreutils.
85382 2006-11-22  Jim Meyering  <jim@meyering.net>
85384         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
85385         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
85386         (fts_read): Use a temporary to narrow the overused st_size member
85387         before using it in a switch statement.  Reported by Matthew Woehlke.
85389         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
85390         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
85392 2006-11-20  Bruno Haible  <bruno@clisp.org>
85394         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
85395         changequote instead of pairs of brackets.
85396         Reported by Andreas Schwab <schwab@suse.de>.
85398 2006-11-21  Jim Meyering  <jim@meyering.net>
85400         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
85401         so as to remain compatible with older compilers.
85402         Patch from Michael Deutschmann.
85404 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
85406         * MODULES.html.sh (File system functions): Add openat.
85408         * lib/openat.h (rpl_fstatat): New macro, if
85409         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
85410         (fstatat): Define to rpl_fstatat under the same conditions,
85411         unless COMPILING_FSTATAT.
85412         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
85413         seems to have the bug.
85414         * lib/fstatat.c: New file.
85415         * modules/openat (Files): Add it.
85417 2006-11-20  Bruno Haible  <bruno@clisp.org>
85419         * Makefile: New file.
85421 2006-11-20  Jim Meyering  <jim@meyering.net>
85423         The beginnings of syntax-related checks for gnulib.
85424         * lib/Makefile: New file.
85425         * lib/t-idcache: New script.  Ensure that the two halves of
85426         idcache.c stay in sync.
85428         * lib/idcache.c: Adjust comments in user- and group- portions to
85429         be more accurate, and to be consistent with one another.
85431 2006-11-20  Jim Meyering  <jim@meyering.net>
85433         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
85434         continue using the flexible array member (thus, this module performs
85435         half as many malloc calls), with the addition that...
85436         (getgroup, getuser): Consistently record a non-match via an empty
85437         "name" string, and map an empty string match to a NULL return value.
85438         * modules/idcache (Depends-on): Re-add flexmember.
85440         * lib/idcache.c (getuser): Remove all uses of the register keyword.
85441         (getuidbyname, getgroup, getgidbyname): Likewise.
85443         Use cleaner syntax: NULL rather than 0.
85444         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
85446 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
85448         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
85449         It mishandled the case where the group was missing.
85450         Problem reported by Greg Schafer.
85451         * modules/idcache: Likewise.
85453 2006-11-18  Jim Meyering  <jim@meyering.net>
85455         * check-module (%exempt_header): Add exception for some
85456         conditionally-included headers.
85458         * modules/i-ring (Depends-on): Add verify.
85459         (License): Change to LGPL.
85461 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85463         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
85464         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
85465         and inttostr.h.  Use snprintf rather than uinttostr, so that
85466         LGPLed code doesn't depend on GPLed.
85468 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
85470         * modules/inline (License): Change from GPL to LGPL.
85472 2006-11-17  Jim Meyering  <jim@meyering.net>
85474         * modules/d-type (License): Switch to LGPL.
85476 2006-11-15  Bruno Haible  <bruno@clisp.org>
85478         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
85480 2006-11-15  Eric Blake  <ebb9@byu.net>
85482         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
85483         the module dependency.
85485 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85486             Bruno Haible  <bruno@clisp.org>
85488         * gnulib-tool (func_create_testdir): Add license consistency check.
85490 2006-11-15  Eric Blake  <ebb9@byu.net>
85492         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
85493         random "(cached)" in configure output.
85495 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85497         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
85498         test for conforming inttypes.h is both announced and cached.
85500         * MODULES.html.sh (seen_modules, seen_files): New variables.
85501         (func_module): Rewrite to use a few less gnulib-tool and sed
85502         invocations.  Avoid a couple of quadratic algorithms for ...
85503         (missed_modules, missed_files): ... these, with ...
85504         (func_append, func_tmpdir): ... these new functions, from
85505         gnulib-tool.  Analogously, install traps for cleanup.
85507         * tests/test-gc.c (main): Remove unused variables.
85508         * tests/test-read-file.c: Include stdlib.h, for 'free'.
85510 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
85512         * modules/inttostr (License): Change to LGPL.
85514 2006-11-14  Eric Blake  <ebb9@byu.net>
85516         * modules/tempname (License): Change to LGPL.
85518 2006-11-14  Eric Blake  <ebb9@byu.net>
85520         * doc/functions.texi (Function Portability): *printf functions on
85521         Cygwin now understand all POSIX size specifiers.
85523 2006-11-14  Bruno Haible  <bruno@clisp.org>
85525         * modules/c-ctype (License): Change to LGPL.
85527 2006-11-12  Bruno Haible  <bruno@clisp.org>
85529         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
85530         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
85531         for GNOME libraries, for which the include files are installed in
85532         subdirectories of $prefix/include.
85534 2006-11-12  Bruno Haible  <bruno@clisp.org>
85536         * m4/lib-link.m4: Require at least autoconf-2.54.
85537         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
85538         name to underscores for the --with option.
85540 2006-11-13  Bruno Haible  <bruno@clisp.org>
85542         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
85543         the tests directory.
85544         Reported by Ralf Wildenhues.
85546 2006-11-13  Bruno Haible  <bruno@clisp.org>
85548         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
85549         (func_emit_initmacro_end): Undo the override here.
85550         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
85551         Works around the famous automake error in coreutils.
85553 2006-11-13  Eric Blake  <ebb9@byu.net>
85555         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
85556         element, not its node.
85558 2006-11-12  Bruno Haible  <bruno@clisp.org>
85560         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
85561         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
85563 2006-11-12  Bruno Haible  <bruno@clisp.org>
85565         * gnulib-tool: New option --local-symlink.
85566         (func_usage): Document it.
85567         (lsymbolic): New variable.
85568         (func_import, func_create_testdir): If --symlink was not specified,
85569         test whether --local-symlink was specified and the file comes from
85570         the local_gnulib_dir.
85572 2006-11-12  Bruno Haible  <bruno@clisp.org>
85574         * gnulib-tool (func_ln): New function.
85575         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
85577 2006-11-12  Bruno Haible  <bruno@clisp.org>
85579         Finish support for source files in subdirectories.
85580         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
85581         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
85582         AUTOMAKE_OPTIONS.
85583         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
85585 2006-11-12  Bruno Haible  <bruno@clisp.org>
85587         * gnulib-tool (func_get_automake_snippet): Synthesize also an
85588         EXTRA_lib_SOURCES augmentation.
85589         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
85591 2006-11-12  Jim Meyering  <jim@meyering.net>
85593         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
85594         file descriptors.  This also averts a failure on systems with
85595         native openat support when a traversed directory lacks "x" access.
85596         * lib/fts_.h: Include "i-ring.h"
85597         (struct FTS) [fts_fd_ring]: New member.
85598         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
85599         (FCHDIR): Add parentheses.
85600         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
85601         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
85602         When descending, rather than simply closing the previous
85603         fts_cwd_fd value, push that file descriptor onto the ring.
85604         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
85605         (fts_open): Initialize the new fd_ring member.
85606         (fts_close): Clear the ring.
85607         (fts_safe_changedir): When possible, use our new fd_ring to skip
85608         the diropen and fstat and dev/ino comparison that would normally
85609         accompany a virtual `chdir ("..")'.
85611         * modules/fts (Depends-on): Add i-ring.
85612         * modules/i-ring: New module.
85613         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
85614         * m4/i-ring.m4: New file.
85616 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85618         * gnulib-tool (func_create_testdir): Fix replacement of
85619         `build-aux' in configure.ac.  Run autotools in gltests
85620         subdirectory.
85621         (func_create_testdir, func_create_megatestdir, test): There is
85622         no need for '--force' in most autotool invocations in a new
85623         tree.  Actually fail the whole test if any of the tools, or the
85624         configure or make stages fail.
85626         Sync from Automake.
85627         * build-aux/gnupload: Revert last change.  Add pointer to upload
85628         instructions of the GNU Maintenance Instructions.
85629         Suggestion by Karl Berry.
85631 2006-11-10  Jim Meyering  <jim@meyering.net>
85633         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
85635 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
85637         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
85638         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
85639         (bind_textdomain_codeset) [! ENABLE_NLS]:
85640         Evaluate all the arguments.  That way, callers get compatible behavior
85641         if the arguments have side effects.  Also, it avoids some GCC
85642         diagnostics in some cases; Joel E. Denny reported problems when Bison
85643         was configured with --enable-gcc-warnigs.
85645 2006-11-10  Jim Meyering  <jim@meyering.net>
85647         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
85648         relevant options in CFLAGS (like -O, -fno-inline) are taken into
85649         account.
85651 2006-11-10  Jim Meyering  <jim@meyering.net>
85653         * modules/inline: New file/module.
85654         * modules/xalloc (Files): Remove m4/inline.m4.
85655         (Depends-on): Add inline, instead.
85656         * modules/oset: Likewise.
85657         * modules/list: Likewise.
85659 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
85661         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
85662         Problem reported by Matthew Woehlke.
85664 2006-11-09  Bruno Haible  <bruno@clisp.org>
85666         * lib/tempname.c (gen_tempname): Remove variant that invokes
85667         __gen_tempname.
85668         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
85669         __gen_tempname.
85671 2006-11-08  Bruno Haible  <bruno@clisp.org>
85673         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
85674         to 'yes' instead of 'cross-compiling'.
85676 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
85678         * lib/quotearg.h (quotearg_free): New decl.
85679         * lib/quotearg.c (quotearg_free): New function.
85680         (slot0, nslots, slotvec0, slotvec):
85681         Now file-scope so that quotearg_free can get at them.
85683 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85685         Sync from Automake.
85686         * build-aux/gnupload: Add missing 'gnu' to example URL.
85687         Report by Karl Berry.
85689 2006-11-08  Bruno Haible  <bruno@clisp.org>
85691         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
85692         Suggested by Paul Eggert.
85694 2006-11-08  Jim Meyering  <jim@meyering.net>
85696         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
85697         It's already included if !_LIBC.
85698         (fts_safe_changedir): Add a comment.
85700 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
85702         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
85703         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
85704         Matthew Woehlke.
85706         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
85707         definitions up, to avoid colliding with change below.
85708         (static_inline) [HAVE_INLINE]: New macro.
85709         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
85710         Provide extern decls when !HAVE_INLINE.  Do not define unless
85711         static_inline is defined, either by us or by xmalloc.c.  Use
85712         static_inline rather than static inline.
85713         (XCALLOC): Optimize sizeof(T) = 1 case.
85714         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
85716 2006-11-07  Bruno Haible  <bruno@clisp.org>
85718         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
85719         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
85720         AC_C_INLINE.
85721         * modules/xalloc (Files): Add m4/inline.m4.
85723 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85725         * README: Fix typo.
85726         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
85727         (Miscellanous Notes): ...from this.
85729 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
85731         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
85732         Mention that offsetof should be used instead of sizeof.
85733         From Bruno Haible.
85735 2006-11-07  Bruno Haible  <bruno@clisp.org>
85737         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
85739 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
85741         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
85742         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
85743         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
85744         (gl_tree_add_before, gl_tree_add_after):
85745         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
85746         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
85747         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
85748         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
85749         (gl_linked_add_after, gl_linked_add_at): Likewise.
85750         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
85751         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
85752         (gl_tree_add_before, gl_tree_add_after): Likewise.
85753         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
85754         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
85755         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
85757 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85759         * lib/gl_oset.h: Use C comment style, not C++ comment style.
85761 2006-11-06  Bruno Haible  <bruno@clisp.org>
85763         * m4/inline.m4: New file.
85764         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
85765         * modules/list (Files): Add m4/inline.m4.
85766         * modules/oset (Files): Likewise.
85768 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
85770         * lib/idcache.c: Include <stddef.h>, for offsetof.
85771         (struct userid.name): Change from char * to a flexible array member.
85772         All uses changed.
85773         * modules/idcache (Depends-on): Add flexmember.
85775         * MODULES.html.sh (Core language properties): New module flexmember.
85776         * modules/flexmember, m4/flexmember.m4: New files.
85778         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
85779         inline functions that are identical with the old xnmalloc_inline,
85780         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
85781         that we can avoid some unnecessary integer multiplications and
85782         divisions in the common case where the element size is known at
85783         compile time.
85784         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
85785         needed.
85786         (xnboundedmalloc): Remove.
85787         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
85788         arguments, for consistency with rest of this header.
85789         (xcharalloc): Rewrite using XNMALLOC.
85790         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
85791         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
85792         versions have been moved to lib/xalloc.h and renamed to be the
85793         non-*_inline versions.
85794         (xmalloc, xrealloc): Implement without reference to the xnmalloc
85795         and xnrealloc functions, since those functions are now inline and
85796         now call us.
85797         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
85798         renaming described above.
85799         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
85800         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
85801         captures the dependency in AC_C_INLINE.
85803         New module canonicalize-lgpl, proposed by Charles Wilson in
85804         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
85805         with a few small changes afterwards.
85806         * MODULES.html.sh (File system functions): New module
85807         canonicalize-lgpl.
85808         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
85809         and canonicalize_file_name.
85810         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
85811         * modules/canonicalize-lgpl: New files.
85813 2006-11-05  Bruno Haible  <bruno@clisp.org>
85815         * gnulib-tool (func_import, func_create_testdir): Create directories
85816         also for files in subdirectories of lib/.
85818 2006-11-05  Bruno Haible  <bruno@clisp.org>
85820         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
85821         ANSI C compliant.
85823 2006-11-03  Bruno Haible  <bruno@clisp.org>
85825         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
85826         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
85827         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
85828         (xnboundedmalloc): New inline function.
85829         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
85830         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
85831         xmalloc.
85832         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
85833         xmalloc.
85834         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
85835         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
85836         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
85837         xmalloc.
85838         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
85839         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
85840         xmalloc.
85841         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
85842         gl_tree_add_after): Use XMALLOC instead of xmalloc.
85843         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
85844         xmalloc.
85845         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
85846         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
85847         gl_tree_add_after): Use XMALLOC instead of xmalloc.
85848         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
85849         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
85850         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
85851         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
85853 2006-11-03  Bruno Haible  <bruno@clisp.org>
85855         * lib/c-ctype.h [C++]: Define functions without name mangling.
85856         * lib/fwriteerror.h [C++]: Likewise.
85857         * lib/gcd.h [C++]: Likewise.
85858         * lib/linebreak.h [C++]: Likewise.
85860 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
85862         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
85863         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
85864         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
85865         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
85866         Check for functions and headers just once.
85867         Check for declaration of canonicalize_file_name.
85868         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
85870 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
85872         * gnulib-tool (func_import): Fix typo in actioncmd.
85874 2006-11-02  Bruno Haible  <bruno@clisp.org>
85876         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
85877         newline sequence in the Makefile.am snippet as a space, like "make"
85878         does.
85879         Reported by Roger Persson <perrog@gmail.com>.
85881 2006-11-01  Bruno Haible  <bruno@clisp.org>
85883         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
85884         already declared in <string.h>.
85885         * lib/strcase.h (strncasecmp): Don't declare it if yes.
85887 2006-11-01  Bruno Haible  <bruno@clisp.org>
85889         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
85890         * lib/strcase.h: Include <string.h>.
85891         (strcasecmp): Define to rpl_strcasecmp here.
85893 2006-11-01  Bruno Haible  <bruno@clisp.org>
85895         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
85897 2006-11-01  Eric Blake  <ebb9@byu.net>
85899         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
85901         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
85903 2006-10-29  Bruno Haible  <bruno@clisp.org>
85905         Make it compile in C++ mode.
85906         * lib/full-write.c (full_rw): Add a cast.
85908 2006-11-01  Bruno Haible  <bruno@clisp.org>
85910         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
85911         be POSIX compliant.
85912         Reported by Roger Persson <perrog@gmail.com>.
85914 2006-11-01  Eric Blake  <ebb9@byu.net>
85916         * lib/getopt_.h: Fix comments.
85918 2006-10-31  Eric Blake  <ebb9@byu.net>
85920         * modules/tmpdir (Depends-on): Add sys_stat.
85921         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
85922         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
85923         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
85924         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
85925         tempname.
85927 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
85929         Avoid some C++ diagnostics reported by Bruno Haible.
85930         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
85931         xmalloc.
85932         (quotearg_alloc): Use xcharalloc rather than xmalloc.
85933         (struct slotvec): Move to top level.
85934         (quotearg_n_options): Rewrite to avoid xmalloc.
85935         * lib/xalloc.h (xcharalloc): New function.
85936         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
85937         [defined __cplusplus]: Add function template that provides result
85938         type propagation.  This part of the change is from Bruno Haible.
85940 2006-10-29  Bruno Haible  <bruno@clisp.org>
85942         Make it compile in C++ mode.
85943         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
85944         * lib/strnlen1.c (strnlen1): Cast memchr result.
85945         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
85946         * lib/clean-temp.c (string_equals, string_hash): Add casts.
85947         (create_temp_dir): Rename local variable 'template'.
85948         (compile_csharp_using_sscli): Add cast.
85949         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
85950         * lib/findprog.c (find_in_path): Likewise.
85951         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
85952         * lib/wait-process.c (register_slave_subprocess): Likewise.
85954 2006-10-22  Bruno Haible  <bruno@clisp.org>
85956         * modules/tsearch: New file.
85957         * lib/tsearch.h: New file.
85958         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
85959         * m4/tsearch.m4: New file.
85960         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
85962 2006-10-29  Eric Blake  <ebb9@byu.net>
85964         * lib/arcfour.c: Assume config.h.
85965         * lib/arctwo.c: Likewise.
85966         * lib/base64.c: Likewise.
85967         * lib/check-version.c: Likewise.
85968         * lib/crc.c: Likewise.
85969         * lib/des.c: Likewise.
85970         * lib/gc-gnulib.c: Likewise.
85971         * lib/gc-libgcrypt.c: Likewise.
85972         * lib/gc-pbkdf2-sha1.c: Likewise.
85973         * lib/getaddrinfo.c: Likewise.
85974         * lib/getdelim.c: Likewise.
85975         * lib/getline.c: Likewise.
85976         * lib/hmac-md5.c: Likewise.
85977         * lib/hmac-sha1.c: Likewise.
85978         * lib/iconvme.c: Likewise.
85979         * lib/md2.c: Likewise.
85980         * lib/md4.c: Likewise.
85981         * lib/memxor.c: Likewise.
85982         * lib/read-file.c: Likewise.
85983         * lib/readline.c: Likewise.
85984         * lib/rijndael-alg-fst.c: Likewise.
85985         * lib/rijndael-api-fst.c: Likewise.
85986         * lib/xgetdomainname.c: Likewise.
85988 2006-10-28  Eric Blake  <ebb9@byu.net>
85990         * lib/xstrndup.c: Assume config.h.
85992 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
85994         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
85995         stat-macros.h is now for our own macros, whereas stat_h is for
85996         macros in the <sys/stat.h> name space.
85997         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
85998         (STAT_MACROS_H): Remove.
85999         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
86000         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
86001         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
86002         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
86003         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
86004         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
86005         Move these macros to ...
86006         * lib/stat_.h: here.  Don't include stat-macros.h.
86007         * lib/canonicalize.c: Don't include stat-macros.h.
86008         * lib/chown.c: Likewise.
86009         * lib/euidaccess.c: Likewise.
86010         * lib/file-type.c: Likewise.
86011         * lib/filemode.c: Likewise.
86012         * lib/glob.c: Likewise.
86013         * lib/isapipe.c: Likewise.
86014         * lib/lchown.c: Likewise.
86015         * lib/lstat.c: Likewise.
86016         * lib/mkdir-p.c: Likewise.
86017         * lib/rmdir.c: Likewise.
86018         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
86019         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
86020         unless mkdir isn't declared, to speed up 'configure'.
86021         Always create sys/stat.h, since it's unlikely any real sys/stat.h
86022         would define all the S_* symbols.
86023         * modules/canonicalize (Depends-on):
86024         Depend on sys_stat, not stat-macros.
86025         * modules/chown: Likewise.
86026         * modules/euidaccess: Likewise.
86027         * modules/filemode: Likewise.
86028         * modules/file-type: Likewise.
86029         * modules/glob: Likewise.
86030         * modules/isapipe: Likewise.
86031         * modules/lchown: Likewise.
86032         * modules/lstat: Likewise.
86033         * modules/mkancesdirs: Likewise.
86034         * modules/rmdir: Likewise.
86035         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
86036         * modules/modechange: Likewise.
86037         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
86038         (configure.ac): Remove gl_STAT_MACROS.
86039         * modules/sys_stat (Depends-on): Remove stat-macros.
86041 2006-10-27  Bruno Haible  <bruno@clisp.org>
86043         * m4/signed.m4: Remove file.
86044         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
86045         invocation.
86046         * modules/vasnprintf (Files): Remove m4/signed.m4.
86048 2006-10-27  Bruno Haible  <bruno@clisp.org>
86050         Update to GNU gettext 0.16.
86051         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
86052         m4/inttypes-h.m4, m4/signed.m4.
86053         * m4/gettext.m4: Update to GNU gettext 0.16.
86054         * m4/intl.m4: New file, from GNU gettext.
86055         * m4/intldir.m4: New file, from GNU gettext.
86056         * config/srclist.txt: Update
86058 2006-10-27  Eric Blake  <ebb9@byu.net>
86060         * MODULES.html.sh: Document tempname.
86061         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
86062         dependencies.
86063         (Files): Move lib/tempname.c...
86064         * modules/tempname: ...to this new module.
86065         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
86066         (gl_PREREQ_TEMPNAME): Move...
86067         * m4/tempname.m4: ...to this new file.
86068         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
86069         * modules/sys_stat (Depends-on): Add stat-macros.
86070         * lib/stat_.h (includes): Pick up stat macros.
86071         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
86072         if stat macros are broken.
86073         * lib/tempname.c (includes): No need to include "stat-macros.h".
86074         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
86075         (direxists, __path_search) [!_LIBC]: Don't compile these in
86076         gnulib; the tmpdir module covers that.
86077         * lib/tempname.h: New file.
86079 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
86081         * COPYING: Explain how gnulib-tool converts licence headers.
86082         Almost all wording by Eric Blake.
86084 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
86086         * lib/mbchar.h (is_basic_table): Make read-only.
86087         * lib/mbchar.c (is_basic_table): Likewise.
86088         Reported by John Darrington.
86090 2006-10-25  Bruno Haible  <bruno@clisp.org>
86092         * lib/progname.h (set_program_name): Undefine before defining.
86094 2006-10-25  Bruno Haible  <bruno@clisp.org>
86096         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
86097         false for non-gcc C++ compilers.
86098         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
86100 2006-10-24  Bruno Haible  <bruno@clisp.org>
86102         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
86103         iconv implementations like Irix iconv.
86105 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
86107         * modules/vararrays: New file.
86108         * m4/vararrays.m4: New file, taken from diffutils.
86109         * MODULES.html.sh: New module vararrays.
86111 2006-10-24  Karl Berry  <karl@gnu.org>
86113         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
86114         Don't call GNU Unix.
86116 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86118         * users.txt: Add Libtool.
86120         Sync from Libtool:
86122         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
86124         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
86125         to gnulib's policy of including config.h unconditionally.
86127 2006-10-24  Bruno Haible  <bruno@clisp.org>
86129         * modules/wcwidth (Files): Add m4/wint_t.m4.
86130         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
86131         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
86133 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
86135         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
86136         to pacify GCC with some -W flags enabled.  Problem reported by
86137         Bruno Haible.
86139 2006-10-24  Jim Meyering  <jim@meyering.net>
86141         * MODULES.html.sh: Remove uinttostr.  It's not a module.
86142         Reported by Karl Berry.
86144 2006-10-23  Bruno Haible  <bruno@clisp.org>
86146         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
86148 2006-10-24  Bruno Haible  <bruno@clisp.org>
86150         * lib/gl_list.h: Use C comment style, not C++ comment style.
86152 2006-10-23  Eric Blake  <ebb9@byu.net>
86154         * lib/getaddrinfo.c (includes): Add missing include.
86156 2006-10-23  Bruno Haible  <bruno@clisp.org>
86157             Paul Eggert  <eggert@cs.ucla.edu>
86159         Ability to rename obstack_free.
86160         * lib/obstack.h (__obstack_free): New macro. Declare instead of
86161         obstack_free.
86162         (obstack_free): Invoke the __obstack_free macro.
86163         * lib/obstack.c (obstack_free): Use __obstack_free macro.
86165 2006-10-23  Bruno Haible  <bruno@clisp.org>
86166             Paul Eggert  <eggert@cs.ucla.edu>
86168         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
86169         __argc, __argv from the declaration. (They are defined as macros on
86170         mingw.)
86172 2006-10-22  Bruno Haible  <bruno@clisp.org>
86174         * doc/gnulib-intro.texi: New file.
86175         * doc/gnulib.texi: Include it.
86177 2006-10-21  Bruno Haible  <bruno@clisp.org>
86179         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
86180         "Introduction", "Miscellanous Notes", "Particular Modules".
86182 2006-10-21  Bruno Haible  <bruno@clisp.org>
86184         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
86185         Change mostlyclean-local rule to avoid sh syntax error from bash
86186         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
86188 2006-10-23  Jim Meyering  <jim@meyering.net>
86190         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
86191         in place of snprintf.
86193         * modules/inttostr (Files): Add lib/uinttostr.c.
86194         * lib/uinttostr.c (inttostr): New file/function.
86195         * lib/inttostr.h (uinttostr): Declare.
86196         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
86197         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
86198         Add uinttostr.
86199         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
86201 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
86203         * lib/canonicalize.c (ELOOP): Define if not already defined.
86204         Problem reported by Bruno Haible in
86205         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
86207 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
86209         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
86210         Problem reported by Perry Smith and Ville Laurikari.
86212         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
86213         uses.
86215 2006-10-19  Bruno Haible  <bruno@clisp.org>
86217         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
86218         for mingw.
86220 2006-10-19  Bruno Haible  <bruno@clisp.org>
86222         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
86223         Needed for mingw.
86225 2006-10-19  Bruno Haible  <bruno@clisp.org>
86227         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
86229 2006-10-19  Bruno Haible  <bruno@clisp.org>
86231         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
86232         it.
86234 2006-10-19  Bruno Haible  <bruno@clisp.org>
86236         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
86237         invocation.
86239 2006-10-19  Bruno Haible  <bruno@clisp.org>
86241         * gnulib-tool (func_create_testdir): Don't include ftruncate and
86242         mountlist by default.
86244 2006-10-16  Bruno Haible  <bruno@clisp.org>
86246         * lib/c-strstr.c: Include c-strstr.h.
86248 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
86250         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
86251         in a slash.
86253 2006-10-18  Bruno Haible  <bruno@clisp.org>
86255         * lib/lock.h [C++]: Wrap definitions in extern "C".
86257 2006-10-18  Bruno Haible  <bruno@clisp.org>
86259         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
86260         gl_LIBOBJS list.
86262 2006-10-18  Bruno Haible  <bruno@clisp.org>
86264         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
86266 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
86268         * lib/xstrtol.h: Include gettext.h.
86269         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
86270         Problem reported by Eric Blake.
86271         * modules/xstrtol (Depends-on): Add gettext-h.
86273 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
86275         * lib/strftime.c (advance): New macro.
86276         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
86277         incomplete type, so you can't add 0 to it.  Problem and patch
86278         reported by Eelco Dolstra for dietlibc.
86280 2006-10-18  Jim Meyering  <jim@meyering.net>
86282         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
86283         type for a local, and rename it: s/up/user_proc/.
86285 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
86287         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
86288         READ_UTMP_USER_PROCESS.
86289         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
86291 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
86293         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
86294         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
86296 2006-10-17  Eric Blake  <ebb9@byu.net>
86298         * lib/sigprocmask.c (sigprocmask): Fix typo.
86300         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
86302         * modules/clean-temp (Makefile.am): Don't add to make output...
86303         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
86304         config.h.
86306 2006-10-17  Bruno Haible  <bruno@clisp.org>
86308         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
86309         differently if DEFAULT_TEXT_DOMAIN is set.
86311 2006-10-16  Bruno Haible  <bruno@clisp.org>
86313         * lib/clean-temp.c: Include fwriteerror.h.
86315 2006-10-16  Bruno Haible  <bruno@clisp.org>
86317         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
86319 2006-10-16  Bruno Haible  <bruno@clisp.org>
86321         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
86322         * lib/sigprocmask.h: Include <sys/types.h>.
86323         (sigset_t): Use the system's definition if present.
86325 2006-10-17  Eric Blake  <ebb9@byu.net>
86327         * lib/xvasprintf.c (includes): Assume config.h.
86328         * lib/xasprintf.c (includes): Likewise.
86330 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
86332         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
86333         at least as wide as intmax_t.
86335 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
86337         (Imported from Automake.)
86338         * build-aux/gnupload: Update to version 1.1 of directive file.
86340 2006-10-16  Eric Blake  <ebb9@byu.net>
86342         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
86343         match Automake 1.10a.
86345 2006-10-14  Bruno Haible  <bruno@clisp.org>
86347         * modules/sigprocmask: New file.
86348         * lib/sigprocmask.h: New file.
86349         * lib/sigprocmask.c: New file.
86350         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
86351         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
86352         request sigprocmask.o.
86353         (gl_PREREQ_SIGPROCMASK): New macro.
86354         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
86355         (Depends-on): Add sigprocmask.
86356         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
86357         gt_SIGNALBLOCKING. Test for 'raise' only once.
86358         * lib/fatal-signal.c: Include sigprocmask.h.
86359         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
86360         unblock_fatal_signals): Define always.
86361         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86362         sigprocmask.
86364 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
86366         Sync from Automake.
86367         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
86368         which incorrectly sets the mode of an existing destination
86369         directory.  In some cases the unpatched install-sh could do the
86370         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
86371         system.  We hope this is rare in practice, but it's clearly worth
86372         fixing.  Problem reported by Alex Unleashed in
86373         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
86374         Also, don't bother to check for -m bugs unless we're using -m;
86375         suggested by Stepan Kasal.
86377 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86379         Sync from Automake.
86380         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
86381         `-c' flag, so they appear at the same position as in %FASTDEP%
86382         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
86383         which ignores unknown options only after the first non-option.
86384         Bug report against M4 by Nelson H. F. Beebe.
86386 2006-10-13  Jim Meyering  <jim@meyering.net>
86388         Fix a bug in yesterday's change.
86389         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
86390         p->fts_statp->st_dev would be used uninitialized.
86391         Ensures that we always call fts_stat on the very first entry.
86392         Miklos Szeredi reported that find -xdev stopped working.
86394 2006-10-12  Bruno Haible  <bruno@clisp.org>
86396         * gnulib-tool (func_get_automake_snippet): Append an automatically
86397         computed EXTRA_DIST augmentation.
86398         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
86399         * modules/alloca-opt (Makefile.am): Likewise.
86400         * modules/allocsa (Makefile.am): Likewise.
86401         * modules/arcfour (Makefile.am): Likewise.
86402         * modules/arctwo (Makefile.am): Likewise.
86403         * modules/argmatch (Makefile.am): Likewise.
86404         * modules/argz (Makefile.am): Likewise.
86405         * modules/atexit (Makefile.am): Likewise.
86406         * modules/backupfile (Makefile.am): Likewise.
86407         * modules/byteswap (Makefile.am): Likewise.
86408         * modules/c-strtod (Makefile.am): Likewise.
86409         * modules/c-strtold (Makefile.am): Likewise.
86410         * modules/calloc (Makefile.am): Likewise.
86411         * modules/canon-host (Makefile.am): Likewise.
86412         * modules/canonicalize (Makefile.am): Likewise.
86413         * modules/chdir-long (Makefile.am): Likewise.
86414         * modules/chdir-safer (Makefile.am): Likewise.
86415         * modules/check-version (Makefile.am): Likewise.
86416         * modules/chown (Makefile.am): Likewise.
86417         * modules/cloexec (Makefile.am): Likewise.
86418         * modules/close-stream (Makefile.am): Likewise.
86419         * modules/closeout (Makefile.am): Likewise.
86420         * modules/crc (Makefile.am): Likewise.
86421         * modules/csharpexec (Makefile.am): Likewise.
86422         * modules/cycle-check (Makefile.am): Likewise.
86423         * modules/des (Makefile.am): Likewise.
86424         * modules/dev-ino (Makefile.am): Likewise.
86425         * modules/dirfd (Makefile.am): Likewise.
86426         * modules/dirname (Makefile.am): Likewise.
86427         * modules/dup2 (Makefile.am): Likewise.
86428         * modules/eealloc (Makefile.am): Likewise.
86429         * modules/error (Makefile.am): Likewise.
86430         * modules/euidaccess (Makefile.am): Likewise.
86431         * modules/exclude (Makefile.am): Likewise.
86432         * modules/exitfail (Makefile.am): Likewise.
86433         * modules/fcntl-safer (Makefile.am): Likewise.
86434         * modules/fcntl (Makefile.am): Likewise.
86435         * modules/file-type (Makefile.am): Likewise.
86436         * modules/fileblocks (Makefile.am): Likewise.
86437         * modules/filemode (Makefile.am): Likewise.
86438         * modules/filenamecat (Makefile.am): Likewise.
86439         * modules/fnmatch (Makefile.am): Likewise.
86440         * modules/fopen-safer (Makefile.am): Likewise.
86441         * modules/fpending (Makefile.am): Likewise.
86442         * modules/fprintftime (Makefile.am): Likewise.
86443         * modules/free (Makefile.am): Likewise.
86444         * modules/fsusage (Makefile.am): Likewise.
86445         * modules/ftruncate (Makefile.am): Likewise.
86446         * modules/fts (Makefile.am): Likewise.
86447         * modules/gc-arcfour (Makefile.am): Likewise.
86448         * modules/gc-des (Makefile.am): Likewise.
86449         * modules/gc-hmac-md5 (Makefile.am): Likewise.
86450         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
86451         * modules/gc-md4 (Makefile.am): Likewise.
86452         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
86453         * modules/gc-sha1 (Makefile.am): Likewise.
86454         * modules/gc (Makefile.am): Likewise.
86455         * modules/getaddrinfo (Makefile.am): Likewise.
86456         * modules/getcwd (Makefile.am): Likewise.
86457         * modules/getdelim (Makefile.am): Likewise.
86458         * modules/getdomainname (Makefile.am): Likewise.
86459         * modules/getgroups (Makefile.am): Likewise.
86460         * modules/gethostname (Makefile.am): Likewise.
86461         * modules/gethrxtime (Makefile.am): Likewise.
86462         * modules/getline (Makefile.am): Likewise.
86463         * modules/getloadavg (Makefile.am): Likewise.
86464         * modules/getlogin_r (Makefile.am): Likewise.
86465         * modules/getndelim2 (Makefile.am): Likewise.
86466         * modules/getopt (Makefile.am): Likewise.
86467         * modules/getpagesize (Makefile.am): Likewise.
86468         * modules/getpass-gnu (Makefile.am): Likewise.
86469         * modules/getpass (Makefile.am): Likewise.
86470         * modules/getsubopt (Makefile.am): Likewise.
86471         * modules/gettime (Makefile.am): Likewise.
86472         * modules/gettimeofday (Makefile.am): Likewise.
86473         * modules/getugroups (Makefile.am): Likewise.
86474         * modules/getusershell (Makefile.am): Likewise.
86475         * modules/glob (Makefile.am): Likewise.
86476         * modules/group-member (Makefile.am): Likewise.
86477         * modules/hard-locale (Makefile.am): Likewise.
86478         * modules/hash (Makefile.am): Likewise.
86479         * modules/hmac-md5 (Makefile.am): Likewise.
86480         * modules/hmac-sha1 (Makefile.am): Likewise.
86481         * modules/human (Makefile.am): Likewise.
86482         * modules/idcache (Makefile.am): Likewise.
86483         * modules/imaxabs (Makefile.am): Likewise.
86484         * modules/imaxdiv (Makefile.am): Likewise.
86485         * modules/inet_ntop (Makefile.am): Likewise.
86486         * modules/inet_pton (Makefile.am): Likewise.
86487         * modules/intprops (Makefile.am): Likewise.
86488         * modules/inttostr (Makefile.am): Likewise.
86489         * modules/inttypes (Makefile.am): Likewise.
86490         * modules/isapipe (Makefile.am): Likewise.
86491         * modules/javaversion (Makefile.am): Likewise.
86492         * modules/lchmod (Makefile.am): Likewise.
86493         * modules/lchown (Makefile.am): Likewise.
86494         * modules/localcharset (Makefile.am): Likewise.
86495         * modules/long-options (Makefile.am): Likewise.
86496         * modules/lstat (Makefile.am): Likewise.
86497         * modules/malloc (Makefile.am): Likewise.
86498         * modules/mathl (Makefile.am): Likewise.
86499         * modules/mbchar (Makefile.am): Likewise.
86500         * modules/md2 (Makefile.am): Likewise.
86501         * modules/md4 (Makefile.am): Likewise.
86502         * modules/md5 (Makefile.am): Likewise.
86503         * modules/memcasecmp (Makefile.am): Likewise.
86504         * modules/memchr (Makefile.am): Likewise.
86505         * modules/memcmp (Makefile.am): Likewise.
86506         * modules/memcoll (Makefile.am): Likewise.
86507         * modules/memcpy (Makefile.am): Likewise.
86508         * modules/memmem (Makefile.am): Likewise.
86509         * modules/memmove (Makefile.am): Likewise.
86510         * modules/mempcpy (Makefile.am): Likewise.
86511         * modules/memrchr (Makefile.am): Likewise.
86512         * modules/memset (Makefile.am): Likewise.
86513         * modules/memxor (Makefile.am): Likewise.
86514         * modules/mkancesdirs (Makefile.am): Likewise.
86515         * modules/mkdir-p (Makefile.am): Likewise.
86516         * modules/mkdir (Makefile.am): Likewise.
86517         * modules/mkdtemp (Makefile.am): Likewise.
86518         * modules/mkstemp (Makefile.am): Likewise.
86519         * modules/mktime (Makefile.am): Likewise.
86520         * modules/modechange (Makefile.am): Likewise.
86521         * modules/mountlist (Makefile.am): Likewise.
86522         * modules/nanosleep (Makefile.am): Likewise.
86523         * modules/obstack (Makefile.am): Likewise.
86524         * modules/openat (Makefile.am): Likewise.
86525         * modules/pagealign_alloc (Makefile.am): Likewise.
86526         * modules/pathmax (Makefile.am): Likewise.
86527         * modules/physmem (Makefile.am): Likewise.
86528         * modules/poll (Makefile.am): Likewise.
86529         * modules/posixtm (Makefile.am): Likewise.
86530         * modules/posixver (Makefile.am): Likewise.
86531         * modules/putenv (Makefile.am): Likewise.
86532         * modules/quote (Makefile.am): Likewise.
86533         * modules/quotearg (Makefile.am): Likewise.
86534         * modules/raise (Makefile.am): Likewise.
86535         * modules/read-file (Makefile.am): Likewise.
86536         * modules/readline (Makefile.am): Likewise.
86537         * modules/readlink (Makefile.am): Likewise.
86538         * modules/readtokens (Makefile.am): Likewise.
86539         * modules/readutmp (Makefile.am): Likewise.
86540         * modules/realloc (Makefile.am): Likewise.
86541         * modules/regex (Makefile.am): Likewise.
86542         * modules/rename-dest-slash (Makefile.am): Likewise.
86543         * modules/rename (Makefile.am): Likewise.
86544         * modules/rijndael (Makefile.am): Likewise.
86545         * modules/rmdir (Makefile.am): Likewise.
86546         * modules/rpmatch (Makefile.am): Likewise.
86547         * modules/safe-read (Makefile.am): Likewise.
86548         * modules/safe-write (Makefile.am): Likewise.
86549         * modules/same-inode (Makefile.am): Likewise.
86550         * modules/same (Makefile.am): Likewise.
86551         * modules/save-cwd (Makefile.am): Likewise.
86552         * modules/savedir (Makefile.am): Likewise.
86553         * modules/setenv (Makefile.am): Likewise.
86554         * modules/settime (Makefile.am): Likewise.
86555         * modules/sha1 (Makefile.am): Likewise.
86556         * modules/sig2str (Makefile.am): Likewise.
86557         * modules/snprintf (Makefile.am): Likewise.
86558         * modules/stat-macros (Makefile.am): Likewise.
86559         * modules/stat-time (Makefile.am): Likewise.
86560         * modules/stdbool (Makefile.am): Likewise.
86561         * modules/stdint (Makefile.am): Likewise.
86562         * modules/stdlib-safer (Makefile.am): Likewise.
86563         * modules/stpcpy (Makefile.am): Likewise.
86564         * modules/stpncpy (Makefile.am): Likewise.
86565         * modules/strcase (Makefile.am): Likewise.
86566         * modules/strcasestr (Makefile.am): Likewise.
86567         * modules/strchrnul (Makefile.am): Likewise.
86568         * modules/strcspn (Makefile.am): Likewise.
86569         * modules/strdup (Makefile.am): Likewise.
86570         * modules/strerror (Makefile.am): Likewise.
86571         * modules/strftime (Makefile.am): Likewise.
86572         * modules/strndup (Makefile.am): Likewise.
86573         * modules/strnlen (Makefile.am): Likewise.
86574         * modules/strpbrk (Makefile.am): Likewise.
86575         * modules/strsep (Makefile.am): Likewise.
86576         * modules/strstr (Makefile.am): Likewise.
86577         * modules/strtod (Makefile.am): Likewise.
86578         * modules/strtoimax (Makefile.am): Likewise.
86579         * modules/strtok_r (Makefile.am): Likewise.
86580         * modules/strtol (Makefile.am): Likewise.
86581         * modules/strtoll (Makefile.am): Likewise.
86582         * modules/strtoul (Makefile.am): Likewise.
86583         * modules/strtoull (Makefile.am): Likewise.
86584         * modules/strtoumax (Makefile.am): Likewise.
86585         * modules/strverscmp (Makefile.am): Likewise.
86586         * modules/sys_socket (Makefile.am): Likewise.
86587         * modules/sys_stat (Makefile.am): Likewise.
86588         * modules/sysexits (Makefile.am): Likewise.
86589         * modules/time_r (Makefile.am): Likewise.
86590         * modules/timegm (Makefile.am): Likewise.
86591         * modules/timespec (Makefile.am): Likewise.
86592         * modules/tmpfile-safer (Makefile.am): Likewise.
86593         * modules/trim (Makefile.am): Likewise.
86594         * modules/unistd-safer (Makefile.am): Likewise.
86595         * modules/unlinkdir (Makefile.am): Likewise.
86596         * modules/unlocked-io (Makefile.am): Likewise.
86597         * modules/userspec (Makefile.am): Likewise.
86598         * modules/utime (Makefile.am): Likewise.
86599         * modules/utimecmp (Makefile.am): Likewise.
86600         * modules/utimens (Makefile.am): Likewise.
86601         * modules/vasnprintf (Makefile.am): Likewise.
86602         * modules/vasprintf (Makefile.am): Likewise.
86603         * modules/vsnprintf (Makefile.am): Likewise.
86604         * modules/xalloc (Makefile.am): Likewise.
86605         * modules/xgetcwd (Makefile.am): Likewise.
86606         * modules/xnanosleep (Makefile.am): Likewise.
86607         * modules/xreadlink (Makefile.am): Likewise.
86608         * modules/xstrtod (Makefile.am): Likewise.
86609         * modules/xstrtol (Makefile.am): Likewise.
86610         * modules/xstrtold (Makefile.am): Likewise.
86611         * modules/yesno (Makefile.am): Likewise.
86612         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
86614 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
86616         * modules/error (Makefile.am): Distribute files through
86617         EXTRA_DIST, not lib_SOURCES.
86619 2006-10-12  Eric Blake  <ebb9@byu.net>
86621         * modules/error (Makefile.am): Distribute files in /lib.
86622         * modules/obstack (Makefile.am): Likewise.
86624 2006-10-12  Bruno Haible  <bruno@clisp.org>
86626         * modules/acl (Makefile.am): Distribute all files in lib/ through
86627         EXTRA_DIST.
86628         * modules/arcfour (Makefile.am): Likewise.
86629         * modules/arctwo (Makefile.am): Likewise.
86630         * modules/argmatch (Makefile.am): Likewise.
86631         * modules/argz (Makefile.am): Likewise.
86632         * modules/atexit (Makefile.am): Likewise.
86633         * modules/backupfile (Makefile.am): Likewise.
86634         * modules/c-strtod (Makefile.am): Likewise.
86635         * modules/c-strtold (Makefile.am): Likewise.
86636         * modules/calloc (Makefile.am): Likewise.
86637         * modules/canon-host (Makefile.am): Likewise.
86638         * modules/canonicalize (Makefile.am): Likewise.
86639         * modules/chdir-long (Makefile.am): Likewise.
86640         * modules/chdir-safer (Makefile.am): Likewise.
86641         * modules/check-version (Makefile.am): Likewise.
86642         * modules/chown (Makefile.am): Likewise.
86643         * modules/cloexec (Makefile.am): Likewise.
86644         * modules/close-stream (Makefile.am): Likewise.
86645         * modules/closeout (Makefile.am): Likewise.
86646         * modules/crc (Makefile.am): Likewise.
86647         * modules/cycle-check (Makefile.am): Likewise.
86648         * modules/des (Makefile.am): Likewise.
86649         * modules/dirfd (Makefile.am): Likewise.
86650         * modules/dirname (Makefile.am): Likewise.
86651         * modules/dup2 (Makefile.am): Likewise.
86652         * modules/euidaccess (Makefile.am): Likewise.
86653         * modules/exclude (Makefile.am): Likewise.
86654         * modules/exitfail (Makefile.am): Likewise.
86655         * modules/fcntl-safer (Makefile.am): Likewise.
86656         * modules/file-type (Makefile.am): Likewise.
86657         * modules/fileblocks (Makefile.am): Likewise.
86658         * modules/filemode (Makefile.am): Likewise.
86659         * modules/filenamecat (Makefile.am): Likewise.
86660         * modules/fnmatch (Makefile.am): Likewise.
86661         * modules/fopen-safer (Makefile.am): Likewise.
86662         * modules/fpending (Makefile.am): Likewise.
86663         * modules/fprintftime (Makefile.am): Likewise.
86664         * modules/free (Makefile.am): Likewise.
86665         * modules/fsusage (Makefile.am): Likewise.
86666         * modules/ftruncate (Makefile.am): Likewise.
86667         * modules/fts (Makefile.am): Likewise.
86668         * modules/gc (Makefile.am): Likewise.
86669         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
86670         * modules/getaddrinfo (Makefile.am): Likewise.
86671         * modules/getcwd (Makefile.am): Likewise.
86672         * modules/getdelim (Makefile.am): Likewise.
86673         * modules/getdomainname (Makefile.am): Likewise.
86674         * modules/getgroups (Makefile.am): Likewise.
86675         * modules/gethostname (Makefile.am): Likewise.
86676         * modules/gethrxtime (Makefile.am): Likewise.
86677         * modules/getline (Makefile.am): Likewise.
86678         * modules/getloadavg (Makefile.am): Likewise.
86679         * modules/getlogin_r (Makefile.am): Likewise.
86680         * modules/getopt (Makefile.am): Likewise.
86681         * modules/getpass (Makefile.am): Likewise.
86682         * modules/getpass-gnu (Makefile.am): Likewise.
86683         * modules/getsubopt (Makefile.am): Likewise.
86684         * modules/gettime (Makefile.am): Likewise.
86685         * modules/gettimeofday (Makefile.am): Likewise.
86686         * modules/getugroups (Makefile.am): Likewise.
86687         * modules/getusershell (Makefile.am): Likewise.
86688         * modules/glob (Makefile.am): Likewise.
86689         * modules/group-member (Makefile.am): Likewise.
86690         * modules/hard-locale (Makefile.am): Likewise.
86691         * modules/hash (Makefile.am): Likewise.
86692         * modules/hmac-md5 (Makefile.am): Likewise.
86693         * modules/hmac-sha1 (Makefile.am): Likewise.
86694         * modules/human (Makefile.am): Likewise.
86695         * modules/idcache (Makefile.am): Likewise.
86696         * modules/imaxabs (Makefile.am): Likewise.
86697         * modules/imaxdiv (Makefile.am): Likewise.
86698         * modules/inet_ntop (Makefile.am): Likewise.
86699         * modules/inet_pton (Makefile.am): Likewise.
86700         * modules/inttostr (Makefile.am): Likewise.
86701         * modules/isapipe (Makefile.am): Likewise.
86702         * modules/lchown (Makefile.am): Likewise.
86703         * modules/long-options (Makefile.am): Likewise.
86704         * modules/lstat (Makefile.am): Likewise.
86705         * modules/malloc (Makefile.am): Likewise.
86706         * modules/mathl (Makefile.am): Likewise.
86707         * modules/mbchar (Makefile.am): Likewise.
86708         * modules/md2 (Makefile.am): Likewise.
86709         * modules/md4 (Makefile.am): Likewise.
86710         * modules/md5 (Makefile.am): Likewise.
86711         * modules/memcasecmp (Makefile.am): Likewise.
86712         * modules/memchr (Makefile.am): Likewise.
86713         * modules/memcmp (Makefile.am): Likewise.
86714         * modules/memcoll (Makefile.am): Likewise.
86715         * modules/memcpy (Makefile.am): Likewise.
86716         * modules/memmem (Makefile.am): Likewise.
86717         * modules/memmove (Makefile.am): Likewise.
86718         * modules/mempcpy (Makefile.am): Likewise.
86719         * modules/memrchr (Makefile.am): Likewise.
86720         * modules/memset (Makefile.am): Likewise.
86721         * modules/memxor (Makefile.am): Likewise.
86722         * modules/mkancesdirs (Makefile.am): Likewise.
86723         * modules/mkdir (Makefile.am): Likewise.
86724         * modules/mkdir-p (Makefile.am): Likewise.
86725         * modules/mkdtemp (Makefile.am): Likewise.
86726         * modules/mkstemp (Makefile.am): Likewise.
86727         * modules/mktime (Makefile.am): Likewise.
86728         * modules/modechange (Makefile.am): Likewise.
86729         * modules/mountlist (Makefile.am): Likewise.
86730         * modules/nanosleep (Makefile.am): Likewise.
86731         * modules/openat (Makefile.am): Likewise.
86732         * modules/pagealign_alloc (Makefile.am): Likewise.
86733         * modules/physmem (Makefile.am): Likewise.
86734         * modules/poll (Makefile.am): Likewise.
86735         * modules/posixtm (Makefile.am): Likewise.
86736         * modules/posixver (Makefile.am): Likewise.
86737         * modules/putenv (Makefile.am): Likewise.
86738         * modules/quote (Makefile.am): Likewise.
86739         * modules/quotearg (Makefile.am): Likewise.
86740         * modules/raise (Makefile.am): Likewise.
86741         * modules/read-file (Makefile.am): Likewise.
86742         * modules/readline (Makefile.am): Likewise.
86743         * modules/readlink (Makefile.am): Likewise.
86744         * modules/readtokens (Makefile.am): Likewise.
86745         * modules/readutmp (Makefile.am): Likewise.
86746         * modules/realloc (Makefile.am): Likewise.
86747         * modules/regex (Makefile.am): Likewise.
86748         * modules/rename (Makefile.am): Likewise.
86749         * modules/rename-dest-slash (Makefile.am): Likewise.
86750         * modules/rijndael (Makefile.am): Likewise.
86751         * modules/rmdir (Makefile.am): Likewise.
86752         * modules/rpmatch (Makefile.am): Likewise.
86753         * modules/safe-read (Makefile.am): Likewise.
86754         * modules/safe-write (Makefile.am): Likewise.
86755         * modules/same (Makefile.am): Likewise.
86756         * modules/save-cwd (Makefile.am): Likewise.
86757         * modules/savedir (Makefile.am): Likewise.
86758         * modules/setenv (Makefile.am): Likewise.
86759         * modules/settime (Makefile.am): Likewise.
86760         * modules/sha1 (Makefile.am): Likewise.
86761         * modules/sig2str (Makefile.am): Likewise.
86762         * modules/snprintf (Makefile.am): Likewise.
86763         * modules/stdlib-safer (Makefile.am): Likewise.
86764         * modules/stpcpy (Makefile.am): Likewise.
86765         * modules/stpncpy (Makefile.am): Likewise.
86766         * modules/strcase (Makefile.am): Likewise.
86767         * modules/strcasestr (Makefile.am): Likewise.
86768         * modules/strchrnul (Makefile.am): Likewise.
86769         * modules/strcspn (Makefile.am): Likewise.
86770         * modules/strdup (Makefile.am): Likewise.
86771         * modules/strerror (Makefile.am): Likewise.
86772         * modules/strftime (Makefile.am): Likewise.
86773         * modules/strndup (Makefile.am): Likewise.
86774         * modules/strnlen (Makefile.am): Likewise.
86775         * modules/strpbrk (Makefile.am): Likewise.
86776         * modules/strsep (Makefile.am): Likewise.
86777         * modules/strstr (Makefile.am): Likewise.
86778         * modules/strtod (Makefile.am): Likewise.
86779         * modules/strtoimax (Makefile.am): Likewise.
86780         * modules/strtok_r (Makefile.am): Likewise.
86781         * modules/strtol (Makefile.am): Likewise.
86782         * modules/strtoll (Makefile.am): Likewise.
86783         * modules/strtoul (Makefile.am): Likewise.
86784         * modules/strtoull (Makefile.am): Likewise.
86785         * modules/strtoumax (Makefile.am): Likewise.
86786         * modules/strverscmp (Makefile.am): Likewise.
86787         * modules/time_r (Makefile.am): Likewise.
86788         * modules/timegm (Makefile.am): Likewise.
86789         * modules/tmpfile-safer (Makefile.am): Likewise.
86790         * modules/unistd-safer (Makefile.am): Likewise.
86791         * modules/unlinkdir (Makefile.am): Likewise.
86792         * modules/userspec (Makefile.am): Likewise.
86793         * modules/utime (Makefile.am): Likewise.
86794         * modules/utimecmp (Makefile.am): Likewise.
86795         * modules/utimens (Makefile.am): Likewise.
86796         * modules/vasnprintf (Makefile.am): Likewise.
86797         * modules/vasprintf (Makefile.am): Likewise.
86798         * modules/vsnprintf (Makefile.am): Likewise.
86799         * modules/xalloc (Makefile.am): Likewise.
86800         * modules/xgetcwd (Makefile.am): Likewise.
86801         * modules/xnanosleep (Makefile.am): Likewise.
86802         * modules/xreadlink (Makefile.am): Likewise.
86803         * modules/xstrtod (Makefile.am): Likewise.
86804         * modules/xstrtol (Makefile.am): Likewise.
86805         * modules/xstrtold (Makefile.am): Likewise.
86806         * modules/yesno (Makefile.am): Likewise.
86808 2006-10-12  Jim Meyering  <jim@meyering.net>
86810         * m4/getloadavg.m4: Revert the change below.
86812         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
86813         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
86814         fail with a symlink, which is what coreutils' ./bootstrap now
86815         creates by default.
86817 2006-10-12  Bruno Haible  <bruno@clisp.org>
86819         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
86820         mingw.
86821         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
86822         MSVC and mingw explicitly.
86824 2006-10-11  Simon Josefsson  <jas@extundo.com>
86825             Bruno Haible  <bruno@clisp.org>
86827         Add support for multiple gnulib-tool invocations in the scope of a
86828         single configure.ac file.
86829         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
86830         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
86831         with the same contents as the _LIBADD variable.
86832         (func_emit_initmacro_start, func_emit_initmacro_end,
86833         func_emit_initmacro_done): New functions.
86834         (func_import, func_create_testdir): Invoke them. Allow the identifiers
86835         gl_LIBOBJS and gl_LTLIBOBJS.
86837 2006-10-11  Bruno Haible  <bruno@clisp.org>
86839         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
86840         (func_create_testdir): Don't create po/Makefile.am, don't invoke
86841         autoreconf. Instead, invoke autopoint explicitly but move back the
86842         *.m4 files from gnulib.
86844 2006-10-11  Bruno Haible  <bruno@clisp.org>
86846         * gnulib-tool (func_usage): Make module names after --create-testdir
86847         optional.
86848         (func_create_testdir): If no module was specified, use nearly all
86849         modules.
86851 2006-10-12  Jim Meyering  <jim@meyering.net>
86853         Big performance improvement for fts-based tools that use FTS_NOSTAT.
86854         Avoid spurious inode-mismatch problems on non-POSIX file systems.
86855         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
86856         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
86857         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
86858         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
86859         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
86860         (fts_set_stat_required): New function.
86861         (fts_open): Defer the calls to fts_stat, if possible or requested.
86862         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
86863         into fts_stat itself.
86864         (fts_read): Perform any required (deferred) fts_stat call.
86865         (fts_build): Likewise, for the directory we're about to open and read.
86866         In the readdir loop, carefully decide whether each entry will require
86867         an eventual call to fts_stat, using dirent.d_type info if available.
86868         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
86869         a command line argument into this function.  Update all callers.
86870         Map a return value of FTS_DOT to FTS_D for a command line argument.
86871         * modules/fts (Depends-on): Add d-type.  Alphabetize.
86872         Thanks to Miklos Szeredi for his tenacity and for the initial
86873         bug report about "find" failing on a FUSE-based file system.
86875         * lib/fts.c (fts_open): Use consistent indentation.
86877 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
86879         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
86880         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
86881         reported by Jim Meyering.  All uses of cache variables renamed
86882         to match Autoconf's.
86883         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
86884         the other one.
86886         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
86887         Fix misspelling in diagnostic.
86889 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
86891         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
86892         defined.  Problem reported by Matthew Woehlke.
86894         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
86895         Add support for Tandem NonStop R series.
86896         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
86897         Use new macro.
86899         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
86900         (has_trailing_slash): Omit size arg; all callers changed.
86901         Omit 'inline', since it doesn't help performance and we'd
86902         need to configure it.
86903         Don't count //, ///, etc. as having a trailing slash.
86904         As a side effect, this removes a C99ism reported by Matthew Woehlke.
86905         (rpl_rename_dest_slash): On failure, use rename's errno rather
86906         than (in some cases) an incorrect or junk errno.
86907         Simplify code by removing need to compute length; this does
86908         cause it to make two passes instead of one over the file name,
86909         but it's worth it.
86911         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
86912         change, since Autoconf's version may no longer be appropriate now
86913         that we are using CVS Autoconf's version.  Add support for Tandem.
86915 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
86916             Bruno Haible  <bruno@clisp.org>
86918         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
86919         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
86920         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
86921         gl_AC_TYPE_LONG_LONG.
86923         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
86924         instead of HAVE_LONG_LONG.
86925         * lib/printf-args.c (printf_fetchargs): Likewise.
86926         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
86927         * lib/vasnprintf.c (VASNPRINTF): Likewise.
86928         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
86929         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
86930         gl_AC_TYPE_LONG_LONG.
86932 2006-10-11  Bruno Haible  <bruno@clisp.org>
86934         * m4/longlong.m4: Add comments.
86935         * m4/ulonglong.m4: Likewise.
86937 2006-10-10  Bruno Haible  <bruno@clisp.org>
86939         Make it possible to #define stpcpy, strdup to aliases.
86940         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
86941         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
86943 2006-10-10  Bruno Haible  <bruno@clisp.org>
86945         Make it possible to #define gcd to an alias.
86946         * lib/gcd.c: Include config.h.
86948 2006-10-10  Bruno Haible  <bruno@clisp.org>
86950         Make it possible to #define c_isascii to an alias.
86951         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
86952         defined. Undefine the macros before defining them, to avoid gcc
86953         warnings.
86954         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
86955         define NO_C_CTYPE_MACROS early.
86957 2006-10-10  Bruno Haible  <bruno@clisp.org>
86959         Make it possible to #define set_program_name to an alias.
86960         * lib/progname.c: Don't undefine set_program_name; instead, undefine
86961         ENABLE_RELOCATABLE early.
86963 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
86965         Port to Tandem NSK OSS, which has 64-bit signed int but at most
86966         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
86967         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
86968         More generally, don't assume that 64-bit signed int is available
86969         if unsigned int is, and vice versa.
86970         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
86971         unsigned symbols, not on their signed counterparts.
86972         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
86973         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
86974         (UINT64_C, UINTMAX_C):
86975         Likewise.
86976         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
86977         unsigned counterparts.
86978         (Have_long_long, Unsigned): New macros.
86979         (Int): Renamed from INT.
86980         (strtoimax): Use the new macros.
86981         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
86982         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
86983         * modules/inttypes (inttypes.h): Substitute
86984         HAVE_UNSIGNED_LONG_LONG_INT.
86985         * modules/stdint (stdint.h): Likewise.
86986         (Files): Add m4/ulonglong.m4.
86988 2006-10-10  Bruno Haible  <bruno@clisp.org>
86990         Fix a gcc -Wshadow warning.
86991         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
86992         to 'bucket'.
86993         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
86994         gl_linked_indexof_from_to): Likewise.
86995         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
86996         Likewise.
86997         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
86998         Likewise.
86999         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
87000         Reported by Eric Blake.
87002 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
87004         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
87005         for NetBSD.  Problem reported by Bruno Haible.
87007 2006-10-09  Jim Meyering  <jim@meyering.net>
87009         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
87010         Patch from Bruno Haible.
87012 2006-10-09  Jim Meyering  <jim@meyering.net>
87014         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
87015         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
87016         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
87018 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
87020         Don't include <config.h> twice; this doesn't work in some cases,
87021         e.g., when config.h has "#define intmax_t long long int" and
87022         we include <config.h>, <inttypes.h>, <config.h> in that order.
87023         Problem reported by Matthew Woehlke in:
87024         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
87025         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
87026         * lib/fts-cycle.c: Don't include config.h.
87027         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
87028         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
87029         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
87030         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
87031         inttypes.h.
87032         * lib/xstrtoumax.c: Likewise.
87033         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
87034         __strtol and the like, so that this module is more like its siblings.
87035         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
87036         Remove; no longer needed now that we assume gnulib inttypes.h.
87038 2006-10-08  Bruno Haible  <bruno@clisp.org>
87040         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
87041         option.
87043 2006-10-07  Jim Meyering  <jim@meyering.net>
87045         * modules/inttypes (inttypes.h): Revert what seems to have been
87046         an inadvertent part of today's change: use "|", not "/" in the
87047         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
87049 2006-10-07  Bruno Haible  <bruno@clisp.org>
87051         * modules/sublist: New file.
87053 2006-10-07  Bruno Haible  <bruno@clisp.org>
87055         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
87056         * modules/argz (argz.h): Likewise.
87057         * modules/arpa_inet (arpa/inet.h): Likewise.
87058         * modules/byteswap (byteswap.h): Likewise.
87059         * modules/configmake (configmake.h): Likewise.
87060         * modules/fcntl (fcntl.h): Likewise.
87061         * modules/fnmatch (fnmatch.h): Likewise.
87062         * modules/getopt (getopt.h): Likewise.
87063         * modules/glob (glob.h): Likewise.
87064         * modules/inttypes (inttypes.h): Likewise.
87065         * modules/netinet_in (netinet/in.h): Likewise.
87066         * modules/poll (poll.h): Likewise.
87067         * modules/stdbool (stdbool.h): Likewise.
87068         * modules/stdint (stdint.h): Likewise.
87069         * modules/sys_select (sys/select.h): Likewise.
87070         * modules/sys_socket (sys/socket.h): Likewise.
87071         * modules/sys_stat (sys/stat.h): Likewise.
87072         * modules/sysexits (sysexits.h): Likewise.
87073         * modules/unistd (unistd.h): Likewise.
87074         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
87075         Add a "DO NOT EDIT" comment to the generated file.
87076         (func_import): Likewise for gnulib-comp.m4.
87078 2006-10-07  Bruno Haible  <bruno@clisp.org>
87080         * lib/gl_sublist.h: New file.
87081         * lib/gl_sublist.c: New file.
87083 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
87085         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
87086         name (relative to the original working directory) and the file
87087         name component (relative to the temporary working directory).  All
87088         callers changed.
87089         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
87090         * lib/mkdir-p.c (make_dir_parents): Likewise.
87091         * lib/mkdir-p.h (make_dir_parents): Likewise.
87093 2006-10-06  Eric Blake  <ebb9@byu.net>
87095         Define several macros for use by the clean-temp module.
87096         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
87097         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
87098         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
87100         * lib/clean-temp.h (close_stream_temp): New declaration.
87101         * lib/clean-temp.c (includes): Pull in headers according to what
87102         other modules are in use.
87103         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
87105 2006-10-06  Bruno Haible  <bruno@clisp.org>
87107         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
87108         instead of fopen, fwriteerror.
87110 2006-10-06  Bruno Haible  <bruno@clisp.org>
87112         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
87113         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
87114         int.
87115         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
87116         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
87117         Return an error indicator.
87118         Suggested by Eric Blake.
87120 2006-10-06  Bruno Haible  <bruno@clisp.org>
87122         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
87123         Reported by Eric Blake.
87125 2006-10-06  Bruno Haible  <bruno@clisp.org>
87127         * modules/closeout (Description): Mention stderr too.
87129 2006-10-06  Bruno Haible  <bruno@clisp.org>
87130         and Paul Eggert  <eggert@cs.ucla.edu>
87132         * lib/closeout.c (close_stdout): Also close stderr.
87133         * lib/closeout.h: Update comment.
87135 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
87137         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
87138         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
87139         * lib/dirchownmod.c: Include lchown.h.
87140         * lib/lchown.c: Don't include files that lchown.h now includes.
87141         Don't declare chown, since lchown.h now does that.
87142         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
87143         (lchown): Define to rpl_chown if lchown is declared but
87144         does not exist.  Declare using a prototype if lchown is not
87145         declared.  Add a copyright notice.
87146         * lib/mkstemp.h: Include <unistd.h>.
87147         * lib/openat.c: Include lchown.h.
87149         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
87150         we now test for that separately.
87151         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
87152         rather than O_NOFOLLOW, when testing whether it's possible to
87153         avoid a race condition reliably.
87154         * lib/savewd.c (savewd_chdir): Likewise.
87156         Remove macros that are no longer needed now that stdint.h is
87157         reliable.
87158         * lib/fsusage.c (UINTMAX_MAX): Remove.
87159         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
87160         * lib/utimecmp.c (SIZE_MAX): Remove.
87162         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
87164         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
87165         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
87166         O_NOATIME works.
87168 2006-10-05  Bruno Haible  <bruno@clisp.org>
87170         * lib/gl_list.h (gl_sortedlist_search_from_to,
87171         gl_sortedlist_indexof_from_to): New declarations.
87172         (gl_list_implementation): New fields sortedlist_search_from_to,
87173         sortedlist_indexof_from_to.
87174         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
87175         inline functions.
87176         * lib/gl_list.c (gl_sortedlist_search_from_to,
87177         gl_sortedlist_indexof_from_to): New functions.
87178         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
87179         function.
87180         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
87181         (gl_array_sortedlist_search_from_to): New function.
87182         (gl_array_list_implementation): Update.
87183         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
87184         function.
87185         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
87186         (gl_carray_sortedlist_search_from_to): New function.
87187         (gl_carray_list_implementation): Update.
87188         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
87189         gl_linked_sortedlist_indexof_from_to): New functions.
87190         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
87191         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
87192         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
87193         gl_tree_sortedlist_indexof_from_to): New functions.
87194         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
87195         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
87196         Update.
87197         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
87198         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
87199         Update.
87201 2006-10-05  Bruno Haible  <bruno@clisp.org>
87203         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
87204         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
87205         (struct gl_list_implementation): Add fields search_from_to,
87206         indexof_from_to. Remove fields search, indexof.
87207         (gl_list_search): Use the search_from_to method.
87208         (gl_list_search_from, gl_list_search_from_to): New functions.
87209         (gl_list_indexof): Use the indexof_from_to method.
87210         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
87211         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
87212         (gl_list_search_from, gl_list_search_from_to): New functions.
87213         (gl_list_indexof): Use the indexof_from_to method.
87214         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
87215         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
87216         gl_array_indexof. Add start_index, end_index arguments.
87217         (gl_array_search_from_to): Renamed from gl_array_search. Add
87218         start_index, end_index arguments.
87219         (gl_array_remove, gl_array_list_implementation): Update.
87220         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
87221         gl_carray_indexof. Add start_index, end_index arguments.
87222         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
87223         start_index, end_index arguments.
87224         (gl_carray_remove, gl_carray_list_implementation): Update.
87225         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
87226         gl_linked_search. Add start_index, end_index arguments.
87227         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
87228         start_index, end_index arguments.
87229         (gl_linked_remove): Update.
87230         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
87231         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
87232         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
87233         field to 'size_t'.
87234         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
87235         gl_tree_search. Add start_index, end_index arguments.
87236         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
87237         start_index, end_index arguments.
87238         (gl_tree_remove): Update.
87239         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
87240         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
87241         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
87242         function.
87243         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
87244         gl_tree_search. Add start_index, end_index arguments.
87245         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
87246         start_index, end_index arguments.
87247         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
87248         Update.
87249         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
87251 2006-10-05  Bruno Haible  <bruno@clisp.org>
87253         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
87255         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
87256         fwriteerror_temp): New declarations.
87257         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
87258         (descriptors): New variable.
87259         (cleanup): First, close the descriptors.
87260         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
87261         fclose_temp, fwriteerror_temp): New functions.
87263 2006-10-04  Jim Meyering  <jim@meyering.net>
87265         * lib/fts.c (fts_open): Tiny comment change.
87267 2006-10-04  Bruno Haible  <bruno@clisp.org>
87269         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
87270         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
87271         gl_LOCK_BODY.
87272         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
87273         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
87274         gl_LOCK_EARLY_BODY.
87275         (gl_LOCK): Require gl_LOCK_BODY.
87277 2006-10-04  Bruno Haible  <bruno@clisp.org>
87279         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
87280         (gl_oset_search_atleast): New declaration.
87281         (struct gl_oset_implementation): Add field 'search_atleast'.
87282         (gl_oset_search_atleast): New inline function.
87283         * lib/gl_oset.c (gl_oset_search_atleast): New function.
87284         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
87285         (gl_array_oset_implementation): Update.
87286         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
87287         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
87288         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
87290 2006-10-04  Bruno Haible  <bruno@clisp.org>
87292         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
87294 2006-10-03  Bruno Haible  <bruno@clisp.org>
87296         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
87297         from gl_avltreehash_list_implementation.
87299 2006-10-03  Bruno Haible  <bruno@clisp.org>
87301         * lib/gl_oset.c (gl_oset_add): Fix return type.
87303 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
87305         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
87307 2006-10-02  Eric Blake  <ebb9@byu.net>
87309         * modules/strnlen (Depends-on): Add extensions.
87311 2006-10-02  Eric Blake  <ebb9@byu.net>
87313         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
87314         definition in 2.60+.
87316 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
87318         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
87319         checks.
87321 2006-10-02  Bruno Haible  <bruno@clisp.org>
87323         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
87324         to the AUTOMAKE_OPTIONS.
87325         Reported by Jim Meyering.
87327 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
87329         Work around bug in Solaris 10 /proc file system:
87330         /proc/self/fd/NNN/.. isn't the parent directory of
87331         the directory whose file descriptor is NNN.  This needs to
87332         be worked around at run time, not compile time, since a
87333         program might be built on Solaris 8, where things work, and
87334         run on Solaris 10.
87335         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
87336         to use the following interface instead:
87337         (OPENAT_BUFFER_SIZE): New macro.
87338         (openat_proc_name): New function.
87339         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
87340         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
87341         Likewise.
87342         * lib/openat-proc.c: New file.
87343         * modules/openat (Files): Add lib/openat-proc.c.
87344         (Depends-on): Add same-inode, stdbool.
87345         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
87347 2006-09-29  Bruno Haible  <bruno@clisp.org>
87349         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
87350         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
87351         argument. Set stdout_closed before testing for ferror, not after.
87352         (fwriteerror, fwriteerror_no_ebadf): New functions.
87354 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87356         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
87358 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
87360         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
87361         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
87363 2006-09-28  Jim Meyering  <jim@meyering.net>
87365         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
87366         Include <unistd.h>.
87368 2006-09-28  Bruno Haible  <bruno@clisp.org>
87370         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
87371         * modules/linkedhash-list (Depends-on): Likewise.
87372         * modules/rbtreehash-list (Depends-on): Likewise.
87374 2006-09-28  Bruno Haible  <bruno@clisp.org>
87376         * lib/strndup.h: Simplify the redefinition of strndup.
87377         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
87378         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
87380 2006-09-28  Bruno Haible  <bruno@clisp.org>
87382         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
87383         * lib/gl_linkedhash_list.c: Likewise.
87384         * lib/gl_rbtreehash_list.c: Likewise.
87386 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
87388         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
87389         getaddrinfo.
87391         * lib/__fpending.h: Don't include <stdio_ext.h> unless
87392         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
87393         it causes <stdio_ext.h> to cause a compile-time error.
87394         Problem reported by Nelson H. F. Beebe.
87395         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
87396         of HAVE_DECL___PENDING.
87398         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
87399         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
87400         declaration.
87402 2006-09-27  Jim Meyering  <jim@meyering.net>
87404         This file could end up with a definition for a function
87405         named __strndup, rather than rpl_strndup on a system with
87406         incomplete weak_alias support.
87407         * lib/strndup.c (strndup): Rename from __strndup.
87408         Remove #defines that used to map __strndup to strndup.
87409         Don't use K&R prototypes.
87410         Remove LIBC-related code, since this file is not sync'd with glibc.
87411         * lib/strndup.h: Revamp, accordingly.
87412         * m4/strndup.m4: Modernize.
87414 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
87416         * modules/savewd (Depends-on): Add 'raise'.
87417         * lib/savewd.c: Include <signal.h>, for 'raise'.
87419 2006-09-26  Jim Meyering  <jim@meyering.net>
87421         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
87422         when we detect Darwin 8.7.0's acl_get_file bug.
87423         Rearrange to perform the new (below) run-test while $LIBS
87424         contains any acl-related library.  Set USE_ACL at the end.
87425         (gl_ACL_GET_FILE): New function.
87427 2006-09-26  Eric Blake  <ebb9@byu.net>
87429         * lib/verror.c: Include <config.h> unconditionally.
87431 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
87433         * modules/clock-time (Maintainer): Add self.
87434         * modules/getlogin_r (Depends-on): Add extensions.
87436 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87438         * modules/clock-time: New module.
87439         * modules/nanosleep (Depends-on): Add clock-time.
87440         * modules/gethrxtime (Depends-on): Likewise.
87441         * modules/gettime (Depends-on): Likewise.
87442         * modules/settime (Depends-on): Likewise.
87444         * modules/fts-lgpl: Depend on openat.
87445         * modules/mkancesdirs: Depend on savewd.
87446         * modules/mkdir-p: Likewise.
87448 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87450         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
87452         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
87453         `gl_have_arbitrary_file_name_length_limit' to
87454         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
87455         actually works between configure runs.
87457 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87458             Bruno Haible  <bruno@clisp.org>
87460         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
87462 2006-09-25  Jim Meyering  <jim@meyering.net>
87464         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
87465         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
87467 2006-09-25  Eric Blake  <ebb9@byu.net>
87469         * gnulib-tool (func_import, func_create_testdir): Fix typos in
87470         exec's in 2006-09-18 patch when shuffling fds.
87472 2006-09-25  Bruno Haible  <bruno@clisp.org>
87474         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
87475         Reported by Jim Meyering.
87477 2006-09-24  Jim Meyering  <jim@meyering.net>
87479         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
87480         compare a pointer against a literal "0".  That caused failures with
87481         at least HP-UX's hpcc.
87483 2006-09-22  Simon Josefsson  <jas@extundo.com>
87485         * modules/gc-sha1:
87486         * modules/gc-md4:
87487         * modules/gc-hmac-sha1:
87488         * modules/gc-hmac-md5:
87489         * modules/gc-des:
87490         * modules/gc-arcfour: Distribute more files.
87492 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87494         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
87495         (gl_linked_iterator_from_to): Initialize struct completely.
87496         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
87497         (gl_tree_iterator_from_to): Likewise
87498         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
87499         * lib/gl_array_list.c [lint] (gl_array_iterator)
87500         (gl_array_iterator_from_to): Likewise.
87501         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
87502         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
87503         (gl_carray_iterator_from_to): Likewise.
87505         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
87506         * lib/md4.c (md4_process_block): Remove unused variable.
87507         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
87508         parentheses for clarity.
87510 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87512         * modules/bison-i18n (Depends-on): Add gettext.
87514 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87516         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
87517         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
87518         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
87519         also add missing comma that caused broken test.
87520         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
87521         stdlib.h, for `abort'.
87522         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
87523         variables.
87524         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
87525         include unistd.h if present, for `rmdir'.
87526         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
87527         variables.
87528         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
87529         in the process include standard headers for prototypes.
87530         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
87531         gets declared on GNU/Linux.
87532         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
87533         unistd.h, for `rmdir'.
87534         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
87536         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
87537         always true.
87538         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
87540         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
87542 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87544         * gnulib-tool (func_version): Create output all at once.  This
87545         may help avoid triggering unnecessary SIGPIPEs, and at any
87546         rate it doesn't hurt.
87548 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87549             Bruno Haible  <bruno@clisp.org>
87551         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
87552         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
87553         * m4/signed.m4 (bh_C_SIGNED): Likewise.
87555         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
87556         (gl_FUNC_VASPRINTF): Invoke it.
87558 2006-09-22  Bruno Haible  <bruno@clisp.org>
87560         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
87561         getloadavg.c as first argument.
87563 2006-09-22  Bruno Haible  <bruno@clisp.org>
87565         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
87566         at the beginning of the gl_INIT macro.
87567         * modules/getloadavg (configure.ac): Pass $gl_source_base to
87568         gl_GETLOADAVG.
87570 2006-09-22  Bruno Haible  <bruno@clisp.org>
87572         * gnulib-tool (func_create_megatestdir): Don't include the config-h
87573         module.
87574         Suggested by Ralf Wildenhues.
87576 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
87578         Import this patch from libc:
87580         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
87582         * lib/regex_internal.c (re_string_reconstruct): Handle
87583         offset < pstr->valid_raw_len && pstr->offsets_needed case.
87584         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
87585         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
87586         re_string_context_at.
87588         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
87589         now requires it.
87590         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
87591         gl_REGEX now does it for us.
87592         (gl_REGEX): Add test taken from
87593         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
87595         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
87596         Check that large offsets work.  Modernize Autoconf usages.
87597         Prefer "yes" to mean a good thing rather than a bad.
87598         Don't put "#define mkstemp" in config.h, as this might interfere
87599         with standard system headers that "#define mkstemp mkstemp64".
87601         * modules/mkstemp (Depends-on): Add extensions, so that
87602         mkstemp is visible on some platforms.
87603         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
87604         (Include): Change to "mkstemp.h" from <stdlib.h>.
87605         (Files): Add mkstemp.h.
87607         * lib/mkstemp.h: New file, since some standard headers
87608         #define mkstemp.
87609         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
87610         Include "mkstemp.h".
87611         Make the _LIBC code resemble glibc original more,
87612         e.g., use K&R style.
87613         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
87614         (mkstemp): Remove, since mkstemp.h does this for us.
87615         * lib/stdlib--.h: Include mkstemp.h.
87617         Import this patch from libc:
87619         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
87621         * lib/tempname.c (__gen_tempname): Change attempts_min
87622         into a macro.  Use preprocessor to decide how to initialize
87623         attempts [Coverity CID 67].
87625 2006-09-20  Bruno Haible  <bruno@clisp.org>
87627         * lib/mkdtemp.c: Import from libc.
87628         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
87629                 * sysdeps/posix/tempname.c (__gen_tempname): Change
87630                 attempts_min into a macro.  Use preprocessor to decide how to
87631                 initialize attempts [Coverity CID 67].
87632         2001-11-27  Paul Eggert  <eggert@twinsun.com>
87633                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
87634                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
87636 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87638         * gnulib-tool (func_exit): New function, to allow to pass the
87639         exit status portably through the trap.  Use everywhere.
87640         (--help, --version): Signal a write error.
87641         (trap): catch SIGPIPE, for write errors.
87642         Exit at the end of the trap, with the correct exit status.
87644 2006-09-19  Karl Berry  <karl@gnu.org>
87646         * doc/gnulib.texi: note about the license texinfo files.
87648 2006-09-19  Eric Blake  <ebb9@byu.net>
87650         * gnulib-tool: Avoid space-tab.
87652 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
87654         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
87655         that prevented coreutils 6.1 from building.  Problem reported
87656         by Petter Reinholdtsen.
87658 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
87660         * gnulib-tool (avoidlist): Fix typo that broke options like
87661         --avoid=lock that are used by coreutils bootstrap.
87663 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
87665         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
87666         more systematically.
87668 2006-09-18  Jim Meyering  <jim@meyering.net>
87670         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
87672 2006-09-18  Bruno Haible  <bruno@clisp.org>
87674         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
87676 2006-09-18  Bruno Haible  <bruno@clisp.org>
87678         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
87679         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
87680         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
87681         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
87682         * m4/gettext.m4: Require autoconf >= 2.52.
87683         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
87684         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
87685         of gl_cv_header_inttypes_h.
87687 2006-09-18  Bruno Haible  <bruno@clisp.org>
87689         * lib/javaversion.c: Include configmake.h.
87691 2006-09-18  Bruno Haible  <bruno@clisp.org>
87693         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
87694         avoid that the while loops be executed in a subshell.
87696 2006-09-18  Bruno Haible  <bruno@clisp.org>
87698         * MODULES.html.sh (func_module): Break long lines.
87699         Suggested by Bruce Korb <bkorb@gnu.org>.
87701 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87703         Speed up by a factor of 1.12.
87704         * gnulib-tool (nl): New variable.
87705         (func_import): Rewrite include directive extraction to only read each
87706         directive once.
87708 2006-09-17  Bruno Haible  <bruno@clisp.org>
87710         * modules/javaversion (Makefile.am): Remove DEFS setting.
87711         (Depends-on): Add configmake, for PKGDATADIR definition.
87713 2006-09-17  Bruno Haible  <bruno@clisp.org>
87715         * gnulib-tool (func_create_testdir): Rewrite all files at once.
87717 2006-09-17  Bruno Haible  <bruno@clisp.org>
87719         * gnulib-tool (func_append): New function, stolen from libtool.m4.
87720         (func_modules_transitive_closure, func_modules_add_dummy,
87721         func_modules_to_filelist, func_import, func_create_testdir,
87722         func_create_megatestdir, ...): Use it wherever possible.
87723         Suggested by Ralf Wildenhues.
87725 2006-09-16  Karl Berry  <karl@gnu.org>
87727         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
87728         to avoid sectioning errors.
87729         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
87730         [ifinfo]: blank line after @center-ed titles.
87731         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
87732         Spell FSF address consistently with others.
87733         (These changes approved by rms.)
87735 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87737         Speed up by a factor of 1.61.
87738         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
87739         already checked module names again.
87741 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87743         Speed up by a factor of 1.13.
87744         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
87745         for new_files, and the input to func_add_or_update.
87747 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87749         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
87750         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
87752 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
87754         * modules/mkancesdirs (Depends-on): Add fcntl.
87755         * modules/savewd: New file.
87756         * MODULES.html.sh (File system functions): Add savewd.
87758         * modules/configmake (Makefile.am): Add support for the
87759         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
87761 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
87763         * m4/savewd.m4: New file.
87765 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
87767         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
87768         (dirchownmod): New arg FD.  All callers changed.
87769         Use FD rather than opening the directory ourself, as opening is
87770         now the caller's responsibility.
87771         * lib/dirchownmod.h: Likewise.
87772         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
87773         hosts that require <sys/types.h> before <sys/stat.h>.  Include
87774         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
87775         (test_dir): Remove.
87776         (mkancesdirs): Return length of prefix of FILE that has already
87777         been made, or -2 if there is a child doing the work.  Redo
87778         algorithm so that it is O(N) rather than O(N**2).  Optimize away
87779         ".", and treat ".." specially since it might stray back into
87780         already-created areas.  Use a subprocess if necessary.  New arg
87781         WD; all users changed.  MAKE_DIR function should now return 1
87782         if it creates a directory that is not readable.  Return -2 if
87783         a child process is spun off.
87784         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
87785         Adjust signature to match code.
87786         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
87787         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
87788         all users changed.
87789         * lib/savewd.c, lib/savewd.h: New files.
87791 2006-09-15  Jim Meyering  <jim@meyering.net>
87793         * modules/rename-dest-slash: New module.
87794         * MODULES.html.sh (posix_compat): Add it here.
87796         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
87798 2006-09-15  Jim Meyering  <jim@meyering.net>
87800         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
87801         file.
87803         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
87805 2006-09-15  Jim Meyering  <jim@meyering.net>
87807         * lib/rename-dest-slash.c (has_trailing_slash): Use
87808         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
87809         (rpl_rename_dest_slash): Perform the cheaper trailing slash
87810         test before testing whether SRC is a directory.
87811         Suggestions from Bruno Haible.
87813         Avoid a warning about an unused variable.
87814         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
87815         into the #ifdef block where it's used.
87817         * lib/rename-dest-slash.c: New file.
87819 2006-09-14  Bruno Haible  <bruno@clisp.org>
87821         * lib/allocsa.c: Include <config.h> unconditionally.
87822         * lib/asnprintf.c: Likewise.
87823         * lib/asprintf.c: Likewise.
87824         * lib/c-strcasecmp.c: Likewise.
87825         * lib/c-strcasestr.c: Likewise.
87826         * lib/c-strncasecmp.c: Likewise.
87827         * lib/c-strstr.c: Likewise.
87828         * lib/classpath.c: Likewise.
87829         * lib/clean-temp.c: Likewise.
87830         * lib/concatpath.c: Likewise.
87831         * lib/copy-file.c: Likewise.
87832         * lib/csharpcomp.c: Likewise.
87833         * lib/csharpexec.c: Likewise.
87834         * lib/execute.c: Likewise.
87835         * lib/fatal-signal.c: Likewise.
87836         * lib/findprog.c: Likewise.
87837         * lib/fwriteerror.c: Likewise.
87838         * lib/gl_array_list.c: Likewise.
87839         * lib/gl_array_oset.c: Likewise.
87840         * lib/gl_avltree_list.c: Likewise.
87841         * lib/gl_avltree_oset.c: Likewise.
87842         * lib/gl_avltreehash_list.c: Likewise.
87843         * lib/gl_carray_list.c: Likewise.
87844         * lib/gl_linked_list.c: Likewise.
87845         * lib/gl_linkedhash_list.c: Likewise.
87846         * lib/gl_list.c: Likewise.
87847         * lib/gl_oset.c: Likewise.
87848         * lib/gl_rbtree_list.c: Likewise.
87849         * lib/gl_rbtree_oset.c: Likewise.
87850         * lib/gl_rbtreehash_list.c: Likewise.
87851         * lib/imaxabs.c: Likewise.
87852         * lib/imaxdiv.c: Likewise.
87853         * lib/javacomp.c: Likewise.
87854         * lib/javaexec.c: Likewise.
87855         * lib/javaversion.c: Likewise.
87856         * lib/linebreak.c: Likewise.
87857         * lib/localcharset.c: Likewise.
87858         * lib/lock.c: Likewise.
87859         * lib/mbchar.c: Likewise.
87860         * lib/mbswidth.c: Likewise.
87861         * lib/mkdtemp.c: Likewise.
87862         * lib/pipe.c: Likewise.
87863         * lib/printf-args.c: Likewise.
87864         * lib/printf-parse.c: Likewise.
87865         * lib/progname.c: Likewise.
87866         * lib/progreloc.c: Likewise.
87867         * lib/readlink.c: Likewise.
87868         * lib/sh-quote.c: Likewise.
87869         * lib/stpcpy.c: Likewise.
87870         * lib/stpncpy.c: Likewise.
87871         * lib/strcasecmp.c: Likewise.
87872         * lib/strcasestr.c: Likewise.
87873         * lib/strcspn.c: Likewise.
87874         * lib/striconv.c: Likewise.
87875         * lib/strncasecmp.c: Likewise.
87876         * lib/strnlen1.c: Likewise.
87877         * lib/strstr.c: Likewise.
87878         * lib/strtok_r.c: Likewise.
87879         * lib/tls.c: Likewise.
87880         * lib/tmpdir.c: Likewise.
87881         * lib/unicodeio.c: Likewise.
87882         * lib/unsetenv.c: Likewise.
87883         * lib/vasnprintf.c: Likewise.
87884         * lib/vasprintf.c: Likewise.
87885         * lib/wait-process.c: Likewise.
87886         * lib/xallocsa.c: Likewise.
87887         * lib/xsetenv.c: Likewise.
87888         * lib/xstriconv.c: Likewise.
87890 2006-09-13  Simon Josefsson  <jas@extundo.com>
87892         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
87893         that internally, suggested by Ralf Wildenhues
87894         <Ralf.Wildenhues@gmx.de>.
87896 2006-09-13  Simon Josefsson  <jas@extundo.com>
87898         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
87899         @LIBOBJS@.
87900         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
87902 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
87904         * lib/_fpending.c: Include <config.h> unconditionally, since we no
87905         longer worry about uses that don't define HAVE_CONFIG_H.
87906         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
87907         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
87908         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
87909         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
87910         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
87911         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
87912         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
87913         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
87914         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
87915         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
87916         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
87917         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
87918         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
87919         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
87920         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
87921         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
87922         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
87923         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
87924         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
87925         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
87926         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
87927         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
87928         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
87929         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
87930         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
87931         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
87932         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
87933         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
87934         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
87935         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
87936         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
87937         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
87938         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
87939         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
87940         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
87941         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
87942         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
87943         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
87944         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
87945         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
87946         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
87947         Likewise.
87949 2006-09-13  Eric Blake  <ebb9@byu.net>
87951         * lib/getopt.c: Fix typo in last commit.
87953 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
87955         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
87956         dgettext.
87958 2006-09-12  Jim Meyering  <jim@meyering.net>
87960         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
87961         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
87962         Reported by Nelson H. F. Beebe.
87964 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
87966         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
87967         program_invocation_name and program_invocation_short_name are
87968         initialized.
87969         * lib/argp-namefrob.h: Move declarations of program_invocation_name
87970         and program_invocation_short_name to argp.h, so they are visible
87971         to user programs.
87972         * lib/argp.h: Likewise
87974 2006-09-10  Bruno Haible  <bruno@clisp.org>
87976         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
87977         m4/inttypes_h.m4, m4/uintmax_t.m4.
87979 2006-09-10  Bruno Haible  <bruno@clisp.org>
87981         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
87982         gl_AC_TYPE_UINTMAX_T.
87984 2006-09-10  Bruno Haible  <bruno@clisp.org>
87986         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
87988 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
87990         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
87991         convention.  Text proposed by Bruno Haible.
87992         (struct argp_option): Document the use of N_() wrappers.
87994         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
87995         '\v', and translate the two parts separately, instead of feeding
87996         the whole string to gettext.  This allows to exclude
87997         '\v' from the strings visible to the translator by writing doc
87998         strings as N_("..") "\v" N_("..").
88000 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
88002         * config/srclist.txt: Undo latest change; the bug was fixed.
88004 2006-09-09  Bruno Haible  <bruno@clisp.org>
88006         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
88007         assignments if building a library without libtool.
88008         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
88009         in func_emit_lib_Makefile_am.
88010         (func_import): When building a static library libfoo.a, arrange to
88011         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
88012         (func_create_testdir): Likewise.
88013         * modules/gc (configure.ac, Makefile.am): If building statically,
88014         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
88015         * modules/iconvme (configure.ac, Makefile.am): Likewise.
88016         * modules/striconv (configure.ac, Makefile.am): Likewise.
88017         Based on a suggestion by Ralf Wildenhues.
88019 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
88021         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
88022         Check for unistd.h too, since Autoconf doesn't assume POSIX.
88023         Also:
88025         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
88026         Add year_2050_test to catch glibc bug 2821
88027         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
88029         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
88030         Prefer #ifdef to #if.
88032         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
88033         Return from 'main' instead of calling 'exit'.
88035 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
88037         * lib/mktime.c (guess_time_tm): Fix bug where mktime
88038         returned the maximum time_t value rather than (time_t) -1.
88039         Problem originally reported by William Bardwell
88040         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
88042         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
88043         Moved to here ...
88044         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
88045         ... from here.
88047 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
88049         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
88050         2821 is fixed.
88052 2006-09-08  Jim Meyering  <jim@meyering.net>
88054         Don't make generated files read-only.  That would bother too many
88055         people.  However, do retain the ability to work when targets are
88056         read-only: remove the destination and temporary files before writing
88057         them (when generated via sed or echo), or by using the -f option for
88058         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
88059         * modules/alloca-opt, modules/argz, modules/arpa_inet:
88060         * modules/byteswap, modules/configmake, modules/fcntl:
88061         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
88062         * modules/localcharset, modules/netinet_in, modules/poll:
88063         * modules/stdbool, modules/stdint, modules/sys_select:
88064         * modules/sys_socket, modules/sys_stat, modules/sysexits:
88066 2006-09-08  Jim Meyering  <jim@meyering.net>
88068         Avoid new build failure on FreeBSD 6.0.
88069         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
88070         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
88071         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
88073 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88075         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
88077 2006-09-07  Jim Meyering  <jim@meyering.net>
88079         Fix global typo in last change: use chmod u-w, not chmod u-x.
88080         Spotted by Paul Eggert and Bruce Korb.
88081         * modules/alloca-opt, modules/argz, modules/arpa_inet:
88082         * modules/byteswap, modules/configmake, modules/fcntl:
88083         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
88084         * modules/localcharset, modules/netinet_in, modules/poll:
88085         * modules/stdbool, modules/stdint, modules/sys_select:
88086         * modules/sys_socket, modules/sys_stat, modules/sysexits:
88088 2006-09-06  Jim Meyering  <jim@meyering.net>
88090         Make generated files be read-only.
88091         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
88092         Ensure that each generated file is now read-only.
88093         * modules/argz: Likewise.
88094         * modules/arpa_inet: Likewise.
88095         * modules/byteswap: Likewise.
88096         * modules/configmake: Likewise.
88097         * modules/fcntl: Likewise.
88098         * modules/fnmatch: Likewise.
88099         * modules/getopt: Likewise.
88100         * modules/glob: Likewise.
88101         * modules/inttypes: Likewise.
88102         * modules/netinet_in: Likewise.
88103         * modules/poll: Likewise.
88104         * modules/stdbool: Likewise.
88105         * modules/stdint: Likewise.
88106         * modules/sys_select: Likewise.
88107         * modules/sys_socket: Likewise.
88108         * modules/sys_stat: Likewise.
88109         * modules/sysexits: Likewise.
88110         * modules/localcharset: Same as above, but continue using temporary
88111         file named "t-$@" (why different?) rather than the "$@-t" used
88112         everywhere else.
88114         * modules/sysexits (Makefile.am): Replace literal occurrences
88115         of "sysexit.h" more readable, and more consistent, "$@".
88117 2006-09-06  Bruno Haible  <bruno@clisp.org>
88119         * modules/striconv: New file.
88120         * modules/xstriconv: New file.
88121         * MODULES.html.sh (Internationalization functions): Add striconv,
88122         xstriconv.
88124 2006-09-06  Bruno Haible  <bruno@clisp.org>
88126         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
88127         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
88128         not using libtool correctly.
88130 2006-09-06  Bruno Haible  <bruno@clisp.org>
88132         * lib/striconv.h: New file.
88133         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
88134         iconvstring.c.
88135         * lib/xstriconv.h: New file.
88136         * lib/xstriconv.c: New file.
88138 2006-09-06  Bruno Haible  <bruno@clisp.org>
88140         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
88141         lib_..._LDFLAGS.
88143 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88145         * lib/argz_.h: Sync from Libtool.
88147         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
88148                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
88150         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
88152 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
88154         * modules/trim: New file.
88156 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
88158         * lib/trim.h: New file.
88159         * lib/trim.c: New file.
88161 2006-09-05  Bruno Haible  <bruno@clisp.org>
88163         * MODULES.html.sh (String handling): Add trim.
88165 2006-09-04  Karl Berry  <karl@gnu.org>
88167         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
88168         until next release.
88170 2006-09-03  Bruno Haible  <bruno@clisp.org>
88172         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
88173         correctly.
88175 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
88177         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
88178         not gl_GETLOADAVG.  Omit unneeded semicolons.
88179         Problems reported by Ralf Wildenhues in
88180         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
88181         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
88182         at the end, which is the usual gnulib style.
88184         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
88185         of doing all the work ourselves.
88186         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
88187         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
88189 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
88191         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
88192         Problem reported by Ralf Wildenhues in
88193         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
88195         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
88196         HAVE_STRUCT_STATFS_F_FSTYPENAME.
88198 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
88200         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
88201         yesterday's patch by changing test -n to test -z.
88203 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
88205         * modules/getloadavg (Files): Add m4/getloadavg.m4.
88206         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
88207         the former is now obsolescent.
88209         * modules/chdir-long (Depends-on): Add fcntl.
88211 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
88213         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
88214         obsolescent, and programs should use gnulib instead.
88215         * m4/getloadavg.m4: New file, with contents taken from Autoconf
88216         but with prefixes changed.
88218 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
88220         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
88221         or stdbool.h, because they might not exist while configuring.
88223         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
88224         Don't include unistd.h or limits.h; not needed, since chdir-long.h
88225         does that for us.
88226         (O_DIRECTORY): Remove.
88228 2006-08-31  Eric Blake  <ebb9@byu.net>
88230         * gnulib-tool: Don't let emacs change spaces to TAB.
88232 2006-08-31  Bruno Haible  <bruno@clisp.org>
88234         * gnulib-tool: When calling func_import more than once, do it in a
88235         subshell.
88236         Reported by Eric Blake <ebb9@byu.net>.
88238 2006-08-31  Bruno Haible  <bruno@clisp.org>
88240         * gnulib-tool (nl): Remove variable.
88241         (sed_transform_lib_file): Use more robust test for config-h module.
88242         (func_import): Fix typo in 2006-08-25 patch.
88244 2006-08-31  Bruno Haible  <bruno@clisp.org>
88246         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
88247         specified, augment Makefile.am variables instead of assigning them.
88249 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
88251         Work around a bug in both the Linux and SunOS 64-bit kernels:
88252         nanosleep mishandles sleeps for longer than 2**31 seconds.
88253         Problem reported by Frank v Waveren in
88254         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
88255         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
88256         Check for nanosleep bug.
88257         (LIB_NANOSLEEP): Append clock_gettime library if needed.
88259 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
88261         Work around a bug in both the Linux and SunOS 64-bit kernels:
88262         nanosleep mishandles sleeps for longer than 2**31 seconds.
88263         Problem reported by Frank v Waveren in
88264         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
88265         * lib/nanosleep.c (BILLION): New constant.
88266         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
88267         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
88268         implementation.
88270 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
88272         * modules/nanosleep (Depends-on): Add gettime.
88274 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
88275         and Simon Josefsson  <jas@extundo.com>
88276         and Oskar Liljeblad  <oskar@osk.mine.nu>
88278         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
88279         * gnulib-tool (func_import): New license type 'unmodifiable license
88280         text'.
88281         * modules/fdl: Use it.  Longer description.
88282         * module/gpl, module/lgpl: New files.
88284 2006-08-30  Jim Meyering  <jim@meyering.net>
88286         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
88287         shadowing the parameter.
88289 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88291         Sync from Libtool:
88293         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88295         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
88296         sharing with gnulib.  Report by Eric Blake.
88298 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
88300         * modules/isapipe: New file.
88301         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
88303 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
88305         * modules/configmake (Makefile.am): Add a comment, and omit
88306         the CONFIGMAKE_ prefix from generated macro names.  Suggested
88307         by Bruno Haible.
88309 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
88311         * m4/isapipe.m4: New file.
88313 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
88315         * lib/isapipe.c, lib/isapipe.h: New files.
88317 2006-08-29  Jim Meyering  <jim@meyering.net>
88319         * modules/configmake (Makefile.am): Make configmake.h depend on
88320         Makefile.  Otherwise, a stale configmake.h could hang around.
88322 2006-08-29  Eric Blake  <ebb9@byu.net>
88324         * lib/error.c (error_at_line, print_errno_message): Match libc, after
88325         resolution of upstream bug 3044.
88327 2006-08-29  Bruno Haible  <bruno@clisp.org>
88329         * modules/localcharset (Depends-on): Add configmake.
88330         (Makefile.am): Remove setting of LIBDIR through DEFS.
88332 2006-08-29  Bruno Haible  <bruno@clisp.org>
88334         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
88335         defined.
88337 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
88339         * modules/fcntl: New file.
88340         * modules/chdir-safer (Depends-on): Add fcntl.
88341         * modules/fts: Likewise.
88342         * modules/mkdir-p: Likewise.
88344         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
88345         This undoes the most recent change, since we're now addressing the
88346         problem in a different way.
88348         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
88349         into output, since the output might be called Makefile.am even
88350         if $makefile_name is something different.
88351         (func_import): Use $makefile_am rather than
88352         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
88353         empty.
88355         * modules/inttypes (Files): Add m4/inttypes-h.m4.
88357 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
88359         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
88360         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
88361         recent change to stdint.m4, since we're now addressing the problem in a
88362         different way.
88364 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
88366         * m4/fcntl_h.m4: New file.
88368 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
88370         * lib/fcntl_.h: New file.
88371         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
88372         the fcntl module.
88373         * lib/dirchownmod.c: Likewise.
88374         * lib/fts.c: Likewise.
88376         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
88377         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
88378         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
88379         just before including <inttypes.h>, to avoid circular inclusion.
88381 2006-08-28  Jim Meyering  <jim@meyering.net>
88383         * doc/visibility.texi: Actually read and correct the grammar of the
88384         sentence affected by yesterday's change.
88386 2006-08-28  Eric Blake  <ebb9@byu.net>
88388         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
88389         needs wrapper.
88391 2006-08-28  Eric Blake  <ebb9@byu.net>
88393         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
88395 2006-08-28  Eric Blake  <ebb9@byu.net>
88397         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
88399 2006-08-28  Bruno Haible  <bruno@clisp.org>
88401         * modules/c-strstr: New file, from GNU gettext.
88402         * MODULES.html.sh (String handling): Add c-strstr.
88404 2006-08-28  Bruno Haible  <bruno@clisp.org>
88406         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
88407         macros.
88408         Reported by Eric Blake.
88410 2006-08-28  Bruno Haible  <bruno@clisp.org>
88412         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
88413         (VASNPRINTF): Return a string of length > INT_MAX without failing.
88414         * lib/vasprintf.c: Include errno.h, limits.h.
88415         (EOVERFLOW): New fallback definition.
88416         (vasprintf): Test here whether the string length is > INT_MAX.
88417         * lib/vsnprintf.c: Include errno.h, limits.h.
88418         (EOVERFLOW): New fallback definition.
88419         (vsnprintf): Fix bug when generated string was too long for the buffer.
88420         Test here whether the string length is > INT_MAX.
88422 2006-08-28  Bruno Haible  <bruno@clisp.org>
88424         * lib/inttypes_.h (SCNX*): Remove definitions.
88425         Reported by Eric Blake.
88427 2006-08-28  Bruno Haible  <bruno@clisp.org>
88429         * lib/c-strstr.h: New file, from GNU gettext.
88430         * lib/c-strstr.c: New file, from GNU gettext.
88432 2006-08-28  Bruno Haible  <bruno@clisp.org>
88434         * gnulib-tool: Reorder some statements.
88436 2006-08-28  Bruno Haible  <bruno@clisp.org>
88438         * gnulib-tool: New option --makefile-name.
88439         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
88440         $makefile_name.
88441         (func_import): Write $makefile_name to the cache file, and read it from
88442         there unless explicitly specified. Use $makefile_name as file name
88443         instead of Makefile.am. Adjust the recommendations accordingly.
88445 2006-08-28  Bruno Haible  <bruno@clisp.org>
88447         * gnulib-tool (func_verify_module): Check against misapplying patch.
88449 2006-08-28  Bruno Haible  <bruno@clisp.org>
88451         * gnulib-tool (func_relativize, func_relconcat): New functions.
88452         Give an error if --local-dir is given with --update.
88453         Remove trailing slashes from $local_gnulib_dir.
88454         (func_import): Store the relativized $local_gnulib_dir in
88455         gnulib-cache.m4, and read it from there if not specified explicitly.
88457 2006-08-28  Bruno Haible  <bruno@clisp.org>
88459         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
88460         is the current directory. Respect also $local_gnulib_dir.
88462 2006-08-28  Bruno Haible  <bruno@clisp.org>
88463             Simon Josefsson  <jas@extundo.com>
88465         BeOS portability.
88466         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
88468 2006-08-27  Jim Meyering  <jim@meyering.net>
88470         * doc/visibility.texi: Remove duplicate word: "pointer".
88472 2006-08-26  Bruno Haible  <bruno@clisp.org>
88474         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
88475         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
88476         (Makefile.am): Create inttypes.h from inttypes_.h.
88477         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
88479         * modules/imaxabs: New file.
88481         * modules/imaxdiv: New file.
88483 2006-08-26  Bruno Haible  <bruno@clisp.org>
88485         * m4/inttypes.m4: New file.
88486         * m4/_inttypes_h.m4: Remove file.
88487         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
88488         PRI_MACROS_BROKEN.
88489         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
88491         * m4/imaxabs.m4: New file.
88493         * m4/imaxdiv.m4: New file.
88495 2006-08-26  Bruno Haible  <bruno@clisp.org>
88497         * lib/inttypes_.h: New file.
88498         * lib/inttypes.h: Remove file.
88499         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
88501         * lib/imaxabs.c: New file.
88503         * lib/imaxdiv.c: New file.
88505 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
88507         New config-h module, so that "make" output needn't be cluttered
88508         by -DHAVE_CONFIG_H.
88509         * MODULES.html.sh (Support for building libraries and executables):
88510         Add config-h.
88511         * modules/config-h: New file.
88512         * gnulib-tool (nl, sed_transform_lib_file): New vars.
88513         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
88514         the config-h module is used.
88516         New configmake module, so that "make" output needn't be cluttered
88517         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
88518         * MODULES.html.sh (Support for building libraries and executables):
88519         Add configmake.
88520         * modules/configmake: New file.
88522 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
88524         * m4/config-h.m4: New file.
88526 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
88528         * config/srclist.txt: Add elisp-comp.
88530 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
88532         * MODULES.html.sh (Support for building libraries and executables):
88533         Add elisp-comp.
88534         * build-aux/elisp-comp: New file.
88535         * modules/elisp-comp: New file.
88537 2006-08-24  Bruno Haible  <bruno@clisp.org>
88539         * gnulib-tool (func_create_testdir): Use non-default values of
88540         sourcebase and m4base.
88542 2006-08-24  Bruno Haible  <bruno@clisp.org>
88544         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
88545         HTML structure.
88547 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
88549         * modules/openat (Depends-on): Add lchown.
88551 2006-08-23  Bruno Haible  <bruno@clisp.org>
88553         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
88554         of gl_LOCK_EARLY instead of gl_LOCK.
88556 2006-08-23  Bruno Haible  <bruno@clisp.org>
88558         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
88559         on OSF/1 to no.
88560         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
88562 2006-08-23  Bruno Haible  <bruno@clisp.org>
88564         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
88565         as unusable.
88567         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
88568         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
88569         (gl_LOCK): New macro.
88571 2006-08-22  Simon Josefsson  <jas@extundo.com>
88573         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
88574         to md5 module.
88576 2006-08-22  Simon Josefsson  <jas@extundo.com>
88578         * MODULES.html.sh: Add "Support for maintaining and release
88579         projects".
88581         * build-aux/gnupload: New file, from coreutils.
88583 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
88585         Avoid the need for AC_LIBSOURCES in m4 macros.
88586         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
88587         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
88588         * modules/check-version (EXTRA_DIST): Add check-version.h.
88589         * modules/crc (EXTRA_DIST): Add crc.h.
88590         * modules/des (EXTRA_DIST): Add des.h.
88591         * modules/gc (EXTRA_DIST): Add gc.h.
88592         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
88593         * modules/getline (EXTRA_DIST): Add getline.h.
88594         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
88595         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
88596         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
88597         * modules/md2 (EXTRA_DIST): Add md2.h.
88598         * modules/md4 (EXTRA_DIST): Add md4.h.
88599         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
88600         * modules/read-file (EXTRA_DIST): Add read-file.h.
88601         * modules/readline (EXTRA_DIST): Add readline.h.
88602         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
88603         rijndael-api-fst.h.
88605 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
88607         * m4/rijndael.m4 (gl_ARCFOUR):
88608         * m4/arctwo.m4 (gl_ARCTWO):
88609         * m4/check-version.m4 (gl_CHECK_VERSION):
88610         * m4/crc.m4 (gl_CRC):
88611         * m4/des.m4 (gl_DES):
88612         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
88613         * m4/gc.m4 (gl_GC):
88614         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
88615         * m4/getline.m4 (gl_FUNC_GETLINE):
88616         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
88617         * m4/hmac-md5.m4 (gl_HMAC_MD5):
88618         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
88619         * m4/md2.m4 (gl_MD2):
88620         * m4/md4.m4 (gl_MD4):
88621         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
88622         * m4/read-file.m4 (gl_FUNC_READ_FILE):
88623         * m4/readline.m4 (gl_FUNC_READLINE):
88624         * m4/rijndael.m4 (gl_RIJNDAEL):
88625         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
88626         to get the necessary .h files and whatnot.
88628 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
88630         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
88631         gnulib rather than the other way around.
88632         * config/srclistvars.sh (COREUTILS): Remove.
88634 2006-08-22  Jim Meyering  <jim@meyering.net>
88636         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
88638         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
88640 2006-08-22  Eric Blake  <ebb9@byu.net>
88642         * modules/regexprops-generic: New file.
88643         * MODULES.html.sh (Support for building documentation): List it.
88645 2006-08-22  Eric Blake  <ebb9@byu.net>
88647         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
88648         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
88649         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
88650         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
88652 2006-08-22  Bruno Haible  <bruno@clisp.org>
88654         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
88655         and lib_LTLIBRARIES like the other lib_* variables.
88657 2006-08-22  Bruno Haible  <bruno@clisp.org>
88659         * build-aux/x-to-1.in: New file, from GNU gettext.
88661 2006-08-22  Bruno Haible  <bruno@clisp.org>
88663         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
88664         <utmpx.h> exists.
88666 2006-08-22  Bruno Haible  <bruno@clisp.org>
88668         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
88669         <utmpx.h> exists.
88671 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
88673         BeOS portability.
88674         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
88675         exist.
88676         Problem reported by Bruno Haible.
88678 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
88680         Avoid the need for AC_LIBSOURCES in m4 macros.
88681         * modules/acl (EXTRA_DIST): Add acl.h.
88682         * modules/argmatch (Files): Add m4/argmatch.m4.
88683         (configure.ac): Add gl_ARGMATCH.
88684         (EXTRA_DIST): Renamed from lib_SOURCES, for
88685         consistency with the other modules.  Remove argmatch.c.
88686         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
88687         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
88688         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
88689         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
88690         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
88691         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
88692         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
88693         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
88694         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
88695         * modules/closeout (EXTRA_DIST): Add closeout.h.
88696         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
88697         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
88698         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
88699         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
88700         dirname.h; remove basename.c and stripslash.c.
88701         * modules/exclude (EXTRA_DIST): Add exclude.h.
88702         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
88703         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
88704         * modules/file-type (EXTRA_DIST): Add file-type.h.
88705         * modules/filemode (EXTRA_DIST): Add filemode.h.
88706         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
88707         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
88708         * modules/fpending (EXTRA_DIST): Add __fpending.h.
88709         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
88710         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
88711         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
88712         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
88713         * modules/getdate (EXTRA_DIST): Add getdate.c.
88714         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
88715         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
88716         * modules/getpass (EXTRA_DIST): Add getpass.h.
88717         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
88718         * modules/group-member (EXTRA_DIST): Add group-member.h.
88719         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
88720         * modules/hash (EXTRA_DIST): Add hash.h.
88721         * modules/human (EXTRA_DIST): Add human.h.
88722         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
88723         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
88724         * modules/lchown (EXTRA_DIST): Add lchown.h.
88725         * modules/long-options (EXTRA_DIST): Add long-options.h.
88726         * modules/lstat (EXTRA_DIST): Add lstat.h.
88727         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
88728         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
88729         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
88730         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
88731         * modules/memxor (EXTRA_DIST): Add memxor.h.
88732         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
88733         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
88734         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
88735         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
88736         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
88737         * modules/physmem (EXTRA_DIST): Add physmem.h.
88738         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
88739         * modules/posixver (EXTRA_DIST): Add posixver.h.
88740         * modules/quote (EXTRA_DIST): Add quote.h.
88741         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
88742         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
88743         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
88744         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
88745         regex_internal.h regexec.c.
88746         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
88747         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
88748         * modules/same (EXTRA_DIST): Add same.h.
88749         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
88750         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
88751         * modules/savedir (EXTRA_DIST): Add savedir.h.
88752         * modules/sha1 (EXTRA_DIST): Add sha1.h.
88753         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
88754         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
88755         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
88756         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
88757         * modules/strdup (EXTRA_DIST): Add strdup.h.
88758         * modules/strftime (EXTRA_DIST): Add strftime.h.
88759         * modules/strndup (EXTRA_DIST): Add strndup.h.
88760         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
88761         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
88762         * modules/time_r (EXTRA_DIST): Add time_r.h.
88763         * modules/timespec (EXTRA_DIST): Add timespec.h.
88764         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
88765         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
88766         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
88767         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
88768         * modules/userspec (EXTRA_DIST): Add userspec.h.
88769         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
88770         * modules/utimens (EXTRA_DIST): Add utimens.h.
88771         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
88772         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
88773         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
88774         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
88775         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
88776         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
88777         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
88778         * modules/yesno (EXTRA_DIST): Add yesno.h.
88780 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
88782         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
88784         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
88785         * m4/dev-ino.m4, same-inode.m4: Remove.
88787         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
88788         * m4/acl.m4 (AC_FUNC_ACL):
88789         * m4/backupfile.m4 (gl_BACKUPFILE):
88790         * m4/c-strtod.m4 (gl_C99_STRTOLD):
88791         * m4/canon-host.m4 (gl_CANON_HOST):
88792         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
88793         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
88794         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
88795         * m4/cloexec.m4 (gl_CLOEXEC):
88796         * m4/close-stream.m4 (gl_CLOSE_STREAM):
88797         * m4/closeout.m4 (gl_CLOSEOUT):
88798         * m4/dirfd.m4 (gl_FUNC_DIRFD):
88799         * m4/dirname.m4 (gl_DIRNAME):
88800         * m4/exclude.m4 (gl_EXCLUDE):
88801         * m4/exitfail.m4 (gl_EXITFAIL):
88802         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
88803         * m4/file-type.m4 (gl_FILE_TYPE):
88804         * m4/filemode.m4 (gl_FILEMODE):
88805         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
88806         * m4/fpending.m4 (gl_FUNC_FPENDING):
88807         * m4/fprintftime.m4 (gl_FPRINTFTIME):
88808         * m4/fts.m4 (gl_FUNC_FTS):
88809         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
88810         * m4/getdate.m4 (gl_GETDATE):
88811         * m4/gethrxtime.m4 (gl_GETHRXTIME):
88812         * m4/getpagesize.m4 (gl_GETPAGESIZE):
88813         * m4/getpass.m4 (gl_FUNC_GETPASS):
88814         * m4/gettime.m4 (gl_GETTIME):
88815         * m4/getugroups.m4 (gl_GETUGROUPS):
88816         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
88817         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
88818         * m4/hard-locale.m4 (gl_HARD_LOCALE):
88819         * m4/hash.m4 (gl_HASH):
88820         * m4/idcache.m4 (gl_IDCACHE):
88821         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
88822         * m4/lchown.m4 (gl_FUNC_LCHOWN):
88823         * m4/long-options.m4 (gl_LONG_OPTIONS):
88824         * m4/lstat.m4 (gl_FUNC_LSTAT):
88825         * m4/md5.m4 (gl_MD5):
88826         * m4/memcasecmp.m4 (gl_MEMCASECMP):
88827         * m4/memcoll.m4 (gl_MEMCOLL):
88828         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
88829         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
88830         * m4/memxor.m4 (gl_MEMXOR):
88831         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
88832         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
88833         * m4/modechange.m4 (gl_MODECHANGE):
88834         * m4/mountlist.m4 (gl_MOUNTLIST):
88835         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
88836         * m4/openat.m4 (gl_FUNC_OPENAT):
88837         * m4/pathmax.m4 (gl_PATHMAX):
88838         * m4/physmem.m4 (gl_PHYSMEM):
88839         * m4/posixtm.m4 (gl_POSIXTM):
88840         * m4/posixver.m4 (gl_POSIXVER):
88841         * m4/quote.m4 (gl_QUOTE):
88842         * m4/quotearg.m4 (gl_QUOTEARG):
88843         * m4/readtokens.m4 (gl_READTOKENS):
88844         * m4/readutmp.m4 (gl_READUTMP):
88845         * m4/regex.m4 (gl_REGEX):
88846         * m4/safe-read.m4 (gl_SAFE_READ):
88847         * m4/safe-write.m4 (gl_SAFE_WRITE):
88848         * m4/same.m4 (gl_SAME):
88849         * m4/save-cwd.m4 (gl_SAVE_CWD):
88850         * m4/savedir.m4 (gl_SAVEDIR):
88851         * m4/settime.m4 (gl_SETTIME):
88852         * m4/sha1.m4 (gl_SHA1):
88853         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
88854         * m4/stat-macros.m4 (gl_STAT_MACROS):
88855         * m4/stat-time.m4 (gl_STAT_TIME):
88856         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
88857         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
88858         * m4/strdup.m4 (gl_FUNC_STRDUP):
88859         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
88860         * m4/strndup.m4 (gl_FUNC_STRNDUP):
88861         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
88862         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
88863         * m4/time_r.m4 (gl_TIME_R):
88864         * m4/timespec.m4 (gl_TIMESPEC):
88865         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
88866         * m4/unlinkdir.m4 (gl_UNLINKDIR):
88867         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
88868         * m4/userspec.m4 (gl_USERSPEC):
88869         * m4/utimecmp.m4 (gl_UTIMECMP):
88870         * m4/utimens.m4 (gl_UTIMENS):
88871         * m4/xalloc.m4 (gl_XALLOC):
88872         * m4/xgetcwd.m4 (gl_XGETCWD):
88873         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
88874         * m4/xreadlink.m4 (gl_XREADLINK):
88875         * m4/xstrtod.m4 (gl_XSTRTOD):
88876         * m4/yesno.m4 (gl_YESNO):
88877         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
88878         to get the necessary .h files and whatnot.
88880 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
88881             Bruno Haible  <bruno@clisp.org>
88883         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
88884         /bin/sh understanding of '!' conditional negation.
88886 2006-08-21  Jim Meyering  <jim@meyering.net>
88888         * modules/openat (Depends-on): Really alphabetize.
88890         * modules/acl (Depends-on): Add error and quote.
88892         * check-module (find_included_lib_files): Add at-func.c to the
88893         ok-to-include-more-than-once white list.
88895         * modules/openat (Depends-on): Add lstat.  Alphabetize.
88897 2006-08-21  Bruno Haible  <bruno@clisp.org>
88899         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
88900         Emit a pkgdata_DATA variable only if some snippets add contents to it.
88901         Reported by Martin Lambers <marlam@marlam.de>.
88903 2006-08-21  Bruno Haible  <bruno@clisp.org>
88905         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
88906         specify an installation location, don't emit a noinst_LIBRARIES or
88907         noinst_LTLIBRARIES assignment.
88909 2006-08-21  Bruno Haible  <bruno@clisp.org>
88911         BeOS portability.
88912         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
88913         BeOS has mbrtowc() but no <wctype.h>.
88915 2006-08-21  Bruno Haible  <bruno@clisp.org>
88917         BeOS portability.
88918         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
88919         exist.
88921 2006-08-21  Bruno Haible  <bruno@clisp.org>
88923         BeOS portability.
88924         * lib/mbchar.h: Include <wctype.h> only if it exists.
88926 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
88928         Remove files that are no longer needed by their respective modules.
88929         * m4/obstack.m4: Remove.
88930         * m4/strerror_r.m4: Remove.
88931         * m4/uint32_t.m4: Remove.
88932         * m4/uintptr_t.m4: Remove.
88933         * m4/ullong_max.m4: Remove.
88934         * m4/xstrtoimax.m4: Remove.
88935         * m4/xstrtoumax.m4: Remove.
88937         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
88938         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
88939         dependencies now capture this.
88941         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
88942         Do not use AC_LIBSOURCES, since gnulib modules now do this.
88943         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
88944         * m4/human.m4 (gl_HUMAN): Likewise.
88945         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
88946         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
88948         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
88950         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
88951         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
88952         stdint.
88953         * m4/human.m4 (gl_HUMAN): Likewise.
88954         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
88955         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
88956         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
88957         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
88958         * m4/xstrtol (gl_XSTRTOL): Likewise.
88960         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
88961         AC_TYPE_LONG_LONG_INT.
88962         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
88963         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
88964         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
88965         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
88967         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
88968         on stdbool.
88970         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
88971         (gl_PREREQ_XSTRTOUL): Remove.
88973         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
88975         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
88976         mode.
88978 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
88980         Add and change modules to make it easier for coreutils to use
88981         gnulib-tool.
88982         * modules/backupfile (Files): Remove m4/d-ino.m4.
88983         (Depends-on): Add d-ino.
88984         * modules/cycle-check (Depends-on): Add stdint.
88985         (lib_SOURCES): Add cycle-check.h.
88986         * modules/d-ino: New module.
88987         * modules/d-type: New module.
88988         * modules/error (Files): Remove m4/strerror_r.m4.
88989         * modules/filemode (Files): Add m4/st_dm_mode.m4.
88990         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
88991         m4/inttypes_h.m4, m4/uintmax_t.m4.
88992         (Depends-on): Add stdint.
88993         (lib_SOURCES): Add fsusage.h.
88994         * modules/getcwd (Files): Remove d-ino.m4.
88995         (Depends-on): Add d-ino.
88996         * modules/getndelim2 (Depends-on): Add stdint.
88997         * modules/glob (Files): Remove m4/d-type.m4.
88998         (Depends-on): Add d-type.
88999         * modules/host-os: New module.
89000         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
89001         m4/inttypes_h.m4, m4/uintmax_t.m4.
89002         * Depends-on: Add stdint.
89003         (lib_SOURCES): Add human.h.
89004         * modules/inttostr (Files): Remove m4/intmax_t.m4,
89005         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
89006         m4/uintmax_t.m4, m4/ulonglong.m4.
89007         (Depends-on): Add stdint.
89008         (EXTRA_DIST): Add inttostr.h.
89009         * modules/lchmod: New module.
89010         * modules/link-follow: New module.
89011         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
89012         (Depends-on): Add lchmod.
89013         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
89014         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
89015         (Depends-on): Add stdint.
89016         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
89017         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
89018         (Depends-on): Add stdint.
89019         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
89020         * modules/perl: New module.
89021         * modules/regex (Depends-on): Add stdint.
89022         * modules/rmdir-errno: New module.
89023         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
89024         m4/intmax_t.m4.
89025         (Depends-on): Add stdint.
89026         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
89027         m4/uintmax_t.m4.
89028         (Depends-on): Add stdint.
89029         * modules/unlink-busy: New module.
89030         * modules/utimecmp (Depends-on): Add stdint.
89031         * modules/uptime: New module.
89032         * modules/winsz-ioctl: New module.
89033         * modules/winsz-termios: New module.
89034         * modules/xnanosleep (Depends-on): Add nanosleep.
89035         * modules/ullong_max: Remove.
89036         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
89037         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
89038         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
89039         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
89040         (Depends-on): Add inttypes.
89041         (lib_SOURCES): Add xstrtol.h.
89042         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
89043         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
89044         * MODULES.html.sh: Move 'assert' into the assert section.
89045         Move 'dummy' into the linking section.
89046         Remove ullong_max.
89047         Add section for compatibility checks for POSIX:2001 functions,
89048         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
89049         winsz-ioctl, and winsz-termios into it.
89050         Add lchmod.
89051         Add top-level Misc section and put host-os, perl, and uptime
89052         into it.
89054 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
89056         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
89057         now assume the stdint module.  Do not include inttypes.h.
89058         * lib/fsusage.h: Likewise.
89059         * lib/getndelim2.c: Likewise.
89060         * lib/human.h: Likewise.
89061         * lib/inttostr.h: Likewise.
89062         * lib/obstack.c: Likewise.
89063         * lib/regex_internal.h: Likewise.
89064         * lib/tempname.c: Likewise.
89065         * lib/utimecmp.c: Likewise.
89066         * lib/xstrtol.h: Likewise.
89068         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
89070         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
89071         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
89072         * lib/xtime.h: Likewise.
89074 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89076         * modules/openat (Files): Add lib/fchmodat.c.
89077         Fixes problem reported by Jay Youngman.
89079 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89081         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
89082         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
89084 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
89085             Bruno Haible  <bruno@clisp.org>
89087         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
89088         and is a script that invokes bison. Tighten the code. Add comments.
89090 2006-08-18  Jim Meyering  <jim@meyering.net>
89092         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
89093         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
89094         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
89095         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
89097 2006-08-18  Bruno Haible  <bruno@clisp.org>
89099         * modules/bison-i18n: New file.
89100         * MODULES.html.sh (Internationalization functions): Add it.
89102 2006-08-18  Bruno Haible  <bruno@clisp.org>
89104         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
89105         sys/statvfs.h. When getmntinfo was found, check its declaration and
89106         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
89108 2006-08-18  Bruno Haible  <bruno@clisp.org>
89110         * m4/bison-i18n.m4: New file, from bison.
89112 2006-08-18  Bruno Haible  <bruno@clisp.org>
89114         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
89115         (ME_DUMMY): Treat "kernfs" as a dummy.
89116         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
89118 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
89120         Update from coreutils.
89122         2006-08-15  Jim Meyering  <jim@meyering.net>
89124         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
89126         2006-01-17  Jim Meyering  <jim@meyering.net>
89128         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
89130         2006-01-11  Jim Meyering  <jim@meyering.net>
89132         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
89133         Check for the lchmod function.
89135 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
89137         Update from coreutils.
89139         * lib/__fpending.h: Add copyright notice.
89140         * lib/fprintftime.h: Likewise.
89141         * lib/savedir.c: Use (C) in copyright notice.
89142         * lib/savedir.h: Likewise.
89144         2006-08-15  Jim Meyering  <jim@meyering.net>
89146         * lib/at-func.c: New file, with the logic of all emulated at-functions.
89147         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
89148         in support of the EXPECTED_ERRNO macro.
89149         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
89150         definitions.  Instead, define the appropriate symbols and include
89151         "at-func.c".
89152         * lib/mkdirat.c (mkdirat): Likewise.
89153         * lib/fchmodat.c (fchmodat): Likewise.
89154         (ENOSYS): Remove definition.
89155         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
89156         it.  Don't include "unistd--.h" -- it wasn't ever used.
89158         2006-01-17  Jim Meyering  <jim@meyering.net>
89160         Rewrite fts.c not to change the current working directory,
89161         by using openat, fstatat, fdopendir, etc..
89163         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
89164         (HAVE_OPENAT_SUPPORT): Define.
89165         [_LIBC] (fchdir): Don't undef or define; no longer used.
89166         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
89167         Now, this `function' always succeeds, and consumes its file descriptor
89168         parameter -- so callers must not close such FDs.  Update callers.
89169         (diropen_fd, opendirat, cwd_advance_fd): New functions.
89170         (diropen): Add parameter, SP.  Adjust all callers.
89171         Implement using diropen_fd, rather than open.
89172         (fts_open): Initialize new member, fts_cwd_fd.
89173         Remove fts_rft-setting code.
89174         (fts_close): Close fts_cwd_fd, if necessary.
89175         (__opendir2): Define in terms of opendir or opendirat,
89176         depending on whether the FST_NOCHDIR flag is set.
89177         (fts_build): Since fts_safe_changedir consumes its FD, and since
89178         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
89179         and close the dup'd file descriptor upon failure.
89180         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
89181         (fts_safe_changedir): Tweak semantics to reflect that this function
89182         now calls cwd_advance_fd and hence consumes its FD argument.
89183         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
89184         [struct FTS] (fts_rft): Remove now-unused member.
89185         [struct FTS] (fts_cycle.state): Improve comment.
89187         * lib/openat.c (openat_needs_fchdir): New function.
89188         * lib/openat.h (openat_needs_fchdir): Declare it.
89190 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
89192         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
89193         Problem and fix reported by Pádraig Brady in
89194         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
89196 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
89198         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
89200 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
89202         * lib/memcoll.c (memcoll): Optimize for the common case where the
89203         arguments are bytewise equal.
89205 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
89207         * doc/regexprops-generic.texi: Add a copyright notice.
89209 2006-08-15  Bruno Haible  <bruno@clisp.org>
89211         * modules/tmpdir (License): Change to LGPL.
89213 2006-08-15  Bruno Haible  <bruno@clisp.org>
89215         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
89216         module.
89218 2006-08-14  Simon Josefsson  <jas@extundo.com>
89220         * config/srclist.txt: Add gnupload.
89222 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
89224         Change copyright notice from LGPL 2 to GPL 2, since that's the
89225         standard form used in the gnulib repository.
89226         * tests/test-lock.c: Likewise.
89227         * tests/test-stdint.c: Likewise.
89228         * tests/test-tls.c: Likewise.
89230         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
89231         prelude-manager.  User shorter URLs for GNU projects, without '?'.
89232         Add copyright notice.
89234         * check-module: Add copyright notice.  Output a copyright
89235         notice if "--version" is specified.
89236         * modules/COPYING: New file.
89237         * tests/test-getaddrinfo.c: Add copyright notice.
89238         * tests/test-verify.c: Likewise.
89240 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
89242         Change copyright notice from LGPL 2 to GPL 2, since that's the
89243         standard form used in the gnulib repository.
89244         * lib/lock.c: LGPL -> GPL.
89245         * lib/lock.h: Likewise.
89246         * lib/strnlen1.c: Likewise.
89247         * lib/strnlen1.h: Likewise.
89248         * lib/tls.c: Likewise.
89249         * lib/tls.h: Likewise.
89250         * lib/tmpdir.c: Likewise.
89252         * lib/TODO: Remove; this belongs only in coreutils.
89254 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
89256         Add copyright notices to long-enough files that lack them, since
89257         otherwise the files aren't clearly free.  Use the same notice that
89258         getdate.texi already uses.
89259         * doc/alloca-opt.texi: Add copyright notice.
89260         * doc/alloca.texi: Likewise.
89261         * doc/ctime.texi: Likewise.
89262         * doc/functions.texi: Likewise.
89263         * doc/gcd.texi: Likewise.
89264         * doc/gnulib-tool.texi: Likewise.
89265         * doc/inet_ntoa.texi: Likewise.
89266         * doc/visibility.texi: Likewise.
89268         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
89269         * doc/quote.texi: Add copyright notice.
89271         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
89272         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
89273         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
89274         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
89275         is now obsolete, and give a pointer to the Sun list.
89276         Add copyright notice.
89278 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
89280         * config/srclistvars.sh: Add copyright notice.
89282 2006-08-14  Eric Blake  <ebb9@byu.net>
89284         Import the following change from libc:
89286         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
89288         Upstream bug 2997.
89289         * lib/misc/error.c: Add space between program name and message if file
89290         name is missing.
89292 2006-08-12  Karl Berry  <karl@gnu.org>
89294         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
89295         remove, these originate in gnulib now.
89297 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89299         * doc/Makefile (standards.info standards.html standards.dvi):
89300         Also depend on make-stds.texi.
89302 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89304         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
89305         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
89307         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
89308         in wchar_t.  Problem reported by Eric Blake.
89310         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
89311         LEN is smaller than SIZE.  Suggested by Bruno Haible.
89312         Also, help the compiler to keep LEN in a register.
89314 2006-08-11  Eric Blake  <ebb9@byu.net>
89316         * users.txt: Sort.  Add tar.
89318 2006-08-11  Bruno Haible  <bruno@clisp.org>
89320         * users.txt: New file.
89322 2006-08-11  Bruno Haible  <bruno@clisp.org>
89324         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
89325         before <wchar.h>. Needed for OSF/1 and BSD/OS.
89327 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
89329         * modules/snprintf (Depends-on): Remove minmax.
89330         (Maintainer): Add self and Bruno.
89332 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
89334         * lib/.cppi-disable: Add snprintf.h, socket_.h.
89335         * lib/snprintf.c: Include <errno.h> and <limits.h>.
89336         (EOVERFLOW): Define if the system does not.
89337         Do not include "minmax.h"; it wasn't used.
89338         (snprintf): Don't assume size_t promotes to an unsigned type.
89339         Fix bug when generated string was too long for the buffer: the
89340         buffer's contents are supposed to be the initial prefix of the
89341         output.  Don't assume vasnprintf returns EOVERFLOW if the size
89342         exceeds INT_MAX; do the check ourselves.
89344         Import the following changes from libc:
89346         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
89348         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
89349         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
89350         set wc to the byte which couldn't be converted.
89351         (re_string_reconstruct): Don't clear valid_raw_len before calling
89352         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
89353         tip_context using re_string_context_at.
89355         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
89357         * lib/posix/regex.h: g++ still cannot handled [restrict].
89359         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
89361         * lib/posix/regex.h: Remove special handling for VMS.
89363 2006-08-10  Jim Meyering  <jim@meyering.net>
89365         * modules/same-inode: New module.
89366         * modules/dev-ino: New module.
89367         * modules/cycle-check: Depend on these modules, rather than simply
89368         including their .h files.
89369         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
89370         required via m4/cycle-check.m4.
89371         * modules/same: Depend on new same-inode module, rather than
89372         including same-inode.h.
89373         * modules/chdir-safer: New file.
89375         * modules/chown (Depends-on): Add stat-macros.
89377 2006-08-10  Jim Meyering  <jim@meyering.net>
89379         * m4/cycle-check.m4: New file.
89380         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
89381         * m4/dev-ino.m4, m4/same-inode.m4: New files.
89383 2006-08-10  Eric Blake  <ebb9@byu.net>
89385         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
89386         in from original proposal.
89388 2006-08-10  Eric Blake  <ebb9@byu.net>
89389         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
89391         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
89392         namespace.
89394 2006-08-10  Bruno Haible  <bruno@clisp.org>
89396         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
89397         as well.
89399 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89401         Sync from coreutils.
89403         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
89405         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
89406         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
89408 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89410         * modules/restrict: Remove; no longer needed now that we assume
89411         Autoconf 2.59 or later.
89412         * MODULES.html.sh: Remove 'restrict'.
89413         * modules/argp (Depends-on): Remove 'restrict'.
89414         * modules/base64 (Depends-on): Likewise.
89415         * modules/gc (Depends-on): Likewise.
89416         * modules/getaddrinfo (Depends-on): Likewise.
89417         * modules/glob (Depends-on): Likewise.
89418         * modules/inet_ntop (Depends-on): Likewise.
89419         * modules/inet_pton (Depends-on): Likewise.
89420         * modules/memxor (Depends-on): Likewise.
89421         * modules/regex (Depends-on): Likewise.
89422         * modules/strtok_r (Depends-on): Likewise.
89423         * modules/time_r (Depends-on): Likewise.
89425 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89427         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
89428         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
89429         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
89430         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
89431         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
89432         * m4/memxor.m4 (gl_MEMXOR): Likewise.
89433         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
89434         gl_C_RESTRICT replaced by AC_C_RESTRICT.
89436         Merge from coreutils.
89437         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
89438         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
89439         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
89440         * m4/time_r.m4 (gl_TIME_R): Likewise.
89442 2006-08-09  Karl Berry  <karl@gnu.org>
89444         * config/srclist.txt: no more gettext-tools, per Bruno.
89446 2006-08-08  Eric Blake  <ebb9@byu.net>
89448         * modules/verror: New module.
89449         * MODULES.html.sh: Document it.
89451 2006-08-08  Eric Blake  <ebb9@byu.net>
89453         * lib/verror.h, lib/verror.c: New files.
89455 2006-08-08  Eric Blake  <ebb9@byu.net>
89457         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
89458         verror_at_line output complies with GNU Coding Standards even when
89459         file is NULL.
89461 2006-08-07  Bruno Haible  <bruno@clisp.org>
89463         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
89464         versions of AIX.
89465         Reported by Ralf Wildenhues.
89467 2006-08-07  Bruno Haible  <bruno@clisp.org>
89469         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
89470         in an AC_DEFUN. Needed so that the autoconf snippets can use
89471         AC_REQUIRE.
89473 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89475         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
89476         Initialize pkgdata_DATA.
89477         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
89478         overriding it.
89480 2006-08-06  Eric Blake  <ebb9@byu.net>
89482         * lib/error.h: Fold in some upstream changes from glibc.
89483         * lib/error.c: Likewise.
89485 2006-08-04  Bruno Haible  <bruno@clisp.org>
89487         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
89488         Make the mostlyclean-local rule depend on mostlyclean-generic.
89489         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
89491 2006-07-31  Bruno Haible  <bruno@clisp.org>
89493         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
89494         <stdlib.h>, <string.h>.
89496 2006-07-30  Bruno Haible  <bruno@clisp.org>
89498         * modules/readlink (License): Change to LGPL.
89500 2006-07-30  Bruno Haible  <bruno@clisp.org>
89502         * modules/javaversion (Makefile.am): Distribute javaversion.java and
89503         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
89504         set PKGDATADIR to point to it.
89506 2006-07-30  Bruno Haible  <bruno@clisp.org>
89508         * modules/csharpexec (configure.ac): Comment out macro invocation.
89509         * modules/javaexec (configure.ac): Likewise.
89510         * modules/javacomp-script (configure.ac): Likewise.
89512         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
89514 2006-07-30  Bruno Haible  <bruno@clisp.org>
89516         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
89517         linked-list.
89519 2006-07-30  Bruno Haible  <bruno@clisp.org>
89521         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
89523 2006-07-30  Bruno Haible  <bruno@clisp.org>
89525         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
89526         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
89527         get removed.
89529 2006-07-29  Bruno Haible  <bruno@clisp.org>
89531         Make it possible for gnulib-tool to work with locally modified or
89532         augmented gnulib repositories.
89533         * gnulib-tool (func_usage): Document --local-dir option.
89534         (local_gnulib_dir): New variable.
89535         Handle --local-dir option.
89536         (func_lookup_file): New function.
89537         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
89538         (func_get_description, func_get_filelist, func_get_description,
89539         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
89540         func_get_automake_snippet, func_get_include_directive,
89541         func_get_license, func_get_maintainer): Use func_lookup_file.
89542         (func_import, func_create_testdir): Use func_lookup_file.
89544 2006-07-29  Bruno Haible  <bruno@clisp.org>
89546         * modules/setenv (Depends-on): Add unistd.
89548 2006-07-29  Bruno Haible  <bruno@clisp.org>
89550         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
89552 2006-07-29  Bruno Haible  <bruno@clisp.org>
89554         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
89556 2006-07-29  Bruno Haible  <bruno@clisp.org>
89558         * gnulib-tool (import, update): If there is no Makefile.am, look at
89559         aclocal.m4, instead of bailing out.
89561 2006-07-29  Bruno Haible  <bruno@clisp.org>
89563         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
89564         Categorize the options by when they are useful.
89566 2006-07-29  Bruno Haible  <bruno@clisp.org>
89568         * gnulib-tool (func_usage): Document option --no-libtool.
89569         Handle option --no-libtool.
89570         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
89571         for changed semantics of $libtool variable.
89572         (func_import): Likewise. If libtool is not used, show this through
89573         an option --no-libtool.
89574         (func_create_testdir): Update.
89576 2006-07-29  Bruno Haible  <bruno@clisp.org>
89578         * gnulib-tool (func_import): Extend error message about missing
89579         --doc-base.
89581 2006-07-29  Bruno Haible  <bruno@clisp.org>
89583         * gnulib-tool (func_import): Don't create the $docbase directory if
89584         there is no file to store there.
89586 2006-07-29  Bruno Haible  <bruno@clisp.org>
89588         * gnulib-tool (autoconf_minversion): If a --dir option is given and
89589         relevant, look for configure.ac there, not in the current directory.
89590         Also use a simple search for AC_PREREQ, not "autoconf --trace".
89592 2006-07-29  Bruno Haible  <bruno@clisp.org>
89594         * gnulib-tool (SORT): New variable.
89595         (func_usage): Undocument --assume-autoconf option.
89596         Remove --assume-autoconf option handling.
89597         (autoconf_minversion): Determine from the contents of configure.ac.
89598         (func_import): Remove autoconf_minversion handling.
89599         Suggested by Eric Blake.
89601 2006-07-29  Bruno Haible  <bruno@clisp.org>
89603         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
89605 2006-07-29  Bruno Haible  <bruno@clisp.org>
89607         * config/srclist.txt (*setenv.[ch]): Remove rules.
89609 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89611         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
89613 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89615         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
89616         arpa/inet.h.
89618 2006-07-28  Simon Josefsson  <jas@extundo.com>
89620         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
89621         * modules/inet_pton (Depends-on): Likewise.
89623 2006-07-28  Simon Josefsson  <jas@extundo.com>
89625         * m4/netinet_in_h.m4: New file.
89627 2006-07-28  Simon Josefsson  <jas@extundo.com>
89629         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
89630         #include's.
89632 2006-07-28  Simon Josefsson  <jas@extundo.com>
89634         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
89635         #include's.
89637 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
89639         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
89640         setgid on directories only if they set these bits.
89641         * lib/modechange.h: Remove obsolete comment about masks.
89643 2006-07-28  Eric Blake  <ebb9@byu.net>
89645         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
89646         macro expansion.
89648 2006-07-28  Bruno Haible  <bruno@clisp.org>
89650         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
89652 2006-07-28  Bruno Haible  <bruno@clisp.org>
89654         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
89656 2006-07-28  Bruno Haible  <bruno@clisp.org>
89658         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
89659         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
89660         Define fallbacks.
89661         Avoids link error on FreeBSD 4.x.
89662         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
89664         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
89665         encoding.
89666         * lib/mbswidth.c (iswcntrl): Likewise.
89668 2006-07-27  Bruno Haible  <bruno@clisp.org>
89670         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
89671         test.
89673 2006-07-27  Bruno Haible  <bruno@clisp.org>
89675         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
89676         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
89677         defined.
89679 2006-07-26  Eric Blake  <ebb9@byu.net>
89681         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
89683 2006-07-26  Eric Blake  <ebb9@byu.net>
89685         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
89686         like mingw that lack mkstemp.
89687         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
89688         avoid compilation warning on mingw.
89690 2006-07-26  Bruno Haible  <bruno@clisp.org>
89692         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
89693         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
89694         INT_FAST*_MIN, INTPTR_MIN.
89696 2006-07-25  Bruno Haible  <bruno@clisp.org>
89698         * modules/version-etc (Depends-on): Add stdarg.
89700 2006-07-25  Bruno Haible  <bruno@clisp.org>
89702         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
89703         complex commands.
89705 2006-07-25  Bruno Haible  <bruno@clisp.org>
89707         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
89708         defined in <stdarg.h> or config.h.
89710 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
89712         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
89713         (gl_STDIO_SAFER): Remove.
89715 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
89717         * MODULES.html.sh (File stream based Input/Output):
89718         Add fopen-safer, tmpfile-safer; remove stdio-safer.
89719         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
89720         * modules/fopen-safer, modules/tmpfile-safer: New files.
89721         * modules/stdio-safer: Remove.
89723 2006-07-24  Bruno Haible  <bruno@clisp.org>
89725         * modules/tmpdir: New file.
89726         * MODULES.html.sh (File system functions): Add it.
89728 2006-07-24  Bruno Haible  <bruno@clisp.org>
89730         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
89731         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
89733 2006-07-24  Bruno Haible  <bruno@clisp.org>
89735         * modules/clean-temp: New file.
89737 2006-07-24  Bruno Haible  <bruno@clisp.org>
89739         * m4/tmpdir.m4: New file, from GNU gettext.
89741 2006-07-24  Bruno Haible  <bruno@clisp.org>
89743         * lib/tmpdir.h: New file, from GNU gettext.
89744         * lib/tmpdir.c: New file, from GNU gettext.
89746 2006-07-24  Bruno Haible  <bruno@clisp.org>
89748         * lib/clean-temp.h: New file, from GNU gettext.
89749         * lib/clean-temp.c: New file, from GNU gettext.
89751 2006-07-23  Eric Blake  <ebb9@byu.net>
89753         * modules/stdio-safer (Files): Add tmpfile-safer.c.
89754         (Depends-on): Add binary-io.
89756 2006-07-23  Eric Blake  <ebb9@byu.net>
89758         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
89760 2006-07-23  Eric Blake  <ebb9@byu.net>
89762         * lib/tmpfile-safer.c: New file.
89763         * lib/stdio-safer.h (fopen_safer): Add prototype.
89764         * lib/stdio--.h (tmpfile): Make safer.
89766 2006-07-23  Bruno Haible  <bruno@clisp.org>
89768         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
89769         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
89770         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
89771         gl_linked_remove_at): Use it.
89773 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89774         and Simon Josefsson <jas@extundo.com>
89776         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
89778         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
89780 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
89782         * modules/close-stream: New file.
89783         * modules/closeout (Description): Make it clear that it exits
89784         with a diagnostic on error.
89785         (Depends-on): Add close-stream.  Remove fpending, stdbool.
89786         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
89788 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
89790         * m4/close-stream.m4: New file.
89792 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
89794         * lib/close-stream.c, lib/close-stream.h: New files.
89796 2006-07-22  Bruno Haible  <bruno@clisp.org>
89798         Merge from GNU gettext 0.15.
89800         2006-05-01  Bruno Haible  <bruno@clisp.org>
89802                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
89804         2006-07-22  Bruno Haible  <bruno@clisp.org>
89806                 * modules/javaversion: New file.
89807                 * MODULES.html.sh (Java): Add javaversion.
89809         2006-03-12  Bruno Haible  <bruno@clisp.org>
89811                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
89813         2005-12-04  Bruno Haible  <bruno@clisp.org>
89815                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
89816                 (untested).
89818         2006-06-21  Bruno Haible  <bruno@clisp.org>
89820                 Avoid warnings from recent versions of mcs.
89821                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
89822                 -o, -L, -r any more. Use options documented since mcs-1.0
89823                 instead. Similarly for -g.
89825         2005-12-04  Bruno Haible  <bruno@clisp.org>
89827                 * build-aux/csharpcomp.sh.in: Suffix for resources is
89828                 .resources, not .resource.
89830         2005-07-09  Bruno Haible  <bruno@clisp.org>
89832                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
89833                 add a .dll suffix.
89834                 Reported by Mark Junker <mjscod@gmx.de>.
89836         2006-07-22  Bruno Haible  <bruno@clisp.org>
89838                 * modules/gettext: Upgrade to gettext-0.15.
89839                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
89840                 m4/visibility.m4.
89841                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
89843 2006-07-22  Bruno Haible  <bruno@clisp.org>
89845         Merge from GNU gettext 0.15.
89847         2006-03-25  Bruno Haible  <bruno@clisp.org>
89849                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
89851         2006-07-21  Bruno Haible  <bruno@clisp.org>
89853                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
89854                 "1.1".
89856         2006-05-09  Bruno Haible  <bruno@clisp.org>
89858                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
89859                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
89860                 for the conftestver execution.
89862         2006-05-01  Bruno Haible  <bruno@clisp.org>
89864                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
89865                 optional target-version argument. Verify that the compiler
89866                 groks source of the specified source-version, or add -source
89867                 option as necessary. Verify that the compiler produces
89868                 bytecode in the specified target-version, or add -target and
89869                 -source options as necessary. Make the result of the test
89870                 available as variable CONF_JAVAC. Also log error output in
89871                 config.log.
89873         2006-03-11  Bruno Haible  <bruno@clisp.org>
89875                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
89877         2006-05-09  Bruno Haible  <bruno@clisp.org>
89879                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
89880                 CLASSPATH_SEPARATOR to a semicolon.
89882         2006-03-12  Bruno Haible  <bruno@clisp.org>
89884                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
89885                 available as variable CONF_JAVA, for subsequent autoconf
89886                 tests. Also log error output in config.log.
89888         2006-07-19  Bruno Haible  <bruno@clisp.org>
89890                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
89891                 that getline works on glibc2 systems. Needed to avoid trouble
89892                 in relocatable.c.
89893                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
89895         2005-12-04  Bruno Haible  <bruno@clisp.org>
89897                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
89898                 launcher (untested).
89900         2005-12-04  Bruno Haible  <bruno@clisp.org>
89902                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
89904         2006-07-22  Bruno Haible  <bruno@clisp.org>
89906                 * gettext.m4: Update from GNU gettext-0.15.
89907                 * nls.m4: Likewise.
89908                 * po.m4: Likewise.
89909                 * inttypes-pri.m4: Likewise.
89910                 * inttypes-h.m4: Renamed from inttypes.m4.
89911                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
89913 2006-07-22  Bruno Haible  <bruno@clisp.org>
89915         Merge from GNU gettext 0.15.
89917         2005-07-05  Bruno Haible  <bruno@clisp.org>
89919                 * printf-args.c (printf_fetchargs): Work around broken
89920                 definition of wint_t on mingw.
89922         2005-02-12  Bruno Haible  <bruno@clisp.org>
89924                 * xallocsa.h: Add extern "C" for C++.
89926         2006-05-17  Bruno Haible  <bruno@clisp.org>
89928                 Cygwin portability.
89929                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
89931         2006-04-30  Bruno Haible  <bruno@clisp.org>
89933                 * progreloc.c: Include <mach-o/dyld.h> if available.
89934                 (find_executable): Use _NSGetExecutablePath when possible.
89936         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
89938                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
89939                 function.
89941         2005-12-29  Bruno Haible  <bruno@clisp.org>
89943                 * progreloc.c (set_program_name_and_installdir): Fix
89944                 compilation error.
89946         2005-12-04  Bruno Haible  <bruno@clisp.org>
89948                 Cygwin portability.
89949                 * progreloc.c: Include <windows.h> also on Cygwin.
89950                 (find_executable): Add support for Cygwin.
89951                 (set_program_name_and_installdir): Handle also platforms with
89952                 nonempty EXEEXT.
89954         2006-07-11  Bruno Haible  <bruno@clisp.org>
89956                 * javacomp.c: Fix a comment.
89957                 Reported by Jim Meyering.
89959         2006-04-30  Bruno Haible  <bruno@clisp.org>
89961                 * javacomp.h (compile_java_class): Add source_version,
89962                 target_version arguments.
89963                 * javacomp.c: Rewritten to choose only a compiler that
89964                 respects the specified source_version and target_version.
89966         2006-06-27  Bruno Haible  <bruno@clisp.org>
89968                 Assume correct S_ISDIR macro.
89969                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
89971         2006-07-22  Bruno Haible  <bruno@clisp.org>
89973                 * javaversion.h: New file, from GNU gettext.
89974                 * javaversion.c: New file, from GNU gettext.
89975                 * javaversion.java: New file, from GNU gettext.
89976                 * javaversion.class: New file, from GNU gettext.
89978         2006-05-17  Bruno Haible  <bruno@clisp.org>
89980                 Cygwin portability.
89981                 * javaexec.c (execute_java_class): Test for jview program
89982                 also on Cygwin.
89984         2006-04-09  Bruno Haible  <bruno@clisp.org>
89986                 * fatal-signal.c: Don't include string.h.
89987                 (at_fatal_signal): Use a copying loop instead of memcpy.
89989         2005-12-04  Bruno Haible  <bruno@clisp.org>
89991                 * csharpexec.c: Add support for 'clix' launcher (untested).
89992                 (execute_csharp_using_sscli): New function.
89993                 (execute_csharp_program): Call it.
89995         2006-06-21  Bruno Haible  <bruno@clisp.org>
89997                 Avoid warnings from recent versions of mcs.
89998                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
89999                 -o, -L, -r any more. Use options documented since mcs-1.0
90000                 instead. Similarly for -g.
90002         2005-07-09  Bruno Haible  <bruno@clisp.org>
90004                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
90005                 add a .dll suffix.
90006                 Reported by Mark Junker <mjscod@gmx.de>.
90008         2006-06-17  Bruno Haible  <bruno@clisp.org>
90010                 * config.charset: Update for NetBSD 3.0.
90012         2006-05-17  Bruno Haible  <bruno@clisp.org>
90014                 Cygwin portability.
90015                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
90017         2006-05-16  Bruno Haible  <bruno@clisp.org>
90019                 * localcharset.c [CYGWIN]: Include <windows.h>.
90020                 (get_charset_aliases): For Cygwin, return the same CPxxx
90021                 aliases list as under WIN32.
90022                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
90023                 the environment variables. Fall back to GetACP().
90025         2006-04-05  Bruno Haible  <bruno@clisp.org>
90027                 * config.charset: Update Juan Manuel Guerrero's address.
90029         2005-02-12  Bruno Haible  <bruno@clisp.org>
90031                 * allocsa.h: Add extern "C" for C++.
90033         2005-02-10  Bruno Haible  <bruno@clisp.org>
90035                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
90036                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
90038         2006-07-22  Bruno Haible  <bruno@clisp.org>
90040                 * gettext.h: Update to GNU gettext-0.15.
90042 2006-07-22  Bruno Haible  <bruno@clisp.org>
90044         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
90045         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
90046         lib-prefix.m4, longdouble.m4, ssize_t.m4.
90048 2006-07-21  Eric Blake  <ebb9@byu.net>
90050         * modules/stdlib-safer: New file.
90051         * MODULES.html.sh (File stream based Input/Output): Add
90052         stdlib-safer.
90054 2006-07-21  Eric Blake  <ebb9@byu.net>
90056         * lib/stdlib-safer.h: New file from coreutils, required by
90057         stdlib--.h.
90059 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
90061         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
90063 2006-07-20  Bruno Haible  <bruno@clisp.org>
90065         * gnulib-tool: Recognize new option --assume-autoconf.
90066         (autoconf_minversion): New variable.
90067         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
90069 2006-07-20  Bruno Haible  <bruno@clisp.org>
90071         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
90073 2006-07-19  Derek R. Price  <derek@ximbiot.com>
90075         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
90076         Reindent and repaginate.
90078 2006-07-19  Derek Price  <derek@ximbiot.com>
90080         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
90081         Correct grammar.
90083 2006-07-17  Bruno Haible  <bruno@clisp.org>
90085         * modules/list: New file.
90086         * modules/array-list: New file.
90087         * modules/carray-list, modules/carray-list-tests: New files.
90088         * modules/linked-list, modules/linked-list-tests: New files.
90089         * modules/avltree-list, modules/avltree-list-tests: New files.
90090         * modules/rbtree-list, modules/rbtree-list-tests: New files.
90091         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
90092         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
90093         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
90094         * modules/oset: New file.
90095         * modules/array-oset: New file.
90096         * modules/avltree-oset, modules/avltree-oset-tests: New files.
90097         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
90098         * tests/test-carray_list.c: New file.
90099         * tests/test-linked_list.c: New file.
90100         * tests/test-avltree_list.c: New file.
90101         * tests/test-rbtree_list.c: New file.
90102         * tests/test-linkedhash_list.c: New file.
90103         * tests/test-avltreehash_list.c: New file.
90104         * tests/test-rbtreehash_list.c: New file.
90105         * tests/test-avltree_oset.c: New file.
90106         * tests/test-rbtree_oset.c: New file.
90107         * MODULES.html.sh (Container data structures): New section.
90109 2006-07-17  Bruno Haible  <bruno@clisp.org>
90111         * m4/gl_list.m4: New file.
90113 2006-07-17  Bruno Haible  <bruno@clisp.org>
90115         * lib/gl_list.h: New file.
90116         * lib/gl_list.c: New file.
90117         * lib/gl_array_list.h: New file.
90118         * lib/gl_array_list.c: New file.
90119         * lib/gl_carray_list.h: New file.
90120         * lib/gl_carray_list.c: New file.
90121         * lib/gl_linked_list.h: New file.
90122         * lib/gl_linked_list.c: New file.
90123         * lib/gl_anylinked_list1.h: New file.
90124         * lib/gl_anylinked_list2.h: New file.
90125         * lib/gl_avltree_list.h: New file.
90126         * lib/gl_avltree_list.c: New file.
90127         * lib/gl_anyavltree_list1.h: New file.
90128         * lib/gl_anyavltree_list2.h: New file.
90129         * lib/gl_rbtree_list.h: New file.
90130         * lib/gl_rbtree_list.c: New file.
90131         * lib/gl_anyrbtree_list1.h: New file.
90132         * lib/gl_anyrbtree_list2.h: New file.
90133         * lib/gl_anytree_list1.h: New file.
90134         * lib/gl_anytree_list2.h: New file.
90135         * lib/gl_linkedhash_list.h: New file.
90136         * lib/gl_linkedhash_list.c: New file.
90137         * lib/gl_anyhash_list1.h: New file.
90138         * lib/gl_anyhash_list2.h: New file.
90139         * lib/gl_avltreehash_list.h: New file.
90140         * lib/gl_avltreehash_list.c: New file.
90141         * lib/gl_rbtreehash_list.h: New file.
90142         * lib/gl_rbtreehash_list.c: New file.
90143         * lib/gl_anytreehash_list1.h: New file.
90144         * lib/gl_anytreehash_list2.h: New file.
90146         * lib/gl_oset.h: New file.
90147         * lib/gl_oset.c: New file.
90148         * lib/gl_array_oset.h: New file.
90149         * lib/gl_array_oset.c: New file.
90150         * lib/gl_avltree_oset.h: New file.
90151         * lib/gl_avltree_oset.c: New file.
90152         * lib/gl_rbtree_oset.h: New file.
90153         * lib/gl_rbtree_oset.c: New file.
90154         * lib/gl_anytree_oset.h: New file.
90156 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
90158         * m4/mkancesdirs.m4: New file.
90159         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
90160         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
90161         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
90162         it.
90164 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
90166         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
90167         * lib/mkancesdirs.h: New files.
90168         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
90169         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
90170         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
90171         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
90172         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
90173         callers changed.  Revamp internals significantly, by not
90174         attempting to create directories that are temporarily more
90175         permissive than the final results.  Do not attempt to use
90176         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
90177         This removes some race conditions, fixes some bugs, and simplifies
90178         things.  Use new dirchownmod function to do owner and mode changes.
90179         * lib/mkdir-p.h: Likewise.
90180         * lib/modechange.c (octal_to_mode): New function.
90181         (struct mode_change): New member mentioned.
90182         (make_node_op_equals): New arg mentioned.  All callers changed.
90183         (mode_compile): Keep track of which mode bits the user has explicitly
90184         mentioned.
90185         (mode_adjust): New arg DIR, so that we implement the X op correctly.
90186         New arg PMODE_BITS, to keep track of which mode bits the user
90187         mentioned; it treats S_ISUID and S_ISGID speciall.
90188         All callers changed.
90189         * lib/modechange.h: Likewise.
90191 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
90193         * MODULES.html.sh: Add mkancestors.
90194         * modules/mkancesdirs: New module.
90195         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
90196         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
90197         The chdir-safer and afs files are now orphans; I'll remove them
90198         unless someone speaks up.
90199         Add lib/dirchownmod.c, lib/dirchownmod.h.
90200         (Depends-on): Remove alloca, chown, save-cwd, dirname.
90201         Add lchown, mkancesdirs.
90202         (Maintainer): Add self.
90204 2006-07-15  Karl Berry  <karl@gnu.org>
90206         * gnulib-tool: help message wording/arrangement.
90208 2006-07-14  Simon Josefsson  <jas@extundo.com>
90210         * doc/gnulib.texi (Libtool and Windows): New section.
90212 2006-07-12  Simon Josefsson  <jas@extundo.com>
90214         * modules/gendocs (License): Fix license, approved by Karl.
90216 2006-07-12  Eric Blake  <ebb9@byu.net>
90218         * MODULES.html.sh: Add gendocs.
90220 2006-07-11  Eric Blake  <ebb9@byu.net>
90222         * modules/fdl: New module, to install doc/fdl.texi.
90223         * MODULES.html.sh: Add new section for documentation modules.
90224         * gnulib-tool: Avoid space-tab.
90225         (--doc-base): New option, to manage files from doc.
90227 2006-07-11  Eric Blake  <ebb9@byu.net>
90229         * m4/absolute-header.m4: Fix comments to match recent change.
90231 2006-07-11  Eric Blake  <ebb9@byu.net>
90233         * gnulib-tool: List --doc-base before --tests-base.
90235 2006-07-11  Derek R. Price  <derek@ximbiot.com>
90237         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
90239 2006-07-11  Bruno Haible  <bruno@clisp.org>
90241         * README: Mention where to put documentation.
90243 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90245         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
90247 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
90249         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
90250         to stdint.m4.
90252 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
90254         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
90255         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
90256         "no/such/file/stdint.h" when there is no such file, so that
90257         the resulting C code can be parsed by dodgy compilers.
90258         Problems reported by Bob Proulx.
90260 2006-07-10  Derek R. Price  <derek@ximbiot.com>
90262         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
90263         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
90264         macros into the GNU _D_EXACT_NAMLEN.
90265         * lib/savedir.c:  Likewise.
90266         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
90268 2006-07-10  Derek R. Price  <derek@ximbiot.com>
90269         and Paul Eggert  <eggert@cs.ucla.edu>
90271         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
90272         * m4/savedir.m4:
90273         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
90274         macros into the GNU _D_EXACT_NAMLEN.
90276 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
90278         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
90279         around the absolute name, to work around a problem with the HP-UX
90280         11.23 native C compiler, reported by Bob Proulx.
90282 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
90284         * doc/maintain.texi, make-stds.texi: Sync from
90285         <http://savannah.gnu.org/projects/gnustandards>.
90287 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
90289         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
90291 2006-07-09  Jim Meyering  <jim@meyering.net>
90293         * m4/glob.m4: Remove a doubled word in a comment.
90295 2006-07-09  Jim Meyering  <jim@meyering.net>
90297         * lib/argp-pv.c: Remove a doubled word in a comment.
90298         * lib/check-version.c (check_version): Likewise.
90299         * lib/javacomp.c (compile_java_class): Likewise.
90301 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
90303         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
90304         for the benefit of people using Autoconf 2.60.  If you want to
90305         support older Autoconf versions you can copy m4/onceonly_2_57.m4
90306         (or m4/onceonly.m4, if pre-2.57) manually.
90308 2006-07-08  Jim Meyering  <jim@meyering.net>
90310         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
90311         comment.
90312         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
90313         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
90314         comment.
90316 2006-07-08  Jim Meyering  <jim@meyering.net>
90318         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
90320 2006-07-07  Simon Josefsson  <jas@extundo.com>
90322         * tests/test-crc.c: Change expected crc value, the test vector
90323         were probably computed using the old broken crc.c?
90325 2006-07-06  Simon Josefsson  <jas@extundo.com>
90327         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
90328         now the canonical place for the M4 file).
90330         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
90331         from the sys_socket dependency now.
90333         * modules/inet_pton (Files): Ditto.
90335         * modules/inet_ntop (Files): Ditto.
90337 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
90339         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
90340         not gl_PREREQ_GETUSERSHELL.
90342 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90344         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
90345         with only one argument, for Autoconf 2.60.
90346         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
90347         expand to nothing, so add a shell command to avoid syntax error.
90348         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
90350 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90352         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
90354 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
90356         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
90357         no longer needed.  Check for isblank decl.
90358         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
90359         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
90360         of existence.
90362 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
90364         * lib/getloadavg.c: Use __VMS, not VMS.
90365         * lib/getopt.c: Likewise.
90366         * lib/getpagesize.h: Likewise.
90367         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
90368         and probably does not work.
90370 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
90372         * lib/.cppi-disable: Add wcwidth.
90373         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
90374         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
90375         (ISGRAPH): Remove.  All uses changed to isgraph.
90376         (FOLD) [!defined _LIBC]: Remove special case.
90377         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
90378         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
90379         HAVE_ISBLANK.
90380         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
90381         case.
90383 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
90385         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
90386         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
90387         brackets.  Other minor changes to suppress some compiler
90388         warnings.
90390 2006-07-06  Derek R. Price  <derek@ximbiot.com>
90391         and Paul Eggert  <eggert@cs.ucla.edu>
90393         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
90394         of invoking obsolescent AC_HEADER_DIRENT macro.
90395         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
90396         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
90397         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
90398         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
90399         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
90400         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
90401         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
90402         * m4/readdir.m4: Remove; no longer needed.
90404 2006-07-06  Derek R. Price  <derek@ximbiot.com>
90405         and Paul Eggert  <eggert@cs.ucla.edu>
90407         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
90408         Don't worry about this obsolete case any more.
90409         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
90410         directories.
90411         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
90412         worry about this obsolete case any more.
90413         * lib/fts.c: Likewise.
90414         * lib/getcwd.c: Likewise.
90415         * lib/glob.h: Likewise.
90416         * lib/savedir.c: Likewise.
90418 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
90420         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
90421         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
90422         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
90423         needed.
90424         All uses removed.
90425         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
90426         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
90427         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
90428         needed.
90429         * m4/getdate.m4 (gl_GETDATE): Likewise.
90430         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
90431         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
90432         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
90433         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
90434         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
90435         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
90436         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
90437         needed.
90439 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
90441         * lib/memcasecmp.c: Include <limits.h>.
90442         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
90443         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
90444         Don't assume isdigit succeeds only on '0' through '9'.
90446 2006-07-05  Eric Blake  <ebb9@byu.net>
90448         * modules/getaddrinfo (Depends-on): Add snprintf.
90450 2006-07-05  Eric Blake  <ebb9@byu.net>
90452         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
90453         to avoid 'header present but could not be compiled' on cygwin.
90455 2006-07-05  Eric Blake  <ebb9@byu.net>
90457         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
90458         missing from netdb.h.
90459         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
90461 2006-07-05  Derek R. Price  <derek@ximbiot.com>
90463         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
90464         no longer needed.
90465         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
90466         * m4/getdate.m4 (gl_GETDATE): Likewise.
90467         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
90468         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
90469         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
90470         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
90471         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
90473 2006-07-05  Derek R. Price  <derek@ximbiot.com>
90475         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
90476         All uses of is_space replaced by isspace.
90477         * lib/exit.h: Don't talk about STDC_HEADERS.
90478         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
90479         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
90480         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
90481         replaced by isprint etc.
90482         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
90483         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
90484         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
90485         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
90486         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
90487         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
90489 2006-07-05  Bruno Haible  <bruno@clisp.org>
90491         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
90492         the function exists, before testing against AIX.
90493         Reported by Martin Lambers <marlam@marlam.de>.
90495 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
90497         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
90498         From Mark D. Baushke.
90500 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
90502         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
90503         to the absolute name, not just one, to bypass Sun C 5.8's
90504         "warning: #include of /usr/include/... may be non-portable".
90506 2006-07-04  Eric Blake  <ebb9@byu.net>
90508         * modules/dirname-tests: New test module.
90509         * tests/test-dirname.c: New file, replacing dirname.c
90510         TEST_DIRNAME section that was recently deleted.
90512 2006-07-04  Bruno Haible  <bruno@clisp.org>
90514         Assume ANSI C header files and <ctype.h> functions.
90515         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
90516         (mbsnwidth): Use isprint, iscntrl instead.
90518 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
90520         Merge from coreutils.
90521         * MODULES.html.sh: Add xstrtold.
90522         * modules/xstrtold: New file.
90523         * modules/cycle-check (Files): Add lib/same-inode.h.
90524         * modules/dirname (Files): Add m4/double-slash-root.m4.
90525         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
90526         * modules/mkdir-p (Files): Add lib/same-inode.h.
90527         * modules/same (Files): Add lib/same-inode.h.
90529 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
90531         * m4/absolute-header.m4: Renamed from full-header-path.m4.
90532         This is to keep the terminology clean; POSIX talks about
90533         "absolute pathnames", not "full pathnames", but the GNU
90534         Coding Standards say to use "path" for something else;
90535         so use "absolute" to keep both sides happy.
90536         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
90537         Set gl_absolute_header, not gl_full_header_path.
90538         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
90539         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
90540         All uses changed.
90542         Merge from coreutils.
90544         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
90546         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
90547         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
90548         want to require the building of c-strtod.o.
90549         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
90550         needs -lm directly.
90551         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
90553         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
90555         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
90556         --as-needed option if available.  Problem reported by Albert Chin in
90557         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
90558         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
90559         cc merely issues a bunch of annoying warnings for --as-needed
90560         (this problem was reported by Bob Proulx).  Also, try linking with
90561         -lm to detect a bug in binutils 2.16 (this problem was reported
90562         by Ralf Wildenhues).
90564         2006-06-18  Jim Meyering  <jim@meyering.net>
90566         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
90567         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
90568         macro.
90569         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
90570         also check for glibc-2.4's abort-inducing bug.
90572         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
90573         Low-probability clean-up should be to use rmdir to get rid of
90574         the just-created directory, not unlink.
90576         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
90577         configure fail, and request a bug report to inform us about it.
90578         Add a comment that, barring reports to the contrary, in 2007 we'll
90579         assume ftruncate is universally available.
90581         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
90583         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
90585         2006-03-12  Jim Meyering  <jim@meyering.net>
90587         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
90588         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
90589         * m4/same.m4 (gl_SAME): Likewise.
90590         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
90592         2006-03-11  Eric Blake  <ebb9@byu.net>
90594         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
90595         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
90596         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
90597         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
90599 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
90601         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
90602         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
90603         reported by Mark D. Baushke, one in
90604         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
90606         Merge from coreutils.
90608         * lib/.cppi-disable: Add stdint_.h.
90609         * lib/.cvsignore: Add stdint.h.
90611         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
90613         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
90614         both double and long double versions.
90615         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
90616         * lib/xstrtold.c: New file.
90617         * lib/xstrtod.h (xstrtold): New decl.
90619         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
90621         * lib/filemode.c (setst): Remove.
90622         (strmode): Rewrite to avoid setst.  This makes the code shorter,
90623         (arguably) clearer, and the generated code is a bit smaller on my
90624         Debian GNU/Linux stable x86 host.
90626         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
90628         * lib/filemode.c: Include "filemode.h" first, to test the interface.
90629         Assume that filemode.h includes sys/types.h and sys/stat.h.
90630         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
90631         (ftypelet): Reorder to put common cases first, for efficiency.
90632         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
90633         to do 'M'.
90634         (strmode): Renamed from mode_string, and now stores 12 bytes instead
90635         of 10, for compatibility with FreeBSD.  All callers changed.
90636         (filemodestring): Now stores 12 bytes instead of 10, and sets file
90637         types that can't be deduced solely from st_mode.  First arg is now a
90638         const pointer.
90639         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
90640         (strmode): Renamed from mode_string.
90641         (filemodestring): New decl.
90642         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
90643         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
90644         needed.
90645         (S_ISPORT, S_ISWHT): New macros, if not already defined.
90647         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
90649         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
90650         fsusage.h now does that.  Include fsusage.h first, to test interface.
90651         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
90652         at most one method (the old code could have generated decls that
90653         didn't conform to C89, not that this was ever exercised).
90654         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
90656         2006-03-19  Jim Meyering  <jim@meyering.net>
90658         Work even in a chroot where d_ino values for entries in "/"
90659         don't match the stat.st_ino values for the same names.
90660         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
90661         number, iterate through all entries again, using lstat instead.
90662         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
90663         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
90665         * lib/getcwd.c (__getcwd): Clarify a comment.
90666         Use memcpy in place of a call to strcpy.
90668         2006-03-12  Jim Meyering  <jim@meyering.net>
90670         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
90671         matches that of the current directory (which we're about to chdir ".."
90672         out of), then save the dev-ino of the parent, instead.
90674         * lib/same-inode.h (SAME_INODE): New file/macro.
90675         * lib/chdir-safer.c (SAME_INODE): Remove definition.
90676         Include "same-inode.h", instead.
90677         * lib/same.c: Likewise.
90678         * lib/cycle-check.h: Include "same-inode.h".
90679         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
90680         * lib/cycle-check.c (SAME_INODE): Remove definition.
90681         * lib/root-dev-ino.h: Include "same-inode.h".
90683         2006-03-11  Eric Blake  <ebb9@byu.net>
90685         * lib/same.c (same_name): s/base_name/last_component/
90686         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
90687         * lib/filenamecat.c (file_name_concat): Likewise.
90689         2006-03-11  Eric Blake  <ebb9@byu.net>,
90690                     Paul Eggert  <eggert@cs.ucla.edu>
90692         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
90693         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
90694         drive prefix.
90695         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
90696         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
90697         (last_component): New method.
90698         * lib/dirname.c (dir_len): Determine when drive letters need a
90699         subsequent slash.  Preserve // when it is special.
90700         (dir_name): Don't append dot when drive letter is absolute.
90701         [TEST_DIRNAME]: Move into a full-blown gnulib test.
90702         * lib/basename.c (base_name): New semantics - malloc the result.
90703         Preserve // when it is special.  Preserve relative files that look
90704         like drive letters.
90705         (base_len): Preserve // when it is special.
90706         (last_component): New method, similar to old base_name semantics.
90707         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
90708         base_name.  Strip redundant slashes from ///.
90710 2006-07-03  Jim Meyering  <jim@meyering.net>
90712         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
90713         macro is used before the first cycle_check call.
90715 2006-07-03  Eric Blake  <ebb9@byu.net>
90717         * modules/dirname (Depends-on): Add xstrndup.
90719 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
90721         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
90722         test cases, so that config.log is a bit easier to follow.
90724 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
90726         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
90727         both are 64 bits, since this seems to be the tradition, and this
90728         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
90729         we ever run into a host that prefers long long to long in this
90730         case, we'll need another configure-time test.  Problem reported by
90731         Jim Meyering.
90733 2006-07-02  Eric Blake  <ebb9@byu.net>
90735         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
90737 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
90739         * modules/inttypes (Depends-on): No longer depends on stdint.
90740         * modules/stdint (Description): Say more about assumptions.
90741         Say that the fast types might differ.  Say macros are used.
90742         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
90743         (Makefile.am): Revise list of substituted symbols to match
90744         new stdint.m4.
90745         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
90746         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
90747         * tests/test-stdint.c (verify_same_types)
90748         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
90749         the code conforms to C99/C89.
90750         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
90751         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
90753 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
90755         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
90756         but fix a bug, by requiring at least 64 bits.
90757         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
90758         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
90759         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
90760         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
90762         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
90763         changes.  Make 2.59 a prerequisite.  Check and substitute for
90764         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
90765         inttypes.h.  Do not use special include files; just use the
90766         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
90767         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
90768         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
90769         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
90770         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
90771         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
90772         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
90773         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
90774         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
90775         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
90776         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
90777         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
90778         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
90779         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
90780         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
90781         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
90782         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
90783         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
90784         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
90785         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
90786         WINT_MAX.  Check for C99 conformance more strictly, by detecting
90787         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
90788         not check for things that C99 does not require, e.g., int8_t.  If
90789         a test isn't needed unless <stdint.h> isn't working, and is
90790         unlikely to be needed for any other reason, then don't do it
90791         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
90792         size_t, since we assume C89 freestanding at least.  Do not check
90793         for sig_atomic_t, wchar_t, or wint_t, since the code now does
90794         the right thing even if the types are not defined.  Instead use:
90795         (gl_STDINT_TYPE_PROPERTIES): New macro.
90796         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
90797         testing whether <sys/types.h> clashes, as Autoconf does this for
90798         us now.  All uses removed.
90799         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
90800         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
90801         (gl_CHECK_TYPE_SAME):
90802         Remove; no longer needed.
90803         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
90804         exists, since we'll return 0 anyway in that case.
90805         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
90807 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
90809         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
90810         possible collision with system files.
90811         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
90812         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
90813         WCHAR_MIN and WCHAR_MAX in this case.
90814         (<stddef.h>): Do not include; no longer needed.
90815         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
90816         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
90817         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
90818         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
90819         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
90820         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
90821         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
90822         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
90823         !defined(__c99))]: Include in this case too, since it's harmless
90824         now.
90825         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
90826         dangerous to do so.
90827         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
90828         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
90829         (_STDINT_MIN, _STDINT_MAX): New macros.
90830         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
90831         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
90832         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
90833         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
90834         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
90835         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
90836         macros, not typedefs; this simplifies things quite a bit.
90837         Use long int for all types narrower than int64_t.
90838         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
90839         Define in terms of long long int or int64_t or long int,
90840         not int64_t or int32_t.  This saves some compile-time testing.
90841         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
90842         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
90843         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
90844         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
90845         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
90846         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
90847         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
90848         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
90849         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
90850         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
90851         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
90852         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
90853         undef any previous version and define our own version, for
90854         simplicity and consistency with the new macros for types.
90855         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
90856         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
90857         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
90858         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
90859         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
90860         @WINT_T_SUFFIX@ to keep things simple here.
90861         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
90862         Simplify by assuming typical 8/16/32/64 host, since we're
90863         already doing that elsewhere anyway.
90864         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
90865         and assume long long int is 64 bits if available.  This
90866         speeds up 'configure'.
90868 2006-07-01  Eric Blake  <ebb9@byu.net>
90870         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
90871         Reported by Andreas Buening.
90873 2006-07-01  Eric Blake  <ebb9@byu.net>
90875         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
90877 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
90879         * lib/getaddrinfo.c: fixed typo
90881 2006-06-29  Jim Meyering  <jim@meyering.net>
90883         * modules/strftime (Maintainer): Add my name, since with the
90884         FPRINTFTIME changes strftime.c has forked from glibc.
90886 2006-06-29  Eric Blake  <ebb9@byu.net>
90888         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
90890 2006-06-29  Eric Blake  <ebb9@byu.net>
90892         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
90894 2006-06-29  Eric Blake  <ebb9@byu.net>
90896         * lib/stat_.h: New file.
90898 2006-06-29  Eric Blake  <ebb9@byu.net>
90900         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
90901         unused static function.
90903 2006-06-29  Eric Blake  <ebb9@byu.net>
90905         * doc/functions.texi (Function Portability): Document missing lstat
90906         on mingw.
90908 2006-06-29  Eric Blake  <ebb9@byu.net>
90910         * MODULES.html.sh: Add sys_stat.
90911         * modules/sys_stat: New module.
90912         * modules/mkstemp (Depends-on): Add sys_stat.
90914 2006-06-29  Derek R. Price  <derek@ximbiot.com>
90916         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
90918 2006-06-29  Derek R. Price  <derek@ximbiot.com>
90920         * m4/c-bs-a.m4: Removed.
90922 2006-06-29  Derek R. Price  <derek@ximbiot.com>
90924         * lib/strftime.c: Assume strftime() exists.
90926 2006-06-29  Derek Price  <derek@ximbiot.com>
90928         * modules/c-bs-a: Removed - \a is C89.
90929         * MODULES.html.sh: Remove c-bs-a.
90931 2006-06-29  Bruno Haible  <bruno@clisp.org>
90933         * modules/wcwidth (License): Change to LGPL.
90935 2006-06-28  Simon Josefsson  <jas@extundo.com>
90937         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
90938         on _WIN32.
90940         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
90941         getnameinfo.
90943 2006-06-28  Simon Josefsson  <jas@extundo.com>
90945         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
90947 2006-06-28  Simon Josefsson  <jas@extundo.com>
90949         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
90950         functions there.  It will succeed on Windows XP, but on Windows
90951         2000 and (presumably) earlier, it will fail, and use the internal
90952         re-implementation.
90953         (use_win32_p): New function.
90954         (getaddrinfo): Use strtoul on servname, to support numeric ports.
90955         Support AI_NUMERICSERV to disable getservbyname.
90956         (getnameinfo): New function, only supports
90957         NI_NUMERICHOST|NI_NUMERICSERV for now.
90959         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
90960         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
90961         getnameinfo.
90963 2006-06-28  Eric Blake  <ebb9@byu.net>
90965         * modules/wcwidth: New file.
90966         * modules/mbchar (Depends-on): Add wcwidth.
90967         * modules/mbswidth (Depends-on): Add wcwidth.
90968         * MODULES.html.sh: Add wcwidth.
90970 2006-06-28  Eric Blake  <ebb9@byu.net>
90972         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
90973         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
90975 2006-06-28  Eric Blake  <ebb9@byu.net>
90977         * lib/xvasprintf.h: Fix comments.
90979 2006-06-28  Eric Blake  <ebb9@byu.net>
90981         * lib/mbchar.h (wcwidth): Include wcwidth.h.
90982         * lib/mbswidth.c (wcwidth): Move from here...
90983         * lib/wcwidth.h: ...to this new file.
90985 2006-06-28  Derek R. Price  <derek@ximbiot.com>
90987         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
90989         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
90990         it's obsolete.
90991         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
90993 2006-06-28  Derek R. Price  <derek@ximbiot.com>
90995         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
90996         Autoconf 2.60 says this stuff was obsolete.
90998 2006-06-28  Bruno Haible  <bruno@clisp.org>
91000         * modules/wcwidth (Files): Add m4/wchar_t.m4.
91002 2006-06-28  Bruno Haible  <bruno@clisp.org>
91004         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
91005         gt_TYPE_WCHAR_T.
91007 2006-06-28  Bruno Haible  <bruno@clisp.org>
91009         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
91010         declaration for wcwidth.
91011         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
91013 2006-06-28  Bruno Haible  <bruno@clisp.org>
91015         * lib/mkdtemp.c [MINGW]: Include <io.h>.
91016         (mkdir): Define using _mkdir.
91018 2006-06-28  Bruno Haible  <bruno@clisp.org>
91020         * lib/getaddrinfo.h: Fix POSIX URL.
91021         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
91022         _WIN32.
91023         (use_win32_p): Make static.
91024         (getaddrinfo): Reject service name if it is empty or does not consist
91025         solely of decimal digits, or if its value is > 65535.
91026         (getnameinfo): Remove useless casts.
91028 2006-06-27  Simon Josefsson  <jas@extundo.com>
91030         * modules/sys_select: New file, suggested by Bruno Haible, Paul
91031         Eggert and Martin Lambers.
91033 2006-06-27  Simon Josefsson  <jas@extundo.com>
91035         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
91036         Eggert and Martin Lambers.
91038 2006-06-27  Bruno Haible  <bruno@clisp.org>
91040         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
91041         result to 0, not to empty.
91042         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
91044 2006-06-27  Bruno Haible  <bruno@clisp.org>
91046         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
91048 2006-06-26  Simon Josefsson  <jas@extundo.com>
91050         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
91051         present.
91053 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
91055         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
91056         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
91057         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
91059 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
91061         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
91063 2006-06-26  Bruno Haible  <bruno@clisp.org>
91065         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
91067 2006-06-26  Bruno Haible  <bruno@clisp.org>
91069         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
91071 2006-06-26  Bruno Haible  <bruno@clisp.org>
91073         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
91074         SGI C compiler in pre-C99 mode.
91075         Suggested by Mark D. Baushke and Larry Jones.
91077 2006-06-26  Bruno Haible  <bruno@clisp.org>
91079         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
91080         WCHAR_MAX.
91081         Reported by Mark D. Baushke and Larry Jones.
91083 2006-06-26  Bruno Haible  <bruno@clisp.org>
91085         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
91086         in pre-C99 mode.
91087         Suggested by Mark D. Baushke and Larry Jones.
91089 2006-06-23  Simon Josefsson  <jas@extundo.com>
91090             Bruno Haible  <bruno@clisp.org>
91092         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
91093         Emit mostlyclean-local rule.
91094         (func_emit_tests_Makefile_am): Likewise.
91095         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
91097 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
91099         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
91101 2006-06-23  Bruno Haible  <bruno@clisp.org>
91103         * tests/test-stdint.c: Update to match ISO C 99 Technical
91104         Corrigendum 1.
91106 2006-06-23  Bruno Haible  <bruno@clisp.org>
91108         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
91110 2006-06-23  Bruno Haible  <bruno@clisp.org>
91112         * lib/stdint_.h: Treat IRIX like OpenBSD.
91114 2006-06-23  Bruno Haible  <bruno@clisp.org>
91116         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
91117         ISO C 99 Technical Corrigendum 1.
91119 2006-06-22  Simon Josefsson  <jas@extundo.com>
91121         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
91122         MinGW.
91124 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
91126         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
91127         needed.  Some compiler complained about some of them.  Problem reported
91128         by Larry Jones in
91129         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
91131 2006-06-21  Simon Josefsson  <jas@extundo.com>
91133         * tests/test-getaddrinfo.c: New file.
91135         * modules/getaddrinfo-tests: New file.
91137         * MODULES.html.sh: Add inet_pton.
91139         * modules/inet_pton: New file.
91141 2006-06-21  Simon Josefsson  <jas@extundo.com>
91143         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
91144         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
91145         of using the (limited) gnulib implementation on Windows XP.
91147         * m4/inet_pton.m4: New file.
91149 2006-06-21  Simon Josefsson  <jas@extundo.com>
91151         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
91152         variable.
91154         * lib/socket_.h: Don't define WINVER.
91156         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
91157         slightly modified to work in gnulib.
91159 2006-06-21  Simon Josefsson  <jas@extundo.com>
91161         * doc/gnulib.texi (Windows sockets): Add.
91163 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
91165         * lib/read-file.c (fread_file): Start with buffer allocation of
91166         0 bytes rather than 1 byte; this simplifies the code.
91167         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
91168         code to free buffer and save/restore errno.
91169         (internal_read_file): Remove unused local.
91171 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
91173         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
91174         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
91175         Problem reported by Denis Excoffier in
91176         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
91178 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91180         * modules/sys_socket, modules/socklen: Include sys/types since
91181         FreeBSD 4.x's sys/socket.h needs it.
91183 2006-06-19  Simon Josefsson  <jas@extundo.com>
91185         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
91187 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
91189         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
91191 2006-06-19  Bruno Haible  <bruno@clisp.org>
91193         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
91194         and FULL_PATH_INTTYPES_H in angle brackets.
91195         Reported by Mark D. Baushke <mdb@gnu.org>.
91197 2006-06-17  Eric Blake  <ebb9@byu.net>
91199         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
91200         errno.
91202 2006-06-17  Bruno Haible  <bruno@clisp.org>
91204         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
91205         <sys/inttypes.h>.
91207 2006-06-17  Bruno Haible  <bruno@clisp.org>
91209         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
91210         whether errno is declared. Assume <errno.h> declares errno.
91212 2006-06-17  Bruno Haible  <bruno@clisp.org>
91214         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
91216 2006-06-17  Bruno Haible  <bruno@clisp.org>
91218         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
91219         problem on Solaris 2.5.1.
91221 2006-06-16  Eric Blake  <ebb9@byu.net>
91223         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
91224         * lib/unicodeio.c [!defined errno]: Likewise.
91225         * lib/strtol.c [!defined errno]: Likewise.
91226         * lib/strtod.c [!defined errno]: Likewise.
91228 2006-06-15  Eric Blake  <ebb9@byu.net>
91230         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
91232 2006-06-15  Eric Blake  <ebb9@byu.net>
91234         * config/srclist.txt (ssize_t.m4): Lose sync.
91236 2006-06-15  Bruno Haible  <bruno@clisp.org>
91238         * modules/stdint (Files): Include m4/full-header-path.m4,
91239         m4/size_max.m4, m4/wchar_t.m4.
91240         (Makefile.am): Many more substitutions.
91241         * modules/stdint-tests: New file.
91242         * tests/test-stdint.c: New file.
91244 2006-06-15  Bruno Haible  <bruno@clisp.org>
91246         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
91247         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
91248         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
91249         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
91250         gl_CHECK_TYPE_SAME): New macros.
91252 2006-06-15  Bruno Haible  <bruno@clisp.org>
91254         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
91256 2006-06-15  Bruno Haible  <bruno@clisp.org>
91258         * lib/stdint_.h: Rewritten to be fully auto-configured.
91259         Fixes bug on HP-UX/IA64.
91261 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
91263         * lib/getdate.y (__attribute__): Don't define if already defined.
91264         Problem reported by Larry Jones.
91265         * lib/utimens.c (__attribute__): Likewise.
91267 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
91269         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
91270         reported by Andreas Schwab.
91272 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91273             Bruno Haible  <bruno@clisp.org>
91275         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
91276         check for the declaration of strnlen and a run test that exposes the
91277         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
91278         rpl_strndup.
91280 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91281             Bruno Haible  <bruno@clisp.org>
91283         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
91285 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91287         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
91288         compile test, for Tru64 4.0D.
91290 2006-05-28  Karl Berry  <karl@gnu.org>
91292         * config/srclist.txt (printf-args.c): lose sync.
91294 2006-05-26  Martin Lambers  <marlam@marlam.de>
91296         * lib/getpass.c: Updates the test for the native W32 API, and adds
91297         missing includes, thus fixing compilation warnings.
91299 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
91301         * lib/exclude.c (exclude_fnmatch): New function.
91302         (excluded_file_name): Call exclude_fnmatch.
91303         * lib/exclude.h (excluded_file_name): New prototype
91305 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
91307         * lib/tempname.c (small_open, large_open): New macros.
91308         (__open, __open64) [!_LIBC]: Remove.
91309         (__gen_tempname): Use small_open and large_open instead of __open
91310         and __open64.  This fixes a portability bug on HP-UX 11.11i
91311         reported by Simon Wing-Tang in
91312         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
91314 2006-05-24  Bruno Haible  <bruno@clisp.org>
91316         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
91317         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
91318         Reported by Thorsten Maerz <torte@netztorte.de> via
91319         Aaron Stone <aaron@serendipity.cx>.
91321 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
91323         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
91324         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
91325         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
91326         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
91327         not really conditional on the cache.
91328         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
91330 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
91332         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
91333         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
91334         (my_usleep): Don't mishandle maximum value.
91336 2006-05-19  Jim Meyering  <jim@meyering.net>
91338         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
91340 2006-05-17  Bruno Haible  <bruno@clisp.org>
91342         Cygwin portability.
91343         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
91345 2006-05-17  Bruno Haible  <bruno@clisp.org>
91347         * lib/stdint_.h: Fix recognition of Cygwin.
91349 2006-05-15  Bruno Haible  <bruno@clisp.org>
91351         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
91352         on libtool patch by Ralf Wildenhues.
91354 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
91356         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
91357         test for C99 conformance; (bool) 0.5 is an integer constant
91358         expression, but (bool) -0.5 is not.  Problem reported by Fedor
91359         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
91361 2006-05-11  Simon Josefsson  <jas@extundo.com>
91363         * m4/xvasprintf.m4: Fix obvious typo.
91365 2006-05-11  Jim Meyering  <jim@meyering.net>
91367         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
91368         James Lemley.
91370 2006-05-10  Simon Josefsson  <jas@extundo.com>
91372         * lib/md4.c: Typo fix, update copyright years.
91373         (K1, K2): Don't use L because it turn computations into 64-bit on
91374         64-bit platforms.
91376 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
91378         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
91379         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
91380         unwanted sign propagation, e.g., on hosts with 64-bit int.
91381         There still are some problems with reeelly weird theoretical hosts
91382         (e.g., 33-bit int) but it's not worth worrying about now.
91383         * lib/sha1.c (rol): Likewise.
91384         (K1, K2, K3, K4): Remove unnecessary L suffix.
91386 2006-05-10  Bruno Haible  <bruno@clisp.org>
91388         * lib/des.c: Cast to avoid warnings.
91390 2006-05-09  Bruno Haible  <bruno@clisp.org>
91392         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
91393         (Depends-on): Depend also on xsize, stdarg.
91394         (configure.ac): Add gl_XVASPRINTF.
91396 2006-05-09  Bruno Haible  <bruno@clisp.org>
91398         * m4/xvasprintf.m4: New file.
91400 2006-05-09  Bruno Haible  <bruno@clisp.org>
91402         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
91403         (EOVERFLOW): Define fallback value.
91404         (xstrcat): New function.
91405         (xvasprintf): Recognize the special case of a string concatenation.
91407 2006-05-08  Eric Blake  <ebb9@byu.net>
91409         * gnulib-tool (func_version): Base copyright year on CVS date.
91410         (func_emit_copyright_notice): New function.
91411         (func_emit_lib_Makefile_am): Use it.
91412         (func_emit_tests_Makefile_am): Likewise.
91413         (func_import): Likewise.
91415 2006-05-08  Bruno Haible  <bruno@clisp.org>
91417         * modules/stdarg: New file.
91418         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
91420 2006-05-08  Bruno Haible  <bruno@clisp.org>
91422         * m4/stdarg.m4: New file, from GNU gettext.
91424 2006-05-08  Bruno Haible  <bruno@clisp.org>
91426         * config/srclist.txt (build-aux/config.rpath): different from latest
91427         release.
91429 2006-05-08  Bruno Haible  <bruno@clisp.org>
91431         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
91433 2006-05-05  Jim Meyering  <jim@meyering.net>
91435         * m4/warning.m4: New file, derived from bison's file by the same name.
91437 2006-05-03  Bruno Haible  <bruno@clisp.org>
91439         * lib/stdint_.h: Shorter URL.
91440         * lib/inttypes.h: Likewise.
91442 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
91444         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
91446 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
91448         * lib/verify.h: Document the internals better.  Most of this change
91449         was written by Bruno Haible.
91451 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
91453         * doc/verify.texi: New file, partly based on a proposal by
91454         Bruno Haible.
91456 2006-05-02  Bruno Haible  <bruno@clisp.org>
91458         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
91459         test from here...
91460         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
91462 2006-04-29  Bruno Haible  <bruno@clisp.org>
91464         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
91465         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
91467 2006-04-29  Bruno Haible  <bruno@clisp.org>
91469         * gnulib-tool: Make --update option actually work.
91471 2006-04-29  Bruno Haible  <bruno@clisp.org>
91473         * doc/gcd.texi: New file.
91474         * doc/gnulib.texi: Include it.
91476 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
91478         * lib/getdate.y (get_date): When adding relative date, start with the
91479         initial time, not with the result of the first mktime call.
91481 2006-04-25  Bruno Haible  <bruno@clisp.org>
91483         * gnulib-tool (func_import): Output the include directives in three
91484         blocks, sorted separately.
91485         Reported by Ben Pfaff <blp@cs.stanford.edu>.
91487 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
91489         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
91490         to define main with arguments, for C++.  Reported by Eric Blake.
91491         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
91492         Prefer 'int main ()' to 'int main (void)', for C++.
91493         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
91494         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
91495         for 'main', for C99 and C++.
91497 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
91499         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
91500         Don't assume that exit status -1 is valid.
91501         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
91502         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
91503         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
91504         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
91505         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
91506         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
91507         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
91508         functions can be used without declaring them, or that you can
91509         exit with status -1.
91510         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
91512 2006-04-24  Karl Berry  <karl@gnu.org>
91514         * config/srclist.txt (longdouble.m4): sync lost.
91516 2006-04-24  Eric Blake  <ebb9@byu.net>
91518         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
91520 2006-04-24  Bruno Haible  <bruno@clisp.org>
91522         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
91523         poll() implementation in AIX.
91524         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
91526 2006-04-24  Bruno Haible  <bruno@clisp.org>
91528         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
91529         assigned exactly once.
91531 2006-04-23  Claudio Fontana  <claudio@gnu.org>
91532             Bruno Haible  <bruno@clisp.org>
91534         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
91535         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
91536         for AM_CPPFLAGS.
91538 2006-04-23  Bruno Haible  <bruno@clisp.org>
91540         * modules/copy-file: Depend on unistd.
91541         * modules/execute: Likewise.
91542         * modules/fatal-signal: Likewise.
91543         * modules/findprog: Likewise.
91544         * modules/mkdtemp : Likewise.
91545         * modules/pipe: Likewise.
91546         * modules/wait-process: Likewise.
91548 2006-04-23  Bruno Haible  <bruno@clisp.org>
91550         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
91551         condition was already detected.
91552         Reported by Ben Pfaff <blp@cs.stanford.edu>.
91554 2006-04-23  Bruno Haible  <bruno@clisp.org>
91556         * lib/copy-file.c: Include <unistd.h> unconditionally.
91557         * lib/execute.c: Likewise.
91558         * lib/fatal-signal.c: Likewise.
91559         * lib/findprog.c: Likewise.
91560         * lib/mkdtemp.c: Likewise.
91561         * lib/pipe.h: Likewise.
91562         * lib/pipe.c: Likewise.
91563         * lib/wait-process.h: Likewise.
91565 2006-04-23  Bruno Haible  <bruno@clisp.org>
91567         * gnulib-tool (func_usage): Fix --import description. Document
91568         --update.
91569         (func_import): Create temporary file in a temporary directory, if
91570         --dry-run is specified. Silence errors from 'grep' when there are no
91571         m4 files in $m4dir.
91572         (func_create_testdir): Silence errors from 'grep' when there are no
91573         m4 files in $m4dir.
91574         Reported by Karl Berry <karl@freefriends.org>.
91576 2006-04-20  Bruno Haible  <bruno@clisp.org>
91578         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
91579         one argument, so that the code will be portable to Autoconf 2.60.
91580         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
91581         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
91582         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
91584 2006-04-19  Derek Price  <derek@ximbiot.com>
91585             Eric Blake  <ebb9@byu.net>
91587         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
91588         rather than "/full/path.h".  Update comment to match.  Shorten &
91589         generalize m4_translit call via AS_TR_CPP.
91591 2006-04-19  Derek Price  <derek@ximbiot.com>
91592             Eric Blake  <ebb9@byu.net>
91594         * lib/inttypes.h: Correct grammar in comment.
91596 2006-04-18  Derek Price  <derek@ximbiot.com>
91597             Paul Eggert  <eggert@cs.ucla.edu>
91599         * modules/inttypes: New file.
91600         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
91602 2006-04-18  Derek Price  <derek@ximbiot.com>
91603             Paul Eggert  <eggert@cs.ucla.edu>
91605         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
91606         New files.
91608 2006-04-18  Derek Price  <derek@ximbiot.com>
91609             Paul Eggert  <eggert@cs.ucla.edu>
91611         * lib/inttypes.h: New file.
91612         * lib/strtoimax.c: Assume <inttypes.h>.
91614 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
91616         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
91617         isn't mounted.  Problem reported by Kir Kolyshkin.
91619 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
91621         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
91622         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
91623         Derek R. Price.
91624         * lib/regex.h (RE_DUP_MAX): Update comment to match current
91625         implementation.
91627 2006-04-12  Eric Blake  <ebb9@byu.net>
91629         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
91630         is now done automatically by the corresponding Autoconf macro.
91632 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
91634         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
91635         time_r.h.
91637 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
91639         Merge regex changes from libc, removing some of our
91640         POSIX-conformance changes that were rejected and redoing them in a
91641         less-intrusive way.
91643         * lib/regcomp.c (re_compile_internal, init_dfa):
91644         Length arg is now size_t, not Idx.  All uses changed.
91645         (peek_token): Forward decl now says internal_function.
91646         (__re_error_msgid, __re_error_msgid_idx):
91647         Now static rather than extern with attribute_hidden.
91648         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
91649         For some reason libc prefers K&R style defns for external functions.
91650         (regerror) [!defined _LIBC]: Likewise.
91651         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
91652         (seek_collating_symbol_entry, lookup_collation_sequence_value):
91653         (build_range_exp, build_collating_symbol):
91654         Use K&R-style defn.
91655         (re_compile_fastmap): Use '\0' to memset, not 0.
91656         (utf8_sb_map): Make the calculations more obvious.
91657         (init_dfa, parse_bracket_exp, build_charclass_op):
91658         Call calloc and cast result, as glibc does.
91659         (init_word_char, fetch_token, peek_token, peek_token_bracket):
91660         (build_range_exp, build_collating_symbol):
91661         Now internal functions.
91663         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
91665         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
91666         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
91667         Don't depend on VMS; depend on __VMS instead, for POSIX
91668         namespace cleanness.
91669         (regoff_t): Define to ssize_t, not long int.
91671         Remove the REG_ macros named below.  Instead, make the old names
91672         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
91673         __USE_GNU_REGEX.
91674         (REG_BACKSLASH_ESCAPE_IN_LISTS):
91675         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
91676         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
91677         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
91678         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
91679         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
91680         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
91681         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
91682         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
91683         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
91684         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
91685         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
91686         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
91687         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
91688         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
91689         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
91690         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
91691         (REG_NREGS):
91692         Remove.  All uses replaced by the old RE_* names.
91693         (RE_BACKSLASH_ESCAPE_IN_LISTS):
91694         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
91695         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
91696         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
91697         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
91698         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
91699         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
91700         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
91701         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
91702         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
91703         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
91704         Don't bother having these macros be independent of each others'
91705         values, since they no longer exist in the POSIX name space.
91707         Rename the following member names back to their old names,
91708         unless !__USE_GNU_REGEX.  All uses changed back.
91709         (buffer): Renamed from re_buffer.
91710         (allocated): Renamed from re_allocated.
91711         (used): Renamed from re_used.
91712         (syntax): Renamed from re_syntax.
91713         (fastmap): Renamed from re_fastmap.
91714         (translate): Renamed from re_translate.
91715         (can_be_null): Renamed from re_can_be_null.
91716         (regs_allocated): Renamed from re_regs_allocated.
91717         (fastmap_accurate): Renamed from re_fastmap_accurate.
91718         (no_sub): Renamed from re_no_sub.
91719         (not_bol): Renamed from re_not_bol.
91720         (not_eol): Renamed from re_not_eol.
91721         (newline_anchor): Renamed from re_newline_anchor.
91722         (num_regs): Renamed from rm_num_regs.
91723         (start): Renamed from rm_start.
91724         (end): Renamed from rm_end.
91726         (free_state): Move up a bit.
91728         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
91729         #define to be empty.
91730         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
91731         when that is what is intended.
91732         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
91733         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
91734         (MAX): New macro.
91735         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
91736         All uses changed back to re_malloc, etc.  It's now the caller's
91737         responsibility to check for overflow; all callers changed.
91738         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
91739         (re_x2nrealloc): Remove.
91740         (free_state): Remove decl.
91742         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
91743         (re_set_registers, re_exec):
91744         Use K&R-style defn.
91746         2006-01-31  Roland McGrath  <roland@redhat.com>
91748         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
91749         Reported by Mike Frysinger <vapier@gentoo.org>.
91751         2006-01-15  Andreas Jaeger  <aj@suse.de>
91753         [BZ #1950]
91754         * lib/regex_internal.c (re_string_reconstruct): Adjust for
91755         build_wcs_upper_buffer change.
91756         (build_wcs_upper_buffer): Change return type.
91758         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
91760         * lib/regex_internal.h: Include <stdint.h> if available.
91762         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
91764         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
91766         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
91768         * lib/regcomp.c: Adjust for changed secondary hash function.
91770         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
91772         * lib/regex.h: Pretty printing.
91773         Clean up namespace a bit.
91775         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
91777         * lib/regexec.c (update_cur_sifted_state, check_arrival,
91778         check_arrival_add_next_nodes): Avoid using uninitialized variable.
91780         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
91781                     Ulrich Drepper  <drepper@redhat.com>
91783         [BZ #1302]
91784         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
91785         changed.
91786         (bitset_word_t): Renamed from bitset_word.  All uses changed.
91788         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
91790         [BZ #281]
91791         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
91792         * lib/regcomp.c: Remove unnecessary uses of
91793         unsigned RE_TRANSLATE_TYPE.
91794         * lib/regex_internal.h: Likewise.
91795         * lib/regex_internal.c: Likewise.
91796         * lib/regexec.c: Likewise.
91797         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
91799         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
91801         * lib/regexec.c (find_recover_state): Remove unnecessary
91802         initialization.
91803         (transit_state_bkref): Make DFA a const pointer.
91804         (get_subexp): Likewise.
91805         (check_arrival): Likewise.
91806         (update_cur_sifted_state): Likewise.
91807         (re_search_internal): Likewise.
91808         (prune_impossible_nodes): Likewise.
91809         (acquire_init_state_context): Likewise.
91810         (proceed_next_node): Likewise.
91811         (set_regs): Likewise.
91812         (free_fail_stack_return): Likewise.
91813         (check_arrival_expand_ecl): Mark DFA parameter as const.
91814         (check_arrival_expand_ecl_sub): Likewise.
91815         (check_subexp_limits): Likewise.
91816         (sub_epsilon_src_nodes):  Likewise.
91817         (add_epsilon_src_nodes):  Likewise.
91818         (merge_state_array): Likewise.
91819         (update_regs): Likewise.
91820         (build_trtable): Likewise.
91821         (sift_states_backward): Mark MCTX parameter as const.
91822         (build_sifted_states): Likewise.
91823         (update_cur_sifted_state): Likewise.
91824         (sift_states_mkref): Likewise.
91825         (check_arrival_expand_ecl): Mark eclosure as const.
91826         (check_dst_limits_calc_pos_1): Likewise.
91827         * lib/regex_internal.h (re_match_context_t): Make dfa a const
91828         pointer.
91830         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
91832         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
91833         (transit_state_sb): Likewise.
91834         (transit_state_mb): Likewise.
91835         (sift_states_iter_mb): Likewise.
91836         (check_arrival_add_next_nodes): Likewise.
91837         (check_node_accept_bytes): Change first parameter to pointer-to-const.
91838         [_LIBC] (re_search_2_stub): Use mempcpy.
91840         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
91841         mbrtowc for very simple UTF-8 case.
91843         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
91844         a pointer-to-const.
91845         (re_acquire_state_context): Likewise.
91846         * lib/regex_internal.h: Adjust prototypes.
91848         * lib/regex.c: Prevent using C++ compilers.
91850         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
91851         (re_acquire_state_context): Likewise.
91853 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
91855         * modules/regex (Depends-on): Add ssize_t.
91857 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
91859         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
91860         translation table.
91862 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
91864         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
91866 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
91867             Bruno Haible  <bruno@clisp.org>
91869         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
91870         <sys/types.h> and <inttypes.h>.
91872 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91874         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
91875         `__error_t_defined', so argp.h will not typedef the former.
91877 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
91879         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
91880         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
91881         glibc names.  Even if glibc is changed to conform to POSIX, the
91882         traditional names will be available anyway, since regex depends on
91883         the extensions module.  Also, fix a longstanding typo in the
91884         implementation of Spencer ERE test #75 from grep 2.3.  Problems
91885         reported by Emanuele Giaquinta.  Also, change sense of cached
91886         variable, so that the message makes sense.
91888 2006-03-24  Simon Josefsson  <jas@extundo.com>
91890         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
91891         including some doc fixes.
91892         (base64_encode_alloc): Fix +1 bug on allocation failures.
91894 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91896         * lib/base64.c (base64_encode): Do not read past end of array with
91897         unsanitized input on systems with CHAR_BIT > 8.
91899 2006-03-24  Eric Blake  <ebb9@byu.net>
91901         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
91903 2006-03-22  Karl Berry  <karl@gnu.org>
91905         * config/srclist.txt (*setenv.[ch]): get from coreutils.
91906         * config/srclistvars.sh (COREUTILS): new var.
91908 2006-03-17  Jim Meyering  <jim@meyering.net>
91910         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
91911         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
91913 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
91915         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
91916         no longer needs it.  Instead, check that regoff_t is as least
91917         as wide as ptrdiff_t.
91919         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
91920         so that our regex.h stays compatible with the installed regex.
91921         This is helpful for installers who configure --without-included-regex.
91922         Problem reported by Emanuele Giaquinta.
91924 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
91926         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
91927         Typedef to long int, not to off_, as POSIX will likely change
91928         in that direction.
91930 2006-03-15  Eric Blake  <ebb9@byu.net>
91932         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
91934 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
91936         * lib/argp-help.c (validate_uparams): Fix typo
91937         * lib/argp-parse.c (argp_default_options): Consistently begin help
91938         messages with a lowercase letter.
91940 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
91942         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
91943         overrun buffers and shouldn't be used (much as gets shouldn't be
91944         used).
91945         * lib/time_r.c (asctime_r, ctime_r): Likewise.
91947 2006-03-08  Simon Josefsson  <jas@extundo.com>
91949         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
91950         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
91952 2006-03-08  Simon Josefsson  <jas@extundo.com>
91954         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
91955         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
91957 2006-03-08  Simon Josefsson  <jas@extundo.com>
91959         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
91960         signal that configure disabled the device.
91962 2006-03-08  Simon Josefsson  <jas@extundo.com>
91964         * build-aux/maint.mk: Fix refresh-po, to handle no translated
91965         languages.
91967 2006-03-07  Simon Josefsson  <jas@extundo.com>
91969         * modules/getopt (Depends-on): Add unistd.
91971         * modules/unistd: New file.
91973 2006-03-07  Simon Josefsson  <jas@extundo.com>
91975         * modules/gc-random: New file.
91977 2006-03-07  Simon Josefsson  <jas@extundo.com>
91979         * m4/unistd_h.m4: New file.
91981 2006-03-07  Simon Josefsson  <jas@extundo.com>
91983         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
91984         test to be side-effect free by storing the result in the cache
91985         variable gl_cv_lib_readline, and moving the assignment of
91986         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
91987         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
91989 2006-03-07  Simon Josefsson  <jas@extundo.com>
91991         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
91992         error on missing devices (the functions will return an error).
91994         * m4/gc.m4: Move random stuff to gc-random.m4
91996 2006-03-07  Simon Josefsson  <jas@extundo.com>
91998         * lib/unistd_.h: New file.
92000 2006-03-07  Simon Josefsson  <jas@extundo.com>
92002         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
92004 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
92006         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
92007         Problem reported by Juan Manuel Guerrero.
92009 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
92011         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
92012         the unistd module.
92013         * lib/getlogin_r.c: Likewise.
92014         * lib/getlogin_r.h: Likewise.
92015         * lib/glob.c: Likewise.
92016         * lib/pagealign_alloc.c: Likewise.
92017         * lib/unistd_.h: Remove; no longer needed.
92019 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
92021         * MODULES.html.sh (Support for systems lacking POSIX:2001):
92022         Add unistd.
92023         * modules/c-stack (Depends-on): Add unistd.
92024         * modules/getlogin_r: Likewise.
92025         * modules/glob: Likewise.
92026         * modules/pagealign_alloc: Likewise.
92027         * modules/unistd (Files): Remove lib/unistd_.h.
92028         (EXTRA_DIST): Remove.
92029         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
92030         need unistd_.h.
92031         (MOSTLYCLEANFILES): Remove unistd.h-t.
92033 2006-03-03  Simon Josefsson  <jas@extundo.com>
92035         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
92037 2006-03-03  Simon Josefsson  <jas@extundo.com>
92039         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
92040         libidn and bison.
92042 2006-03-03  Simon Josefsson  <jas@extundo.com>
92044         * build-aux/maint.mk: Add indent target.
92046 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
92048         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
92049         our replacement poll.h in any case, to avoid a differing
92050         declaration from a system header.  Seen on AIX.
92052 2006-03-01  Simon Josefsson  <jas@extundo.com>
92054         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
92055         <kasal@ucw.cz>.
92057 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
92059         * modules/gettime (Depends-on): Add extensions module.
92060         * modules/nanosleep (Depends-on): Likewise.
92061         * modules/settime (Depends-on): Likewise.
92063 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
92065         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
92066         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
92067         pedantically.
92068         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
92069         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
92071         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
92072         not "==".  Reported by Ralf Wildenhues.
92074 2006-03-01  Karl Berry  <karl@gnu.org>
92076         * doc/Copyright/request-*: new files, synced from gnuorg.
92078 2006-03-01  Karl Berry  <karl@gnu.org>
92080         * config/srclist.txt (Copyright/*): new entries.
92082 2006-02-28  Simon Josefsson  <jas@extundo.com>
92084         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
92086 2006-02-27  Simon Josefsson  <jas@extundo.com>
92088         * lib/base64.h: Indent #define's.  From Jim Meyering
92089         <jim@meyering.net>.
92091 2006-02-27  Jim Meyering  <jim@meyering.net>
92093         Revert the change of 2006-02-24, so these files can continue
92094         to be sync'd from gettext.
92095         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
92096         of `config.h'.
92098 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
92100         * modules/intprops: New file.
92101         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
92102         Add intprops.
92103         * modules/getloadavg (Files): Remove lib/intprops.h.
92104         (Depends-on): Add intprops.
92105         * modules/human: Likewise.
92106         * modules/inttostr: Likewise.
92107         * modules/openat: Likewise.
92108         * modules/sig2str: Likewise.
92109         * modules/userspec: Likewise.
92110         * modules/utimecmp: Likewise.
92111         * modules/xnanosleep: Likewise.
92112         * modules/xstrtol: Likewise.
92114 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
92116         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
92117         * modules/lock-tests (TESTS): Use $(EXEEXT).
92118         * modules/tls-tests: Likewise.
92119         * modules/argp-tests: Likewise.
92120         (check_PROGRAMS): New var, replacing...
92121         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
92123 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92125         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
92126         `config.h'.
92128 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
92130         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
92132 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92134         Sync from coreutils.
92135         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
92136         gl_CHDIR_SAFER.
92138 2006-02-22  Jim Meyering  <jim@meyering.net>
92140         Sync from coreutils.
92141         * m4/chdir-safer.m4: New file.
92143 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
92145         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
92146         AT_FDCWD exceeds INT_MAX.
92147         * lib/openat.h (AT_FDCWD): Likewise.
92149 2006-02-17  Eric Blake  <address@hidden>
92151         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
92153 2006-02-16  Simon Josefsson  <jas@extundo.com>
92155         * modules/getaddrinfo (Depends-on): Add sys_socket.
92157 2006-02-15  Simon Josefsson  <jas@extundo.com>
92159         * build-aux/maint.mk: Add dsyntax-check rule.
92161 2006-02-15  Eric Blake  <ebb9@byu.net>
92163         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
92164         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
92165         'present but cannot compile' warnings on cygwin.
92166         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
92167         use ws2tcpip.h if sys/socket.h works.
92168         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
92169         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
92171 2006-02-14  Simon Josefsson  <jas@extundo.com>
92173         * modules/maintainer-makefile (Files): Rename.
92175         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
92176         and (the local) Makefile.cfg to maint-cfg.mk.
92178         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
92179         to the latter.
92181         * modules/maintainer-makefile: New module.
92183         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
92184         severaly stripped to make it possible to build it up from scratch
92185         with reliable tests.
92187         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
92188         fixes to permit overriding the default actions when configure and
92189         makefile are not available.
92191 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
92193         Sync from coreutils.
92194         * modules/lstat (Depends-on): Don't depend on xalloc.
92195         (License): Change from GPL to LGPL, since this is now simply a
92196         replacement for a libc function.
92198 2006-02-14  Jim Meyering  <jim@meyering.net>
92200         Sync from coreutils.
92202         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
92203         failure on deficient systems, and simplify gnulib lgpl dependencies.
92204         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
92205         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
92207         * lib/xalloc-die.c: Remove unused definition of N_.
92209 2006-02-14  Jim Meyering  <jim@meyering.net>
92211         Sync from coreutils.
92212         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
92213         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
92214         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
92215         double-quote uses of that variable, to accommodate the rare case in
92216         which getmntent is available in none of the libraries checked.  This
92217         happens at least on FreeBSD 5.0.
92219 2006-02-13  Simon Josefsson  <jas@extundo.com>
92221         * gnulib-tool (Usage): Fix --import, from
92222         karl@freefriends.org (Karl Berry).
92224 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
92226         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
92228 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
92230         * lib/argp-namefrob.h: Restore changes accidentally lost during the
92231         "autoupdate" on 2005-12-12.
92233 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
92235         * modules/closeout (Depends-on): Remove atexit.
92237 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
92239         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
92240         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
92242 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
92244         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
92245         __EXTENSIONS__ if this causes compilation to fail.  Problem
92246         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
92247         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
92249 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
92251         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
92252         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
92253         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
92254         All uses changed.
92256 2006-01-26  Simon Josefsson  <jas@extundo.com>
92258         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
92259         prototype is visible on mingw32.
92261         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
92262         for mingw32.
92264         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
92265         mingw32).
92267 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
92269         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
92270         attempt to open for write; this always fails, at least on POSIX
92271         hosts.  This reinstates the 2006-01-09 change, which was
92272         inadvertently removed.
92274 2006-01-26  Bruno Haible  <bruno@clisp.org>
92276         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
92277         Reported by Paul Eggert.
92279 2006-01-26  Bruno Haible  <bruno@clisp.org>
92280             Paul Eggert  <eggert@cs.ucla.edu>
92282         * lib/stdbool_.h (_Bool)
92283         [(! (defined __cplusplus || defined __BEOS__)
92284           && !defined __GNUC__
92285           && !(defined __HP_cc || defined __xlc__
92286                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
92287                || defined __sgi))]:
92288         #define to signed char in these cases too; this simplifies
92289         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
92290         etc., separately) and makes it more conservative.
92292 2006-01-25  Simon Josefsson  <jas@extundo.com>
92294         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
92295         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
92296         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
92298 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
92300         * lib/argp-namefrob.h: Bugfix. Remove stray #
92302 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
92304         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
92305         so that we test the test.
92306         Check for yet another HP-UX cc bug involving *bool |= bool.
92308 2006-01-25  Karl Berry  <karl@gnu.org>
92310         * config/srclist.txt (vasnprintf.c): sync lost.
92312 2006-01-25  Jim Meyering  <jim@meyering.net>
92314         Sync from the stable (b5) branch of coreutils:
92316         * lib/fts.c (fts_children): Don't let close() clobber errno from
92317         failed fchdir().
92319         * lib/fts.c (fts_stat): When following a symlink-to-directory,
92320         don't necessarily interpret stat-fails+lstat-succeeds as indicating
92321         a dangling symlink.  That can also happen at least for ELOOP.
92322         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
92323         FYI, this bug predates the inclusion of fts.c in coreutils.
92325         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
92326         in their own block, so pre-c99 compilers don't object.
92328         Avoid the double-free (first in fts_read, second in fts_close) that
92329         would occur when an `active' directory is made inaccessible (e.g.,
92330         via chmod a-x) during a traversal.
92331         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
92332         before returning.  Reproduce this failure by
92333         mkdir -p a/b; cd a; chmod a-x . b
92334         Reported by Stavros Passas.
92336 2006-01-25  Jim Meyering  <jim@meyering.net>
92338         * lib/fileblocks.c: Remove more useless parentheses.
92339         * lib/readutmp.h: Likewise.
92341 2006-01-25  Bruno Haible  <bruno@clisp.org>
92343         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
92344         warnings.
92345         Reported by Paul Eggert.
92347 2006-01-25  Bruno Haible  <bruno@clisp.org>
92349         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
92350         rid of a trap command. For Solaris sh.
92351         Reported by Mark D. Baushke <mdb@gnu.org>.
92353 2006-01-24  Simon Josefsson  <jas@extundo.com>
92355         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
92356         Bruno.
92358 2006-01-24  Karl Berry  <karl@gnu.org>
92360         * config/srclist.txt (argp-namefrob.h): sync lost.
92362 2006-01-24  Jim Meyering  <jim@meyering.net>
92364         * modules/openat (Files): Add lib/intprops.h.
92365         From Mark D. Baushke.
92367 2006-01-24  Jim Meyering  <jim@meyering.net>
92369         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
92370         Reported by Mark D. Baushke.
92372 2006-01-24  Jim Meyering  <jim@meyering.net>
92374         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
92376 2006-01-24  Bruno Haible  <bruno@clisp.org>
92378         * modules/strnlen (Maintainer): Change from glibc to all.
92380 2006-01-24  Bruno Haible  <bruno@clisp.org>
92382         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
92383         Patch by Paul Eggert.
92385 2006-01-24  Bruno Haible  <bruno@clisp.org>
92387         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
92388         already has it.
92389         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
92390         2005-11-26.
92392         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
92393         'signed char' to avoid problems with the built-in _Bool type.
92394         Reported by Paul Eggert on 2005-11-26.
92396 2006-01-24  Bruno Haible  <bruno@clisp.org>
92398         * gnulib-tool (func_import): Avoid constructing complicated sed
92399         expressions inside backquote.
92400         Report and solution by Mark D. Baushke <mdb@gnu.org>.
92402 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
92404         These changes imported from libc.
92405         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
92406         test and two separate function calls.
92407         * lib/strndup.c (__strndup): Add libc_hidden_def.
92409 2006-01-23  Simon Josefsson  <jas@extundo.com>
92411         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
92412         Remove the test_*_SOURCES variable: automake infers it by default.
92413         * modules/tls-tests: Likewise.
92415 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
92417         Work around porting bugs reported by Dieter in
92418         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
92419         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
92420         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
92421         Include "getopt.h" first, to check interface.
92422         (getenv): Declare only if defined HAVE_DECL_GETENV &&
92423         !HAVE_DECL_GETENV.
92424         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
92425         (__strndup): Revert to K&R-style function dfns, the glibc style.
92426         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
92427         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
92428         Include strnlen.h first, to get prototype properly.
92429         (strnlen): Renamed from __strnlen.
92430         Remove weak alias.
92432 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
92434         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
92436 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
92438         * config/srclist.txt: Adjust to reflect glibc reorganization.
92439         This affects only comments.
92441 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
92443          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
92444          Reported by Bruce Korb <bkorb@gnu.org>.
92446 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
92448         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
92449         to pacify gcc -Wswitch-default.
92451 2006-01-22  Bruno Haible  <bruno@clisp.org>
92453         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
92454         temporary buffer for sprintf, take into account the precision also
92455         for 'd', 'i', 'u', 'o', 'x', 'X'.
92457 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
92459         * modules/argp-tests: New module
92460         * tests/test-argp.c: New file
92461         * tests/test-argp-2.sh: New file
92463 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
92465         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
92466         (__argp_base_name): Removed
92467         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
92468         typo.
92469         (__argp_base_name): Provide macro definition or extern declaration
92470         depending on the configuration
92472 2006-01-20  Simon Josefsson  <jas@extundo.com>
92474         * modules/inet_ntop (Depends-on): Depend on sys_socket.
92476 2006-01-20  Simon Josefsson  <jas@extundo.com>
92478         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
92480 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
92482         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
92483         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
92484         Suggested by Bruno Haible.
92486 2006-01-20  Karl Berry  <karl@gnu.org>
92488         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
92489         until changes propagate, I guess.
92491 2006-01-19  Simon Josefsson  <jas@extundo.com>
92493         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
92495 2006-01-19  Simon Josefsson  <jas@extundo.com>
92497         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
92499 2006-01-19  Simon Josefsson  <jas@extundo.com>
92501         * gnulib-tool: Set check_PROGRAMS.
92503         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
92504         modules/des-tests, modules/gc-arcfour-tests,
92505         modules/gc-arctwo-tests, modules/gc-des-tests,
92506         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
92507         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
92508         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
92509         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
92510         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
92511         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
92512         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
92513         test_*_SOURCES.
92515 2006-01-18  Simon Josefsson  <jas@extundo.com>
92517         * modules/socklen (Depends-on): Depend on sys_socket.
92519 2006-01-18  Simon Josefsson  <jas@extundo.com>
92521         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
92522         modules/des-tests, modules/gc-arcfour-tests,
92523         modules/gc-arctwo-tests, modules/gc-des-tests,
92524         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
92525         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
92526         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
92527         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
92528         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
92529         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
92530         $(EXEEXT) to automake TESTS variable, for mingw32.
92532 2006-01-17  Simon Josefsson  <jas@extundo.com>
92534         * modules/socklen (Include): Need sys/socket.h.
92536 2006-01-17  Bruno Haible  <bruno@clisp.org>
92538         * modules/ssize_t (Include): Add <sys/types.h>.
92540 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
92542         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
92543         it's not portable and it doesn't work with cross-compiles.
92544         Problem reported by Bruno Haible.  Fix missing-$ typo in
92545         'test "gl_cv_ignore_unused_libraries" ...' that prevented
92546         -zignore from being used with Sun's C compiler.
92548 2006-01-12  Simon Josefsson  <jas@extundo.com>
92550         * lib/base64.c: Fix warning, reported by Bruno Haible
92551         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
92553 2006-01-12  Bruno Haible  <bruno@clisp.org>
92555         * modules/ldd: New file.
92556         * build-aux/ldd.sh.in: New file.
92557         * MODULES.html.sh (Support for building libraries and executables): Add
92558         ldd.
92560 2006-01-12  Bruno Haible  <bruno@clisp.org>
92562         * m4/ldd.m4: New file.
92564 2006-01-12  Bruno Haible  <bruno@clisp.org>
92566         * gnulib-tool (func_import, func_create_testdir): Don't go into an
92567         endless loop while replacing $auxdir with build-aux.
92569 2006-01-11  Simon Josefsson  <jas@extundo.com>
92571         * lib/stdint_.h (SIZE_MAX): Add missing (.
92573 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
92575         Sync from coreutils.
92576         * lib/md5.c: Fix commentary typos.
92577         (alignof, UNALIGNED_P): No need for a GCC-specific version.
92578         * lib/md5.h (__attribute__): Remove; unused.
92579         * lib/sha1.c: Fix commentary to match md5 better.
92580         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
92581         so that we don't need to worry about alignment.  All uses changed.
92582         This merges the 2005-10-28 md5 change into sha1.
92584 2006-01-11  Jim Meyering  <jim@meyering.net>
92586         Sync from coreutils.
92587         * lib/md5.c (OP): Fix spacing.
92589 2006-01-11  Bruno Haible  <bruno@clisp.org>
92591         Ensure automatic ordering between gl_LOCK and gl_ARGP.
92592         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
92593         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
92595 2006-01-11  Bruno Haible  <bruno@clisp.org>
92597         Ensure automatic ordering between gl_LOCK and gl_ARGP.
92598         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
92599         the "early" section as well.
92601 2006-01-11  Bruno Haible  <bruno@clisp.org>
92603         Avoid "ar: no archive members specified" error on MacOS X.
92604         * gnulib-tool (func_modules_add_dummy): New function.
92605         (func_import, func_create_testdir): Invoke it.
92607 2006-01-11  Bruno Haible  <bruno@clisp.org>
92609         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
92610         with $auxdir in AC_CONFIG_FILES statements.
92612 2006-01-11  Bruno Haible  <bruno@clisp.org>
92614         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
92615         Initialize also noinst_HEADERS to empty.
92617 2006-01-11  Bruno Haible  <bruno@clisp.org>
92619         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
92620         variables.
92621         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
92622         autoreconf.
92624 2006-01-11  Bruno Haible  <bruno@clisp.org>
92626         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
92627         overridable by the user.
92628         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
92630 2006-01-10  Simon Josefsson  <jas@extundo.com>
92632         * modules/sys_socket: New file.
92634 2006-01-10  Simon Josefsson  <jas@extundo.com>
92636         * m4/sys_socket_h.m4: New file.
92638 2006-01-10  Simon Josefsson  <jas@extundo.com>
92640         * lib/socket_.h: New file.
92642 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
92644         * modules/readutmp (Maintainer): Add myself.
92646 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
92648         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
92649         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
92650         People who are still concerned with buggy memcmp implementations
92651         can invoke gl_FUNC_MEMCMP themselves.
92653 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
92655         * lib/regex_internal.h (BITSET_WORD_BITS):
92656         Work around a bug in 64-bit PGC (before version 6.1-2), where the
92657         preprocessor mishandles large unsigned values as if they were signed.
92658         Problem reported by Claudio Fontana in
92659         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
92661 2006-01-10  Jim Meyering  <jim@meyering.net>
92663         Avoid the double-free (first in fts_read, second in fts_close) that
92664         would occur when an `active' directory is made inaccessible (e.g.,
92665         via chmod a-x) during a traversal.
92666         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
92667         before returning.  Reproduce this failure by
92668         mkdir -p a/b; cd a; chmod a-x . b
92669         Reported by Stavros Passas.
92671         Sync from coreutils.
92672         * lib/sha1.c: Tweak grammar in a comment.
92674 2006-01-10  Jim Meyering  <jim@meyering.net>
92676         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
92677         Patch by Joerg Sonnenberger.
92679 2006-01-10  Bruno Haible  <bruno@clisp.org>
92681         * modules/readutmp: Depend on module free.
92682         * modules/strtok_r: Depend on module restrict.
92684 2006-01-10  Bruno Haible  <bruno@clisp.org>
92686         * modules/gettext (configure.ac): Add an invocation of
92687         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
92689 2006-01-10  Bruno Haible  <bruno@clisp.org>
92691         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
92692         Reported by Werner Lemberg <wl@gnu.org>.
92694 2006-01-10  Bruno Haible  <bruno@clisp.org>
92696         * lib/localcharset.c: Update from GNU gettext.
92698 2006-01-10  Bruno Haible  <bruno@clisp.org>
92700         * lib/argp.h (__const): Remove macro. Use const instead.
92701         * lib/argp-fmtstream.h (__const): Likewise.
92702         * lib/glob_.h (__const): Remove macro.
92703         * lib/glob-libc.h: Use const instead of __const.
92705 2006-01-10  Bruno Haible  <bruno@clisp.org>
92707         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
92708         variable.
92709         Needed to avoid an automake error regarding the 'gettext' module.
92711 2006-01-09  Simon Josefsson  <jas@extundo.com>
92713         * modules/inet_ntop (Depends-on): Add restrict.
92715 2006-01-09  Simon Josefsson  <jas@extundo.com>
92717         * modules/gc-rijndael-tests (License): Put under LGPL.
92719         * modules/gc-des-tests (License): Likewise.
92721         * modules/gc-arcfour-tests (License): Likewise.
92723         * modules/gc-arctwo-tests (License): Likewise.
92725         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
92727         * modules/gc-hmac-sha1-tests (Files): Likewise.
92729         * modules/gc-hmac-md5-tests (License): Likewise.
92731         * modules/gc-sha1-tests (License): Likewise.
92733         * modules/gc-md5-tests (License): Likewise.
92735         * modules/gc-md4-tests (License): Likewise.
92737         * modules/gc-md2-tests (License): Likewise.
92739         * modules/gc-tests (License): Likewise.
92741         * modules/des-tests (License): Likewise.
92743         * modules/md4-tests (License): Likewise.
92745         * modules/md2-tests (License): Likewise.
92747 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
92749         Sync from coreutils:
92751         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
92752         * modules/lib-ignore: New file.
92753         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
92754         chdir-safer.m4, lchmod.m4.
92755         * modules/openat: Add mkdirat.c, openat-priv.h.
92757 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
92759         Sync from coreutils.
92760         * m4/lib-ignore.m4: New file.
92761         * m4/lchmod.m4: New file.
92763 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
92765         Sync from coreutils.
92766         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
92767         for write access: POSIX says that must fail.
92768         * lib/fts.c (diropen): Likewise.
92769         * lib/save-cwd.c (save_cwd): Likewise.
92770         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
92771         well, for minor improvements on hosts that lack O_DIRECTORY.
92772         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
92773         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
92774         Fall back on chown if open failed with EACCES.
92776         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
92777         Report an error at compile-time if only a 1-second nominal clock
92778         resolution is found.
92780         * lib/lchmod.h: New file.
92781         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
92782         (make_dir_parents): Use lchown rather than chown, and
92783         lchmod rather than chmod.
92785         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
92786         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
92787         "proc" reported by n0dalus.
92789         * lib/mountlist.c: Include <limits.h>.
92790         (dev_from_mount_options)
92791         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
92792         New function.  It no longer assumes "dev=" has the System V meaning
92793         on Linux (since it doesn't).  It also parses "dev=" more carefully.
92794         (read_file_system_list)
92795         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
92796         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
92797         dev= in that case.
92799         * lib/posixtm.h (PDS_PRE_2000): New macro.
92800         * lib/posixtm.c (year): Arg is now syntax_bits rather than
92801         allow_century.  All usages changed.  Reject dates outside the range
92802         1969-1999 if PDS_PRE_2000 is used.
92804 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
92806         Sync from coreutils.
92807         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
92808         (Time of day items): Mention the possibility of leap seconds.
92809         Problem reported by Dr. David Alan Gilbert.
92811 2006-01-09  Jim Meyering  <jim@meyering.net>
92813         Sync from coreutils.
92815         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
92817         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
92819         * lib/modechange.c (mode_compile): Reject an invalid mode string
92820         that starts with an octal digit.  From Andreas Gruenbacher.
92822         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
92823         and dup to open_safer and dup_safer, respectively.
92824         (openat_permissive): Fix typo in comment.
92826         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
92827         "gettext.h"; either no longer needed or are guaranteed by openat.h.
92828         (_): Remove; no longer needed.
92829         (openat): Renamed from rpl_openat; no need for rpl_openat
92830         since openat.h renames openat for us.
92831         Replace most of the body with a call to openat_permissive,
92832         to avoid duplicate code.
92833         Port to (probably hypothetical) environments were mode_t is
92834         wider than int.
92835         (openat_permissive): Require mode arg, so that we can check
92836         types better.  Put it just after flags.  Change cwd failure
92837         indicator from pointer-to-bool to pointer-to-errno-value.
92838         All callers changed.
92839         Invoke openat_save_fail and/or openat_restore_fail if
92840         cwd_errno is null, so that openat can call us.
92841         (openat_permissive, fdopendir, fstatat, unlinkat):
92842         Simplify errno handling to avoid some duplicate code,
92843         as it's OK to set errno on success.
92844         * lib/openat.h: Revamp code so that function macros depend on
92845         __OPENAT_PREFIX only, not also on AT_FDCWD.
92846         (openat_ro): Remove.  Caller changed to use openat_permissive.
92847         (openat_permissive): Now a macro, if not a function.
92848         (openat_restore_fail, openat_save_fail): Now always functions,
92849         since mkdirat needs them even if __OPENAT_PREFIX is defined.
92851         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
92852         and openat.c.
92853         * lib/mkdirat.c: Include openat-priv.h.
92854         Remove definitions of macros defined therein.
92855         * lib/openat.c: Likewise.
92857         * lib/mkdirat.c (mkdirat): New file and function.
92858         * lib/openat.h (mkdirat): Declare.
92860         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
92862         * lib/openat.h (openat_permissive): Declare.
92863         (openat_ro): Define.
92865         * lib/openat.c (EXPECTED_ERRNO): New macro.
92866         (openat_permissive): New function -- used in remove.c rewrite.
92867         (all functions): Set errno just before returning, only if there
92868         was an actual failure.
92869         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
92871         Emulate openat-family functions using Linux's procfs, if possible.
92872         Idea and some code based on Ulrich Drepper's glibc changes.
92874         * lib/openat.c: (BUILD_PROC_NAME): New macro.
92875         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
92876         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
92877         before falling back on save_cwd and restore_cwd.
92878         (fdopendir, fstatat, unlinkat): Likewise.
92880         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
92881         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
92883         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
92884         as second argument to va_arg.  Otherwise, some versions of gcc
92885         warn that `if this code is reached, the program will abort'.
92887 2006-01-09  Jim Meyering  <jim@meyering.net>
92889         Sync from coreutils.
92890         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
92891         Require openat-priv.h.
92893 2006-01-09  Bruno Haible  <bruno@clisp.org>
92895         * modules/strnlen (Include): Use strnlen.h.
92897 2006-01-09  Bruno Haible  <bruno@clisp.org>
92899         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
92901 2006-01-09  Bruno Haible  <bruno@clisp.org>
92903         * lib/sysexit_.h (EX_OK): New macro.
92904         Suggested by Martin Lambers <marlam@marlam.de>.
92906 2006-01-09  Bruno Haible  <bruno@clisp.org>
92908         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
92909         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
92911 2006-01-09  Bruno Haible  <bruno@clisp.org>
92913         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
92914         numbers.
92916 2006-01-09  Bruno Haible  <bruno@clisp.org>
92918         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
92919         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
92920         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
92921         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
92923 2006-01-09  Bruno Haible  <bruno@clisp.org>
92925         * build-aux/javacomp.sh.in: New file, moved from lib/.
92926         * modules/javacomp-script (Files): Update.
92927         (configure.ac): Add AC_CONFIG_FILES invocation.
92928         (EXTRA_DIST): Remove variable.
92930         * build-aux/javaexec.sh.in: New file, moved from lib/.
92931         * modules/javaexec (Files): Update.
92932         (configure.ac): Add AC_CONFIG_FILES invocation.
92933         (EXTRA_DIST): Remove javaexec.sh.in.
92935         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
92936         * modules/csharpcomp-script (Files): Update.
92937         (configure.ac): Add AC_CONFIG_FILES invocation.
92938         (EXTRA_DIST): Remove variable.
92940         * build-aux/csharpexec.sh.in: New file, moved from lib/.
92941         * modules/csharpexec (Files): Update.
92942         (configure.ac): Add AC_CONFIG_FILES invocation.
92943         (EXTRA_DIST): Remove csharpexec.sh.in.
92945 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
92947         Sync from coreutils.
92949         Add POSIX ACL support
92950         * lib/acl.h (copy_acl, set_acl): Add declarations.
92951         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
92952         systems other than Linux.
92953         (chmod_or_fchmod): New function: use fchmod when possible,
92954         and chmod otherwise.
92955         (file_has_acl): Add a POSIX ACL implementation, with a
92956         Linux-specific subcase.
92957         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
92958         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
92959         acls are unsupported.
92960         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
92961         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
92962         are unsupported.
92964 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
92966         Sync from coreutils.
92967         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
92969 2006-01-07  Bruno Haible  <bruno@clisp.org>
92971         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
92972         gl_EARLY.
92974 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
92976         * lib/strftime.c (tzname): Don't declare if it is already #defined.
92977         Problem reported for Mingw by Mark Junker.
92979 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
92981         * README: Gnulib normally doesn't generate a tarball.
92983 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
92985         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
92986         long int, not int, for nanosecond counts, so that people who are
92987         used to POSIX struct timespec won't be surprised.  Reported by Jim
92988         Meyering.
92990 2005-12-28  Bruno Haible  <bruno@clisp.org>
92992         * build-aux/config.rpath: Update from GNU gettext.
92994 2005-12-16  Jim Meyering  <jim@meyering.net>
92996         * modules/fprintftime: New module.
92997         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
92999 2005-12-16  Jim Meyering  <jim@meyering.net>
93001         * m4/fprintftime.m4: New file.
93003 2005-12-16  Jim Meyering  <jim@meyering.net>
93005         * lib/fprintftime.c, lib/fprintftime.h: New files.
93007 2005-12-15  Simon Josefsson  <jas@extundo.com>
93009         * modules/socklen (configure.ac): Fix M4 macro name, to align with
93010         new m4/socklen.m4.
93012 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
93014         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
93015         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
93017 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
93019         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
93020         * lib/argp-help.c (fill_in_uparams): Check if the constructed
93021         struct uparams is valid. Fall back to the default values if it is
93022         not.
93024 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
93026         * modules/argp (Files): Add argp-pin.c
93027         (Depends-on): dirname
93028         (lib_SOURCES): Add argp-pin.c
93030 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
93032         * m4/argp.m4:  Check if program_invocation_name and
93033         program_invocation_short_name are declared and define appropriate
93034         macros if they are not.
93036 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
93038         * lib/argp-help.c (__argp_base_name): New function
93039         (__argp_short_program_name): Rewrite using __argp_base_name
93040         * lib/argp-namefrob.h: Define program_invocation_name and
93041         program_invocation_short_name if requested
93042         (__argp_base_name): Add prototype
93043         * lib/argp-parse.c (argp_def): Use gettext wrappers
93044         (argp_default_parser): Use __argp_base_name
93045         * lib/argp-pin.c: New file. Defines program_invocation_name and
93046         program_invocation_short_name on systems that lack them.
93048 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
93050         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
93051         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
93052         porting problem reported by Georg Schwarz in
93053         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
93055 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
93057         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
93058         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
93059         porting problem reported by Georg Schwarz in
93060         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
93062 2005-12-05  Bruno Haible  <bruno@clisp.org>
93064         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
93065         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
93066         Reported by Mark Junker <mjscod@gmx.de>.
93068 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
93070         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
93071         Use implementation from Albert Chin, with some
93072         comments/corrections by Stepan Kasal and myself.
93074 2005-12-02  Bruno Haible  <bruno@clisp.org>
93076         * gnulib-tool (func_import): Accept GPLed build tool modules when
93077         --lgpl is given.
93078         * modules/csharpcomp-script: New file.
93079         * modules/csharpcomp: Depend on it.
93080         * modules/javacomp-script: New file.
93081         * modules/javacomp: Depend on it.
93082         Suggested by Simon Josefsson.
93084 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
93086         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
93087         statement, to work around an HP-UX 10.20 compiler bug reported by
93088         Peter O'Gorman.
93090 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
93092         * modules/savedir (Depends-on): Add openat.
93094 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
93096         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
93097         (uintmax_t) [defined uintmax_t]: Do not declare.
93098         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
93099         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
93100         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
93101         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
93102         sake of portability to weird hosts that C allows (though we don't
93103         know of any practical examples).
93105         * lib/savedir.h (fdsavedir): New decl.
93106         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
93107         contains most of the former guts of savedir.
93108         (savedir): Use savedirstream.
93109         Include "openat.h".
93111 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
93113         * modules/obstack (Files): Add m4/ulonglong.m4.
93114         Problem reported by Davide Angelocola.
93116 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
93118         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
93119         coreutils no longer futzes with rounding modes.
93121 2005-11-14  Jim Meyering  <jim@meyering.net>
93123         * lib/mkstemp-safer.c: Include <config.h>, required for possible
93124         replacement of mkstemp.
93126 2005-11-10  Simon Josefsson  <jas@extundo.com>
93128         * lib/readline.c: Remove EOL.
93130 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
93132         * modules/gethrxtime (Depends-on): Add gettime.
93134 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
93136         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
93137         or gettimeofday; no longer needed.
93139 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
93141         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
93142         time business.
93143         (gethrxtime) [! (HAVE_NANOUPTIME
93144         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
93145         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
93146         our own approximation.
93148 2005-11-08  Eric Blake  <ebb9@byu.net>
93150         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
93152 2005-11-08  Eric Blake  <ebb9@byu.net>
93154         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
93156 2005-11-04  Bruno Haible  <bruno@clisp.org>
93158         * gnulib-tool: Implement --update mode.
93160 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
93162         Fix porting problem reported by Theodoros V. Kalamatianos.
93163         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
93164         Don't assume that futimes failing means we must fail.
93166 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
93168         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
93169         variables to suggest the intended function of the PATH_MAX check.
93171 2005-10-30  Kean Johnston  <jkj@sco.com>
93173         Trivial changes to support SCO systems.
93174         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
93175         as PATH_MAX.
93176         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
93177         where __ptr is null when no I/O is pending.
93179 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
93181         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
93182         leave errno alone.  Problem reported by Dmitry V. Levin.
93184 2005-10-28  Simon Josefsson  <jas@extundo.com>
93186         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
93187         Test more.
93189         * tests/test-gc-md2.c, tests/test-md2.c: New files.
93191         * modules/md2, modules/md2-tests: New files.
93193 2005-10-28  Simon Josefsson  <jas@extundo.com>
93195         * m4/inet_ntop.m4: More tests.
93197         * m4/gc-md2.m4, md2.m4: New file.
93199 2005-10-28  Simon Josefsson  <jas@extundo.com>
93201         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
93202         "restrict" keywords, as per POSIX.  Protect the function
93203         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
93204         Don't use K&R prototypes.  Check the sprintf return values.
93205         Re-define EAFNOSUPPORT if not present.  Indent.
93207         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
93208         suggested by Bruno Haible <bruno@clisp.org>.
93210         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
93212         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
93214         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
93215         libgcrypt).
93217         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
93219         * lib/md2.h, lib/md2.c: New files.
93221 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
93223         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
93224         errno alone.  Problem reported by Frederic Jolliton.
93226 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
93228         * modules/verify (License): Change from GPL to LGPL.  This is a
93229         tiny module and there are apparently near-equivalents that are
93230         under the BSD license.
93232 2005-10-24  Simon Josefsson  <jas@extundo.com>
93234         * modules/sha1: Relicense to LGPL.
93236 2005-10-24  Simon Josefsson  <jas@extundo.com>
93238         * lib/md4.h: Shrink buffer size, now that we changed the type.
93240 2005-10-23  Simon Josefsson  <jas@extundo.com>
93242         * gnulib-tool (func_import): Fix --tests-base.
93244 2005-10-22  Simon Josefsson  <jas@extundo.com>
93246         * modules/arcfour (Depends-on): Need stdint.
93248 2005-10-22  Simon Josefsson  <jas@extundo.com>
93250         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
93251         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
93253 2005-10-22  Simon Josefsson  <jas@extundo.com>
93255         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
93256         suggested by Bruno Haible <bruno@clisp.org>.
93258 2005-10-22  Simon Josefsson  <jas@extundo.com>
93260         * lib/crc.h: Include stddef.h, for size_t.
93262 2005-10-22  Simon Josefsson  <jas@extundo.com>
93264         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
93265         arcfour_context struct (simplify test vector testing in GNU
93266         Shishi).
93268 2005-10-21  Simon Josefsson  <jas@extundo.com>
93270         * modules/des, modules/des-tests: New files.
93272         * modules/gc-des, modules/gc-des-tests: New files.
93274         * tests/test-des.c, tests/test-gc-des.c: New file.
93276 2005-10-21  Simon Josefsson  <jas@extundo.com>
93278         * modules/arctwo, modules/arctwo-tests: New files.
93280         * tests/test-arctwo.c: New file.
93282         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
93284         * tests/test-gc-arctwo.c: New file.
93286 2005-10-21  Simon Josefsson  <jas@extundo.com>
93288         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
93289         Bruno Haible <bruno@clisp.org>.
93291         * m4/gc-des.m4: New file.
93293 2005-10-21  Simon Josefsson  <jas@extundo.com>
93295         * m4/arctwo.m4: New file.
93297         * m4/gc-arctwo.m4: New file.
93299 2005-10-21  Simon Josefsson  <jas@extundo.com>
93301         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
93302         block.
93304 2005-10-21  Simon Josefsson  <jas@extundo.com>
93306         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
93307         <bruno@clisp.org>.
93309         * lib/hmac-sha1.c (hmac_sha1): Likewise.
93311         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
93312         Bruno Haible <bruno@clisp.org>.
93314         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
93315         <bruno@clisp.org>.
93317 2005-10-21  Simon Josefsson  <jas@extundo.com>
93319         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
93321 2005-10-21  Simon Josefsson  <jas@extundo.com>
93323         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
93325 2005-10-21  Simon Josefsson  <jas@extundo.com>
93327         * lib/des.h, lib/des.c: New files.
93329         * lib/gc-gnulib.c: Support DES.c
93331 2005-10-21  Simon Josefsson  <jas@extundo.com>
93333         * lib/arctwo.h, lib/arctwo.c: New files.
93335         * lib/gc-gnulib.c: Support ARCTWO.
93337 2005-10-21  Simon Josefsson  <jas@extundo.com>
93339         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
93340         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
93342 2005-10-21  Simon Josefsson  <jas@extundo.com>
93344         * gnulib-tool (func_import, func_create_testdir): Define automake
93345         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
93346         Makefile.am snippet),
93347         suggested by Bruno Haible <bruno@clisp.org>.
93349         * modules/gc (Makefile.am): Use it.
93351 2005-10-21  Bruno Haible  <bruno@clisp.org>
93353         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
93354         patch.
93356 2005-10-19  Simon Josefsson  <jas@extundo.com>
93358         * tests/test-gc-rijndael.c: New file.
93360         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
93362 2005-10-19  Simon Josefsson  <jas@extundo.com>
93364         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
93365         interface too.
93367 2005-10-19  Simon Josefsson  <jas@extundo.com>
93369         * tests/test-gc-arcfour.c: New file.
93371         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
93373 2005-10-19  Simon Josefsson  <jas@extundo.com>
93375         * modules/gc-md4, modules/gc-md4-tests: New file.
93377         * tests/test-gc-md4.c: New file.
93379 2005-10-19  Simon Josefsson  <jas@extundo.com>
93381         * m4/gc-md4.m4: New file.
93383 2005-10-19  Simon Josefsson  <jas@extundo.com>
93385         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
93386         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
93387         <kasal@ucw.cz>.
93389 2005-10-19  Simon Josefsson  <jas@extundo.com>
93391         * m4/gc-arcfour.m4: New file.
93393         * m4/gc-rijndael.m4: New file.
93395 2005-10-19  Simon Josefsson  <jas@extundo.com>
93397         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
93399 2005-10-19  Simon Josefsson  <jas@extundo.com>
93401         * lib/gc-gnulib.c: Support ARCFOUR.
93403 2005-10-19  Simon Josefsson  <jas@extundo.com>
93405         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
93406         support.
93408         * lib/gc.h: Add ECB enum type.
93410         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
93412 2005-10-18  Simon Josefsson  <jas@extundo.com>
93414         * tests/test-md5.c: New file.
93416         * modules/md5-tests: New file.
93418 2005-10-18  Simon Josefsson  <jas@extundo.com>
93420         * tests/test-md4.c: New file.
93422         * modules/md4, modules/md4-tests: New files.
93424 2005-10-18  Simon Josefsson  <jas@extundo.com>
93426         * m4/md4.m4: New file.
93428 2005-10-18  Simon Josefsson  <jas@extundo.com>
93430         * lib/md4.h, lib/md4.c: New files, based on md5.?.
93432 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
93434         * gnulib-tool (func_create_testdir): Omit the second check whether
93435         BUILT_SOURCES in nonempty.
93437 2005-10-17  Simon Josefsson  <jas@extundo.com>
93439         * tests/test-rijndael.c: New file.
93441 2005-10-17  Simon Josefsson  <jas@extundo.com>
93443         * modules/sha1: Depend on stdint instead of md5.
93445         * modules/md5: Depend on stdint, remove uint32_t.
93447 2005-10-17  Simon Josefsson  <jas@extundo.com>
93449         * modules/gc-sha1-tests: New file.
93451         * tests/test-gc-sha1.c: New file.
93453 2005-10-17  Simon Josefsson  <jas@extundo.com>
93455         * m4/md5.m4: Remove call to uint32_t.m4.
93457 2005-10-17  Simon Josefsson  <jas@extundo.com>
93459         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
93461         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
93462         md5.h.
93464         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
93466         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
93468 2005-10-17  Simon Josefsson  <jas@extundo.com>
93470         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
93472 2005-10-17  Simon Josefsson  <jas@extundo.com>
93474         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
93476 2005-10-17  Simon Josefsson  <jas@extundo.com>
93478         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
93480         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
93482 2005-10-17  Bruno Haible  <bruno@clisp.org>
93484         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
93485         that it can also be used in a test.
93487 2005-10-16  Bruno Haible  <bruno@clisp.org>
93489         * gnulib-tool (func_emit_tests_Makefile_am): Also define
93490         TESTS_ENVIRONMENT, so that individual tests can augment it.
93492         * gnulib-tool (func_create_testdir): Use an intermediate target for
93493         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
93494         macros, like $(ALLOCA_H), which cannot be passed through the command
93495         line.
93497 2005-10-15  Simon Josefsson  <jas@extundo.com>
93499         * modules/rijndael-tests: New file.
93501         * modules/rijndael: New file.
93503 2005-10-15  Simon Josefsson  <jas@extundo.com>
93505         * m4/rijndael.m4: New file.
93507 2005-10-15  Simon Josefsson  <jas@extundo.com>
93509         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
93511         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
93513 2005-10-14  Simon Josefsson  <jas@extundo.com>
93515         * tests/test-arcfour.c: New file.
93517         * modules/arcfour, modules/arcfour-tests: New files.
93519 2005-10-14  Simon Josefsson  <jas@extundo.com>
93521         * m4/arcfour.m4: New file.
93523 2005-10-14  Simon Josefsson  <jas@extundo.com>
93525         * lib/arcfour.h, lib/arcfour.c: New files.
93527 2005-10-14  Roland McGrath  <roland@redhat.com>
93529         Import from libc.  [BZ #1331]
93530         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
93531         macro argument.
93532         Reported by Matej Vela <vela@debian.org>.
93534 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
93536         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
93537         include <wchar.h>; no longer needed.
93539 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
93541         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
93543 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
93544         and  Ulrich Drepper  <drepper@redhat.com>
93546         Import from libc.
93547         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
93548         instead of inline stream orientation test and two separate
93549         function calls.  Pay no attention to USE_IN_LIBIO.
93551 2005-10-13  Simon Josefsson  <jas@extundo.com>
93553         * modules/gc-hmac-md5-tests: New file.
93555         * tests/test-gc-hmac-sha1.c: New file.
93557         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
93559         * modules/gc-hmac-md5-tests: New file.
93561         * tests/test-gc-md5.c: New file.
93563         * modules/gc-md5-tests: New file.
93565 2005-10-13  Simon Josefsson  <jas@extundo.com>
93567         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
93568         Move memory allocation outside of loop.
93570 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
93572         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
93573         intermediate directory is in a read-only file system.  Problem
93574         reported by Eric Blake.
93576 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
93578         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
93580 2005-10-12  Simon Josefsson  <jas@extundo.com>
93582         * tests/test-hmac-sha1.c: New file.
93584         * modules/hmac-sha1-tests: New file.
93586         * modules/hmac-sha1: New file.
93588 2005-10-12  Simon Josefsson  <jas@extundo.com>
93590         * modules/gc-sha1: New file.
93592 2005-10-12  Simon Josefsson  <jas@extundo.com>
93594         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
93596         * tests/test-gc-pbkdf2-sha1.c: New file.
93598 2005-10-12  Simon Josefsson  <jas@extundo.com>
93600         * modules/gc-md5, modules/gc-hmac-md5: New files.
93602         * modules/gc (Files): Remove md5, memxor and hmac files.
93604 2005-10-12  Simon Josefsson  <jas@extundo.com>
93606         * m4/gc-pbkdf2-sha1.m4: New file.
93608         * m4/gc-hmac-sha1.m4: New file.
93610         * m4/gc-sha1: New file.
93612         * m4/hmac-sha1.m4: New file.
93614 2005-10-12  Simon Josefsson  <jas@extundo.com>
93616         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
93618         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
93620 2005-10-12  Simon Josefsson  <jas@extundo.com>
93622         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
93623         suggested by Bruno Haible <bruno@clisp.org>.
93625 2005-10-12  Simon Josefsson  <jas@extundo.com>
93627         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
93629 2005-10-12  Simon Josefsson  <jas@extundo.com>
93631         * lib/gc-pbkdf2-sha1.c: New file.
93633         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
93635 2005-10-12  Simon Josefsson  <jas@extundo.com>
93637         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
93639         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
93641 2005-10-12  Simon Josefsson  <jas@extundo.com>
93643         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
93644         GC_USE_HMAC_MD5, respectively.
93646         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
93647         (gc_md5): Fix typo.
93649         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
93651         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
93653         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
93655 2005-10-12  Bruno Haible  <bruno@clisp.org>
93657         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
93658         Reported by Stepan Kasal <kasal@ucw.cz>.
93660 2005-10-11  Simon Josefsson  <jas@extundo.com>
93662         * tests/test-crc.c: New file.
93664         * modules/crc, modules/crc-tests: New files.
93666 2005-10-11  Simon Josefsson  <jas@extundo.com>
93668         * m4/crc.m4: New file.
93670 2005-10-11  Simon Josefsson  <jas@extundo.com>
93672         * lib/gc.h: Add gc_hash and gc_hash_buffer.
93674         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
93676         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
93678 2005-10-11  Simon Josefsson  <jas@extundo.com>
93680         * lib/crc.h, lib/crc.c: New files.
93682         * lib/gc.h (gc_hash_buffer): Add doc.
93684 2005-10-11  Bruno Haible  <bruno@clisp.org>
93686         * modules/c-strcasestr: New file.
93687         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
93689 2005-10-11  Bruno Haible  <bruno@clisp.org>
93691         * modules/c-strcase: New file.
93692         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
93694 2005-10-11  Bruno Haible  <bruno@clisp.org>
93696         * lib/strcasecmp.c: Include limits.h.
93697         (strcasecmp): Avoid integer overflow on exotic platforms.
93698         * lib/strncasecmp.c: Include limits.h.
93699         (strncasecmp): Avoid integer overflow on exotic platforms.
93700         Reported by Paul Eggert.
93702 2005-10-11  Bruno Haible  <bruno@clisp.org>
93704         * lib/c-strcasestr.h: New file, from GNU gettext.
93705         * lib/c-strcasestr.c: New file, from GNU gettext.
93707 2005-10-11  Bruno Haible  <bruno@clisp.org>
93709         * lib/c-strcase.h: New file, from GNU gettext.
93710         * lib/c-strcasecmp.c: New file, from GNU gettext.
93711         * lib/c-strncasecmp.c: New file, from GNU gettext.
93713 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
93715         * modules/mempcpy (License): GPL -> LGPL.
93716         * modules/strchrnul (License): Likewise.
93717         * modules/sysexits (License): Likewise.
93719 2005-10-08  Simon Josefsson  <jas@extundo.com>
93721         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
93723 2005-10-07  Simon Josefsson  <jas@extundo.com>
93725         * m4/memxor.m4: Remove gl_C_RESTRICT call.
93727 2005-10-06  Simon Josefsson  <jas@extundo.com>
93729         * tests/test-hmac-md5.c: New file.
93731         * modules/hmac-md5-tests: New file.
93733         * modules/hmac-md5: New file.
93735 2005-10-06  Simon Josefsson  <jas@extundo.com>
93737         * m4/hmac-md5.m4: New file.
93739         * m4/memxor.m4: Require gl_C_RESTRICT.
93741 2005-10-06  Simon Josefsson  <jas@extundo.com>
93743         * lib/memxor.c (memxor): Avoid casts and warnings.
93745 2005-10-06  Simon Josefsson  <jas@extundo.com>
93747         * lib/hmac-md5.c: New file.
93749         * lib/hmac.h: New file.
93751 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
93753         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
93754         promotes to int, not unsigned int, to catch the AIX 5.3
93755         compiler bug.
93757 2005-10-05  Simon Josefsson  <jas@extundo.com>
93759         * modules/memxor: New file.
93761         * modules/iconv (Files): Move config.rpath to havelib, it is used
93762         there.
93764         * modules/havelib (Files): Add config.rpath.
93766 2005-10-05  Simon Josefsson  <jas@extundo.com>
93768         * m4/memxor.m4: New file.
93770 2005-10-05  Simon Josefsson  <jas@extundo.com>
93772         * lib/memxor.c (memxor): Fix compiler error.
93774         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
93775         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
93777         * lib/memxor.h, lib/memxor.c: New files.
93779         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
93780         we assume all systems have it, suggested by Jim Meyering
93781         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
93782         any systems lack sys/socket.h; mingw32 is known to lack it, but we
93783         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
93784         same reasons.
93786 2005-10-05  Simon Josefsson  <jas@extundo.com>
93788         * config/srclist.txt: Add glibc bug 1423 for md5.h.
93790 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
93792         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
93793         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
93794         needed, since the source code now assumes these .h files.
93796 2005-10-05  Derek Price  <derek@ximbiot.com>
93798         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
93800 2005-10-05  Bruno Haible  <bruno@clisp.org>
93802         * modules/stdint (License): Change to LGPL.
93804 2005-10-04  Simon Josefsson  <jas@extundo.com>
93806         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
93807         D. Baushke" <mdb@gnu.org>.
93809 2005-10-04  Bruno Haible  <bruno@clisp.org>
93811         * lib/verify.h (verify_true): Provide alternative definition for C++.
93813 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
93815         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
93816         (SSIZE_MAX): New macro, if not already defined.
93817         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
93818         than 2 GiB.
93820 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
93822         Sync from coreutils.
93823         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
93824         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
93825         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
93826         ULLONG_MAX doesn't work with 2.7.2.1.
93828 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
93830         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
93831         From Ben Pfaff.
93833         * modules/exclude (Depends-on): Depend on verify.
93834         * modules/strtoimax (Depends-on): Likewise.
93835         * modules/utimecmp (Depends-on): Likewise.
93837 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
93839         * lib/exclude.c: Include verify.h.
93840         (verify): Remove.  All callers changed to use verify.h's version.
93841         * lib/strtoimax.c: Likewise.
93842         * lib/utimecmp.c: Likewis.e
93844         Sync from coreutils.
93845         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
93846         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
93847         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
93848         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
93849         bother returning ENOSYS if settimeofday or stime fails; just let
93850         them return whatever errno they want to return.
93851         * lib/utimens.c: Include unistd.h, for dup2.
93852         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
93853         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
93855 2005-10-02  Jim Meyering  <jim@meyering.net>
93857         Sync from coreutils.
93858         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
93859         from glibc-2.2.5 that fails for read-only files.
93861 2005-10-02  Jim Meyering  <jim@meyering.net>
93863         Sync from coreutils.
93864         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
93865         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
93866         `#if HAVE_CONFIG_H'.
93867         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
93868         Remove AT_FDCWD test.
93869         Do not consume the fd unless successful.
93870         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
93871         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
93872         block, so that we don't even try to compile it if settimeofday is
93873         available.  This works around a compilation failure on OSF1 V5.1,
93874         due to stime requiring a `long int*' while tv_sec is `int'.
93876 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
93878         Sync from coreutils.
93879         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
93880         against `yes', rather than just testing for nonempty.
93882 2005-10-01  Simon Josefsson  <jas@extundo.com>
93884         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
93885         and Darwin.
93887         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
93888         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
93889         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
93890         freeaddrinfo and gai_strerror are declared by the POSIX headers.
93891         Check if struct addrinfo is declared.
93893 2005-10-01  Simon Josefsson  <jas@extundo.com>
93895         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
93896         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
93897         AI_* and EAI_* definitions.  Protect function declarations.
93899 2005-10-01  Jim Meyering  <jim@meyering.net>
93901         Sync from coreutils.
93903         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
93904         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
93905         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
93906         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
93907         in the inet and nsl libraries.  Required on Solaris 5.7.
93909 2005-10-01  Jim Meyering  <jim@meyering.net>
93911         Sync from coreutils.
93912         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
93913         in the inet and nsl libraries.  Required on Solaris 5.7.
93915 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
93917         * lib/getdelim.c (getdelim): Remove unused variables.
93919 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
93921         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
93922         so that the code works even with ancient cpp.  Portability problem
93923         with GCC 2.7.2.1 reported by Thomas M.Ott.
93925 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
93927         * modules/regex (Depends-on): Add strcase.
93929         * modules/gethostname (Licence): Change from GPL to LGPL, since
93930         gethostname.c is a trivial implementation of a standard library
93931         function.
93932         * modules/poll (License): Change from GPL to LGPL, since it's
93933         derived from LGPL code.
93935 2005-09-27  Jim Meyering  <jim@meyering.net>
93937         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
93938         HAVE_CONFIG_H.
93940         * lib/intprops.h (signed_type_or_expr__): Define.
93941         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
93942         for unsigned types.
93944 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
93946         * lib/verify.h (verify_expr): Remove, replacing with:
93947         (verify_true): New macro that returns true instead of void.
93948         (verify_type__): Remove.
93949         (verify): Use verify_true rather than verify_type__.
93951 2005-09-26  Bruno Haible  <bruno@clisp.org>
93953         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
93954         is necessary.
93955         (lib_SOURCES): Remove mbchar.c.
93956         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
93957         (Files): Add m4/mbrtowc.m4.
93958         * modules/mbiter: Likewise.
93959         * modules/mbuiter: Likewise.
93961 2005-09-26  Bruno Haible  <bruno@clisp.org>
93963         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
93964         compile mbchar.c if they are not both present.
93965         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
93966         * m4/mbiter.m4 (gl_MBITER): Likewise.
93967         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
93968         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
93969         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
93971 2005-09-25  Jim Meyering  <jim@meyering.net>
93973         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
93974         also uses socklen_t.
93976 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
93978         * lib/utimens.c (ENOSYS): Define if not already defined.
93979         (futimens): Support having a null PATH if the file descriptor
93980         is nonnegative.
93982         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
93983         Remove.
93984         (__attribute): Define to empty unless GCC 3.1 or later.
93985         This works around a core dump on OpenBSD 3.4, which has GCC
93986         2.95.3, which dumps core when given __attribute__(()).  It also
93987         simplifies other tests, since we really don't want to bother with
93988         worrying about which ancient version of GCC supported what.
93989         Original problem reported by Yoann Vandoorselaere, with part of
93990         the fix suggested by Derek Price.
93992 2005-09-24  Jim Meyering  <jim@meyering.net>
93994         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
93995         so we can once again use a positive bitfield width of 1 -- now we
93996         don't have to explain why we were using a bitfield width of 2.
93998 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
94000         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
94001         and similarly for the other external symbols.  Problem reported
94002         by James Gallager.
94004         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
94005         bug reported by Jim Meyering.
94007         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
94008         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
94009         not needed, since socklen is a prerequisite module.
94011 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
94013         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
94014         Problem reported by Eric Blake.
94015         (getaddrinfo): Initialize se so that it's not garbage.
94016         Redo internal storage allocation so that it doesn't make unportable
94017         assumptions about alignment.
94018         Fix a memory leak.
94020         * lib/utimens.c (futimens): Use futimesat if available.
94021         Prefer it to futimes since it doesn't have the futimes bug.
94023         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
94024         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
94025         Instead, declare a function that returns a pointer to an array,
94026         and use verify_type__ to declare the size of the array.
94027         Problem and germ of a solution reported by Bruno Haible.
94028         (verify_type__): Use 2, not 1, for bitfield size, to avoid
94029         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
94031 2005-09-23  Jim Meyering  <jim@meyering.net>
94033         Sync from coreutils.
94034         Correct build failure (socklen_t not defined) on at least
94035         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
94036         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
94038 2005-09-23  Jim Meyering  <jim@meyering.net>
94040         * modules/getaddrinfo (Depends-on): Add socklen.
94042 2005-09-23  Bruno Haible  <bruno@clisp.org>
94044         * tests/test-verify.c: New file.
94046 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
94048         Sync from coreutils.
94050         * modules/argmatch (Depends-on): Add verify.
94051         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
94052         unistd-safer.
94053         * modules/save-cwd (Depends-on): Likewise.
94055         * modules/openat (Files): Add lib/openat-die.c.
94056         (Depends-on): Remove error, exitfail.
94057         Add dirname.
94059         * modules/verify: New file.
94060         * MODULES.html.sh (Diagnostics <assert.h>): New section,
94061         with "verify" module.
94063 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
94065         Sync from coreutils.
94067         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
94068         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
94069         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
94070         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
94071         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
94072         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
94073         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
94074         Don't bother checking for string.h, stdlib.h, unistd.h.
94075         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
94076         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
94077         module's job.
94078         * m4/jm-macros.m4 (gl_MACROS): Likewise.
94079         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
94081         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
94082         (gl_GETDATE): Use it.
94084         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
94086 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
94088         Sync from coreutils.
94090         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
94091         stat-time.h.
94092         * lib/argmatch.h: Include verify.h
94093         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
94094         (ARGMATCH_ASSERT): Remove; unused.
94095         * lib/canonicalize.c: Assume STDC_HEADERS.
94096         * lib/exclude.c: Include "strcase.h".
94097         * lib/regex_internal.h [!defined _LIBC]: Likewise.
94098         * lib/getusershell.c: Include stdio--.h rather than stdio.h
94099         and stdio-safer.h.
94100         (getusershell): Call fopen, not fopen_safer.
94101         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
94102         Do not include unistd-safer.h.
94103         (save_cwd): Don't call fd_safer; no longer needed
94104         now that we include fcntl--.h.
94106         * lib/getdate.y (relative_time): New type.
94107         (RELATIVE_TIME_0): New constant.
94108         (parser_control): Use relative_time instead of doing it ourselves.
94109         (%union): Add new relative_time rel member.
94110         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
94111         Now typeless.
94112         (relunit, relunit_snumber): Now of type rel.
94113         (zone, rel, relunit, get_date): Adjust to above changes.
94115         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
94116         Do not include unistd-safer.h.
94117         (getloadavg): Don't call fd_safer; no longer needed
94118         now that we include fcntl--.h.
94120         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
94121         (make_dir_parents): Treat ENOSYS like EEXIST.
94123         Improve quality of diagnostics on restore_cwd failure.
94124         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
94125         (make_dir_parents): Last arg is now int * (for errno), not bool *.
94126         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
94127         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
94128         each time through the loop.  Do not diagnose restore_cwd failure;
94129         that is the caller's job (and perhaps the caller does not care).
94131         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
94132         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
94133         If the file already exists but is not a directory, don't bother
94134         to try to make its parents.
94135         Close potential file descriptor leak if we can't chdir("/") (!).
94136         Don't always return true if chdir($PWD) fails; return true only
94137         if the requested action was done successfully (except for the
94138         chdir($PWD)).
94139         Don't log final directory unless we actually made it.
94140         Refactor to avoid duplicate code to fix up permissions.
94141         Don't attempt to fix up parent permissions if chdir($PWD) fails.
94143         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
94144         to make it a bit faster and (I hope) clearer.
94145         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
94146         Fix bug in formats like %2N.
94148         * lib/verify.h: New file.
94150 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
94152         Sync from coreutils.
94153         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
94155 2005-09-22  Jim Meyering  <jim@meyering.net>
94157         Sync from coreutils.
94159         * m4/lstat.m4 (gl_FUNC_LSTAT):
94160         Use AC_LIBSOURCES to require lstat.c and lstat.h.
94161         Remove obsolete comment.
94162         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
94163         * m4/xstrtod.m4: Likewise.
94165         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
94167 2005-09-22  Jim Meyering  <jim@meyering.net>
94169         Sync from coreutils.
94171         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
94173         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
94174         the .tm_year member, since otherwise gcc-4.0 would now warn about
94175         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
94177         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
94178         order to avoid an unsuppressible warning from gcc on 64-bit systems.
94180         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
94181         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
94182         when run in a time zone for which daylight savings time is in effect
94183         for the starting date.
94185         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
94186         stop us from restricting permissions of just-created absolute-named
94187         directories.
94188         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
94189         to restore initial working directory.
94190         * lib/mkdir-p.c (make_dir_parents): New parameter:
94191         different_working_dir, to tell caller if/when we change the working
94192         directory and are unable to return to the initial one.
94193         * lib/mkdir-p.h (make_dir_parents): Update prototype.
94194         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
94195         `return false'.  This fixes a bug introduced on 2004-07-30.
94197         * lib/openat.c (fdopendir): Be sure to close the supplied
94198         file descriptor before returning.  This makes our replacement
94199         implementation a little closer to Solaris's, where fdopendir
94200         ties the file descriptor to the returned DIR* pointer.
94201         * lib/openat.c (unlinkat): New function.
94202         * lib/openat.h (unlinkat): Add prototype.
94203         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
94204         (openat_restore_fail): Rename from openat_restore_die.
94205         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
94207         Provide an alternative to exiting immediately upon save_cwd or
94208         restore_cwd failure.  Now, an application can arrange e.g.,
94209         to perform a longjump in that case.
94210         * lib/openat.c: Include dirname.h.
94211         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
94212         (rpl_openat, fdopendir, fstatat): Call openat_save_die
94213         and openat_restore_die rather than calling error directly.
94214         Don't include "error.h" or "exitfail.h"; they're no longer needed.
94216         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
94217         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
94218         define.
94220         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
94221         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
94222                             int utc, int nanoseconds);
94223         Background:
94224         date should not have to allocate a megabyte of virtual memory to
94225         handle a format argument like +%1048575T.  When implemented with
94226         strftime, it must allocate such a buffer, use strftime to fill it
94227         in, print it, then free it.
94228         With fprintftime, it simply prints everything and exits.
94229         With no need for memory allocation, that's one fewer way to fail.
94230         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
94231         optional field width, not before, so we accept %9:z, not %:9z.
94232         (my_strftime): Be sure to use L_('x') for literals.
94234         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
94235         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
94236         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
94237         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
94238         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
94239         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
94240         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
94241         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
94242         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
94243         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
94244         * lib/xgethostname.c, lib/xreadlink.c:
94245         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
94247         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
94248         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
94249         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
94250         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
94251         and don't include <sys/file.h>).
94253 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
94255         Sync from coreutils.
94257         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
94258         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
94259         [!LDAV_DONE]: Avoid unused variable warning.
94261 2005-09-21  Bruno Haible  <bruno@clisp.org>
94263         * lib/unicodeio.h (unicode_to_mb): New declaration.
94265 2005-09-20  Derek Price  <derek@ximbiot.com>
94267         * lib/getaddrinfo.c: Don't include <netdb.h> included from
94268         getaddrinfo.h.
94270 2005-09-20  Bruno Haible  <bruno@clisp.org>
94272         * gnulib-tool: Remove trailing slashes from the values specified for
94273         --source-base, --m4-base, --tests-base, --aux-dir.
94274         Suggested by Simon Josefsson <jas@extundo.com>.
94276 2005-09-20  Bruno Haible  <bruno@clisp.org>
94278         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
94279         func_modules_to_filelist, func_import, func_create_testdir): Make all
94280         sorting results locale-independent, so that gnulib-cache.m4 doesn't
94281         change when gnulib-tool is invoked in a different locale.
94283 2005-09-19  Simon Josefsson  <jas@extundo.com>
94285         * m4/socklen.m4: Fix typo.
94287 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94289         Use a consistent style for including <config.h>.
94290         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
94291         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
94292         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
94293         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
94294         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
94295         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
94296         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
94297         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
94298         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
94299         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
94300         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
94301         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
94302         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
94303         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
94304         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
94305         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
94306         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
94307         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
94308         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
94309         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
94310         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
94311         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
94312         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
94313         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
94314         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
94315         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
94316         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
94317         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
94318         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
94319         lib/xstrtoumax.c, lib/yesno.c:
94320         Standardize inclusion of config.h.
94321         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
94322         lib/inttostr.h:  Removed inclusion of config.h from header files.
94323         * lib/inttostr.c:  Adjusted in-tree users.
94324         * lib/timespec.h: Remove superfluous warning to include config.h.
94325         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
94326         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
94327         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
94328         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
94329         config.h with HAVE_CONFIG_H.
94331 2005-09-19  Jim Meyering  <jim@meyering.net>
94333         * modules/pathmax (License): Change to LGPL.
94335 2005-09-19  Derek Price  <derek@ximbiot.com>
94337         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
94339 2005-09-19  Bruno Haible  <bruno@clisp.org>
94341         * gnulib-tool (import): Provide default for --tests-base.
94343 2005-09-19  Bruno Haible  <bruno@clisp.org>
94345         * doc/quote.texi: New file, extracted from gnulib.texi.
94346         * doc/ctime.texi: New file, extracted from gnulib.texi.
94347         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
94348         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
94349         * doc/gnulib.texi: Include them.
94351 2005-09-18  Bruno Haible  <bruno@clisp.org>
94353         Portability fix.
94354         * gnulib-tool (func_readlink): New function.
94355         (func_ln_if_changed): Use it.
94357 2005-09-18  Bruno Haible  <bruno@clisp.org>
94359         * gnulib-tool: Support --with-tests also with --import.
94360         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
94361         (func_import): Use variables $testsbase and $inctests. Emit a
94362         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
94363         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
94364         SUBDIRS += $testsdir.
94365         (func_create_testdir): Update.
94367 2005-09-18  Bruno Haible  <bruno@clisp.org>
94369         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
94370         instead of $dry_run.
94371         (func_cp_if_changed, func_mv_if_changed): Remove functions.
94372         (func_ln_if_changed): Don't handle dry-run here.
94373         (func_import): In dry-run mode, detect more precisely which actions
94374         would be performed, and don't use "...ing" verbs.
94376 2005-09-18  Bruno Haible  <bruno@clisp.org>
94378         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
94379         (func_import): Use join on two temporary files instead of three nested
94380         loops, in order to determine which files are new or old.
94382 2005-09-18  Bruno Haible  <bruno@clisp.org>
94384         * gnulib-tool (func_import): Comment out code that spits out the
94385         new files with --dry-run.
94387 2005-09-18  Bruno Haible  <bruno@clisp.org>
94389         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
94391 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
94393         * lib/stat-time.h: New file.
94394         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
94395         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
94396         in a different way.
94397         (timespec_cmp): New function.
94398         * lib/utimecmp.c: Include stat-time.h.
94399         (SYSCALL_RESOLUTION): Depend on whether various struct stat
94400         members exist, not on the obsolescent ST_MTIM_NSEC.
94401         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
94403 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
94405         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
94407 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
94409         * MODULES.html.sh (File system functions): Add stat-time.
94410         * modules/stat-time: New file.
94411         * modules/timespec (Files): Remove m4/st_mtim.m4; this
94412         is now done in a different way, by the stat-time module.
94413         * modules/utimecmp (Depends-on): Add stat-time.
94415 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
94417         * m4/st_mtim.m4: Remove.  Superseded by...
94418         * m4/stat-time.m4: New file.
94419         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
94420         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
94422 2005-09-15  Derek Price  <derek@ximbiot.com>
94424         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
94426 2005-09-15  Derek Price  <derek@ximbiot.com>
94428         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
94429         * lib/regex_internal.c: Ditto, using this...
94430         (__GNUC_PREREQ): ...new macro.
94431         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
94432         using...
94433         (__GNUC_PREREQ): ...this new macro.
94435         * lib/strstr.h: Include string.h. Define strstr as a macro here.
94437 2005-09-15  Derek Price  <derek@ximbiot.com>
94438             Paul Eggert  <eggert@cs.ucla.edu>
94440         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
94441         changes, consolidating in...
94442         * lib/regex_internal.h: ...this file.
94444 2005-09-13  Jim Meyering  <jim@meyering.net>
94446         * lib/canon-host.c: Filter through gnu indent and reword comments
94447         slightly.
94448         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
94450 2005-09-13  Derek Price  <derek@ximbiot.com>
94452         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
94453         failure.
94454         Reported by Jim Meyering  <jim@meyering.net>.
94456 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
94458         * lib/base64.c: Typo.
94459         (base64_encode): Put b64str in initialized data section.
94461 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
94463         Merge glibc and coreutils changes into gnulib, plus a few
94464         extra fixes.
94465         * lib/md5.c: Use #error rather than a string.
94466         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
94467         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
94468         (__attribute__): Define to empty for non recent-GCC.
94469         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
94470         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
94471         Renamed from their non-__ counterparts, with new macros replacing
94472         them if not _LIBC.  Add __THROW attribute.
94473         (rol): Remove.
94474         (struct md5_ctx): Align buffer if using GCC.
94475         * lib/sha1.h (struct sha1_ctx): Likewise.
94476         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
94477         The old name was backwards.
94478         (NOTSWAP): Remove; not used.
94479         (rol): New macro, moved here from md5.h.
94480         (sha1_process_block): Remove a FIXME that doesn't make sense.
94482 2005-09-12  Derek Price  <derek@ximbiot.com>
94484         Return usable errors from canon-host.
94485         * lib/canon-host.h: New file.
94486         * lib/canon-host.c (canon_host): Wrap...
94487         (canon_host_r): ...this new function, which now relies exclusively on
94488         getaddrinfo.
94489         (ch_strerror): New function.
94490         (last_cherror): New global.
94491         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
94492         interface.
94493         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
94494         void *.
94495         (freeaddrinfo): Free ai->ai_canonname when set.
94497 2005-09-12  Derek Price  <derek@ximbiot.com>
94499         Make canon-host require getaddrinfo.
94500         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
94501         AC_LIBSOURCE canon-host.h.  Call...
94502         (gl_PREREQ_CANON_HOST): ...this new function, which requires
94503         gl_GETADDRINFO.
94504         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
94506 2005-09-12  Derek Price  <derek@ximbiot.com>
94508         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
94509         LGPL.
94510         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
94512 2005-09-12  Derek Price  <derek@ximbiot.com>
94514         * lib/gai_strerror.c: Include config.h when available.  Include
94515         getaddrinfo.h before other headers to test interface.
94516         Reported by Larry Jones <lawrence.jones@ugs.com>.
94518 2005-09-12  Derek Price  <derek@ximbiot.com>
94519             Paul Eggert  <eggert@cs.ucla.edu>
94521         * modules/glob (Files): Add glob-libc.h.
94523 2005-09-12  Derek Price  <derek@ximbiot.com>
94524             Paul Eggert  <eggert@cs.ucla.edu>
94526         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
94527         glob_.h, glob-libc.h.
94528         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
94530 2005-09-12  Derek Price  <derek@ximbiot.com>
94531             Paul Eggert  <eggert@cs.ucla.edu>
94533         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
94534         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
94535         protecting things that should be done only in gnulib contexts.
94536         * lib/glob_.h: New file, containing only the glob things needed for
94537         gnulib.
94538         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
94539         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
94540         (glob, globfree, glob_pattern_p): Now defined simply in terms of
94541         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
94542         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
94543         and to respect the namespace rules better.
94545 2005-09-08  Simon Josefsson  <jas@extundo.com>
94547         * modules/socklen: New file.
94549 2005-09-08  Simon Josefsson  <jas@extundo.com>
94551         * m4/socklen.m4: New file.
94553 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
94555         * modules/utimens (Files): Add m4/utimbuf.m4, since
94556         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
94557         Reported by Sergey Poznyakoff.
94559 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
94561         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
94562         definitions, since that's the preferred style in glibc.
94563         Fix a minor spacing issue, and update copyright notice to match
94564         glibc's.
94566 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
94568         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
94570 2005-09-06  Simon Josefsson  <jas@extundo.com>
94572         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
94573         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
94575 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
94577         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
94578         warning.
94580 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
94582         * config/srclist.txt: Add glibc bug 1302.
94584 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
94586         Change bitset word type from unsigned int to unsigned long int,
94587         as this has better performance on typical 64-bit hosts.
94588         Port bitset code to hosts with unusual word sizes.
94589         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
94590         (build_collating_symbol):
94591         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
94592         argument is a bitset.  This is merely a style issue, but it makes
94593         it clearer that an entire array is expected.
94594         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
94595         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
94596         Port to the case where bitset_word is not the same as unsigned int.
94597         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
94598         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
94599         Likewise.
94600         * lib/regexec.c (check_dst_limits_calc_pos_1,
94601         check_subexp_matching_top):
94602         (build_trtable, group_nodes_into_DFAstates):
94603         Likewise.
94604         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
94605         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
94606         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
94607         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
94608         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
94609         * lib/regcomp.c (optimize_subexps, lower_subexp):
94610         Work even if bitset_word has holes in its bitwise representation.
94611         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
94612         * lib/regexec.c (check_dst_limits_calc_pos_1,
94613         check_subexp_matching_top):
94614         Likewise.
94615         * lib/regex_internal.c (re_string_reconstruct):
94616         Don't assume UCHAR_MAX == 255.
94617         * lib/regex_internal.h (bitset_set_all): Likewise.
94618         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
94619         All uses changed.
94620         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
94621         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
94622         All uses changed.
94623         (BITSET_WORD_MAX): New macro.
94624         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
94625         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
94626         (bitset_empty, bitset_copy):
94627         Prefer sizeof (bitset) to multiplying it out ourselves.
94628         (bitset_not_merge): Remove; unused.
94629         (bitset_contain): Return bool, not unsigned int with one bit on.
94630         All callers changed.
94631         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
94632         alignment than re_node_set; do this by defining a new internal
94633         type struct dests_alloc and using it to allocate memory.
94635 2005-09-05  Bruno Haible  <bruno@clisp.org>
94637         * gnulib-tool (func_import): Fix comparison in handling of symbolic
94638         links.
94640 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
94642         * modules/size_max (Makefile.am): Add size_max.h
94644 2005-09-04  Derek Price  <derek@ximbiot.com>
94646         * gnulib-tool (func_import): Fix reversed $symbolic logic.
94648 2005-09-03  Simon Josefsson  <jas@extundo.com>
94650         * gnulib-tool: Fix typo.
94652 2005-09-03  Simon Josefsson  <jas@extundo.com>
94654         * config/srclist.txt: Add glibc bug 1293.
94656 2005-09-03  Derek Price  <derek@ximbiot.com>
94658         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
94659         From Larry Jones <lawrence.jones@ugs.com>.
94661 2005-09-02  Simon Josefsson  <jas@extundo.com>
94663         * modules/socklen: New file.
94665 2005-09-02  Simon Josefsson  <jas@extundo.com>
94667         * modules/havelib: New module.
94669         * modules/gettext, modules/iconv, modules/lock, modules/readline:
94670         Use havelib.
94672 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
94674         Check for arithmetic overflow when calculating sizes, to prevent
94675         some buffer-overflow issues.  These patches are conservative, in the
94676         sense that when I couldn't determine whether an overflow was possible,
94677         I inserted a run-time check.
94678         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
94679         macros.
94680         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
94681         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
94682         (re_xnrealloc, re_x2nrealloc): New inline functions.
94683         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
94684         parse_bracket_exp):
94685         (build_equiv_class, build_charclass): Check for arithmetic overflow
94686         in size expression calculations.
94687         * lib/regex_internal.c (re_string_realloc_buffers):
94688         (build_wcs_upper_buffer, re_node_set_add_intersect):
94689         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
94690         (re_dfa_add_node, register_state): Likewise.
94691         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
94692         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
94693         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
94694         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
94696 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
94698         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
94699         m4/ulonglong.m4.  Problem reported by Martin Lambers.
94701 2005-09-02  Bruno Haible  <bruno@clisp.org>
94703         Support for lib vs. lib64 distinction on biarch platforms.
94704         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
94705         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
94706         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
94708 2005-09-02  Bruno Haible  <bruno@clisp.org>
94710         * gnulib-tool (import): In the other first-use case, provide defaults
94711         as well.
94713 2005-09-02  Bruno Haible  <bruno@clisp.org>
94715         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
94716         patches not yet found in the latest gettext release.
94718 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
94720         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
94721         to avoid a collision with bits/local_lim.h in glibc.
94722         All uses changed.  Problem reported by Dmitry V. Levin in
94723         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
94725         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
94726         bugs in int versus size_t comparisons.
94727         (re_string_context_at): Fix bug where the code assumed that
94728         Idx is signed.
94730         Use bool where appropriate.
94731         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
94732         All callers changed.
94733         (calc_eclosure_iter): Likewise, for ROOT arg.
94734         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
94735         (build_charclass_op): Likewise, for NON_MATCH arg.
94736         * lib/regex_internal.c (re_string_allocate, re_string_construct):
94737         (re_string_construct_common): Likewise, for ICASE arg.
94738         * lib/regexec.c (re_search_2_stub, re_search_stub):
94739         Likewise, for RET_LEN arg.
94740         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
94741         (set_regs): Likewise, for FL_BACKTRACK arg.
94742         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
94743         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
94744         (calc_eclosure_iter, parse_bracket_exp):
94745         Use bool for internal variables that are booleans.
94746         * lib/regexec.c (re_search_internal, check_matching,
94747         proceed_next_node):
94748         (set_regs, build_sifted_states, sift_states_bkref):
94749         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
94750         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
94751         (find_collation_sequence_value):
94752         Likewise.
94753         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
94754         (re_node_set_compare):
94755         Return bool, not int. All callers changed.
94756         * lib/regexec.c (check_halt_node_context, check_dst_limits):
94757         (build_trtable, check_node_accept): Likewise.
94758         * lib/regex_internal.h: Include stdbool.h.
94760         Fix bugs uncovered when converting to bool.
94761         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
94762         failure instead of charging ahead blindly.
94763         * lib/regex_internal.c (register_state): Likewise.
94764         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
94765         for freeing internal storage.
94766         (group_nodes_into_DFA_states): Use unsigned int, not int, for
94767         bitset pieces used as boolean, to avoid undefined behavior
94768         on hosts that do int overflow checking.
94770 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
94772         * config/srclist.txt: Add glibc bugs 1285-1287.
94774 2005-09-01  Jim Meyering  <jim@meyering.net>
94776         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
94777         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
94778         Require gl_STAT_MACROS, too.
94780 2005-09-01  Bruno Haible  <bruno@clisp.org>
94782         * gnulib-tool (import): In the first-use case, provide defaults.
94784 2005-09-01  Bruno Haible  <bruno@clisp.org>
94786         * gnulib-tool (func_import): Remove the .tmp files.
94788 2005-09-01  Bruno Haible  <bruno@clisp.org>
94790         * gnulib-tool (func_import): Fix handling of symbolic links.
94792 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
94794         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
94795         old glibc regex code mishandles strings longer than 2**31 bytes.
94796         This patch fixes this when the regex code is used in gnulib
94797         (i.e., outside glibc).
94799         This patch should not affect the use of the regex code inside
94800         glibc.  No doubt this problem also needs to be handled for glibc
94801         as well, but the result will be an incompatible change to the
94802         glibc ABI, and the old ABI will have to be supported too.  That
94803         can be the the subject for another patch.
94805         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
94806         governing whether the rest of this patch is active.  By default,
94807         the macro is disabled and the patch has no effect.
94808         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
94809         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
94810         (struct re_pattern_buffer, re_search, re_search_2, re_match):
94811         (re_match_2, re_set_registers): Use the new types.
94812         * lib/regex_internal.h (Idx, re_hashval_t): New types.
94813         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
94814         New macros.
94815         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
94816         (re_string_context_at, bin_tree_t, re_dfastate_t):
94817         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
94818         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
94819         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
94820         (re_string_char_size_at, re_string_wchar_at):
94821         (re_string_elem_size_at):
94822         Use the new types and macros to port to 64-bit hosts.
94823         Use unsigned types for internal values, so that the code
94824         mostly works even for arrays larger than SSIZE_MAX.
94825         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
94826         (search_duplicated_node, calc_eclosure_iter, fetch_number):
94827         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
94828         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
94829         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
94830         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
94831         (calc_inveclosure, parse_dup_op, build_range_exp):
94832         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
94833         (fetch_number, create_token_tree, mark_opt_subexp):
94834         Likewise.
94835         * lib/regex_internal.c (re_string_construct_common,
94836         create_ci_newstate):
94837         (create_cd_newstate, re_string_allocate, re_string_construct):
94838         (re_string_realloc_buffers, build_wcs_upper_buffer):
94839         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
94840         (re_string_reconstruct, re_string_peek_byte_case):
94841         (re_string_fetch_byte_case, re_string_context_at):
94842         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
94843         (re_node_set_init_copy, re_node_set_add_intersect):
94844         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
94845         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
94846         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
94847         (re_acquire_state, re_acquire_state_context, register_state):
94848         Likewise.
94849         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
94850         search_cur_bkref_entry):
94851         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
94852         (re_search_internal, re_search_2_stub, re_search_stub)
94853         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
94854         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
94855         (update_cur_sifted_state, check_dst_limits):
94856         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
94857         (check_subexp_limits, sift_states_bkref, merge_state_array):
94858         (check_subexp_matching_top, get_subexp, get_subexp_sub):
94859         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
94860         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
94861         (expand_bkref_cache, check_node_accept_bytes):
94862         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
94863         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
94864         (acquire_init_state_context, check_halt_node_context):
94865         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
94866         (sift_states_backward, clean_state_log_if_needed):
94867         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
94868         (find_recover_state, transit_state_sb, transit_state_mb):
94869         (transit_state_bkref, build_trtable, match_ctx_clean):
94870         Likewise.
94871         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
94872         to work around an assumption that REG_MISSING is negative.
94874         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
94875         (seek_collating_symbol_entry) [defined _LIBC]:
94876         (lookup_collation_sequence_value) [defined _LIBC]:
94877         (build_range_exp, build_collating_symbol) [defined _LIBC]:
94878         Use prototypes rather than old-style function definitions.
94879         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
94880         (transit_state_sb) [0]:
94881         (find_collation_sequence_value) [defined _LIBC]: Likewise.
94883         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
94884         rm_eo.
94886         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
94887         (optimize_subexps, lower_subexp):
94888         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
94889         since the signed shift might overflow.  Use 1u<<31 instead.
94890         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
94891         Likewise.
94892         * lib/regexec.c (check_dst_limits_calc_pos_1,
94893         check_subexp_matching_top): Likewise.
94895         * lib/regcomp.c (optimize_subexps, lower_subexp):
94896         Use CHAR_BIT rather than 8, for clarity.
94897         * lib/regexec.c (check_dst_limits_calc_pos_1):
94898         (check_subexp_matching_top): Likewise.
94899         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
94900         have to worry about portability issues when shifting it left.
94901         Remove no-longer-needed test for table_size > 0.
94902         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
94903         in a word, as the resulting behavior is undefined.
94904         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
94905         in one case, a <= should have been an <, and in another case the
94906         whole test was missing.
94907         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
94908         the standard name CHAR_BIT.
94909         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
94910         this is not true on one's complement and signed-magnitude hosts.
94912         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
94913         next_last_offset.
94914         (struct re_dfa_t): Remove unused member states_alloc.
94915         * lib/regcomp.c (init_dfa): Don't initialize unused members.
94917 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
94919         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
94920         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
94921         and large-file glibc and in 32-bit large-file Solaris.
94923 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
94925         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
94926         lengths fit in regoff_t; this isn't true if regoff_t is the same
94927         width as size_t.
94928         * lib/regex.c (re_search_internal): 5th arg is LAST_START
94929         (= START + RANGE) instead of RANGE.  This avoids overflow
94930         problems when regoff_t is the same width as size_t.
94931         All callers changed.
94932         (re_search_2_stub): Check for overflow when adding the
94933         sizes of the two strings.
94934         (re_search_stub): Check for overflow when adding START
94935         to RANGE; if it occurs, substitute the extreme value.
94937 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
94939         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
94941 2005-08-31  Jim Meyering  <jim@meyering.net>
94943         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
94944         a pointer-to-const.
94945         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
94946         (register_state): Likewise.
94947         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
94948         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
94949         (group_nodes_into_DFAstates): Likewise.
94951 2005-08-31  Jim Meyering  <jim@meyering.net>
94953         * check-module: Add a FIXME comment.
94955 2005-08-31  Eric Blake  <ebb9@byu.net>
94957         * modules/unistd-safer (Files): Add unistd--.h.
94958         * modules/stdio-safer (Files): Add stdio--.h.
94960 2005-08-31  Derek Price  <derek@ximbiot.com>
94962         * lib/getdelim.c (getdelim): Return EOF on EOF.
94963         Reported by Larry Jones <lawrence.jones@ugs.com>.
94965 2005-08-31  Bruno Haible  <bruno@clisp.org>
94967         Avoid unnecessary diffs in the generated lib/Makefile.am.
94968         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
94969         the generated files.
94970         (func_import): Don't set cmd.
94972 2005-08-31  Bruno Haible  <bruno@clisp.org>
94974         * lib/strstr.c: Include <stddef.h>, for NULL.
94975         * lib/strcasestr.c: Likewise.
94976         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
94978 2005-08-31  Bruno Haible  <bruno@clisp.org>
94980         * gnulib-tool: New option --macro-prefix.
94981         (func_import): Use macro_prefix.
94982         (import): Handle option --macro-prefix.
94984 2005-08-31  Bruno Haible  <bruno@clisp.org>
94986         * gnulib-tool (import): Rename most ac_* variables to cached_*.
94987         Also use new variables cached_lgpl, cached_libtool.
94989 2005-08-31  Bruno Haible  <bruno@clisp.org>
94991         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
94992         always instantiating them.
94994 2005-08-31  Bruno Haible  <bruno@clisp.org>
94996         * gnulib-tool (func_import): Read the previous cached settings
94997         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
94998         earlier added by gnulib but are now dropped. Warn when a gnulib file
94999         overwrites a non-gnulib file.
95001 2005-08-31  Bruno Haible  <bruno@clisp.org>
95003         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
95004         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
95005         projects that don't keep autogenerated files in CVS. Put into
95006         actioncmd only the specified modules, not the transitive closure.
95008 2005-08-31  Bruno Haible  <bruno@clisp.org>
95010         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
95011         Create directories that shall be filled.
95012         (import): Don't look for gl_* macros in configure.ac. Recurse across
95013         all directories containing a gnulib-cache.m4 files, if meaningful.
95015 2005-08-31  Bruno Haible  <bruno@clisp.org>
95017         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
95018         (import): Set seen_libtool when we see gl_LIBTOOL.
95020 2005-08-31  Bruno Haible  <bruno@clisp.org>
95022         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
95023         declaration macro definitions from generated gnulib.m4.
95025 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
95027         * lib/iconvme.h: Add prototype for iconv_alloc.
95029 2005-08-29  Simon Josefsson  <jas@extundo.com>
95031         * lib/iconvme.c: Fix errno.
95033 2005-08-29  Bruno Haible  <bruno@clisp.org>
95035         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
95036         that it works when the directory contains spaces.
95038 2005-08-29  Bruno Haible  <bruno@clisp.org>
95040         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
95042 2005-08-29  Bruno Haible  <bruno@clisp.org>
95044         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
95045         Emit more advice.
95047 2005-08-29  Bruno Haible  <bruno@clisp.org>
95048         and Stepan Kasal  <kasal@ucw.cz>
95050         * check-module: If more parameters are given, check each of them
95051         separately; add more exceptions, as noted by Jim Meyering.
95052         (check_module): New procedure.
95053         (%exempt_header): Now contains all exceptions.
95055 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
95057         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
95059 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
95061         * lib/iconvme.c: Split iconv_string into iconv_alloc.
95063 2005-08-28  Bruno Haible  <bruno@clisp.org>
95065         * m4/gnulib-tool.m4: New file.
95067 2005-08-27  Jim Meyering  <jim@meyering.net>
95069         * modules/unistd-safer (Files): Add pipe-safer.c.
95070         * modules/fcntl-safer (Files): Add creat-safer.c.
95072 2005-08-27  Jim Meyering  <jim@meyering.net>
95074         * m4/stdlib-safer.m4: New file.  From coreutils.
95075         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
95076         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
95077         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
95078         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
95079         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
95081 2005-08-27  Jim Meyering  <jim@meyering.net>
95083         * lib/fopen-safer.c: Merge minor changes from coreutils.
95084         * lib/dup-safer.c: Likewise.
95085         * lib/fd-safer.c: Likewise.
95087         Merge from coreutils.
95088         * lib/stdio--.h: New file.
95089         * lib/stdlib--.h: New file.
95090         * lib/mkstemp-safer.c: New file.
95092         GNU tar needs these.
95093         * lib/pipe-safer.c: New file.
95094         * lib/creat-safer.c: New file.
95095         * lib/fcntl--.h (creat): Define to creat_safer.
95096         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
95097         * lib/unistd--.h (pipe): Define to pipe_safer.
95098         * lib/unistd-safer.h: Declare pipe_safer.
95100 2005-08-26  Simon Josefsson  <jas@extundo.com>
95102         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
95103         Haible <bruno@clisp.org>.
95105 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
95107         * lib/regex_internal.h: Remove all references to
95108         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
95109         or better.
95110         (bitset_not, bitset_merge, bitset_not_merge):
95111         (bitset_mask, re_string_allocate, re_string_construct):
95112         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
95113         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
95114         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
95115         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
95116         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
95117         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
95118         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
95119         (re_acquire_state_context):
95120         Remove unnecessary forward decls.
95121         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
95122         Put __attribute at function definition,
95123         now that the function decl has been removed.
95124         * lib/regex_internal.c (re_string_peek_byte_case):
95125         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
95126         Likewise.
95128 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
95130         * m4/regex.m4: Add AC_PREREQ(2.50).
95131         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
95133 2005-08-25  Simon Josefsson  <jas@extundo.com>
95135         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
95136         __fsetlocking.
95138 2005-08-25  Simon Josefsson  <jas@extundo.com>
95140         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
95141         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
95142         GLIBC specific code.
95144 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
95146         Make regex safe for g++.  This fixes one real bug (an "err"
95147         that should have been "*err").  g++ problem reported by
95148         Sam Steingold.
95149         * lib/regex_internal.h (re_calloc): New macro, consistent with
95150         re_malloc etc.  All callers of calloc changed to use re_calloc.
95151         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
95152         not int.  All callers changed.
95153         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
95154         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
95155         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
95156         (find_recover_state): Change "err" to "*err"; this fixes what
95157         appears to be a real bug.
95158         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
95159         versus int.
95161 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
95163         * modules/regex (Depends-on): Add malloc, since the code
95164         assumes that !malloc(0) means failure.
95166 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
95168         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
95170         alloca modernization/simplification for regex.
95171         * lib/regex.c: Remove portability cruft for alloca.  This no longer
95172         needs to be at the start of the file, and can be moved into
95173         regex_internal.h and simplified.
95174         * lib/regex_internal.h: Include <alloca.h>.
95175         (__libc_use_alloca) [!defined _LIBC]: New macro.
95176         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
95177         now works outside glibc.
95179 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
95181         * config/srclist.txt: Add glibc bugs 1241, 1245.
95183 2005-08-25  Jim Meyering  <jim@meyering.net>
95185         * lib/open-safer.c: Include <config.h>.
95186         Otherwise, we'd lose LARGEFILE support in any file using
95187         e.g. "fcntl--.h"
95189 2005-08-25  Bruno Haible  <bruno@clisp.org>
95191         * m4/minmax.m4: Require autoconf 2.52.
95192         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
95193         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
95194         alternatives of translit over the alphabet.
95195         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
95197 2005-08-24  Simon Josefsson  <jas@extundo.com>
95199         * tests/test-getpass.c: New file.
95201 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
95203         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
95204         for GNU regex features.
95206 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
95208         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
95209         * lib/regex.h (regerror): Likewise.
95211         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
95212         requires this.  (The code never needed it.)
95214         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
95215         All uses of recently-renamed identifiers changed to use the new,
95216         POSIX-compliant names.  The code will build and run just fine
95217         without these changes, but it's better to eat our own dog food
95218         and use the standard-conforming names.
95220         * lib/regex.h: Fix a multitude of POSIX name space violations.
95221         These changes have an effect only for programs that define
95222         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
95223         do not change anything for programs compiled in the normal way.
95224         Also, there is no effect on the ABI.
95226         (_REGEX_SOURCE): New macro.
95227         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
95228         defined and _GNU_SOURCE is not; this fixes a name space violation.
95230         Rename the following macros to obey POSIX requirements.
95231         The old names are still visible as macros if _REGEX_SOURCE is defined.
95232         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
95233         RE_BACKSLASH_ESCAPE_IN_LISTS.
95234         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
95235         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
95236         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
95237         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
95238         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
95239         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
95240         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
95241         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
95242         (REG_INTERVALS): renamed from RE_INTERVALS.
95243         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
95244         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
95245         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
95246         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
95247         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
95248         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
95249         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
95250         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
95251         RE_UNMATCHED_RIGHT_PAREN_ORD.
95252         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
95253         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
95254         (REG_DEBUG): renamed from RE_DEBUG.
95255         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
95256         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
95257         unusual, since we can't clash with the POSIX REG_ICASE.
95258         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
95259         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
95260         (REG_NO_SUB): renamed from RE_NO_SUB.
95261         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
95262         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
95263         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
95264         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
95265         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
95266         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
95267         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
95268         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
95269         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
95270         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
95271         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
95272         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
95273         RE_SYNTAX_POSIX_MINIMAL_BASIC.
95274         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
95275         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
95276         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
95277         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
95278         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
95279         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
95280         (REG_FIXED): Renamed from REGS_FIXED.
95281         (REG_NREGS): Renamed from RE_NREGS.
95283         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
95284         of other REG_* macros, since POSIX says the user is allowed to
95285         #undef these macros selectively.
95287         (reg_errcode_t): Update comment stating what other tables need
95288         to be consistent.
95290         Rename the following enum values to obey POSIX requirements.
95291         The old names are still visible as macros.
95292         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
95293         is not defined, since GNU is supposed to be a superset of POSIX as
95294         much as possible, and since we want reg_errcode_t to be a signed
95295         type for implementation consistency.
95296         (_REG_NOERROR): Renamed from REG_NOERROR.
95297         (_REG_NOMATCH): Renamed from REG_NOMATCH.
95298         (_REG_BADPAT): Renamed from REG_BADPAT.
95299         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
95300         (_REG_ECTYPE): Renamed from REG_ECTYPE.
95301         (_REG_EESCAPE): Renamed from REG_EESCAPE.
95302         (_REG_ESUBREG): Renamed from REG_ESUBREG.
95303         (_REG_EBRACK): Renamed from REG_EBRACK.
95304         (_REG_EPAREN): Renamed from REG_EPAREN.
95305         (_REG_EBRACE): Renamed from REG_EBRACE.
95306         (_REG_BADBR): Renamed from REG_BADBR.
95307         (_REG_ERANGE): Renamed from REG_ERANGE.
95308         (_REG_ESPACE): Renamed from REG_ESPACE.
95309         (_REG_BADRPT): Renamed from REG_BADRPT.
95310         (_REG_EEND): Renamed from REG_EEND.
95311         (_REG_ESIZE): Renamed from REG_ESIZE.
95312         (_REG_ERPAREN): Renamed from REG_ERPAREN.
95313         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
95314         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
95315         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
95316         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
95318         (_REG_RE_NAME, _REG_RM_NAME): New macros.
95319         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
95320         changed.  But support the old name if the new one is not defined
95321         and if _REGEX_SOURCE.
95323         Change the following member names in struct re_pattern_buffer.
95324         The old names are still supported if !_REGEX_SOURCE.
95325         The new names are always supported, regardless of _REGEX_SOURCE.
95326         (re_buffer): Renamed from buffer.
95327         (re_allocated): Renamed from allocated.
95328         (re_used): Renamed from used.
95329         (re_syntax): Renamed from syntax.
95330         (re_fastmap): Renamed from fastmap.
95331         (re_translate): Renamed from translate.
95332         (re_can_be_null): Renamed from can_be_null.
95333         (re_regs_allocated): Renamed from regs_allocated.
95334         (re_fastmap_accurate): Renamed from fastmap_accurate.
95335         (re_no_sub): Renamed from no_sub.
95336         (re_not_bol): Renamed from not_bol.
95337         (re_not_eol): Renamed from not_eol.
95338         (re_newline_anchor): Renamed from newline_anchor.
95340         Change the following member names in struct re_registers.
95341         The old names are still supported if !_REGEX_SOURCE.
95342         The new names are always supported, regardless of _REGEX_SOURCE.
95343         (rm_num_regs): Renamed from num_regs.
95344         (rm_start): Renamed from start.
95345         (rm_end): Renamed from end.
95347         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
95348         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
95349         Prepend __ to parameter names.
95351         Undo yesterday's changes.
95353 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
95355         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
95356         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
95357         lib/regex.c.
95359 2005-08-24  Jim Meyering  <jim@meyering.net>
95361         Sync from coreutils.
95362         * m4/fcntl-safer.m4: New file.
95364         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
95365         and object files for this module.
95367 2005-08-24  Jim Meyering  <jim@meyering.net>
95369         Sync from coreutils.
95370         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
95372 2005-08-24  Jim Meyering  <jim@meyering.net>
95374         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
95375         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
95377 2005-08-24  Jim Meyering  <jim@meyering.net>
95379         * modules/fcntl-safer: New module.
95380         * modules/fts (Depends-on): Add fcntl-safer.
95381         * MODULES.html.sh (File descriptor based Input/Output):
95382         Add fcntl-safer.
95384 2005-08-24  Bruno Haible  <bruno@clisp.org>
95386         Support for unit test modules.
95387         * modules/README: Mention tests modules.
95388         * modules/TEMPLATE-TESTS: New file.
95389         * gnulib-tool: New options --extract-tests-module, --with-tests and
95390         --tests-base (unused for the moment).
95391         (testsbase, inctests): New variables.
95392         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
95393         (func_verify_module): Exclude TEMPLATE-TESTS.
95394         (func_verify_nontests_module, func_verify_tests_module): New functions.
95395         (func_get_dependencies): Add implicit dependency for tests modules.
95396         (func_get_tests_module): New function.
95397         (func_modules_transitive_closure): When --with-tests was specified,
95398         include the unit tests as well, unless explicitly avoided.
95399         (func_emit_lib_Makefile_am): Ignore the tests modules here.
95400         (func_emit_tests_Makefile_am): New function.
95401         (func_create_testdir): When --with-tests was specified, emit a
95402         tests/ directory.
95403         * MODULES.html.sh (Future developments): Update.
95405 2005-08-24  Bruno Haible  <bruno@clisp.org>
95407         * modules/tls-tests: New file.
95408         * tests/test-tls.c: New file, from GNU gettext.
95410 2005-08-24  Bruno Haible  <bruno@clisp.org>
95412         * modules/lock-tests: New file.
95413         * tests/test-lock.c: New file, from GNU gettext.
95415 2005-08-24  Bruno Haible  <bruno@clisp.org>
95417         * lib/lock.h: Add multiple inclusion guard.
95418         * lib/tls.h: Add multiple inclusion guard.
95420 2005-08-24  Bruno Haible  <bruno@clisp.org>
95422         * gnulib-tool: Add support for the --aux-dir option to
95423         --create-testdir, --create-megatestdir, --test, --megatest.
95424         (func_create_testdir, func_create_megatestdir): Optionally emit a
95425         AC_CONFIG_AUX_DIR directive.
95426         (create-testdir, create-megatestdir, test, megatest): Provide a
95427         default value for $auxdir.
95429 2005-08-24  Bruno Haible  <bruno@clisp.org>
95431         * gnulib-tool (import): Use compound statement instead of subshell
95432         where possible.
95434 2005-08-24  Bruno Haible  <bruno@clisp.org>
95436         * gnulib-tool (import): Change --aux-dir default to "build-aux".
95438 2005-08-24  Bruno Haible  <bruno@clisp.org>
95440         * gnulib-tool (func_version): Update.
95442 2005-08-24  Bruno Haible  <bruno@clisp.org>
95444         * gnulib-tool (func_import, func_create_testdir,
95445         func_create_megatestdir): Quote all autoconf macro arguments.
95447 2005-08-24  Bruno Haible  <bruno@clisp.org>
95449         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
95450         option --force, because --force causes the aclocal.m4 of each
95451         subdirectory to be newer than the corresponding config.h.in.
95453 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
95455         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
95456         All contents moved to gl_REGEX.
95457         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
95458         assume that it does.
95460 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
95462         * lib/regex.h (REG_NOSYS)
95463         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
95464         Define, since POSIX requires it as of 2001.
95465         (_REG_ENOSYS)
95466         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
95467         New private symbol, used to keep the enum signed in all cases.
95468         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
95469         Youngman in
95470         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
95472         * lib/regex_internal.c (re_string_skip_chars, register_state):
95473         (calc_state_hash):
95474         Remove forward decls; no longer needed now that we use prototypes.
95475         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
95476         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
95477         (clean_state_log_if_needed): Likewise.
95479 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
95481         * config/srclist.txt: Add glibc bugs 1231-1233.
95483 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
95485         Fix problems reported by Sam Steingold in
95486         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
95487         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
95488         assumed that reg_errcode_t is a signed type, which is not
95489         necessarily true if _XOPEN_SOURCE is not defined.
95490         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
95491         since some compilers warn about it otherwise.
95493 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
95495         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
95496         (init_word_char, create_initial_state, duplicate_node_closure):
95497         (fetch_token, peek_token_bracket, build_range_exp):
95498         (build_collating_symbol): Remove forward decls; no longer needed
95499         now that we use prototypes.
95501         * lib/regcomp.c:
95502         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
95503         (re_compile_fastmap_iter, regcomp, regerror, regfree):
95504         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
95505         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
95506         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
95507         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
95508         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
95509         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
95510         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
95511         (build_range_exp, build_collating_symbol, parse_bracket_exp):
95512         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
95513         (build_charclass, build_charclass_op, fetch_number, create_tree):
95514         (create_token_tree, mark_opt_subexp, duplicate_tree):
95515         Use prototypes rather than old-style definitions.
95517         * lib/regex_internal.c:
95518         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
95519         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
95520         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
95521         (re_string_reconstruct, re_string_peek_byte_case):
95522         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
95523         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
95524         (re_node_set_init_copy, re_node_set_add_intersect):
95525         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
95526         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
95527         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
95528         (re_acquire_state, re_acquire_state_context, register_state):
95529         (create_ci_newstate, create_cd_newstate, free_state):
95530         Likewise.
95531         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
95532         re_search_2):
95533         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
95534         (re_search_internal, prune_impossible_nodes):
95535         (acquire_init_state_context, check_matching, static):
95536         (check_halt_node_context, check_halt_state_context, proceed_next_node):
95537         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
95538         (update_regs, sift_states_backward, build_sifted_states):
95539         (clean_state_log_if_needed, merge_state_array):
95540         (update_cur_sifted_state, add_epsilon_src_nodes):
95541         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
95542         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
95543         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
95544         (find_recover_state, check_subexp_matching_top, transit_state_mb):
95545         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
95546         (check_arrival, check_arrival_add_next_nodes):
95547         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
95548         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
95549         (check_node_accept_bytes, check_node_accept, extend_buffers):
95550         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
95551         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
95552         (sift_ctx_init):
95553         Likewise.
95555         * lib/regex_internal.h:
95556         (re_string_allocate, re_string_construct, re_string_reconstruct):
95557         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
95558         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
95559         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
95560         (re_string_context_at, re_string_peek_byte_case):
95561         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
95562         is defined, since we now use prototypes always.
95564         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
95565         C89 or better.  All uses removed.
95567 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
95569         * config/srclist.txt: Add glibc bugs 1220-1227.
95571 2005-08-20  Jim Meyering  <jim@meyering.net>
95573         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
95574         of unused local, dfa.
95576 2005-08-20  Bruno Haible  <bruno@clisp.org>
95578         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
95580 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
95582         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
95583         (re_node_set_insert_last, re_dfa_add_node):
95584         Rename local variables to avoid GCC shadowing warnings.
95586 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
95588         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
95589         [defined lint]: Suppress bogus uninitialized-variable warnings.
95591         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
95592         and let the caller return REG_ESPACE if out of space.  This
95593         removes an uninitialied-variable warning with GCC 4.0.1, and also
95594         avoids taking the address of a local variable.  All callers
95595         changed.
95597 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
95599         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
95600         $LIBCSRC/posix/regexec.c.
95601         Add glibc bug 1217 for regcomp.c.
95603 2005-08-19  Jim Meyering  <jim@meyering.net>
95605         * lib/regexec.c (proceed_next_node): Redo local variables to
95606         avoid GCC shadowing warnings.
95608 2005-08-18  Bruno Haible  <bruno@clisp.org>
95610         * lib/strstr.c (strstr): Fix return value in multibyte case.
95611         * lib/strcasestr.c (strcasestr): Likewise.
95613 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
95615         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
95617 2005-08-17  Jim Meyering  <jim@meyering.net>
95619         Make the %s format (seconds since the epoch) work for a negative
95620         number and when used with a zero-padded field width, e.g. %015s.
95622         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
95623         label so that it precedes the code to set `digits'.  Otherwise,
95624         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
95625         print `00-22'.  Now, it prints `-0022', as it should.
95627 2005-08-17  Bruno Haible  <bruno@clisp.org>
95629         * modules/strstr (Files): Add m4/mbrtowc.m4.
95630         (Depends-on): Add mbuiter.
95632 2005-08-17  Bruno Haible  <bruno@clisp.org>
95634         * modules/strcasestr: New file.
95635         * MODULES.html.sh (String handling, based on ANSI C 89): Add
95636         strcasestr.
95638 2005-08-17  Bruno Haible  <bruno@clisp.org>
95640         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
95642 2005-08-17  Bruno Haible  <bruno@clisp.org>
95644         * modules/mbuiter: New file.
95645         * MODULES.html.sh (Extended multibyte and wide character utilities):
95646         Add mbuiter.
95648 2005-08-17  Bruno Haible  <bruno@clisp.org>
95650         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
95651         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
95653 2005-08-17  Bruno Haible  <bruno@clisp.org>
95655         * m4/strcasestr.m4: New file.
95657 2005-08-17  Bruno Haible  <bruno@clisp.org>
95659         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
95660         * lib/strstr.c: Completely rewritten, with multibyte locale support.
95662 2005-08-17  Bruno Haible  <bruno@clisp.org>
95664         * lib/strcasestr.h: New file.
95665         * lib/strcasestr.c: New file.
95667 2005-08-17  Bruno Haible  <bruno@clisp.org>
95669         * lib/strcasecmp.c: Use mbuiter.h.
95671 2005-08-17  Bruno Haible  <bruno@clisp.org>
95673         * lib/mbuiter.h: New file.
95675 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
95677         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
95678         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
95679         and gl_GETOPT are both invoked via different paths (as happens
95680         with GNU tar CVS because it uses both argp and getopt), the former
95681         wins.
95683 2005-08-16  Bruno Haible  <bruno@clisp.org>
95685         * modules/tls: New file.
95686         * MODULES.html.sh (Multithreading): Add tls.
95688 2005-08-16  Bruno Haible  <bruno@clisp.org>
95690         * modules/strnlen1: New file.
95691         * MODULES.html.sh (String handling): Add strnlen1.
95693 2005-08-16  Bruno Haible  <bruno@clisp.org>
95695         * modules/strcase (Files): Add m4/mbrtowc.m4.
95696         (Depends-on): Add strnlen1, mbchar.
95698 2005-08-16  Bruno Haible  <bruno@clisp.org>
95700         * modules/mbiter: New file.
95701         * MODULES.html.sh (Extended multibyte and wide character utilities):
95702         Add mbiter.
95704 2005-08-16  Bruno Haible  <bruno@clisp.org>
95706         * modules/mbfile: New file.
95707         * MODULES.html.sh (Extended multibyte and wide character utilities):
95708         Add mbfile.
95710 2005-08-16  Bruno Haible  <bruno@clisp.org>
95712         * modules/mbchar: New file.
95713         * MODULES.html.sh (Extended multibyte and wide character utilities):
95714         New section.
95716 2005-08-16  Bruno Haible  <bruno@clisp.org>
95718         * m4/tls.m4: New file, from GNU gettext.
95720 2005-08-16  Bruno Haible  <bruno@clisp.org>
95722         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
95723         always.
95724         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
95726 2005-08-16  Bruno Haible  <bruno@clisp.org>
95728         * m4/mbiter.m4: New file.
95730 2005-08-16  Bruno Haible  <bruno@clisp.org>
95732         * m4/mbfile.m4: New file.
95734 2005-08-16  Bruno Haible  <bruno@clisp.org>
95736         * m4/mbchar.m4: New file.
95738 2005-08-16  Bruno Haible  <bruno@clisp.org>
95740         * lib/tls.h: New file, from GNU gettext.
95741         * lib/tls.c: New file, from GNU gettext.
95743 2005-08-16  Bruno Haible  <bruno@clisp.org>
95745         * lib/strnlen1.h: New file.
95746         * lib/strnlen1.c: New file.
95748 2005-08-16  Bruno Haible  <bruno@clisp.org>
95750         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
95751         (mbi_init): Update.
95752         (mbi_avail, mbi_advance): Let the iteration end before the terminating
95753         NUL byte, not after it.
95755 2005-08-16  Bruno Haible  <bruno@clisp.org>
95757         * lib/strcase.h (strcasecmp): Add note in comments.
95758         * lib/strncasecmp.c: Use code from strcasecmp.c.
95759         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
95760         (strcasecmp): Work correctly in multibyte locales.
95762 2005-08-16  Bruno Haible  <bruno@clisp.org>
95764         * lib/mbiter.h: New file.
95766 2005-08-16  Bruno Haible  <bruno@clisp.org>
95768         * lib/mbfile.h: New file.
95770 2005-08-16  Bruno Haible  <bruno@clisp.org>
95772         * lib/mbchar.h: New file.
95773         * lib/mbchar.c: New file.
95775 2005-08-16  Bruno Haible  <bruno@clisp.org>
95777         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
95778         the valid ones. Makes the comparison operations transitive:
95779         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
95780         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
95782 2005-08-15  Simon Josefsson  <jas@extundo.com>
95784         * modules/ssize_t (License): Change to 'unlimited'.
95786         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
95788 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
95790         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
95791         Add comments for each pending glibc patch.
95793 2005-08-15  Bruno Haible  <bruno@clisp.org>
95795         * lib/regex.h (__restrict_arr): Don't define to __restrict if
95796         __cplusplus is defined.
95798 2005-08-14  Jim Meyering  <jim@meyering.net>
95800         Sync from coreutils.
95802         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
95803         Use the hash-table-based cycle-detection code not just when
95804         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
95805         Reported by James Youngman in
95806         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
95807         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
95808         FTS_TIGHT_CYCLE_CHECK.
95809         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
95810         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
95811         once again.
95812         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
95813         * lib/fts.c (fd_safer): Remove decl.
95814         Include fcntl--.h rather than unistd-safer.h
95815         (fts_safe_changedir): Don't call fd_safer; no longer needed
95816         now that we include fcntl--.h.
95818 2005-08-12  Simon Josefsson  <jas@extundo.com>
95820         * modules/getndelim2: Use ssize_t module.
95821         * modules/getnline: Likewise.
95822         * modules/safe-read: Likewise.
95823         * modules/xreadlink: Likewise.
95825         * modules/ssize_t: New file.
95827 2005-08-12  Simon Josefsson  <jas@extundo.com>
95829         * m4/readline.m4: Look for termcap, curses or ncurses if required.
95831 2005-08-12  Simon Josefsson  <jas@extundo.com>
95833         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
95834         ssize_t.
95836 2005-08-12  Simon Josefsson  <jas@extundo.com>
95838         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
95839         readline, getdelim and check_version.
95840         (Support for systems lacking ISO C 99: Sizes of integer types):
95841         Add size_max.
95843 2005-08-12  Bruno Haible  <bruno@clisp.org>
95845         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
95847 2005-08-11  Simon Josefsson  <jas@extundo.com>
95849         * modules/readline: New file.
95851         * modules/strnlen (Files): Add strnlen.h.
95853 2005-08-11  Simon Josefsson  <jas@extundo.com>
95855         * m4/readline.m4: New file.
95857 2005-08-11  Simon Josefsson  <jas@extundo.com>
95859         * lib/readline.h, readline.c: New file.
95861 2005-08-11  Simon Josefsson  <jas@extundo.com>
95863         * doc/gnulib.texi (Initial import, Finishing touches): Mention
95864         gl_AVOID.
95866 2005-08-11  Bruno Haible  <bruno@clisp.org>
95868         * lib/strnlen.h (strnlen): Change parameter name to match comment.
95870 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
95872         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
95874 2005-08-10  Simon Josefsson  <jas@extundo.com>
95876         * tests/test-iconvme.c: New file.
95878 2005-08-10  Simon Josefsson  <jas@extundo.com>
95880         * m4/strnlen.m4: New file.
95882         * m4/strndup.m4: Don't check for strnlen declaration, done in
95883         strnlen.m4.
95885 2005-08-10  Simon Josefsson  <jas@extundo.com>
95887         * lib/strndup.c: Use strnlen.h.
95889         * lib/strnlen.h: New file.
95891 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
95893         * README: Typos.
95895 2005-08-02  Simon Josefsson  <jas@extundo.com>
95897         * modules/readline: New file.
95899 2005-08-02  Simon Josefsson  <jas@extundo.com>
95901         * modules/getdelim: New file.
95903         * modules/getline: Rewrite, don't use getndelim2.
95905 2005-08-02  Simon Josefsson  <jas@extundo.com>
95907         * m4/getline.m4: Separate out getdelim stuff into separate module.
95909         * m4/getdelim.m4: New file.
95911 2005-08-02  Simon Josefsson  <jas@extundo.com>
95913         * lib/getline.h, getline.c: Rewrite.
95915         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
95917 2005-07-31  Bruno Haible  <bruno@clisp.org>
95919         * lib/lock.h (gl_lock_initializer): New macro.
95920         (gl_lock_define_initialized): Use it.
95921         (gl_rwlock_initializer): New macro.
95922         (gl_rwlock_define_initialized): Use it.
95923         (gl_recursive_lock_initializer): New macro.
95924         (gl_recursive_lock_define_initialized): Use it.
95926 2005-07-30  Karl Berry  <karl@gnu.org>
95928         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
95929         Report from Ben Pfaff, regarding getopt.
95931 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
95933         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
95934         normal way.
95935         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
95936         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
95937         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
95938         (gl_GETOPT): Use the new macros.  Most of the implementation
95939         is moved to the new macros.  This is for programs like Emacs
95940         that don't want all the functionality of gl_GETOPT.
95942 2005-07-26  Bruno Haible  <bruno@clisp.org>
95944         * m4/lock.m4: Update from GNU gettext.
95946 2005-07-26  Bruno Haible  <bruno@clisp.org>
95948         * lib/lock.h: Update from GNU gettext.
95949         * lib/lock.c: Update from GNU gettext.
95951 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
95953         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
95954         obsolescent AC_TRY_RUN.  Include the default includes files, for
95955         'exit'.
95957 2005-07-24  Bruno Haible  <bruno@clisp.org>
95959         * modules/visibility: New file.
95960         * MODULES.html.sh (Misc): Add visibility.
95962 2005-07-24  Bruno Haible  <bruno@clisp.org>
95964         * m4/visibility.m4: New file.
95966 2005-07-24  Bruno Haible  <bruno@clisp.org>
95968         * doc/visibility.texi: New file.
95970 2005-07-22  Bruno Haible  <bruno@clisp.org>
95972         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
95973         $(ALLOCA_H), redundant through BUILT_SOURCES.
95974         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
95975         redundant through BUILT_SOURCES.
95976         * modules/byteswap (Makefile.am): Remove explicit dependency on
95977         $(BYTESWAP_H), redundant through BUILT_SOURCES.
95978         * modules/fnmatch (Makefile.am): Remove explicit dependency on
95979         $(FNMATCH_H), redundant through BUILT_SOURCES.
95980         * modules/getopt (Makefile.am): Remove explicit dependency on
95981         $(GETOPT_H), redundant through BUILT_SOURCES.
95982         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
95983         redundant through BUILT_SOURCES.
95984         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
95985         redundant through BUILT_SOURCES.
95986         * modules/stdbool (Makefile.am): Remove explicit dependency on
95987         $(STDBOOL_H), redundant through BUILT_SOURCES.
95988         * modules/stdint (Makefile.am): Remove explicit dependency on
95989         $(STDINT_H), redundant through BUILT_SOURCES.
95990         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
95991         Remove explicit dependency on $(SYSEXITS_H).
95992         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
95994 2005-07-18  Simon Josefsson  <jas@extundo.com>
95996         * lib/check-version.c (check_version): Accept identical versions too.
95998 2005-07-18  Bruno Haible  <bruno@clisp.org>
96000         * modules/lock: New file.
96001         * MODULES.html.sh (Multithreading): New section.
96003 2005-07-18  Bruno Haible  <bruno@clisp.org>
96005         * m4/lock.m4: New file, from GNU gettext.
96007 2005-07-18  Bruno Haible  <bruno@clisp.org>
96009         * lib/lock.h: New file, from GNU gettext.
96010         * lib/lock.c: New file, from GNU gettext.
96012 2005-07-18  Bruno Haible  <bruno@clisp.org>
96014         * lib/lock.h (gl_once_t): New type.
96015         (gl_once_define, gl_once): New macros.
96016         * lib/lock.c (fresh_once): New variable.
96017         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
96018         functions.
96020 2005-07-16  Simon Josefsson  <jas@extundo.com>
96022         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
96023         workaround, suggested by Bruno.
96025 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
96027         * modules/xalloc (Depends-on): Add xalloc-die.
96028         * modules/xvasprintf (Depends-on): Add xalloc-die.
96030 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
96032         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
96033         with a minor change.
96035 2005-07-15  Bruno Haible  <bruno@clisp.org>
96037         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
96038         When using lib/poll.c, define poll as rpl_poll.
96040 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
96042         * modules/argp (Depends-on): Remove unlocked-io.
96044 2005-07-14  Derek Price  <derek@ximbiot.com>
96046         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
96047         for glob symlink bug.
96049 2005-07-14  Bruno Haible  <bruno@clisp.org>
96051         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
96052         Instead, test for *_unlocked function declarations directly.
96054 2005-07-11  Simon Josefsson  <jas@extundo.com>
96056         * modules/size_max: New file.
96058         * modules/xsize: Depend on size_max module for size_max.m4.
96060 2005-07-11  Simon Josefsson  <jas@extundo.com>
96062         * lib/size_max.h: New file.
96064 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
96066         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
96067         copyright symbol and the year.
96068         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
96069         (version_etc_va): Use parameterized copyright notice.
96070         Reword to conform to the current GNU coding standards.
96072 2005-07-11  Karl Berry  <karl@gnu.org>
96074         * doc/gnulib.texi (Quoting): new node.
96075         (Initial import): more info, from Patrice.
96077 2005-07-11  Bruno Haible  <bruno@clisp.org>
96079         * gnulib-tool (func_usage): Document option --avoid.
96080         (Command line options): Handle --avoid.
96081         (func_acceptable): New function.
96082         (func_modules_transitive_closure): Use it.
96084 2005-07-11  Bruno Haible  <bruno@clisp.org>
96086         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
96087         Reported by Jim Meyering.
96089 2005-07-10  Bruno Haible  <bruno@clisp.org>
96091         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
96092         Needed when size_t is smaller than 'unsigned int'.
96093         Reported by Paul Eggert.
96095 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
96097         * modules/argp (Depends-on): Add unlocked-io
96099 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
96101         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
96102         block of defines.
96104 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
96106         * config/srclist.txt: Comment out regcomp.c, since we have a porting
96107         fix now.
96109 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
96110         and Paul Eggert  <eggert@cs.ucla.edu>
96112         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
96113         in wint_t, not wchar_t.  Remove now-unnecessary cast.
96115 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
96117         * modules/regex (Files): Add lib/regex_internal.c,
96118         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
96119         (Depends-on): Add extensions.
96120         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
96122 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
96124         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
96125         pathconf.
96126         * m4/same.m4 (gl_SAME): Likewise.
96127         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
96129         * m4/regex.m4: Adjust to new libc regex implementation.
96130         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
96131         all the .c and .h parts of (the new) regex.
96132         Quote the m4 stuff better.
96133         Check for RE_ICASE bug of old gnulib.
96134         Check for REG_STARTEND of recent libc.
96135         Rename local variables from jm_* to gl_*.
96136         Quote operand of "test -f".
96137         Say "recent enough" version of libc, not "version 2".
96138         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
96139         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
96140         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
96141         Remove check for btowc, isascii.
96142         Require AM_LANGINFO_CODESET.
96144 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
96146         * lib/regex.c, regex.h: Sync from libc.
96147         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
96148         * lib/regexec.c:
96149         New files, synced from libc, except that regex_internal.h
96150         currently has a small porting fix.
96152 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
96154         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
96155         regex_internal.c, regexec.c.
96156         Add regex_internal.h too, but as a comment, since the libc version
96157         is currently broken in gnulib mode.
96159 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
96161         Support programs like Emacs that use gnulib but not gettext.
96162         * MODULES.html.sh (Internationalization functions): Add gettext-h.
96163         * modules/gettext-h: New file.
96164         * modules/gettext (Files): Remove lib/gettext.h.
96165         (Depends-on): Add gettext-h.
96166         (Makefile.am): Remove lib_SOURCES.
96167         * modules/argmatch, modules/c-stack, modules/closeout:
96168         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
96169         * modules/execute, modules/file-type, modules/getaddrinfo:
96170         * modules/getopt, modules/human, modules/javacomp:
96171         * modules/javaexec, modules/mkdir-p, modules/obstack:
96172         * modules/openat, modules/pagealign_alloc, modules/pipe:
96173         * modules/quotearg, modules/regex, modules/rpmatch:
96174         * modules/unicodeio, modules/userspec, modules/version-etc:
96175         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
96176         * modules/xsetenv:
96177         Depend on gettext-h, not gettext.
96179 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
96181         * gnulib-tool (func_import): Add support for 'public domain' license.
96182         * modules/alloca, modules/atexit, modules/memmove:
96183         Now public domain, not GPL.
96184         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
96185         * modules/realloc, modules/strerror, modules/strtod:
96186         Now LGPL, not GPL.
96188 2005-07-05  Bruno Haible  <bruno@clisp.org>
96190         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
96191         autoconf CVS. Needed for mingw.
96193 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
96195         Remove the dependency of the strftime module on the tzset module.
96196         * modules/strftime (Depends-on): Remove dependency on tzset.
96198 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
96200         Remove the dependency of the strftime module on the tzset module.
96201         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
96202         gl_FUNC_TZSET_CLOBBER.
96204 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
96206         Remove the dependency of the strftime module on the tzset module.
96207         * lib/strftime.c (my_strftime)
96208         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
96209         Copy the input structure, to work around some of the bug with
96210         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
96211         Solaris releases, you should also use the tzset module, but we won't
96212         require it as a dependency any more since we don't want LGPLed code
96213         to depend on GPLed code.
96215 2005-07-02  Jim Meyering  <jim@meyering.net>
96217         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
96218         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
96219         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
96220         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
96222 2005-07-02  Jim Meyering  <jim@meyering.net>
96224         * lib/backupfile.c (backup_args): Change a `0' to NULL.
96226 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
96228         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
96229         declares only 'struct timespec;' (!).
96231 2005-07-01  Jim Meyering  <jim@meyering.net>
96233         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
96234         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
96235         * lib/save-cwd.c, tempname.c:
96236         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
96237         and don't include <sys/file.h>).
96239 2005-06-29  Jim Meyering  <jim@meyering.net>
96241         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
96242         type name.  Use the variable name instead.
96243         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
96244         Likewise.
96246 2005-06-28  Simon Josefsson  <jas@extundo.com>
96248         * modules/check-version (Files): Add check-version.m4.
96250 2005-06-28  Simon Josefsson  <jas@extundo.com>
96252         * m4/check-version.m4: New file, suggested by Jim Meyering
96253         <jim@meyering.net>.
96255 2005-06-28  Simon Josefsson  <jas@extundo.com>
96257         * lib/check-version.h, lib/check-version.c: New files.
96259 2005-06-28  Simon Josefsson  <jas@extundo.com>
96261         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
96262         collision with global variable.  Better indentation.  Don't
96263         increment buffer pointer beyond buffer end.  Based on comments
96264         from Paul Eggert <eggert@cs.ucla.edu>.
96266         * lib/base64.h: Indent.
96268 2005-06-28  Simon Josefsson  <jas@extundo.com>
96270         * doc/gnulib.texi (Library version handling): New section.
96272 2005-06-28  Jim Meyering  <jim@meyering.net>
96274         * check-module (find_included_lib_files): Hard-code another
96275         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
96276         but modules/fts-lgpl (correctly) does not list those files.
96278         * modules/canonicalize (Files): Add lib/pathmax.h.
96280 2005-06-25  Simon Josefsson  <jas@extundo.com>
96282         * modules/check-version: New file.
96284 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
96286         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
96287         initializer of struct addrinfo, as an indication that we don't
96288         care how many members the structure has.
96290 2005-06-24  Derek Price  <derek@ximbiot.com>
96291         and Bruno Haible  <bruno@clisp.org>
96293         Remove stat module & update lstat.
96294         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
96295         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
96296         * m4/stat.m4: Remove this file.
96298 2005-06-24  Derek Price  <derek@ximbiot.com>
96299         and Bruno Haible  <bruno@clisp.org>
96301         Remove stat module & update lstat.
96302         * lib/stat.c: Remove this file...
96303         (slash_aware_lstat): ...moving this content and its support...
96304         * lib/lstat.c (rpl_lstat): ...into here.
96305         * lib/lstat.h: New file.
96307 2005-06-24  Derek Price  <derek@ximbiot.com>
96308         and Bruno Haible  <bruno@clisp.org>
96310         Remove stat module & update lstat.
96311         * config/srclist.txt (libc sources): Remove stat.
96313 2005-06-24  Derek Price  <derek@ximbiot.com>
96314         and Bruno Haible  <bruno@clisp.org>
96316         Remove stat module & update lstat.
96317         * MODULES.html.sh (stat): Remove.
96318         * MODULES.html: Regenerated.
96319         * modules/lstat (Description): Correct function name.
96320         (Files): Add "lstat.h".
96321         (Depends-on): Remove stat, add xalloc, stat-macros.
96322         * modules/stat: Remove this file.
96323         (Include): Add "lstat.h", remove <sys/stat.h>.
96325 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
96327         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
96328         (ranged_convert): Don't save conversion in a temporary struct.
96329         This causes a warning with GCC 4.0.0, and anyway in the typical
96330         case it's not worth the extra 100 bytes or so of code.
96331         (ranged_convert, __mktime_internal): When calling a function via a
96332         pointer P, use P () rather than (*P) (), as we now assume C89 or
96333         better.
96335 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
96337         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
96338         "who -r" failed to give output.  Problem reported by Tim Waugh.
96340         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
96341         (xcalloc): Use it to avoid needless tests.
96342         Problem reported by Jim Meyering.
96344 2005-06-20  Derek Price  <derek@ximbiot.com>
96346         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
96347         unnecessary for Autoconfs > 2.59c.
96349 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
96351         * lib/argp.h (__option_is_short): Check upper limit of
96352         __key. Isprint() requires its argument to have the value
96353         of an unsigned char or EOF.
96355 2005-06-16  Jim Meyering  <jim@meyering.net>
96357         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
96358         when either N or S is zero.
96360 2005-06-16  Derek Price  <derek@ximbiot.com>
96362         * m4/bison.m4: Declare YACC & YFLAGS precious.
96364 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
96366         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
96367         multibyte string or pattern, fall back on unibyte matching.
96368         Problem reported by James Youngman.
96370 2005-06-08  Bruno Haible  <bruno@clisp.org>
96372         * modules/csharpcomp: New file.
96373         * MODULES.html.sh (C#): Add csharpcomp.
96375 2005-06-08  Bruno Haible  <bruno@clisp.org>
96377         * m4/csharpcomp.m4: New file, from GNU gettext.
96379 2005-06-08  Bruno Haible  <bruno@clisp.org>
96381         * lib/csharpcomp.h: New file, from GNU gettext.
96382         * lib/csharpcomp.c: New file, from GNU gettext.
96383         * lib/csharpcomp.sh.in: New file, from GNU gettext.
96385 2005-06-08  Bruno Haible  <bruno@clisp.org>
96387         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
96388         warning on mingw.
96390 2005-06-07  Derek Price  <derek@ximbiot.com>
96392         Sync from CVS.
96393         * lib/glob_.h: Indent nested #ifdef.
96395 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
96397         Sync from coreutils.
96398         Use "file name" when talking about file names, instead of "filename"
96399         or "path", as per the GNU coding standards.
96400         * lib/mkdir-p.c: Renamed from makepath.c.
96401         (make_dir_parents): Renamed from make_path.  All callers changed.
96402         * lib/mkdir-p.h: Likewise.  All includers changed.
96403         * lib/filenamecat.c: Renamed from path-concat.c.
96404         (file_name_concat): Renamed from path_concat.  All callers changed.
96405         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
96406         * lib/filenamecat.h: Likewise.  All includers changed.
96407         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
96408         in comments or local variable names.
96409         * lib/basename.c: Likewise.
96410         * lib/canonicalize.c, canonicalize.h: Likewise.
96411         * lib/dirname.c, dirname.h: Likewise.
96412         * lib/euidaccess.c: Likewise.
96413         * lib/exclude.c: Likewise
96414         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
96415         * lib/fsusage.c, fsuage.h: Likewise.
96416         * lib/fts.c, fts_.h: Likewise.
96417         * lib/getcwd.c: Likewise.
96418         * lib/getloadavg.c: Likewise.
96419         * lib/mkstemp.c: Likewise.
96420         * lib/mountlist.c, mountlist.h: Likewise.
96421         * lib/openat.c, openat.h: Likewise.
96422         * lib/readlink-stub.c: Likewise.
96423         * lib/readutmp.c, readutmp.h: Likewise.
96424         * lib/rename.c: Likewise.
96425         * lib/rmdir.c: Likewise.
96426         * lib/same.c: Likewise.
96427         * lib/savedir.c: Likewise.
96428         * lib/stripslash.c: Likewise.
96429         * lib/tempname.c: Likewise.
96430         * lib/xreadlink.c: Likewise.
96431         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
96432         All uses changed.
96433         * lib/exclude.h: Likewise.
96435         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
96436         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
96437         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
96438         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
96439         * lib/pathmax.h: Include <limits.h> unconditionally, since other
96440         files have been getting away with it for years (MORE/BSD 4.3
96441         is extinct now).
96442         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
96443         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
96445         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
96446         Define to 256, not 255, as per modern POSIX.
96448 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
96450         Sync from coreutils.
96451         Use "file name" when talking about file names, instead of "filename"
96452         or "path", as per the GNU coding standards.
96453         * MODULES.html.sh: mkdir-p renamed from makepath.
96454         filenamecat renamed from path-concat.
96455         * modules/filenamecat: Renamed from modules/path-concat.
96456         (Files): filenamecat.h and filenamecat.c renamed from
96457         path-concat.h and path-concat.c.
96458         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
96459         (Include): filenamecat.h, not path-concat.h.
96460         * modules/mkdir-p: Renamed from modules/makepath.
96461         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
96462         makepath.c.
96463         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
96464         (Include): mkdir-p.h, not makepath.h.
96466 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
96468         Sync from coreutils.
96469         * m4/mkdir-p.m4: Renamed from makepath.m4.
96470         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
96471         Rename files from makepath.c to mkdir-p.c, and from
96472         makepath.h to mkdir-p.h.
96473         * m4/filenamecat.m4: Renamed from path-concat.m4.
96474         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
96475         Rename files from path-concat.c to filenamecat.c,
96476         and from path-concat.h to filenamecat.h.
96477         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
96478         "file name" in local variables or comments.
96479         * m4/rename.m4: Likewise.
96481 2005-06-01  Bruno Haible  <bruno@clisp.org>
96483         * modules/csharpexec: New file.
96484         * MODULES.html.sh (C#): New section.
96486 2005-06-01  Bruno Haible  <bruno@clisp.org>
96488         * m4/csharp.m4: New file, from GNU gettext.
96489         * m4/csharpexec.m4: New file, from GNU gettext.
96491 2005-06-01  Bruno Haible  <bruno@clisp.org>
96493         * lib/csharpexec.h: New file, from GNU gettext.
96494         * lib/csharpexec.c: New file, from GNU gettext.
96495         * lib/csharpexec.sh.in: New file, from GNU gettext.
96497 2005-05-31  Derek Price  <derek@ximbiot.com>
96498             Paul Eggert  <eggert@cs.ucla.edu>
96500         Sync from cvs.
96501         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
96503 2005-05-31  Derek Price  <derek@ximbiot.com>
96504             Paul Eggert  <eggert@cs.ucla.edu>
96506         Sync from cvs.
96507         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
96509 2005-05-29  Derek Price  <derek@ximbiot.com>
96511         * config/srclist.txt (glob_.h, glob.c): Add these files.
96513 2005-05-29  Derek Price  <derek@ximbiot.com>
96515         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
96516         * modules/glob: New file.
96517         * modules/getlogin_r: Add link to POSIX spec in description.
96519 2005-05-29  Derek Price  <derek@ximbiot.com>
96520             Paul Eggert  <eggert@cs.ucla.edu>
96522         * m4/glob.m4: New file.
96524 2005-05-29  Derek Price  <derek@ximbiot.com>
96525             Paul Eggert  <eggert@cs.ucla.edu>
96527         * lib/glob_.h, lib/glob.c: New files.
96529 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
96531         * modules/fts (Files): Remove m4/inttypes-pri.m4.
96532         * modules/fts-lgpl (Depends-on): Remove gettext.
96534 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
96536         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
96537         and don't require gt_INTTYPES_PRI.
96539 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
96541         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
96543         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
96544         the configuration hassle isn't worth it.
96545         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
96546         (LONGEST_MODIFIER, PRIuMAX): Remove.
96548 2005-05-27  Bruno Haible  <bruno@clisp.org>
96550         * lib/getlogin_r.h: Remove second include of <stddef.h>.
96552 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
96554         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
96555         _POSIX_PTHREAD_SEMANTICS for Solaris.
96557 2005-05-25  Derek Price  <derek@ximbiot.com>
96559         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
96561 2005-05-25  Derek Price  <derek@ximbiot.com>
96562             Paul Eggert  <eggert@cs.ucla.edu>
96564         * modules/getlogin_r, m4/getlogin_r.m4: New files.
96565         * lib/getlogin_r.c, getlogin_r.h: New files.
96567 2005-05-25  Bruno Haible  <bruno@clisp.org>
96568             Derek Price  <derek@ximbiot.com>
96570         * lib/getlogin_r.h: Simplify API documentation.
96572 2005-05-23  Derek Price  <derek@ximbiot.com>
96574         * modules/minmax (Files): Add m4/minmax.m4.
96575         (configure.ac): Add gl_MINMAX.
96577 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
96579         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
96580         so that unistd-safer.h (GPL'ed code) need not be included.
96582 2005-05-22  Bruno Haible  <bruno@clisp.org>
96584         * m4/minmax.m4: New file.
96585         Based on a patch by Derek Price <derek@ximbiot.com>.
96587 2005-05-22  Bruno Haible  <bruno@clisp.org>
96589         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
96590         (INT64_MIN): Fix definition.
96591         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
96593         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
96594         NEED_SIGNED_INT_TYPES.
96596         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
96597         HAVE_SYSTEM_INTTYPES.
96599 2005-05-22  Bruno Haible  <bruno@clisp.org>
96601         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
96602         Also include <sys/param.h> if it defines MIN, MAX.
96603         Based on a patch by Derek Price <derek@ximbiot.com>.
96605 2005-05-21  Jim Meyering  <jim@meyering.net>
96607         * modules/fts (Files): Add m4/inttypes-pri.m4.
96608         (Depends-on): Add lstat and remove gettext.  Alphabetize.
96610 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
96612         New fts module.
96613         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
96614         (setup_dir, free_dir): New functions.
96615         (enter_dir, leave_dir): Define trivial
96616         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
96617         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
96618         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
96619         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
96620         Move to fts-cycle.c.
96621         (fts_open): Use setup_dir.
96622         (fts_close): Use free_dir.
96623         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
96624         This adds a label and some gotos, but the alternatives were messier.
96625         Check for memory allocation failure when entering a dir.
96626         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
96627         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
96628         (FTS): New member fts_cycle, that is a union that contains the
96629         old active_dir_ht and cycle_state.  All uses changed to mention
96630         fts_cycle.ht and fts_cycle.state.
96631         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
96632         fts.c, with the following changes:
96633         (setup_dir, free_dir): New functions.
96634         (enter_dir): Now returns bool.  Return true if successful, false
96635         if memory exhausted.  All callers changed.
96636         Do not bother partly cleaning up on
96637         memory allocation failure; that is free_dir's job.
96638         However, free ad if hash_insert fails, to avoid memory leak.
96639         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
96640         fts->fts_options to see which union member to use.
96642 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
96644         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
96645         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
96647 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
96649         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
96651 2005-05-20  Jim Meyering  <jim@meyering.net>
96653         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
96654         Now a macro, to pacify GCC.
96656 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
96658         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
96659         of -1.
96661 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
96663         * lib/chown.c (rpl_chown): Return -1 on failure.
96665 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
96667         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
96668         Don't check for stddef.h.
96669         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
96670         don't use its results.
96671         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
96672         since we include them unconditionally.  Don't require
96673         AM_STDBOOL_H, since stdbool is a prerequisite.
96674         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
96675         since we assume C89 or better.
96676         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
96677         as we don't use their results.
96678         Don't check for fchdir, memmove, memset, strrchr, as we use
96679         them unconditionally.
96680         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
96681         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
96683 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
96685         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
96686         Include <stddef.h> unconditionally, since we assume C89 now.
96687         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
96688         * lib/fts.c: Include fts_.h first, to check interface.
96689         Do not include intprops.h; no longer needed.
96690         Include cycle-check.h and hash.h, since fts_.h no longer does.
96691         Remove unnecessary casts of closedir to void.
96692         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
96693         decide whether to decrement nlinks.
96694         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
96695         (FTS): Use struct hash_table * instead of Hash_table, so that
96696         we no longer need to include hash.h here.
96698 2005-05-18  Jim Meyering  <jim@meyering.net>
96700         * modules/dirfd (License): Change to LGPL.  Most of the code
96701         is already in the public domain.
96703 2005-05-18  Jim Meyering  <jim@meyering.net>
96705         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
96706         Reported by Yoann Vandoorselaere.
96708 2005-05-17  Jim Meyering  <jim@meyering.net>
96710         * m4/fts.m4: New file, from coreutils.
96712 2005-05-17  Jim Meyering  <jim@meyering.net>
96714         * lib/fts.c, lib/fts_.h: New files, from coreutils.
96716 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
96718         Sync from coreutils.
96719         * m4/unlinkdir.m4: New file.
96721 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
96723         Sync from coreutils.
96724         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
96725         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
96726         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
96727         White space changes only.
96728         * lib/makepath.c (make_path): Port to hosts where leading "//" is
96729         special.
96730         * lib/yesno.c: Include getline.h, not ctype.h.
96731         (yesno): Don't remove leading white space; POSIX doesn't allow it.
96732         Use getline to remove arbitrary restriction on response length.
96734 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
96736         * config/srclist-update: Spell out "Street" in FSF postal
96737         mail address; this is the style the FSF seems to prefer.
96739         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
96740         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
96741         this updates FSF postal mail address.
96743         Sync from coreutils.
96744         * modules/unlinkdir: New file.
96745         * modules/yesno (Depends-on): Add getline.
96746         * MODULES.html.sh (File system functions): Add unlinkdir.
96748 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
96750         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
96751         lib/strsep.h:
96752         Change the initial comment to refer to GPL, not LGPL.
96753         gnulib-tool will change it to LGPL as needed.
96755         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
96756         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
96757         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
96758         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
96759         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
96760         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
96761         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
96762         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
96763         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
96764         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
96765         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
96766         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
96767         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
96768         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
96769         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
96770         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
96771         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
96772         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
96773         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
96774         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
96775         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
96776         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
96777         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
96778         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
96779         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
96780         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
96781         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
96782         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
96783         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
96784         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
96785         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
96786         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
96787         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
96788         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
96789         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
96790         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
96791         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
96792         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
96793         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
96794         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
96795         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
96796         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
96797         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
96798         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
96799         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
96800         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
96801         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
96802         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
96803         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
96804         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
96805         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
96806         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
96807         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
96808         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
96809         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
96810         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
96811         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
96812         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
96813         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
96814         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
96815         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
96816         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
96817         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
96818         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
96819         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
96820         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
96821         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
96822         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
96823         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
96824         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
96825         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
96826         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
96827         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
96828         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
96829         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
96830         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
96831         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
96832         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
96833         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
96834         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
96835         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
96836         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
96837         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
96838         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
96839         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
96840         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
96841         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
96842         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
96843         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
96844         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
96845         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
96846         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
96847         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
96848         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
96849         lib/yesno.c, lib/yesno.h:
96850         Update FSF postal mail address.
96852 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
96854         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
96855         tests/test-memmem.c, tests/test-stpncpy.c:
96856         Update FSF postal mail address.
96858 2005-05-13  Bruno Haible  <bruno@clisp.org>
96860         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
96861         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
96862         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
96863         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
96864         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
96865         Add support for 64-bit integers in the MSVC compiler.
96867 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
96869         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
96871 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
96873         * gnulib-tool (func_import): Sort and uniquify recommended includes.
96875 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
96877         * doc/getdate.texi (General date syntax): Don't say that date
96878         date --iso-8601=ns generates acceptable dates; it doesn't yet.
96879         Problem reported by Nic Ferrier.
96881 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
96883         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
96884         specified in ai_socktype. Fix invalid ai_protocol
96885         check. ai_protocol is usually set to 0 or depending on
96886         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
96887         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
96888         ai_socktype / ai_protocol in the returned addrinfo structure.
96890 2005-05-10  Simon Josefsson  <jas@extundo.com>
96892         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
96893         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
96895 2005-05-10  Karl Berry  <karl@gnu.org>
96897         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
96898         (from http://www.gnu.org/licenses).
96899         * doc/COPYING.LIB: also rename to COPYING.LESSER.
96900         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
96901         fdl.texi suffices.
96903 2005-05-10  Karl Berry  <karl@gnu.org>
96905         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
96906         (COPYING.DOC): remove.
96908         * config/srclist-update: new FSF address.
96910 2005-05-10  Derek Price  <derek@ximbiot.com>
96912         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
96913         possible.
96915 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
96916             Bruno Haible  <bruno@clisp.org>
96918         * modules/inet_ntop: New file.
96919         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
96920         inet_ntop.
96922 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
96923             Bruno Haible  <bruno@clisp.org>
96925         * m4/inet_ntop.m4: New file.
96927 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
96928             Bruno Haible  <bruno@clisp.org>
96930         * lib/inet_ntop.h: New file.
96931         * lib/inet_ntop.c: New file, from glibc with modifications.
96933 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
96935         * modules/time_r (License): Change to LGPL.
96936         * modules/extensions (License): Change to LGPL.  Actually,
96937         the license is more permissive than that, but currently gnulib-tool
96938         doesn't know how to handle more-permissive licenses.
96940         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
96941         Problem reported by Dave Love.
96943 2005-05-08  Jim Meyering  <jim@meyering.net>
96945         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
96946         blank.
96948 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
96950         * modules/argmatch (Depends-on): Add stdbool.
96951         * modules/backupfile (Depends-on): Likewise.
96952         * modules/chdir-long (Depends-on): Likewise.
96953         * modules/closeout (Depends-on): Likewise.
96954         * modules/cycle-check (Depends-on): Likewise.
96955         * modules/dirname (Depends-on): Likewise.
96956         * modules/fnmatch (Depends-on): Likewise.
96957         * modules/fsusage (Depends-on): Likewise.
96958         * modules/fwriteerror (Depends-on): Likewise.
96959         * modules/getcwd (Depends-on): Likewise.
96960         * modules/getloadavg (Depends-on): Likewise.
96961         * modules/hard-locale (Depends-on): Likewise.
96962         * modules/makepath (Depends-on): Likewise.
96963         * modules/mountlist (Depends-on): Likewise.
96964         * modules/nanosleep (Depends-on): Likewise.
96965         * modules/posixtm (Depends-on): Likewise.
96966         * modules/quotearg (Depends-on): Likewise.
96967         * modules/readtokens (Depends-on): Likewise.
96968         * modules/readtokens0 (Depends-on): Likewise.
96969         * modules/readutmp (Depends-on): Likewise.
96970         * modules/save-cwd (Depends-on): Likewise.
96971         * modules/strftime (Depends-on): Likewise.
96972         * modules/userspec (Depends-on): Likewise.
96973         * modules/utimecmp (Depends-on): Likewise.
96974         * modules/xgetcwd (Depends-on): Likewise.
96975         * modules/xnanosleep (Depends-on): Likewise.
96976         * modules/xstrtod (Depends-on): Likewise.
96977         * modules/yesno (Depends-on): Likewise.
96979 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
96981         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
96982         needless checks.
96984 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
96986         Merge from coreutils.  Among other things,
96987         add bulletproofing for cases where stdin, stdout, or stderr are closed.
96988         * lib/fd-safer.c: New file.
96989         * lib/fcntl-safer.h, open-safer.c: Remove.
96990         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
96991         * lib/dup-safer.c: Include unistd-safer.h first.
96992         Don't include errno.h.
96993         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
96994         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
96995         * lib/file-type.c: Rely on file-type.h change.
96996         * lib/getloadavg.c: Include unistd-safer.h.
96997         (getloadavg): Use safer open.
96998         * lib/getusershell.c: Include "stdio-safer.h".
96999         (getusershell): Use safer fopen.
97000         * lib/long-options.c (long_options): Use NULL rather than 0.
97001         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
97002         'free'.
97003         * lib/modechange.c: Likewise.
97004         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
97005         (MODE_DONE): New constant.
97006         (struct mode_change): Remove 'next' member.
97007         (make_node_op_equals): New function; like the old one of the
97008         same name, except it allocates an array.
97009         (mode_compile, mode_create_from_ref): Use it.
97010         (mode_compile): Allocate result as an array, not a linked list.
97011         Parse octal string ourself, so that we catch mistakes like "+0".
97012         (mode_adjust): Arg is an array, not a linked list.
97013         * lib/modechange.c: Include stat-macros.h, xalloc.h.
97014         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
97015         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
97016         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
97017         Remove.  This is now stat-macros.h's job.
97018         (talloc): Remove.  All callers replaced by xalloc, so that
97019         our invokers don't have to worry about reporting memory failures.
97020         (make_node_op_equals): Remove.
97021         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
97022         New constants.
97023         (struct mode_change): Moved here from modechange.h.
97024         (mode_append_entry): Remove.
97025         (mode_compile): Remove MASKED_OPS arg, since it encouraged
97026         apps to have incorrect behavior.  Use simpler algorithm for head
97027         and tail.  Don't futz with umask; that's now the job of mode_adjust.
97028         Detect more invalid usages rather than having somewhat-random behavior.
97029         Don't insert an "a=" action, as that leads to incorrect behavior.
97030         (mode_compile, mode_create_from_ref): Return NULL on error instead
97031         of an enum, since now there's only one way to have an error.  All
97032         callers changed.
97033         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
97034         at the correct time.  Simplify calculation of "+u" and its ilk.
97035         Don't mishandle "+X".
97036         (mode_free): Remove "register" and localize decls.
97037         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
97038         (struct mode_change): Move to modechange.c; callers don't
97039         need to see this stuff.
97040         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
97041         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
97042         (mode_change, mode_adjust): Reflect the new signatures noted above.
97043         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
97044         that might redefine system include files.
97045         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
97046         (my_usleep): Use NULL rather than (void *) 0.
97047         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
97048         Use siginterrupt to specify that system calls should be interrupted.
97049         (rpl_nanosleep): Move initialization of suspended closer to call of
97050         my_usleep.
97051         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
97052         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
97053         (desirable_utmp_entry): New function.
97054         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
97055         using x2nrealloc, to simplify logic.
97056         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
97057         size calculation.  Do not assume utmp file is a regular file.
97058         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
97059         (READ_UTMP_CHECK_PIDS): New constant.
97060         * lib/save-cwd.c: Include unistd-safer.h.
97061         (save_cwd): Use fd_safer.
97062         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
97063         [!_LIBC] Include "stat-macros.h" instead.
97064         * lib/unistd-safer.h (fd_safer): New decl.
97066 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
97068         * modules/getloadavg (Depends-on): Add unistd-safer.
97069         * modules/getusershell (Depends-on): Add stdio-safer.
97070         * modules/lstat (Depends-on): Remove xalloc.
97071         * modules/mkstemp (Depends-on): Add stat-macros.
97072         * modules/modechange (Depends-on): Remove xstrtol.
97073         Add stat-macros, xalloc.
97074         * modules/save-cwd (Depends-on): Add unistd-safer.
97075         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
97076         * modules/unistd-safer (Files): Add lib/fd-safer.c
97077         (Makefile.am): Remove lib_SOURCES.
97079         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
97080         Remove fcntl-safer; unistd-safer supersedes it.
97082 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
97084         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
97085         AC_HEADER_STAT.
97086         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
97087         (gl_PREREQ_CHOWN): Remove.
97088         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
97089         it.  Don't require AC_HEADER_STAT.
97090         (gl_PREREQ_LSTAT): Remove.
97091         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
97092         Don't require AC_HEADER_STAT.
97093         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
97094         (gl_PREREQ_RMDIR): Remove.
97095         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
97096         mention stat-macros.h or AC_HEADER_STAT, since we'll make
97097         the stat-macros module a prerequisite.
97098         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
97099         * m4/filemode.m4 (gl_FILEMODE): Likewise.
97100         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
97101         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
97102         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
97103         variable names.
97104         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
97105         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
97106         variable prefixes.
97107         * m4/fcntl-safer.m4: Remove.
97108         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
97109         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
97110         Invoke gl_PREREQ_FD_SAFER.
97111         (gl_PREREQ_FD_SAFER): New macro.
97112         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
97113         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
97114         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
97115         Remove duplicate call to AC_LIBOBJ(readutmp).
97116         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
97118         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
97119         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
97121 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
97123         * MODULES.html.sh (Misc): Add byteswap.
97125 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
97127         * modules/getcwd (Depends-on): Add extensions.
97128         * modules/openat (Depends-on): Likewise.
97130 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
97132         * modules/byteswap: New file.
97134 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
97136         * m4/byteswap.m4: New file.
97138 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
97140         * lib/byteswap_.h: New file.
97142 2005-04-25  Karl Berry  <karl@gnu.org>
97144         * m4/gettext.m4: Update from GNU gettext 0.14.4.
97146 2005-04-25  Albert Chin  <china@thewrittenword.com>
97148         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
97149         Toolkit C bug.
97151 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
97153         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
97154         (func_ln_if_changed): Remove forcibly for no error message
97155         in case file does not exist.
97157 2005-04-19  Simon Josefsson  <jas@extundo.com>
97159         * gnulib-tool (Options): Make --symlink mean --symbolic.
97161 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
97163         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
97165 2005-04-16  Simon Josefsson  <jas@extundo.com>
97167         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
97169 2005-04-15  Simon Josefsson  <jas@extundo.com>
97171         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
97173 2005-04-15  Simon Josefsson  <jas@extundo.com>
97175         * gnulib-tool: Rename --symlink to --symbolic.
97177 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
97179         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
97180         symbolic links to files instead of copying/moving.  Add --aux-dir,
97181         specifying directory relative --dir where auxiliary build tools
97182         are placed.
97184 2005-04-14  Bruno Haible  <bruno@clisp.org>
97186         * modules/allocsa (License): Change to LGPL.
97187         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
97189 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
97191         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
97192         that "UTC +1 second" continues to work.  Problem reported
97193         by Dmitry V. Levin.
97194         (relunit_snumber): New rule.
97195         (relunit): Use it.
97197 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
97199         * lib/getdate.y (universal_time_zone_table): New constant.
97200         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
97201         universal_time_zone_table.
97202         (lookup_zone): Prefer universal_time_zone_table to
97203         local_time_zone_table, so that "GMT" time stamps are allowed in
97204         London during the summer.  Problem reported by Ian Abbott.
97206 2005-04-12  Jim Meyering  <jim@meyering.net>
97208         * lib/human.c (humblock): Set *options even when returning due to
97209         xstrtoumax conversion failure.  Thanks to a used-uninitialized
97210         warning from gcc-4.
97212 2005-04-09  Jim Meyering  <jim@meyering.net>
97214         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
97215         -Wuninitialized: initialize tm0.tm_year.
97217 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
97219         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
97220         count, since there's no maximum.  All uses changed.
97221         Add member dsts_seen.
97222         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
97223         not being INT_MAX.
97224         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
97225         Use pc_rels_seen to decide whether a date is absolute.
97227         * lib/getdate.y (number): Don't overwrite year.
97228         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
97229         check.
97231 2005-04-02  Simon Josefsson  <jas@extundo.com>
97233         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
97234         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
97236 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
97238         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
97239         where no absolute path name can be longer than PATH_MAX.
97241 2005-03-27  Jim Meyering  <jim@meyering.net>
97243         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
97245 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
97247         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
97248         "one's complement" -> "ones' complement" in comment, as per Knuth.
97249         "value of type" -> "type or expression" in comment.
97250         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
97252 2005-03-26  Jim Meyering  <jim@meyering.net>
97254         Comment nits.
97255         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
97256         Correct typos: s/or/of/.
97258 2005-03-26  Jim Meyering  <jim@meyering.net>
97260         * modules/check-include-files: Move to ../ and rename to...
97261         * check-module: ...this.
97263 2005-03-25  Jim Meyering  <jim@meyering.net>
97265         * modules/xvasprintf (Files): Add xalloc.h.
97267 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
97269         * modules/gettext (Files): config/config.rpath ->
97270         build-aux/config.rpath
97271         * modules/iconv (Files): Likewise.
97272         Problem reported by Oskar Liljeblad.
97274 2005-03-23  Jim Meyering  <jim@meyering.net>
97276         * modules/check-include-files: New script to check for
97277         missing dependencies, multiple includes, etc.
97279         * modules/c-strtold (Depends-on): Add xalloc.
97280         * modules/c-strtod (Depends-on): Add xalloc.
97281         * modules/hash (Depends-on): Add xalloc.
97282         (Files): Remove lib/xalloc.h.
97284         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
97285         * modules/userspec (Files): Add lib/inttostr.h.
97287 2005-03-23  Jim Meyering  <jim@meyering.net>
97289         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
97291 2005-03-22  Jim Meyering  <jim@meyering.net>
97293         * modules/stat-macros: New module.
97294         * modules/canonicalize, modules/euidaccess, modules/file-type,
97295         * modules/filemode, modules/lchown, modules/makepath,
97296         * modules/rmdir, modules/stat: Depend on new stat-macros module
97297         rather than listing lib/stat-macros.h manually.
97298         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
97300 2005-03-22  Jim Meyering  <jim@meyering.net>
97302         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
97304 2005-03-22  Bruno Haible  <bruno@clisp.org>
97306         * config/srclist.txt: Replace target directory 'config' with
97307         'build-aux'.
97308         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
97309         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
97310         ../build-aux/.
97312 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
97314         * modules/chdir-long (Depends-on): Add mempcpy.
97316         * modules/acl, modules/backupfile, modules/c-strtod,
97317         modules/c-strtold, modules/canon-host, modules/canonicalize,
97318         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
97319         modules/exclude, modules/exitfail, modules/file-type,
97320         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
97321         modules/getdate, modules/getline, modules/getpagesize,
97322         modules/getpass, modules/getugroups, modules/group-member,
97323         modules/hard-locale, modules/hash, modules/human, modules/idcache,
97324         modules/inttostr, modules/long-options, modules/makepath,
97325         modules/md5, modules/memcasecmp, modules/memcoll,
97326         modules/modechange, modules/mountlist, modules/path-concat,
97327         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
97328         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
97329         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
97330         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
97331         modules/strftime, modules/strndup, modules/strverscmp,
97332         modules/timespec, modules/unlocked-io, modules/userspec,
97333         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
97334         modules/yesno:
97335         Remove lib_SOURCES line from Makefile.am section, as this is now
97336         done automatically by the corresponding Autoconf macro.
97338 2005-03-21  Jim Meyering  <jim@meyering.net>
97340         Changes imported from coreutils.
97342         * lib/cycle-check.c: Don't include xalloc.h.
97344         * lib/path-concat.c: Don't include assert.h.
97345         (path_concat): Remove assertion that would have triggered
97346         for ABASE starting with more than one slash.
97347         Reported by Andreas Schwab.
97349         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
97350         properly when ABASE is an absolute file name.
97351         Correct the description of this function.
97352         Include <assert.h>.
97353         Add an assertion and a test driver.
97354         This fixes a bug introduced on 2004-07-02.
97355         Andreas Schwab reported the resulting failure of cp --parents:
97356         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
97358 2005-03-21  Jim Meyering  <jim@meyering.net>
97360         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
97361         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
97363 2005-03-21  Jim Meyering  <jim@meyering.net>
97364         and  Paul Eggert  <eggert@cs.ucla.edu>
97366         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
97367         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
97368         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
97369         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
97370         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
97371         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
97372         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
97373         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
97374         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
97375         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
97376         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
97377         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
97378         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
97379         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
97380         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
97381         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
97382         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
97383         for these modules.
97385 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
97387         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
97388         (which shouldn't happen), generate nothing instead of returning 0
97389         immediately, so that nstrftime (NULL, ...) doesn't return 0.
97391 2005-03-16  Bruno Haible  <bruno@clisp.org>
97393         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
97394         HAVE_LONGLONG_64BIT.
97396 2005-03-16  Bruno Haible  <bruno@clisp.org>
97398         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
97399         HAVE_LONGLONG_64BIT.
97401 2005-03-16  Bruno Haible  <bruno@clisp.org>
97403         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
97404         HAVE_LONGLONG_64BIT.
97406 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
97408         * lib/strftime.c (my_strftime): Prepend space to format so that we can
97409         reliably distinguish strftime failure from empty output on POSIX
97410         hosts.
97412 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
97414         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
97415         (iconv_string): Don't guess a size-zero buffer, as that might cause
97416         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
97417         result would be 'too large', where 'too large' is (heuristically)
97418         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
97419         overflow concerns.  This will prevent some unwanted malloc failures
97420         when the inputs are very large.
97422 2005-03-15  Karl Berry  <karl@gnu.org>
97424         * config/srclist.txt (config.rpath): from gettext.
97425         * config/config.rpath: update.
97427 2005-03-15  Bruno Haible  <bruno@clisp.org>
97429         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
97430         to 'negate'.
97432         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
97433         variable.
97435         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
97436         results.
97438 2005-03-14  Simon Josefsson  <jas@extundo.com>
97440         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
97441         <fx@gnu.org>.
97443 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
97445         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
97446         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
97447         intprops.h.
97448         * lib/strtol.c: Likewise.
97450 2005-03-14  Jim Meyering  <jim@meyering.net>
97452         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
97453         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
97454         to be nonzero so that we (and caller) can detect the difference
97455         between a valid zero-length expansion and an error return, even
97456         when the underlying strftime fails before writing anything into
97457         that location.
97459 2005-03-14  Bruno Haible  <bruno@clisp.org>
97461         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
97462         Update from GNU gettext 0.14.3.
97464 2005-03-10  Jim Meyering  <jim@meyering.net>
97466         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
97468 2005-03-10  Jim Meyering  <jim@meyering.net>
97470         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
97471         so that this module works on systems without fchdir.
97473 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
97475         Factor int-properties macros into a single file, except for
97476         glibc-related files.
97477         * lib/intprops.h: New file.
97478         * lib/getloadavg.c: Include it instead of limits.h.
97479         (INT_STRLEN_BOUND): Remove.
97480         * lib/human.c: Include intprops.h.
97481         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
97482         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
97483         302/1000.
97484         * lib/inttostr.h: Include intprops.h instead of limits.h.
97485         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
97486         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
97487         for consistency with intprops.h.
97488         (time_t_is_integer, twos_complement_arithmetic): Use them.
97489         * lib/sig2str.h: Include <signal.h>, intprops.h.
97490         (INT_STRLEN_BOUND): Remove.
97491         * lib/strftime.c (TYPE_SIGNED): Remove.
97492         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
97493         * lib/strtol.c: Adjust comments to match intprops.h.
97494         * lib/userspec.c: Include intprops.h.
97495         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
97496         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
97497         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
97498         instead of rolling our own expressions.
97499         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
97501         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
97502         instead of int.
97503         (my_strftime): Do not mishandle years close to INT_MAX, by doing
97504         the right thing even if adding 1900 would overflow.  Similarly
97505         for tm_mon + 1 and tm_yday + 1.
97506         Make %Y always equivalent to %C%y, and similarly for %G and %g.
97507         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
97508         (DO_SIGNED_NUMBER): New macro.
97509         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
97511 2005-03-07  Bruno Haible  <bruno@clisp.org>
97513         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
97515 2005-03-07  Bruno Haible  <bruno@clisp.org>
97517         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
97519 2005-03-04  Derek R. Price  <derek@ximbiot.com>
97521         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
97522         (func_import): Only replace files via --import when they have actually
97523         changed.
97525 2005-03-03  Derek R. Price  <derek@ximbiot.com>
97527         * m4/mmap-anon.m4: New file.
97528         * m4/pagealign_alloc.m4: New file.
97530 2005-03-03  Derek R. Price  <derek@ximbiot.com>
97531             Bruno Haible  <bruno@clisp.org>
97533         * modules/pagealign_alloc: New file.
97534         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
97536 2005-03-03  Derek R. Price  <derek@ximbiot.com>
97537             Bruno Haible  <bruno@clisp.org>
97539         * lib/pagealign_alloc.h: New file.
97540         * lib/pagealign_alloc.c: New file.
97542 2005-03-03  Bruno Haible  <bruno@clisp.org>
97544         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
97545         Use an all-permissive copyright notice, recommended by RMS.
97547 2005-03-02  Bruno Haible  <bruno@clisp.org>
97549         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
97550         of AIX, the replacement has to be done only after <string.h> is
97551         included, therefore not in config.h. stpncpy.h does the replacement,
97552         and stpncpy.c uses it.
97554 2005-03-02  Bruno Haible  <bruno@clisp.org>
97556         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
97557         stpncpy.c uses it.
97559 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
97561         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
97562         The workaround isn't strictly needed for POSIX conformance, and
97563         it's too much of a pain to configure and maintain.  We'll ask
97564         people to fix their kernels instead.
97565         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
97566         (NANOSLEEP_BUG_WORKAROUND): Remove.
97567         (xnanosleep): Remove the workaround.
97569 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
97571         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
97572         Reported by Derek Price.
97573         (Include): Add "timespec.h".
97575         * modules/xnanosleep (Depends-on): Remove gethrxtime.
97577 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
97579         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
97580         to detect nanosleep bug.
97582 2005-03-01  Bruno Haible  <bruno@clisp.org>
97584         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
97586 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
97588         * modules/gethrxtime: New file.
97589         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
97590         (Depends-on): Add gethrxtime.
97591         (configure.ac): Add gl_XNANOSLEEP.
97592         (Makefile.am): Remove lib_SOURCES line.
97594 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
97596         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
97597         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
97599 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
97601         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
97602         * lib/timespec.h (gettime): Return void, since it always
97603         succeeds now.  All uses changed.
97604         * lib/gettime.c (gettime): Likewise.
97605         [HAVE_NANOTIME]: Prefer nanotime.
97606         Assume gettimeofday succeeds, as POSIX requires.
97607         Assime time () succeeds, since other code already does.
97608         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
97609         (timespec_subtract): Remove.
97610         (NANOSLEEP_BUG_WORKAROUND): New constant.
97611         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
97612         things considerably.  Use it only on GNU/Linux hosts, since the
97613         workaround shouldn't be needed elsewhere.
97615 2005-02-24  Bruno Haible  <bruno@clisp.org>
97617         * modules/gettext (Files): Add m4/glibc2.m4.
97619 2005-02-24  Bruno Haible  <bruno@clisp.org>
97621         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
97622         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
97623         * m4/progtest.m4:
97624         Update from GNU gettext 0.14.2.
97625         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
97627 2005-02-24  Bruno Haible  <bruno@clisp.org>
97629         * lib/localcharset.c: Update from GNU gettext 0.14.2.
97630         * lib/config.charset: Update from GNU gettext 0.14.2.
97632 2005-02-24  Bruno Haible  <bruno@clisp.org>
97634         * lib/gettext.h: Update from GNU gettext 0.14.2.
97636 2005-02-23  Simon Josefsson  <jas@extundo.com>
97638         * m4/iconvme.m4: New file.
97640 2005-02-23  Jim Meyering  <jim@meyering.net>
97642         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
97643         change.
97644         Thanks to Bruno Haible for catching it.
97646 2005-02-22  Simon Josefsson  <jas@extundo.com>
97648         * modules/iconvme: New file.
97650         * MODULES.html.sh: Add iconvme.
97652 2005-02-22  Simon Josefsson  <jas@extundo.com>
97654         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
97656 2005-02-22  Simon Josefsson  <jas@extundo.com>
97658         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
97660 2005-02-22  Jim Meyering  <jim@meyering.net>
97662         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
97663         s/ifndef/ifdef/.
97665 2005-02-20  Neil Conway  <neilc@samurai.com>
97667         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
97668         returned by OSX/Darwin if the specified buffer is not large
97669         enough for the hostname.
97671 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
97673         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
97674         pass it to _help, otherwise the latter coredumps trying to
97675         dereference state.root_argp.
97677 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
97679         * modules/chdir-long (Depends-on): Add memrchr.
97680         * modules/memrchr (Files): Add lib/memrchr.h.
97681         (Include): "memrchr.h".
97683 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
97685         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
97687 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
97689         * lib/memrchr.h: New file.
97690         * lib/chdir-long.c: Include it.
97691         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
97692         Don't bother including stddef.h.
97694 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
97696         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
97697         inclusion.
97698         Include <sys/types.h>, for dev_t.
97699         (ME_DUMMY, ME_REMOTE): Move from here....
97700         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
97701         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
97702         Dmitry V. Levin.
97703         Include mountlist.h first, to test the interface.
97705 2005-01-29  Bruno Haible  <bruno@clisp.org>
97707         * lib/progname.c (program_name): Initialize.
97708         Needed when linking statically on MacOS X.
97710 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
97712         Sync from coreutils.
97713         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
97714         (Depends-on): Add c-strtod.
97715         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
97717 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
97719         Sync from coreutils.
97720         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
97722         Remove files that are specific to coreutils.
97723         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
97725 2005-01-28  Bruno Haible  <bruno@clisp.org>
97727         * modules/javacomp: New file.
97728         * MODULES.html.sh (Java): Add javacomp.
97730 2005-01-28  Bruno Haible  <bruno@clisp.org>
97732         * m4/javacomp.m4: New file, from GNU gettext.
97734 2005-01-28  Bruno Haible  <bruno@clisp.org>
97736         * lib/javacomp.sh.in: New file, from GNU gettext.
97737         * lib/javacomp.h: New file, from GNU gettext.
97738         * lib/javacomp.c: New file, from GNU gettext.
97740 2005-01-26  Simon Josefsson  <jas@extundo.com>
97742         * lib/gai_strerror.c: Use GPL in header.
97744 2005-01-26  Bruno Haible  <bruno@clisp.org>
97746         * modules/javaexec: New file.
97747         * MODULES.html.sh (Java): Add javaexec.
97749 2005-01-26  Bruno Haible  <bruno@clisp.org>
97751         * m4/javaexec.m4: New file, from GNU gettext.
97753 2005-01-26  Bruno Haible  <bruno@clisp.org>
97755         * lib/javaexec.sh.in: New file, from GNU gettext.
97756         * lib/javaexec.h: New file, from GNU gettext.
97757         * lib/javaexec.c: New file, from GNU gettext.
97759 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
97761         * modules/lchown (Depends-on): Remove lchown.h
97763 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
97765         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
97766         must be defined if the header file was not found, in order
97767         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
97769 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
97771         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
97772         initializers for struct pentry_state.
97773         (__argp_error): Check return value of __asprintf
97774         (__argp_failure): Translate error message
97776         * lib/argp-parse.c: Removed braces around the expansion of N_()
97778 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
97780         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
97781         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
97782         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
97783         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
97784         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
97785         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
97786         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
97787         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
97788         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
97789         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
97790         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
97791         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
97792         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
97793         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
97794         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
97795         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
97796         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
97797         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
97798         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
97799         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
97800         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
97801         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
97802         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
97803         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
97804         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
97805         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
97806         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
97807         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
97808         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
97809         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
97810         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
97811         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
97812         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
97813         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
97814         xstrtol.m4, xstrtoumax.m4, yesno.m4:
97815         Use an all-permissive copyright notice, recommended by RMS.
97817 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
97819         * modules/chdir-long (Depends-on): Remove mempcpy.
97821 2005-01-21  Jim Meyering  <jim@meyering.net>
97823         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
97824         same value as for Solaris 9.
97826         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
97827         component length.  This included changing the parameter to be
97828         of type `char *' rather than `char const *'.
97829         * lib/chdir-long.h (chdir_long): Update prototype.
97831         * lib/openat.c (fdopendir, fstatat): New functions.
97832         * lib/openat.h: Include headers required for use of DIR and struct
97833         stat.
97834         [AT_SYMLINK_NOFOLLOW]: Define.
97835         (fdopendir, fstatat): Add prototypes.
97837 2005-01-21  Bruno Haible  <bruno@clisp.org>
97839         * modules/classpath: New file.
97840         * MODULES.html.sh (Java): Add classpath.
97842 2005-01-21  Bruno Haible  <bruno@clisp.org>
97844         * lib/classpath.h: New file, from GNU gettext.
97845         * lib/classpath.c: New file, from GNU gettext.
97847 2005-01-20  Simon Josefsson  <jas@extundo.com>
97849         * modules/version-etc-fsf: New file.
97851 2005-01-20  Simon Josefsson  <jas@extundo.com>
97853         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
97854         * lib/version-etc.c: Remove version_etc_copyright.
97855         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
97856         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
97858 2005-01-20  Simon Josefsson  <jas@extundo.com>
97860         * lib/base64.h (isbase64): Add.
97862         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
97863         using a unsigned prototype, don't inline.
97864         (base64_decode): Use it.
97866 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
97868         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
97869         it.
97871 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
97873         * lib/save-cwd.c (save_cwd): Remove code to support the case
97874         where fchdir is missing or flaky.
97876 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
97878         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
97880 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
97882         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
97883         AC_LIBSOURCES now does this.
97884         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
97885         with new ullong_max module.
97887 2005-01-19  Bruno Haible  <bruno@clisp.org>
97889         * modules/sh-quote: New file.
97890         * MODULES.html.sh (Executing programs): Add sh-quote.
97892 2005-01-19  Bruno Haible  <bruno@clisp.org>
97894         * lib/sh-quote.h: New file, from GNU gettext.
97895         * lib/sh-quote.c: New file, from GNU gettext.
97897 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
97899         Merge from coreutils.
97900         * m4/ullong_max.m4: New file.
97901         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
97902         (gl_MACROS): Assume localeconv exists.
97904 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
97906         Merge changes from coreutils, as described below in several
97907         changelogs dated today.
97909         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
97910         (O_DIRECTORY): Remove; not needed here, since "." must be
97911         a directory.  All uses removed.
97912         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
97913         universal on Suns, and we also need to test for IRIX.
97914         Revamp code to use 'if' rather than '#if'.
97915         Avoid unnecessary comparison of cwd->desc to 0.
97917         * lib/utimens.c (futimens): Robustify the previous patch, by checking
97918         for known valid error numbers rather than observed invalid ones.
97920 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
97922         * modules/ullong_max: New file.
97924         * modules/chdir-long, modules/openat: New files.
97925         * modules/save-cwd (Depends-on): Depend on chdir-long.
97926         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
97928 2005-01-18  Jim Meyering  <jim@meyering.net>
97930         Merge from coreutils.
97931         * m4/chdir-long.m4, m4/openat.m4: New files.
97932         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
97933         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
97934         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
97935         is sane and DOES follow symlinks.  Besides, testing 20 different
97936         systems found no broken chown implementations.
97937         Prompted by a change in rsync's copy of this macro.
97938         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
97940         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
97942         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
97943         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
97944         NULL-means-set-to-current-time semantics.
97945         Remove temporary file immediately, rather than waiting
97946         for configure's at-exit trap code to do it.
97948 2005-01-18  Jim Meyering  <jim@meyering.net>
97950         * lib/version-etc.c (version_etc_copyright): Update copyright date.
97952         * lib/utimens.c (futimens): Account for the fact that futimes
97953         can also fail with errno == ENOSYS or errno == ENOENT.
97954         Patch from Dmitry V. Levin.
97956         Change the name of the robust chdir function from chdir to chdir_long.
97957         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
97958         (restore_cwd): Use chdir_long, not chdir.
97959         * lib/chdir-long.c: Renamed from chdir.c.
97960         * lib/chdir-long.h: Renamed from chdir.h.
97961         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
97962         Hurd.
97964 2005-01-18  Bruno Haible  <bruno@clisp.org>
97966         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
97967         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
97968         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
97969         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
97970         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
97971         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
97972         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
97973         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
97974         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
97975         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
97976         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
97977         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
97978         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
97979         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
97980         Use an all-permissive copyright notice, recommended by RMS.
97982 2005-01-18  Bob Proulx  <bob@proulx.com>
97984         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
97985         simplify offsetof() macro construct to avoid compile failure with
97986         native HP-UX 11.0 ANSI C compiler.
97988 2005-01-17  Bruno Haible  <bruno@clisp.org>
97990         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
97991         redundant because stpncpy.m4 takes care of it.
97993 2005-01-17  Bruno Haible  <bruno@clisp.org>
97995         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
97997 2005-01-17  Bruno Haible  <bruno@clisp.org>
97999         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
98000         used.
98002 2005-01-17  Bruno Haible  <bruno@clisp.org>
98004         * lib/fwriteerror.h (fwriteerror): Change specification to include
98005         fclose.
98006         * lib/fwriteerror.c: Include <stdbool.h>.
98007         (fwriteerror): At the end, close the file stream. Record whether
98008         stdout was already closed.
98010 2005-01-17  Bruno Haible  <bruno@clisp.org>
98012         * lib/execute.c (environ): Declare if needed.
98013         * lib/pipe.c (environ): Likewise.
98014         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
98016 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
98018         * modules/argp: Depend on vsnprintf
98020 2005-01-10  Jim Meyering  <jim@meyering.net>
98022         * modules/closeout (Depends-on): Add atexit.
98024 2005-01-06  Bruno Haible  <bruno@clisp.org>
98026         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
98028 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
98030         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
98031         definitions to be after all include files, to avoid collisions.
98032         Problem reported by Bob Proulx.
98034 2005-01-04  Jim Meyering  <jim@meyering.net>
98036         Changes imported from coreutils.
98037         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
98038         as the mkstemp template, use a temporary directory and an
98039         8.3-friendly template to avoid trouble on systems like DJGPP.
98040         Reported by Juan M. Guerrero via Stepan Kasal.
98041         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
98042         close. Remove the temporary directory right away, rather than waiting
98043         for configure's at-exit trap code to do it.
98044         Suggestion from Stepan Kasal.
98046 2005-01-01  Simon Josefsson  <jas@extundo.com>
98048         * gnulib-tool: Print #include directives when --import'ing.
98050 2004-12-28  Simon Josefsson  <jas@extundo.com>
98052         * tests/test-base64.c: Include required header files.  Remove
98053         unused variables.
98055 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
98057         * modules/error (Depends-on): Remove gettext.
98059 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
98061         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
98062         not needed.  This removes a dependency on the gettext module.
98063         [defined _LIBC]: Do not include <libintl.h>; not needed.
98065 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
98067         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
98068         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
98070 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
98072         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
98073         HAVE_DECL_STRTOLD.
98075 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
98077         * modules/getdate (Depends-on): Remove alloca-opt.
98079 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
98081         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
98083 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
98085         * lib/argp-parse.c: Include <stddef.h>.
98086         (alignof, alignto): New macros.
98087         (parser_init): Don't assume that void * is aligned sufficiently
98088         for struct option.
98090         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
98091         need to extend the stack.
98092         (YYINITDEPTH): New macro, so that the initial stack isn't overly
98093         large.
98095 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
98097         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
98099 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
98101         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
98102         (2004-10-24) change.  Apparently this was a false alarm.
98104         * modules/getdate: Depend on alloca-opt, not alloca.
98106 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
98108         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
98109         Remove now-obsolete comment about AIX.
98110         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
98111         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
98112         (YYMAXDEPTH): New macro.
98114 2004-12-18  Simon Josefsson  <jas@extundo.com>
98116         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
98118 2004-12-18  Bruno Haible  <bruno@clisp.org>
98120         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
98122 2004-12-18  Bruno Haible  <bruno@clisp.org>
98124         * lib/fatal-signal.c (fatal_signals): Make non-const.
98125         (init_fatal_signals): New function.
98126         (uninstall_handlers, install_handlers): Ignore signals that were set to
98127         SIG_IGN.
98128         (at_fatal_signal): Call init_fatal_signals.
98129         (init_fatal_signal_set): Likewise. Ignore signals that were set to
98130         SIG_IGN.
98131         Reported by Paul Eggert.
98133 2004-12-18  Bruno Haible  <bruno@clisp.org>
98135         * doc/alloca.texi: New file.
98136         * doc/alloca-opt.texi: New file.
98138 2004-12-17  Jim Meyering  <jim@meyering.net>
98140         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
98141         Otherwise, install-sh could exit with improper exit status when
98142         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
98144 2004-12-16  Simon Josefsson  <jas@extundo.com>
98146         * tests/test-base64.c: Add license.
98148 2004-12-15  Stepan Kasal  <address@hidden>
98150         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
98152 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
98154         * modules/getcwd (Files): Add m4/d-ino.m4.
98155         Suggested by Mark D. Baushke.
98157 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
98159         * lib/getdate.y (textint): New member "negative".
98160         (time_zone_hhmm): New function.
98161         Expect 14 shift-reduce conflicts, not 13.
98162         (o_colon_minutes): New rule.
98163         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
98164         (yylex): Set the "negative" member of signed numbers.
98166 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
98168         * doc/getdate.texi (Time of day items, Time zone items):
98169         Describe new formats +00:00, UTC+00:00.
98171 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
98173         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
98174         spurious "-l"s.  Problem reported by Stepan Kasal.
98176 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
98178         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
98179         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
98181 2004-12-04  Simon Josefsson  <jas@extundo.com>
98183         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
98184         Vandoorselaere <yoann@prelude-ids.org>.
98186 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
98188         Changes imported from coreutils.
98189         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
98190         exist.
98191         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
98193 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
98195         Changes imported from coreutils.
98196         * lib/hard-locale.c: Assume <locale.h> exists.
98197         Include "strdup.h".
98198         (GLIBC_VERSION): New macro.
98199         (hard_locale): Assume setlocale exists.
98200         Rewrite to avoid #ifdef.
98201         Use strdup rather than malloc + strcpy.
98202         * lib/human.c: Assume <locale.h> exists.
98203         (human_readable): Assume localeconv exists.
98205 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
98207         * modules/hard-locale (Depends-on): Add strdup.
98209 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
98211         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
98212         convert T2, not T.  (Imported from libc.)
98214 2004-11-30  Simon Josefsson  <jas@extundo.com>
98216         * modules/restrict (License): Change to LGPL.
98218 2004-11-30  Simon Josefsson  <jas@extundo.com>
98220         * m4/restrict.m4: Add copyright and copying conditions.
98222 2004-11-30  Simon Josefsson  <jas@extundo.com>
98224         * m4/base64.m4: New file.
98226 2004-11-30  Simon Josefsson  <jas@extundo.com>
98228         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
98229         base64.
98231         * tests/test-base64.c: New file.
98233         * modules/base64: New file.
98235 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
98237         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
98238         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
98240         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
98242 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
98244         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
98245         (__getcwd.c): Don't restore errno; glibc doesn't.
98246         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
98247         first, falling back to our code only if its results look suspicious.
98248         Ensure that the resulting buffer is only as large as necessary.
98250         * lib/readutmp.c: Include readutmp.h first.
98251         Include <errno.h>, since readutmp.h no longer does that.
98252         * lib/readutmp.h: Don't include <errno.h>,
98253         <sys/param.h>, <time.h>; not needed to establish interface.
98254         (errno): Remove decl.
98255         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
98256         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
98257         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
98259 2004-11-28  Simon Josefsson  <jas@extundo.com>
98261         * lib/base64.h, base64.c: New file.
98263 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
98265         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
98267 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
98269         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
98270         (Depends-on): Remove pathmax, same.  Add mempcpy.
98271         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
98272         (Makefile.am): Append getcwd.h to lib_SOURCES.
98273         (Include): Add getcwd.h.
98274         (Maintainer): Change from Jim Meyering to "all, glibc",
98275         since getdate now uses intended-for-glibc code.
98276         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
98277         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
98279 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
98281         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
98282         HP's ANSI C compiler.
98283         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
98284         Declaring int functions causes warnings on some modern systems and
98285         shouldn't be needed to compile on ancient ones.
98286         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
98287         defined.
98289         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
98290         with the following changes.
98291         (__set_errno): Parenthesize properly.
98292         Include <stdbool.h>.
98293         (MIN, MAX, MATCHING_INO): New macros.
98294         (__getcwd): Define with prototype, not K&R form.
98295         Use heuristics to allocate default buffer on stack if possible.
98296         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
98297         behavior, and to avoid the PATH_MAX limit when computing
98298         ../../../../...
98299         Use MATCHING_INO to compare inode number to file.
98300         Check for arithmetic overflow in size calculations.
98301         Fix bug in reallocation of dot array that caused getcwd to fail
98302         on directories nested deeper than 75.
98303         Be more careful about saving errno on error.
98304         Do not use realloc; use only free+malloc, as this is a bit
98305         more flexible and avoids a needless copy operation.
98306         Do not inspect st_dev and st_ino for symbolic links; POSIX
98307         doesn't specify the latter.
98308         Check for closedir errors.
98309         Avoid needless casts.
98310         Use "#ifdef weak_alias" around weak_alias, to be like other
98311         glibc code.
98312         The following changes to getcwd.c have effect only when used in
98313         gnulib; they have no effect inside glibc proper.
98314         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
98315         as alloca isn't used.
98316         (alloca, __alloca): Likewise.
98317         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
98318         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
98319         unconditionally, as gnulib assumes C89 or better.
98320         Do not include <sys/param.h>.
98321         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
98322         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
98323         better.
98324         (NULL) [!defined NULL]: Remove; we assume C89 or better.
98325         Include <dirent.h> in a way that is compatible with modern Autoconf.
98326         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
98327         New macros, if not already defined.
98328         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
98329         Use "_LIBC", not "defined _LIBC", for consistency.
98330         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
98331         a mempcpy module.
98332         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
98333         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
98334         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
98335         credit only to Jim Meyering and adjust the copyright dates.
98336         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
98337         <stdlib.h>, <unistd.h>, "pathmax.h".
98338         Instead, include "xgetcwd.h" (first) and "getcwd.h".
98339         (INITIAL_BUFFER_SIZE): Remove.
98340         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
98342 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
98344         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
98345         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
98346         Use the _ONCE methods, for efficiency.
98347         Check for fcntl.h.  In test program, include <errno.h>
98348         and <fcntl.h> if available.  Remove old K&R cruft from
98349         test program.  Check for common errors in GNU/Linux,
98350         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
98351         don't do AC_LIBOBJ, as that's getcwd.m4's job.
98352         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
98353         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
98354         name accordingly.
98355         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
98356         accommodate new getcwd.c.
98357         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
98358         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
98359         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
98360         that's all we need now.
98362 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
98364         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
98365         argp-parse.c depends on getopt internals, that means we should
98366         always use our getopt, to be on the safe side.
98367         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
98368         order not to spoil the result of an eventual previous invocation
98369         of gl_GETOPT_SUBSTITUTE.
98371 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
98373         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
98374         redefinition warnings. To avoid them, include the defines
98375         in `#if !defined __need_getopt ... #endif'. The only place
98376         where __getopt_argv_const is used is in definitions
98377         of getopt_long and getopt_long_only below, which are as well
98378         protected by `#ifndef __need_getopt'.
98379         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
98380         __need_getopt after including <stdio.h> and <unistd.h> These
98381         headers might have defined it.
98383 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
98385         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
98387 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
98389         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
98390         (futimens): New function, which uses futimes if available.
98391         (futimens, utimens): Support timespec==NULL, with same semantics
98392         as utime and utimens.
98393         * lib/utimens.h (futimens): New decl.
98395 2004-11-23  Jim Meyering  <jim@meyering.net>
98397         * lib/getopt_.h: Remove trailing blanks.
98399 2004-11-23  Jim Meyering  <jim@meyering.net>
98401         * lib/__fpending.c: Add comment.
98403 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
98405         * modules/canonicalize (Depends-on): Add xreadlink.
98406         Problem reported by James Youngman.
98408 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
98410         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
98411         New macros.
98412         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
98413         optopt): Use them instead of invoking ## directly; otherwise, the
98414         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
98416 2004-11-19  Bruno Haible  <bruno@clisp.org>
98418         * lib/strtok_r.c: Move comments from here...
98419         * lib/strtok_r.h: ... to here.
98421 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
98423         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
98424         implementations that mishandle size_t overflow.
98426 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
98428         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
98429         might fail.  Problem reported by Yoann Vandoorselaere.
98430         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
98431         implementations that mishandle size_t overflow.
98433 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
98435         * modules/canon-host (Depends-on): Add strdup.
98437 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
98439         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
98441 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
98443         * lib/canon-host.c: Include "strdup.h".
98444         (canon_host): Use getaddrinfo if available, so that IPv6 works.
98445         Use strdup instead of malloc/strcpy to duplicate strings.
98447         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
98448         (human_space_before_unit): New constant.
98449         * lib/human.c (human_readable): Support it.
98451         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
98452         (xgetcwd): Set errno correctly when failing.
98453         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
98454         the failure is actually due to a PATH_MAX problem.
98456         Further getopt changes to make it more likely that glibc will
98457         buy the changes back.
98458         * lib/getopt.c (POSIXLY_CORRECT): New constant.
98459         (getopt): Use it, so to preserve glibc semantic
98460         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
98461         when compiling for libc.
98462         * lib/getopt_.h (__getopt_argv_const): Bring it back.
98463         (getopt_long, getopt_long_only): Use it.
98465         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
98466         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
98467         (getopt): Argv is now char * const *, as per standard.
98468         (_getopt_internal_r, _getopt_internal): Argv is now char **,
98469         not char *__getopt_argv_const *.
98470         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
98471         _getopt_long_only_r): Likewise.
98472         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
98473         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
98474         _getopt_long_r, _getopt_long_only_r): Likewise.
98475         * lib/getopt_.h (__getopt_argv_const): Remove.
98476         (getopt): Argv is now char * const *, as per standard.
98478         * lib/getdate.y (tORDINAL): New token.
98479         (day, relunit): Allow it for relative times.
98480         (relative_time_table): Use tORDINAL for ordinals.
98482 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
98484         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
98485         Document that "second" isn't allowed as an ordinal number.
98487 2004-11-16  Jim Meyering  <jim@meyering.net>
98489         * modules/closeout (Depends-on): Add fpending.
98491 2004-11-15  Jim Meyering  <jim@meyering.net>
98493         * lib/closeout.c: Include "__fpending.h" once again.
98494         Include <stdbool.h>.
98495         (close_stdout): Don't fail just because stdout was closed initially,
98496         since some programs don't write to stdout in the normal course of
98497         operation (other than --version and --help), and we don't want this
98498         function to make e.g. `touch file >&-' fail.
98499         But do fail if it was closed and someone has tried to write to it.
98500         E.g., `printf foo >&-' must fail.
98502 2004-11-13  Jim Meyering  <jim@meyering.net>
98504         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
98506 2004-11-12  Simon Josefsson  <jas@extundo.com>
98508         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
98509         small doc fix is still pending.
98511 2004-11-11  Simon Josefsson  <jas@extundo.com>
98513         * modules/strtok_r: New file.
98515         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
98516         strtok_r.
98518 2004-11-11  Simon Josefsson  <jas@extundo.com>
98520         * m4/strtok_r.m4: New file.
98522         * m4/getopt.m4: Replace opterr.
98524 2004-11-11  Simon Josefsson  <jas@extundo.com>
98526         * lib/strtok_r.h, strtok_r.c: New file.
98528 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
98530         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
98531         of replacing opterr, getopt, etc.  This should handle the
98532         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
98534 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
98536         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
98537         we can stop lying to compilers about the constness of argv when we
98538         are compiled outside glibc.
98539         (getopt, getopt_long, getopt_long_only): Use it.
98540         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
98541         _getopt_internal, getopt): Likewise.
98542         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
98543         _getopt_long_only_r): Likewise.
98544         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
98545         _getopt_long_r, _getopt_long_only_r): Likewise.
98547         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
98548         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
98549         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
98550         the other external symbols.
98551         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
98552         declaration, since the above renaming now works around collisions.
98554 2004-11-11  Jim Meyering  <jim@meyering.net>
98556         * lib/linebreak.c: Remove trailing blanks.
98557         * lib/alloca_.h: Likewise.
98558         * lib/acosl.c: Likewise.
98559         * lib/euidaccess.c: Likewise.
98560         * lib/allocsa.h: Likewise.
98562 2004-11-10  Simon Josefsson  <jas@extundo.com>
98564         * m4/getaddrinfo.m4: New file.
98566 2004-11-10  Simon Josefsson  <jas@extundo.com>
98568         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
98570 2004-11-10  Simon Josefsson  <jas@extundo.com>
98572         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
98573         getaddrinfo.
98575         * modules/getaddrinfo: New file.
98577 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
98579         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
98581 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
98583         * lib/mktime.c (SHR): New macro, which is a portable
98584         substitute for >> that should work even on Crays.
98585         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
98586         Problem reported by Mark D. Baushke in
98587         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
98588         * lib/getdate.y (SHR): Likewise.
98589         (tm_diff): Use it.
98590         * lib/strftime.c (SHR): Likewise.
98591         (tm_diff): Use it.
98592         * lib/quotearg.c (struct quoting_options): Use unsigned int for
98593         quote_these_too, so that right shifts are well defined.  All uses
98594         changed.
98596 2004-11-10  Jim Meyering  <jim@meyering.net>
98598         Ensure that no close failure goes unreported.
98599         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
98600         return early when it seems there's nothing to flush.
98601         Don't include __fpending.h.
98603 2004-11-10  Jim Meyering  <jim@meyering.net>
98605         * modules/closeout (Depends-on): Remove fpending.
98607 2004-11-10  Jim Meyering  <jim@meyering.net>
98609         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
98611 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
98613         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
98614         gl_FUNC_STRFTIME.
98615         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
98616         and AC_REQUIRE when possible, to avoid duplicate checks.
98617         Check for <wchar.h>.
98619 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
98621         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
98623 2004-11-09  Bruno Haible  <bruno@clisp.org>
98625         * m4/sockpfaf.m4: New file.
98627 2004-11-05  Bruno Haible  <bruno@clisp.org>
98629         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
98630         Reported by Mark D. Baushke <mdb@cvshome.org>.
98632 2004-11-04  Bruno Haible  <bruno@clisp.org>
98634         2004-09-11  Bruno Haible  <bruno@clisp.org>
98635                 * allocsa.valgrind: New file.
98636         2004-02-06  Bruno Haible  <bruno@clisp.org>
98637                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
98638                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
98639                 Reported by Christopher Seip <chris.seip@hp.com>.
98641 2004-11-04  Bruno Haible  <bruno@clisp.org>
98643         * modules/allocsa (Files): Add lib/allocsa.valgrind.
98644         (Makefile.am): Distribute it.
98646 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
98648         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
98649         with errno == ERANGE if the buffer is too small.
98650         Problem reported by Mark D. Baushke.
98652 2004-11-03  Albert Chin  <china@thewrittenword.com>
98653             Paul Eggert  <eggert@cs.ucla.edu>
98655         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
98656         equivalent, substitute $ac_type for equivalent type rather than
98657         blindly using uint32_t *always* which won't work if uint32_t is not
98658         available.  Define _UINT32_T to work around typedef of uint32_t if
98659         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
98660         2.5.1.
98662 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
98664         * m4/jm-macros.m4: Sync from coreutils.
98665         (gl_MACROS): Check for mbrlen, for pathchk.
98666         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
98668 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
98670         * lib/xreadlink.c (MAXSIZE): New macro.
98671         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
98672         size does not exceed MAXSIZE.  Avoid cast.
98673         As suggested by Mark D. Baushke in
98674         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
98675         if readlink fails with buffer size just under MAXSIZE, try again
98676         with MAXSIZE.
98678 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
98680         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
98682 2004-11-02  Derek R. Price  <derek@ximbiot.com>
98683         and  Paul Eggert  <eggert@cs.ucla.edu>
98685         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
98686         (get_date): Overparenthesize to avoid GCC warning.
98688 2004-11-02  Bruno Haible  <bruno@clisp.org>
98690         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
98691         returns void.
98693 2004-11-02  Bruno Haible  <bruno@clisp.org>
98695         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
98696         function returns void.
98698 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
98700         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
98701         fflush_unlocked, flockfile, funlockfile, funlockfile,
98702         fputs_unlocked, putc_unlocked.
98704 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
98706         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
98707         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
98708         already declared.
98710 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
98712         * modules/getdate (Files): Add doc/getdate.texi.
98713         (Depends-on): Add setenv, xalloc.
98715 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
98717         * lib/getdate.y: Add support for TZ="foo" within a date string.
98718         Fix some bugs near time_t boundaries.  Reject dates with
98719         out-of-range components, e.g., "Sept 31".
98720         Include <stdlib.h>, "setenv.h", "xalloc.h".
98721         (ISDIGIT_LOCALE): Remove; unused.
98722         Note that the TZ and time functions used here are not reentrant.
98723         (mktime_ok, get_tz): New functions.
98724         (TZBUFSIZE): New constant.
98725         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
98726         This requires that we sometimes generate our own TZ="XXX..." setting.
98728 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
98730         * doc/getdate.texi: New file, from coreutils with modifications for
98731         the new TZ parsing.
98733 2004-10-27  Derek R. Price  <derek@ximbiot.com>
98735         * lib/mktime.c (not_equal_tm): Remove redundant check.
98737 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
98739         * modules/regex (lib_SOURCES): Add regex.c.
98740         Reported by James Youngman in
98741         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
98743 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
98745         * lib/getdate.y: Use Bison 1.875 features, and some minor
98746         code cleanups.  This change does not affect semantics.
98747         Don't include <stdlib.h>; no longer needed.
98748         Don't include unlocked-io.h; only the "#if TEST" code uses
98749         stdio, and performance isn't crucial there.
98750         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
98751         Bison 1.875 features as described below.
98752         All uses of "PC." replaced by "pc->".
98753         (YYSTYPE): Add a forward declaration.
98754         (yylex, yyerror): Use full prototypes in forward decls.
98755         Use "%pure-parser" rather than obsolescent "%pure_parser".
98756         Use %parse-param and %lex-param instead of obsolescent
98757         YYPARSE_PARAM and YYLEX_PARAM.
98758         (meridian_table, month_and_day_table, time_units_table,
98759         relative_time_table, time_zone_table, military_table,
98760         lookup_zone, lookup_word, get_date):
98761         Use NULL instead of 0 where appropriate.
98762         (to_hour): Avoid abort (), to avoid a dependency on
98763         stdlib.h.
98764         (yyerror, yylex): Now accepts parser_control * arg.
98765         (main) [TEST]: Use '\0' rather than 0 for char.
98767 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
98769         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
98771 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
98773         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
98774         It's now the caller's responsibility to handle the case where
98775         !HAVE_GETPAGESIZE && !defined getpagesize.
98777         * lib/mktime.c (leapyear): Arg is long int, not int.
98779 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
98781         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
98783 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
98785         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
98786         missing.  Problem reported by James Youngman.
98788 2004-10-16  Simon Josefsson  <jas@extundo.com>
98790         * gnulib-tool: Fix comments.  Fix parse problem.
98791         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
98793 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
98795         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
98796         implementation of getopt_long.  Problem reported by Alexander Taler in:
98797         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
98799 2004-10-15  Bruno Haible  <bruno@clisp.org>
98801         * gnulib-tool: Untabify. Initialize supplied_libname.
98802         (func_usage): More homogenous output.
98803         (func_modules_transitive_closure, func_modules_to_filelist,
98804         func_emit_lib_Makefile_am): New functions.
98805         (func_import): New function, extracted from big case statement. Use
98806         func_get_license, func_modules_transitive_closure,
98807         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
98808         opt_lgpl. Don't use test -a, as it's not portable.
98809         (func_create_testdir): Use func_modules_transitive_closure,
98810         func_modules_to_filelist, func_emit_lib_Makefile_am.
98812 2004-10-15  Bruno Haible  <bruno@clisp.org>
98814         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
98816 2004-10-15  Bruno Haible  <bruno@clisp.org>
98818         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
98819         the portions belonging to each module.
98820         Suggested by Derek Robert Price <derek@ximbiot.com>.
98822 2004-10-12  Simon Josefsson  <jas@extundo.com>
98824         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
98825         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
98826         to real functions.
98828 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
98830         * modules/vsnprintf: New file.
98832 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
98834         * m4/vsnprintf.m4: New file.
98836 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
98838         * lib/vsnprintf.h: New file.
98839         * lib/vsnprintf.c: New file.
98841 2004-10-11  Bruno Haible  <bruno@clisp.org>
98843         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
98844         vsnprintf.
98846 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
98848         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
98850 2004-10-07  Bruno Haible  <bruno@clisp.org>
98852         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
98853         fits into the provided buffer.
98855 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
98857         * lib/diacrit.c, diacrit.h: Add GPL notice.
98859         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
98860         notice.
98861         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
98862         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
98863         This avoids a potential constant-folding bug.
98865 2004-10-05  Bruno Haible  <bruno@clisp.org>
98867         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
98868         for the declaration of strsep.
98870 2004-10-05  Bruno Haible  <bruno@clisp.org>
98872         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
98874 2004-10-04  Simon Josefsson  <jas@extundo.com>
98876         * modules/memmem: New file.
98877         * tests/test-memmem.c: New file.
98878         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
98880 2004-10-04  Simon Josefsson  <jas@extundo.com>
98882         * m4/memmem.m4: New file.
98884 2004-10-04  Simon Josefsson  <jas@extundo.com>
98886         * lib/memmem.h: New file.
98887         * lib/memmem.c: New file, taken from glibc.
98889 2004-10-04  Simon Josefsson  <jas@extundo.com>
98891         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
98892         '#ifdef USE_UNLOCKED_IO'.
98894 2004-10-04  Simon Josefsson  <jas@extundo.com>
98896         * config/srclist.txt: Add memmem from glibc.
98898 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
98900         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
98902         * modules/argmatch, modules/argp, modules/closeout, modules/error,
98903         modules/exclude, modules/getdate, modules/getline,
98904         modules/getndelim2, modules/getpass, modules/getpass-gnu,
98905         modules/getusershell, modules/linebuffer, modules/md5,
98906         modules/mountlist, modules/posixtm, modules/readtokens,
98907         modules/readutmp, modules/regex, modules/sha1,
98908         modules/version-etc, modules/yesno:
98909         Remove dependency on unlocked-io.
98911 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
98913         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
98915         * m4/unlocked-io.m4: Add copyright notice.
98916         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
98918 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
98920         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
98921         * lib/xmalloc.c (xmemdup): Likewise.
98922         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
98923         XFREE): Remove these long-obsolescent macros.
98924         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
98925         * lib/xstrdup.c: Remove.
98927         * lib/regex.c (re_comp): Cast gettext return value to char *,
98928         Problem reported by Martin Neitzel via Mark D. Baushke.
98930 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
98932         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
98933         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
98934         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
98935         regex.c, sha1.c, version-etc.c, yesno.c:
98936         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
98937         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
98938         the includer's responsibility.
98940         Sync from coreutils.
98942         * lib/modechange.c (mode_compile): Don't decrement a pointer that
98943         points to the start of a string, as the C Standard says the
98944         resulting behavior is undefined.
98946         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
98947         simple -> simple_backups, numbered_existing ->
98948         numbered_existing_backups, numbered -> numbered_backups
98949         to avoid shadowing problems.  All uses changed.
98950         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
98951         * lib/backupfile.c (check_extension, numbered_backup):
98952         Rename locals to avoid shadowing 'basename'.
98953         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
98954         once.
98956         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
98957         * lib/.cvsignore: Add getopt.h.
98959 2004-10-04  Bruno Haible  <bruno@clisp.org>
98961         * modules/README: New file.
98962         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
98963         not a module.
98965 2004-10-02  Jim Meyering  <jim@meyering.net>
98967         * lib/dirfd.h, getpagesize.h: Add copyright notice.
98969 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
98971         * modules/strsep: New file.
98973 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
98975         * m4/strsep.m4: New file.
98977 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
98979         * lib/strsep.h: New file.
98980         * lib/strsep.c: New file.
98982 2004-10-01  Simon Josefsson  <jas@extundo.com>
98984         * lib/snprintf.c (snprintf): Handle size==0.
98986 2004-10-01  Simon Josefsson  <jas@extundo.com>
98987             Bruno Haible  <bruno@clisp.org>
98989         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
98990         (snprintf): Declare 'args'.
98992 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
98994         * lib/snprintf.c: Remove comments as to why each header is needed.
98996 2004-10-01  Bruno Haible  <bruno@clisp.org>
98998         * MODULES.html.sh: Add strsep.
99000 2004-09-30  Simon Josefsson  <jas@extundo.com>
99002         * modules/snprintf: New file.
99004 2004-09-30  Simon Josefsson  <jas@extundo.com>
99006         * m4/snprintf.m4: New file.
99008 2004-09-30  Simon Josefsson  <jas@extundo.com>
99010         * lib/snprintf.h, lib/snprintf.c: New files.
99012 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
99014         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
99015         (hol_entry_help): Never translate an empty string.
99016         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
99017         * lib/argp.h (OPTION_NO_TRANS): New option.
99019 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
99021         * modules/argp (Maintainer): Replace Simon Josefsson
99022         by Sergey Poznyakoff.
99024 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
99026         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
99027         changes merged back into glibc.
99029 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
99031         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
99033 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
99035         * lib/xvasprintf.c: Include xalloc.h.
99036         (xvasprintf): Use xalloc_die, not xmalloc_die.
99038 2004-09-29  Bruno Haible  <bruno@clisp.org>
99040         * modules/alloca-opt: New file, derived from modules/alloca.
99041         * modules/allocsa: Depend on alloca-opt instead of alloca.
99042         * modules/setenv: Likewise.
99043         * modules/vasnprintf: Likewise.
99044         * MODULES.html.sh: Add alloca-opt.
99046 2004-09-28  Simon Josefsson  <jas@extundo.com>
99048         * gnulib-tool: New parameter --lgpl, to asseert that modules are
99049         LGPL, and to replace license template from GPL to LGPL.
99051 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
99053         * modules/dummy: Change license to LGPL.
99055 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
99057         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
99059 2004-09-24  Simon Josefsson  <jas@extundo.com>
99061         * modules/minmax (License): Change from GPL to LGPL.
99063 2004-09-23  Simon Josefsson  <jas@extundo.com>
99065         * gnulib-tool (--import): Typo.
99067 2004-09-23  Simon Josefsson  <jas@extundo.com>
99069         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
99071 2004-09-22  Bruno Haible  <bruno@clisp.org>
99073         * modules/*: Add 'License' field.
99074         * gnulib-tool: Accept --extract-license option.
99075         (func_get_license): New function.
99077 2004-09-21  Bruno Haible  <bruno@clisp.org>
99079         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
99080         Reported by Simon Josefsson.
99082 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
99084         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
99085         gl_AC_TYPE_LONG_LONG.
99087 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
99089         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
99091 2004-09-18  Simon Josefsson  <jas@extundo.com>
99092         and  Paul Eggert  <eggert@cs.ucla.edu>
99094         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
99095         calls with autoreconf.  Define GL_LIB.
99097 2004-09-14  Karl Berry  <karl@gnu.org>
99099         * config/srclist.txt: unsync setenv.c, sigh.
99101 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
99103         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
99104         Problem reported by Bruno Haible in:
99105         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
99107 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
99109         * config/srclist.txt: Comment out argp-pvh.c.
99111 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
99113         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
99114         in case some system header has #define'd it.  Problem reported by
99115         Soeren D. Schulze in
99116         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
99118 2004-09-09  Karl Berry  <karl@gnu.org>
99120         * regex.[ch]: delete from the root.  These were supposed to be
99121                 synced with emacs cvs, but this has not happened for about
99122                 a year, and anyway nothing else uses emacs regex.[ch].
99123                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
99124                 lib/regex[.ch] is untouched.
99126 2004-09-09  Bruno Haible  <bruno@clisp.org>
99128         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
99130 2004-09-09  Bruno Haible  <bruno@clisp.org>
99132         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
99133         modifications.
99134         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
99136 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
99138         * modules/xvasprintf: New file.
99139         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
99141 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
99143         * lib/xvasprintf.h: New file.
99144         * lib/xvasprintf.c: New file.
99145         * lib/xasprintf.c: New file.
99147 2004-09-08  Bruno Haible  <bruno@clisp.org>
99149         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
99151 2004-09-08  Bruno Haible  <bruno@clisp.org>
99153         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
99154         length is > INT_MAX.
99155         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
99156         more.
99158 2004-09-08  Bruno Haible  <bruno@clisp.org>
99160         * lib/stdint_.h: New file, taken from GNU clisp.
99162 2004-09-08  Bruno Haible  <bruno@clisp.org>
99163             Oskar Liljeblad  <oskar@osk.mine.nu>
99165         * modules/stdint: New file.
99166         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
99168 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
99170         Import from coreutils.
99171         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
99172         strings on unbounded length.  alloca's performance benefits aren't
99173         that important here.
99174         (V_STRDUP): Remove.
99175         (parse_with_separator): New function, with most of the internals
99176         of the old parse_user_spec.  Allow user to omit both user and group,
99177         for compatibility with FreeBSD.
99178         Clone only the user name, not the entire spec.
99179         Do not set *uid, *gid unless entirely successful.
99180         Avoid memory leak in some failing cases.
99181         Fix regression for USER.GROUP reported by Dmitry V. Levin in
99182         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
99183         (parse_user_spec): Rewrite to use parse_with_separator.
99185 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
99187         * modules/userspec: Don't depend on alloca.
99189 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
99191         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
99193 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
99195         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
99196         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
99197         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
99199 2004-08-16  Simon Josefsson  <jas@extundo.com>
99201         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
99202         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
99203         Add --dry-run for --import.
99204         Let user provided command line parameters override configure.ac
99205         settings.
99207 2004-08-12  Simon Josefsson  <jas@extundo.com>
99209         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
99210         as discussed with Paul Eggert in threads rooted at
99211         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
99212         and
99213         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
99214         Before, the test was empty, and relied on ELIDE_CODE in source
99215         code.)
99216         (gl_PREREQ_GETOPT): New macro.
99217         (gl_GETOPT): Use them.
99219 2004-08-12  Simon Josefsson  <jas@extundo.com>
99221         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
99222         * lib/getopt_.h: Renamed from getopt.h.
99224 2004-08-12  Simon Josefsson  <jas@extundo.com>
99226         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
99227         Change default library name from libfoo to libgnu.
99228         Now, if you have a configure.ac that says:
99229                 gl_SOURCE_BASE(gl)
99230                 gl_M4_BASE(gl/m4)
99231                 gl_MODULES(error getopt etcetera)
99232                 gl_INIT
99233         you can import all you need by running:
99234                 ../gnulib/gnulib-tool --import
99236         * modules/getopt (Files): Rename getopt.h to getopt_.h.
99237         (Makefile.am): Rewrite, use logic from argz.
99238         (Include): Use <getopt.h> instead of "getopt.h".
99240 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
99242         * modules/argp (Files): Add m4/unlocked-io.m4.
99243         (Depends-on): Add extensions.
99245 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
99247         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
99248         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
99249         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
99250         Check for program_invocation_name, program_invocation_short_name,
99251         flockfile, funlockfile, features.h, _getopt_long_only_r.
99253 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
99255         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
99256         its complicated substitute.
99257         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
99258         and program_invocation_name.
99259         (__argp_basename) [!_LIBC]: Remove; the only use was
99260         replaced by its body.
99261         (__argp_short_program_name): Change condition from
99262         !defined __argp_short_program_name to
99263         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
99264         to match argp-namefrob.h.
99265         (__argp_failure): Don't assume strerror_r returns char *.
99266         * lib/argp-parse.c (N_): Define unconditionally.
99267         (argp_default_options): Fill out initializers with 0 to avoid
99268         gcc warnings.
99270 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
99272         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
99273         getopt1.c.
99275 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
99277         Merge from coreutils.
99279         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
99281         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
99282         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
99284 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
99286         Merge from coreutils.
99288         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
99289         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
99290         for Reliant Unix 5.43.
99292         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
99293         (union fooround): Use uintmax_t, not long int.
99294         The rest is a merge from libc:
99295         [defined _LIBC]: Include <shlib-compat.h>.
99296         (_obstack) [defined _LIBC]: Remove after 2.3.4.
99298         * lib/settime.c (settime): Recode to avoid warning with
99299         Sun Forte C 6U2.
99301         * lib/strverscmp.c: Convert to UTF-8.
99303 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
99305         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
99306         m4/uintmax_t.m4.
99308 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
99310         * modules/xalloc-die: New file.
99311         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
99313         * modules/md5 (Files): Add m4/uint32_t.m4.
99314         * modules/sha1: Renamed from modules/sha.
99315         (Files):
99316         Rename lib/sha.h to lib/sha1.h.
99317         Rename lib/sha.c to lib/sha1.c.
99318         Rename m4/sha.m4 to m4/sha1.m4.
99319         (lib_SOURCES): Likewise.
99320         (configure.ac): Rename gl_SHA to gl_SHA1.
99321         (Include): sha.h -> sha1.h.
99323 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
99325         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
99326         * m4/sha1.m4: Renamed from sha.m4.
99327         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
99329 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
99331         * lib/obstack.h (obstack_empty_p):
99332         Don't assume that chunk->contents is suitably aligned.
99333         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
99334         Likewise. Problem reported by Benno in
99335         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
99337         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
99338         readable.  This could be improved further but it'd take some work.
99340 2004-08-08  Simon Josefsson  <jas@extundo.com>
99342         * modules/xgethostname (Depends-on): Remove exit and error (not
99343         used).
99345         * modules/getpass-gnu: Add getpass.h.
99346         (Depends-on): Add stdbool.
99347         * modules/getpass: Add getpass.h.
99349 2004-08-08  Simon Josefsson  <jas@extundo.com>
99351         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
99352         Check getpass declaration.
99354 2004-08-08  Simon Josefsson  <jas@extundo.com>
99356         * lib/xgethostname.c: Don't include error.h (not used).
99358         * lib/getpass.h: Add.
99359         * lib/getpass.c: Include getpass.h first.
99361 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
99363         * lib/xalloc-die.c: New file.
99364         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
99365         All uses removed.
99366         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
99367         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
99368         xalloc-die.c.
99369         (_, N_, xalloc_die): Move to xalloc-die.c.
99370         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
99371         so that we needn't mess with xalloc_msg_memory_exhausted.
99373         * lib/sha1.h: Renamed from sha.h.
99374         (SHA1_H): Renamed from _SHA_H.
99375         (sha1_ctx): Renamed from sha_ctx.
99376         (sha1_init_ctx): Renamed from sha_init_ctx.
99377         (sha1_process_block): Renamed from sha_process_block.
99378         (sha1_process_bytes): Renamed from sha_process_bytes.
99379         (sha1_finish_ctx): Renamed from sha_finish_ctx.
99380         (sha1_read_ctx): Renamed from sha_read_ctx.
99381         (sha1_stream): Renamed from sha_stream.
99382         (sha1_buffer): Renamed from sha_buffer.
99383         * lib/sha1.c: Likewise; renamed from sha.c.
99384         Do not include <sys/types.h>.
99385         Include <stddef.h> rather than <stdlib.h>.
99387 2004-08-08  Bruno Haible  <bruno@clisp.org>
99389         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
99390         FILESYSTEM_PREFIX_LEN.
99391         * lib/progreloc.c: Likewise.
99392         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
99394 2004-08-06  Simon Josefsson  <jas@extundo.com>
99396         * modules/progname (Depends-on): Don't depend on stdbool.
99398 2004-08-06  Simon Josefsson  <jas@extundo.com>
99400         * modules/getsubopt: New file.
99401         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
99402         getsubopt.
99404 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
99406         More merge from coreutils.
99408         * m4/utimens.m4, m4/utimecmp.m4: New files.
99409         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
99410         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
99411         prereq.m4, sha.m4: Import changes from coreutils.
99413 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
99415         More merge from coreutils.
99416         * modules/raise, modules/readtokens0, modules/utimens:
99417         * modules/utimecmp, module/xnanosleep: New files.
99418         * modules/strftime: Add lib/strftime.h.
99419         Change include from <time.h> to "strftime.h".
99420         * modules/yesno: Add lib/yesno.h.
99421         * modules/backupfile: Remove lib/addext.c.
99422         * modules/euidaccess: Add stat-macros.h.
99423         * modules/canonicalize, modules/euidaccess,
99424         modules/filemode, modules/lchown, modules/makepath,
99425         modules/rmdir, modules/stat: Likewise.
99427 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
99429         Merge from tar.
99430         * lib/argp-help.c (make_hol, hol_append): Don't assume that
99431         SIZE_MAX is a valid preprocessor constant.
99432         (__argp_basename): Change from "#ifndef _LIBC"
99433         to "#ifndef __argp_short_program_name", so that
99434         we don't compile these functions for tar.
99436         More merges from coreutils.
99437         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
99438         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
99439         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
99440         * lib/addext.c: Remove; no longer needed.
99441         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
99442         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
99443         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
99444         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
99445         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
99446         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
99447         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
99448         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
99449         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
99450         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
99451         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
99452         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
99453         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
99454         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
99455         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
99456         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
99457         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
99458         Import changes from coreutils.
99460 2004-08-05  Simon Josefsson  <jas@extundo.com>
99462         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
99464 2004-08-05  Simon Josefsson  <jas@extundo.com>
99466         * m4/getsubopt.m4: New file.
99468 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
99470         Merge from coreutils.
99472         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
99473         * m4/getcwd-path-max.m4: New files.
99475         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
99476         FILESYSTEM_PREFIX_LEN ->
99477         FILE_SYSTEM_PREFIX_LEN.
99478         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
99479         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
99480         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
99481         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
99483         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
99484         prerequisite modules now handle the DOS stuff.
99485         Don't check for unistd.h.
99487 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
99489         Merge from coreutils.
99491         * lib/.gdb-history: Remove; this doesn't belong here.
99493         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
99494         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
99495         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
99496         * lib/getcwd.c: New files.
99498         * lib/dirname.h: Include <stdbool.h>.
99499         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
99500         for consistency with POSIX terminology.  All uses changed.
99501         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
99502         (strip_trailing_slashes): Use bool for booleans.
99503         * lib/stripslash.c (strip_trailing_slashes): Likewise.
99505         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
99506         sometimes returns a positive errno value even when it succeeds.
99507         (print_errno_message) [!LIBC]: Fall back on strerror if
99508         __strerror_r fails.
99510         * lib/path-concat.c (mempcpy): Don't define if a system header defines
99511         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
99512         (longest_relative_suffix): New function.
99513         (path_concat): Use it.  Assume first argument is not NULL.
99514         Port to DOS.  Omit redundant separators.
99515         Report an error instead of returning NULL.
99516         Use mempcpy instead of memcpy.
99517         (xpath_concat): Remove: not declared or used.
99519         * lib/same.h: Include <stdbool.h>
99520         (same_name): Return bool, not int.
99521         * lib/same.c (same_name): Likewise.
99522         (errno): Don't declare; we assume C89 or better now.
99524         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
99525         if not already defined.
99527         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
99528         * lib/dup-safer.c (errno): Likewise.
99530 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
99532         Merge from coreutils.
99533         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
99534         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
99535         * modules/path-concat: Don't depend on strdup.
99537 2004-08-03  Simon Josefsson  <jas@extundo.com>
99539         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
99540         * lib/progname.h: Don't include stdbool.h.
99542 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
99544         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
99545         * MODULES.html.sh (func_all_modules): Remove fatal.
99547 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
99549         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
99551 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
99553         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
99554         working.
99556 2004-08-02  Simon Josefsson  <jas@extundo.com>
99558         * lib/getsubopt.h: New file, with comments from Bruno Haible.
99559         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
99560         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
99562 2004-08-01  Simon Josefsson  <jas@extundo.com>
99564         * lib/xgetdomainname.c: Include stdlib.h, for free().
99566 2004-07-19  Bruno Haible  <bruno@clisp.org>
99568         * MODULES.html.sh (func_all_modules): Add dummy.
99570 2004-07-16  Simon Josefsson  <jas@extundo.com>
99572         * modules/dummy: New file.
99574 2004-07-16  Simon Josefsson  <jas@extundo.com>
99576         * lib/dummy.c: New file.
99578 2004-07-16  Bruno Haible  <bruno@clisp.org>
99580         * lib/backupfile.h: Add extern "C" for C++.
99581         * lib/closeout.h: Likewise.
99582         * lib/copy-file.h: Likewise.
99583         * lib/findprog.h: Likewise.
99584         * lib/full-write.h: Likewise.
99585         * lib/pathname.h: Likewise.
99586         * lib/progname.h: Likewise.
99587         * lib/stpcpy.h: Likewise.
99588         * lib/stpncpy.h: Likewise.
99589         * lib/strcase.h: Likewise.
99590         * lib/strstr.h: Likewise.
99591         * lib/xalloc.h: Likewise.
99593         * lib/mbswidth.h: Add extern "C" for C++.
99594         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
99596 2004-07-13  Robert Millan  <robertmh@gnu.org>
99598         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
99600 2004-07-09  Simon Josefsson  <jas@extundo.com>
99602         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
99603         failed without this.)
99605 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
99607         * modules/chown (Files): Add lib/fchown-stub.c, since
99608         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
99610 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
99612         * lib/fchown-stub.c: New file.
99614 2004-06-24  Jim Meyering  <jim@meyering.net>
99616         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
99618 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
99620         * modules/argz: Omit "#include".
99622         * MODULES.html.sh (func_all_modules): Add calloc, to match
99623         2004-06-01 addition of calloc module.
99625 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
99627         * m4/argz.m4: New file, which is autoupdated from libtool.
99629 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
99631         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
99632         libtool.
99634 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
99636         * config/srclist-update: Don't insist on "USA." before the
99637         close-comment, as libtool omits the period and puts the */ on a
99638         separate line.
99639         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
99640         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
99642 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
99644         * modules/argz: New file.
99645         * MODULES.html.sh (func_all_modules): Add argz.
99647 2004-06-12  Jim Meyering  <jim@meyering.net>
99648         and  Paul Eggert  <eggert@cs.ucla.edu>
99650         * modules/hash (Files): Add lib/xalloc.h.
99651         * modules/pipe (Depends-on): Add wait-process.
99652         * modules/stat (Depends-on): Add xalloc.
99653         * modules/userspec (Files): Add lib/userspec.h.
99654         * modules/xstrto
99656         Upgrade from gettext-0.13.
99657         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
99658         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
99659         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
99661 2004-06-10  Jim Meyering  <jim@meyering.net>
99663         * lib/calloc.c: New file.
99665 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
99667         * lib/getdate.y (yylex): Allow space between sign and number.
99668         Problem reported by Dan Jacobson.
99670 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
99672         Merge from coreutils CVS.
99674         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
99675         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
99676         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
99677         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
99678         xstrtol.m4: Fix copyright date and/or serial number.
99680         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
99681         See if we need an fchown replacement.
99682         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
99683         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
99684         and use the replacement function if we detect either defect.
99686         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
99687         gl_UTIMECMP.
99689 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
99690         and  Jim Meyering  <jim@meyering.net>
99692         Merge from coreutils CVS.
99694         * lib/stat-macros.h: New file, with contents from file-type.h
99695         and coreutils' system.h.
99696         * lib/file-type.c: Include "stat-macros.h".
99697         * lib/file-type.h (file_type): Move all macro definitions to new file,
99698         stat-macros.h.
99700         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
99701         Wrap old code with this conditional.
99702         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
99703         function that does not dereference symlinks.
99704         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
99706         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
99707         dependency problems.
99708         (xreadlink): Accept new arg SIZE, for efficiency.
99709         All decls and uses changed.
99710         * lib/xreadlink.h: Include <stddef.h>, for size_t.
99712         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
99713         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
99715         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
99716         sysexits.h.
99718 2004-06-01  Jim Meyering  <jim@meyering.net>
99720         * m4/calloc.m4: New file.
99722 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
99724         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
99725         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
99726         Also, fix a typo in a diagnostic.
99728 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
99730         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
99731         or AC_FUNC_REALLOC.
99733 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
99735         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
99736         macros to be defined.
99737         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
99738         the allocator returns NULL because the requested size is zero.
99740 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
99742         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
99743         var.  Add comment explaining why libc still defines it.  This
99744         merges the following patch from glibc:
99745         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
99747 2004-05-20  Andreas Schwab  <schwab@suse.de>
99749         * m4/free.m4: Replace free if it not known to work, not the other
99750         way round.
99752 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
99754         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
99755         present in glibc since revision 1.1 of this file.
99756         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
99757         obstack_alignment_mask, obstack_alloc, obstack_base,
99758         obstack_blank, obstack_blank_fast, obstack_chunk_size,
99759         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
99760         obstack_grow0, obstack_init, obstack_int_grow,
99761         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
99762         obstack_next_free, obstack_object_size, obstack_ptr_grow,
99763         obstack_ptr_grow_fast, obstack_room): Remove declarations of
99764         nonexistent functions.
99766 2004-05-18  Karl Berry  <karl@gnu.org>
99768         * config/srclist.txt: break link for vasnprintf.c.
99770 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
99772         Port obstack to the AS/400, where pointers are 16 bytes wide and
99773         you cannot cast an integer to a valid pointer.  This patch is
99774         currently waiting to be integrated into glibc; see
99775         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
99777         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
99778         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
99779         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
99780         (struct obstack): temp member is now a union of a pointer and
99781         an integer, instead of an integer.  All integer uses changed.
99782         This does not affect the physical layout of struct obstack,
99783         except on hosts (like the AS/400) where the size or alignment of
99784         void * is greater than that of ptrdiff_t.
99785         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
99786         __STDC__)]: Store temporary in pointer member of union, not
99787         integer member.
99788         * lib/obstack.c: Include <stddef.h>, for offsetof.
99789         (struct fooalign): Remove; it doesn't need a name.
99790         (union fooround): Change double to long double, and add void *.
99791         (DEFAULT_ALIGNMENT): Use offsetof to compute.
99792         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
99793         not a macro.  Hence the values are always int; so remove all
99794         casts-to-int in uses.
99796 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
99798         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
99799         we can get this patch merged into glibc.
99801 2004-05-17  Derek R. Price  <derek@ximbiot.com>
99802             Paul Eggert  <eggert@cs.ucla.edu>
99804         * m4/argp: Depend on alloca.
99806 2004-05-17  Derek R. Price  <derek@ximbiot.com>
99807             Paul Eggert  <eggert@cs.ucla.edu>
99809         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
99810         freecoding.
99812 2004-05-17  Bruno Haible  <bruno@clisp.org>
99814         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
99815         precision that consists of a '.' followed by an empty digit string.
99816         Patch by Tor Lillqvist <tml@iki.fi>.
99818 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
99820         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
99821         for backward compatibility with older code.  We need our own
99822         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
99823         it under some other name, and our alloca.h will define it.
99825 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
99826             Derek Price  <derek@ximbiot.com>
99828         * lib/alloca.c: Include <alloca.h>, to get our interface.
99829         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
99830         include <alloca.h> first.  Use C89 prototype for alloca; this
99831         requires including <stddef.h> for size_t.  Use extern "C" if C++.
99832         Use #elif for simplicity, since we can assume C89 now.
99833         Don't try to source the system alloca.h since it will not be found
99834         and to prevent recursively including its replacement.
99835         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
99836         * lib/regex.c: Likewise.
99838 2004-05-16  Derek Price  <derek@ximbiot.com>
99839             Paul Eggert  <eggert@cs.ucla.edu>
99841         getline cleanup.  This changes the getndelim2 API: both order of
99842         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
99843         no delimiter).
99845         * lib/getline.c: Don't include stddef.h or stdio.h, since our
99846         interface does that.
99847         (getline): Always use getdelim, so that we don't have two
99848         copies of this code.
99849         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
99850         if available.
99851         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
99852         (GETNDELIM2_MAXIMUM): New macro.
99853         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
99854         instead of the old practice of delim2==0.  All callers changed.
99855         Return -1 on overflow, instead of returning junk.
99856         Do not set *linesize unless allocation succeeds.
99857         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
99858         that we include sys/types.h.
99859         * lib/getnline.h: Likewise.
99860         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
99861         (getndelim2): Reorder arguments.
99862         * lib/getnline.c (getnline, getndelim):
99863         Don't discard the NMAX argument.
99864         (getnline): Invoke getndelim, to avoid code duplication.
99865         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
99866         of (size_t) -1 by callers of the getnline family.
99868 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
99870         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
99871         Check for gettimeofday.
99872         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
99873         Check for settimeofday, stime.
99875 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
99877         * lib/nanosleep.c (suspended): Change its type from int to
99878         sig_atomic_t volatile.
99879         (first_call): Make it private to rpl_nanosleep, and have it
99880         be zero initially as that's a bit faster.
99881         (my_usleep): Round up fractional times instead of truncating them,
99882         as this is the usual meaning for 'sleep'.
99884         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
99885         doesn't work.
99886         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
99887         (ENOSYS): Define if not defined.
99888         (settime): Fall back on stime if it exists and settimeofday fails.
99889         But don't bother with fallbacks if a method fails with errno == EPERM.
99891 2004-05-11  Jim Meyering  <jim@meyering.net>
99893         Prior to this change, the save_cwd caller required read access to the
99894         current directory on most systems (ones with the fchdir function).
99896         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
99897         fails, try write-only, and finally, resort to using xgetcwd.
99899 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
99901         * lib/obstack.c, obstack.h: Import changes from libc.
99903 2004-04-28  Bruno Haible  <bruno@clisp.org>
99905         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
99906         also implicitly appends .exe to executables.
99907         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
99908         accepts Windows pathnames.
99909         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
99910         Treat Cygwin like Windows, since it now accepts Windows pathnames.
99911         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
99912         Treat Cygwin like Windows, since it now accepts Windows pathnames.
99913         Reported by Derek Robert Price <derek@ximbiot.com>.
99915 2004-04-21  Karl Berry  <karl@gnu.org>
99917         * config/srclist.txt (localcharset.c): break sync.
99919 2004-04-20  Paul Eggert  <eggert@twinsun.com>
99921         * m4/host-os.m4: Add a copyright notice.
99923 2004-04-20  Jim Meyering  <jim@meyering.net>
99925         Change UTILS_ to gl_ in AC_DEFINE'd names.
99926         Change utils_- and jm_-prefixed variables, too.
99927         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
99928         UTILS_FUNC_MKDIR_TRAILING_SLASH.
99929         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
99931         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
99932         Don't emit trailing blanks.
99933         Also rename jm_-prefixed variables to have gl_ prefix.
99935         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
99936         Also rename jm_-prefixed variables to have gl_ prefix.
99938         * m4/jm-macros.m4: Reflect the renamings.
99939         * m4/prereq.m4: Likewise.
99941 2004-04-20  Jim Meyering  <jim@meyering.net>
99943         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
99944         memory.
99946 2004-04-20  Jim Meyering  <jim@meyering.net>
99947             Bruno Haible  <bruno@clisp.org>
99949         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
99950         memory when realloc fails.
99952 2004-04-19  Jim Meyering  <jim@meyering.net>
99954         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
99955         now that readutmp.c may call `free (0)'.
99957 2004-04-19  Bruno Haible  <bruno@clisp.org>
99959         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
99960         * m4/inttypes_h.m4: Likewise.
99961         * m4/stdint_h.m4: Likewise.
99962         * m4/intmax_t.m4: Likewise.
99963         * m4/uintmax_t.m4: Likewise.
99965 2004-04-18  Jim Meyering  <jim@meyering.net>
99967         * m4/prereq.m4: Don't forbid jm_ prefix.
99969         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
99970         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
99971         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
99972         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
99973         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
99974         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
99975         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
99976         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
99977         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
99978         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
99979         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
99980         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
99981         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
99982         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
99983         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
99984         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
99985         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
99986         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
99987         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
99989 2004-04-18  Jim Meyering  <jim@meyering.net>
99991         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
99992         failure, don't leak memory and do call END_UTMP_ENT.
99994 2004-04-16  Jim Meyering  <jim@meyering.net>
99996         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
99997         coreutils' stat program.
99998         (gl_PREREQ): Don't require jm_PREREQ_STAT.
100000 2004-04-11  Paul Eggert  <eggert@twinsun.com>
100002         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
100003         C89.
100004         (CHAR_BIT): Remove, since we assume C89.
100005         Include <stdint.h> if available, as per current Autoconf CVS advice.
100007 2004-03-31  Jim Meyering  <jim@meyering.net>
100009         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
100010         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
100011         * m4/xalloc.m4: Likewise.
100013 2004-03-30  Paul Eggert  <eggert@twinsun.com>
100015         Merge from coreutils.
100017         * m4/inttostr.m4: New file.
100018         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
100019         Require AM_STDBOOL_H and gl_TIMESPEC instead.
100020         Require gl_CLOCK_TIME.
100021         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
100023 2004-03-30  Paul Eggert  <eggert@twinsun.com>
100025         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
100026         not bool, to be more consistent with Unix conventions.
100027         Suggested by Bruno Haible.
100029         Merge from coreutils.
100031         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
100032         * lib/umaxtostr.c: New files.
100034         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
100035         the usual <time.h> dance.
100036         (get_date): Change signature to support fractional time stamps.
100037         All callers changed.
100038         * lib/getdate.y: Include "getdate.h" first, as we can now
100039         assume C89 and don't need to worry about 'const'.
100040         Similarly, include "unlocked-io.h" near start, not in middle.
100041         Include <limits.h>.
100042         (textint.value): Use long int rather than int.
100043         (textint.digits): Use size_t rather than int.
100044         (BILLION, LOG10_BILLION): New constants.
100045         (parser_control): New member rel_ns.  Members day_ordinal,
100046         time_zone, month, day, hour, minutes, rel_year, rel_month,
100047         rel_day, rel_hour, rel_minutes, rel_seconds
100048         are now long int, not int.  Member seconds is now struct timespec,
100049         not int.  New member timespec_seen.  Members dates_seen, days_seen,
100050         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
100051         not int.
100052         (%union.intval): Now long int, not int.
100053         New member timespec.
100054         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
100055         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
100056         (spec): Now is a timespec or an item list.
100057         (timespec, items): New nonterminals.
100058         (time, rel, relunit, number, get_date):
100059         Add support for fractional seconds.
100060         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
100061         (gmtime, localtime, mktime): Remove decls; not needed with C89.
100062         (to_hour): First arg is now long int, not int.
100063         (to_year): Returns long int, not int.
100064         Don't treat year -70 like 70.
100065         (tm_diff): Returns long int, not int.
100066         (lookup_word): Use bool instead of int when appropriate.
100067         (yylex): Use size_t for count, not int.
100068         Detect overflow when parsing large integer constants.
100069         Add support for fractions.
100070         (get_date): Make pointers 'const' if possible.
100071         Use more-portable code to detect integer overflow.
100072         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
100073         Don't use ctime; it's not reliable if the year has >4 digits.
100075         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
100076         This is for compatibility with BSD.
100078         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
100079         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
100080         From coreutils' system.h.
100082         * lib/userspec.c: Don't include "posixver.h".
100083         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
100084         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
100085         compatible extension.  Simplify code by removing a boolean int
100086         that was always nonzero if a string was nonnull.
100088 2004-03-30  Jim Meyering  <jim@meyering.net>
100090         Merge from coreutils.
100092         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
100093         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
100094         on some systems one must include <grp.h> before it.
100095         Reported by Christian Krackowizer.
100097 2004-03-30  Jim Meyering  <jim@meyering.net>
100099         Merge from coreutils.
100101         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
100103         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
100104         an empty input stream.
100106         * lib/readtokens.c: Include <stdbool.h>.
100107         (readtoken): Use `size_t' rather than int/long.
100108         All callers adjusted.
100109         Use `bool' rather than `int' where appropriate.
100110         Use memset rather than an explicit loop.
100111         Use x2nrealloc rather than xrealloc.
100112         Allow the use of `\0' as a delimiter.
100113         (readtokens): Likewise.
100114         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
100116 2004-03-30  Jim Meyering  <jim@meyering.net>
100118         * m4/realloc.m4: Remove file, since now it does no more than
100119         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
100120         the `configure.ac' section of module/realloc.
100121         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
100123 2004-03-30  Bruno Haible  <bruno@clisp.org>
100125         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
100126         nonnull.
100128 2004-03-29  Paul Eggert  <eggert@twinsun.com>
100130         Merge changes to getloadavg.c from coreutils and Emacs.
100132         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
100133         Define to an expression, not to the empty string.
100134         Include cloexec.h and xalloc.h.
100135         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
100136         Use set_cloexec_flag rather than rolling our own.
100137         * lib/cloexec.c, lib/cloexec.h: New files.
100139 2004-03-29  Paul Eggert  <eggert@twinsun.com>
100141         * m4/cloexec.m4: New file.
100143 2004-03-18  Paul Eggert  <eggert@twinsun.com>
100145         * lib/getopt.h: Sync with libc CVS.
100147 2004-03-18  Paul Eggert  <eggert@twinsun.com>
100148             Bruno Haible  <bruno@clisp.org>
100150         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
100151         mbswidth.
100153 2004-03-18  Paul Eggert  <eggert@twinsun.com>
100154             Bruno Haible  <bruno@clisp.org>
100156         * lib/mbswidth.h: Include <wchar.h> only if
100157         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
100158         <wchar.h>.
100159         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
100161 2004-03-09  Paul Eggert  <eggert@twinsun.com>
100163         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
100164         Sync with libc CVS.
100165         * lib/getopt_int.h: New file, also synced from libc.
100167 2004-03-09  Paul Eggert  <eggert@twinsun.com>
100169         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
100170         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
100171         Bring back getopt.c, getopt.h, getopt1.c.
100173 2004-03-07  Paul Eggert  <eggert@twinsun.com>
100175         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
100176         All uses changed.  Check for sa_sigaction member; this fixes
100177         a bug first reported by Jason Andrade in
100178         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
100180 2004-03-07  Paul Eggert  <eggert@twinsun.com>
100182         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
100183         '#if' expressions.  Unlike the code it replaces, it does not
100184         depend on (defined _SC_PAGESIZE).  However, it does depend on
100185         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
100186         first reported by Jason Andrade in
100187         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
100189 2004-02-25  Simon Josefsson  <jas@extundo.com>
100191         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
100193 2004-02-25  Simon Josefsson  <jas@extundo.com>
100195         * lib/strdup.h: New file.
100196         * lib/strdup.c: Include it.
100197         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
100198         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
100200 2004-02-23  Karl Berry  <karl@gnu.org>
100202         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
100203         (from fencepost.gnu.org:/gd/gnuorg).
100205 2004-02-23  Karl Berry  <karl@gnu.org>
100207         * config/srclistvars.sh (GNUORG) [karl]: redefine.
100208         * config/srclist.txt: add maintain/standards documents.
100210 2004-02-18  Bruno Haible  <bruno@clisp.org>
100212         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
100213         Reported by Derek Robert Price <derek@ximbiot.com>.
100215 2004-02-16  Karl Berry  <karl@gnu.org>
100217         * config/mkinstalldirs, install-sh: update from automake.
100219 2004-02-06  Karl Berry  <karl@gnu.org>
100221         * m4/po.m4: update from gettext 0.14.1.
100223 2004-02-06  Karl Berry  <karl@gnu.org>
100225         * lib/config.charset: update from gettext 0.14.1.
100227 2004-02-05  Paul Eggert  <eggert@twinsun.com>
100229         Add comments and code, prompted by suggestions from Bruno Haible
100230         for sh-quote.
100231         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
100232         describing the enum quoting_style values.
100233         * lib/quotearg.c (quotearg_alloc): New function.
100234         (quotearg_buffer_restyled): Treat lone { and } as special.
100235         Treat = as special.  Work around bug with older shells
100236         that "see" a '\' that is really the 2nd byte of a multibyte char.
100237         Quote empty string with shell_quoting_style.
100239 2004-02-03  Bruno Haible  <bruno@clisp.org>
100241         * m4/pipe.m4: New file, from GNU gettext.
100243 2004-02-03  Bruno Haible  <bruno@clisp.org>
100245         * lib/pipe.h: New file, from GNU gettext.
100246         * lib/pipe.c: New file, from GNU gettext.
100248 2004-01-27  Bruno Haible  <bruno@clisp.org>
100250         * m4/execute.m4: New file, from GNU gettext.
100252 2004-01-27  Bruno Haible  <bruno@clisp.org>
100254         * lib/execute.h: New file, from GNU gettext.
100255         * lib/execute.c: New file, from GNU gettext.
100256         * lib/w32spawn.h: New file, from GNU gettext.
100258 2004-01-24  Paul Eggert  <eggert@twinsun.com>
100260         Merge from diffutils.
100262         * lib/file-type.c (file_type): Add typed memory objects.
100263         * lib/file-type.h (S_TYPEISTMO): New macro.
100265         * lib/c-stack.h (c_stack_action): Remove argv argument.
100266         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
100267         (die): Don't calculate message unless segv_action returns.
100268         (get_stack_location, min_address_from_argv, max_address_from_argv,
100269         volatile stack_base, volatile_stack_size): Remove.
100270         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
100271         that every segmentation violation is a stack overflow.  (Ouch!)
100272         See Debian bug 136249 (still outstanding) for more info about why
100273         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
100275 2004-01-24  Paul Eggert  <eggert@twinsun.com>
100277         Exit-status fix from coreutils.
100279         Use exit_failure consistently in place of EXIT_FAILURE,
100280         so that program exit statuses are consistent on failure.
100282         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
100283         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
100284         * lib/argmatch.h: Comment fix to match the above.
100285         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
100286         Now a macro referring to exit_failure, instead of a separate
100287         variable.  Include "exitfail.h" to get it.
100288         * lib/xstrtol.h: Include "exitfail.h".
100289         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
100291         * lib/long-options.c (parse_long_options): Use prototype
100292         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
100293         for clarity.
100295 2004-01-21  Jim Meyering  <jim@meyering.net>
100297         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
100298         so as not to conflict with a different-sized __mktime_internal
100299         function in GNU libc.
100300         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
100301         Problem building statically-linked `ls' reported by Michael Brunnbauer.
100303 2004-01-20  Karl Berry  <karl@gnu.org>
100305         * config/config.guess: update from config.
100307         * config/srclistvars.sh: GNUWWWLICENSES for karl.
100309 2004-01-20  Bruno Haible  <bruno@clisp.org>
100311         Safer stack allocation.
100312         * lib/setenv.c: Include allocsa.h.
100313         (alloca): Remove fallback definition.
100314         (freea): Remove macro.
100315         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
100316         instead of freea.
100318 2004-01-20  Bruno Haible  <bruno@clisp.org>
100320         * m4/eealloc.m4: New file, from GNU gettext.
100322 2004-01-20  Bruno Haible  <bruno@clisp.org>
100324         * m4/allocsa.m4: New file, from GNU gettext.
100326 2004-01-20  Bruno Haible  <bruno@clisp.org>
100328         * lib/xallocsa.h: New file, from GNU gettext.
100329         * lib/xallocsa.c: New file, from GNU gettext.
100331 2004-01-20  Bruno Haible  <bruno@clisp.org>
100333         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
100335 2004-01-20  Bruno Haible  <bruno@clisp.org>
100337         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
100338         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
100339         specially.
100341 2004-01-20  Bruno Haible  <bruno@clisp.org>
100343         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
100344         patch.
100346 2004-01-20  Bruno Haible  <bruno@clisp.org>
100348         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
100350 2004-01-20  Bruno Haible  <bruno@clisp.org>
100352         * lib/eealloc.h: New file.
100354 2004-01-20  Bruno Haible  <bruno@clisp.org>
100356         * lib/binary-io.h: Avoid warnings on Cygwin.
100358 2004-01-20  Bruno Haible  <bruno@clisp.org>
100360         * lib/allocsa.h: New file, from GNU gettext.
100361         * lib/allocsa.c: New file, from GNU gettext.
100363 2004-01-18  Karl Berry  <karl@gnu.org>
100365         * doc/gpl.texi, doc/lgpl.texi: new files.
100367 2004-01-18  Karl Berry  <karl@gnu.org>
100369         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
100370         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
100372 2004-01-15  Paul Eggert  <eggert@twinsun.com>
100374         Merge from coreutils.
100376         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
100377         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
100378         (gl_DEFAULT_POSIX2_VERSION): Move
100379         the documentation from 'configure' into 'config.hin',
100380         so that 'configure --help' isn't burdened by it and
100381         we don't have to worry about its formatting there.
100382         Reword the documentation so that it's more succinct
100383         and can be run together into a single paragraph.
100384         * m4/same.m4 (gl_SAME): Check for pathconf.
100386 2004-01-15  Paul Eggert  <eggert@twinsun.com>
100388         Merge from coreutils.
100390         * lib/posixver.c: Include posixver.h.
100392         * lib/same.c: Include <stdbool.h>, <limits.h>.
100393         (_POSIX_NAME_MAX): Define if not defined.
100394         (MIN): New macro.
100395         (same_name): If file names are silently truncated, report
100396         that the file names are the same if they are the same after
100397         the silent truncation.
100399         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
100400         conversion function.
100401         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
100402         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
100403         longer needed.
100405 2004-01-15  Jim Meyering  <jim@meyering.net>
100407         Merge from coreutils.
100409         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
100410         if no library is required.
100411         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
100412         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
100413         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
100414         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
100415         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
100416         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
100417         value, $ac_cv_search_crypt, if it's "none required".
100418         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
100419         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
100420         not gl_FUNC_GETLOADAVG.
100421         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
100422         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
100424 2004-01-15  Jim Meyering  <jim@meyering.net>
100426         Merge from coreutils.
100428         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
100429         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
100430         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
100432         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
100433         optional configure-time default.
100435         * lib/version-etc.c (version_etc_copyright): Update copyright date.
100437         * lib/xreadlink.c (xreadlink): Correct outdated comment.
100439 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
100441         Merge from coreutils.
100443         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
100444         value, $ac_cv_search_nanosleep, if it's "none required".
100446 2004-01-14  Paul Eggert  <eggert@twinsun.com>
100448         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
100449         with like-named macro in fnmatch.c.
100450         (EXT): Use an internal constant instead.
100452         Merge fnmatch patches from glibc.
100453         * lib/fnmatch.c (mbsinit): Remove define.
100454         Add libc_hidden_ver (__fnmatch, fnmatch).
100455         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
100456         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
100458 2004-01-14  Karl Berry  <karl@gnu.org>
100460         * config/install-sh: update from automake.
100462 2004-01-13  Karl Berry  <karl@gnu.org>
100464         * config/install-sh: update from automake.
100466 2004-01-09  Karl Berry  <karl@gnu.org>
100468         * config/install-sh: update from automake.
100470 2004-01-05  Karl Berry  <karl@gnu.org>
100472         * config/config.{sub,guess}: update from config.
100474 2003-12-31  Karl Berry  <karl@gnu.org>
100476         * config/depcomp: update from automake.
100478 2003-12-14  Karl Berry  <karl@gnu.org>
100480         * lib/config.charset: update from gettext-runtime.
100482 2003-12-03  Paul Eggert  <eggert@twinsun.com>
100484         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
100485         Bug reported by Alfred M. Szmidt.
100487 2003-12-03  Bruno Haible  <bruno@clisp.org>
100489         * m4/gettext.m4: Upgrade from gettext-0.13.
100490         * m4/po.m4: Upgrade from gettext-0.13.
100491         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
100492         * m4/intmax.m4: New file, from gettext-0.13.
100493         * m4/printf-posix.m4: New file, from gettext-0.13.
100495 2003-11-29  Karl Berry  <karl@gnu.org>
100497         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
100499 2003-11-25  Paul Eggert  <eggert@twinsun.com>
100500             Bruno Haible  <bruno@clisp.org>
100502         * lib/printf-parse.h: Don't include sys/types.h.
100503         (ARG_NONE): New macro.
100504         (char_directive): Change type of *arg_index fields to size_t.
100505         * lib/printf-parse.c: Don't include sys/types.h.
100506         (SSIZE_MAX): Remove macro.
100507         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
100508         Remove unnecessary overflow check.
100509         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
100510         fields.
100512 2003-11-25  Bruno Haible  <bruno@clisp.org>
100514         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
100516 2003-11-25  Bruno Haible  <bruno@clisp.org>
100518         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
100519         gt_TYPE_SSIZE_T.
100521 2003-11-24  Paul Eggert  <eggert@twinsun.com>
100523         * modules/alloca: Remove dependency on xalloc.
100525 2003-11-24  Paul Eggert  <eggert@twinsun.com>
100527         * lib/alloca.c: Remove dependency on xalloc module.
100528         (xalloc_die): Remove.
100529         (memory_full) [!defined emacs]: New macro.
100530         [!defined emacs]: Don't include xalloc.h.
100531         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
100532         address arithmetic overflows.  Change datatypes a bit to avoid
100533         unnecessary casts.
100535 2003-11-22  Jim Meyering  <jim@meyering.net>
100537         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
100538         s/size/size_t/.
100540 2003-11-21  Karl Berry  <karl@gnu.org>
100542         * config/config.{sub,guess}: update from config.
100544 2003-11-18  Karl Berry  <karl@gnu.org>
100546         * config/config.{sub,guess}: update from config.
100548         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
100550 2003-11-17  Paul Eggert  <eggert@twinsun.com>
100552         * README: Mention that S+T cannot overflow if S is the size of
100553         an existing object and T is sufficiently small.
100555 2003-11-17  Jim Meyering  <jim@meyering.net>
100557         On systems without utime and without a utimes function capable of
100558         dealing with a NULL struct utimbuf* argument, this utime replacement
100559         could -- in unusual circumstances -- leak a file descriptor.
100560         * lib/utime.c: Include <unistd.h> and <errno.h>.
100561         (utime_null): Be sure to close `fd' and to preserve errno.
100562         Reported by Geoff Collyer via Arnold Robbins.
100564 2003-11-17  Bruno Haible  <bruno@clisp.org>
100566         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
100567         (Depends-on): Add xsize.
100569 2003-11-17  Bruno Haible  <bruno@clisp.org>
100571         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
100573 2003-11-17  Bruno Haible  <bruno@clisp.org>
100575         * lib/vasnprintf.c (alloca): Remove fallback definition.
100576         (freea): Remove definition.
100577         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
100578         Reported by Paul Eggert.
100580 2003-11-16  Paul Eggert  <eggert@twinsun.com>
100581             Bruno Haible  <bruno@clisp.org>
100583         Protect against address arithmetic overflow.
100584         * lib/printf-args.h: Include stddef.h.
100585         (arguments): Change type of field 'count' to size_t.
100586         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
100587         'unsigned int' where appropriate.
100588         * lib/printf-parse.h: Include sys/types.h.
100589         (char_directive): Change type of *arg_index fields to ssize_t.
100590         (char_directives): Change type of fields 'count', max_*_length to
100591         size_t.
100592         * lib/printf-parse.c: Include sys/types.h and xsize.h.
100593         (SSIZE_MAX): Define fallback value.
100594         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
100595         instead of 'int' where appropriate. Check a_allocated, d_allocated
100596         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
100597         * lib/vasnprintf.c: Include xsize.h.
100598         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
100599         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
100600         overflow. Avoid wraparound when converting a width or precision from
100601         decimal to binary.
100603 2003-11-16  Bruno Haible  <bruno@clisp.org>
100605         Update from GNU gettext.
100606         * lib/printf-parse.c: Generalize to it can be compiled for wide
100607         strings.
100608         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
100609         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
100610         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
100611         SNPRINTF): New macros.
100612         Don't include <alloca.h> if the file is used inside libintl.
100613         (local_wcslen): New function, for Solaris 2.5.1.
100614         (VASNPRINTF): Use it instead of wcslen.
100616 2003-11-16  Bruno Haible  <bruno@clisp.org>
100618         * lib/xsize.h (xmax): New function.
100619         (xsum, xsum3, xsum4): Declare as "pure" functions.
100621 2003-11-12  Paul Eggert  <eggert@twinsun.com>
100623         * modules/xalloc (Files): Undo latest change, since xalloc.h
100624         no longer needs SIZE_MAX or PTRDIFF_MAX.
100626 2003-11-12  Paul Eggert  <eggert@twinsun.com>
100628         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
100629         gl_PTRDIFF_MAX.
100631 2003-11-12  Paul Eggert  <eggert@twinsun.com>
100633         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
100634         "return", to pacify some unknown compiler.  Problem reported
100635         by Joerg Schilling.
100637 2003-11-12  Paul Eggert  <eggert@twinsun.com>
100639         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
100640         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
100641         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
100642         heuristic is just as accurate as far as we know, and it removes a
100643         dependency on size_max.m4 and ptrdiff_max.m4.
100645 2003-11-11  Bruno Haible  <bruno@clisp.org>
100647         * modules/xsize (Files): Add m4/size_max.m4.
100648         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
100650 2003-11-11  Bruno Haible  <bruno@clisp.org>
100652         * m4/size_max.m4: New file.
100653         * m4/ptrdiff_max.m4: New file.
100654         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
100655         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
100656         (gl_XALLOC): Invoke it.
100658 2003-11-11  Bruno Haible  <bruno@clisp.org>
100660         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
100661         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
100662         defined.
100664 2003-11-10  Paul Eggert  <eggert@twinsun.com>
100666         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
100667         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
100668         rejected some allocations of exactly SIZE_MAX - 2 bytes.
100669         From Bruno Haible.
100670         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
100671         not (size_t) -1, since it's defined here.
100673 2003-11-09  Karl Berry  <karl@gnu.org>
100675         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
100677 2003-11-06  Paul Eggert  <eggert@twinsun.com>
100679         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
100680         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
100681         Reject sizes of exactly SIZE_MAX bytes.
100682         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
100683         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
100685 2003-11-05  Bruno Haible  <bruno@clisp.org>
100687         * lib/xsize.h: Include limits.h, to avoid a possible collision with
100688         SIZE_MAX defined in <limits.h> on Solaris.
100690 2003-11-04  Jim Meyering  <jim@meyering.net>
100692         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
100693         variable names, rather than @VAR@.
100694         * modules/poll: Likewise.
100696 2003-11-04  Bruno Haible  <bruno@clisp.org>
100698         * modules/xsize: New file.
100699         * modules/linebreak: Depend on xsize.
100700         * MODULES.html.sh (func_all_modules): Add xsize.
100702 2003-11-04  Bruno Haible  <bruno@clisp.org>
100704         * m4/xsize.m4: New file.
100706 2003-11-04  Bruno Haible  <bruno@clisp.org>
100708         * lib/xsize.h: New file.
100709         * lib/linebreak.c: Include xsize.h.
100710         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
100711         argument for overflow.
100712         Suggested by Paul Eggert.
100714 2003-11-03  Karl Berry  <karl@gnu.org>
100716         * config/config.{guess,sub}: update from config.
100718 2003-11-03  Jim Meyering  <jim@meyering.net>
100720         * modules/userspec (lib_SOURCES): Add userspec.h.
100721         (Include): Add "userspec.h".
100722         Improve description.
100724 2003-11-03  Jim Meyering  <jim@meyering.net>
100726         * lib/userspec.c: Include "userspec.h".
100727         * lib/userspec.h: New file.
100729 2003-11-03  Bruno Haible  <bruno@clisp.org>
100731         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
100733 2003-11-03  Bruno Haible  <bruno@clisp.org>
100735         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
100736         available, to avoid (extremely rare) race condition.
100737         Suggested by Paul Eggert.
100739 2003-11-02  Karl Berry  <karl@gnu.org>
100741         * config/srclist.txt (vasprintf.c): sync broken, sigh.
100743 2003-10-31  Paul Eggert  <eggert@twinsun.com>
100745         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
100746         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
100747         (read_filesystem_list): Set and use me_type_malloced.
100748         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
100749         whatever the type happens to be), for brevity and consistency.
100750         Check for size calculation overflow on Alphas running OSF/1.
100752 2003-10-31  Jim Meyering  <jim@meyering.net>
100754         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
100756         * lib/linebuffer.c: Include <string.h> for declaration of memset.
100758 2003-10-30  Paul Eggert  <eggert@twinsun.com>
100759             Bruno Haible  <bruno@clisp.org>
100761         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
100762         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
100764 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
100766         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
100767         netbsd*-gnu*.  Suggested by Robert Millan.
100769 2003-10-29  Paul Eggert  <eggert@twinsun.com>
100771         * modules/group-member: Depend on stdbool.
100773 2003-10-29  Paul Eggert  <eggert@twinsun.com>
100775         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
100777 2003-10-29  Paul Eggert  <eggert@twinsun.com>
100779         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
100780         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
100781         after the 'gnu' in these cases.  This fixes some bugs in the
100782         previous change, and is based on suggestions by Robert Millan.
100784 2003-10-29  Paul Eggert  <eggert@twinsun.com>
100786         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
100787         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
100788         no longer needed.
100789         * lib/quotearg.c (quotearg_n_options): Use it.
100790         * lib/group-member.c: Include <stdbool.h>.
100791         (free_group_info): Arg is now const *; don't free arg.
100792         (get_group_info): Now returns bool and accepts struct group_info *,
100793         rather than returning a malloc'ed struct group_info *.
100794         All uses changed.  Check for overflow in internal size calculation.
100796         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
100797         rather than xmalloc/xrealloc.
100798         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
100799         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
100800         conformance bug: the old code used a pointer after freeing the
100801         storage that it addressed.
100802         * lib/hash.c (hash_initialize): Simplify the code by using
100803         xalloc_oversized rather than doing it by hand.
100804         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
100805         the buffer preserved.  Use free and xmalloc instead.
100806         * lib/quotearg.c (quotearg_n_options): Likewise.
100807         Use a simpler test for size overflow.  Don't use xalloc_oversized
100808         because unsigned int might be wider than size_t (!); this suggests
100809         that we should switch from unsigned int to size_t for slot numbers.
100811 2003-10-28  Paul Eggert  <eggert@twinsun.com>
100813         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
100814         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
100815         NetBSD kernels.  Requested by Richard Stallman.
100817 2003-10-27  Paul Eggert  <eggert@twinsun.com>
100819         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
100820         to allocate the returned structure.  Do not allocate a subarray,
100821         as x2nrealloc will do that.
100822         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
100823         instead of xnrealloc.
100824         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
100826 2003-10-27  Bruno Haible  <bruno@clisp.org>
100828         * lib/stdbool_.h: Better support for BeOS.
100830 2003-10-26  Paul Eggert  <eggert@twinsun.com>
100832         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
100833         now uses inline.
100835 2003-10-26  Paul Eggert  <eggert@twinsun.com>
100837         * lib/xalloc.h (xalloc_oversized): New static inline function, for
100838         callers that want to do their own size-overflow checking.  Include
100839         <stdbool.h>, since xalloc_oversized returns bool.
100840         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
100841         to use xalloc_oversized.
100843         Add two functions x2realloc, x2nrealloc, for programs that grow
100844         arrays dynamically by doubling their sizes.
100845         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
100846         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
100847         New functions.
100849         Port to C99 semantics for 'inline' of external functions.
100850         Bug reported by Bruno Haible.
100851         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
100852         with the old contents of xnmalloc.
100853         (xnmalloc, xmalloc): Use it.
100854         (xnrealloc_inline): New static inline function,
100855         with the old contents of xnrealloc.
100856         (xnrealloc, xrealloc): Use it.
100858         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
100859         that.
100861 2003-10-26  Karl Berry  <karl@gnu.org>
100863         * config/srclist.txt (COPYING.DOC): no longer available from
100864         /gd/gnuorg; don't know where the ultimate source is.
100866 2003-10-25  Paul Eggert  <eggert@twinsun.com>
100868         Fix several address-calculation bugs in the hash modules,
100869         plus some minor code cleanup.
100871         * lib/hash.h: Include <stdbool.h>, for bool.
100872         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
100873         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
100874         hash_get_n_entries, hash_get_max_bucket_length,
100875         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
100876         hash_rehash): Use size_t rather than unsigned.
100877         * lib/hash.c (struct hash_table, hash_get_n_buckets,
100878         hash_get_n_buckets_used, hash_get_n_entries,
100879         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
100880         hash_get_entries, hash_do_for_each, hash_string, is_prime,
100881         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
100882         Likewise.
100883         (SIZE_MAX): Define if not defined.
100884         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
100885         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
100886         hash_print):
100887         Use const * when possible.
100888         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
100889         (check_tuning): Fix bug: if tuning parameters were very close to
100890         0 or 1, rounding errors could have caused subscript violations.
100891         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
100892         (hash_initialize): Add 'fail:' label
100893         to free table and return NULL, and use it to simplify code.
100894         Use calloc rather than clearing the storage ourself.
100895         (hash_initialize, hash_rehash): Check for arithmetic overflow in
100896         buffer size calculations.
100897         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
100898         Include <stddef.h>, for size_t.
100899         * lib/hash-pjw.c (hash_pjw): Likewise.
100900         Switch to method described by Bruno Haible.
100901         Include <limits.h>, for CHAR_BIT.
100902         (SIZE_BITS): New macro.
100904 2003-10-23  Paul Eggert  <eggert@twinsun.com>
100906         * m4/getline.m4 (AM_FUNC_GETLINE):
100907         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
100908         hosts.  Problem reported by Derek Robert Price in
100909         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
100910         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
100911         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
100913 2003-10-21  Paul Eggert  <eggert@twinsun.com>
100915         * lib/getndelim2.c (getndelim2): When size calculation overflows,
100916         ceiling the allocation at NMAX bytes rather than silently
100917         discarding input bytes before NMAX is reached.  This makes
100918         a difference only if NMAX exceeds SIZE_MAX / 2.
100920         * lib/obstack.c: Merge from glibc.
100921         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
100922         Add libc_hidden_def (_obstack_newchunk).
100923         (_obstack_free) [! defined _LIBC]: Remove.
100924         [defined _LIBC]: Make a strong alias from obstack_free, rather than
100925         a clone of the function body.
100926         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
100927         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
100929         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
100930         glibc.
100931         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
100932         arg to memcpy.
100934         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
100935         (obstack_ptr_grow_fast, obstack_int_grow_fast):
100936         Don't use lvalue casts, as GCC plans to remove support for them
100937         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
100938         was also present in the non-GCC version, indicating that this
100939         code had always been buggy and had never been widely used.
100940         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
100941         Use the fast variant of each macro, rather than copying the
100942         definiens of the fast variant; that way, we'll be more likely to
100943         catch future bugs in the fast variants.
100945 2003-10-20  Bruno Haible  <bruno@clisp.org>
100947         * modules/wait-process: New file.
100948         * MODULES.html.sh (func_all_modules): Add wait-process.
100950 2003-10-20  Bruno Haible  <bruno@clisp.org>
100952         * m4/wait-process.m4: New file.
100954 2003-10-20  Bruno Haible  <bruno@clisp.org>
100956         * lib/wait-process.h: New file, from GNU gettext.
100957         * lib/wait-process.c: New file, from GNU gettext.
100959 2003-10-19  Jim Meyering  <jim@meyering.net>
100961         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
100962         HPUX 10.20.
100964 2003-10-18  Karl Berry  <karl@gnu.org>
100966         * config/config.guess: update from config.
100968 2003-10-16  Paul Eggert  <eggert@twinsun.com>
100970         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
100971         (getgroups): First arg is int, not size_t.
100972         Don't let 'free' mangle errno.
100974 2003-10-16  Paul Eggert  <eggert@twinsun.com>
100976         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
100978 2003-10-16  Karl Berry  <karl@gnu.org>
100980         * config/config.{guess,sub}: update from config.
100982 2003-10-16  Jim Meyering  <jim@meyering.net>
100984         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
100985         memcpy.
100987 2003-10-15  Paul Eggert  <eggert@twinsun.com>
100989         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
100990         (SIZE_MAX): Remove.
100991         (new_exclude, add_exclude_file): Initial size no longer needs to
100992         be a power of 2.
100993         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
100994         our own address arithmetic overflow checking.
100996         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
100997         (fnmatch): Do not alloca more than 2000 wide characters;
100998         instead, use malloc for large buffers.
100999         Check for address arithmetic overflow, and return -1
101000         with errno set to ENOMEM in that case.
101001         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
101002         (NEW_PATTERN): Do not alloca more than 8000 bytes;
101003         instead, return -1.  Check for address arithmetic overflow.
101005 2003-10-14  Paul Eggert  <eggert@twinsun.com>
101007         Handle invalid suffixes and overflow independently, so that
101008         callers can treat them independently as needed.  Fix some bugs in
101009         suffix handling, e.g., "100k@" was not diagnosed as an invalid
101010         suffix for a human-readable blocksize.  The major caller-visible
101011         change is the addition of a new
101012         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
101013         that both overflow and suffix chars were found.
101015         * lib/human.c (humblock): Don't check separately for invalid suffix
101016         char; that is xstrtoumax's job (now that its bug is fixed).
101017         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
101018         INTMAX_MAX]: New macros.
101019         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
101020         TYPE_MAXIMUM): New macros.
101021         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
101022         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
101023         if overflow occurs, as it's what __strtol does and it's more useful
101024         in practice.
101025         (__xstrtol): If __strtol reports some error other than ERANGE,
101026         reflect it to the caller as LONGINT_INVALID.  If it reports
101027         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
101028         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
101029         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
101030         value.
101031         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
101032         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
101033         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
101034         [defined UINTMAX_MAX]: New macros.
101036 2003-10-14  Bruno Haible  <bruno@clisp.org>
101038         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
101040 2003-10-14  Bruno Haible  <bruno@clisp.org>
101042         * m4/sig_atomic_t: New file, from GNU gettext.
101043         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
101045 2003-10-14  Bruno Haible  <bruno@clisp.org>
101047         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
101048         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
101049         Also use volatile where needed.
101051 2003-10-12  Paul Eggert  <eggert@twinsun.com>
101053         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
101054         Change maintainer from Bruno Haible to 'all'.
101056 2003-10-12  Paul Eggert  <eggert@twinsun.com>
101058         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
101060 2003-10-12  Paul Eggert  <eggert@twinsun.com>
101062         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
101063         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
101064         and define in terms of the other primitives.
101065         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
101066         (SIZE_MAX): Define if not already defined.
101067         (array_size_overflow): New function.
101068         (xalloc_die): Abort instead of exiting if 'error' returns.
101069         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
101070         (xmalloc, xrealloc): Use them.
101071         (xcalloc): Check for address arithmetic overflow.
101072         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
101073         a bit faster than strcpy.
101075 2003-10-10  Simon Josefsson  <jas@extundo.com>
101077         * modules/argp (Depends-on): Add restrict and strcase.
101079 2003-10-10  Simon Josefsson  <jas@extundo.com>
101081         * m4/argp.m4: Add AC_C_INLINE.
101083 2003-10-08  Paul Eggert  <eggert@twinsun.com>
101085         Merge getpass from libc, plus a few fixes.
101087         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
101088         Include <stdbool.h>.
101089         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
101090         __fsetlocking to empty.
101091         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
101092         do include <bits/libc-lock.h>.
101093         Do not include <fcntl.h>; not needed.
101094         [_LIBC]: Include <wchar.h>.
101095         (NOTCANCEL_MODE): New macro.
101096         (flockfile, funlockfile) [_LIBC]: New macros.
101097         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
101098         [!_LIBC]: New macros.
101099         (call_fclose): New function.
101100         (getpass): Use it.  Save tty stream separately; this simplifies the
101101         code and makes it more reliable if stdin happens to equal stdout.
101102         Invoke __fsetlocking on tty.
101103         Handle thread cancellation if needed.
101104         Namespace cleanup (use __tcgetattr, __getline).
101105         Use bool for Booleans.
101106         [USE_IN_LIBIO]: Handle wide streams.
101107         [!_LIBC]: Unconditionally do the fseek, since we don't know what
101108         stream might go where.
101110         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
101111         doesn't have to include <stdio.h> before us.
101112         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
101113         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
101114         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
101115         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
101116         if not declared, so that we can use getpass.c code from libc without
101117         rewriting it.
101118         (flockfile, ftrylockfile, funlockfile): New macros.
101120 2003-10-08  Paul Eggert  <eggert@twinsun.com>
101122         * modules/getpass: Depend on stdbool.
101124 2003-10-08  Paul Eggert  <eggert@twinsun.com>
101126         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
101128 2003-10-07  Karl Berry  <karl@gnu.org>
101130         * config/config.{guess,sub}: update from config.
101132 2003-10-06  Jim Meyering  <jim@meyering.net>
101133             Bruno Haible  <bruno@clisp.org>
101135         This lets translators provide better translations for the
101136         "Written by ..." part of --version output.
101137         * lib/version-etc.h: Include stdarg.h.
101138         (version_etc_copyright): Declare as readonly.
101139         (version_etc): Make this function variadic with a NULL-terminated list
101140         of author name strings.
101141         (version_etc_va): New declaration.
101142         * lib/version-etc.c: Include stdarg.h, stdlib.h.
101143         (version_etc_copyright): Declare as readonly.
101144         (version_etc_va): New function. Provide a different translatable string
101145         for each possible number of authors < 10. Abbreviate when there are 10
101146         authors or more.
101147         (version_etc): Make this function variadic. Call version_etc_va.
101148         Suggestion from Gary V. Vaughan.
101150         * lib/long-options.h (parse_long_options): Change prototype: the
101151         authors string is moved to the end and becomes variadic.
101152         * lib/long-options.c: Include stdarg.h.
101153         (parse_long_options): Make this function variadic, too.
101154         Call version_etc_va, not version_etc.
101156 2003-10-06  Bruno Haible  <bruno@clisp.org>
101158         * modules/version-etc-2: Remove file.
101159         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
101161 2003-10-06  Bruno Haible  <bruno@clisp.org>
101163         * modules/fatal-signal: New file.
101164         * MODULES.html.sh (func_all_modules): Add fatal-signal.
101166 2003-10-06  Bruno Haible  <bruno@clisp.org>
101168         * m4/fatal-signal.m4: New file.
101169         * m4/signalblocking.m4: New file, from GNU gettext.
101171 2003-10-06  Bruno Haible  <bruno@clisp.org>
101173         * lib/version-etc-2.h: Remove file.
101174         * lib/version-etc-2.c: Remove file.
101176 2003-10-06  Bruno Haible  <bruno@clisp.org>
101178         * lib/fatal-signal.h: New file, from GNU gettext.
101179         * lib/fatal-signal.c: New file, from GNU gettext.
101181 2003-10-05  Paul Eggert  <eggert@twinsun.com>
101183         * README: Rework advice for preventing empty .o files.
101184         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
101185         not <sys/types.h>.
101187 2003-10-04  Karl Berry  <karl@gnu.org>
101189         * lib/argp*: update from libc.
101191 2003-10-04  Karl Berry  <karl@gnu.org>
101193         * config/config.{guess,sub}: update from config.
101195 2003-10-02  Bruno Haible  <bruno@clisp.org>
101197         * modules/lchown (Include): Add lchown.h.
101198         * modules/time_r (Include): Use "..." syntax.
101199         * modules/xgetdomainname (Include): Add xgetdomainname.h.
101201 2003-10-01  Simon Josefsson  <jas@extundo.com>
101203         * MODULES.html.sh (func_all_modules): Move gethostname from section
101204         'based on' to section 'lacking' POSIX:2001.
101206 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
101208         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
101209         to output mode on the same stream.
101211 2003-09-29  Paul Eggert  <eggert@twinsun.com>
101213         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
101214         Fix arg typo in previous patch.
101216 2003-09-28  Jim Meyering  <jim@meyering.net>
101218         * lib/error.c: Correct cpp indentation.
101220 2003-09-27  Paul Eggert  <eggert@twinsun.com>
101222         * modules/free: New file.
101224 2003-09-27  Paul Eggert  <eggert@twinsun.com>
101226         * m4/free.m4: New file.
101228 2003-09-27  Paul Eggert  <eggert@twinsun.com>
101230         * lib/minmax.h (MIN, MAX)
101231         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
101232         Omit the special code that used __typeof__, since we worry that
101233         it could be more trouble than it's worth.  See:
101234         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
101235         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
101237         * lib/free.c: New file.
101239 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
101241         Trivial fixes to Makefile.am parts of module listings.
101242         * modules/strstr: Append strstr.h to lib_SOURCES.
101243         * modules/strcase: Likewise, for strcase.h.
101245 2003-09-27  Karl Berry  <karl@gnu.org>
101247         * config/mkinstalldirs: update from automake.
101249 2003-09-26  Paul Eggert  <eggert@twinsun.com>
101251         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
101252         (error_tail): Do not loop, reallocating temporary buffer, since
101253         the output cannot contain more wide characters than the input
101254         contains bytes, the size must be big enough already.  This avoids
101255         one potential size overflow calculation.  Check for size overflow
101256         when calculating temporary buffer size.  Free temporary buffer
101257         when done, if it was allocated with malloc; this plugs a memory
101258         leak.  Remove casts from void * to pointers, that are no longer
101259         needed now that we're assuming C89 or better.
101261         Merge error changes from glibc.
101263         * lib/error.c, error.h: Update copyright notice header to match glibc.
101264         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
101265         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
101266         Disable cancellation while printing error.
101267         * lib/error.h: Prepend __ to parameter names.
101269 2003-09-26  Jim Meyering  <jim@meyering.net>
101271         * lib/error.c (error_tail): Move some declarations
101272         into inner scope where the local variables are used.
101274 2003-09-26  Bruno Haible  <bruno@clisp.org>
101276         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
101277         stpncpy().
101278         Don't define stpncpy through config.h; it's now done through stpncpy.h.
101280 2003-09-26  Bruno Haible  <bruno@clisp.org>
101282         * lib/stpncpy.h (gnu_stpncpy): New declaration.
101283         (stpncpy): Define as alias for gnu_stpncpy.
101284         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
101286 2003-09-25  Simon Josefsson  <jas@extundo.com>
101288         * lib/xgetdomainname.h: New file.
101289         * lib/xgetdomainname.c: New file.
101291 2003-09-25  Simon Josefsson  <jas@extundo.com>
101292             Bruno Haible  <bruno@clisp.org>
101294         * modules/getdomainname: New file.
101295         * modules/xgetdomainname: New file.
101296         * MODULES.html.sh (func_all_modules): Add getdomainname,
101297         xgetdomainname.
101299 2003-09-25  Simon Josefsson  <jas@extundo.com>
101300             Bruno Haible  <bruno@clisp.org>
101302         * m4/getdomainname.m4: New file.
101304 2003-09-25  Simon Josefsson  <jas@extundo.com>
101305             Bruno Haible  <bruno@clisp.org>
101307         * lib/getdomainname.h: New file.
101308         * lib/getdomainname.c: New file.
101310 2003-09-25  Karl Berry  <karl@gnu.org>
101312         * lib/argp-fmtstream.c, argp-help.c: update from libc.
101314 2003-09-25  Karl Berry  <karl@gnu.org>
101316         * config/install-sh: update from automake.
101318 2003-09-25  Bruno Haible  <bruno@clisp.org>
101320         * modules/version-etc-2: New file, from modules/version-etc with
101321         modifications.
101322         * MODULES.html.sh (func_all_modules): Add version-etc-2.
101324 2003-09-25  Bruno Haible  <bruno@clisp.org>
101326         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
101327         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
101329 2003-09-24  Simon Josefsson  <jas@extundo.com>
101331         * modules/xgethostname: Add xgethostname.h.
101333 2003-09-24  Paul Eggert  <eggert@twinsun.com>
101335         * lib/linebuffer.c (freebuffer): Don't free the argument, just
101336         the buffer associated with the argument.  Bug reported by
101337         Simon Josefsson.
101339 2003-09-24  Paul Eggert  <eggert@twinsun.com>
101341         * README: Document assumptions that 'int' is at least 32 bits
101342         wide, that integer arithmetic is 2's complement without overflow,
101343         that there are no holes in integer values, that adding sizes of
101344         two nonoverlapping objects can't overflow, and that all-bits-zero
101345         yields scalar zero.  Fix spelling and capitalization typos.
101347 2003-09-19  Karl Berry  <karl@gnu.org>
101349         * lib/argp.h: update from libc.
101351 2003-09-17  Paul Eggert  <eggert@twinsun.com>
101353         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
101354         to avoid spurious warnings like "AC_RUN_IFELSE was called before
101355         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
101357 2003-09-17  Paul Eggert  <eggert@twinsun.com>
101359         * gnulib-tool: Use "test -h", not "test -L", for portability
101360         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
101361         (tags_regexp): Remove, since \| doesn't conform to POSIX.
101362         (sed_extract_prog): Issue s commands one-by-one, rather than
101363         using \| in one s command.
101365 2003-09-16  Paul Eggert  <eggert@twinsun.com>
101367         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
101368         input error, instead of returning NULL the next time we are called
101369         (and therefore losing track of errno).
101371 2003-09-16  Bruno Haible  <bruno@clisp.org>
101373         * gnulib-tool (func_create_testdir): Warn about duplicated
101374         dependencies.
101376 2003-09-15  Paul Eggert  <eggert@twinsun.com>
101378         * modules/argmatch, modules/fatal, modules/obstack,
101379         modules/xalloc, modules/xgethostname: Sort dependencies by
101380         importance, not alphabetically.
101382 2003-09-15  Paul Eggert  <eggert@twinsun.com>
101384         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
101385         fails, so that the caller gets the proper errno.
101387         * lib/readutmp.c (read_utmp): Likewise.
101388         Check for fstat error.  Close stream and free storage
101389         when failing.
101391 2003-09-14  Karl Berry  <karl@gnu.org>
101393         * config/srclist.txt (strdup.c): disable for c89 changes.
101395 2003-09-14  Jim Meyering  <jim@meyering.net>
101397         * lib/getloadavg.c: Correct cpp indentation.
101398         * lib/strdup.c: Likewise.
101399         * lib/vasnprintf.c: Likewise.
101401 2003-09-14  Bruno Haible  <bruno@clisp.org>
101403         * modules/fwriteerror: New file.
101404         * MODULES.html.sh (func_all_modules): Add fwriteerror.
101406 2003-09-14  Bruno Haible  <bruno@clisp.org>
101408         * lib/fwriteerror.h: New file.
101409         * lib/fwriteerror.c: New file.
101411 2003-09-12  Paul Eggert  <eggert@twinsun.com>
101413         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
101414         modules/xgethostname, modules/xalloc: Depend on exit.
101416 2003-09-12  Paul Eggert  <eggert@twinsun.com>
101418         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
101420         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
101421         and AC_MINIX, too, so that their extensions are available.
101423         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
101424         This macro has been superseded by gl_BACKUPFILE.
101426         More patches to assume C89 or better.
101428         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
101430         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
101431         unconditionally.
101432         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
101433         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
101434         Include <string.h>, <stdlib.h> unconditionally.
101435         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
101436         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
101437         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
101438         headers or for string.h.
101439         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
101440         or strtoul.
101442         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
101443         headers.
101444         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
101445         * m4/userspec.m4 (gl_USERSPEC): Likewise.
101446         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
101447         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
101448         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
101449         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
101450         memcpy, memset.
101451         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
101452         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
101453         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
101454         strtol.
101455         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
101456         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
101457         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
101458         strtoul.
101460 2003-09-12  Paul Eggert  <eggert@twinsun.com>
101462         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
101463         * lib/obstack.c [!defined _LIBC]: Likewise.
101464         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
101465         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
101466         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
101468         More changes to assume C89 or better.
101470         * lib/error.c (error_tail): Assume vprintf.
101472         * lib/argmatch.c (getenv): Remove decl.
101473         * lib/progreloc.c (get_full_program_name): Define via prototype.
101474         * lib/setenv.c (clearenv): Likewise.
101475         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
101476         needed.
101477         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
101478         (malloc, memcpy): Remove decls.
101479         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
101480         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
101481         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
101482         (memcpy): Remove macro.
101483         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
101484         (__P): Remove.  All uses removed.
101485         (PTR): Remove.  All uses changed to void *.
101486         (CHAR_BIT, NULL): Remove.
101487         (spaces, zeros, memset_space, memset_zero)
101488         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
101489         Remove.
101490         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
101491         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
101492         Define with prototype.
101493         Remove now-unnecessary prototype decl.
101494         (extra_args_spec): Assume ANSI C.  All uses changed.
101495         (extra_args_spec_iso): Remove.
101496         (my_strftime, emacs_strftimeu): Define via prototype.
101497         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
101498         unconditionally.
101499         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
101500         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
101501         (strtoul, strtol): Remove decls.
101502         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
101503         LONG_MAX): Remove.
101504         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
101505         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
101506         (LOCALE_PARAM_PROTO): New macro.
101507         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
101508         (INTERNAL (strtol), strtol): Define with a prototype.
101509         (PARAMS): Remove.  All uses removed.
101510         * lib/tempname.c: Include <string.h> unconditionally.
101511         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
101512         * lib/xgethostname.c (main): Define with a prototype.
101513         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
101514         Include <stdlib.h> unconditionally.
101515         (calloc, malloc, realloc, free): Remove decls.
101516         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
101517         Include <stdlib.h> unconditionally.  Sort include file names.
101518         (strtod): Remove.
101519         (xstrtod): Define with a prototype.
101520         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
101521         (strtol, strtoul): Remove decls.
101523 2003-09-11  Paul Eggert  <eggert@twinsun.com>
101525         More patches to assume C89 or better.
101526         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
101527         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
101528         string.h, memchr, STDC_HEADERS.
101530 2003-09-11  Paul Eggert  <eggert@twinsun.com>
101532         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
101533         Include <stdlib.h>, <string.h> unconditionally.
101534         Remove now-unnecessary cast to char *.
101535         * lib/strnlen.c: Include <string.h> unconditionally.
101536         * lib/yesno.c (yesno): Define with a prototype.
101538 2003-09-11  Bruno Haible  <bruno@clisp.org>
101540         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
101542 2003-09-10  Jim Meyering  <jim@meyering.net>
101544         * lib/error.c: Correct indentation of cpp directives.
101546 2003-09-10  Bruno Haible  <bruno@clisp.org>
101548         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
101549         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
101550         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
101551         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
101552         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
101553         <stdlib.h> and <string.h> checks.
101554         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
101555         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
101557 2003-09-10  Bruno Haible  <bruno@clisp.org>
101559         * lib/strcspn.c: Include <string.h> unconditionally.
101560         * lib/strpbrk.c: Include <string.h> unconditionally.
101561         * lib/strstr.c: Include <string.h> unconditionally.
101562         * lib/unicodeio.c: Include <string.h> unconditionally.
101563         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
101564         * lib/unsetenv.c: Likewise.
101565         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
101566         * lib/yesno.c: Include <stdlib.h> unconditionally.
101567         (rpmatch): Add prototype.
101569 2003-09-09  Paul Eggert  <eggert@twinsun.com>
101571         More patches to assume C89 or better.
101572         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
101573         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
101574         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
101575         or for string.h.
101576         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
101577         stdlib.h.
101578         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
101579         C headers.
101580         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
101581         string.h.
101582         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
101583         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
101584         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
101585         or for string.h.
101586         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
101587         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
101588         C headers.
101589         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
101590         memcpy.
101591         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
101592         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
101593         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
101594         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
101595         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
101596         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
101597         string.h, free.
101598         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
101599         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
101600         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
101601         C headers, or for string.h.
101602         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
101603         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
101604         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
101605         headers, memory.h, stdlib.h, string.h, strings.h.
101606         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
101607         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
101608         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
101609         strchr.
101610         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
101611         headers, memory.h, string.h.
101612         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
101613         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
101614         free.
101615         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
101616         headers.
101617         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
101618         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
101619         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
101620         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
101621         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
101623 2003-09-09  Paul Eggert  <eggert@twinsun.com>
101625         More K&R removal.
101627         * lib/acosl.c (main): Use a prototype.
101628         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
101629         tanl.c: Likewise.
101631         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
101633         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
101634         (getopt, etopt_long, getopt_long_only, _getopt_internal)
101635         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
101636         with a prototype.
101637         * lib/getopt.c (const): Remove macro.
101638         Include <string.h> unconditionally.
101639         (my_index): Remove; all uses changed to strchr.
101640         (strlen): Remove decl.
101641         (exchange): Remove forward decl; no longer needed.
101642         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
101643         Define with prototype.
101644         * lib/getopt1.c (const): Remove macro.
101645         (getopt_long, getopt_long_only, main): Define with prototype.
101647         * lib/getugroups.c: Include <string.h> unconditionally.
101649         * lib/getusershell.c: Include <stdlib.h> unconditionally.
101650         (getusershell, setusershell, endusershell, readname, main):
101651         Define with prototypes.
101653         * lib/group-member.c: Include group-member.h first.
101654         Include <stdlib.h> unconditionally.
101656         * lib/hard-locale.c: Include hard-locale.h first.
101657         Include <stdlib.h>, <string.h> unconditionally.
101659         * lib/hash.c (free, malloc): Remove decls.
101660         Include <stdlib.h> unconditionally.
101662         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
101663         (getenv): Do not declare.
101665         * lib/idcache.c: Include <string.h> unconditionally.
101667         * lib/long-options.c: Include long-options.h first, to test interface.
101668         Include <stdlib.h> unconditionally.
101670         * lib/makepath.c: Include makepath.h first, to test interface.
101671         Include <stdlib.h> and <string.h> unconditionally.
101673         * lib/linebuffer.c: Include <stdlib.h>.
101674         (free): Remove decl.
101676         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
101677         stddef.h. rpl_malloc returns void *, not char *.
101678         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
101679         prototype.
101681         * lib/md5.h: Include <limits.h> unconditionally.
101682         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
101683         (__P): Remove; all uses removed.
101684         * lib/md5.c: Include "md5.h" first.
101685         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
101686         md5_buffer, md5_process_bytes, md5_process_block):
101687         Define with prototypes.
101688         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
101689         * lib/sha.c: Include "sha.h" first.
101690         Include <stdlib.h>, <string.h> unconditionally.
101692         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
101693         * lib/memcmp.c (__ptr_t): Likewise.
101694         * lib/memrchr.c (__ptr_t): Likewise.
101695         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
101696         Include <string.h> unconditionally.
101697         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
101698         * lib/memchr.c: Include <stdlib.h> unconditionally.
101699         * lib/memchr.c (LONG_MAX): Remove.
101700         * lib/memrchr.c (LONG_MAX): Likewise.
101701         * lib/memchr.c (__memchr): Define via a prototype.
101702         * lib/memrchr.c (__memrchr): Likewise.
101703         * lib/memcmp.c (__P): Remove, and remove all uses.
101704         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
101705         Remove forward decls; no longer needed.
101706         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
101707         Use types required by C89 in prototype.
101709         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
101710         * lib/savedir.c: Likewise.
101711         * lib/mkdir.c (free): Remove decl.
101712         * lib/rmdir.c (rmdir): Define with a prototype.
101713         * lib/savedir.c: Include savedir.h first, to test interface.
101715         * lib/mktime.c (STDC_HEADERS): Remove.
101716         Include <stdlib.h>, <string.h> unconditionally.
101718         * lib/modechange.c: Include <stdlib.h> unconditionally.
101719         (malloc): Remove decl.
101721         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
101722         (free): Remove decl.
101724         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
101725         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
101726         (This type really should be intptr_t, but that's a C99ism.)
101727         (_obstack_memcpy): Remove: all uses changed to memcpy.
101728         Include <string.h> unconditionally.
101729         (struct obstack): Assume __STDC__ for types of members
101730         chunkfun, freefun, extra_arg.
101731         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
101732         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
101733         obstack_begin, obstack_specify_allocation,
101734         obstack_specify_allocation_with_arg, obstack_chunkfun,
101735         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
101736         Remove unprototyped decls and the macros that use them.
101737         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
101738         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
101739         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
101740         (defined __STDC__ && __STDC__)]:
101741         Remove nonprototyped code.
101742         Include <stdlib.h> unconditionally.
101743         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
101744         _obstack_allocated_p, _obstack_free, obstack_free,
101745         _obstack_memory_used, print_and_abort):
101746         Define using prototypes.
101747         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
101748         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
101749         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
101750         obstack_next_free, obstack_object_size, obstack_room) [0]:
101751         Remove unused, unprototyped code.
101753         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
101755         * lib/physmem.c (physmem_total, physmem_available, main): Define
101756         with prototypes.
101758         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
101759         (main): Define with a prototype.
101761         * lib/posixver.c (getenv): Remove decl.
101763         * lib/putenv.c (malloc): Returns void *, not char *.
101764         Include <string.h> unconditionally.
101765         (strchr, memcpy, NULL): Do not define.
101767         * lib/readtokens.c: Include readtokens.h first, to test interface.
101768         Include <stdlib.h>, <string.h> unconditionally.
101769         (init_tokenbuffer): Define with a prototype.
101771         * lib/regex.c (PARAMS): Remove.  All uses removed.
101772         All uses of _RE_ARGS removed, too.
101773         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
101774         unconditionally.
101775         (bzero): Assume memset exists.
101776         (memcmp, memcpy, NULL): Remove.
101777         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
101778         char, or assignments to local vars of type signed char.
101779         (init_syntax_once, PREFIX(extract_number_and_incr),
101780         PREFIX(print_partial_compiled_pattern),
101781         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
101782         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
101783         PREFIX(regex_grow_registers), PREFIX(regex_compile),
101784         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
101785         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
101786         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
101787         wcs_compile_range, byte_compile_range, truncate_wchar,
101788         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
101789         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
101790         count_mbs_length, wcs_re_match_2_internal,
101791         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
101792         PREFIX(alt_match_null_string_p),
101793         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
101794         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
101795         regfree, PREFIX(extract_number)): Define with prototype.  Remove
101796         now-unnecessary declaration, if any.
101797         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
101798         regcomp, regexec):
101799         Remove now-unnecessary casts among pointer types.
101800         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
101802         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
101803         (free): Remove decl.
101805         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
101807         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
101808         (free): Remove decl.
101810         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
101811         * lib/xgetcwd.c: Likewise.
101813         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
101814         (free): Remove decl.
101816         * lib/strchrnul.c (strchrnul): Define with a prototype.
101817         Fix bug: c_in was not converted to char before searching.
101819         The following changes are not K&R related:
101821         * lib/group-member.h: Include <sys/types.h>, so that this file is
101822         self-contained.
101823         * lib/makepath.h: Likewise.
101825         * lib/getusershell.c (readname, default_index, line_size, readname):
101826         Use size_t, not int, for sizes.
101827         (readname): If the size overflows, report an error instead of
101828         looping forever.
101830 2003-09-09  Paul Eggert  <eggert@twinsun.com>
101832         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
101833         libc.
101835 2003-09-09  Paul Eggert  <eggert@twinsun.com>
101837         * README: New section: portability guidelines.
101839 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
101841         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
101842         C89 spec.
101844 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
101846         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
101848 2003-09-08  Paul Eggert  <eggert@twinsun.com>
101850         Assume C89 or better; remove K&R cruft.
101851         A few of these changes were first proposed by Derek Robert Price
101852         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
101854         * lib/addext.c: Include <string.h> unconditionally.
101855         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
101856         Don't declare getenv or malloc.
101858         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
101859         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
101860         (NULL): Remove.
101861         (find_stack_direction, alloca): Use prototypes.
101863         * lib/atexit.c (atexit): Define using a prototype.
101865         * lib/basename.c, dirname.c, stripslash.c:
101866         Include <string.h> unconditionally.
101868         * lib/bcopy.c: Include <stddef.h>.
101869         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
101871         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
101873         * lib/error.h (error, error_at_line, error_print_progname)
101874         [! (defined (__STDC__) && __STDC__)]: Remove decls.
101875         * lib/error.c: Include error.h first, to check interface.
101876         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
101877         (VA_START): Remove; all uses changeed to va_start.
101878         (exit, strerror): Remove decls.
101879         (error_print_progname): Prototype uncondionally.
101880         Don't include <errno.h>; no longer needed.
101881         (private_strerror): Remove.
101882         (error_tail): Always define.
101883         (error, error_at_line): Assume C89 or better; always use prototypes.
101884         * lib/fatal.c: Include "fatal.h" first, to test interface.
101885         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
101886         (VA_START): Remove; all uses changed to va_start.
101887         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
101888         this case.
101889         (exit): Remove decl.
101890         (fatal): Prototype unconditionally.  Assume va_start works.
101891         Abort at end, to pacify gcc.
101893         * lib/euidaccess.c (main): Define with a prototype.
101895         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
101897         * lib/exitfail.c: Include <stdlib.h> unconditionally.
101899         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
101900         prototypes.
101901         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
101902         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
101903         (getenv): Remove decl.
101904         (fnmatch): Define using a prototype.
101905         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
101906         (FCT): Define using a prototype.
101908         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
101910         * lib/gethostname.c: Include <stddef.h>.
101911         (gethostname): Define with prototype.  Length is size_t, not int.
101913 2003-09-08  Paul Eggert  <eggert@twinsun.com>
101915         Assume C89 or better; remove K&R cruft.
101916         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
101917         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
101918         string.h, getenv, malloc.
101919         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
101920         headers.
101921         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
101922         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
101923         do not check for strerror.
101924         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
101925         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
101926         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
101927         do not check for doprnt or vprintf.
101928         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
101929         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
101931 2003-09-08  Paul Eggert  <eggert@twinsun.com>
101933         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
101934         getversion.c should have been removed then, but was accidentally
101935         preserved.
101937         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
101938         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
101940 2003-09-08  Karl Berry  <karl@gnu.org>
101942         * config/config.sub, config.guess, srclistvars.sh: update from savannah
101943                 config, forget about prep.
101945         * config/depcomp, missing: update from automake.
101947 2003-09-07  Paul Eggert  <eggert@twinsun.com>
101949         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
101950         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
101952 2003-09-07  Paul Eggert  <eggert@twinsun.com>
101954         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
101955         copy_tm_result.  Bug reported by Simon Josefsson in
101956         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
101958 2003-09-06  Paul Eggert  <eggert@twinsun.com>
101960         * m4/time_r.m4: New file.
101961         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
101962         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
101963         is. Check for timegm declaration.
101964         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
101965         Do not check for gmtime_r.
101966         Replace mktime if __mktime_internal does not exist and if mktime
101967         hasn't been replaced already.
101969 2003-09-06  Paul Eggert  <eggert@twinsun.com>
101971         * lib/time_r.c, lib/time_r.h: New files.
101973         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
101974         __localtime_r.
101975         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
101976         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
101978         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
101979         __gmtime_r.
101980         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
101981         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
101982         Include <time_r.h>.
101984         * lib/timegm.c: Switch to glibc implementation, with the following
101985         changes:
101986         [defined HAVE_CONFIG_H]: Include <config.h>.
101987         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
101988         (__mktime_internal) [!defined _LIBC]: New decl.
101989         (__gmtime_r) [!defined _LIBC]: New macro and function.
101990         (timegm): Use a prototype, since gnulib assumes C89.
101991         Do not bother declaring tmp to be const, as it's not really usefu.
101992         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
101993         (timegm): Declare only if HAVE_DECL_TIMEGM.
101995 2003-09-06  Paul Eggert  <eggert@twinsun.com>
101997         * MODULES.html.sh (func_all_modules): Add time_r.
101998         * modules/time_r: New file.
101999         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
102000         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
102002 2003-09-03  Paul Eggert  <eggert@twinsun.com>
102004         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
102005         Bug reported by Lute Kamstra in
102006         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
102008         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
102009         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
102010         course with correspondingly smaller numbers for tomorrow and
102011         yesterday.  From Tadayoshi Funaba.  Originally installed into
102012         sh-utils on 1999-08-07, but the patch got lost (I guess during the
102013         coreutils merge?).
102015 2003-08-31  Simon Josefsson  <jas@extundo.com>
102017         * modules/timegm: New file.
102018         * MODULES.html.sh (func_all_modules): Add timegm.
102020 2003-08-31  Simon Josefsson  <jas@extundo.com>
102022         * m4/timegm.m4: New file.
102024 2003-08-31  Simon Josefsson  <jas@extundo.com>
102026         * lib/timegm.h: New file.
102027         * lib/timegm.c: New file.  Based on
102028         wget-1.8.2/src/http.c:mktime_from_utc.
102030 2003-08-31  Karl Berry  <karl@gnu.org>
102032         * lib/argp.h: update from libc.
102034 2003-08-28  Bruno Haible  <bruno@clisp.org>
102036         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
102037         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
102038         followed by '#define fnmatch fnmatch_posix' gives an error.
102040 2003-08-28  Bruno Haible  <bruno@clisp.org>
102042         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
102043         warning on QNX, which defines O_BINARY to 000000.
102045 2003-08-27  Jim Meyering  <jim@meyering.net>
102047         * m4/mkstemp.m4: Require that the system mkstemp be able to create
102048         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
102049         would fail after 32.  Reported by Danny Levinson.  Details here:
102050         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
102052 2003-08-24  Bruno Haible  <bruno@clisp.org>
102054         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
102055         MSVC7 <stdio.h> is included later.
102057 2003-08-22  Simon Josefsson  <jas@extundo.com>
102059         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
102061 2003-08-20  Karl Berry  <karl@gnu.org>
102063         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
102065 2003-08-20  Bruno Haible  <bruno@clisp.org>
102067         * modules/progname: New file.
102068         * MODULES.html.sh (func_all_modules): Add progname.
102070 2003-08-20  Bruno Haible  <bruno@clisp.org>
102072         * lib/progname.h: New file, from GNU gettext.
102073         * lib/progname.c: New file, from GNU gettext.
102074         * lib/progreloc.c: New file, from GNU gettext.
102076 2003-08-19  Jim Meyering  <jim@meyering.net>
102078         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
102079         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
102081 2003-08-19  Bruno Haible  <bruno@clisp.org>
102083         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
102084         more.
102086 2003-08-19  Bruno Haible  <bruno@clisp.org>
102088         * lib/xstrdup.c: Assume <string.h> exists.
102090 2003-08-18  Paul Eggert  <eggert@twinsun.com>
102092         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
102093         in makefile rules.
102095 2003-08-18  Jim Meyering  <jim@meyering.net>
102097         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
102098         * m4/lib-ld.m4: Likewise.
102100 2003-08-18  Jim Meyering  <jim@meyering.net>
102102         * lib/setenv.h: Indent nested cpp directive.
102103         * lib/vasnprintf.c: Remove trailing blanks.
102105 2003-08-17  Simon Josefsson  <jas@extundo.com>
102107         * modules/xstrndup: New file.
102108         * MODULES.html.sh (func_all_modules): Add xstrndup.
102110 2003-08-17  Simon Josefsson  <jas@extundo.com>
102112         * modules/argp: Fix autoconf macro name. Add more dependencies.
102114 2003-08-17  Simon Josefsson  <jas@extundo.com>
102116         * m4/xstrndup.m4: New file.
102118 2003-08-17  Simon Josefsson  <jas@extundo.com>
102120         * m4/argp.m4: New file.
102122 2003-08-17  Simon Josefsson  <jas@extundo.com>
102123             Bruno Haible  <bruno@clisp.org>
102125         * lib/xstrndup.h: New file.
102126         * lib/xstrndup.c: New file.
102128 2003-08-17  Bruno Haible  <bruno@clisp.org>
102130         * modules/strndup (Files, Include): Add lib/strndup.h.
102132 2003-08-17  Bruno Haible  <bruno@clisp.org>
102134         * modules/euidaccess (Files): Add lib/euidaccess.h.
102136 2003-08-17  Bruno Haible  <bruno@clisp.org>
102138         * lib/strndup.h: New file.
102140 2003-08-17  Bruno Haible  <bruno@clisp.org>
102142         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
102143         like AC_GNU_SOURCE.
102144         * modules/extensions (configure.ac): Comment out the invocation of
102145         gl_USE_SYSTEM_EXTENSIONS.
102147 2003-08-16  Paul Eggert  <eggert@twinsun.com>
102149         Merges from coreutils, etc.
102150         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
102151         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
102152         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
102153         fixing a typo.
102154         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
102155         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
102157 2003-08-16  Paul Eggert  <eggert@twinsun.com>
102159         Document merge from coreutils.
102160         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
102161         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
102162         * modules/utime: Add m4/utimes-null.m4.
102164 2003-08-16  Paul Eggert  <eggert@twinsun.com>
102166         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
102167         space, undoing this 2003-08-12 change:
102168         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
102170 2003-08-16  Paul Eggert  <eggert@twinsun.com>
102172         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
102173         strtoul.c from libc, undoing this 2003-08-12 change:
102174         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
102176 2003-08-16  Jim Meyering  <jim@meyering.net>
102178         Merges from coreutils.
102179         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
102180         prefix.  Adjust cache variables similarly.  Create 500 rather than
102181         just 300 files, to exercise bug on Darwin6.5, too.
102182         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
102183         $missing_dir.
102184         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
102185         AM_SYS_POSIX_TERMIOS.
102186         Reported by mkc@mathdogs.com.
102187         Also change use of $am_cv_sys_posix_termios
102188         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
102189         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
102190         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
102191         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
102192         in /proc/mounts until it finds one with matching device number.  This
102193         is unnecessary when the FILE argument *is* a mount point.  No stat call
102194         is necessary in that case.  So, disable the statvfs-testing code on
102195         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
102196         as RedHat bug# 84846.
102197         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
102198         to 1MB, so as not to render systems with no stack size limit (e.g.,
102199         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
102200         Include <unistd.h>.  On some systems,
102201         it is required for the definition of _SC_PAGESIZE.
102203 2003-08-16  Jim Meyering  <jim@meyering.net>
102205         Merge from coreutils.
102206         * lib/xstrtoimax.c: #else #if -> #elif.
102207         * lib/xstrtoumax.c: Likewise.
102209 2003-08-16  Jim Meyering  <jim@meyering.net>
102211         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
102212         * m4/utimes.m4: Removed.
102213         * m4/utimes-null.m4: Renamed from utimes.m4.
102215         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
102216         to 1MB, so as not to render systems with no stack size limit (e.g.,
102217         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
102218         Include <unistd.h>.  On some systems,
102219         it is required for the definition of _SC_PAGESIZE.
102221 2003-08-16  Jim Meyering  <jim@meyering.net>
102222         and Paul Eggert  <eggert@cs.ucla.edu>
102224         Merges from coreutils, etc.
102226         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
102227         using the latest version from cvs.  This avoids problems with #line
102228         directives using a vendor (Sun) compiler.
102229         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
102230         Don't set GETGROUPS_LIB here; now it's
102231         done via getgroups.m4's wrapper function.
102232         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
102233         rather than just in sh-util/configure.in, so that the
102234         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
102235         same.
102236         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
102237         AC_FUNC_GETLOADAVG where to find getloadavg.c.
102238         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
102239         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
102240         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
102241         Remove code that is now done by the newly-required macros.
102242         Append $(EXEEXT) to DF_PROG.
102243         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
102244         Do not invoke or require the following here,
102245         since prereq.m4 or some gnulib .m4 now does this for us:
102246         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
102247         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
102248         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
102249         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
102250         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
102251         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
102252         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
102253         AC_FUNC_OBSTACK.
102254         Do not replace the following functions, as this is now the job
102255         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
102256         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
102257         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
102258         atexit getpass, strdup, getpagesize.
102259         Replace 'raise'.
102260         Do not check for the following functions, as this is now the job
102261         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
102262         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
102263         setregid.
102264         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
102265         Check for sys/sysctl.h.
102266         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
102267         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
102268         of checking for ssize_t ourselves.
102270         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
102271         Require every macro that gnulib/modules/* suggests for us.
102272         (jm_PREREQ_ADDEXT): New macro.
102273         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
102274         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
102276         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
102277         (gl_PHYSMEM): Use it.
102278         Also check for `table' function.
102279         Check for new headers and functions.
102280         Add check for sys/sysmp.h.
102281         With suggestions from Kaveh Ghazi.
102282         Ignore headers that are present but cannot be compiled.  This
102283         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
102284         C 5.4.
102286 2003-08-15  Paul Eggert  <eggert@twinsun.com>
102288         Document merge from coreutils.
102289         * modules/userspec: Depend on posixver.
102290         * modules/strftime: Depend on tzset.
102292 2003-08-15  Paul Eggert  <eggert@twinsun.com>
102294         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
102295         rather than tab, after '#' in shell-script copyright notices.
102296         Suggested by Bruno Haible.
102298 2003-08-15  Paul Eggert  <eggert@twinsun.com>
102300         * config/srclist-update: Use three spaces, rather than tab, after '#'
102301         in shell-script copyright notices.  Suggested by Bruno Haible.
102302         Remove unnecessary parenthesization in regular expression.
102304 2003-08-15  Jim Meyering  <jim@meyering.net>
102306         Merge from coreutils.
102307         * lib/xgethostname.c: Include <stdlib.h>.
102308         (xghostname): Don't exit for anything other than memory-related
102309         failure; just return NULL.
102310         * lib/userspec.c: Include "posixver.h".
102311         (parse_user_spec): Accept `.' as a separator only
102312         in pre-POSIX-200112 mode.
102313         * lib/strtoimax.c: Use #elif rather than #else #if.
102314         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
102315         Remove function, now that we can rely on a working tzset function.
102316         [!_LIBC]: Ensure that the required autoconf test has been run.
102317         [!defined _NL_CURRENT && HAVE_STRFTIME]:
102318         Use underlying_strftime for %r.
102319         * lib/sha.c: Merge in some clean-up and optimization changes from
102320         glibc.
102321         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
102322         Ensure that it is a multiple of 64.
102323         Rearrange loop exit tests so as to avoid performing an
102324         additional fread after encountering an error or EOF.
102325         * lib/realloc.c: Update copyright date.
102327 2003-08-15  Jim Meyering  <jim@meyering.net>
102328         and Paul Eggert  <eggert@twinsun.com>
102330         Merge from coreutils.
102331         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
102332         member but strut utmpx does not.  Needed for AIX 4.3.3.
102333         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
102335 2003-08-15  Jim Meyering  <jim@meyering.net>
102336         and Paul Eggert  <eggert@cs.ucla.edu>
102338         Merges from coreutils, etc.
102339         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
102340         Require gl_FUNC_TZSET_CLOBBER.
102341         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
102342         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
102343         members.
102345 2003-08-14  Paul Eggert  <eggert@twinsun.com>
102347         Help the merge from coreutils.
102348         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
102349         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
102350         * m4/tzset.m4: Use it too.
102352 2003-08-14  Paul Eggert  <eggert@twinsun.com>
102354         * modules/tzset: New file.
102356 2003-08-14  Jim Meyering  <jim@meyering.net>
102358         Merges from coreutils.
102359         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
102360         variable names, rather than @FNMATCH_H@.
102361         * modules/alloca: Likewise for $(ALLOCA_H).
102363         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
102364         the three copies of the literal target, `fnmatch.h'.
102365         * modules/alloca (alloca.h): Likewise.
102367 2003-08-14  Jim Meyering  <jim@meyering.net>
102369         Merge from coreutils.
102370         * m4/tzset.m4: New file.
102371         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
102372         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
102373         otherwise, AIX 5.1 systems would end up using the latter.
102374         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
102375         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
102376         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
102377         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
102379 2003-08-14  Jim Meyering  <jim@meyering.net>
102381         Merge from coreutils.
102382         * lib/obstack.h: Whitespace changes.
102383         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
102384         and xcalloc return values.
102385         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
102386         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
102387         hang on OSF/1 5.1 for DIR on both local and remote file systems.
102388         Reported by (and fix confirmed by) Nelson H. F. Beebe.
102389         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
102390         error from mntctl.
102391         Use mntctl's return value to drive the entry-processing loop, since
102392         we can't rely on the value of the vmt_length member in the last
102393         entry.  On some systems doing so could result in exhausting
102394         virtual memory.  Based in part on a patch from Mike Jetzer.
102396 2003-08-14  Jim Meyering  <jim@meyering.net>
102397         and Paul Eggert  <eggert@twinsun.com>
102399         Merges from coreutils, plus other fixes.
102400         * lib/physmem.c: Merge in portability changes from gcc/libiberty
102401         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
102402         for credits and details.  Thanks to Kaveh Ghazi for helping
102403         to keep these files in sync.
102404         (ARRAY_SIZE): Define it.
102405         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
102406         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
102407         (memcasecmp): Don't assume size_t fits in unsigned int.
102408         Remove casts and duplicate code.
102409         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
102410         (memcpy): Remove definition.
102411         Merge in some clean-up and optimization changes from glibc.
102412         [BLOCKSIZE]: Move definition to top of file.
102413         Ensure that it is a multiple of 64.
102414         Rearrange loop exit tests so as to avoid performing an
102415         additional fread after encountering an error or EOF.
102416         * lib/md5.h (md5_uintptr): Define.
102417         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
102418         return to the initial working directory.  Preserve errno
102419         for caller.
102420         * lib/idcache.c: Include "xalloc.h".
102421         (xmalloc, xrealloc): Remove decls.
102422         (getuser): Remove casts no longer required in C89.
102423         * lib/human.c: Include stdio.h, for sprintf.
102424         * lib/group-member.c: Include "xalloc.h".
102425         (xmalloc, xrealloc): Remove decls.
102426         (get_group_info): Remove casts no longer required in C89.
102427         * lib/getusershell.c (readname): Remove casts no longer required in
102428         C89.
102429         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
102430         * lib/getline.c: Whitespace fix, from coreutils.
102432 2003-08-13  Paul Eggert  <eggert@twinsun.com>
102434         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
102435         Check for isascii.
102437         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
102438         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
102439         Undo previous (whitespace-only) change.
102441 2003-08-13  Paul Eggert  <eggert@twinsun.com>
102443         * lib/exclude.c: Include <ctype.h>
102444         (IN_CTYPE_DOMAIN): New macro.
102445         (is_space): New fn.
102446         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
102447         and empty lines.
102449         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
102450         Undo previous (whitespace-only) change.
102452 2003-08-13  Paul Eggert  <eggert@twinsun.com>
102454         * config/srclist-update: Change update back to the old behavior,
102455         leaving whitespace alone.  Use one 'sed' command rather than a
102456         pipeline.
102457         (fixlicense): Now a variable, not a function.
102458         (remove_trailing_blanks): Remove.
102459         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
102460         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
102461         Undo previous (whitespace-only) change.
102463 2003-08-12  Paul Eggert  <eggert@twinsun.com>
102465         Merge from coreutils.
102466         * modules/euidaccess: Add lib_SOURCES, include for new
102467         file euidaccess.h
102469 2003-08-12  Paul Eggert  <eggert@twinsun.com>
102471         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
102472         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
102473         Normalize leading white space and remove trailing white space.
102475         Merge from coreutils
102476         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
102478         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
102479         0.12.1.  These files are now being upgraded automatically by
102480         ../config/srclist-update.
102482 2003-08-12  Paul Eggert  <eggert@twinsun.com>
102484         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
102485         Normalize leading white space and remove trailing white space.
102486         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
102487         notice, as per ../config/srclist-update.
102489         Merge from coreutils.
102490         * lib/euidaccess.h: New file.
102491         * lib/euidaccess.c: Include it.
102492         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
102493         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
102494         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
102496 2003-08-12  Paul Eggert  <eggert@twinsun.com>
102498         * config/srclist-update: Add copyright notice.
102499         (remove_id_lines, remove_trailing_blanks): New constants.
102500         (fixfile): Use them to normalize spacing a bit in copied files.
102501         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
102502         Normalize leading white space and remove trailing white space.
102504         * config/texinfo.tex: Sync with texinfo.
102506         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
102507         strtoul.c from libc, to merge coreutils whitespace changes.
102509         * config/srclist.txt: Get the following m4 files from gettext:
102510         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
102511         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
102512         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
102513         wint_t.m4.
102515 2003-08-12  Karl Berry  <karl@gnu.org>
102517         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
102518         been made.
102520 2003-08-11  Paul Eggert  <eggert@twinsun.com>
102522         * modules/gnu-source, m4/gnu-source.m4:
102523         Remove; we're assuming Autoconf 2.54 or later now.
102524         Suggested by Bruno Haible.
102525         * MODULES.html.sh (func_all_modules): Remove gnu-source.
102527 2003-08-11  Bruno Haible  <bruno@clisp.org>
102529         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
102531 2003-08-11  Bruno Haible  <bruno@clisp.org>
102533         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
102534         (vasnprintf): Use it instead of wcslen.
102536 2003-08-11  Bruno Haible  <bruno@clisp.org>
102538         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
102539         value to ensure that _Bool promotes to int. Use #define for _Bool when
102540         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
102542 2003-08-10  Karl Berry  <karl@gnu.org>
102544         * lib/regex.h: update from libc (whitespace fix).
102546 2003-08-09  Paul Eggert  <eggert@twinsun.com>
102548         Merge some files from coreutils.  These changes were
102549         originally made by Jim Meyering.
102550         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
102551         many older Unixes require this.
102552         * lib/alloca.c (alloca): Remove cast to argument of free;
102553         no longer needed in C89.
102554         * lib/alloca_.h, regex.h: Fix white space to match
102555         what GNU indent does.
102557 2003-08-09  Paul Eggert  <eggert@twinsun.com>
102559         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
102560         apparently Emacs's Unicode mode got confused before my 2003-08-05
102561         checkin.
102563 2003-08-08  Paul Eggert  <eggert@twinsun.com>
102565         * m4/extensions.m4: New file.
102566         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
102567         Require gl_USE_SYSTEM_EXTENSIONS.
102568         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
102569         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
102571 2003-08-08  Paul Eggert  <eggert@twinsun.com>
102573         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
102574         * modules/extensions, modules/gnu-source: New files.
102575         * modules/timespec, modules/unlocked-io: Depend on extensions.
102577 2003-08-07  Paul Eggert  <eggert@twinsun.com>
102579         * modules/restrict: New file.
102580         * MODULES.html.sh (func_all_modules): Add restrict.
102581         * modules/regex: Depend on restrict.
102583 2003-08-07  Paul Eggert  <eggert@twinsun.com>
102585         * m4/restrict.m4: New file.
102586         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
102588 2003-08-07  Bruno Haible  <bruno@clisp.org>
102590         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
102591         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
102593 2003-08-07  Bruno Haible  <bruno@clisp.org>
102595         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
102596         makes the module 'getndelim2' compatible with the module 'getline'.
102598 2003-08-05  Paul Eggert  <eggert@twinsun.com>
102600         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
102601         byte with "\201" to avoid glitches when editing that source file
102602         with multi-gnome-terminal.
102604 2003-08-05  Paul Eggert  <eggert@twinsun.com>
102606         * lib/bumpalloc.h: Remove.
102608 2003-08-05  Paul Eggert  <eggert@twinsun.com>
102610         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
102611         * modules/bumpalloc: Remove.
102613 2003-08-04  Paul Eggert  <eggert@twinsun.com>
102615         * lib/getloadavg.c: Change copyright notice and spacing to conform to
102616         GNU coding style.
102618         Merge from coreutils.
102619         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
102620         1. From glibc.
102621         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
102622         from Karl Berry, implemented by Jim Meyering.
102623         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
102624         from Dmitry V. Levin.
102625         Remove anachronistic cast of xrealloc.
102626         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
102627         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
102628         type. Otherwise, it wouldn't compile with at least /bin/cc on
102629         ymp-cray-unicos9.0.2.X.
102630         Combine two mostly-identical uses of alloca into one.
102631         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
102633 2003-08-04  Dave Love  <d.love@dl.ac.uk>
102635         [From Emacs.]
102637         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
102638         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
102639         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
102640         obsolete NLIST_NAME_UNION.
102641         [__GNU__]: Undef BSD and FSCALE.
102642         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
102644 2003-08-03  Paul Eggert  <eggert@twinsun.com>
102646         * lib/stdbool_.h (_Bool): Make it signed char, instead of
102647         an enum type, so that it's guaranteed to promote to int.  See:
102648         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
102650 2003-08-03  Karl Berry  <karl@gnu.org>
102652         * config/depcomp: update from automake.
102654 2003-07-31  Paul Eggert  <eggert@twinsun.com>
102656         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
102657         (strerror): Don't assume that a printable int fits in 14 bytes.
102659 2003-07-31  Bruno Haible  <bruno@clisp.org>
102661         * modules/getpass-gnu: New file.
102662         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
102664 2003-07-31  Bruno Haible  <bruno@clisp.org>
102666         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
102668 2003-07-24  Karl Berry  <karl@gnu.org>
102670         * config/missing: update from automake.
102672 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
102673             Bruno Haible  <bruno@clisp.org>
102675         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
102676         * lib/getline.c (getline, getdelim): Likewise.
102677         Remove _GNU_SOURCE define; now it's defined in config.h through
102678         m4/getline.m4.
102680 2003-07-23  Karl Berry  <karl@gnu.org>
102682         * config/config.sub: update from prep.
102684 2003-07-22  Paul Eggert  <eggert@twinsun.com>
102686         * modules/xalloc (Depends-on): Add exitfail.
102687         * modules/xmemcoll: Likewise.
102689 2003-07-22  Paul Eggert  <eggert@twinsun.com>
102691         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
102692         over-parenthesization in macros.
102694         Sync with coreutils.
102696         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
102697         required by C99.
102699         Use `exit_failure' for xalloc and xmemcoll instead of their own
102700         private exit-failure variables.
102701         * lib/xalloc.h (xalloc_exit_failure): Remove.
102702         * lib/xmalloc.c: Likewise.  Include exitfail.h.
102703         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
102704         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
102705         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
102706         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
102708 2003-07-20  Jim Meyering  <jim@meyering.net>
102710         * modules/closeout (Depends-on): Add exitfail.
102711         Suggestion from Bruno Haible.
102713 2003-07-19  Karl Berry  <karl@gnu.org>
102715         * config/config.sub: update from prep.
102717 2003-07-18  Paul Eggert  <eggert@twinsun.com>
102719         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
102720         Remove.
102721         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
102722         to test that it can stand by itself.  Include "exitfail.h".
102723         Clients should set exit_failure instead.
102724         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
102726 2003-07-18  Bruno Haible  <bruno@clisp.org>
102728         * modules/getndelim2: New file.
102729         * modules/getline: Share files with module getndelim2.
102730         * modules/getnline: Depend on getndelim2 instead of sharing files with
102731         it. Add getnline.c to lib_SOURCES.
102732         * MODULES.html.sh (func_all_modules): Add getndelim2.
102734 2003-07-18  Bruno Haible  <bruno@clisp.org>
102736         * m4/getndelim2.m4: New file.
102737         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
102738         invoke gl_PREREQ_GETNDELIM2.
102739         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
102740         gl_PREREQ_GETNDELIM2.
102741         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
102742         gl_GETNDELIM2.
102744 2003-07-18  Bruno Haible  <bruno@clisp.org>
102746         * lib/getndelim2.h: New file.
102747         * lib/getndelim2.c: Make into a module of its own. Include config.h,
102748         getndelim2.h.
102749         (getndelim2): Make non-static. Change return type to ssize_t.
102750         * lib/getline.h: Change argument names.
102751         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
102752         * lib/getnline.c: Include getndelim2.h.
102754 2003-07-18  Andreas Schwab  <schwab@suse.de>
102756         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
102758 2003-07-17  Karl Berry  <karl@gnu.org>
102760         * config/config.sub: update from prep.
102762 2003-07-17  Bruno Haible  <bruno@clisp.org>
102764         * modules/getnline: New file.
102765         * modules/getline: Add lib/getndelim2.c to source file list.
102766         * MODULES.html.sh (func_all_modules): Add getnline.
102768 2003-07-17  Bruno Haible  <bruno@clisp.org>
102770         * m4/getnline.m4: New file.
102772 2003-07-17  Bruno Haible  <bruno@clisp.org>
102774         * m4/Makefile.am.in: Remove file.
102775         * m4/Makefile.am: Remove file.
102776         * m4/Makefile.in: Remove file.
102778 2003-07-17  Bruno Haible  <bruno@clisp.org>
102780         * lib/getnline.h: New file.
102781         * lib/getnline.c: New file.
102782         * lib/getndelim2.c: New file, extracted from getline.c.
102783         (getndelim2): Renamed from getdelim2, with added nmax argument.
102784         * lib/getline.c: Include getndelim2.c.
102785         (getdelim2): Moved out to getndelim2.c.
102786         (getline, getdelim): Update.
102788 2003-07-17  Bruno Haible  <bruno@clisp.org>
102790         * lib/Makefile.am: Remove file.
102791         * lib/Makefile.in: Remove file.
102793 2003-07-17  Bruno Haible  <bruno@clisp.org>
102795         * configure.in: Remove file.
102796         * Makefile.in: Remove file.
102798 2003-07-17  Bruno Haible  <bruno@clisp.org>
102800         * MODULES.html.sh: Put the </BODY> right before </HTML>.
102802 2003-07-16  Karl Berry  <karl@gnu.org>
102804         * config/srclist-update: was running fixlicense twice, which caused
102805                 texinfo.tex to be nullified for some reason.  Simplify,
102806                 $gplsrc is no longer needed as far as I can see?
102808 2003-07-16  Jim Meyering  <jim@meyering.net>
102810         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
102812 2003-07-15  Paul Eggert  <eggert@twinsun.com>
102814         * config/srclist.txt: Get the following files from gettext-runtime/intl
102815         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
102816         ref-del.sin.  From Bruno Haible.
102817         * config/srclist-update (fixfile): Change grep pattern again, since the
102818         previous fix didn't work (there was another trailing $).  Use
102819         '[$]' to escape the $s.
102821 2003-07-15  Karl Berry  <karl@gnu.org>
102823         * lib/vasnprintf.c: update from gettext.
102825 2003-07-15  Karl Berry  <karl@gnu.org>
102827         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
102828         gets expanded when surrounded by '$'.
102830 2003-07-15  Jim Meyering  <jim@meyering.net>
102832         * modules/save-cwd: Don't depend on error.  From Derek Price.
102834 2003-07-15  Jim Meyering  <jim@meyering.net>
102836         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
102838 2003-07-14  Simon Josefsson  <jas@extundo.com>
102840         * modules/mempcpy: New file.
102841         * MODULES.html.sh (func_all_modules): Add mempcpy.
102843 2003-07-14  Simon Josefsson  <jas@extundo.com>
102845         * m4/mempcpy.m4: New file.
102847 2003-07-14  Simon Josefsson  <jas@extundo.com>
102849         * lib/mempcpy.h: New file.
102850         * lib/mempcpy.c: New file.
102852 2003-07-14  Paul Eggert  <eggert@twinsun.com>
102854         * modules/getdate, modules/posixtm: Depend on mktime.
102856 2003-07-14  Paul Eggert  <eggert@twinsun.com>
102858         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
102859         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
102860         unicodeio.c, unicodeio.h, unlocked-io.h:
102861         Switch from LGPL to GPL.
102863 2003-07-14  Paul Eggert  <eggert@twinsun.com>
102865         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
102866         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
102867         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
102868         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
102869         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
102870         updated automatically by ../config/srclist-update.  This changes
102871         their license from LPGL to GPL.
102873 2003-07-14  Paul Eggert  <eggert@twinsun.com>
102875         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
102876         assumed to refer to the root of the most recent stable gettext version.
102877         * config/srclistvars.sh: Add defaults for eggert.
102878         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
102879         Match "This program" as well as "The program".  This is needed
102880         for gettext.
102882 2003-07-14  Jim Meyering  <jim@meyering.net>
102884         Don't emit diagnostics.  Let callers do that.
102885         * lib/save-cwd.c: Don't include "error.h".
102886         (save_cwd): Don't call error.  Ensure that errno is valid
102887         when returning nonzero.
102889         * lib/save-cwd.h (restore_cwd): Update prototype.
102890         * lib/save-cwd.c (restore_cwd): Remove two parameters.
102891         Simplify.  Don't call error upon failure.  Let callers do that.
102892         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
102893         when auditing is enabled.  But don't bother updating the #if.
102895 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
102897         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
102898         it breaks C++ compilation.
102899         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
102901 2003-07-10  Simon Josefsson  <jas@extundo.com>
102903         * modules/strchrnul (Makefile.am): Add strchrnul.h.
102905 2003-07-10  Jim Meyering  <jim@meyering.net>
102907         * m4/clock_time.m4: Remove trailing blank.
102908         * m4/intmax_t.m4: Likewise.
102910 2003-07-10  Jim Meyering  <jim@meyering.net>
102912         * lib/vasnprintf.c: Remove trailing blanks.
102913         Make cpp indentation consistent.
102915 2003-07-09  Paul Eggert  <eggert@twinsun.com>
102917         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
102918         posixver.c, strftime.c, strnlen.c, strverscmp.c:
102919         Switch from LGPL to GPL.
102921 2003-07-09  Paul Eggert  <eggert@twinsun.com>
102923         * config/srclist.txt: Sort sublists.  Add
102924         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
102925         that differ from gnulib for one reason or another; we'd like this list
102926         to be smaller but for now let's document what we have.
102928 2003-07-08  Paul Eggert  <eggert@twinsun.com>
102930         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
102931         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
102932         and sweeter "eval x=$x".
102933         * config/srclist.txt: Get lib/argp* from glibc.
102935 2003-07-07  Paul Eggert  <eggert@twinsun.com>
102937         * lib/mktime.c: Fix some boundary cases and remove need for floating
102938         point.
102940         Issue a compile-time diagnostic if time_t is floating point, or if
102941         two's complement arithmetic is not in effect, or if arithmetic
102942         right shift does not propagate the sign.  These assumptions were
102943         all in the original code but they weren't checked.
102945         (TIME_T_MIDPOINT, verify): New macros.
102946         (__isleap): Remove; it has integer overflow problems.
102947         (leapyear): New function, without those problems.
102948         (ydhms_tm_diff): Remove; splitting into two parts.
102949         (ydhms_diff): New function, containing the arithmetic part of
102950         the old ydhms_tm_diff function.  Issue a compile-time
102951         diagnostic if we are not using C99 integer division.
102952         Avoid casts when possible.
102953         (guess_time_tm): New function, containing the checking part of
102954         the old ydhms_tm_diff function.  Return the new value, rather than
102955         the difference between it and the old.  Accept a new argument T
102956         so that *T specifies the old value.  Check for overflow in the result.
102958         (__mktime_internal): Use a time_t offset, not a long int offset.
102959         This undoes the 2003-06-04 change, which is no longer needed now
102960         that we have better overflow checking.
102961         (localtime_offset): Likewise.
102963         (__mktime_internal): Avoid harmful overflow on hosts where time_t
102964         and long are 64-bit but int is only 32-bit.
102965         (ydhms_diff): Use long int to store year1 and yday1.
102966         Issue a compile-time diagnostic if long int is not wide enough.
102968         (__mktime_internal): Use long int to store adjusted year and yday.
102969         Use plain C rather than preprocessor commands, if that doesn't
102970         affect efficiency.
102971         Check for overflow (and try to repair) after each probe
102972         rather than checking only at the very end.  This avoids some bugs
102973         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
102974         does not equal GMT offset at maximum time).
102975         Use integer to check for overflow rather than floating point; this
102976         is more portable to non-IEEE hosts, and is a tad faster.
102977         When we detect that we are oscillating between two values,
102978         don't check whether tm_isdst has the requested value, since
102979         we already know the answer.  When tm_isdst has the wrong value,
102980         use a different heuristic to find the right one, based on the
102981         extreme values actually observed in practice in tz2003a,
102982         rather than the (overly optimistic) "previous 3 calendar quarters".
102984         (not_equal_tm, print_tm, check_result): Use "const T" rather than
102985         "T const" to accommodate glibc style.
102986         (check_result): Use less-confusing report format.  "long" -> "long int.
102987         (main): Likewise.
102988         Don't loop if the iteration overflows time_t.
102989         Allow a negative step in the iteration.
102991 2003-07-06  Karl Berry  <karl@gnu.org>
102993         * config/depcomp: update from automake.
102994         * config/config.sub: update from prep.
102996 2003-07-03  Karl Berry  <karl@gnu.org>
102998         * config/config.guess: update from prep.
103000 2003-07-01  Paul Eggert  <eggert@twinsun.com>
103002         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
103003         xreadlink.c now includes it unconditionally.
103005 2003-07-01  Paul Eggert  <eggert@twinsun.com>
103007         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
103008         having it depend on HAVE_SYS_TYPES_H.
103010 2003-07-01  Bruno Haible  <bruno@clisp.org>
103012         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
103013         <sys/types.h> should be sufficient.
103014         Reported by Paul Eggert.
103016 2003-06-26  Karl Berry  <karl@gnu.org>
103018         * config/depcomp: update from automake.
103020 2003-06-26  Bruno Haible  <bruno@clisp.org>
103022         * modules/human: Depend on module stdbool.
103024 2003-06-25  Bruno Haible  <bruno@clisp.org>
103026         * modules/readlink: New file.
103027         * modules/xreadlink: Depend on it.
103028         * MODULES.html.sh (func_all_modules): Add readlink.
103030 2003-06-25  Bruno Haible  <bruno@clisp.org>
103032         * m4/readlink.m4: New file.
103034 2003-06-25  Bruno Haible  <bruno@clisp.org>
103036         * lib/readlink.c: New file.
103038 2003-06-22  Karl Berry  <karl@gnu.org>
103040         * config/srclist.txt: update mkinstalldirs from automake.
103041         * config/mkinstalldirs: update.
103043 2003-06-22  Bruno Haible  <bruno@clisp.org>
103045         Portability to mingw32.
103046         * m4/ssize_t.m4: New file, from GNU gettext.
103047         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
103048         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
103050 2003-06-22  Bruno Haible  <bruno@clisp.org>
103052         * modules/safe-read: Add m4/ssize_t.m4.
103053         * modules/xreadlink: Add m4/ssize_t.m4.
103055 2003-06-20  Bruno Haible  <bruno@clisp.org>
103057         Assume C89, so PARAMS isn't needed.
103058         * lib/unicodeio.h (PARAMS): Remove.
103059         * lib/unicodeio.c: Don't use PARAMS.
103061 2003-06-18  Karl Berry  <karl@gnu.org>
103063         * config/config.{guess,sub}: update from prep.
103065 2003-06-18  Jim Meyering  <jim@meyering.net>
103067         Merge changes from coreutils.
103068         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
103069         Remove explicit declarations of xmalloc and realloc.
103070         Include xalloc.h.
103071         (read_utmp): Remove anachronistic cast of xmalloc.
103073 2003-06-17  Paul Eggert  <eggert@twinsun.com>
103075         Assume C89, so PARAMS isn't needed.
103076         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
103077         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
103078         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
103079         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
103080         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
103081         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
103082         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
103083         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
103084         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
103085         lib/xstrtod.h, lib/xstrtol.h: Likewise.
103086         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
103087         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
103088         no longer needed. Anyway, config.h should always be included before any
103089         other file.
103091 2003-06-11  Simon Josefsson  <jas@extundo.com>
103093         * modules/sysexits: New file.
103094         * MODULES.html.sh (func_all_modules): Add sysexits.
103096 2003-06-11  Simon Josefsson  <jas@extundo.com>
103098         * lib/sysexit_.h: New file.
103100 2003-06-11  Derek Price  <derek@ximbiot.com>
103102         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
103103         necessary.
103105 2003-06-11  Bruno Haible  <bruno@clisp.org>
103107         * m4/sysexits.m4: New file.
103109 2003-06-10  Simon Josefsson  <jas@extundo.com>
103111         * lib/argp.h: New file, from glibc.
103112         * lib/argp-ba.c: New file, from glibc.
103113         * lib/argp-eexst.c: New file, from glibc.
103114         * lib/argp-fmtstream.c: New file, from glibc.
103115         * lib/argp-fmtstream.h: New file, from glibc.
103116         * lib/argp-fs-xinl.c: New file, from glibc.
103117         * lib/argp-help.c: New file, from glibc.
103118         * lib/argp-namefrob.h: New file, from glibc.
103119         * lib/argp-parse.c: New file, from glibc.
103120         * lib/argp-pv.c: New file, from glibc.
103121         * lib/argp-pvh.c: New file, from glibc.
103122         * lib/argp-xinl.c: New file, from glibc.
103124 2003-06-10  Simon Josefsson  <jas@extundo.com>
103126         * modules/strchrnul: New file.
103128 2003-06-10  Simon Josefsson  <jas@extundo.com>
103130         * modules/argp: New file.
103132 2003-06-10  Simon Josefsson  <jas@extundo.com>
103134         * m4/strchrnul.m4: New file.
103136 2003-06-10  Simon Josefsson  <jas@extundo.com>
103138         * lib/strchrnul.h: New file.
103139         * lib/strchrnul.c: New file.
103141 2003-06-10  Bruno Haible  <bruno@clisp.org>
103143         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
103145 2003-06-07  Karl Berry  <karl@gnu.org>
103147         * config/config.{guess,sub}: update from prep.
103149 2003-06-07  Jim Meyering  <jim@meyering.net>
103151         * modules/strtod: Use $(...) notation, not @...@ for
103152         AC_REPLACE'd variables.
103153         * modules/localcharset: Likewise.
103155 2003-06-07  Jim Meyering  <jim@meyering.net>
103157         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
103158         in place of my name in the copyright comment.
103159         Remove definition and uses of __P.
103161         From coreutils.
103162         * lib/stat.c: Don't declare xmalloc explicitly.
103163         Instead, include "xalloc.h".
103164         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
103165         xrealloc, and xcalloc return values.
103166         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
103167         Improve comment.
103168         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
103170 2003-06-07  Bruno Haible  <bruno@clisp.org>
103172         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
103173         avoid AC_CONFIG_LINKS.
103174         * modules/fnmatch (Makefile.am): Use explicit creation rule for
103175         fnmatch.h, to avoid AC_CONFIG_LINKS.
103176         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
103178 2003-06-07  Bruno Haible  <bruno@clisp.org>
103180         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
103181         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
103182         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
103183         directory.
103184         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
103185         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
103186         directory.
103188 2003-06-06  Jim Meyering  <jim@meyering.net>
103190         Merge from coreutils.
103191         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
103192         Consolidate declarations and initializations of *_base* locals.
103194         Merge from coreutils.
103195         This avoids a core dump on systems without GNU putenv,
103196         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
103197         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
103198         (unsetenv): New static function, from GNU libc.
103199         (rpl_putenv): Use it.
103201         * lib/modechange.c: Remove trailing blanks.
103203         Merge from coreutils.
103204         * lib/fsusage.c: Remove declaration of statfs.
103205         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
103207         * lib/posixtm.c: Include <stdbool.h> unconditionally.
103209 2003-06-06  Jim Meyering  <jim@meyering.net>
103211         * lib/stdbool_.h: Renamed from stdbool.h.in.
103213 2003-06-06  Jim Meyering  <jim@meyering.net>
103214             Bruno Haible  <bruno@clisp.org>
103216         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
103217         Adjust Makefile.am snippet not to redirect directly to target.
103218         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
103220 2003-06-05  Paul Eggert  <eggert@twinsun.com>
103222         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
103223         mismatch, look in future quarters as well as past.  This fixes a
103224         bug when processing fall-backwards gaps immediately after a long
103225         period of daylight-saving time.
103227         * lib/mktime.c: Assume freestanding C89 or better.
103228         (HAVE_LIMITS_H): Remove.  Assume it's 1.
103229         (__P): Remove; not used.
103230         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
103231         (mktime, not_equal_tm, print_tm, check_result,
103232         main): Use prototypes.  Use const * where appropriate.
103233         (main): Fix typo in testing code that uncovered by above changes.
103234         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
103236 2003-06-04  Paul Eggert  <eggert@twinsun.com>
103238         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
103239         locale.h, localeconv.  This merges changes from coreutils.
103241         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
103242         It can be removed after the next Autoconf is released.
103243         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
103244         needed.
103246 2003-06-04  Paul Eggert  <eggert@twinsun.com>
103248         * lib/mktime.c: Fix Debian bug 177940
103249         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
103250         (localtime_offset): Now long int, not time_t, because we want it
103251         to be guaranteed to be signed.  All uses changed.
103252         (__mktime_internal): If overflow would occur when adding offset,
103253         don't add it.
103255         Merge 'human' changes from coreutils.  Rewrite to support
103256         locale-specific notations like thousands separators.
103257         * lib/human.c: Simplify authorship notice.
103258         Include human.h immediately after config.h.
103259         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
103260         <limits.h>: Do not include, since human.h does.
103261         (SIZE_MAX, UINTMAX_MAX): New macros.
103262         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
103263         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
103264         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
103265         (power_letter): Renamed from suffixes.
103266         (generate_suffix_backwards): Remove.
103267         (adjust_value): Now takes int style (because of human.h changes)
103268         and long double value (for greater precision on some platforms).
103269         (group_number): New function.
103270         (human_readable): Use it.  Use integer options, not enum.
103271         Put the options before the sizes in the arg list.
103272         Support all the new options.
103273         The old human_readable function has been removed;
103274         use inttostr.h instead.
103275         (human_readable, default_block_size, humblock):
103276         Use uintmax_t, not int, for block sizes.
103277         (human_readable_inexact, block_size_types): Remove.
103278         (block_size_opts): New constant.
103279         (human_options): Renamed from human_block_size, with new signature
103280         that allows block sizes up to UINTMAX_MAX.  All callers changed.
103281         * lib/human.h: Add copyright and authorship notice.
103282         Include <limits.h> and <stdbool.h> unconditionally.
103283         (PARAMS): Remove.  All uses removed.
103284         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
103285         (enum human_inexact_style): Remove tag; now a nameless enum.
103286         (human_floor, human_ceiling, human_round_to_even): Now have
103287         values 2, 0, 1 rather than -1, 1, 0.
103288         (human_group_digits, human_suppress_point_zero, human_autoscale,
103289         human_base_1024, human_SI, human_B): New constants.
103290         (human_readable_inexact, human_block_size): Remove.
103291         (human_readable): Size args are now uintmax_t, not int.
103292         (human_options): New decl.
103294         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
103295         unnecessary now that we assume C89 or better.  This change
103296         imported from coreutils.
103298         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
103299         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
103300         in the 2003-05-30 sync from glibc.
103302         .h files should stand alone, but we shouldn't include <sys/types.h>
103303         if we can get away with just <stddef.h>.
103305         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
103306         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
103307         rather than <sys/types.h>, as we merely need size_t.
103308         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
103309         to get size_t.
103310         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
103311         Include <stdio.h>, to get FILE.
103312         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
103313         memcasecmp.h has included <stddef.h> and all we need is size_t.
103314         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
103315         our interface, instead of including <sys/types.h>
103317 2003-06-04  Paul Eggert  <eggert@twinsun.com>
103319         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
103320         now, as glibc mktime is buggy on non-glibc systems.
103322 2003-06-03  Karl Berry  <karl@gnu.org>
103324         * config/config.sub: update from prep.
103326 2003-06-02  Paul Eggert  <eggert@twinsun.com>
103328         [from coreutils]
103329         Fix some minor time-related bugs with POSIX time arguments.
103330         Some valid time stamps were being rejected (notably -1, and
103331         time stamps before 1900 on 64-bit hosts).  And some invalid
103332         time stamps were being accepted, e.g. September 31.
103334         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
103335         that we can return (time_t) -1 successfully.
103336         * lib/posixtm.c: Likewise.
103337         [HAVE_STDBOOL_H]: Include <stdbool.h>.
103338         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
103339         (t): Remove static var.
103340         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
103341         of static var.  All uses changed.
103342         (year): Do not reject years before 1900; they can occur with
103343         64-bit time_t.
103344         (posix_time_parse): Do not check for out-of-range components;
103345         that is now the caller's responsibility, since our checks were
103346         only approximations.
103347         (posixtime): Use mktime to check for out-of-range components,
103348         since it knows them exactly.
103349         If mktime returns (time_t) -1, check whether an error actually occurred
103350         by invoking localtime on -1.
103351         (main) [TEST_POSIXTIME]: Check for input data errors, and report
103352         posixtime failures better.
103353         Improve the test data (in comments only).
103355 2003-06-02  Karl Berry  <karl@gnu.org>
103357         * config/mkinstalldirs (version): new variable.
103358         (--version): new option.
103359         (usage): improve message.
103361 2003-05-30  Karl Berry  <karl@gnu.org>
103363         * lib/mktime.c: update from libc.
103365 2003-05-30  Bruno Haible  <bruno@clisp.org>
103367         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
103368         * config/config.rpath: Upgrade to gettext-0.12.1.
103370 2003-05-30  Bruno Haible  <bruno@clisp.org>
103372         * m4/gettext.m4: Upgrade to gettext-0.12.1.
103373         * m4/nls.m4: New file, from gettext-0.12.1.
103374         * m4/po.m4: New file, from gettext-0.12.1.
103375         * m4/progtest.m4: Upgrade to gettext-0.12.1.
103377 2003-05-30  Bruno Haible  <bruno@clisp.org>
103379         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
103380         * lib/localcharset.h: Likewise.
103381         * lib/localcharset.c: Likewise.
103383 2003-05-29  Karl Berry  <karl@gnu.org>
103385         * config/config.rpath: update from gettext.
103387 2003-05-28  Paul Eggert  <eggert@twinsun.com>
103389         Assume the headers required for C89 freestanding compilers.
103390         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
103391         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
103392         * m4/human.m4 (gl_HUMAN): Likewise.
103393         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
103394         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
103395         * m4/userspec.m4 (gl_USERSPEC): Likewise.
103396         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
103397         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
103398         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
103400 2003-05-28  Paul Eggert  <eggert@twinsun.com>
103402         Assume the headers required for C89 freestanding compilers.
103403         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
103404         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
103405         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
103406         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
103407         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
103408         define, since <limits.h> is guaranteed to do that.
103409         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
103410         * lib/exclude.c: Include <stdbool.h> unconditionally.
103411         * lib/tempname.c: Include <stddef.h> unconditionally.
103412         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
103413         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
103414         <stddef.h> does that.
103415         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
103416         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
103417         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
103418         needed.
103419         * lib/xstrtol.c: Likewise.
103420         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
103421         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
103423         * lib/addext.c (addext): Use assignment rather than cast, to avoid
103424         warnings on some platforms.
103426         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
103427         arbitrarily.
103429 2003-05-26  Jim Meyering  <jim@meyering.net>
103431         Merge in a change from coreutils:
103432         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
103433         that is guaranteed to be `no'.  Use `no_such_member' to indicate
103434         that condition, rather than `-1' which is slightly misleading.
103435         Change the name of the cache variable to have the gl_ prefix.
103436         Prompted by a patch from Richard Dawe for DJGPP.
103438 2003-05-24  Karl Berry  <karl@gnu.org>
103440         * config/config.guess: update from prep.
103442 2003-05-22  Karl Berry  <karl@gnu.org>
103444         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
103446 2003-05-20  Karl Berry  <karl@gnu.org>
103448         * config/config.guess: update from prep.
103450 2003-05-18  Karl Berry  <karl@gnu.org>
103452         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
103453         might actually be set by the user.
103455         * config/depcomp, install-sh, mdate-sh: update from automake.
103457 2003-05-17  Bruno Haible  <bruno@clisp.org>
103459         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
103460         invalid expansion for AC_EGREP_CPP.
103461         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
103462         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
103463         Suggested by Akim Demaille <akim@epita.fr> in
103464         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
103466 2003-05-12  Jim Meyering  <jim@meyering.net>
103468         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
103469         the space-padded-by-default conversion specifiers, %e, %k, %l.
103471 2003-05-12  Bruno Haible  <bruno@clisp.org>
103473         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
103474         the string is longer than 4 KB.
103476 2003-05-11  Karl Berry  <karl@gnu.org>
103478         * config/config.{guess,sub}: update from prep.
103480 2003-05-09  Bruno Haible  <bruno@clisp.org>
103482         * modules/error: Add m4/strerror_r.m4 to file list.
103484 2003-05-03  Bruno Haible  <bruno@clisp.org>
103486         Upgrade to Unicode-4.0.
103487         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
103488         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
103489         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
103490         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
103491         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
103492         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
103493         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
103494         Change width of U+E0100..U+E01EF from 1 to 0.
103496 2003-04-25  Jim Meyering  <jim@meyering.net>
103498         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
103499         of type size_t, not int.
103501 2003-04-25  Bruno Haible  <bruno@clisp.org>
103503         * lib/copy-file.c: Include <stddef.h>, for size_t.
103505 2003-04-21  Paul Eggert  <eggert@twinsun.com>
103507         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
103508         code which expansion is under static control.  Patch imported from
103509         Akim Demaille's patch to Bison; see
103510         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
103512 2003-04-14  Bruno Haible  <bruno@clisp.org>
103514         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
103516 2003-04-11  Jim Meyering  <jim@meyering.net>
103518         Merge changes from Coreutils.
103520         2003-03-22  Jim Meyering  <jim@meyering.net>
103522         * lib/strftime.c (widen): Cast alloca return value to proper type.
103524         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
103526         From GNU libc.
103527         * lib/strftime.c (my_strftime): Handle very large width
103528         specifications for numeric values correctly.  Improve checks for
103529         overflow.
103531         2003-01-19  Jim Meyering  <jim@meyering.net>
103533         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
103534         definitions.
103535         (nl_get_alt_digit) [! defined my_strftime]: Define.
103536         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
103537         _nl_get_alt_digit and _nl_get_walt_digit.
103539         * lib/strftime.c (my_strftime): Merge in locale-related changes from
103540         libc. These changes have no effect outside of _LIBC.
103542 2003-04-10  Bruno Haible  <bruno@clisp.org>
103544         * modules/findprog: New file.
103545         * MODULES.html.sh (func_all_modules): Add it.
103547 2003-04-10  Bruno Haible  <bruno@clisp.org>
103549         * m4/findprog.m4: New file.
103550         * m4/eaccess.m4: New file.
103552 2003-04-10  Bruno Haible  <bruno@clisp.org>
103554         * lib/findprog.h: New file, from GNU gettext.
103555         * lib/findprog.c: New file, from GNU gettext.
103557 2003-04-05  Jim Meyering  <jim@meyering.net>
103559         Merge changes from Coreutils.
103561         * lib/exclude.h (PARAMS): Remove definition and uses.
103562         * lib/exclude.c: Remove uses of `PARAMS'.
103564         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
103565         Add test-cases for DOS filenames. Declare program_name.
103566         (main): Set up program_name.  Patch by Rich Dawe.
103568         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
103569         error from mntctl.
103570         Use mntctl's return value to drive the entry-processing loop, since
103571         we can't rely on the value of the vmt_length member in the last
103572         entry.  On some systems doing so could result in exhausting
103573         virtual memory.  Based in part on a patch from Mike Jetzer.
103575 2003-04-04  Bruno Haible  <bruno@clisp.org>
103577         * modules/linebreak: New file.
103578         * MODULES.html.sh (func_all_modules): Add it.
103580 2003-04-04  Bruno Haible  <bruno@clisp.org>
103582         * m4/linebreak.m4: New file.
103584 2003-04-04  Bruno Haible  <bruno@clisp.org>
103586         * lib/linebreak.h: New file, from GNU gettext.
103587         * lib/linebreak.c: New file, from GNU gettext with slight
103588         modifications.
103589         * lib/lbrkprop.h: New file, from GNU gettext.
103591 2003-04-03  Bruno Haible  <bruno@clisp.org>
103593         * modules/utf8-ucs4: New file.
103594         * modules/utf16-ucs4: New file.
103595         * modules/ucs4-utf8: New file.
103596         * modules/ucs4-utf16: New file.
103597         * MODULES.html.sh (func_all_modules): Add them.
103599 2003-04-03  Bruno Haible  <bruno@clisp.org>
103601         * m4/utf-ucs4.m4: New file.
103602         * m4/ucs4-utf.m4: New file.
103604 2003-04-03  Bruno Haible  <bruno@clisp.org>
103606         * lib/utf8-ucs4.h: New file, from GNU gettext.
103607         * lib/utf16-ucs4.h: New file, from GNU gettext.
103608         * lib/ucs4-utf8.h: New file, from GNU gettext.
103609         * lib/ucs4-utf16.h: New file, from GNU gettext.
103611 2003-04-02  Bruno Haible  <bruno@clisp.org>
103613         * modules/binary-io: New file.
103614         * MODULES.html.sh (func_all_modules): Add it.
103616 2003-04-02  Bruno Haible  <bruno@clisp.org>
103618         * lib/binary-io.h: New file, from GNU gettext.
103620 2003-04-01  Bruno Haible  <bruno@clisp.org>
103622         * modules/pathname: New file.
103623         * MODULES.html.sh (func_all_modules): Add it.
103625 2003-04-01  Bruno Haible  <bruno@clisp.org>
103627         * lib/pathname.h: New file, from GNU gettext.
103628         * lib/concatpath.c: New file, from GNU gettext.
103630 2003-03-30  Bruno Haible  <bruno@clisp.org>
103632         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
103634 2003-03-30  Bruno Haible  <bruno@clisp.org>
103636         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
103637         function chown() doesn't exist.
103639 2003-03-28  Bruno Haible  <bruno@clisp.org>
103641         * modules/copy-file: New file.
103642         * MODULES.html.sh (func_all_modules): Add it.
103644 2003-03-28  Bruno Haible  <bruno@clisp.org>
103646         * m4/copy-file.m4: New file.
103648 2003-03-28  Bruno Haible  <bruno@clisp.org>
103650         * lib/copy-file.h: New file, from GNU gettext.
103651         * lib/copy-file.c: New file, from GNU gettext.
103653 2003-03-18  Jim Meyering  <jim@meyering.net>
103655         * lib/quote.c (quote_n): Fix typo in comment.
103657 2003-03-18  Bruno Haible  <bruno@clisp.org>
103659         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
103660         checking.
103661         * m4/onceonly_2_57.m4: Likewise.
103663 2003-03-17  Bruno Haible  <bruno@clisp.org>
103665         * m4/onceonly.m4: Require autoconf 2.54 or newer.
103666         (m4_quote): Remove macro.
103667         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
103669 2003-03-14  Jim Meyering  <jim@meyering.net>
103671         Merge changes from Coreutils.
103672         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
103673         to be const, in order to avoid warnings.
103674         (obstack_room): Likewise.
103675         (obstack_empty_p): Likewise.
103677 2003-03-14  Bruno Haible  <bruno@clisp.org>
103679         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
103680         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
103682 2003-03-13  Paul Eggert  <eggert@twinsun.com>
103684         Merge changes from Bison.
103685         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
103686         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
103687         when compiling Bison 1.875's `bitset bset = obstack_alloc
103688         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
103689         * lib/hash.c: Include <stdbool.h> unconditionally.
103691 2003-03-13  Paul Eggert  <eggert@twinsun.com>
103693         * m4/onceonly.m4 (m4_quote): New macro.
103694         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
103695         Quote AC_FOREACH variable-expansions properly.
103697 2003-03-13  Paul Eggert  <eggert@twinsun.com>
103699         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
103701 2003-03-09  Paul Eggert  <eggert@twinsun.com>
103703         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
103704         Reported by Bruce Becker; see:
103705         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
103707 2003-03-03  Paul Eggert  <eggert@twinsun.com>
103708             Bruno Haible  <bruno@clisp.org>
103710         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
103711         Reported by John Hughes, see
103712         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
103714 2003-02-20  Bruno Haible  <bruno@clisp.org>
103716         * MODULES.html.sh (func_all_modules): Add poll.
103718 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
103720         * modules/poll: New file.
103722 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
103724         * lib/poll_.h: New file.
103725         * lib/poll.c: New file.
103727 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
103729         * m4/poll.m4: New file.
103731 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
103733         * modules/mathl: New file.
103735 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
103737         * lib/mathl.h: New file.
103738         * lib/acosl.c: New file.
103739         * lib/asinl.c: New file.
103740         * lib/atanl.c: New file.
103741         * lib/ceill.c: New file.
103742         * lib/cosl.c: New file.
103743         * lib/expl.c: New file.
103744         * lib/floorl.c: New file.
103745         * lib/frexpl.c: New file.
103746         * lib/ldexpl.c: New file.
103747         * lib/logl.c: New file.
103748         * lib/sincosl.c: New file.
103749         * lib/sinl.c: New file.
103750         * lib/sqrtl.c: New file.
103751         * lib/tanl.c: New file.
103752         * lib/trigl.c: New file.
103753         * lib/trigl.h: New file.
103755 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
103757         * m4/mathl.m4: New file.
103759 2003-02-18  Bruno Haible  <bruno@clisp.org>
103761         * MODULES.html.sh (func_all_modules): Add mathl.
103763 2003-02-17  Bruno Haible  <bruno@clisp.org>
103765         * modules/mkdtemp: New module.
103766         * MODULES.html.sh (func_all_modules): Add it.
103768 2003-02-17  Bruno Haible  <bruno@clisp.org>
103770         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
103772 2003-02-17  Bruno Haible  <bruno@clisp.org>
103774         * lib/mkdtemp.h: New file, from GNU gettext.
103775         * lib/mkdtemp.c: New file, from GNU gettext.
103777 2003-02-02  Jim Meyering  <jim@meyering.net>
103779         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
103780         e.g. glibc-2.2.93.
103782 2003-01-31  Bruno Haible  <bruno@clisp.org>
103784         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
103785         'rpl_rename'.
103786         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
103787         'rpl_strnlen'.
103788         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
103789         'rpl_strtod'.
103790         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
103791         'rpl_utime'.
103793 2003-01-31  Bruno Haible  <bruno@clisp.org>
103795         * lib/rename.c: #undef rename before defining rpl_rename.
103796         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
103798 2003-01-30  Bruno Haible  <bruno@clisp.org>
103800         * modules/vasnprintf, modules/vasprintf: New modules.
103801         * MODULES.html.sh (func_all_modules): Add them.
103803 2003-01-30  Bruno Haible  <bruno@clisp.org>
103805         * m4/signed.m4: New file, from GNU gettext.
103806         * m4/longdouble.m4: New file, from GNU gettext.
103807         * m4/wchar_t.m4: New file, from GNU gettext.
103808         * m4/wint_t.m4: New file, from GNU gettext.
103809         * m4/vasnprintf.m4: New file.
103810         * m4/vasprintf.m4: New file.
103812 2003-01-30  Bruno Haible  <bruno@clisp.org>
103814         * lib/printf-args.h: New file, from GNU gettext.
103815         * lib/printf-args.c: New file, from GNU gettext.
103816         * lib/printf-parse.h: New file, from GNU gettext.
103817         * lib/printf-parse.c: New file, from GNU gettext.
103818         * lib/vasnprintf.h: New file, from GNU gettext.
103819         * lib/vasnprintf.c: New file, from GNU gettext.
103820         * lib/asnprintf.c: New file, from GNU gettext.
103821         * lib/vasprintf.h: New file, from GNU gettext with modifications.
103822         * lib/vasprintf.c: New file, from GNU gettext.
103823         * lib/asprintf.c: New file, from GNU gettext.
103825 2003-01-29  Bruno Haible  <bruno@clisp.org>
103827         * modules/stpncpy: New module.
103828         * MODULES.html.sh (func_all_modules): Add it.
103830 2003-01-29  Bruno Haible  <bruno@clisp.org>
103832         * m4/stpncpy.m4: New file.
103834 2003-01-29  Bruno Haible  <bruno@clisp.org>
103836         * lib/stpncpy.h: New file, from GNU gettext with modifications.
103837         * lib/stpncpy.c: New file, from GNU gettext with modifications.
103839 2003-01-28  Bruno Haible  <bruno@clisp.org>
103841         * modules/c-ctype: New module.
103842         * MODULES.html.sh (func_all_modules): Add it.
103844 2003-01-28  Bruno Haible  <bruno@clisp.org>
103846         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
103847         Paul Eggert.
103848         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
103849         Paul Eggert.
103851 2003-01-27  Bruno Haible  <bruno@clisp.org>
103853         * modules/xsetenv: New module.
103854         * MODULES.html.sh (func_all_modules): Add it.
103856 2003-01-27  Bruno Haible  <bruno@clisp.org>
103858         * lib/xsetenv.h: New file, from GNU gettext.
103859         * lib/xsetenv.c: New file, from GNU gettext.
103861 2003-01-23  Jim Meyering  <jim@meyering.net>
103863         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
103864         from working on systems without dirfd (at least Irix and OSF1/Tru64).
103866 2003-01-23  Bruno Haible  <bruno@clisp.org>
103868         * modules/minmax: New module.
103869         * MODULES.html.sh (func_all_modules): Add it.
103871 2003-01-23  Bruno Haible  <bruno@clisp.org>
103873         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
103874         Eggert.
103876 2003-01-22  Bruno Haible  <bruno@clisp.org>
103878         * modules/exit: New module.
103879         * MODULES.html.sh (func_all_modules): Add it.
103881 2003-01-22  Bruno Haible  <bruno@clisp.org>
103883         * lib/exit.h: New file, from GNU gettext.
103885 2003-01-19  Bruno Haible  <bruno@clisp.org>
103887         * gnulib-tool: Recognize option --extract-maintainer.
103888         (func_get_maintainer): New function.
103889         * modules/*: Add Maintainer entry.
103891 2003-01-16  Jim Meyering  <jim@meyering.net>
103893         * m4/regex.m4: The `regex' struct is both input and output.
103894         Initialize it before each use.  Patch by Tim Waugh.
103896 2003-01-16  Bruno Haible  <bruno@clisp.org>
103898         * MODULES.html.sh: Add a table of contents. Add the module name as
103899         leftmost column. Add hyperlinks.
103901 2003-01-15  Bruno Haible  <bruno@clisp.org>
103903         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
103905 2003-01-15  Bruno Haible  <bruno@clisp.org>
103907         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
103908         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
103909         suffix.
103911 2003-01-15  Bruno Haible  <bruno@clisp.org>
103913         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
103915 2003-01-15  Bruno Haible  <bruno@clisp.org>
103917         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
103918         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
103920 2003-01-14  Jim Meyering  <jim@meyering.net>
103922         * lib/same.c (same_name): Tweak a comment.
103924 2003-01-14  Bruno Haible  <bruno@clisp.org>
103926         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
103927         when a string comparison is sufficient.
103929 2003-01-14  Bruno Haible  <bruno@clisp.org>
103931         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
103932         'unsigned int'.
103934 2003-01-14  Bruno Haible  <bruno@clisp.org>
103936         * lib/hash-pjw.c: Add comment about low quality of this function.
103938 2003-01-13  Bruno Haible  <bruno@clisp.org>
103940         * modules/stpcpy: Distribute lib/stpcpy.h.
103941         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
103943 2003-01-13  Bruno Haible  <bruno@clisp.org>
103945         * modules/*: Add a description.
103946         * modules/strpbrk: Fix Makefile.am snippet.
103947         * modules/strtoimax: Fix dependencies.
103948         * modules/strtoumax: Likewise.
103950 2003-01-13  Bruno Haible  <bruno@clisp.org>
103952         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
103953         * modules/alloca (Makefile.am): All object files depend on alloca.h.
103954         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
103956 2003-01-13  Bruno Haible  <bruno@clisp.org>
103958         * gnulib-tool (func_create_testdir): Store config/* files in the main
103959         directory.
103960         * config.rpath: Move to ...
103961         * config/config.rpath: ... here.
103962         * modules/gettext: Contains config/config.rpath, not config.rpath.
103963         * modules/iconv: Likewise.
103965 2003-01-12  Paul Eggert  <eggert@twinsun.com>
103967         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
103968         to avoid collisions with libcurses and libreadline.
103970         * m4/getstr.m4: Remove.
103971         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
103973 2003-01-12  Paul Eggert  <eggert@twinsun.com>
103975         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
103976         to avoid collisions with libcurses and libreadline.
103978         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
103979         * lib/getstr.h, getstr.c: Remove.
103980         * lib/getline.c: Include "getline.h", to check interface.
103981         Move body of old getstr.c here: this defines MIN_CHUNK and
103982         declares getdelim2, which is renamed from getstr.
103983         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
103985         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
103986         All uses changed.
103987         * lib/linebuffer.h: Likewise.
103988         (readline): Remove backward-compatibility macro.
103990 2003-01-12  Paul Eggert  <eggert@twinsun.com>
103992         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
103993         to avoid collisions with libcurses and libreadline.
103994         * getstr: Remove.
103995         * MODULES.html.sh: Remove getstr.
103996         * modules/getline: Depend on unlocked-io, not getstr.
103998 2003-01-12  Jim Meyering  <jim@meyering.net>
104000         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
104002 2003-01-10  Bruno Haible  <bruno@clisp.org>
104004         * modules/alloca: Change Makefile.am requirements. Simplify Include
104005         requirements. Add lib/alloca_.h to file list.
104007 2003-01-10  Bruno Haible  <bruno@clisp.org>
104009         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
104011 2003-01-10  Bruno Haible  <bruno@clisp.org>
104013         * lib/alloca_.h: New file.
104014         * lib/getdate.y: Unconditionally include alloca.h.
104015         * lib/makepath.c: Likewise.
104016         * lib/setenv.c: Likewise.
104017         * lib/userspec.c: Likewise.
104019 2003-01-09  Karl Berry  <karl@gnu.org>
104021         * MODULES.html.sh: include `dirname $0` in PATH, to find
104022         gnulib-tool.
104024 2003-01-09  Bruno Haible  <bruno@clisp.org>
104026         * modules/stdbool: Change configure.ac, Makefile.am requirements.
104027         Simplify Include requirements. Add lib/stdbool.h.in to file list.
104029 2003-01-09  Bruno Haible  <bruno@clisp.org>
104031         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
104033 2003-01-09  Bruno Haible  <bruno@clisp.org>
104035         * lib/stdbool.h.in: New file.
104037 2003-01-09  Bruno Haible  <bruno@clisp.org>
104039         * gnulib-tool (func_all_modules): Ignore files ending in ~.
104040         * MODULES.html.sh: Likewise.
104042 2003-01-08  Jim Meyering  <jim@meyering.net>
104044         * lib/full-write.c: Undefine and define-away `const' after inclusion
104045         of errno.h, not before.  Suggestion from Bruno Haible.
104047 2003-01-08  Bruno Haible  <bruno@clisp.org>
104049         * modules/full-read: Depend on full-write.
104051 2003-01-08  Bruno Haible  <bruno@clisp.org>
104053         * lib/safe-read.c: Include specification header first, to ensure its
104054         selfcontainedness.
104055         * lib/full-write.c: Likewise.
104057 2003-01-07  Jim Meyering  <jim@meyering.net>
104059         * lib/full-write.c: Rework so that it may serve to define full_read,
104060         too.
104061         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
104063 2003-01-07  Bruno Haible  <bruno@clisp.org>
104065         * lib/strtoimax.c: Include <stdint.h> as an alternative to
104066         <inttypes.h>.
104067         * lib/xstrtol.h: Likewise.
104068         * lib/xstrtoimax.c: Likewise.
104069         * lib/xstrtoumax.c: Likewise.
104070         * lib/human.h: Likewise.
104072         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
104073         on systems that have <inttypes.h> but not <stdint.h>.
104075 2003-01-07  Bruno Haible  <bruno@clisp.org>
104077         * MODULES.html.sh: Add copyright notice.
104078         (missed_files): Omit CVS directory entries.
104079         (func_module): Make it work with sed-3.02.
104080         * MODULES.txt: Remove file.
104082 2003-01-06  Jim Meyering  <jim@meyering.net>
104084         * lib/version-etc.c: Update year in translatable copyright string.
104086 2003-01-03  Karl Berry  <karl@gnu.org>
104088         * config/config.{guess,sub}: update from prep.
104090 2003-01-02  Karl Berry  <karl@gnu.org>
104092         * doc/COPYING.DOC: belatedly updated to 1.2.
104094 2003-01-01  Karl Berry  <karl@gnu.org>
104096         * gnulib-tool (func_verify_module): report module name $module in
104097         error message, not $1.
104098         * gnulib-tool (create-testdir): don't complain if destdir couldn't
104099         be created, only if it doesn't exist.
104100         * gnulib-tool (last_checkin_date): don't expand the $Date here.
104102 2002-12-31  Paul Eggert  <eggert@twinsun.com>
104104         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
104106 2002-12-31  Paul Eggert  <eggert@twinsun.com>
104108         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
104109         memcmp if strcoll doesn't work.
104111 2002-12-31  Bruno Haible  <bruno@clisp.org>
104113         * lib/utime.c (utime_null): No need to call ftruncate if the file was
104114         nonempty.
104116 2002-12-31  Bruno Haible  <bruno@clisp.org>
104118         * lib/memcoll.c (STRCOLL): New macro.
104119         (memcoll): Use it.
104121 2002-12-31  Bruno Haible  <bruno@clisp.org>
104123         * lib/localcharset.h: New file.
104124         * lib/localcharset.c: Include it.
104125         * lib/unicodeio.c: Likewise.
104127 2002-12-31  Bruno Haible  <bruno@clisp.org>
104129         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
104130         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
104132 2002-12-31  Bruno Haible  <bruno@clisp.org>
104134         * lib/getline.h: Include <stddef.h>, for size_t.
104136         * lib/unicodeio.h: Include <stddef.h>, for size_t.
104137         * lib/unicodeio.c: Don't include <stddef.h>.
104139 2002-12-31  Bruno Haible  <bruno@clisp.org>
104141         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
104142         HAVE_TM_ZONE.
104144 2002-12-24  Karl Berry  <karl@gnu.org>
104146         * config/config.guess: update from prep.
104148 2002-12-24  Bruno Haible  <bruno@clisp.org>
104150         General infrasructure.
104151         * m4/README: Rewritten.
104152         * m4/onceonly.m4: New file.
104153         * m4/onceonly_2_57.m4: New file.
104155         Module atexit.
104156         * m4/atexit.m4: New file.
104158         Module strtod.
104159         * m4/strtod.m4: New file.
104161         Module strtol.
104162         * m4/strtol.m4: New file.
104164         Module strtoul.
104165         * m4/strtoul.m4: New file.
104167         Module memchr.
104168         * m4/memchr.m4: New file.
104170         Module memcmp.
104171         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
104172         (jm_FUNC_MEMCMP): Invoke it.
104174         Module memcpy.
104175         * m4/memcpy.m4: New file.
104177         Module memmove.
104178         * m4/memmove.m4: New file.
104180         Module memset.
104181         * m4/memset.m4: New file.
104183         Module strcspn.
104184         * m4/strcspn.m4: New file.
104186         Module strpbrk.
104187         * m4/strpbrk.m4: New file.
104189         Module strstr.
104190         * m4/strstr.m4: New file.
104192         Module strerror.
104193         * m4/strerror.m4: New file.
104195         Module mktime.
104196         * m4/mktime.m4: Renamed from jm-mktime.m4.
104197         (gl_PREREQ_MKTIME): New macro.
104198         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
104200         Module malloc.
104201         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
104202         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
104203         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
104205         Module realloc.
104206         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
104207         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
104208         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
104210         Module strftime.
104211         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
104212         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
104213         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
104214         gl_TM_GMTOFF.
104215         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
104217         Module xalloc.
104218         * m4/xalloc.m4: New file.
104220         Module alloca.
104221         * m4/alloca.m4: New file.
104223         Module putenv.
104224         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
104225         (jm_FUNC_PUTENV): Invoke it.
104227         Module setenv.
104228         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
104229         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
104230         when invoked twice.
104231         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
104232         gt_FUNC_SETENV.
104234         Module memrchr.
104235         * m4/memrchr.m4: New file.
104237         Module stpcpy.
104238         * m4/stpcpy.m4: New file.
104240         Module strcase.
104241         * m4/strcase.m4: New file.
104243         Module strdup.
104244         * m4/strdup.m4: New file.
104246         Module strnlen.
104247         * m4/strnlen.m4: New file.
104249         Module strndup.
104250         * m4/strndup.m4: New file.
104252         Module xstrtod.
104253         * m4/xstrtod.m4: New file.
104255         Module xstrtol.
104256         * m4/xstrtol.m4: New file.
104258         Module getdate.
104259         * m4/getdate.m4: New file.
104261         Module unlocked-io.
104262         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
104263         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
104264         * m4/jm-glibc-io.m4n: Remove file.
104266         Module long-options.
104267         * m4/long-options.m4: New file.
104269         Module md5.
104270         * m4/md5.m4: New file.
104272         Module sha.
104273         * m4/sha.m4: New file.
104275         Module getstr.
104276         * m4/getstr.m4: New file.
104278         Module getline.
104279         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
104280         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
104281         <sys/types.h>, for size_t. Use the function name gnu_getline, not
104282         simply getline. Infoke gl_PREREQ_GETLINE.
104284         Module obstack.
104285         * m4/obstack.m4: New file.
104287         Module hash.
104288         * m4/hash.m4: New file.
104290         Module readtokens.
104291         * m4/readtokens.m4: New file.
104293         Module strverscmp.
104294         * m4/strverscmp.m4: New file.
104296         Module stdbool.
104297         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
104298         OSF/1.
104300         Module strtoll.
104301         * m4/strtoll.m4: New file.
104303         Module strtoull.
104304         * m4/strtoull.m4: New file.
104306         Module strtoimax.
104307         * m4/strtoimax.m4: New file.
104309         Module strtoumax.
104310         * m4/strtoumax.m4: New file.
104312         Module xstrtoimax.
104313         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
104314         jm_AC_PREREQ_XSTRTOIMAX.
104315         Moved the strtol prerequisites to strtol.m4.
104316         Moved the strtoll prerequisites to strtoll.m4.
104317         Moved the strtoimax prerequisites to strtoimax.m4.
104319         Module xstrtoumax.
104320         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
104321         jm_AC_PREREQ_XSTRTOUMAX.
104322         Moved the strtoul prerequisites to strtoul.m4.
104323         Moved the strtoull prerequisites to strtoull.m4.
104324         Moved the strtoumax prerequisites to strtoumax.m4.
104326         Module chown.
104327         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
104328         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
104330         Module dup2.
104331         * m4/dup2.m4: New file.
104333         Module ftruncate.
104334         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
104335         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
104337         Module getgroups.
104338         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
104339         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
104341         Module gettimeofday.
104342         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
104343         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
104344         gl_PREREQ_GETTIMEOFDAY.
104346         Module mkdir.
104347         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
104348         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
104350         Module mkstemp.
104351         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
104352         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
104353         jm_AC_TYPE_UINTMAX_T.
104354         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
104356         Module stat.
104357         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
104358         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
104360         Module lstat.
104361         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
104362         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
104364         Module timespec.
104365         * m4/timespec.m4 (gl_TIMESPEC): New macro.
104366         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
104367         * m4/st_mtim.m4: Indentation.
104369         Module nanosleep.
104370         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
104371         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
104372         gl_PREREQ_NANOSLEEP.
104374         Module regex.
104375         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
104376         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
104377         (gl_REGEX): New macro.
104379         Module rename.
104380         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
104381         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
104383         Module rmdir.
104384         * m4/rmdir.m4: New file.
104386         Module utime.
104387         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
104388         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
104389         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
104391         Module dirname.
104392         * m4/dirname.m4: New file.
104394         Module getopt.
104395         * m4/getopt.m4: New file.
104397         Module unistd-safer.
104398         * m4/unistd-safer.m4: New file.
104400         Module fnmatch.
104401         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
104402         declaration.
104403         (gl_PREREQ_FNMATCH_EXTRA): New macro.
104404         (gl_FUNC_FNMATCH_POSIX): New macro.
104405         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
104406         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
104407         simply fnmatch.
104409         Module exclude.
104410         * m4/exclude.m4: New file.
104412         Module human.
104413         * m4/human.m4: New file.
104415         Module acl.
104416         * m4/acl.m4: Nop.
104418         Module backupfile.
104419         * m4/backupfile.m4: New file.
104420         * m4/d-ino.m4: Indentation.
104422         Module fsusage.
104423         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
104424         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
104425         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
104427         Module dirfd.
104428         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
104429         requirements.
104431         Module euidaccess.
104432         * m4/euidaccess.m4: New file.
104434         Module file-type.
104435         * m4/file-type.m4: New file.
104437         Module fileblocks.
104438         * m4/fileblocks.m4: New file.
104440         Module filemode.
104441         * m4/filemode.m4: New file.
104443         Module isdir.
104444         * m4/isdir.m4: New file.
104446         Module lchown.
104447         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
104448         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
104450         Module makepath.
104451         * m4/makepath.m4: New file.
104453         Module modechange.
104454         * m4/modechange.m4: New file.
104456         Module mountlist.
104457         * m4/mountlist.m4: New file.
104458         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
104459         Indentation.
104461         Module path-concat.
104462         * m4/path-concat.m4: New file.
104464         Module pathmax.
104465         * m4/pathmax.m4: New file.
104467         Module same.
104468         * m4/same.m4: New file.
104470         Module save-cwd.
104471         * m4/save-cwd.m4: New file.
104473         Module savedir.
104474         * m4/savedir.m4: New file.
104476         Module xgetcwd.
104477         * m4/xgetcwd.m4: New file.
104478         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
104480         Module xreadlink.
104481         * m4/xreadlink.m4: New file.
104483         Module safe-read.
104484         * m4/safe-read.m4: New file.
104486         Module safe-write.
104487         * m4/safe-write.m4: New file.
104489         Module closeout.
104490         * m4/closeout.m4: New file.
104492         Module stdio-safer.
104493         * m4/stdio-safer.m4: New file.
104495         Module getpass.
104496         * m4/getpass.m4: New file.
104498         Module getugroups.
104499         * m4/getugroups.m4: New file.
104501         Module group-member.
104502         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
104503         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
104505         Module idcache.
104506         * m4/idcache.m4: New file.
104508         Module userspec.
104509         * m4/userspec.m4: New file.
104511         Module gettime.
104512         * m4/clock_time.m4: New file.
104513         * m4/gettime.m4: New file.
104515         Module settime.
104516         * m4/settime.m4: New file.
104518         Module posixtm.
104519         * m4/posixtm.m4: New file.
104521         Module gethostname.
104522         * m4/gethostname.m4: New file.
104524         Module canon-host.
104525         * m4/canon-host.m4: New file.
104527         Module gettext.
104528         * m4/codeset.m4: New file, from gettext-0.11.5.
104529         * m4/gettext.m4: New file, from gettext-0.11.5.
104530         * m4/glibc21.m4: New file, from gettext-0.11.5.
104531         * m4/iconv.m4: New file, from gettext-0.11.5.
104532         * m4/intdiv0.m4: New file, from gettext-0.11.5.
104533         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
104534         * m4/inttypes.m4: New file, from gettext-0.11.5.
104535         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
104536         * m4/isc-posix.m4: New file, from gettext-0.11.5.
104537         * m4/lcmessage.m4: New file, from gettext-0.11.5.
104538         * m4/lib-ld.m4: New file, from gettext-0.11.5.
104539         * m4/lib-link.m4: New file, from gettext-0.11.5.
104540         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
104541         * m4/progtest.m4: New file, from gettext-0.11.5.
104542         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
104543         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
104544         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
104546         Module localcharset.
104547         * m4/localcharset.m4: New file.
104549         Module hard-locale.
104550         * m4/hard-locale.m4: New file.
104552         Module mbswidth.
104553         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
104554         onceonly macros.
104555         * m4/mbrtowc.m4: Add comment.
104557         Module memcasecmp.
104558         * m4/memcasecmp.m4: New file.
104560         Module memcoll.
104561         * m4/memcoll.m4: New file.
104563         Module unicodeio.
104564         * m4/unicodeio.m4: New file.
104566         Module rpmatch.
104567         * m4/rpmatch.m4: New file.
104569         Module yesno.
104570         * m4/yesno.m4: New file.
104572         Module exitfail.
104573         * m4/exitfail.m4: New file.
104575         Module c-stack.
104576         * m4/c-stack.m4 (gl_C_STACK): New macro.
104577         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
104579         Module error.
104580         * m4/error.m4 (gl_ERROR): New macro.
104581         (jm_PREREQ_ERROR): Use onceonly macros.
104583         Module fatal.
104584         * m4/fatal.m4: New file.
104586         Module getloadavg.
104587         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
104588         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
104590         Module getpagesize.
104591         * m4/getpagesize.m4: New file.
104593         Module getusershell.
104594         * m4/getusershell.m4: New file.
104596         Module physmem.
104597         * m4/physmem.m4: New file.
104599         Module posixver.
104600         * m4/posixver.m4: New file.
104602         Module quotearg.
104603         * m4/quotearg.m4: New file.
104605         Module quote.
104606         * m4/quote.m4: New file.
104608         Module readutmp.
104609         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
104611         Module sig2str.
104612         * m4/sig2str.m4: New file.
104614         Other.
104615         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
104616         ulonglong.m4.
104617         * m4/intmax_t.m4: New file.
104618         * m4/d-type.m4: Indentation.
104619         * m4/jm-macros.m4: Update.
104620         * m4/prereq.m4 (jm_PREREQ): Update.
104621         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
104622         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
104623         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
104624         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
104625         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
104626         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
104627         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
104628         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
104629         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
104630         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
104631         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
104632         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
104633         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
104634         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
104635         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
104636         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
104637         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
104638         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
104639         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
104641 2002-12-24  Bruno Haible  <bruno@clisp.org>
104643         * MODULES.txt: Update according to m4/ changes.
104645         Module gettext.
104646         * config.rpath: New file, from gettext-0.11.5.
104648         * modules/*: New module descriptions.
104649         * gnulib-tool: New file.
104650         * MODULES.html.sh: New file.
104652 2002-12-21  Karl Berry  <karl@gnu.org>
104654         * doc/fdl.texi: update to version 1.2.
104656 2002-12-19  Karl Berry  <karl@gnu.org>
104658         * config/config.guess: update from prep.
104660 2002-12-18  Bruno Haible  <bruno@clisp.org>
104662         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
104663         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
104665 2002-12-17  Bruno Haible  <bruno@clisp.org>
104667         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
104668         stdlib.h, string.h.
104670 2002-12-17  Bruno Haible  <bruno@clisp.org>
104672         * lib/canon-host.c (strdup): Remove unused declaration.
104674         * lib/fsusage.c: Include full_read.h.
104675         (get_fs_usage): Use full_read instead of safe_read.
104677         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
104679 2002-12-12  Karl Berry  <karl@gnu.org>
104681         * config/config.guess: update from prep.
104683 2002-12-11  Bruno Haible  <bruno@clisp.org>
104685         * m4/setenv.m4: New file, from gettext-0.11.5.
104687 2002-12-11  Bruno Haible  <bruno@clisp.org>
104689         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
104690         not unsetenv().
104691         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
104692         modifications:
104694         2002-12-11  Bruno Haible  <bruno@clisp.org>
104696                 * setenv.c (alloca): Fall back to malloc.
104697                 (freea): New macro.
104698                 (setenv): Use freea() to free memory allocated with alloca().
104700         2002-11-13  Bruno Haible  <bruno@clisp.org>
104702                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
104703                 function declarations.
104704                 * unsetenv.c (unsetenv): Likewise.
104706         2002-03-04  Bruno Haible  <bruno@clisp.org>
104708                 Portability to AIX 4.3.3.
104709                 * unsetenv.c: New file, extracted from setenv.c.
104710                 * setenv.c: Move the unsetenv() function to unsetenv.c.
104712         2001-12-20  Bruno Haible  <bruno@clisp.org>
104714                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
104715                 use malloc instead. For SunOS 4.
104717         2001-12-11  Bruno Haible  <bruno@clisp.org>
104719                 * setenv.c: Declare alloca.
104720                 (compar_fn_t): New typedef.
104721                 (KNOWN_VALUE, STORE_VALUE): Use it.
104723         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
104724         setenv.h.
104726 2002-12-10  Paul Eggert  <eggert@twinsun.com>
104728         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
104729         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
104730         Choose values that are less likely to collide with system fnmatch
104731         options.
104732         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
104733         defined (e.g., a pure POSIX system).
104734         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
104735         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
104737 2002-12-06  Paul Eggert  <eggert@twinsun.com>
104739         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
104740         a pain in practice to deal with generated m4 files.  This change
104741         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
104743         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
104744         and jm-glibc-io.m4, as they are no longer a special case.
104745         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
104746         kludge and the auto-generation stuff.  Check only whether the
104747         functions are declared, not whether they exist, since older hosts
104748         that don't declare the functions can't use the optimization anyway.
104750 2002-12-06  Jim Meyering  <jim@meyering.net>
104752         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
104754         Merge in changes from libc's misc/error.c, in preparation
104755         for the merge of gnulib's changes back into libc.
104757         * lib/error.c (_): Define only if not already defined.
104758         Move definition to follow all #include directives.
104759         Include unlocked-io.h only if !_LIBC.
104760         [_LIBC]: Include <libio/libioP.h>.
104761         [USE_IN_LIBIO]: Include <libio/iolibio.h>
104762         (fflush): Tweak definition to use INTUSE.
104763         (putc): Define.
104765 2002-12-05  Paul Eggert  <eggert@twinsun.com>
104767         * lib/alloca.c [defined emacs]: Include "lisp.h".
104768         (xalloc_die) [defined emacs]: New macro.
104769         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
104770         [! defined emacs]: Include <xalloc.h>.
104771         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
104772         (pointer): Typedef to POINTER_TYPE *.
104773         (malloc): Remove decl; we now always use xmalloc.
104774         (alloca): Use old-style definition, since Emacs needs this.
104775         Check for arithmetic overflow when computing combined size.
104777 2002-12-04  Paul Eggert  <eggert@twinsun.com>
104779         Do not generate unlocked-io.h automatically, since it's easier to
104780         maintain it by hand.
104782         * lib/unlocked-io.h: New file, from GNU diffutils,
104783         but with proper copyright notice and attribution.
104784         * lib/gen-uio: Remove.
104785         * lib/Makefile.am: Add copyright notice.
104786         (libfetish_a_SOURCES): Add unlocked-io.h.
104787         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
104788         (DISTCLEANFILES, io_functions): Remove macros.
104789         (EXTRA_DIST): Remove gen_uio.
104790         (unlocked-io.h): Remove rule.
104792 2002-12-04  Jim Meyering  <jim@meyering.net>
104794         Reflect the fact that stat.c and lstat.c are no longer generated.
104795         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
104796         (DISTCLEANFILES): Likewise.
104797         (EXTRA_DIST): Likewise.
104798         (all_local): Don't depend on stat.c or lstat.c.
104799         (stat.c, lstat.c): Remove rules.
104800         (EXTRA_DIST): Remove xstat.in.
104802         * lib/xstat.in: Remove file.  Contents moved into stat.c.
104803         * lib/stat.c: New file.  Contents mostly from xstat.in.
104804         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
104805         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
104807         * lib/safe-read.c: Rework so that it may serve to define safe_write,
104808         too.
104809         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
104811 2002-12-03  Jim Meyering  <jim@meyering.net>
104813         * lib/safe-read.c, safe-write.c: Change variable names and comments,
104814         but not semantics, to minimize the differences between these two files.
104815         (safe_read): Change comment to mention SAFE_READ_ERROR.
104817         * lib/safe-read.c (IS_EINTR): Define.
104818         (safe_read): Use IS_EINTR in place of in-function cpp directives.
104820 2002-12-02  Jim Meyering  <jim@meyering.net>
104822         * lib/safe-read.c (EINTR): Define.
104823         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
104824         (INT_MAX): Provide fallback.
104825         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
104827         * lib/safe-read.h (SAFE_READ_ERROR): Define.
104829 2002-12-02  Bruno Haible  <bruno@clisp.org>
104831         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
104832         Define, taken from safe-read.c.
104833         (INT_MAX): Provide fallback.
104834         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
104835         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
104837         * lib/safe-read.c (EINTR): Remove definition.
104838         (safe_read): Don't use EINTR if it is absent.
104840 2002-12-01  Jim Meyering  <jim@meyering.net>
104842         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
104843         zero.
104844         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
104846 2002-11-27  Paul Eggert  <eggert@twinsun.com>
104848         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
104849         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
104850         with `if (! (value < limit)) abort ();', for readability.
104852 2002-11-26  Karl Berry  <karl@gnu.org>
104854         * lib/strdup.c: copy from libc again, with jim's ok.
104855         * lib/.cppi-disable: re-add strdup.c
104857 2002-11-25  Karl Berry  <karl@gnu.org>
104859         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
104860         instead of "strtol.c".
104862 2002-11-25  Karl Berry  <karl@gnu.org>
104864         * config/install-sh: update from automake for variable quoting, $0 in
104865         error msgs, etc.
104867         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
104868         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
104869         entry.
104871 2002-11-25  Jim Meyering  <jim@meyering.net>
104873         * lib/mktime.c: Sync from libc, now that it has the latest fix.
104875 2002-11-24  Karl Berry  <karl@gnu.org>
104877         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
104878         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
104880 2002-11-24  Jim Meyering  <jim@meyering.net>
104882         Update from coreutils:
104884         * lib/mktime.c: Merge in changes from libc.
104886         Avoid a link-time failure on some Linux systems.
104887         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
104888         (otherwise).
104889         (__mon_yday): Declare with the STATIC attribute.
104890         (__mktime_internal): Likewise.
104891         Based on a report from Greg Schafer.
104893 2002-11-23  Jim Meyering  <jim@meyering.net>
104895         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
104896         Use `unsigned', not `int', as type of index.
104898         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
104900         * lib/fsusage.c: Remove unneeded parentheses around operands of
104901         `defined'.
104903 2002-11-22  Paul Eggert  <eggert@twinsun.com>
104905         * lib/quotearg.h: Allow multiple inclusion by surrounding with
104906         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
104907         so that we can be included first.
104908         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
104909         * lib/quotearg.c: Include quotearg.h immediately after config.h.
104910         No need to include stddef.h or sys/types.h any more.
104911         Surround local include files with "", not "<>".
104912         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
104913         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
104914         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
104915         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
104916         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
104917         (ISPRINT): Remove; no longer needed now that we assume C89.
104919         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
104920         Preserve errno.
104922         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
104923         quotearg_char): Use SIZE_MAX rather than
104924         (size_t) -1 when we are talking about "infinity".
104926         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
104928 2002-11-22  Paul Eggert  <eggert@twinsun.com>
104930         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
104931         hint that one should use `if (! x) abort ();' rather than `assert
104932         (x);', and anyway it's one less thing to worry about configuring.
104933         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
104934         hash_rehash, hash_insert): Use abort rather than assert.
104936 2002-11-22  Bruno Haible  <bruno@clisp.org>
104938         * lib/safe-read.h: Assume C89. Add comments.
104939         (safe_read): Change return type to size_t.
104940         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
104941         byte counts > SSIZE_MAX correctly.
104942         * lib/safe-write.h: New file.
104943         * lib/safe-write.c: New file.
104944         * lib/full-read.h: New file.
104945         * lib/full-read.c: New file.
104946         * lib/full-write.h: Assume C89. Add comments.
104947         * lib/full-write.c: Include safe-write.h.
104948         (full_write): Rewritten to use safe_write.
104949         Suggested by Jim Meyering and Paul Eggert.
104951 2002-11-21  Jim Meyering  <jim@meyering.net>
104953         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
104955         Merge in changes from the coreutils.
104957         2002-09-25  Paul Eggert  <eggert@twinsun.com>
104958         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
104959         <stdint.h>.
104960         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
104961         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
104962         int.  Work more efficiently if X is the same width as uintmax_t.
104963         Do not compare X to -1, to avoid bogus compiler warning.
104964         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
104965         Don't assume that f_frsize and f_bsize are the same type.
104967         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
104968         warning on FreeBSD.
104970         * lib/makepath.c (make_path): Restore umask *before* creating the final
104971         component.
104972         (make_path): Minor reformatting.
104974         * lib/xmalloc.c: Adjust to work with new autoconf macros,
104975         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
104976         HAVE_MALLOC/HAVE_REALLOC.
104978         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
104979         dummy ones.  At least on GNU/Linux systems, `auto' means something
104980         else.
104981         From Michael Stone.
104983 2002-11-21  Bruno Haible  <bruno@clisp.org>
104985         Remove case insensitive option matching.
104986         * lib/argmatch.h (argcasematch): Remove declaration.
104987         (ARGCASEMATCH): Remove macro.
104988         (__xargmatch_internal): Remove case_sensitive argument.
104989         (XARGMATCH): Update.
104990         (XARGCASEMATCH): Remove macro.
104991         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
104992         case_sensitive argument.
104993         (argcasematch): Remove function.
104994         (__xargmatch_internal): Remove case_sensitive argument.
104995         (main): Use XARGMATCH instead of XARGCASEMATCH.
104997         * lib/xmalloc.c: Change compile-time error message. Add comment about
104998         required autoconf version.
105000 2002-11-20  Paul Eggert  <eggert@twinsun.com>
105002         Merge argmatch cleanups from Bison.  Assume C89.
105004         * lib/argmatch.c: Include config.h here, not in argmatch.h.
105005         Include stdlib.h, for EXIT_FAILURE.
105006         Always include <string.h>, since we assume C89.
105007         (EXIT_FAILURE): Remove pre-C89 bug workaround.
105008         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
105009         Include <stddef.h> instead, since it's all we need for size_t.
105010         (PARAMS): Remove.  All uses removed.
105011         (ARRAY_CARDINALITY): Do not bother to #undef.
105012         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
105013         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
105014         Remove unnecessary parentheses.
105015         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
105016         Insert necessary parentheses.
105017         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
105018         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
105020 2002-11-19  Bruno Haible  <bruno@clisp.org>
105022         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
105023         * lib/mbswidth.h: Include <stddef.h>, for size_t.
105025         * lib/mbswidth.h (PARAMS): Remove macro.
105026         (mbswidth, mbsnwidth): Use ANSI C function declarations.
105027         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
105029         * lib/gcd.h (PARAMS): Remove macro.
105030         (gcd): Use ANSI C function declarations.
105031         * lib/gcd.c (gcd): Likewise.
105033 2002-11-15  Bruno Haible  <bruno@clisp.org>
105035         * lib/strcspn.c: Include <stddef.h>.
105036         (strcspn): Use ANSI C function declaration. Change return type to
105037         size_t. Use NULL.
105038         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
105039         (strpbrk): Use NULL.
105040         * lib/strpbrk.h (PARAMS): Remove macro.
105041         (strpbrk): Use ANSI C function declaration.
105042         * lib/strstr.c: Don't include <sys/types.h>.
105043         * lib/strstr.h (PARAMS): Remove macro.
105044         (strstr): Use ANSI C function declarations.
105046 2002-11-14  Karl Berry  <karl@gnu.org>
105048         * config/mkinstalldirs: `do' on separate line, instead of
105049         `for var; do'.
105051 2002-11-06  Bruno Haible  <bruno@clisp.org>
105053         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
105054         * lib/gcd.c (gcd): Likewise.
105056 2002-11-05  Bruno Haible  <bruno@clisp.org>
105058         * lib/gcd.h: New file, from gettext-0.11.5.
105059         * lib/gcd.c: New file, from gettext-0.11.5.
105061 2002-11-05  Bruno Haible  <bruno@clisp.org>
105063         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
105064         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
105065         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
105066         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
105068         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
105069         <libintl.h>.
105070         * lib/makepath.c: Include gettext.h instead of <locale.h> and
105071         <libintl.h>.
105073         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
105074         * lib/human.c: Include gettext.h instead of <libintl.h>.
105075         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
105076         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
105077         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
105078         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
105079         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
105080         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
105081         (textdomain): Remove definition.
105082         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
105084         * lib/long-options.c: Remove include of <libintl.h> and definition of
105085         _.
105086         * lib/same.c: Remove include of <libintl.h> and definition of _.
105088 2002-11-04  Owen Taylor  <otaylor@redhat.com>
105090         * lib/config.charset: A few additions for Solaris.
105092 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
105094         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
105095         * lib/localcharset.c (locale_charset): Declare as extern "C".
105097 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
105099         * lib/config.charset: msdos in uk_UA uses CP1125.
105101 2002-11-04  Bruno Haible  <bruno@clisp.org>
105103         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
105104         * lib/strcase.h: New file, from GNU gettext-0.11.5.
105105         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
105106         * lib/strstr.h: New file, from GNU gettext-0.11.5.
105107         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
105109 2002-11-04  Bruno Haible  <bruno@clisp.org>
105111         * lib/localcharset.c (locale_charset): Don't return an empty string.
105113 2002-11-04  Bruno Haible  <bruno@clisp.org>
105115         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
105116         aliases.
105118 2002-11-04  Bruno Haible  <bruno@clisp.org>
105120         * lib/config.charset: Update for newest glibc. Add canonical names
105121         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
105123 2002-11-04  Bruno Haible  <bruno@clisp.org>
105125         * lib/config.charset: Add support for NetBSD.
105127 2002-11-04  Bruno Haible  <bruno@clisp.org>
105129         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
105131 2002-11-01  Bruno Haible  <bruno@clisp.org>
105133         * configure.in: Add AC_CONFIG_AUX_DIR call.
105134         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
105135         test/Makefile.
105136         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
105138 2002-09-28  Karl Berry  <karl@gnu.org>
105140         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
105141         installed automake until the next release, since changes have been
105142         made.
105144 2002-09-25  Karl Berry  <karl@gnu.org>
105146         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
105147         * lib/getopt*: copy from libc/posix.
105148         * lib/gettext.h: copy from gettext.
105149         * lib/.cppi-disable: add strdup.c, gettext.h.
105151 2002-09-25  Karl Berry  <karl@gnu.org>
105153         * config/srclist.txt: enable gettext.h check.
105154         * config/config.{guess,sub}: update from prep.
105155         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
105156                 from automake 1.6.3.
105157         See srclist*.
105159 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
105161         * regex.c (PATFETCH): Remove the translating fetch.
105162         (PATFETCH_RAW): Rename to PATFETCH.
105163         (set_image_of_range): New fun.
105164         (SET_RANGE_TABLE_WORK_AREA): Use it.
105165         (regex_compile): Don't translate the pattern chars so eagerly.
105166         Only do it when inserting an `exactn' bytecode or when handling
105167         a char-range.
105168         (mutually_exclusive_p): Avoid empty statement.
105170 2002-07-06  Jim Meyering  <meyering@lucent.com>
105172         * m4/README: Don't mention Makefile.am.in.
105173         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
105175 2002-07-01  Jim Meyering  <meyering@lucent.com>
105177         * lib/c-stack.c: Include sys/time.h.
105178         From Volker Borchert.
105180 2002-06-26  Paul Eggert  <eggert@twinsun.com>
105182         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
105184 2002-06-26  Paul Eggert  <eggert@twinsun.com>
105186         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
105187         New macro.  Use it uniformly instead of
105188         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
105189         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
105190         reported by Vin Shelton.
105192 2002-06-22  Paul Eggert  <eggert@twinsun.com>
105194         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
105195         Do not assume SA_SIGINFO behavior.
105196         Bug reported by Jim Meyering on NetBSD 1.5.2.
105198 2002-06-22  Jim Meyering  <meyering@lucent.com>
105200         * m4/c-stack.m4: New file, from diffutils-2.8.2.
105201         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
105203         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
105204         now that configure.ac uses AC_GNU_SOURCE.
105205         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
105206         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
105208         Update to latest tools.  Suggestions from Paul Eggert.
105209         * m4/stdbool.m4: New file, from diffutils-2.8.2.
105210         * m4/gnu-source.m4: Update from diffutils-2.8.2.
105211         * m4/fnmatch.m4: Likewise.
105212         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
105213         to AC_HEADER_STDBOOL
105215 2002-06-22  Jim Meyering  <meyering@lucent.com>
105217         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
105218         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
105220 2002-06-22  Jim Meyering  <meyering@lucent.com>
105222         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
105224         * lib/exitfail.c, exitfail.h: Likewise.
105225         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
105227         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
105228         of fnmatch.h.
105229         (EXTRA_DIST): Add fnmatch_loop.c.
105230         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
105232         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
105233         * lib/fnmatch.c: Update from diffutils-2.8.2.
105234         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
105235         * lib/fnmatch.h: Remove file.
105237 2002-06-21  Jim Meyering  <meyering@lucent.com>
105239         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
105240         * m4/mbrtowc.m4: Likewise.
105242         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
105243         * m4/mbswidth.m4: Reflect name change:
105244         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
105245         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
105247         * m4/lib-link.m4: Update from gettext-0.11.2.
105248         * m4/gettext.m4: Likewise.
105250         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
105251         From Alfred M. Szmidt.
105253 2002-06-18  Paul Eggert  <eggert@twinsun.com>
105255         * lib/file-type.h: Report an error if neither S_ISREG nor
105256         S_IFREG is defined, instead of using a test specific to glibc
105257         2.2.  This should be safe, since POSIX requires S_ISREG and
105258         Unix Version 7 had S_IFREG.  We don't need to check for
105259         <sys/types.h> since we don't use any symbols that it defines.
105261 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
105263         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
105264         $@-t, so that each temporary file name is unique and valid in the first
105265         8 characters, for operation under DOS.
105267 2002-06-15  Paul Eggert  <eggert@twinsun.com>
105269         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
105271 2002-06-15  Jim Meyering  <meyering@lucent.com>
105273         Work even with DJGPP 2.03, which lacks support for symlinks.
105274         From Richard Dawe.
105275         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
105276         is defined.
105277         * lib/lchown.c (S_ISLNK): Likewise.
105279 2002-06-15  Jim Meyering  <meyering@lucent.com>
105281         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
105282         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
105283         have been included before this file.
105285 2002-06-14  Jim Meyering  <meyering@lucent.com>
105287         * lib/file-type.h: Use the version from diffutils-2.8.2.
105288         * lib/file-type.c: Likewise.
105290 2002-06-07  Jim Meyering  <meyering@lucent.com>
105292         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
105293         They're needed at least for NetBSD 1.5.2.
105294         ($statxfs_includes): Include those same headers.
105295         ($statxfs_includes): Include sys/vfs.h if available.
105296         ($statxfs_includes): Likewise for sys/statvfs.h.
105297         Check for the following members in both structs statfs and statvfs:
105298         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
105300 2002-06-01  Jim Meyering  <meyering@lucent.com>
105302         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
105303         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
105305 2002-05-28  Jim Meyering  <meyering@lucent.com>
105307         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
105308         Reported by Volker Borchert.
105310 2002-05-27  Jim Meyering  <meyering@lucent.com>
105312         Fix a problem seen only on nonconforming systems whereby ls.c's
105313         use of localtime, and then of gettimeofday would cause trouble:
105314         the localtime call used to initialize rpl_gettimeofday's save
105315         mechanism would clobber ls's current local time information so
105316         that in any long listing the first file would always be listed
105317         with date 1970-01-01.  Analysis by Volker Borchert.
105319         * lib/gettimeofday.c (localtime): Undefine.
105320         (rpl_localtime): New function.
105322 2002-05-27  Jim Meyering  <meyering@lucent.com>
105324         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
105325         localtime.
105327         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
105328         use the replacement function; it wouldn't resolve at link time.
105329         Reported by Volker Borchert.
105331 2002-05-22  Jim Meyering  <meyering@lucent.com>
105333         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
105334         file-type.h.
105335         * lib/file-type.h: New file.
105336         * lib/file-type.c (file_type): New file/function.  Extracted from
105337         diffutils.
105339 2002-04-30  Jim Meyering  <meyering@lucent.com>
105341         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
105343 2002-04-29  Paul Eggert  <eggert@twinsun.com>
105345         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
105347 2002-04-29  Paul Eggert  <eggert@twinsun.com>
105349         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
105350         Do not check for alloca.h (no longer used) or stdbool.h (was never
105351         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
105353 2002-04-29  Paul Eggert  <eggert@twinsun.com>
105355         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
105357 2002-04-29  Jim Meyering  <meyering@lucent.com>
105359         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
105360         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
105361         Use AC_FUNC_STRNLEN here instead.
105363         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
105364         With autoconf-2.53a, it's part of AC_PROG_CC.
105366 2002-04-28  Paul Eggert  <eggert@twinsun.com>
105368         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
105369         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
105371 2002-04-28  Paul Eggert  <eggert@twinsun.com>
105373         * lib/sig2str.h, lib/sig2str.c: New files.
105374         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
105376 2002-04-28  Paul Eggert  <eggert@twinsun.com>
105378         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
105379         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
105380         of 127, since 64 is the largest conceivable number for ancient
105381         nonstandard hosts.
105382         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
105384 2002-04-28  Jim Meyering  <meyering@lucent.com>
105386         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
105388 2002-04-24  Jim Meyering  <meyering@lucent.com>
105390         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
105391         (jm_PREREQ): Use it.
105393         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
105394         mach/mach.h fcntl.h.
105395         Check for this function: setlocale.
105397 2002-04-24  Jim Meyering  <meyering@lucent.com>
105399         * lib/gettext.h: New file, from Gettext.
105400         * lib/Makefile.am (INCLUDES): Remove -I../intl.
105401         (libfetish_a_SOURCES): Add gettext.h.
105403 2002-04-16  Jim Meyering  <meyering@lucent.com>
105405         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
105406         ut_pid, ut_id, ut_exit.
105408 2002-04-16  Jim Meyering  <meyering@lucent.com>
105410         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
105411         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
105412         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
105414 2002-04-12  Jim Meyering  <meyering@lucent.com>
105416         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
105417         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
105418         existence of the getmntinfo function.  Needed for Darwin 5.3.
105420         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
105421         This is necessary at least on Darwin 5.3.
105423         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
105424         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
105425         strnlen.o in the library, and that makes some versions of ranlib
105426         object.
105428 2002-04-12  Jim Meyering  <meyering@lucent.com>
105430         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
105432 2002-04-09  Jim Meyering  <meyering@lucent.com>
105434         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
105435         to be more precise.  Rather than saying we're checking whether the
105436         function `works', say what we're testing.
105437         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
105438         Reported by Bruno Haible.
105440 2002-03-10  Jim Meyering  <meyering@lucent.com>
105442         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
105443         Suggestion from Santiago Vila.
105445 2002-03-08  Jim Meyering  <meyering@lucent.com>
105447         * lib/rename.c: Mention that this wrapper is needed also on
105448         mips-dec-ultrix4.4 systems.
105450 2002-03-02  Jim Meyering  <meyering@lucent.com>
105452         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
105453         not HAVE_CLOCK_SETTIME.
105455 2002-02-27  Paul Eggert  <eggert@twinsun.com>
105457         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
105458         Check for clock_settime.
105460 2002-02-27  Paul Eggert  <eggert@twinsun.com>
105462         * lib/nanosleep.h: Rename to....
105463         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
105465         * lib/gettime.c: New file.
105466         * lib/settime.c: New file.
105467         * lib/stime.c: Remove.
105469         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
105470         timespec.h.  Remove nanosleep.h.
105472 2002-02-25  Paul Eggert  <eggert@twinsun.com>
105474         * m4/acl.m4: New file.
105475         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
105476         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
105478 2002-02-25  Paul Eggert  <eggert@twinsun.com>
105480         * lib/acl.c, lib/acl.h: New files.
105481         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
105483 2002-02-24  Jim Meyering  <meyering@lucent.com>
105485         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
105486         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
105487         cause trouble.  Reported by Nelson Beebe.
105489 2002-02-23  Paul Eggert  <eggert@twinsun.com>
105491         * lib/path-concat.c (xpath_concat): Reorder code to pacify
105492         compilers that don't know that xalloc_die never returns.
105494 2002-02-20  Jim Meyering  <meyering@lucent.com>
105496         * lib/getdate.c: Regenerate using bison-1.33.
105498 2002-02-17  Jim Meyering  <meyering@lucent.com>
105500         * config/config.guess (main): Don't use `head -1'; it's no longer
105501         portable. Use `sed 1q' instead.
105503 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
105505         * m4/codeset.m4: Upgrade to gettext-0.11.
105506         * m4/gettext.m4: Upgrade to gettext-0.11.
105507         * m4/glibc21.m4: Upgrade to gettext-0.11.
105508         * m4/iconv.m4: Upgrade to gettext-0.11.
105509         * m4/isc-posix.m4: Upgrade to gettext-0.11.
105510         * m4/lcmessage.m4: Upgrade to gettext-0.11.
105511         * m4/lib-ld.m4: New file, from gettext-0.11.
105512         * m4/lib-link.m4: New file, from gettext-0.11.
105513         * m4/lib-prefix.m4: New file, from gettext-0.11.
105514         * m4/progtest.m4: Upgrade to gettext-0.11.
105516 2002-02-15  Paul Eggert  <eggert@twinsun.com>
105518         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
105519         (jm_PREREQ): Use it.
105521 2002-02-15  Paul Eggert  <eggert@twinsun.com>
105523         * lib/posixver.c, lib/posixver.h: New files.
105524         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
105526 2002-02-02  Paul Eggert  <eggert@twinsun.com>
105527             Bruno Haible  <bruno@clisp.org>
105529         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
105530         (fwrite_success_callback): New declaration.
105531         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
105532         print_unicode_char. Call failure callback instead of error.
105533         (fwrite_success_callback): New function.
105534         (exit_failure_callback): New function.
105535         (fallback_failure_callback): New function.
105536         (print_unicode_char): Call unicode_to_mb.
105538 2002-01-26  Jim Meyering  <meyering@lucent.com>
105540         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
105541         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
105543 2002-01-26  Jim Meyering  <meyering@lucent.com>
105545         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
105547 2002-01-22  Paul Eggert  <eggert@twinsun.com>
105549         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
105551 2002-01-22  Jim Meyering  <meyering@lucent.com>
105553         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
105554         Otherwise, some versions of automake would omit the rule that makes
105555         Makefile from Makefile.in.
105557 2002-01-21  Paul Eggert  <eggert@twinsun.com>
105559         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
105560         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
105561         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
105562         (memcoll): Set errno to zero if there is no error.
105564         * lib/quotearg.c (quotearg_buffer_restyled):
105565         Fix bug with quoting buffers containing NUL when backslashing escapes.
105566         This bug was exposed by the other changes in this patch.
105567         (quotearg_n_options): New arg ARGSIZE.
105568         All callers changed.
105569         (quoting_options_from_style): New function.
105570         (quotearg_n_style): Use it.
105571         (quotearg_n_style_mem): New function.
105573         * lib/quotearg.h (quotearg_n_style_mem): New function.
105575 2002-01-19  Jim Meyering  <meyering@lucent.com>
105577         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
105578         Remove useless quotes: DF_PROG="df".
105579         * m4/strnlen.m4: New file.
105581 2002-01-16  Paul Eggert  <eggert@twinsun.com>
105583         * lib/backupfile.c (ISDIGIT): Comment fix.
105584         * lib/getdate.y (ISDIGIT): Likewise.
105585         * lib/posixtm.c (ISDIGIT, year): Likewise.
105586         * lib/strverscmp.c (ISDIGIT): Likewise.
105587         * lib/userspec.c (ISDIGIT): Likewise.
105589 2002-01-16  Jim Meyering  <meyering@lucent.com>
105591         * lib/getdate.y: Add three semicolons, each just before a closing
105592         brace. Bison (as of version 1.31) no longer papers over that mistake.
105594 2002-01-05  Jim Meyering  <meyering@lucent.com>
105596         * lib/version-etc.c (version_etc_copyright): Update copyright year.
105598 2001-12-19  Paul Eggert  <eggert@twinsun.com>
105600         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
105601         not silently exit merely because the output buffer happens to
105602         have nothing pending.
105604 2001-12-18  Paul Eggert  <eggert@twinsun.com>
105606         See the big note in ../ChangeLog.
105607         * lib/human.c (suffixes): Prefer K to k for 1024.
105608         (generate_suffix_backwards): New function.
105609         (human_readable_inexact): Use it.
105610         * lib/xstrtol.c (__xstrtol): If there is no number but there
105611         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
105612         Accept 'K' as well as 'k'.
105614 2001-12-15  Jim Meyering  <meyering@lucent.com>
105616         * lib/regex.h (__restrict_arr): Update from libc.
105618         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
105619         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
105620         (STREQ): Define.
105622 2001-12-14  Jim Meyering  <meyering@lucent.com>
105624         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
105625         Suggestion from Bruno Haible.
105627 2001-12-10  Jim Meyering  <meyering@lucent.com>
105629         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
105630         xrealloc, Instead, include "xalloc.h".
105631         (initbuffer): Don't cast xmalloc return value to char*.
105632         (readline): Reword comment.
105633         Don't cast xrealloc return value to char*
105634         Return NULL, not 0.
105636 2001-12-09  Jim Meyering  <meyering@lucent.com>
105638         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
105639         about `signed and unsigned type in conditional expression'.
105640         * lib/posixtm.c (posix_time_parse): Likewise.
105642         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
105644         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
105645         to avoid a pedantic warning.
105647         * lib/getstr.c: Don't include assert.h.
105648         (getstr): Remove warning-evoking assertions.
105649         Return -1 if offset parameter is out of bounds.
105650         Change the type of a local from int to size_t.
105652         * lib/strftime.c (my_strftime_localtime_r): Include this function
105653         definition in the `#if ! HAVE_TM_GMTOFF' block.
105655         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
105656         Include xalloc.h instead.
105658 2001-12-02  Jim Meyering  <meyering@lucent.com>
105660         * lib/tempname.c: Don't declare getenv, thus reverting the change of
105661         2001-11-18.  It's no longer necessary, now that stdlib.h is always
105662         included.
105664         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
105665         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
105667 2001-11-30  Akim Demaille  <akim@epita.fr>
105669         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
105670         before being defined.
105672 2001-11-27  Paul Eggert  <eggert@twinsun.com>
105674         * lib/quotearg.h (quotearg_n, quotearg_n_style):
105675         First arg is int, not unsigned.
105676         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
105677         (SIZE_MAX, UINT_MAX): New macros.
105678         (quotearg_n_options): Abort if N is negative.
105679         Avoid overflow check on hosts where size_t is 64 bits and int
105680         is 32 bits, as overflow is impossible there.
105681         Fix off-by-one typo that caused unnecessary reallocation.
105683 2001-11-27  Jim Meyering  <meyering@lucent.com>
105685         * lib/tempname.c: Merge with version from libc.
105686         * lib/regex.c: Likewise.
105688         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
105689         systems for which STDC_HEADERS is 0, it was not included, resulting in
105690         a warning about an integer-to-pointer conversion problem with getenv.
105691         Reported by Volker Borchert.
105693 2001-11-26  Jim Meyering  <meyering@lucent.com>
105695         * lib/gtod.h: Remove file.
105696         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
105697         * lib/gettimeofday.c: Don't include gtod.h.
105698         (GTOD_init): Remove function.
105699         (rpl_gettimeofday): Do its job here instead, rather than aborting.
105700         Suggestion from Volker Borchert.
105702 2001-11-23  Jim Meyering  <meyering@lucent.com>
105704         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
105705         it.
105706         * lib/hash.c (struct hash_table): Define it here instead.
105708 2001-11-22  Jim Meyering  <meyering@lucent.com>
105710         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
105712 2001-11-20  Jim Meyering  <meyering@lucent.com>
105714         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
105715         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
105717 2001-11-19  Jim Meyering  <meyering@lucent.com>
105719         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
105720         directory.  Use "conftestXXXXXX" as the template.
105721         Suggestion from Paul Eggert.
105723         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
105724         immediately, so the test doesn't mistakenly hit the max-open-files
105725         limit.
105727 2001-11-18  Paul Eggert  <eggert@twinsun.com>
105729         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
105730         (TEMPORARIES): New macro.
105731         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
105732         removes an artificial limitation (e.g. HP-UX 10.20, where
105733         TMP_MAX is 17576).
105735 2001-11-18  Jim Meyering  <meyering@lucent.com>
105737         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
105739 2001-11-18  Jim Meyering  <meyering@lucent.com>
105741         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
105742         on SunOS 4.
105744         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
105745         files will be created before anything else.
105747 2001-11-17  Paul Eggert  <eggert@twinsun.com>
105749         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
105750         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
105752 2001-11-17  Jim Meyering  <meyering@lucent.com>
105754         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
105755         Prompted by a report from Bob Proulx.
105757         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
105758         Instead, require UTILS_FUNC_MKSTEMP.
105760 2001-11-17  Jim Meyering  <meyering@lucent.com>
105762         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
105763         Now, that's done as part of AC_FUNC_STRTOD.
105765 2001-11-17  Jim Meyering  <meyering@lucent.com>
105767         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
105768         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
105769         rather than group writable.  Patch by Juan F. Codagnone.
105771         * lib/readtokens.c: Remove explicit declarations of xmalloc and
105772         xrealloc, Instead, include "xalloc.h".
105774         * lib/mountlist.c: Include unlocked-io.h after all system headers.
105775         Remove explicit declarations of xmalloc, xrealloc,
105776         and xstrdup.  Instead, include "xalloc.h".
105778         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
105779         unlocked-io.h.
105780         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
105781         Likewise.
105782         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
105784         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
105785         Reported by Padraig Brady.
105787         * lib/mkstemp.c: #undef mkstemp.
105788         Include config.h.
105789         (rpl_mkstemp): Rename from mkstemp.
105790         Protoize.
105792 2001-11-16  Jim Meyering  <meyering@lucent.com>
105794         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
105795         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
105796         determine the amount of total physical memory, use pstat_getstatic.
105797         HPUX-11 doesn't define _SC_PHYS_PAGES.
105798         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
105799         If sysconf couldn't be used to determine the amount of available
105800         physical memory, use both pstat_getstatic and pstat_getdynamic.
105801         Based on a patch from Bob Proulx.
105803 2001-11-10  Jim Meyering  <meyering@lucent.com>
105805         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
105806         (jm_PREREQ): Use it.
105808 2001-11-09  Jim Meyering  <meyering@lucent.com>
105810         * m4/jm-macros.m4: Require autoconf-2.52f.
105811         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
105812         Use these AC_-prefixed names, not the AM_-prefixed ones.
105814         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
105816 2001-11-05  Jim Meyering  <meyering@lucent.com>
105818         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
105820 2001-11-04  Jim Meyering  <meyering@lucent.com>
105822         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
105823         $DEFS.
105825 2001-11-03  Jim Meyering  <meyering@lucent.com>
105827         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
105828         of AC_DEFUN.
105830         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
105831         know the name of the variable in the macro definition.
105833 2001-11-03  Jim Meyering  <meyering@lucent.com>
105835         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
105836         in argmatch_to_argument call.
105838         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
105839         argument.
105841         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
105842         e.g., a fault due to an attempt to free a NULL pointer.
105844 2001-11-01  Jim Meyering  <meyering@lucent.com>
105846         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
105847         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
105849 2001-11-01  Jim Meyering  <meyering@lucent.com>
105851         * lib/dirfd.c, lib/dirfd.h: New files.
105852         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
105854         * lib/hash.c (hash_print) [TESTING]: Clean up.
105856 2001-10-22  Paul Eggert  <eggert@twinsun.com>
105858         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
105859         to avoid a warning if -Wall.
105861 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
105863         * README: New file
105864         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
105865         (per RMS's instructions, this is now the canonical source)
105866         * lgpl/, gpl/: New directories.
105868 2001-10-21  Paul Eggert  <eggert@twinsun.com>
105870         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
105872 2001-10-21  Jim Meyering  <meyering@lucent.com>
105874         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
105875         this code would end up calling gettext even in packages built
105876         with --disable-nls.
105877         * lib/getopt.c (_): Likewise.
105878         * lib/regex.c (_): Likewise.
105880 2001-10-20  Paul Eggert  <eggert@twinsun.com>
105882         * m4/error.m4 (jm_PREREQ_ERROR):
105883         Do not invoke AC_CHECK_FUNCS with strerror_r, as
105884         AC_FUNC_STRERROR_R does that.
105885         Check for strerror declaration.
105887         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
105888         are supposed to have them these days.
105889         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
105890         Merge changes from latest Autoconf CVS.
105891         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
105892         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
105893         POSIX decided to standardize on the int flavor of strerror_r.
105895 2001-10-20  Paul Eggert  <eggert@twinsun.com>
105897         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
105898         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
105899         Use strerror_r that is only a macro, even if it is not a function.
105900         (strerror): Check for HAVE_DECL_STRERROR before declaring.
105901         (private_strerror): Use prototypes, not old-style function definition.
105902         (print_errno_message): New function.
105903         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
105904         char*-flavored one.
105905         (error_tail, error, error_at_line): Use it.
105907 2001-10-11  Jim Meyering  <meyering@lucent.com>
105909         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
105910         and quote_n (1, ... to avoid clobbering a buffer.
105912 2001-10-05  Jim Meyering  <meyering@lucent.com>
105914         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
105915         hash-pjw.h.
105916         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
105917         * lib/hash-pjw.h: New file.
105919 2001-09-30  Jim Meyering  <meyering@lucent.com>
105921         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
105922         `struct fsstat' has the `f_fstypename' member.
105923         Use that to define FS_TYPE, which is now used to make
105924         the getfsstat link test tighter.
105926 2001-09-30  Jim Meyering  <meyering@lucent.com>
105928         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
105929         Include <sys/ucred.h>, for Apple Darwin.
105930         Include sys/mount.h and sys/fs_types.h only if available.
105931         (FS_TYPE): Define.
105932         (read_filesystem_list): Use FS_TYPE.
105934 2001-09-29  Paul Eggert  <eggert@twinsun.com>
105936         * lib/exclude.c (excluded_filename): 0 -> false, since it's
105937         a boolean context.
105939 2001-09-29  Jim Meyering  <meyering@lucent.com>
105941         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
105942         [one-argument getmntent function]): Include stdio.h before mntent.h.
105943         SunOS 4.1.x needs it for the declaration of `FILE'.
105944         Patch by Volker Borchert.
105946         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
105947         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
105948         sys/fs_types.h, and make the link-test for getfsstat guard #include
105949         directives with appropriate #if HAVE_*_H tests so that we can
105950         detect getfsstat on Apple Darwin1.3.7 systems.
105951         Reported by Nelson Beebe.
105952         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
105954 2001-09-28  Paul Eggert  <eggert@twinsun.com>
105956         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
105957         #defines strtoimax.  Also treat the other strto* functions
105958         like strtoimax.
105960         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
105961         Check for strtoul and strtoumax,
105962         as those declarations are made even in the signed case.
105963         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
105964         Likewise, for strtol and strtoimax.
105966 2001-09-28  Paul Eggert  <eggert@twinsun.com>
105968         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
105969         #defines strtoimax.  Also treat the other strto* functions
105970         like strtoimax.
105972         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
105973         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
105974         (strtoimax, strtoumax): Do not declare if already defined as a macro.
105976 2001-09-26  Jim Meyering  <meyering@lucent.com>
105978         Most macros in unlocked-io.h had the wrong number of arguments.
105979         * lib/gen-uio: New script.
105980         (USE_UNLOCKED_IO): Define to 1 if not already defined.
105981         * lib/unlocked-io.hin: Remove file.
105982         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
105983         rather than trying to embed it here.
105984         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
105985         Reported by Padraig Brady.
105987 2001-09-25  Volker Borchert  <bt@teknon.de>
105989         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
105990         `result'.
105992 2001-09-24  Jim Meyering  <meyering@lucent.com>
105994         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
105996 2001-09-23  Jim Meyering  <meyering@lucent.com>
105998         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
105999         instead of the mere test for existence of mntent.h.  The latter
106000         would get a false-positive on AIX 3.4 systems.
106001         In the outer getmntent if-block, don't die if neither of the getmntent
106002         tests succeeds.  Instead, just fall through and continue with the
106003         remaining tests.
106005 2001-09-23  Jim Meyering  <meyering@lucent.com>
106007         * lib/mountlist.c: Remove useless parentheses in #if directives.
106008         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
106009         the deprecated MOUNTED symbol is no longer defined in mntent.h.
106011 2001-09-22  Jim Meyering  <meyering@lucent.com>
106013         * m4/gettext.m4: New file.  From gettext.
106014         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
106015         * m4/progtest.m4: Likewise
106016         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
106017         * m4/glibc21.m4: Likewise.
106019         * m4/libintl.m4: Remove.  No longer used.
106021 2001-09-22  Jim Meyering  <meyering@lucent.com>
106023         * lib/localcharset.c: Update from latest gettext.
106024         * lib/config.charset: Likewise.
106026 2001-09-20  Jim Meyering  <meyering@lucent.com>
106028         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
106029         strtoimax.
106030         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
106031         strtoumax.
106033 2001-09-20  Jim Meyering  <meyering@lucent.com>
106035         * lib/xstrtol.c (strtoimax): Guard declaration with
106036         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
106037         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
106038         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
106039         (strtoumax): Likewise, for completeness (it wasn't necessary).
106041 2001-09-17  Paul Eggert  <eggert@twinsun.com>
106043         * lib/strtoimax.c (HAVE_LONG_LONG):
106044         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
106045         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
106046         to work around bug in IBM C compiler.
106048 2001-09-17  Jim Meyering  <meyering@lucent.com>
106050         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
106051         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
106052         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
106053         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
106054         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
106055         whenever the right hand side need not be expanded by the shell.
106057 2001-09-16  Paul Eggert  <eggert@twinsun.com>
106059         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
106060         library.  It's not correct, as some older glibcs are buggy.
106061         fnmatch wasn't fixed until glibc 2.2.
106063         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
106064         special shell magic here.
106066 2001-09-16  Jim Meyering  <meyering@lucent.com>
106068         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
106069         * m4/jm-macros.m4: Require it.
106071 2001-09-16  Jim Meyering  <meyering@lucent.com>
106073         * lib/mkdir.c: New file.
106075 2001-09-15  Jim Meyering  <meyering@lucent.com>
106077         * m4/jm-macros.m4: Check for help2man.
106079 2001-09-11  Jim Meyering  <meyering@lucent.com>
106081         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
106082         The body, by Paul Eggert, was moved here from configure.in.
106083         * m4/jm-macros.m4: Require UTILS_HOST_OS.
106085 2001-09-04  Paul Eggert  <eggert@twinsun.com>
106087         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
106088         (jm_PREREQ): Use it.
106090 2001-09-04  Paul Eggert  <eggert@twinsun.com>
106092         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
106093         Use ssize_t, not int, to store result of readlink.
106094         Check for ssize_t overflow as well as size_t overflow,
106095         as POSIX says the result of readlink is implementation-defined
106096         when ssize_t overflows.
106097         Remove unnecessary cast to char*.
106098         Use free+malloc instead of realloc, as the storage doesn't need
106099         to be preserved and it's clearer and can be more efficient that way.
106100         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
106101         * lib/xreadlink.h (xreadlink): Update prototype.
106103 2001-09-04  Paul Eggert  <eggert@twinsun.com>
106105         * lib/xgetcwd.c: Revert some of the previous change; intead,
106106         fix the HAVE_GETCWD_NULL code to behave more like the
106107         !HAVE_GETCWD_NULL code used to.
106109         Include "xalloc.h".
106110         (xgetcwd): Do not return NULL when memory is exhausted; instead,
106111         invoke xalloc_die.
106113 2001-09-03  Paul Eggert  <eggert@twinsun.com>
106115         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
106116         sys/param.h, as pathmax.h includes them.
106118 2001-09-03  Paul Eggert  <eggert@twinsun.com>
106120         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
106121         (jm_PREREQ_XGETCWD): New macro.
106123         * m4/getcwd.m4: New file.
106125 2001-09-03  Paul Eggert  <eggert@twinsun.com>
106127         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
106128         like the HAVE_GETCWD_NULL code.
106129         Include pathmax.h if not HAVE_GETCWD.
106130         Do not include xalloc.h.
106131         (INITIAL_BUFFER_SIZE): New symbol.
106132         Do not use xmalloc / xrealloc, since the caller is responsible for
106133         handling errors.  Preserve errno around `free' during failure.
106134         Do not overrun buffer when using getwd.
106136 2001-09-03  Paul Eggert  <eggert@twinsun.com>
106138         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
106139         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
106140         getcwd (NULL, 0).
106142 2001-09-03  Paul Eggert  <eggert@twinsun.com>
106144         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
106145         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
106146         spotted by Jim Meyering.
106148 2001-09-03  Jim Meyering  <meyering@lucent.com>
106150         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
106151         failure.
106153 2001-09-02  Jim Meyering  <meyering@lucent.com>
106155         * lib/error.c: Update from GNU libc.
106157 2001-09-01  Jim Meyering  <meyering@lucent.com>
106159         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
106160         Used by df.
106162 2001-09-01  Jim Meyering  <meyering@lucent.com>
106164         * lib/xreadlink.c: New file.
106165         * lib/xreadlink.h: New file.
106166         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
106167         xreadlink.h.
106169         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
106170         doesn't conflict with sparc Solaris 7's definition in
106171         /usr/include/sys/int_types.h.
106173         * lib/exclude.c: Use `""', not `<>' to #include non-system header
106174         files.
106175         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
106176         and strncasecmp as r-values.  Unixware didn't have declarations.
106178 2001-08-31  Paul Eggert  <eggert@twinsun.com>
106180         * lib/xstrtol.h: Add copyright notice.
106181         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
106182         LONGINT_INVALID_SUFFIX_CHAR.
106184 2001-08-31  Paul Eggert  <eggert@twinsun.com>
106186         * lib/xstrtol.c (strtoimax): New decl.
106188 2001-08-31  Paul Eggert  <eggert@twinsun.com>
106190         * lib/xgetcwd.c: Don't include pathmax.h.
106191         Include stdlib.h and unistd.h if available.
106192         Include xalloc.h.
106193         (xmalloc, xstrdup, free): Remove decls.
106194         (xgetcwd): Don't assume sizes fit in unsigned.
106195         Check for overflow when computing sizes.
106196         Simplify reallocation code.
106198 2001-08-31  Paul Eggert  <eggert@twinsun.com>
106200         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
106201         a directory's st_size can have an arbitrary value, so the old
106202         usage could waste an arbitrary amount of memory.  All uses
106203         changed.
106204         * lib/savedir.h: Update prototype.
106206 2001-08-31  Paul Eggert  <eggert@twinsun.com>
106208         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
106210         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
106211         old strtoimax.c.
106213         Also, make the following further changes to make this file's
106214         configuration more similar to that of strtol.c:
106215         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
106216         (strtoumax, uintmax_t, strtoull, strtol): Remove.
106217         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
106218         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
106219         changed to signed values.
106221         And make the following changes as well:
106222         Fix copyright notice, as 1999 was missing.
106223         (verify): New macro.
106224         (strtoimax): Check sizes at compile-time, not run-time.
106225         Prefer strtol to strtoll if both work.
106226         (main): Remove; it was not that useful and was a pain to maintain.
106228         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
106230 2001-08-31  Jim Meyering  <meyering@lucent.com>
106232         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
106233         Use an initial, malloc'd, buffer of length 128 rather than
106234         a statically allocated one of length 1024.
106236 2001-08-30  Paul Eggert  <eggert@twinsun.com>
106238         Simplify code, partly by assuming autoconf 2.52 semantics.
106240         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
106242         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
106243         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
106244         All uses removed.
106245         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
106246         Move AC_REQUIRE to next-to-top level, to avoid confusion.
106247         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
106248         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
106249         jm_AC_HEADER_INTTYPES_H.
106250         * m4/jm-macros.m4 (jm_MACROS): Likewise.
106252         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
106254         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
106255         Quote first arg of AC_DEFUN.
106256         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
106257         since they are needed to parse the include file even if we need
106258         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
106259         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
106260         but with opposite signedness.
106262 2001-08-30  Paul Eggert  <eggert@twinsun.com>
106264         Merge 'exclude' changes from tar 1.13.22.
106265         This fixes one or two unlikely storage allocation overflow bugs,
106266         but doesn't change user-visible behavior otherwise.
106268 2001-08-30  Paul Eggert  <eggert@twinsun.com>
106270         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
106271         (jm_PREREQ_EXCLUDE): New macro.
106273 2001-08-30  Paul Eggert  <eggert@twinsun.com>
106275         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
106276         tm to be declared.
106278 2001-08-30  Paul Eggert  <eggert@twinsun.com>
106280         * lib/hash.c: Remove '2001' from copyright notice.
106282 2001-08-30  Paul Eggert  <eggert@twinsun.com>
106284         * lib/full-write.h: New file.
106285         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
106286         * lib/full-write.c: Correct credits, as cccp.c no longer
106287         exists and anyway it was so heavily changed from the old cccp
106288         code as to be unrecognizable.  Include full-write.h.
106289         (full_write): Return size_t, with short writes meaning failure.
106290         All callers changed.  This fixes a bug with large buffers
106291         on 64-bit hosts.
106292         * lib/utime.c: Include full-write.h.
106294 2001-08-30  Paul Eggert  <eggert@twinsun.com>
106296         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
106297         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
106298         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
106299         Include if available.
106300         (<xalloc.h>): Include
106301         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
106302         (verify): New macro.  Use it to verify that EXCLUDE macros do not
106303         collide with FNM macros.
106304         (struct patopts): New struct.
106305         (struct exclude): Use it, as exclude patterns now come with options.
106306         (new_exclude): Support above changes.
106307         (new_exclude, add_exclude_file):
106308         Initial size must now be a power of two to simplify overflow checking.
106309         (free_exclude, fnmatch_no_wildcards): New function.
106310         (excluded_filename): No longer requires options arg, as the options
106311         are determined by add_exclude.  Now returns bool, not int.
106312         (excluded_filename, add_exclude):
106313         Add support for the fancy new exclusion options.
106314         (add_exclude, add_exclude_file): Now takes int options arg.
106315         Check for arithmetic overflow when computing sizes.
106316         (add_exclude_file): xrealloc might modify errno, so don't
106317         realloc until after errno might be used.
106319         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
106320         New macros.
106321         (free_exclude): New decl.
106322         (add_exclude, add_exclude_file): Now takes int options arg.
106323         (excluded_filename): No longer requires options arg, as the options
106324         are determined by add_exclude.  Now returns bool, not int.
106326 2001-08-30  Paul Eggert  <eggert@twinsun.com>
106328         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
106330 2001-08-27  Jim Meyering  <meyering@lucent.com>
106332         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
106334         * lib/version-etc.c (N_): Remove definition.
106335         Revert most of last change.
106336         Instead, simply don't mark the `Copyright...' string for translation.
106337         Based on advice from Paul Eggert.
106339         * lib/strtoxmax.c: Tweak comment.
106341 2001-08-26  Jim Meyering  <meyering@lucent.com>
106343         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
106345         * m4/xstrtoimax.m4: New file.
106346         * m4/xstrtoumax.m4: Add comments explaining why we
106347         AC_REPLACE_FUNCS(strtol).
106349 2001-08-26  Jim Meyering  <meyering@lucent.com>
106351         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
106352         of copyright with `%s' so translators don't get an untranslated
106353         message in 2002.
106354         (COPYRIGHT_YEAR): Define.
106355         (version_etc): Use fprintf rather than fputs.
106356         Suggestion from Ulrich Drepper.
106358         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
106360         * lib/strtoll.c: New file, from GNU libc.
106361         * lib/xstrtoimax.c: New file.
106363         * lib/xstrtol.h: Add xstrtoimax.
106364         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
106365         * lib/strtoimax.c: New file.  Likewise, but first define
106366         STRTOUXMAX_SIGNED.
106368         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
106369         ...
106370         * lib/strtoxmax.c: ... then renamed to this.
106372 2001-08-18  Paul Eggert  <eggert@twinsun.com>
106374         * m4/inttypes.m4: Add AC_PREREQ(2.13).
106375         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
106376         (jm_AC_TYPE_INTMAX_T): New macro.
106377         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
106379         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
106381         * m4/longlong.m4: Renamed from ulonglong.m4.
106382         * m4/inttypes.m4: Renamed from inttypes_h.m4.
106383         * m4/uintmax_t.m4: Removed.
106385 2001-08-13  Paul Eggert  <eggert@twinsun.com>
106387         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
106388         Port to Solaris 8, where 'sed' requires a space after the 'r'
106389         command, and where sh dislikes "$/".  Clean up the spacing a bit.
106390         Redirect output to $tmp just once.
106392 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
106394         * lib/addext.c (<errno.h>): Include.
106395         (errno): Declare if not defined.
106396         (addext): Work correctly when pathconf returns -1 and leaves
106397         errno alone because there is no limit.  Also, work even if
106398         pathconf returns a value greater than SIZE_MAX.
106400 2001-08-12  Jim Meyering  <meyering@lucent.com>
106402         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
106403         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
106404         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
106405         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
106406         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
106407         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
106408         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
106409         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
106410         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
106411         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
106412         utime.m4, utimes.m4, xstrtoumax.m4:
106413         Quote the first argument in each use of AC_DEFUN.
106415 2001-08-12  Jim Meyering  <meyering@lucent.com>
106417         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
106418         Simply `return getcwd (NULL, 0);'.
106419         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
106420         Use 1300 as initial value for length, not PATH_MAX.
106422         * lib/pathmax.h: Clean up cpp syntax.
106424 2001-08-12  Jim Meyering  <meyering@lucent.com>
106426         * lib/gettimeofday.c: New file.
106427         * lib/gtod.h: New file.
106428         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
106430 2001-08-05  Jim Meyering  <meyering@lucent.com>
106432         * m4/jm-macros.m4: Require autoconf-2.52.
106434 2001-08-04  Jim Meyering  <meyering@lucent.com>
106436         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
106437         stmt, to get in sync with glibc.
106439 2001-08-03  Paul Eggert  <eggert@twinsun.com>
106441         The following changes are from gettext 0.10.39 as maintained by
106442         Bruno Haible.
106444         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
106445         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
106446         with inverted sense.  All uses changed.
106448         * lib/mbswidth.c: Don't include <limits.h>.
106449         Include <stdlib.h> and <string.h> unconditionally.
106450         (iswcntrl, mbsinit, ISCNTRL): New macros.
106451         (mbsnwidth): Use K&R style function declarations.
106452         Don't bother checking for MB_LEN_MAX == 1, since the compiler
106453         can optimize it when MB_CUR_MAX == 1.
106454         The width of control characters is zero, not 1.
106456 2001-08-03  Paul Eggert  <eggert@twinsun.com>
106458         The following changes are from gettext 0.10.39 as maintained by
106459         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
106461         * m4/codeset.m4: Upgrade to serial AM1.
106462         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
106463         all uses changed.  Quote first arg of AC_DEFUN.
106464         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
106466         * m4/iconv.m4: Upgrade to serial AM2.
106467         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
106468         Add --with-libconv-prefix.
106469         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
106470         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
106471         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
106472         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
106473         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
106475         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
106476         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
106477         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
106478         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
106479         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
106480         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
106481         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
106482         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
106483         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
106485         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
106486         string.h any more.
106488         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
106489         not the default value.
106491         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
106492         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
106493         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
106494         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
106495         Also check for iswcntrl, used for wcwidth fallback.
106496         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
106497         to Autoconf 2.13.
106499 2001-08-03  Jim Meyering  <meyering@lucent.com>
106501         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
106502         as it was in the original.  Reported by Paul Eggert.
106504 2001-07-16  Jim Meyering  <meyering@lucent.com>
106506         * m4/gettimeofday.m4: New file.
106507         Prompted by a report from Bernhard Baehr.
106509 2001-07-15  Jim Meyering  <meyering@lucent.com>
106511         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
106512         stuff. Now it's in ../Makefile.cfg.
106514 2001-07-15  Jim Meyering  <meyering@lucent.com>
106516         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
106517         (BUILT_SOURCES): Add unlocked-io.h.
106518         (io_functions): Define.
106519         (unlocked-io.h): New rule.
106520         (DISTCLEANFILES): Add unlocked-io.h.
106521         (all-local): Depend on unlocked-io.h, to ensure it is created.
106523         * lib/unlocked-io.hin: New file
106525         * lib/regex.c: Update from glibc.
106527 2001-07-05  Jim Meyering  <meyering@lucent.com>
106529         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
106530         recommendation.
106531         (libfetish_a_SOURCES): Put all .h files here instead.
106532         Remove a thus-exposed (better checks in automake) duplicate and
106533         two unnecessary .h files.
106535 2001-07-04  Jim Meyering  <meyering@lucent.com>
106537         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
106538         that generates jm-glibc-io.m4 so that it doesn't trigger any make
106539         distcheck failure.
106541 2001-07-02  Jim Meyering  <meyering@lucent.com>
106543         The following changes were prompted by suggestions from Bruno Haible.
106545         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
106546         is now generated.
106547         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
106548         definition of EXTRA_DIST.
106549         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
106550         ensure that the generated file is created/updated whenever the list
106551         of $(unlocked_functions) is changed.
106552         (jm-glibc-io.m4): New rule.
106553         (unlocked-io.h): New rule -- currently unused.
106555 2001-06-24  Jim Meyering  <meyering@lucent.com>
106557         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
106558         unmatched right bracket, rather than kludging it with an extra,
106559         falsely-matching quote in a comment.  Patch by Akim Demaille.
106561 2001-06-11  Jim Meyering  <meyering@lucent.com>
106563         * lib/regex.c: Update from GNU libc.
106565 2001-05-27  Jim Meyering  <meyering@lucent.com>
106567         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
106568         Check for ut_type in struct utmp.
106570 2001-05-27  Jim Meyering  <meyering@lucent.com>
106572         * lib/readutmp.h (UT_TYPE): Define.
106574 2001-05-24  Jim Meyering  <meyering@lucent.com>
106576         * lib/argmatch.c: Include "quote.h".
106577         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
106578         quote function.  Reported by Göran Uddeborg.
106580 2001-05-22  Jim Meyering  <meyering@lucent.com>
106582         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
106583         now that we use the package-supplied version unconditionally.
106584         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
106586 2001-05-21  Jim Meyering  <meyering@lucent.com>
106588         * m4/regex.m4: Change a couple backticks to single quotes to avoid
106589         shell syntax errors.
106591 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
106593         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
106595 2001-05-20  Paul Eggert  <eggert@twinsun.com>
106597         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
106598         Don't bother to check library strftime, since
106599         we'll be using our own my_strftime function anyway.
106600         Define my_strftime instead of strftime.
106602 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
106604         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
106605         which is not yet declared.
106607 2001-05-15  Jim Meyering  <meyering@lucent.com>
106609         * m4/regex.m4: Use proper quoting so brackets appear in the test
106610         program.
106611         Reported by, and with help from, Bruno Haible.
106613 2001-05-13  Jim Meyering  <meyering@lucent.com>
106615         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
106616         undefined.
106618 2001-05-11  Paul Eggert  <eggert@twinsun.com>
106620         dirname code cleanup.  base_name now behaves more compatibly
106621         with POSIX basename when given file names that have trailing
106622         slashes, and similarly for dir_name.  Add new primitives
106623         base_len and dir_len.  Put the directory-name-related decls
106624         into dirname.h.
106626         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
106627         * lib/backupfile.c (base_name): Likewise.
106628         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
106629         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
106630         * lib/makepath.c (strip_trailing_slashes): Likewise.
106631         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
106632         ISSLASH): Likewise.
106633         * lib/rename.c (strip_trailing_slashes): Likewise.
106634         * lib/same.c (base_name): Likewise.
106635         * lib/stripslash.c (ISSLASH): Likewise.
106637         * lib/addext.c: Include <dirname.h> after size_t is defined.
106638         * lib/backupfile.c: Likewise.
106640         * lib/addext.c (addext): Use base_len to trim redundant
106641         trailing slashes instead of doing it ourselves.
106642         But do not trim the last slash if it is not redundant.
106644         * lib/backupfile.c (find_backup_file_name,
106645         max_backup_version): Use base_len instead of rolling it ourselves.
106646         Handle the case of "" and (on DOS) "C:" correctly.
106648         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
106649         needed. Include <string.h>, <dirname.h>.
106650         (base_name): Allow file names ending in slashes, other than names
106651         that are all slashes.  In this case, return the basename followed
106652         by the slashes.  This is more general, and can be used in places
106653         where the original base_name purposely had an assertion failure.
106654         (base_len): New function.
106656         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
106657         Do not include <assert.h>; no longer needed.
106658         Include xalloc.h.
106659         (memrchr): Remove decl.
106660         (dir_name_r): Remove.
106661         (dir_len): Renamed from dirlen.  All callers changed.
106662         Rewrite in terms of base_name, for simplicity and consistency.
106663         (dir_name): Never return NULL.  All callers changed.
106664         Do not include <stdlib.h> in test program; no longer needed.
106665         return 0; is fine for test program.
106667         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
106668         New macros.
106669         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
106671         * lib/path-concat.c (path_concat): Use base_len to compute
106672         base length, not strlen; this means we cannot rely on memcpy
106673         to null-terminate.
106675         * lib/same.c (STREQ): Remove.
106676         (same_name): Handle the case where the basename ends in trailing '/'.
106678         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
106679         a slash was stripped.  Do not strip the last slash after a
106680         file system prefix.
106682 2001-05-11  Paul Eggert  <eggert@twinsun.com>
106684         * lib/Makefile.am (libfetish_a_SOURCES):
106685         Add strftime.c, since we now compile it on all hosts.
106687         * lib/strftime.c (my_strftime):
106688         Define to nstrftime if emacs, but only if my_strftime is not defined.
106689         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
106690         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
106691         Add one more extra argument: a nanoseconds value.
106692         All uses changed.
106693         (ns): New macro.
106694         (my_strftime function): Add %N format.
106695         (emacs_strftimeu): Renamed from emacs_strftime,
106696         with extra ut argument.
106698 2001-05-09  Paul Eggert  <eggert@twinsun.com>
106700         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
106702 2001-04-21  Jim Meyering  <meyering@lucent.com>
106704         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
106705         doesn't interfere.
106707 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
106709         * m4/ftruncate.m4: Check for chsize.
106710         Link with ftruncate.o unconditionally if ftruncate is missing.
106711         This was required when cross-compiling to i586-mingw32msvc.
106713 2001-04-08  Jim Meyering  <meyering@lucent.com>
106715         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
106716         recomputed; that's necessary when the offset spans a DST transition.
106717         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
106719 2001-04-02  Jim Meyering  <meyering@lucent.com>
106721         * lib/regex.h, regex.c: Update from GNU libc.
106723 2001-03-24  Jim Meyering  <meyering@lucent.com>
106725         * m4/jm-macros.m4: Require autoconf-2.49d.
106727 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
106729         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
106731 2001-03-19  Paul Eggert  <eggert@twinsun.com>
106733         * lib/version-etc.c (version_etc_copyright): Update to 2001.
106735 2001-03-17  Jim Meyering  <meyering@lucent.com>
106737         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
106738         now that the version in autoconf is equivalent.
106739         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
106741         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
106742         Suggestion from Akim Demaille.
106744         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
106745         (jm_PREREQ_TEMPNAME): New function.
106747 2001-03-16  Paul Eggert  <eggert@twinsun.com>
106749         * lib/tempname.c (uint64_t): Define to uintmax_t if
106750         not defined, and if UINT64_MAX is not defined.
106751         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
106752         Reported by John David Anglin.
106754 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
106756         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
106757         resolve alias if codeset is empty.
106758         * lib/config.charset (BeOS): Use wildcard syntax.
106760 2001-03-13  Jim Meyering  <meyering@lucent.com>
106762         * lib/path-concat.c (path_concat)
106763         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
106764         concatenating e.g., `C:' and `foo'.
106765         From Bruno Haible.
106767 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
106769         * lib/localcharset.c (locale_charset): Don't use
106770         setlocale(LC_CTYPE,NULL). Don't return NULL.
106771         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
106773 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
106775         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
106776         support for DOS/DJGPP.
106778 2001-03-01  Paul Eggert  <eggert@twinsun.com>
106780         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
106781         lacks mkstemp.  Compile our own tempname.c if we compile our own
106782         mkstemp.c, as mkstemp relies on tempname.
106784 2001-03-01  Jim Meyering  <meyering@lucent.com>
106786         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
106787         AH_VERBATIM really does output its argument verbatim.
106789 2001-02-28  Paul Eggert  <eggert@twinsun.com>
106791         * lib/Makefile.am (libfetish_a_SOURCES):
106792         Add dup-safer.c, fopen-safer.c.
106793         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
106795         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
106796         * lib/unistd-safer.h: New files.
106798 2001-02-25  Paul Eggert  <eggert@twinsun.com>
106800         The mkstemp replacement is taken from glibc 2.2.2, with some
106801         portability fixes for use outside glibc, as follows:
106803         * lib/tempname.c (struct_stat64): New macro.
106804         (direxists, __gen_tempname): Use it.
106805         This avoids a portability problem with Solaris 8.
106807         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
106808         (<stddef.h>, <stdint.h>, <string.h>):
106809         Include only if STDC_HEADERS || _LIBC.
106810         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
106811         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
106812         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
106813         (__set_errno): Define this macro if <errno.h> doesn't.
106814         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
106815         Define these macros if <stdio.h> doesn't.
106816         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
106817         Define these macros if <sys/stat.h>
106818         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
106819         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
106820         __xstat64): Define if not _LIBC.
106821         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
106822         (__gen_tempname): Invoke gettimeofday only if
106823         HAVE_GETTIMEOFDAY || _LIBC;
106824         otherwise, fall back on plain "time".
106825         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
106827         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
106829         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
106831 2001-02-18  Paul Eggert  <eggert@twinsun.com>
106833         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
106835 2001-02-17  Paul Eggert  <eggert@twinsun.com>
106837         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
106838         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
106839         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
106840         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
106842 2001-02-17  Paul Eggert  <eggert@twinsun.com>
106844         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
106845         Remove workaround macros for hosts that have mbrtowc but not
106846         mbstate_t, as we now insist on proper declarations for both
106847         before using mbrtowc.
106849 2001-02-17  Jim Meyering  <meyering@lucent.com>
106851         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
106852         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
106853         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
106854         UnixWare 7.1.1.
106856         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
106857         rather than AC_CACHE_VAL.
106859 2001-02-17  Jim Meyering  <meyering@lucent.com>
106861         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
106862         around included file name.
106864         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
106866         * lib/strftime.c: Update from GNU libc (the only changes were to
106867         comments).
106869 2001-02-17  Jim Meyering  <meyering@lucent.com>
106871         * lib/regex.c: Update from libc.
106873 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
106875         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
106876         clash.
106878 2001-02-16  Paul Eggert  <eggert@twinsun.com>
106880         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
106881         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
106882         Reported by Mark Hounschell via Paul Eggert.
106884 2001-02-07  Jim Meyering  <meyering@lucent.com>
106886         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
106888 2001-02-05  Jim Meyering  <meyering@lucent.com>
106890         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
106891         it includes the patch required for `large file' support with at least
106892         HP-UX's 10.20 /bin/cc.
106894 2001-02-03  Jim Meyering  <meyering@lucent.com>
106896         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
106897         AS_IF, now that it works once again (mysteriously).
106898         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
106900 2001-01-30  Jim Meyering  <meyering@lucent.com>
106902         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
106903         * m4/chown.m4: Rename conftestchown to conftest.chown.
106904         * m4/rename.m4: s/conftestdir/conftest.d1/ and
106905         s/conftestdir2/conftest.d2/.
106906         * m4/utimes.m4: s/conftestdata/conftest.data/
106907         Inspired by Pavel Roskin's change in autoconf.
106909 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
106911         * lib/config.charset: Update for FreeBSD 4.2.
106913 2001-01-27  Jim Meyering  <meyering@lucent.com>
106915         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
106916         a use of AS_IF.
106917         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
106919 2001-01-26  Jim Meyering  <meyering@lucent.com>
106921         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
106922         quotearg.c includes it.
106924 2001-01-26  Jim Meyering  <meyering@lucent.com>
106926         * lib/quotearg.c: Include stddef.h.
106927         * lib/quote.c: Include stddef.h.
106928         Reported by Axel Kittenberger.
106930         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
106931         line in double quotes so that it evokes a better diagnostic.
106932         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
106933         Reported by Axel Kittenberger.
106935 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
106937         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
106938         as if it was a `charset'.
106940 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
106942         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
106943         has const.
106945 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
106947         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
106948         to avoid a warning.  Add back 'const' to inptr.
106950 2001-01-20  Jim Meyering  <meyering@lucent.com>
106952         Be sure that headers are checked before used in code compiled
106953         for the type checks.
106954         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
106955         In place of that, invoke jm_CHECK_ALL_TYPES.
106956         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
106957         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
106958         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
106959         The check for ssize_t was mistakenly run before the test for unistd.h.
106961         The configure-time check for stdbool.h was missing.
106962         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
106963         (jm_PREREQ_HASH): New function.
106965 2001-01-17  Jim Meyering  <meyering@lucent.com>
106967         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
106968         for autoconf-2.49c.
106969         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
106971 2001-01-16  Jim Meyering  <meyering@lucent.com>
106973         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
106974         From Bruno Haible.
106976 2001-01-14  Jim Meyering  <meyering@lucent.com>
106978         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
106979         foo and bar.  Create conftestdir/ in the script, not in the C code.
106980         Remove directories in the script, not in the C code.
106981         Remove conftestdir{,2} before trying to create the directory.
106982         Make the entire configure script fail if the mkdir fails.
106984 2001-01-14  Jim Meyering  <meyering@lucent.com>
106986         * lib/rename.c: New file.  From Volker Borchert.
106987         Include stdlib.h, string.h or strings.h, and xalloc.h.
106988         Use strip_trailing_slashes rather than open-coding it.
106990 2001-01-03  Paul Eggert  <eggert@twinsun.com>
106992         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
106994 2001-01-03  Jim Meyering  <meyering@lucent.com>
106996         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
106997         of local `inptr' to avoid warning with some system declarations of
106998         iconv.
107000 2001-01-02  Volker Borchert  <bt@teknon.de>
107002         * m4/rename.m4: New file.
107003         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
107005 2001-01-01  Jim Meyering  <meyering@lucent.com>
107007         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
107008         even on systems with utmpx.h.  It's necessary for the declaration of
107009         utmp's ut_user member.  Reported by Andreas Jaeger.
107011         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
107012         available. They are required for the declarations of getgrgid and
107013         getpwuid resp.
107014         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
107015         Reported by Andreas Jaeger.
107017 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
107019         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
107020         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
107021         so `make install' also works in VPATH builds.
107023 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
107025         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
107026         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
107027         can be used in subdirectories.
107029 2000-12-29  Paul Eggert  <eggert@twinsun.com>
107031         * lib/modechange.c: Do not assume that mode_t uses the
107032         traditional octal encoding.  E.g. "chmod 1 FOO" should set
107033         the other-execute bit of FOO even if S_IXOTH != 1.
107035         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
107036         WOTH, XOTH, ALLM): New macros.
107037         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
107038          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
107039         Use them.
107040         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
107041         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
107042         (mode_compile):
107043         No need to use uintmax_t; unsigned long is long enough.
107044         Don't bother to get suffix since we don't use it.
107046 2000-12-26  Jim Meyering  <meyering@lucent.com>
107048         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
107049         better with autoheader.
107051 2000-12-24  Jim Meyering  <meyering@lucent.com>
107053         * lib/hash.c (is_prime): Return explicit boolean values.
107054         (hash_get_first): Return NULL to appease Irix5.6's 89.
107055         Reported by Nelson Beebe.
107057 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
107059         * lib/localcharset.c (locale_charset): Add support for Win32.
107061 2000-12-18  Paul Eggert  <eggert@twinsun.com>
107063         * lib/physmem.h, lib/physmem.c: New files.
107065         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
107066         (noinst_HEADERS): Add physmem.h.
107068         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
107069         't' for compatibility with Solaris 8 sort.
107071 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
107073         * lib/config.charset: Add support for BeOS.
107075 2000-12-17  Jim Meyering  <meyering@lucent.com>
107077         * m4/dos.m4 (jm_AC_DOS): New file and macro.
107078         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
107080 2000-12-16  Jim Meyering  <meyering@lucent.com>
107082         This bug had a serious impact on chown: `chown N:M FILE' (for integer
107083         N and M) would have treated it like `chown N:N FILE'.
107085         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
107087 2000-12-16  Jim Meyering  <meyering@lucent.com>
107089         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
107090         SHELLS_FILE to a file name that's useful on djgpp systems.
107091         Include stdlib.h.
107092         (ADDITIONAL_DEFAULT_SHELLS): Define.
107093         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
107094         Based mostly on a patch from Prashant TR.
107096 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
107098         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
107099         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
107100         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
107102 2000-12-08  Andreas Schwab  <schwab@suse.de>
107104         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
107105         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
107107 2000-12-07  Jim Meyering  <meyering@lucent.com>
107109         * lib/stripslash.c (ISSLASH): Define.
107110         (strip_trailing_slashes): Use ISSLASH rather than comparing against
107111         `/'.
107112         From Prashant TR.
107114         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
107115         (dir_name_r): Declare this function as static.
107116         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
107117         manifest itself on a name containing a mix of slashes and
107118         backslashes.
107119         Make this function work with names starting with a DOS-style
107120         drive letter and colon prefix.
107121         (dir_name): Append `.' if necessary.
107122         Based mostly on patches from Prashant TR and Eli Zaretskii.
107124         * lib/dirname.h (dir_name_r): Remove prototype.
107126 2000-12-06  Paul Eggert  <eggert@twinsun.com>
107128         * m4/off_t-format.m4: Remove this file.
107129         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
107131 2000-12-06  Jim Meyering  <meyering@lucent.com>
107133         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
107134         replacement strtoull, we may well need the replacement strtoul, too.
107135         Check for declarations of strtoul and strtoull.
107136         Check for strtol.  Mainly as a cue to cause automake to include
107137         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
107138         Check for limits.h -- strtol.c needs it.
107140 2000-12-05  Jim Meyering  <meyering@lucent.com>
107142         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
107144 2000-12-04  Jim Meyering  <meyering@lucent.com>
107146         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
107147         Also include memory.h, stdlib.h, unistd.h if appropriate.
107148         Reported by Andreas Jaeger (conflicting declaration of malloc).
107150 2000-12-02  Jim Meyering  <meyering@lucent.com>
107152         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
107153         * m4/jm-macros.m4 (jm_MACROS): require it.
107155 2000-12-02  Jim Meyering  <meyering@lucent.com>
107157         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
107159 2000-12-01  Paul Eggert  <eggert@twinsun.com>
107161         * lib/memrchr.c: Include <config.h> before any system include file.
107163 2000-11-30  Jim Meyering  <meyering@lucent.com>
107165         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
107167 2000-11-30  Jim Meyering  <meyering@lucent.com>
107169         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
107171 2000-11-29  Paul Eggert  <eggert@twinsun.com>
107173         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
107175 2000-11-26  Jim Meyering  <meyering@lucent.com>
107177         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
107179 2000-11-22  Paul Eggert  <eggert@twinsun.com>
107181         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
107182         size of (size_t) -1; it's not portable.
107184 2000-11-17  Jim Meyering  <meyering@lucent.com>
107186         * lib/strstr.c: Update from GNU libc.
107188 2000-11-17  Akim Demaille  <akim@epita.fr>
107190         * lib/obstack.h: Formatting changes.
107191         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
107192         prevent type checking.
107193         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
107194         cast the value to (void *): assigning a `foo *' to a `void *'
107195         variable is valid.
107196         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
107198 2000-11-16  Jim Meyering  <meyering@lucent.com>
107200         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
107202 2000-11-11  Jim Meyering  <meyering@lucent.com>
107204         * lib/error.c: Add a couple #includes, merging from GNU libc version.
107206 2000-11-10  Jim Meyering  <meyering@lucent.com>
107208         * lib/obstack.h: Update from GNU libc.
107209         * lib/obstack.c: Likewise.
107211 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
107213         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
107215 2000-11-06  Paul Eggert  <eggert@twinsun.com>
107217         * lib/getusershell.c (setusershell): Use rewind rather than
107218         fseek/fseeko, to avoid configuration hassles with fseeko.
107219         Don't bother opening SHELLS_FILE if shellstream is NULL;
107220         it's not necessary.
107222 2000-11-05  Jim Meyering  <meyering@lucent.com>
107224         * lib/makepath.h (make_dir): Declare.
107225         * lib/makepath.c (make_dir): Remove `static' attribute.
107226         Tweak a comment.
107228 2000-11-04  Jim Meyering  <meyering@lucent.com>
107230         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
107232 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
107234         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
107235         last one in a bucket, advance to the next bucket.
107237 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
107239         * lib/fnmatch.c: Do not comment out all the code if we are using
107240         the GNU C library, because in some cases we are replacing buggy
107241         code in the GNU C library itself.
107243 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
107245         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
107246         (regex_compile): Catch bogus \(\1\).
107248 2000-10-30  Paul Eggert  <eggert@twinsun.com>
107250         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
107251         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
107252         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
107254 2000-10-30  Paul Eggert  <eggert@twinsun.com>
107256         * lib/error.h, getline.h, modechange.h:
107257         Remove "2000" from Copyright line, as the file hasn't been
107258         changed this year other than in the copyright notice.
107260         * lib/xalloc.h: Add "2000" to Copyright line, as this file
107261         was changed this year.
107263 2000-10-29  Jim Meyering  <meyering@lucent.com>
107265         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
107266         renaming.
107267         * m4/ls-mntd-fs.m4: Likewise
107269 2000-10-29  Jim Meyering  <meyering@lucent.com>
107271         * lib/xstat.in: Fix grammar in comment.
107273 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
107275         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
107276         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
107277         doesn't define __restrict_arr.
107279 2000-10-28  Jim Meyering  <meyering@lucent.com>
107281         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
107282         (jm_PREREQ_MEMCHR): New function.
107284 2000-10-28  Jim Meyering  <meyering@lucent.com>
107286         * lib/memchr.c: Update from libc.
107287         Adjust for portability:
107288         [HAVE_STDLIB_H]: Include stdlib.h.
107289         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
107290         Undef __memchr, too.
107291         [!weak_alias]: Define __memchr to memchr.
107293         * lib/regex.c: Update from libc.
107294         * lib/regex.h: Likewise.
107295         * lib/getopt1.c: Likewise.
107296         * lib/memcmp.c: Likewise.
107298         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
107299         Avoid using fseek, when possible -- it's broken by design.
107300         Patch by Ulrich Drepper.
107302 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
107304         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
107305         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
107306         Giving in to popular pressure to shut up the compiler with casts.
107308 2000-10-26  Jim Meyering  <meyering@lucent.com>
107310         * lib/strftime.c: Update from libc.
107312 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
107314         * regex.c: More `unsigned char' -> `re_char' changes.
107315         Also change several `int' into `re_wchar_t'.
107316         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
107317         (PUSH_FAILURE_POINTER): Don't cast any more.
107318         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
107319         We want GCC to complain, since this piece of code makes
107320         re_match non-reentrant, which *should* be fixed.
107321         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
107322         (EXTEND_BUFFER): Use RETALLOC.
107323         (SET_LIST_BIT): Don't cast.
107324         (re_wchar_t): New type.
107325         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
107326         that those two functions will always properly return.
107327         (IMMEDIATE_QUIT_CHECK): Cast to void.
107328         (analyse_first): Use recursion rather than an explicit stack.
107329         (re_compile_fastmap): Can't fail anymore.
107330         (re_search_2): Don't check re_compile_fastmap for failure.
107331         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
107332         Now also sets the new value (passed in a new argument).
107333         (re_match_2_internal): Use it.
107334         Also, use a new var `reg' of type size_t when looping through regs
107335         rather than reuse the inappropriate `mcnt'.
107337 2000-10-25  Jim Meyering  <meyering@lucent.com>
107339         * lib/obstack.c: Update from libc.
107341 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
107343         * regex.c (regex_compile): Change the way of handling a range from
107344         a char less than 256 to a char not less than 256.
107346 2000-10-24  Andrew Innes  <andrewi@gnu.org>
107348         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
107349         NT-Emacs only.
107350         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
107351         so that re_search functions only quit when callers expect them to.
107353 2000-10-23  Jim Meyering  <meyering@lucent.com>
107355         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
107356         wrong.  That set_locale call must not have any side effects.
107357         From Paul Eggert.
107359 2000-10-22  Jim Meyering  <meyering@lucent.com>
107361         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
107362         [CYCLIC]: Remove now-unused definition.
107364         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
107365         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
107366         Suggestion from Ulrich Drepper.
107368 2000-10-21  Jim Meyering  <meyering@lucent.com>
107370         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
107371         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
107372         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
107374 2000-10-21  Jim Meyering  <meyering@lucent.com>
107376         * lib/dirname.c (memrchr): Declare if necessary.
107377         (dir_name): Remove the restriction that there be no
107378         trailing slashes.  Now, this code skips past them, effectively
107379         ignoring them.
107380         [TEST_DIRNAME] (main): New unit tests.
107382         * lib/memrchr.c: New file from GNU libc.
107383         Undef __memrchr, too.
107384         [!weak_alias]: Define __memrchr to memrchr.
107385         Guard weak_alias use with `#ifdef weak_alias'.
107387 2000-10-21  Jim Meyering  <meyering@lucent.com>
107389         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
107390         (dir_name): Use dir_name_r.
107391         * lib/dirname.h (dir_name_r): Declare it.
107393 2000-10-17  Jim Meyering  <meyering@lucent.com>
107395         * lib/quote.h (PARAMS): Define and use.
107396         Reported by Akim Demaille.
107398         * lib/getopt.c: Update from libc.
107400 2000-10-16  Jim Meyering  <meyering@lucent.com>
107402         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
107403         setlocale.
107404         From Jan Fedak.
107406 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
107408         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
107410 2000-09-25  Jim Meyering  <meyering@lucent.com>
107412         * lib/md5.h (rol): Define (from GnuPG).
107414         * lib/sha.c: Give credit (GnuPG) where due.
107415         (M): Use rol rather than open-coding it.
107416         Add a FIXME comment.
107418 2000-09-21  Jim Meyering  <meyering@lucent.com>
107420         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
107421         Reported by Michael Stone.
107423 2000-09-20  Jim Meyering  <meyering@lucent.com>
107425         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
107426         (noinst_HEADERS): Add sha.h.
107427         Based on code from Scott G. Miller and from GnuPG.
107429 2000-09-18  Jim Meyering  <meyering@lucent.com>
107431         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
107432         LIBS. Otherwise, everyone ends up linking with -lelf for some
107433         configurations.
107434         Reported by Mike Stone.
107436 2000-09-15  Jim Meyering  <meyering@lucent.com>
107438         * lib/regex.c: Update from libc.
107440 2000-09-10  Jim Meyering  <meyering@lucent.com>
107442         * lib/getopt.c (_getopt_internal): Update from glibc.
107444 2000-09-09  Jim Meyering  <meyering@lucent.com>
107446         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
107447         think it should be used as a general replacement for isascii.
107448         * lib/fnmatch.c: Likewise.
107449         * lib/mbswidth.c: Likewise
107450         * lib/regex.c: Likewise.
107452         Don't use atoi.
107453         * lib/userspec.c: Include sys/param.h and limits.h.
107454         Include xstrtol.h.
107455         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
107456         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
107457         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
107458         UID, GID.  Check range.
107460 2000-09-06  Jim Meyering  <meyering@lucent.com>
107462         * lib/getopt.c (_getopt_internal): Update from glibc.
107464 2000-08-30  Jim Meyering  <meyering@lucent.com>
107466         * lib/strftime.c: Merge in changes from GNU libc.
107468 2000-08-26  Jim Meyering  <meyering@lucent.com>
107470         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
107471         * m4/fpending.m4: New file.
107473 2000-08-26  Jim Meyering  <meyering@lucent.com>
107475         * lib/closeout.c: Include "__fpending.h".
107476         (close_stdout_status): Return right away if there's nothing to flush.
107478         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
107479         * lib/__fpending.c: New file.
107480         * lib/__fpending.h: New file.
107482 2000-08-20  Jim Meyering  <meyering@lucent.com>
107484         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
107485         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
107486         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
107488 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
107490         Improve fileutils installation on systems where running
107491         programs (like install) can't be unlinked.
107492         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
107493         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
107495 2000-08-07  Paul Eggert  <eggert@twinsun.com>
107497         Standardize on "memory exhausted" instead of "Memory exhausted"
107498         or "virtual memory exhausted".
107499         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
107500         "virtual memory exhausted".
107501         * lib/same.c (same_name): Invoke xalloc_die instead of printing
107502         our own message.
107503         * lib/userspec.c (parse_user_spec): Likewise.
107504         * lib/bumpalloc.h: comment fix
107505         * lib/same.c, userspec.c: Include xalloc.h.
107507         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
107508         not char *const and pointing to a constant array.
107509         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
107510         (xrealloc): Comment fix.
107512         * lib/userspec.c (parse_user_spec):
107513         Don't translate a message until just before returning,
107514         to avoid unnecessary translation.
107516 2000-08-07  Jim Meyering  <meyering@lucent.com>
107518         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
107519         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
107520         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
107521         getgroups.c, gethostname.c, getopt.h, group-member.c,
107522         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
107523         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
107524         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
107525         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
107526         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
107527         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
107528         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
107529         yesno.c: Back out Copyright date changes for each file with no change
107530         this year.  This eases coordination with other programs using the same
107531         source code modules.  From Paul Eggert.
107533 2000-08-06  Paul Eggert  <eggert@twinsun.com>
107535         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
107536         not char, for compatibility with glibc 2.1.3 strftime.c.
107538 2000-08-03  Greg McGary  <greg@mcgary.org>
107540         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
107541         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
107542         (EXTEND_BUFFER): Use them.
107544 2000-08-01  Jim Meyering  <meyering@lucent.com>
107546         * lib/dirname.c (ISSLASH): Define.
107547         (BACKSLASH_IS_PATH_SEPARATOR): Define.
107548         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
107549         both `\' and `/' may be use as path separators.
107550         Based on a patch from Prashant TR.
107552 2000-07-31  Paul Eggert  <eggert@twinsun.com>
107554         * lib/quotearg.c (quotearg_n_options): Don't make the initial
107555         slot vector a constant, since it might get modified.
107557 2000-07-31  Jim Meyering  <meyering@lucent.com>
107559         * lib/xmalloc.c: Use `virtual memory exhausted', not
107560         `Memory exhausted'.
107561         * lib/obstack.c (print_and_abort): Likewise.
107563 2000-07-30  Paul Eggert  <eggert@twinsun.com>
107565         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
107566         buffer, so that the caller can always quote one small
107567         component of a "memory exhausted" message in slot 0.
107568         From a suggestion by Jim Meyering.
107570 2000-07-30  Jim Meyering  <meyering@lucent.com>
107572         * lib/makepath.c (make_path): Quote the other instance, too.
107574         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
107575         (STATIC_BUF_SIZE): Define.
107576         (quotearg_n_options): Use only statically allocated storage when
107577         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
107578         than STATIC_BUF_SIZE.
107580 2000-07-29  Jim Meyering  <meyering@lucent.com>
107582         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
107583         * lib/dirname.c (dir_name): Likewise.
107585         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
107586         `/'.
107588         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
107589         (dir_name): Assert that there are no trailing slashes.
107591 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
107593         * lib/mbswidth.h (mbswidth): Add a flags argument.
107594         (mbswidth): New declaration.
107595         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
107596         * lib/mbswidth.c (mbswidth): Add a flags argument.
107597         (mbsnwidth): New function.
107599 2000-07-24  Jim Meyering  <meyering@lucent.com>
107601         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
107603 2000-07-23  Paul Eggert  <eggert@twinsun.com>
107605         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
107607 2000-07-23  Paul Eggert  <eggert@twinsun.com>
107609         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
107610         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
107611         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
107612         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
107613         invoke multibyte primitives.
107615 2000-07-23  Paul Eggert  <eggert@twinsun.com>
107617         * lib/quotearg.c:
107618         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
107619         so that mbstate_t is always defined.
107621         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
107622         be 1 in at least one GCC installation, and this configuration
107623         error is likely to be common.  Ignoring MB_LEN_MAX hurts
107624         performance on hosts that have mbrtowc but have only unibyte
107625         locales, but I assume these hosts are rare.
107627 2000-07-23  Paul Eggert  <eggert@twinsun.com>
107629         * lib/mbswidth.c (_XOPEN_SOURCE):
107630         Don't define; this causes problems on Solaris 7.
107631         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
107633 2000-07-23  Jim Meyering  <meyering@lucent.com>
107635         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
107636         too: getgrgid, getpwuid, getuid.
107638 2000-07-23  Jim Meyering  <meyering@lucent.com>
107640         * lib/basename.c (base_name): Add an assertion.
107642 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
107644         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
107645         shadow its mbsinit function.
107647 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
107649         * lib/mbswidth.h: New file.
107650         * lib/mbswidth.c: New file.
107651         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
107652         (noinst_HEADERS): Add mbswidth.h.
107654 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
107656         * lib/config.charset: Add support for FreeBSD. Improve support for
107657         HP-UX and IRIX 6.
107659 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
107661         * m4/mbswidth.m4: New file.
107662         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
107664 2000-07-15  Jim Meyering  <meyering@lucent.com>
107666         * lib/makepath.c: Include quote.h.
107667         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
107668         corresponding argument in a `quote (...)' call.
107669         Give better diagnostics.
107671         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
107672         (noinst_HEADERS): Add quote.h.
107674         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
107675         from tar's src/misc.c.
107676         * lib/quote.h: New file.  Prototypes for same.
107678 2000-07-14  Paul Eggert  <eggert@twinsun.com>
107680         From a suggestion by Bruno Haible.
107681         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
107682         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
107683         to decide whether to define the BeOS workaround macro;
107684         this adjusts to the change to AC_MBSTATE_T.
107686 2000-07-14  Jim Meyering  <meyering@lucent.com>
107688         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
107689         jm_AC_TYPE_UINTMAX_T.
107691 2000-07-13  Paul Eggert  <eggert@twinsun.com>
107693         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
107695         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
107696         quotearg_buffer_restyled): Add support for
107697         clocale_quoting_style.  Undo previous change to
107698         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
107699         and "{RIGHT QUOTATION MARK}" msgids.
107701 2000-07-10  Paul Eggert  <eggert@twinsun.com>
107703         From a suggestion by Bruno Haible.
107704         * m4/mbstate_t.m4 (AC_MBSTATE_T):
107705         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
107706         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
107707         and mbstate_t, to a single-part test that simply defines mbstate_t.
107708         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
107709         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
107711 2000-07-10  Jim Meyering  <meyering@lucent.com>
107713         * m4/strerror_r.m4: Mirror the correction made in autoconf.
107715         * m4/gnu-source.m4: Output to confdefs.h directly.
107716         Suggestion from Akim Demaille.
107718 2000-07-09  Paul Eggert  <eggert@twinsun.com>
107720         The old behavior of quoting `like this' doesn't look good with
107721         newer, ISO-style fonts.  See:
107722         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
107724         Instead, quote "like this" by default.  Let the translator
107725         tailor the locale-specific quoting behavior by providing
107726         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
107728         * lib/quotearg.c (N_): New macro.
107729         (gettext_default): New function.
107730         (quotearg_buffer_restyled): Use
107731         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
107732         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
107734 2000-07-09  Jim Meyering  <meyering@lucent.com>
107736         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
107737         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
107739         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
107740         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
107742 2000-07-09  Jim Meyering  <meyering@lucent.com>
107744         * lib/Most files: Update copyright dates to include 2000.
107746 2000-07-08  Jim Meyering  <meyering@lucent.com>
107748         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
107749         if not defined.
107750         (xgethostname): Remove now-unnecessary #ifdef.
107751         Move declaration of `err' into loop where it's used.
107753 2000-07-05  Paul Eggert  <eggert@twinsun.com>
107754         and Bruno Haible  <haible@clisp.cons.org>
107756         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
107757         only if the test for an object-type mbstate_t fails.  This
107758         prevents us from mistakenly reporting that mbstate_t is a
107759         system object type after we "#define mbstate_t int" to work
107760         around its lack.
107762 2000-07-05  Paul Eggert  <eggert@twinsun.com>
107763         and Bruno Haible  <haible@clisp.cons.org>
107765         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
107767 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
107769         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
107770         to strerror_r.
107771         Include <ctype.h> for use of isalpha.
107773 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
107775         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
107776         by allocating a larger buffer. Test the gethostname return value for
107777         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
107778         returns an error and ENAMETOOLONG isn't defined.
107780 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
107782         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
107783         dimension.
107785 2000-07-04  Jim Meyering  <meyering@lucent.com>
107787         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
107788         of the deprecated AC_CHECKING.
107790 2000-07-04  Jim Meyering  <meyering@lucent.com>
107792         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
107793         Reported by Bruno Haible.
107795 2000-07-04  Jim Meyering  <meyering@lucent.com>
107797         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
107798         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
107799         lacks mbrtowc.
107801 2000-07-03  Paul Eggert  <eggert@twinsun.com>
107803         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
107804         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
107806 2000-07-03  Paul Eggert  <eggert@twinsun.com>
107807         and Bruno Haible  <haible@clisp.cons.org>
107809         * lib/quotearg.c (mbrtowc):
107810         Assign to *pwc, and return 1 only if result is nonzero.
107811         (iswprint): Use ISPRINT when substituting our own mbrtowc.
107813 2000-07-03  Jim Meyering  <meyering@lucent.com>
107815         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
107817 2000-07-03  Jim Meyering  <meyering@lucent.com>
107819         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
107820         This is necessary to get a definition of e.g., UTMP_FILE on
107821         HP-UX 10.20.
107822         From Bob Proulx.
107824 2000-07-02  Jim Meyering  <meyering@lucent.com>
107826         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
107828         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
107829         AC_LIBOBJ(function_name).
107830         * m4/chown.m4: Likewise.
107831         * m4/fnmatch.m4: Likewise.
107832         * m4/ftruncate.m4: Likewise.
107833         * m4/getgroups.m4: Likewise.
107834         * m4/getline.m4: Likewise.
107835         * m4/group-member.m4: Likewise.
107836         * m4/jm-macros.m4: Likewise.
107837         * m4/lstat.m4: Likewise.
107838         * m4/malloc.m4: Likewise.
107839         * m4/memcmp.m4: Likewise.
107840         * m4/nanosleep.m4: Likewise.
107841         * m4/putenv.m4: Likewise.
107842         * m4/realloc.m4: Likewise.
107843         * m4/regex.m4: Likewise.
107844         * m4/stat.m4: Likewise.
107845         * m4/strftime.m4: Likewise.
107847 2000-07-02  Jim Meyering  <meyering@lucent.com>
107849         * lib/quotearg.c (mbstate_t): Don't define here.
107851 2000-07-02  Jim Meyering  <meyering@lucent.com>
107853         * lib/nanosleep.c (SIGCONT): Define if not already defined.
107855 2000-07-01  Jim Meyering  <meyering@lucent.com>
107857         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
107859 2000-07-01  Jim Meyering  <meyering@lucent.com>
107861         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
107862         problem.
107864 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
107866         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
107867         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
107869 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
107871         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
107872         per change in ../m4/ls-mntd-fs.m4.
107873         (read_filesystem_list): Ignore symbolic links.
107875 2000-06-29  Jim Meyering  <meyering@lucent.com>
107877         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
107878         for declaration of strcmp.
107880         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
107882         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
107883         Avoid warning by casting result to `char *' to remove `const'.
107885 2000-06-28  Jim Meyering  <meyering@lucent.com>
107887         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
107888         included by quotearg.c, for which we perform this test.  From
107889         Bruno Haible.
107891 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
107893         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
107894         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
107895         <utmpx.h> exists, put readutmp.o into LIBOBJS.
107897 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
107899         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
107901 2000-06-26  Paul Eggert  <eggert@twinsun.com>
107903         savedir now sets errno on failure and invokes xmalloc to get memory.
107904         Fix a couple of other minor bugs while we're at it.
107906         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
107907         (NAMLEN): Remove macro.
107908         (malloc, realloc): Remove decls.
107909         (stpcpy): Likewise.
107910         ("xalloc.h"): Include.
107911         (NAME_SIZE_DEFAULT): New macro.
107912         (savedir): Use xmalloc / xrealloc to allocate memory.
107913         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
107914         Skip "" directory entries.
107915         Use strlen to calculate directory entry length, since the old method
107916         is rarely used these days and isn't worth supporting.
107917         Don't use a pointer after freeing it.
107918         Check for integer overflow when calculating allocation size.
107919         Use memcpy to copy entries, instead of stpcpy.
107920         Set errno properly when returning NULL.
107921         Check for readdir error.
107923 2000-06-26  Jim Meyering  <meyering@lucent.com>
107925         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
107927 2000-06-25  Jim Meyering  <meyering@lucent.com>
107929         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
107930         Linux header bug when _XOPEN_SOURCE is defined to 500.
107932 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
107934         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
107935         deficiency.
107937 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
107939         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
107940         Include xalloc.h.
107941         Don't include <stdlib.h>.  Don't declare malloc, realloc.
107943 2000-06-24  Jim Meyering  <meyering@lucent.com>
107945         * m4/strerror_r.m4: Revive this file -- to try out an experimental
107946         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
107947         for which strerror does return char*, but which lacks a conveniently
107948         accessible declaration of the function.  If the compile-test says
107949         strerror_r doesn't work, then resort to a `run'-test that works on
107950         BeOS and segfaults on DEC Unix.
107952 2000-06-24  Jim Meyering  <meyering@lucent.com>
107954         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
107956 2000-06-23  Paul Eggert  <eggert@twinsun.com>
107958         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
107959         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
107961 2000-06-23  Paul Eggert  <eggert@twinsun.com>
107963         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
107964         (mbrtowc, mbstate_t): Define substitutes if
107965         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
107966         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
107967         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
107969 2000-06-23  Jim Meyering  <meyering@lucent.com>
107971         * m4/afs.m4: Add missing AC_MSG_RESULT.
107972         Reported by Bruno Haible.
107974         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
107975         Suggestion from Bruno Haible.
107977 2000-06-23  Jim Meyering  <meyering@lucent.com>
107979         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
107981 2000-06-21  Jim Meyering  <meyering@lucent.com>
107983         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
107985 2000-06-21  Jim Meyering  <meyering@lucent.com>
107987         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
107988         (noinst_HEADERS): Add getstr.h.
107990         * lib/getline.c (getstr): Move into a separate file.
107991         * lib/getstr.c (getstr): New file, extracted from getline.c, with
107992         the following changes: new parameter, delim2; both delim[12]
107993         parameters have type `int', not `char'.  The latter would lose
107994         with 8-bit delimiters.
107995         * lib/getstr.h: New file.
107997 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
107999         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
108000         than 1024, return a memory chunk of least possible size, instead
108001         of size PATH_MAX + 2. In the loop, increment the size proportionally.
108002         Use free/xmalloc instead of xrealloc to avoid copying for very long
108003         paths.
108005 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
108007         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
108008         the empty string.
108010 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
108012         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
108013         address, not strdup.  Include <stdlib.h> and don't declare free().
108015 2000-06-19  Jim Meyering  <meyering@lucent.com>
108017         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
108019 2000-06-18  Jim Meyering  <meyering@lucent.com>
108021         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
108023         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
108024         `checking whether...' message to be consistent with that of the
108025         lstat test.
108027 2000-06-18  Jim Meyering  <meyering@lucent.com>
108029         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
108030         Besides, these days every porting target provides a mkdir function.
108032         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
108033         needed. (this snippet comes from src/system.h).
108035 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
108037         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
108039 2000-06-15  Paul Eggert  <eggert@twinsun.com>
108041         * lib/human.c (adjust_value): New function.
108042         (human_readable_inexact): Apply rounding style even when
108043         printing approximate values.
108045 2000-06-14  Paul Eggert  <eggert@twinsun.com>
108047         * lib/human.c (human_readable_inexact): Allow an input block
108048         size that is not a multiple of the output block size, and vice versa.
108049         Reported by Piergiorgio Sartor.
108051 2000-06-14  Paul Eggert  <eggert@twinsun.com>
108053         * lib/getdate.y (get_date): Apply relative times after time
108054         zone indicator, not before.  Reported by Todd A. Jacobs.
108056 2000-06-13  Jim Meyering  <meyering@lucent.com>
108058         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
108060         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
108062 2000-06-12  Paul Eggert  <eggert@twinsun.com>
108064         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
108066 2000-06-12  Jim Meyering  <meyering@lucent.com>
108068         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
108069         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
108070         optional argument.
108071         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
108072         the optional argument, `lib'.
108074 2000-06-08  Jim Meyering  <meyering@lucent.com>
108076         * m4/largefile.m4: Remove file (now that it's part of autoconf).
108078 2000-06-04  Paul Eggert  <eggert@twinsun.com>
108080         Rewrite largefile configuration so that we don't need to run
108081         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
108082         AC_CANONICAL_HOST in configure.in -- jmm]
108084         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
108085         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
108086         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
108087         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
108088         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
108089         All uses changed.
108090         Instead of inspecting the output of getconf, try to compile the
108091         test program without and with the macro definition.
108092         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
108093         for getconf.  Instead, check for the needed flags by compiling
108094         test programs.
108096 2000-06-04  Paul Eggert  <eggert@twinsun.com>
108098         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
108100 2000-06-04  Jim Meyering  <meyering@lucent.com>
108102         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
108103         SunOS 4.1.4 for which gid_t is an unsigned type.
108105 2000-06-03  Jim Meyering  <meyering@lucent.com>
108107         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
108108         now that autoconf requires that.
108110         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
108111         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
108112         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
108114 2000-06-03  Jim Meyering  <meyering@lucent.com>
108116         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
108118 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
108120         * m4/glibc21.m4: New file.
108121         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
108123 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
108125         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
108126         newer, don't install charset.alias.
108127         * lib/config.charset: Change the Linux/glibc rules so they become empty
108128         on glibc-2.1 or newer.
108130 2000-06-02  Jim Meyering  <meyering@lucent.com>
108132         * lib/mountlist.c: Back out last change.  Instead, do this...
108133         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
108134         me_dummy member using the same `ignore'-testing code.
108135         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
108136         fs_type strings.
108137         From Mark D. Roth.
108139 2000-05-29  Jim Meyering  <meyering@lucent.com>
108141         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
108142         mounts with the `ignore' attribute.  Based on a patch from
108143         Mark D. Roth.
108145 2000-05-28  Jim Meyering  <meyering@lucent.com>
108147         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
108148         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
108149         * m4/stat.m4: Likewise.
108150         * m4/lstat.m4: Likewise.
108151         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
108153         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
108154         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
108156 2000-05-26  Jim Meyering  <meyering@lucent.com>
108158         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
108160 2000-05-24  Jim Meyering  <meyering@lucent.com>
108162         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
108163         autoconf requires that.
108164         * m4/lib-check.m4: Likewise.
108165         * m4/jm-macros.m4: Likewise.
108166         * m4/strftime.m4: Likewise.
108168         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
108169         AC_CHECK_DECLS, now that autoconf requires that.
108171 2000-05-22  Jim Meyering  <meyering@lucent.com>
108173         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
108174         * m4/lstat.m4: Likewise.
108176 2000-05-22  Jim Meyering  <meyering@lucent.com>
108178         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
108180 2000-05-20  Jim Meyering  <meyering@lucent.com>
108182         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
108183         (jm_PREREQ): Use it.
108185 2000-05-18  Jim Meyering  <meyering@lucent.com>
108187         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
108188         back, too, since it may have been modified by allocate_entry.
108189         (hash_delete): Rewrite to use neither the assignment operator
108190         nor the comma operator in an if-expression.
108192 2000-05-15  Paul Eggert  <eggert@twinsun.com>
108194         * lib/closeout.c:
108195         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
108196         Remove; no longer needed.
108197         "quotearg.h": Add include.
108198         (file_name): Do not bother to explicitly initialize to NULL; it's less
108199         efficient on some hosts.
108200         (close_stdout_status): Remove test as to whether stdout was already
108201         closed; it breaks for the case "echo x | sort >&-".
108202         Quote file name colons.
108203         Do not assume that _("write error") lacks format strings.
108205 2000-05-15  Jim Meyering  <meyering@lucent.com>
108207         * lib/version-etc.c (version_etc_copyright): Update the copyright
108208         string used in all --version output.
108210 2000-05-14  Jim Meyering  <meyering@lucent.com>
108212         * lib/closeout.c (close_stdout_set_file_name): New function.
108213         (close_stdout_status): Use new file-scoped global.
108214         Return right away if fstat says the stdout file descriptor is invalid.
108215         * lib/closeout.h (close_stdout_set_file_name): Declare.
108217 2000-05-10  Jim Meyering  <meyering@lucent.com>
108219         * lib/closeout.c [default_exit_status]: New file-scoped variable.
108220         (close_stdout_set_status): New function.
108221         * lib/closeout.h (close_stdout_set_status): Declare.
108223 2000-05-09  Jim Meyering  <meyering@lucent.com>
108225         * m4/gettext.m4: Rename this...
108226         * m4/libintl.m4: ...to this.
108228 2000-05-08  Jim Meyering  <meyering@lucent.com>
108230         * lib/long-options.c: Don't include closeout.h.
108231         (parse_long_options): Don't call close_stdout for --version.
108233 2000-05-06  Paul Eggert  <eggert@twinsun.com>
108235         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
108236         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
108237         2.1.3 bug.  This avoids a clash when files like regex.c define
108238         _GNU_SOURCE.
108240 2000-05-06  Jim Meyering  <meyering@lucent.com>
108242         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
108243         (AC_REPLACE_FUNCS): Add strnlen.
108245         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
108246         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
108248         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
108249         AC_SEARCH_LIBS call for nanosleep.
108250         (LIB_NANOSLEEP): Set and AC_SUBST.
108252 2000-05-06  Jim Meyering  <meyering@lucent.com>
108254         * lib/strnlen.c: Undefine __strnlen and strnlen.
108255         [!weak_alias]: Define __strnlen to strnlen.
108257         * lib/atexit.c: New file, from libiberty.
108259 2000-05-06  Jim Meyering  <meyering@lucent.com>
108261         * lib/closeout.c (close_stdout_status): Also check for errors on the
108262         stderr stream.
108264 2000-05-05  Jim Meyering  <meyering@lucent.com>
108266         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
108267         AC_SEARCH_LIBS call for clock_gettime.
108268         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
108270         * m4/search-libs.m4: Update from autoconf.
108272         su doesn't work on Solaris 2.6.
108273         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
108274         <shadow.h>.  Reported by Dragos Harabor.
108276 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
108278         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
108279         memcpy instead of xmalloc, xrealloc, path_concat.
108280         (locale_charset): Treat empty environment variables as absent.
108281         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
108283 2000-05-04  Jim Meyering  <meyering@lucent.com>
108285         * lib/getopt.c: Update from glibc.
108286         * lib/obstack.c: Likewise.
108287         * lib/obstack.h: Likewise.
108288         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
108289         file
108291         * lib/regex.h: Likewise.
108292         * lib/strndup.c: Likewise.
108293         * lib/strnlen.c: New file, from glibc.
108295 2000-05-03  Jim Meyering  <meyering@lucent.com>
108297         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
108299 2000-05-02  Paul Eggert  <eggert@twinsun.com>
108301         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
108302         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
108303         compile-time test, rather than inspecting host and OS, to
108304         decide whether to define _LARGEFILE_SOURCE.
108306 2000-05-01  Jim Meyering  <meyering@lucent.com>
108308         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
108310         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
108311         Based on a patch from Bruno Haible.
108313 2000-05-01  Jim Meyering  <meyering@lucent.com>
108315         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
108317 2000-04-29  Jim Meyering  <meyering@lucent.com>
108319         * lib/path-concat.c: Declare strdup only if it's not defined.
108320         * lib/canon-host.c: Likewise.
108322 2000-04-28  Jim Meyering  <meyering@lucent.com>
108324         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
108325         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
108326         is included first, then limits.h is included by locale.h by libintl.h.
108327         From John David Anglin.
108329 2000-04-25  Jim Meyering  <meyering@lucent.com>
108331         * lib/makepath.c (S_IRWXUGO): Define.
108332         (make_path): Always perform explicit chmod if MODE specifies any
108333         of the `special' permission bits.  Prompted by a bug report against
108334         install from Mate Wierdl and Joost van Baal.
108336 2000-04-18  Jim Meyering  <meyering@lucent.com>
108338         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
108339         (jm_PREREQ): Use it.
108341 2000-04-18  Jim Meyering  <meyering@lucent.com>
108343         * lib/README: New file.
108345         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
108346         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
108348 2000-04-17  Jim Meyering  <meyering@lucent.com>
108350         Get it right :-)
108351         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
108352         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
108353         Suggestion from Akim Demaille.
108355 2000-04-17  Jim Meyering  <meyering@lucent.com>
108357         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
108358         the definition of it to rpl_strftime also defined-away the system's
108359         declaration.
108361 2000-04-15  Jim Meyering  <meyering@lucent.com>
108363         Use `C' to denote so-called `contiguous' files, the same way
108364         that tar does.
108365         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
108366         (ftypelet): Use S_ISCTG.
108367         From Michael Deutschmann.
108369 2000-04-14  Jim Meyering  <meyering@lucent.com>
108371         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
108372         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
108373         clobbered.
108375 2000-04-14  Jim Meyering  <meyering@lucent.com>
108377         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
108379 2000-04-13  Jim Meyering  <meyering@lucent.com>
108381         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
108382         AH_VERBATIM to insert required #ifndef into config.h.in.
108383         Suggestion from Akim Demaille.
108385 2000-04-12  Jim Meyering  <meyering@lucent.com>
108387         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
108388         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
108389         Christian Krackowizer.
108391         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
108392         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
108393         (AC_SYS_LARGEFILE): Require.
108394         (AM_C_PROTOTYPES): Require.
108396 2000-04-08  Jim Meyering  <meyering@lucent.com>
108398         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
108399         names don't conflict.  Reported by Eli Zaretskii.
108401 2000-04-07  Jim Meyering  <meyering@lucent.com>
108403         * lib/putenv.c: Move inclusion of errno.h so it follows that of
108404         sys/types.h, to work around system header problems on AIX 3.2.5.
108405         From Bruno Haible.
108407 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
108409         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
108410         bug.  Deal with the different error behavior of Irix iconv.
108412 2000-04-05  Paul Eggert  <eggert@twinsun.com>
108414         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
108415         IRIX if the installer said otherwise.
108417 2000-04-05  Jim Meyering  <meyering@lucent.com>
108419         Portability tweaks required for ultrix4.3.
108420         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
108421         (jm_CHECK_DECLS): Add getutent to the list of functions.
108422         (_jm_DECL_HEADERS): Add utmpx.h.
108423         From John David Anglin.
108425         * m4/strftime.m4: Back out the 2000-04-02 change.
108426         Instead of that change, simply undefine putenv in the test program.
108428 2000-04-05  Jim Meyering  <meyering@lucent.com>
108430         Portability tweaks required for ultrix4.3.
108431         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
108432         getutent.
108433         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
108434         * lib/canon-host.c: Declare strdup.
108435         * lib/path-concat.c: Likewise.
108436         From John David Anglin.
108438 2000-04-04  Jim Meyering  <meyering@lucent.com>
108440         Be more DOS 8.3-friendly.
108441         * lib/ref-add.sin: Renamed from ref-add.sed.in.
108442         * lib/ref-del.sin: Renamed from ref-del.sed.in.
108443         * lib/Makefile.am: Reflect renaming.
108444         Reported by Eli Zaretskii.
108446         Use a temporary file name that won't clash with `charset.alias'
108447         in the DOS 8.3 name space.
108448         * lib/Makefile.am (charset_tmp): Define.
108449         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
108450         (uninstall-local): Likewise.
108451         Reported by Eli Zaretskii.
108453 2000-04-03  Jim Meyering  <meyering@lucent.com>
108455         * m4/gettext.m4: Fix typo in comment.
108457         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
108458         textutils/configure.in).  Suggestion from Paul Eggert.
108459         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
108461 2000-04-02  Paul Eggert  <eggert@twinsun.com>
108463         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
108464         variable in the shell rather than using putenv, which isn't
108465         portable.  This avoids the configure-time inter-test dependency
108466         on the potentially-renamed putenv function.
108468 2000-03-30  Paul Eggert  <eggert@twinsun.com>
108470         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
108471         before checking struct stat.st_blksize, so that
108472         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
108474 2000-03-29  Paul Eggert  <eggert@twinsun.com>
108476         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
108477         since strftime.c uses HAVE_STRFTIME to decide whether to use
108478         the underlying strftime.
108480 2000-03-29  Paul Eggert  <eggert@twinsun.com>
108482         * lib/time/strftime.c (my_strftime): Make sure we call the system
108483         strftime, not ourselves, when invoking the underlying strftime.
108485 2000-03-24  Jim Meyering  <meyering@lucent.com>
108487         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
108488         (charset_alias): Define.
108489         (install-exec-local): Factor out common code.
108490         (uninstall-local): Split lines longer than 80.
108491         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
108492         (SUFFIXES): Define.
108493         (.sed.in.sed): New rule.  Don't redirect directly to $@.
108494         (CLEANFILES): Add ref-add.sed and ref-del.sed.
108496 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
108498         * lib/config.charset: Output a line containing "Packages using this
108499         file".
108500         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
108501         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
108502         ref-del.sed): New rules.
108504 2000-03-17  Jim Meyering  <meyering@lucent.com>
108506         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
108507         Otherwise, include <strings.h>
108509 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
108511         * lib/unicodeio.c (utf8_wctomb): New function.
108512         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
108513         format instead of in UCS-4 with platform dependent endianness.
108515 2000-03-10  Jim Meyering  <meyering@lucent.com>
108517         * m4/lib-check.m4: Look for getspnam in -lgen, too.
108518         From Marco Franzen.
108520 2000-03-07  Paul Eggert  <eggert@twinsun.com>
108522         * lib/savedir.c (savedir): Work even if directory size is
108523         negative; this can happen with some screwy NFS configurations.
108525 2000-03-06  Jim Meyering  <meyering@lucent.com>
108527         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
108528         if it's NULL (because we ran out of memory).  From Bruno Haible.
108530 2000-03-05  Jim Meyering  <meyering@lucent.com>
108532         * lib/localcharset.c ("path-concat.h"): Include.
108533         (get_charset_aliases): Use path_concat instead of ANSI string
108534         concatenation.
108536         * lib/unicodeio.h (PARAMS): Define.
108537         Use it to guard prototype.
108539 2000-03-04  Jim Meyering  <meyering@lucent.com>
108541         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
108542         for lib/localcharset.c.
108544 2000-03-04  Jim Meyering  <meyering@lucent.com>
108546         * lib/Makefile.am (install-exec-local): Create $(libdir) before
108547         installing into it.
108548         (uninstall-local): Uncomment this rule so `make distcheck' works
108549         once again.
108551         * lib/unicodeio.c (<errno.h>): Include it.
108552         (errno): Declare if not defined.
108554         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
108556         * lib/config.charset: New version, incorporating remarks from a linux
108557         i18n mailing list.  From Bruno Haible.
108559 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
108561         * m4/codeset.m4: New file.
108562         * m4/iconv.m4: New file.
108563         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
108565 2000-03-03  Jim Meyering  <meyering@lucent.com>
108567         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
108569 2000-03-02  Jim Meyering  <meyering@lucent.com>
108571         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
108572         the messages come out on separate lines.
108574         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
108575         rather than jm_CHECK_DECLARATIONS.
108576         * m4/decl.m4: Remove now-unused file.
108578         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
108579         geteuid.
108581 2000-03-02  Jim Meyering  <meyering@lucent.com>
108583         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
108585 2000-03-01  Jim Meyering  <meyering@lucent.com>
108587         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
108588         * lib/unicodeio.c: Likewise.
108590 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
108592         * lib/config.charset: New file.
108593         * lib/localcharset.c: New file.
108594         * lib/unicodeio.h, lib/unicodeio.c: New files.
108595         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
108596         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
108597         (noinst_HEADERS): Add unicodeio.h.
108598         (all-local, install-exec-local, charset.alias): New targets.
108600 2000-02-28  Paul Eggert  <eggert@twinsun.com>
108602         * lib/quotearg.c (ALERT_CHAR): New macro.
108603         (quotearg_buffer_restyled): Use it.
108605 2000-02-27  Jim Meyering  <meyering@lucent.com>
108607         * m4/check-decl.m4: Add getenv to the list.
108609 2000-02-27  Jim Meyering  <meyering@lucent.com>
108611         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
108612         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
108614         * lib/backupfile.c: Guard inclusion of stdlib.h with
108615         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
108616         Declare malloc if needed.
108618         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
108619         `#ifndef HAVE_DECL..'
108620         now that autoconf always defines the HAVE_DECL_ symbols.
108621         * lib/human.c: Likewise.
108622         * lib/same.c: Likewise.
108623         * lib/strtoumax.c: Likewise.
108625         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
108626         declaration check was not run.
108627         * lib/hash.c: Likewise.
108628         * lib/human.c: Likewise.
108629         * lib/same.c: Likewise.
108630         * lib/strtoumax.c: Likewise.
108632         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
108633         `.', then first look up the entire `.'-containing string as a login
108634         name.
108636 2000-02-23  Jim Meyering  <meyering@lucent.com>
108638         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
108639         in place of my hack.
108641 2000-02-18  Paul Eggert  <eggert@twinsun.com>
108643         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
108644         (textint): New typedef.
108645         (parser_control): Member year changed from int to textint.
108646         All uses changed.
108647         (YYSTYPE): Removed; replaced by %union with int and textint members.
108648         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
108649         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
108650         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
108651         (tSNUMBER, tUNUMBER): Now of type <textintval>.
108652         (date, number, to_year): Use width of number in digits, not its value,
108653         to determine whether it's a 2-digit year, or a 2-digit time.
108654         (yylex): Store number of digits of numeric tokens.
108655         Reported by John Kendall.
108657         (parser_control): Changed from struct parser_control to typedef (for
108658         consistency).  All uses changed.
108660         (tID): Removed; not used.
108661         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
108663 2000-02-14  Paul Eggert  <eggert@twinsun.com>
108665         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
108666         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
108668 2000-02-12  Jim Meyering  <meyering@lucent.com>
108670         * lib/userspec.c (ISDIGIT): Define it.
108671         (isdigit): Remove definition.
108672         (is_number): Use ISDIGIT, not isdigit.
108673         <libintl.h>: Include.
108674         (_ and N_): Define.
108675         (parse_user_spec): Mark translatable strings.
108677 2000-02-10  Jim Meyering  <meyering@lucent.com>
108679         With these changes, nanosleep.[ch] are finally enough like the other
108680         lib/* replacement files to compile on a few more losing systems.
108682         * lib/nanosleep.h: Don't include config.h.
108683         Remove prototype from declaration of nanosleep.
108684         (PARAMS): Remove now-unneeded definition.
108685         * lib/nanosleep.c: #undef nanosleep.
108686         (rpl_nanosleep): Rename from nanosleep.
108688 2000-02-10  Jim Meyering  <meyering@lucent.com>
108690         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
108691         gnu_nanosleep to rpl_nanosleep.
108693 2000-02-09  Jim Meyering  <meyering@lucent.com>
108695         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
108696         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
108698 2000-02-08  Akim Demaille  <akim@epita.fr>
108700         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
108701         `[' and `]' and remove uses of `changequote'.
108702         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
108703         (AC_SYS_LARGEFILE): Likewise.
108704         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
108705         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
108706         of changequote.
108707         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
108708         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
108709         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
108710         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
108712 2000-02-05  Jim Meyering  <meyering@lucent.com>
108714         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
108715         Remove explicit use of AC_HEADER_TIME.  It is required by
108716         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
108717         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
108718         in autoconf whereby the expansion of the latter ended up preceding
108719         the expansion of its prerequisite, AC_HEADER_TIME.
108720         Reported by Volker Borchert.
108722 2000-02-03  Jim Meyering  <meyering@lucent.com>
108724         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
108726 2000-02-03  Jim Meyering  <meyering@lucent.com>
108728         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
108729         rather than with `#if HAVE_UTMPNAME'.
108731 2000-02-02  Jim Meyering  <meyering@lucent.com>
108733         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
108734         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
108735         Reported by Eli Zaretskii.
108737 2000-02-01  Jim Meyering  <meyering@lucent.com>
108739         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
108741 2000-01-31  Jim Meyering  <meyering@lucent.com>
108743         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
108744         functions.  Add the time.h and sys/time.h headers along with the
108745         AC_REQUIRE'ment of AC_HEADER_TIME.
108747 2000-01-31  Jim Meyering  <meyering@lucent.com>
108749         * lib/nanosleep.h (nanosleep): Guard declaration with
108750         `#if ! HAVE_DECL_NANOSLEEP'.
108751         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
108752         the declaration in that vendor's sys/timers.h.
108753         Reported by Christian Krackowizer.
108755         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
108756         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
108757         (ISPRINT): Likewise.
108758         Reported by Tom Tromey.
108760 2000-01-30  Jim Meyering  <meyering@lucent.com>
108762         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
108764         * m4/prereq.m4 (utmp_includes): Define.
108765         Check for ut_user and ut_name members in both struct utmpx
108766         and struct utmp.
108768 2000-01-30  Jim Meyering  <meyering@lucent.com>
108770         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
108771         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
108772         header files where only utmpx.ut_user is declared.
108774         * lib/readutmp.h (UT_USER): Define.
108776 2000-01-29  Jim Meyering  <meyering@lucent.com>
108778         * m4/lib-check.m4: New file containing library-related checks from
108779         fileutils and sh-utils (textutils had none).
108781 2000-01-28  Jim Meyering  <meyering@lucent.com>
108783         * m4/perl.m4: Change format of warning message to look more like that
108784         from the missing script.  Suggestion from François Pinard.
108786 2000-01-25  Jim Meyering  <meyering@lucent.com>
108788         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
108789         well as time.h in the compile check.
108790         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
108791         Fix typo in cross-compiling case: s/yes/no/.
108793 2000-01-23  Jim Meyering  <meyering@lucent.com>
108795         * m4/jm-macros.m4: Move df-related tests here from
108796         fileutils/configure.in
108798         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
108799         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
108801         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
108802         s/space/ac_fsusage_space/.
108803         (jm_FILE_SYSTEM_USAGE): Take two parameters.
108805         * m4/ftruncate.m4: New file (derived from part of
108806         fileutils/configure.in).
108807         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
108808         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
108810         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
108811         AC_SUBST these here, rather than just in sh-util/configure.in, so
108812         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
108813         all the same.
108814         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
108815         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
108816         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
108817         (AC_SUBST(POW_LIBM)): Likewise.
108818         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
108820 2000-01-23  Jim Meyering  <meyering@lucent.com>
108822         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
108823         obstack.c.
108825 2000-01-22  Jim Meyering  <meyering@lucent.com>
108827         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
108829         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
108831         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
108832         configure.in
108833         (AC_CHECK_HEADERS): Likewise for sh-utils.
108834         (AC_CHECK_HEADERS): Likewise for textutils.
108835         Merge the three lists of headers.
108837         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
108838         from fileutils' configure.in.
108840         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
108841         code. Moved tests into their own function (_jm_DECL_HEADERS) in
108842         check-decl.m4.
108844         * m4/check-decl.m4: Use #if rather than #ifdef.
108845         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
108846         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
108847         (_jm_DECL_HEADERS): Define new function.
108848         (jm_CHECK_DECLARATIONS): Require it.
108850 2000-01-22  Jim Meyering  <meyering@lucent.com>
108852         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
108853         [! HAVE_DECL_STRTOULL]: Declare strtoull.
108854         Required for some AIX systems.  Reported by Christian Krackowizer.
108855         [TESTING] (main): New function.
108857         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
108858         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
108859         letters.
108861         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
108862         iswprint.
108864         * lib/strverscmp.c (ISDIGIT): Define.
108865         (strverscmp): Use ISDIGIT, not isdigit.
108867 2000-01-19  Jim Meyering  <meyering@lucent.com>
108869         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
108870         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
108871         defines `struct timespec' in <sys/time.h>
108873         * m4/c-bs-a.m4: Remove uses of changequote altogether.
108874         Thanks to Akim for explaining.
108876 2000-01-17  Paul Eggert  <eggert@twinsun.com>
108878         * lib/nanosleep.c (nanosleep):
108879         Don't use SA_INTERRUPT to decide whether to call sigaction, as
108880         POSIX.1 doesn't require SA_INTERRUPT and some systems
108881         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
108882         it's been part of POSIX.1 since day 1 (in 1988).
108884 2000-01-17  Jim Meyering  <meyering@lucent.com>
108886         * lib/interlock: Remove unused file.  Reported by François Pinard.
108888 2000-01-16  Paul Eggert  <eggert@twinsun.com>
108890         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
108891         alert, backslash, formfeed, and vertical tab unnecessarily in
108892         shell quoting style.
108894 2000-01-16  Jim Meyering  <meyering@lucent.com>
108896         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
108897         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
108898         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
108899         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
108901 2000-01-16  Jim Meyering  <meyering@lucent.com>
108903         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
108904         because the latter didn't work.
108906 2000-01-15  Jim Meyering  <meyering@lucent.com>
108908         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
108909         (AC_REPLACE_FUNCS): Add memcpy and memset.
108910         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
108911         Add strpbrk.
108912         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
108914 2000-01-12  Jim Meyering  <meyering@lucent.com>
108916         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
108917         (jm_PREREQ): Use it.
108918         (jm_PREREQ_READUTMP): New macro.
108919         (jm_PREREQ): Use it.
108921 2000-01-11  Paul Eggert  <eggert@twinsun.com>
108923         Quote multibyte characters correctly.
108924         * m4/c-bs-a.m4: New file.
108925         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
108926         (jm_PREREQ): Use it.
108928 2000-01-11  Paul Eggert  <eggert@twinsun.com>
108930         * m4/uintmax_t.m4: Port to autoconf 2.13.
108932 2000-01-08  Jim Meyering  <meyering@ascend.com>
108934         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
108935         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
108937 2000-01-04  Jim Meyering  <meyering@ascend.com>
108939         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
108940         jm_STRUCT_DIRENT_D_TYPE.
108941         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
108942         jm_STRUCT_DIRENT_D_INO.
108943         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
108944         jm_STRUCT_UTIMBUF.
108945         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
108946         renamings.
108947         * m4/utime.m4: Likewise.
108949         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
108950         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
108952 2000-01-03  Paul Eggert  <eggert@twinsun.com>
108954         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
108955         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
108957 2000-01-02  Jim Meyering  <meyering@ascend.com>
108959         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
108960         remember if this is necessary.
108962 1999-12-26  Jim Meyering  <meyering@ascend.com>
108964         * m4/jm-macros.m4: Use it here.
108965         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
108967 1999-12-23  Jim Meyering  <meyering@ascend.com>
108969         * m4/jm-macros.m4: Check for clock_gettime (moved from
108970         fileutils/configure.in)
108971         Check for gettimeofday.
108973 1999-12-20  Jim Meyering  <meyering@ascend.com>
108975         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
108976         autoconf-2.14a-1999-12-20.
108978 1999-12-19  Jim Meyering  <meyering@ascend.com>
108980         * m4/lstat-slash.m4: New file.
108981         * m4/jm-macros.m4: Use the new macro:
108982         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
108984 1999-12-07  Jim Meyering  <meyering@ascend.com>
108986         * m4/perl.m4: Require that File::Compare be available, too.
108987         Too many systems seem to lack it.
108989         * m4/strftime.m4: Add checks for most of the cpp macros tested in
108990         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
108992 1999-11-18  Paul Eggert  <eggert@twinsun.com>
108994         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
108995         problem with the QNX 4.25 shell, which doesn't propagate exit
108996         status of failed commands inside shell assignments.
108998 1999-11-17  Jim Meyering  <meyering@ascend.com>
109000         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
109002 1999-11-07  Jim Meyering  <meyering@ascend.com>
109004         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
109006 1999-11-06  Jim Meyering  <meyering@ascend.com>
109008         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
109009         * m4/jm-macros.m4 (jm_MACROS): Use it here.
109011 1999-11-05  Jim Meyering  <meyering@ascend.com>
109013         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
109014         configure.in of textutils, fileutils, and sh-utils into this one
109015         (shared between those packages) file.
109016         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
109017         AC_STRUCT_ST_BLKSIZE.
109019 1999-11-03  Jim Meyering  <meyering@ascend.com>
109021         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
109022         of AC_CHECK_TYPE checks includes unistd.h.
109023         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
109024         Suggestion from Akim Demaille.
109026 1999-10-30  Jim Meyering  <meyering@ascend.com>
109028         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
109029         m4-quoted string.
109030         * m4/ls-mntd-fs.m4: Likewise.
109031         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
109032         * m4/jm-winsz1.m4: Likewise.
109034         * m4/const.m4: Remove file, since the fix made it into the experimental
109035         version of autoconf.
109036         * m4/mktime.m4: Likewise.
109038         * m4/check-type.m4: Remove file, now that the latest version of
109039         AC_CHECK_TYPE takes a third arg to specify additional #includes.
109041         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
109042         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
109043         AC_CHECK_TYPE.
109045 1999-10-04  Jim Meyering  <meyering@ascend.com>
109047         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
109049 1999-09-22  Paul Eggert  <eggert@twinsun.com>
109051         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
109052         2.95.1 bug with HP-UX 10.20.
109054 1999-09-17  Jim Meyering  <meyering@ascend.com>
109056         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
109057         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
109058         due to missing strdup (against sh-utils-2.0).
109060 1999-08-29  Jim Meyering  <meyering@ascend.com>
109062         * m4/jm-macros.m4: Require jm_BISON.
109063         * m4/bison.m4: New file.
109065 1999-08-17  Paul Eggert  <eggert@twinsun.com>
109067         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
109068         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
109070 1999-08-05  Jim Meyering  <meyering@ascend.com>
109072         * m4/getline.m4: Rename test file from conftestdata to conftest.data
109073         to avoid conflicts with `conftest' on 8+3 filesystems.
109074         Suggestion from Eli Zaretskii.
109076 1999-08-04  Jim Meyering  <meyering@ascend.com>
109078         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
109079         fileutils and sh-utils (textutils's getline test was inadequate).
109080         (AM_FUNC_GETLINE): Run this test.
109081         (AC_CHECK_FUNCS): Check for getdelim.
109082         Reported by Bob Proulx.
109084 1999-08-02  Jim Meyering  <meyering@ascend.com>
109086         * m4/jm-macros.m4: Add a comment.
109088 1999-08-01  Paul Eggert  <eggert@twinsun.com>
109090         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
109091         <inttypes.h> defines strtoumax as a macro (and not as a
109092         function).
109094 1999-08-01  Paul Eggert  <eggert@twinsun.com>
109096         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
109097         that we can shift, multiply and divide unsigned long long
109098         values; Ultrix cc can't do it.
109100 1999-08-01  Paul Eggert  <eggert@twinsun.com>
109102         * m4/mktime.m4: New file, which is a preview of what should appear
109103         in the next public autoconf release.
109105 1999-08-01  Paul Eggert  <eggert@twinsun.com>
109107         * m4/lfs.m4: Remove this file.
109108         * m4/largefile.m4: New file.  It contains the old contents of
109109         lfs.m4, except that all names with prefix AC_LFS have been
109110         changed to use the prefix AC_SYS_LARGEFILE instead, to be
109111         compatible with future autoconf versions.  Also, some minor m4
109112         quoting problems have been fixed.
109114 1999-08-01  Paul Eggert  <eggert@twinsun.com>
109116         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
109117         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
109118         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
109119         and simplify the shell code.
109121 1999-08-01  Jim Meyering  <meyering@ascend.com>
109123         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
109124         m4.
109126 1999-07-20  Jim Meyering  <meyering@ascend.com>
109128         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
109130 1999-07-15  Jim Meyering  <meyering@ascend.com>
109132         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
109134 1999-05-22  Jim Meyering  <meyering@ascend.com>
109136         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
109138 1999-05-20  Jim Meyering  <meyering@ascend.com>
109140         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
109141         Add a colon after each `then' in case $4 is empty.
109143 1999-05-16  Jim Meyering  <meyering@ascend.com>
109145         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
109147 1999-05-10  Jim Meyering  <meyering@ascend.com>
109149         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
109151         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
109152         AC_FUNC_MKTIME.
109154 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
109156         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
109158 1999-05-04  Paul Eggert  <eggert@twinsun.com>
109160         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
109161         not CPPFLAGS, so that linking works correctly in IRIX.
109163 1999-04-30  Paul Eggert  <eggert@twinsun.com>
109165         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
109167 1999-04-20  Paul Eggert  <eggert@twinsun.com>
109169         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
109170         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
109171         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
109172         jm_AC_TYPE_UNSIGNED_LONG_LONG.
109173         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
109175         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
109177 1999-04-20  Jim Meyering  <meyering@ascend.com>
109179         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
109180         AC_REPLACE xstroull if necessary.  From Paul Eggert.
109181         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
109183 1999-04-18  Jim Meyering  <meyering@ascend.com>
109185         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
109186         * m4/jm-macros.m4: Use it.
109188 1999-04-06  Jim Meyering  <meyering@ascend.com>
109190         * m4/strftime.m4: Remove test for %f.
109192 1999-03-29  Jim Meyering  <meyering@ascend.com>
109194         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
109195         superset of the AC_TYPE_* checks in the textutils, fileutils,
109196         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
109197         AC_TYPE_PID_T.
109199 1999-03-28  Jim Meyering  <meyering@ascend.com>
109201         * m4/jm-macros.m4: Define GNU_PACKAGE here.
109202         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
109203         replaced e.g., in the *.sh files of the sh-utils.
109205 1999-03-20  Jim Meyering  <meyering@ascend.com>
109207         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
109208         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
109209         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
109211 1999-03-19  Jim Meyering  <meyering@ascend.com>
109213         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
109215 1999-03-12  Jim Meyering  <meyering@ascend.com>
109217         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
109219 1999-03-07  Jim Meyering  <meyering@ascend.com>
109221         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
109222         declared.
109224 1999-02-17  Jim Meyering  <meyering@ascend.com>
109226         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
109227         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
109229 1999-02-07  Jim Meyering  <meyering@ascend.com>
109231         * m4/group-member.m4: New file -- extracted from sh-utils'
109232         configure.in.
109234         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
109235         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
109237 1999-02-06  Jim Meyering  <meyering@ascend.com>
109239         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
109240         * m4/fnmatch.m4: Likewise.
109241         * m4/getgroups.m4: Likewise.
109242         * m4/lstat.m4: Likewise.
109243         * m4/malloc.m4: Likewise.
109244         * m4/putenv.m4: Likewise.
109245         * m4/realloc.m4: Likewise.
109246         * m4/regex.m4: Likewise.
109247         * m4/stat.m4: Likewise.
109248         * m4/strftime.m4: Likewise.
109249         Suggestion from Alain Magloire.
109251         * m4/chown.m4: Use `.$ac_objext', not `.o'.
109252         * m4/fnmatch.m4: Likewise.
109253         * m4/getgroups.m4: Likewise.
109254         * m4/getline.m4: Likewise.
109255         * m4/lstat.m4: Likewise.
109256         * m4/malloc.m4: Likewise.
109257         * m4/memcmp.m4: Likewise.
109258         * m4/putenv.m4: Likewise.
109259         * m4/realloc.m4: Likewise.
109260         * m4/regex.m4: Likewise.
109261         * m4/stat.m4: Likewise.
109262         * m4/strftime.m4: Likewise.
109263         Suggestion from Alain Magloire.
109265         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
109266         an argument.
109268         * m4/regex.m4: Add a run-time Test for proper operation of
109269         re_compile_pattern.
109271 1999-01-31  Jim Meyering  <meyering@ascend.com>
109273         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
109275 1999-01-30  Jim Meyering  <meyering@ascend.com>
109277         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
109279         * m4/jm-mktime.m4: Make this a wrapper around the official
109280         AM_FUNC_MKTIME rather than my private copy, now that the official one
109281         is up to date.
109282         * m4/mktime.m4: Remove file.
109284         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
109285         * m4/uptime.m4: Likewise.
109286         * m4/uintmax_t.m4: Likewise.
109288 1999-01-28  Jim Meyering  <meyering@ascend.com>
109290         * m4/jm-macros.m4: Use jm_AFS.
109291         * m4/afs.m4: New file (from fileutils' configure.in).
109293         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
109294         * m4/chown.m4: Likewise.
109295         * m4/d-ino.m4: Likewise.
109296         * m4/d-type.m4: Likewise.
109297         * m4/fnmatch.m4: Likewise.
109298         * m4/getgroups.m4: Likewise.
109299         * m4/gettext.m4: Likewise.
109300         * m4/jm-mktime.m4: Likewise.
109301         * m4/jm-winsz2.m4: Likewise.
109302         * m4/lcmessage.m4: Likewise.
109303         * m4/ls-mntd-fs.m4: Likewise.
109304         * m4/malloc.m4: Likewise.
109305         * m4/memcmp.m4: Likewise.
109306         * m4/putenv.m4: Likewise.
109307         * m4/realloc.m4: Likewise.
109308         * m4/st_mtim.m4: Likewise.
109309         * m4/strftime.m4: Likewise.
109311 1999-01-16  Jim Meyering  <meyering@ascend.com>
109313         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
109314         (ARGMATCH_DIE_DECL): Define.
109316 1999-01-12  Jim Meyering  <meyering@ascend.com>
109318         * m4/Makefile.am.in: Rewrite to avoid using fmt.
109319         Reported by Lars Hecking.
109321 1999-01-10  Jim Meyering  <meyering@ascend.com>
109323         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
109324         gross kludge.
109325         * m4/inttypes_h.m4: Likewise.
109326         * m4/lstat.m4: Likewise.
109327         * m4/malloc.m4: Likewise.
109328         * m4/readdir.m4: Likewise.
109329         * m4/realloc.m4: Likewise.
109330         * m4/st_dm_mode.m4: Likewise.
109331         * m4/stat.m4: Likewise.
109332         * m4/utimbuf.m4: Likewise.
109333         * m4/utimes.m4: Likewise.
109335         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
109336         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
109337         comments in config.h.in are meaningful.
109339         * m4/jm-macros.m4: Require autoconf-2.13 here.
109341         * m4/regex.m4: By default, don't use the included regex.c on systems
109342         with glibc 2.  Suggestion from Uli Drepper.
109344 1999-01-02  Jim Meyering  <meyering@ascend.com>
109346         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
109348 1998-12-18  Jim Meyering  <meyering@ascend.com>
109350         * m4/Makefile.am.in (Makefile.am): Simplify rule.
109351         Based on a suggestion from Lars Hecking.
109353 1998-11-16  Paul Eggert  <eggert@twinsun.com>
109355         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
109357 1998-11-16  Jim Meyering  <meyering@ascend.com>
109359         * m4/lfs.m4: Double-quote the `uname...` expression.
109361 1998-11-14  Jim Meyering  <meyering@ascend.com>
109363         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
109364         * m4/stat.m4: Likewise.
109366 1998-11-03  Jim Meyering  <meyering@ascend.com>
109368         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
109369         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
109371 1998-10-18  Jim Meyering  <meyering@ascend.com>
109373         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
109375 1998-10-17  Jim Meyering  <meyering@ascend.com>
109377         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
109378         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
109379         calls for those previously hard-coded headers.  Instead, take a new
109380         parameter.
109381         (jm_CHECK_DECLARATIONS): Reflect interface change.
109382         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
109383         (jm_CHECK_DECL_LOCALTIME_R): New macro.
109385         * m4/mktime.m4: Test for spring-forward gap before long-running test.
109387 1998-10-14  Jim Meyering  <meyering@ascend.com>
109389         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
109390         instead of "TZ=America/Vancouver".  From Paul Eggert.
109392 1998-10-11  Jim Meyering  <meyering@ascend.com>
109394         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
109395         This adds a test for a recently added compatibility fix for mktime.c.
109396         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
109398 1998-09-27  Jim Meyering  <meyering@ascend.com>
109400         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
109402         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
109403         ../configure.in, including a change from Gordon Matzigkeit to allow
109404         cross-compiling for the Hurd.
109406         * m4/glibc.m4: New file/macro to test for the GNU C Library
109407         versions 1 and 2.  From Gordon Matzigkeit.
109408         Indent.
109410 1998-09-21  Jim Meyering  <meyering@ascend.com>
109412         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
109414 1998-08-18  Paul Eggert  <eggert@twinsun.com>
109416         Port nanosecond-resolution times to UnixWare 2.1.2 and
109417         pedantic Solaris 2.6.
109419         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
109420         AC_STRUCT_ST_MTIM.
109421         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
109422         Generate name of ns member, instead of just 1 or undef.
109423         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
109425 1998-08-15  Jim Meyering  <meyering@ascend.com>
109427         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
109428         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
109429         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
109430         instead of jm_TYPE_SSIZE_T.
109432 1998-08-12  Jim Meyering  <meyering@ascend.com>
109434         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
109436 1998-08-02  Jim Meyering  <meyering@ascend.com>
109438         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
109439         in acconfig.h manually.
109441 1998-07-31  Paul Eggert  <eggert@twinsun.com>
109443         * m4/st_mtim.m4: New file.
109445 1998-07-28  Jim Meyering  <meyering@ascend.com>
109447         * m4/utimes.m4: Undef stat.
109449 1998-07-25  Jim Meyering  <meyering@ascend.com>
109451         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
109452         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
109454 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
109456         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
109457         uid and gid actually remain unchanged.
109459 1998-07-07  Jim Meyering  <meyering@ascend.com>
109461         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
109463 1998-07-04  Jim Meyering  <meyering@ascend.com>
109465         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
109466         to prove that this macro can be used in packages without regex.c.
109468 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
109470         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
109471         is to be used.
109473 1998-07-03  Jim Meyering  <meyering@ascend.com>
109475         * m4/gettext.m4: Add -lintl if it's found to be necessary.
109477         * m4/gettext.m4: New file -- from gettext-0.10.35.
109478         * m4/lcmessage.m4: Likewise.
109479         * m4/progtest.m4: Likewise.
109481         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
109482         * m4/jm-macros.m4: Require the new macro.
109484 1998-06-29  Jim Meyering  <meyering@ascend.com>
109486         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
109487         for the definition of NGROUPS (used in a system header included
109488         by sys/mount.h).
109490 1998-06-28  Jim Meyering  <meyering@ascend.com>
109492         * m4/ls-mntd-fs.m4: New file.
109493         * m4/fstypename.m4: New file.
109495         * m4/jm-macros.m4: Require the new macro.
109496         * m4/jm-glibc-io.m4: New file.
109498 1998-05-19  Jim Meyering  <meyering@ascend.com>
109500         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
109501         * m4/lchown.m4: New file.
109503         * m4/Makefile.am.in: New file.
109504         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
109506 1998-05-14  Jim Meyering  <meyering@ascend.com>
109508         * m4/Makefile.am (EXTRA_DIST): Add them.
109509         * m4/jm-macros.m4: New file.
109510         * m4/utimbuf.m4: New file.
109512 1998-05-12  Jim Meyering  <meyering@ascend.com>
109514         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
109516 1998-05-11  Jim Meyering  <meyering@ascend.com>
109518         * m4/isc-posix.m4: New file.
109520 1998-05-10  Jim Meyering  <meyering@ascend.com>
109522         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
109524 1998-05-09  Jim Meyering  <meyering@ascend.com>
109526         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
109527         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
109528         with automake.
109530         * m4/ssize_t.m4: New file.
109531         * m4/mktime.m4: Remove file -- the new automake has this now.
109533 1998-04-26  Jim Meyering  <meyering@ascend.com>
109535         * m4/assert.m4: New file.
109536         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
109538 1998-04-05  Jim Meyering  <meyering@ascend.com>
109540         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
109541         (jm_PREREQ): Use it here.
109543 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
109545         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
109546         in acconfig.h.
109548 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
109550         * m4/prereq.m4: New file.
109551         * m4/error.m4: New file.
109552         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
109554 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
109556         * m4/getline.m4: Don't set am_cv_func_working_getline before the
109557         cache-check for the same variable -- that defeated the purpose of
109558         the test; the test program was never run.  This was a problem only
109559         on systems with losing getline functions -- HP-UX 10.20 is one.
109560         Reported by Bjorn Helgaas.
109562 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
109564         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
109566 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
109568         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
109570         * m4/const.m4: New file.  Use an initializer in this declaration
109571         typedef int charset[2]; const charset x;
109572         Reported by Bob Glickstein.
109574 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
109576         * m4/chown.m4: Fix reversed types on -1 args to chown.
109577         From Kaveh Ghazi.
109579 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
109581         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
109582         Add lseek and memchr.
109584         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
109585         T.E.Dickey <dickey@clark.net> said that some older preprocessors
109586         have a 20-character limit on names.
109588 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
109590         * m4/inttypes_h.m4: New file.
109591         * m4/uintmax_t.m4: New file.
109592         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
109595         -----
109597         Local Variables:
109598         coding: utf-8
109599         End:
109601         Copyright (C) 1997-2017 Free Software Foundation, Inc.
109603         Copying and distribution of this file, with or without
109604         modification, are permitted provided the copyright notice
109605         and this notice are preserved.